1// This is the expected build file, but it may not be right in all cases
2
3package {
4    // See: http://go/android-license-faq
5    // A large-scale-change added 'default_applicable_licenses' to import
6    // all of the 'license_kinds' from "hardware_interfaces_license"
7    // to get the below license kinds:
8    //   SPDX-license-identifier-Apache-2.0
9    default_applicable_licenses: ["hardware_interfaces_license"],
10}
11
12aidl_interface {
13    name: "android.hardware.automotive.audiocontrol",
14    vendor_available: true,
15    srcs: ["android/hardware/automotive/audiocontrol/*.aidl"],
16    defaults: [
17        "latest_android_hardware_audio_common_import_interface",
18        "latest_android_media_audio_common_types_import_interface",
19    ],
20    stability: "vintf",
21    backend: {
22        java: {
23            sdk_version: "module_current",
24            min_sdk_version: "31",
25            apex_available: [
26                "//apex_available:platform",
27                "com.android.car.framework",
28            ],
29        },
30        rust: {
31            enabled: true,
32        },
33    },
34    versions_with_info: [
35        {
36            version: "1",
37            imports: [
38                "android.hardware.audio.common-V1",
39                "android.media.audio.common.types-V2",
40            ],
41        },
42        {
43            version: "2",
44            imports: [
45                "android.hardware.audio.common-V1",
46                "android.media.audio.common.types-V2",
47            ],
48        },
49        {
50            version: "3",
51            imports: [
52                "android.hardware.audio.common-V1",
53                "android.media.audio.common.types-V2",
54            ],
55        },
56        {
57            version: "4",
58            imports: [
59                "android.media.audio.common.types-V3",
60                "android.hardware.audio.common-V3",
61            ],
62        },
63
64    ],
65    frozen: true,
66
67}
68
69// Note: This should always be one version ahead of the last frozen version
70latest_android_hardware_automotive_audiocontrol = "android.hardware.automotive.audiocontrol-V4"
71
72cc_defaults {
73    name: "latest_android_hardware_automotive_audiocontrol_cpp_static",
74    static_libs: [
75        latest_android_hardware_automotive_audiocontrol + "-cpp",
76    ],
77}
78
79cc_defaults {
80    name: "latest_android_hardware_automotive_audiocontrol_cpp_shared",
81    shared_libs: [
82        latest_android_hardware_automotive_audiocontrol + "-cpp",
83    ],
84}
85
86cc_defaults {
87    name: "latest_android_hardware_automotive_audiocontrol_ndk_static",
88    static_libs: [
89        latest_android_hardware_automotive_audiocontrol + "-ndk",
90    ],
91}
92
93cc_defaults {
94    name: "latest_android_hardware_automotive_audiocontrol_ndk_shared",
95    shared_libs: [
96        latest_android_hardware_automotive_audiocontrol + "-ndk",
97    ],
98}
99
100java_defaults {
101    name: "latest_android_hardware_automotive_audiocontrol_java_static",
102    static_libs: [
103        latest_android_hardware_automotive_audiocontrol + "-java",
104    ],
105}
106
107rust_defaults {
108    name: "latest_android_hardware_automotive_audiocontrol_rust",
109    rustlibs: [
110        latest_android_hardware_automotive_audiocontrol + "-rust",
111    ],
112}
113