f0a5a94fad
These types are migrated from system/audio.h. The order and syntax of declarations is preserved where available. The following changes have been made: - names changed to satisfy HAL style guide; - some previously separate enums grouped into one to allow using values between them (HIDL doesn't allow using values of one enum in another, and even if it would, that will probably be incompatible with C++11 enum classes it generates; - as HIDL doesn't have sizeof, these were substituted with values; - unions can't contain HIDL string type, thus some names are expressed as uint8_t arrays; - "handle" is a reserved word in HIDL; - HIDL vector type is used instead of count / array pairs; - obviously, macros and inline functions not migrated. Bug: 30222631 Test: make Change-Id: If55de3774deaa0b3f68ca6100e61ccaf79f29183
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
// This file is autogenerated by hidl-gen. Do not edit manually.
|
|
|
|
genrule {
|
|
name: "android.hardware.audio.common@2.0_genc++",
|
|
tool: "hidl-gen",
|
|
cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.audio.common@2.0",
|
|
srcs: [
|
|
"types.hal",
|
|
],
|
|
out: [
|
|
"android/hardware/audio/common/2.0/types.cpp",
|
|
],
|
|
}
|
|
|
|
genrule {
|
|
name: "android.hardware.audio.common@2.0_genc++_headers",
|
|
tool: "hidl-gen",
|
|
cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.audio.common@2.0",
|
|
srcs: [
|
|
"types.hal",
|
|
],
|
|
out: [
|
|
"android/hardware/audio/common/2.0/types.h",
|
|
],
|
|
}
|
|
|
|
cc_library_shared {
|
|
name: "android.hardware.audio.common@2.0",
|
|
generated_sources: ["android.hardware.audio.common@2.0_genc++"],
|
|
generated_headers: ["android.hardware.audio.common@2.0_genc++_headers"],
|
|
export_generated_headers: ["android.hardware.audio.common@2.0_genc++_headers"],
|
|
shared_libs: [
|
|
"libhidl",
|
|
"libhwbinder",
|
|
"libutils",
|
|
"libcutils",
|
|
],
|
|
}
|