xref: /aosp_15_r20/hardware/interfaces/common/fmq/aidl/Android.bp (revision 4d7e907c777eeecc4c5bd7cf640a754fac206ff7)
1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "hardware_interfaces_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["hardware_interfaces_license"],
8}
9
10aidl_interface {
11    name: "android.hardware.common.fmq",
12    host_supported: true,
13    vendor_available: true,
14    product_available: true,
15    double_loadable: true,
16    srcs: [
17        "android/hardware/common/fmq/*.aidl",
18    ],
19    imports: [
20        "android.hardware.common-V2",
21    ],
22    stability: "vintf",
23    backend: {
24        java: {
25            // There is no Java FMQ library, but we support the AIDL type
26            // to allow subsets of interfaces that include it to be used in Java
27            enabled: true,
28            sdk_version: "module_current",
29        },
30        cpp: {
31            // FMQ is only supported for PODs with the cpp backend
32            enabled: true,
33        },
34        ndk: {
35            apex_available: [
36                "//apex_available:platform",
37                "//apex_available:anyapex",
38            ],
39            min_sdk_version: "29",
40        },
41        rust: {
42            // FMQ is not supported in the rust backend, but we need this AIDL interface for
43            // HardwareBuffer.
44            enabled: true,
45        },
46    },
47    frozen: true,
48    versions_with_info: [
49        {
50            version: "1",
51            imports: ["android.hardware.common-V2"],
52        },
53    ],
54}
55