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 java: { 42 sdk_version: "module_current", 43 enabled: false, 44 }, 45 ndk: { 46 apex_available: [ 47 "//apex_available:platform", 48 "com.android.btservices", 49 ], 50 min_sdk_version: "31", 51 }, 52 }, 53 versions_with_info: [ 54 { 55 version: "1", 56 imports: [ 57 "android.hardware.common-V2", 58 "android.hardware.common.fmq-V1", 59 "android.hardware.audio.common-V1", 60 ], 61 }, 62 { 63 version: "2", 64 imports: [ 65 "android.hardware.common-V2", 66 "android.hardware.common.fmq-V1", 67 "android.hardware.audio.common-V1", 68 ], 69 }, 70 { 71 version: "3", 72 imports: [ 73 "android.hardware.common-V2", 74 "android.hardware.common.fmq-V1", 75 "android.hardware.audio.common-V2", 76 ], 77 }, 78 { 79 version: "4", 80 imports: [ 81 "android.hardware.audio.common-V3", 82 "android.hardware.common-V2", 83 "android.hardware.common.fmq-V1", 84 ], 85 }, 86 87 ], 88 frozen: false, 89 90} 91 92// Note: This should always be one version ahead of the last frozen version 93latest_android_hardware_bluetooth_audio = "android.hardware.bluetooth.audio-V5" 94 95cc_defaults { 96 name: "latest_android_hardware_bluetooth_audio_ndk_shared", 97 shared_libs: [ 98 latest_android_hardware_bluetooth_audio + "-ndk", 99 ], 100} 101 102cc_defaults { 103 name: "latest_android_hardware_bluetooth_audio_ndk_static", 104 static_libs: [ 105 latest_android_hardware_bluetooth_audio + "-ndk", 106 ], 107} 108 109cc_defaults { 110 name: "latest_android_hardware_bluetooth_audio_ndk_android_shared", 111 target: { 112 android: { 113 shared_libs: [ 114 latest_android_hardware_bluetooth_audio + "-ndk", 115 ], 116 }, 117 }, 118} 119 120cc_defaults { 121 name: "latest_android_hardware_bluetooth_audio_ndk_android_static", 122 target: { 123 android: { 124 static_libs: [ 125 latest_android_hardware_bluetooth_audio + "-ndk", 126 ], 127 }, 128 }, 129} 130