Home
last modified time | relevance | path

Searched refs:micInfo (Results 1 – 4 of 4) sorted by relevance

/hardware/interfaces/audio/core/all-versions/default/util/
DCoreUtils.cpp63 const struct audio_microphone_characteristic_t& halMicInfo, MicrophoneInfo* micInfo) { in microphoneInfoFromHal() argument
65 micInfo->deviceId = halMicInfo.device_id; in microphoneInfoFromHal()
67 deviceAddressFromHal(halMicInfo.device, halMicInfo.address, &micInfo->deviceAddress), in microphoneInfoFromHal()
75 micInfo->channelMapping.resize(chCount + 1); in microphoneInfoFromHal()
76 for (size_t ch = 0; ch < micInfo->channelMapping.size(); ch++) { in microphoneInfoFromHal()
77 micInfo->channelMapping[ch] = AudioMicrophoneChannelMapping(halMicInfo.channel_mapping[ch]); in microphoneInfoFromHal()
79 micInfo->location = AudioMicrophoneLocation(halMicInfo.location); in microphoneInfoFromHal()
80 micInfo->group = AudioMicrophoneGroup(halMicInfo.group); in microphoneInfoFromHal()
81 micInfo->indexInTheGroup = static_cast<uint32_t>(halMicInfo.index_in_the_group); in microphoneInfoFromHal()
82 micInfo->sensitivity = halMicInfo.sensitivity; in microphoneInfoFromHal()
[all …]
/hardware/interfaces/audio/core/all-versions/default/util/tests/
Dcoreutils_tests.cpp142 MicrophoneInfo micInfo{}; in generateValidMicrophoneInfo() local
143 micInfo.deviceAddress.deviceType = toString(xsd::AudioDevice::AUDIO_DEVICE_IN_BUILTIN_MIC); in generateValidMicrophoneInfo()
144 micInfo.channelMapping.resize(1); in generateValidMicrophoneInfo()
145 micInfo.channelMapping[0] = AudioMicrophoneChannelMapping::DIRECT; in generateValidMicrophoneInfo()
146 micInfo.location = AudioMicrophoneLocation::MAINBODY_MOVABLE; in generateValidMicrophoneInfo()
147 micInfo.group = 42; in generateValidMicrophoneInfo()
148 micInfo.indexInTheGroup = 13; in generateValidMicrophoneInfo()
149 micInfo.sensitivity = 65.5; in generateValidMicrophoneInfo()
150 micInfo.maxSpl = 100.5; in generateValidMicrophoneInfo()
151 micInfo.minSpl = 36.6; in generateValidMicrophoneInfo()
[all …]
/hardware/interfaces/audio/core/all-versions/default/util/include/util/
DCoreUtils.h51 MicrophoneInfo* micInfo);
52 …static status_t microphoneInfoToHal(const MicrophoneInfo& micInfo, audio_microphone_characteristic…
/hardware/interfaces/audio/aidl/vts/
DVtsHalAudioCoreModuleTargetTest.cpp2152 for (const auto& micInfo : micInfos) { in TEST_P() local
2153 const auto& micDevice = micInfo.device; in TEST_P()
2162 << micInfo.id << "\": " << micDevice.toString(); in TEST_P()
3498 [&](const auto& micInfo) { return micInfo.id == mic.id; })) in TEST_P() argument