1package { 2 default_team: "trendy_team_android_media_audio_framework", 3 // See: http://go/android-license-faq 4 // A large-scale-change added 'default_applicable_licenses' to import 5 // all of the 'license_kinds' from "hardware_interfaces_license" 6 // to get the below license kinds: 7 // SPDX-license-identifier-Apache-2.0 8 default_applicable_licenses: ["hardware_interfaces_license"], 9} 10 11aidl_interface { 12 name: "android.hardware.soundtrigger3", 13 vendor_available: true, 14 host_supported: true, 15 flags: [ 16 "-Werror", 17 "-Weverything", 18 "-Wno-missing-permission-annotation", 19 ], 20 srcs: [ 21 "android/hardware/soundtrigger3/ISoundTriggerHw.aidl", 22 "android/hardware/soundtrigger3/ISoundTriggerHwCallback.aidl", 23 "android/hardware/soundtrigger3/ISoundTriggerHwGlobalCallback.aidl", 24 ], 25 stability: "vintf", 26 defaults: [ 27 "latest_android_media_soundtrigger_types_import_interface", 28 ], 29 backend: { 30 cpp: { 31 // prefer NDK backend which can be used anywhere 32 enabled: false, 33 }, 34 java: { 35 sdk_version: "module_current", 36 }, 37 }, 38 frozen: true, 39 versions_with_info: [ 40 { 41 version: "1", 42 imports: ["android.media.soundtrigger.types-V1"], 43 }, 44 { 45 version: "2", 46 imports: ["android.media.soundtrigger.types-V2"], 47 }, 48 49 // IMPORTANT: Update latest_android_hardware_soundtrigger3 every time 50 // you add the latest frozen version to versions_with_info 51 ], 52} 53 54// Note: This should always be one version ahead of the last frozen version 55latest_android_hardware_soundtrigger3 = "android.hardware.soundtrigger3-V2" 56 57// Modules that depend on android.hardware.soundtrigger3 directly can include 58// the following java_defaults to avoid explicitly managing dependency versions 59// across many scattered files. 60java_defaults { 61 name: "latest_android_hardware_soundtrigger3_java_static", 62 static_libs: [ 63 latest_android_hardware_soundtrigger3 + "-java", 64 ], 65} 66 67cc_defaults { 68 name: "latest_android_hardware_soundtrigger3_ndk_shared", 69 shared_libs: [ 70 latest_android_hardware_soundtrigger3 + "-ndk", 71 ], 72} 73