• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2021 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    // See: http://go/android-license-faq
17    // A large-scale-change added 'default_applicable_licenses' to import
18    // all of the 'license_kinds' from "hardware_interfaces_license"
19    // to get the below license kinds:
20    //   SPDX-license-identifier-Apache-2.0
21    default_applicable_licenses: ["hardware_interfaces_license"],
22}
23
24aidl_interface {
25    name: "android.hardware.bluetooth.audio",
26    vendor_available: true,
27    host_supported: true,
28    srcs: ["android/hardware/bluetooth/audio/*.aidl"],
29    stability: "vintf",
30    defaults: [
31        "latest_android_hardware_audio_common_import_interface",
32    ],
33    imports: [
34        "android.hardware.common-V2",
35        "android.hardware.common.fmq-V1",
36    ],
37    backend: {
38        cpp: {
39            enabled: false,
40        },
41        rust: {
42            enabled: true,
43        },
44        java: {
45            sdk_version: "module_current",
46            enabled: false,
47        },
48        ndk: {
49            apex_available: [
50                "//apex_available:platform",
51                "com.android.bt",
52            ],
53            min_sdk_version: "31",
54        },
55    },
56    versions_with_info: [
57        {
58            version: "1",
59            imports: [
60                "android.hardware.common-V2",
61                "android.hardware.common.fmq-V1",
62                "android.hardware.audio.common-V1",
63            ],
64        },
65        {
66            version: "2",
67            imports: [
68                "android.hardware.common-V2",
69                "android.hardware.common.fmq-V1",
70                "android.hardware.audio.common-V1",
71            ],
72        },
73        {
74            version: "3",
75            imports: [
76                "android.hardware.common-V2",
77                "android.hardware.common.fmq-V1",
78                "android.hardware.audio.common-V2",
79            ],
80        },
81        {
82            version: "4",
83            imports: [
84                "android.hardware.audio.common-V3",
85                "android.hardware.common-V2",
86                "android.hardware.common.fmq-V1",
87            ],
88        },
89        {
90            version: "5",
91            imports: [
92                "android.hardware.audio.common-V4",
93                "android.hardware.common-V2",
94                "android.hardware.common.fmq-V1",
95            ],
96        },
97
98    ],
99    frozen: true,
100}
101
102// Note: This should always be one version ahead of the last frozen version
103latest_android_hardware_bluetooth_audio = "android.hardware.bluetooth.audio-V5"
104
105cc_defaults {
106    name: "latest_android_hardware_bluetooth_audio_ndk_shared",
107    shared_libs: [
108        latest_android_hardware_bluetooth_audio + "-ndk",
109    ],
110}
111
112cc_defaults {
113    name: "latest_android_hardware_bluetooth_audio_ndk_static",
114    static_libs: [
115        latest_android_hardware_bluetooth_audio + "-ndk",
116    ],
117}
118
119cc_defaults {
120    name: "latest_android_hardware_bluetooth_audio_ndk_android_shared",
121    target: {
122        android: {
123            shared_libs: [
124                latest_android_hardware_bluetooth_audio + "-ndk",
125            ],
126        },
127    },
128}
129
130cc_defaults {
131    name: "latest_android_hardware_bluetooth_audio_ndk_android_static",
132    target: {
133        android: {
134            static_libs: [
135                latest_android_hardware_bluetooth_audio + "-ndk",
136            ],
137        },
138    },
139}
140