| package { |
| // See: http://go/android-license-faq |
| // A large-scale-change added 'default_applicable_licenses' to import |
| // all of the 'license_kinds' from "frameworks_base_license" |
| // to get the below license kinds: |
| // SPDX-license-identifier-Apache-2.0 |
| default_applicable_licenses: ["frameworks_base_license"], |
| } |
| |
| aidl_interface { |
| name: "media_permission-aidl", |
| unstable: true, |
| host_supported: true, |
| vendor_available: true, |
| double_loadable: true, |
| local_include_dir: "aidl", |
| srcs: [ |
| "aidl/android/media/permission/Identity.aidl", |
| ], |
| } |
| |
| aidl_interface { |
| name: "soundtrigger_middleware-aidl", |
| unstable: true, |
| local_include_dir: "aidl", |
| backend: { |
| java: { |
| sdk_version: "module_current", |
| }, |
| }, |
| srcs: [ |
| "aidl/android/media/soundtrigger_middleware/ISoundTriggerCallback.aidl", |
| "aidl/android/media/soundtrigger_middleware/ISoundTriggerMiddlewareService.aidl", |
| "aidl/android/media/soundtrigger_middleware/ISoundTriggerModule.aidl", |
| "aidl/android/media/soundtrigger_middleware/SoundTriggerModuleDescriptor.aidl", |
| ], |
| imports: [ |
| "android.media.audio.common.types-V2", |
| "android.media.soundtrigger.types-V1", |
| "media_permission-aidl", |
| ], |
| } |
| |
| aidl_interface { |
| name: "android.media.audio.common.types", |
| vendor_available: true, |
| host_supported: true, |
| double_loadable: true, |
| flags: [ |
| "-Werror", |
| "-Weverything", |
| ], |
| local_include_dir: "aidl", |
| srcs: [ |
| "aidl/android/media/audio/common/AudioAttributes.aidl", |
| "aidl/android/media/audio/common/AudioChannelLayout.aidl", |
| "aidl/android/media/audio/common/AudioConfig.aidl", |
| "aidl/android/media/audio/common/AudioConfigBase.aidl", |
| "aidl/android/media/audio/common/AudioContentType.aidl", |
| "aidl/android/media/audio/common/AudioDevice.aidl", |
| "aidl/android/media/audio/common/AudioDeviceAddress.aidl", |
| "aidl/android/media/audio/common/AudioDeviceDescription.aidl", |
| "aidl/android/media/audio/common/AudioDeviceType.aidl", |
| "aidl/android/media/audio/common/AudioEncapsulationMetadataType.aidl", |
| "aidl/android/media/audio/common/AudioEncapsulationMode.aidl", |
| "aidl/android/media/audio/common/AudioEncapsulationType.aidl", |
| "aidl/android/media/audio/common/AudioFlag.aidl", |
| "aidl/android/media/audio/common/AudioFormatDescription.aidl", |
| "aidl/android/media/audio/common/AudioFormatType.aidl", |
| "aidl/android/media/audio/common/AudioGain.aidl", |
| "aidl/android/media/audio/common/AudioGainConfig.aidl", |
| "aidl/android/media/audio/common/AudioGainMode.aidl", |
| "aidl/android/media/audio/common/AudioInputFlags.aidl", |
| "aidl/android/media/audio/common/AudioIoFlags.aidl", |
| "aidl/android/media/audio/common/AudioMMapPolicy.aidl", |
| "aidl/android/media/audio/common/AudioMMapPolicyInfo.aidl", |
| "aidl/android/media/audio/common/AudioMMapPolicyType.aidl", |
| "aidl/android/media/audio/common/AudioMode.aidl", |
| "aidl/android/media/audio/common/AudioOffloadInfo.aidl", |
| "aidl/android/media/audio/common/AudioOutputFlags.aidl", |
| "aidl/android/media/audio/common/AudioPort.aidl", |
| "aidl/android/media/audio/common/AudioPortConfig.aidl", |
| "aidl/android/media/audio/common/AudioPortDeviceExt.aidl", |
| "aidl/android/media/audio/common/AudioPortExt.aidl", |
| "aidl/android/media/audio/common/AudioPortMixExt.aidl", |
| "aidl/android/media/audio/common/AudioPortMixExtUseCase.aidl", |
| "aidl/android/media/audio/common/AudioProfile.aidl", |
| "aidl/android/media/audio/common/AudioSource.aidl", |
| "aidl/android/media/audio/common/AudioStandard.aidl", |
| "aidl/android/media/audio/common/AudioStreamType.aidl", |
| "aidl/android/media/audio/common/AudioUsage.aidl", |
| "aidl/android/media/audio/common/AudioUuid.aidl", |
| "aidl/android/media/audio/common/ExtraAudioDescriptor.aidl", |
| "aidl/android/media/audio/common/Int.aidl", |
| "aidl/android/media/audio/common/PcmType.aidl", |
| ], |
| stability: "vintf", |
| backend: { |
| cpp: { |
| min_sdk_version: "29", |
| apex_available: [ |
| "//apex_available:platform", |
| "com.android.media", |
| ], |
| }, |
| java: { |
| sdk_version: "module_current", |
| min_sdk_version: "29", |
| apex_available: [ |
| "//apex_available:platform", |
| "com.android.car.framework", |
| ], |
| }, |
| ndk: { |
| min_sdk_version: "29", |
| apex_available: [ |
| "//apex_available:platform", |
| "com.android.btservices", |
| ], |
| }, |
| }, |
| versions_with_info: [ |
| { |
| version: "1", |
| imports: [], |
| }, |
| // IMPORTANT: Update latest_android_media_audio_common_types every time |
| // you add the latest frozen version to versions_with_info |
| ], |
| |
| } |
| |
| // Note: This should always be one version ahead of the last frozen version |
| latest_android_media_audio_common_types = "android.media.audio.common.types-V2" |
| |
| // Modules that depend on android.media.audio.common.types directly can include |
| // the following cc_defaults to avoid explicitly managing dependency versions |
| // across many scattered files. |
| cc_defaults { |
| name: "latest_android_media_audio_common_types_cpp_shared", |
| shared_libs: [ |
| latest_android_media_audio_common_types + "-cpp", |
| ], |
| } |
| |
| cc_defaults { |
| name: "latest_android_media_audio_common_types_cpp_export_shared", |
| defaults: [ |
| "latest_android_media_audio_common_types_cpp_shared", |
| ], |
| export_shared_lib_headers: [ |
| latest_android_media_audio_common_types + "-cpp", |
| ], |
| } |
| |
| cc_defaults { |
| name: "latest_android_media_audio_common_types_cpp_static", |
| static_libs: [ |
| latest_android_media_audio_common_types + "-cpp", |
| ], |
| } |
| |
| cc_defaults { |
| name: "latest_android_media_audio_common_types_cpp_export_static", |
| defaults: [ |
| "latest_android_media_audio_common_types_cpp_static", |
| ], |
| export_static_lib_headers: [ |
| latest_android_media_audio_common_types + "-cpp", |
| ], |
| } |
| |
| cc_defaults { |
| name: "latest_android_media_audio_common_types_ndk_shared", |
| shared_libs: [ |
| latest_android_media_audio_common_types + "-ndk", |
| ], |
| } |
| |
| cc_defaults { |
| name: "latest_android_media_audio_common_types_ndk_static", |
| static_libs: [ |
| latest_android_media_audio_common_types + "-ndk", |
| ], |
| } |
| |
| cc_defaults { |
| name: "latest_android_media_audio_common_types_cpp_target_shared", |
| target: { |
| android: { |
| shared_libs: [ |
| latest_android_media_audio_common_types + "-cpp", |
| ], |
| }, |
| }, |
| } |
| |
| aidl_interface { |
| name: "android.media.soundtrigger.types", |
| vendor_available: true, |
| host_supported: true, |
| flags: [ |
| "-Werror", |
| "-Weverything", |
| ], |
| local_include_dir: "aidl", |
| srcs: [ |
| "aidl/android/media/soundtrigger/AudioCapabilities.aidl", |
| "aidl/android/media/soundtrigger/ConfidenceLevel.aidl", |
| "aidl/android/media/soundtrigger/ModelParameter.aidl", |
| "aidl/android/media/soundtrigger/ModelParameterRange.aidl", |
| "aidl/android/media/soundtrigger/Phrase.aidl", |
| "aidl/android/media/soundtrigger/PhraseRecognitionEvent.aidl", |
| "aidl/android/media/soundtrigger/PhraseRecognitionExtra.aidl", |
| "aidl/android/media/soundtrigger/PhraseSoundModel.aidl", |
| "aidl/android/media/soundtrigger/Properties.aidl", |
| "aidl/android/media/soundtrigger/RecognitionConfig.aidl", |
| "aidl/android/media/soundtrigger/RecognitionEvent.aidl", |
| "aidl/android/media/soundtrigger/RecognitionMode.aidl", |
| "aidl/android/media/soundtrigger/RecognitionStatus.aidl", |
| "aidl/android/media/soundtrigger/SoundModel.aidl", |
| "aidl/android/media/soundtrigger/SoundModelType.aidl", |
| "aidl/android/media/soundtrigger/Status.aidl", |
| ], |
| stability: "vintf", |
| backend: { |
| cpp: { |
| enabled: true, |
| }, |
| java: { |
| sdk_version: "module_current", |
| }, |
| }, |
| imports: [ |
| "android.media.audio.common.types-V2", |
| ], |
| versions_with_info: [ |
| { |
| version: "1", |
| imports: ["android.media.audio.common.types-V2"], |
| }, |
| ], |
| |
| } |