Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04395faf authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

Audio HAL: More generalization for types imports

Use namespace import in ConversionHelperHidl.cpp.

Test: try moving types between audio/types.hal and common/types.hal.

Change-Id: I7ffab98d0e3b8bbc82ab94b8d99b7d05e224e1e4
parent 8c3773d8
Loading
Loading
Loading
Loading
+3 −10
Original line number Diff line number Diff line
@@ -22,19 +22,12 @@

#include "ConversionHelperHidl.h"

using ::android::hardware::audio::CPP_VERSION::Result;

#if MAJOR_VERSION >= 4
using ::android::hardware::audio::CPP_VERSION::AudioMicrophoneChannelMapping;
using ::android::hardware::audio::CPP_VERSION::AudioMicrophoneDirectionality;
using ::android::hardware::audio::CPP_VERSION::AudioMicrophoneLocation;
using ::android::hardware::audio::CPP_VERSION::DeviceAddress;
using ::android::hardware::audio::CPP_VERSION::MicrophoneInfo;
#endif

namespace android {
namespace CPP_VERSION {

using namespace ::android::hardware::audio::common::CPP_VERSION;
using namespace ::android::hardware::audio::CPP_VERSION;

// static
status_t ConversionHelperHidl::keysFromHal(const String8& keys, hidl_vec<hidl_string> *hidlKeys) {
    AudioParameter halKeys(keys);