Loading audio/common/all-versions/default/Android.bp +54 −0 Original line number Diff line number Diff line Loading @@ -157,6 +157,28 @@ cc_library { ], } cc_library { name: "android.hardware.audio.common@7.1-util", defaults: ["android.hardware.audio.common-util_default"], srcs: [ "7.0/HidlUtils.cpp", "HidlUtilsCommon.cpp", "UuidUtils.cpp", ], shared_libs: [ "android.hardware.audio.common@7.0", "android.hardware.audio.common@7.1-enums", "libbase", ], cflags: [ "-DMAJOR_VERSION=7", "-DMINOR_VERSION=1", "-DCOMMON_TYPES_MINOR_VERSION=0", "-DCORE_TYPES_MINOR_VERSION=0", "-include common/all-versions/VersionMacro.h", ], } // Note: this isn't a VTS test, but rather a unit test // to verify correctness of conversion utilities. cc_test { Loading Loading @@ -214,3 +236,35 @@ cc_test { test_suites: ["device-tests"], } cc_test { name: "android.hardware.audio.common@7.1-util_tests", defaults: ["android.hardware.audio.common-util_default"], srcs: ["tests/hidlutils_tests.cpp"], // Use static linking to allow running in presubmit on // targets that don't have HAL V7.1. static_libs: [ "android.hardware.audio.common@7.1-enums", "android.hardware.audio.common@7.1-util", "android.hardware.audio.common@7.0", ], shared_libs: [ "libbase", "libxml2", ], cflags: [ "-Werror", "-Wall", "-DMAJOR_VERSION=7", "-DMINOR_VERSION=1", "-DCOMMON_TYPES_MINOR_VERSION=0", "-DCORE_TYPES_MINOR_VERSION=0", "-include common/all-versions/VersionMacro.h", ], test_suites: ["device-tests"], } audio/common/all-versions/default/HidlUtilsCommon.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ namespace android { namespace hardware { namespace audio { namespace common { namespace CPP_VERSION { namespace COMMON_TYPES_CPP_VERSION { namespace implementation { status_t HidlUtils::audioPortConfigsFromHal(unsigned int numHalConfigs, Loading Loading @@ -51,7 +51,7 @@ status_t HidlUtils::audioPortConfigsToHal(const hidl_vec<AudioPortConfig>& confi } } // namespace implementation } // namespace CPP_VERSION } // namespace COMMON_TYPES_CPP_VERSION } // namespace common } // namespace audio } // namespace hardware Loading audio/common/all-versions/default/TEST_MAPPING +3 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,9 @@ }, { "name": "android.hardware.audio.common@7.0-util_tests" }, { "name": "android.hardware.audio.common@7.1-util_tests" } ] } audio/common/all-versions/default/tests/hidlutils_tests.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ #include <log/log.h> #include <HidlUtils.h> #include <android_audio_policy_configuration_V7_0-enums.h> #include PATH(APM_XSD_ENUMS_H_FILENAME) #include <system/audio.h> #include <xsdc/XsdcSupport.h> Loading @@ -32,7 +32,7 @@ using ::android::hardware::hidl_vec; using namespace ::android::hardware::audio::common::COMMON_TYPES_CPP_VERSION; using ::android::hardware::audio::common::COMMON_TYPES_CPP_VERSION::implementation::HidlUtils; namespace xsd { using namespace ::android::audio::policy::configuration::V7_0; using namespace ::android::audio::policy::configuration::CPP_VERSION; } static constexpr audio_channel_mask_t kInvalidHalChannelMask = AUDIO_CHANNEL_INVALID; Loading audio/core/all-versions/default/Android.bp +2 −2 Original line number Diff line number Diff line Loading @@ -168,10 +168,10 @@ cc_defaults { shared_libs: [ "android.hardware.audio@7.0", "android.hardware.audio@7.1", "android.hardware.audio@7.0-util", "android.hardware.audio@7.1-util", "android.hardware.audio.common@7.0", "android.hardware.audio.common@7.1-enums", "android.hardware.audio.common@7.0-util", "android.hardware.audio.common@7.1-util", "libbase", ], cflags: [ Loading Loading
audio/common/all-versions/default/Android.bp +54 −0 Original line number Diff line number Diff line Loading @@ -157,6 +157,28 @@ cc_library { ], } cc_library { name: "android.hardware.audio.common@7.1-util", defaults: ["android.hardware.audio.common-util_default"], srcs: [ "7.0/HidlUtils.cpp", "HidlUtilsCommon.cpp", "UuidUtils.cpp", ], shared_libs: [ "android.hardware.audio.common@7.0", "android.hardware.audio.common@7.1-enums", "libbase", ], cflags: [ "-DMAJOR_VERSION=7", "-DMINOR_VERSION=1", "-DCOMMON_TYPES_MINOR_VERSION=0", "-DCORE_TYPES_MINOR_VERSION=0", "-include common/all-versions/VersionMacro.h", ], } // Note: this isn't a VTS test, but rather a unit test // to verify correctness of conversion utilities. cc_test { Loading Loading @@ -214,3 +236,35 @@ cc_test { test_suites: ["device-tests"], } cc_test { name: "android.hardware.audio.common@7.1-util_tests", defaults: ["android.hardware.audio.common-util_default"], srcs: ["tests/hidlutils_tests.cpp"], // Use static linking to allow running in presubmit on // targets that don't have HAL V7.1. static_libs: [ "android.hardware.audio.common@7.1-enums", "android.hardware.audio.common@7.1-util", "android.hardware.audio.common@7.0", ], shared_libs: [ "libbase", "libxml2", ], cflags: [ "-Werror", "-Wall", "-DMAJOR_VERSION=7", "-DMINOR_VERSION=1", "-DCOMMON_TYPES_MINOR_VERSION=0", "-DCORE_TYPES_MINOR_VERSION=0", "-include common/all-versions/VersionMacro.h", ], test_suites: ["device-tests"], }
audio/common/all-versions/default/HidlUtilsCommon.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ namespace android { namespace hardware { namespace audio { namespace common { namespace CPP_VERSION { namespace COMMON_TYPES_CPP_VERSION { namespace implementation { status_t HidlUtils::audioPortConfigsFromHal(unsigned int numHalConfigs, Loading Loading @@ -51,7 +51,7 @@ status_t HidlUtils::audioPortConfigsToHal(const hidl_vec<AudioPortConfig>& confi } } // namespace implementation } // namespace CPP_VERSION } // namespace COMMON_TYPES_CPP_VERSION } // namespace common } // namespace audio } // namespace hardware Loading
audio/common/all-versions/default/TEST_MAPPING +3 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,9 @@ }, { "name": "android.hardware.audio.common@7.0-util_tests" }, { "name": "android.hardware.audio.common@7.1-util_tests" } ] }
audio/common/all-versions/default/tests/hidlutils_tests.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ #include <log/log.h> #include <HidlUtils.h> #include <android_audio_policy_configuration_V7_0-enums.h> #include PATH(APM_XSD_ENUMS_H_FILENAME) #include <system/audio.h> #include <xsdc/XsdcSupport.h> Loading @@ -32,7 +32,7 @@ using ::android::hardware::hidl_vec; using namespace ::android::hardware::audio::common::COMMON_TYPES_CPP_VERSION; using ::android::hardware::audio::common::COMMON_TYPES_CPP_VERSION::implementation::HidlUtils; namespace xsd { using namespace ::android::audio::policy::configuration::V7_0; using namespace ::android::audio::policy::configuration::CPP_VERSION; } static constexpr audio_channel_mask_t kInvalidHalChannelMask = AUDIO_CHANNEL_INVALID; Loading
audio/core/all-versions/default/Android.bp +2 −2 Original line number Diff line number Diff line Loading @@ -168,10 +168,10 @@ cc_defaults { shared_libs: [ "android.hardware.audio@7.0", "android.hardware.audio@7.1", "android.hardware.audio@7.0-util", "android.hardware.audio@7.1-util", "android.hardware.audio.common@7.0", "android.hardware.audio.common@7.1-enums", "android.hardware.audio.common@7.0-util", "android.hardware.audio.common@7.1-util", "libbase", ], cflags: [ Loading