diff options
| author | Mikhail Naganov <mnaganov@google.com> | 2018-12-14 14:31:45 -0800 |
|---|---|---|
| committer | Mikhail Naganov <mnaganov@google.com> | 2018-12-14 16:34:28 -0800 |
| commit | 00a44c0fc2bb46b5b93b6b426b97a0b9591d9f5a (patch) | |
| tree | 15bc80f8ed771c1e595b1354dffd6ad36b538db4 /audio/effect/all-versions/vts/functional/VtsHalAudioEffectTargetTest.cpp | |
| parent | 0c157d30f2ea75b82a80b248816e9a53da8560a5 (diff) | |
Audio HAL: More generalization for types imports
Complement imports of audio::CPP_VERSION with audio::common::CPP_VERSION
for core.
Import namespaces in VTS tests.
Remove "using namespace" from .cpp files where there
are already imports in the .h file.
Test: try moving types between audio/types.hal and common/types.hal.
Change-Id: I49c2e2466c8175f2516c2273f5c26d125afd4801
Diffstat (limited to 'audio/effect/all-versions/vts/functional/VtsHalAudioEffectTargetTest.cpp')
| -rw-r--r-- | audio/effect/all-versions/vts/functional/VtsHalAudioEffectTargetTest.cpp | 42 |
1 files changed, 14 insertions, 28 deletions
diff --git a/audio/effect/all-versions/vts/functional/VtsHalAudioEffectTargetTest.cpp b/audio/effect/all-versions/vts/functional/VtsHalAudioEffectTargetTest.cpp index cf7fedf33f..c4c7f7ccc4 100644 --- a/audio/effect/all-versions/vts/functional/VtsHalAudioEffectTargetTest.cpp +++ b/audio/effect/all-versions/vts/functional/VtsHalAudioEffectTargetTest.cpp @@ -31,33 +31,19 @@ #include <VtsHalHidlTargetTestBase.h> #include <VtsHalHidlTargetTestEnvBase.h> -using android::sp; -using android::hardware::hidl_handle; -using android::hardware::hidl_memory; -using android::hardware::hidl_string; -using android::hardware::hidl_vec; -using android::hardware::MQDescriptorSync; -using android::hardware::Return; -using android::hardware::Void; -using android::hardware::audio::common::CPP_VERSION::AudioDevice; -using android::hardware::audio::common::CPP_VERSION::AudioHandleConsts; -using android::hardware::audio::common::CPP_VERSION::AudioMode; -using android::hardware::audio::common::CPP_VERSION::AudioSource; -using android::hardware::audio::common::CPP_VERSION::Uuid; -using android::hardware::audio::common::utils::mkEnumBitfield; -using android::hardware::audio::effect::CPP_VERSION::AudioBuffer; -using android::hardware::audio::effect::CPP_VERSION::EffectAuxChannelsConfig; -using android::hardware::audio::effect::CPP_VERSION::EffectBufferConfig; -using android::hardware::audio::effect::CPP_VERSION::EffectConfig; -using android::hardware::audio::effect::CPP_VERSION::EffectDescriptor; -using android::hardware::audio::effect::CPP_VERSION::EffectOffloadParameter; -using android::hardware::audio::effect::CPP_VERSION::IEffect; -using android::hardware::audio::effect::CPP_VERSION::IEffectsFactory; -using android::hardware::audio::effect::CPP_VERSION::IEqualizerEffect; -using android::hardware::audio::effect::CPP_VERSION::ILoudnessEnhancerEffect; -using android::hardware::audio::effect::CPP_VERSION::Result; -using android::hidl::allocator::V1_0::IAllocator; -using android::hidl::memory::V1_0::IMemory; +using ::android::sp; +using ::android::hardware::hidl_handle; +using ::android::hardware::hidl_memory; +using ::android::hardware::hidl_string; +using ::android::hardware::hidl_vec; +using ::android::hardware::MQDescriptorSync; +using ::android::hardware::Return; +using ::android::hardware::Void; +using ::android::hardware::audio::common::utils::mkEnumBitfield; +using ::android::hidl::allocator::V1_0::IAllocator; +using ::android::hidl::memory::V1_0::IMemory; +using namespace ::android::hardware::audio::common::CPP_VERSION; +using namespace ::android::hardware::audio::effect::CPP_VERSION; #ifndef ARRAY_SIZE #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) @@ -742,7 +728,7 @@ TEST_F(EqualizerAudioEffectHidlTest, GetSetAllProperties) { "Verify that setting band levels and presets works via Get / " "SetAllProperties for Equalizer effect"); using AllProperties = - android::hardware::audio::effect::CPP_VERSION::IEqualizerEffect::AllProperties; + ::android::hardware::audio::effect::CPP_VERSION::IEqualizerEffect::AllProperties; uint16_t numBands = 0; getNumBands(&numBands); ASSERT_GT(numBands, 0); |
