Lines Matching refs:aidlInfo
3156 const MicrophoneInfo& aidlInfo, const MicrophoneDynamicInfo& aidlDynamic) { in aidl2legacy_MicrophoneInfos_audio_microphone_characteristic_t() argument
3161 if (aidlInfo.id != aidlDynamic.id) { in aidl2legacy_MicrophoneInfos_audio_microphone_characteristic_t()
3165 RETURN_IF_ERROR(aidl2legacy_string(aidlInfo.id, legacy.device_id, AUDIO_MICROPHONE_ID_MAX_LEN)); in aidl2legacy_MicrophoneInfos_audio_microphone_characteristic_t()
3167 aidlInfo.device, &legacy.device, legacy.address)); in aidl2legacy_MicrophoneInfos_audio_microphone_characteristic_t()
3169 aidl2legacy_MicrophoneInfoLocation_audio_microphone_location_t(aidlInfo.location)); in aidl2legacy_MicrophoneInfos_audio_microphone_characteristic_t()
3170 legacy.group = VALUE_OR_RETURN(aidl2legacy_int32_t_audio_microphone_group_t(aidlInfo.group)); in aidl2legacy_MicrophoneInfos_audio_microphone_characteristic_t()
3173 if (aidlInfo.indexInTheGroup != MicrophoneInfo::INDEX_IN_THE_GROUP_UNKNOWN) { in aidl2legacy_MicrophoneInfos_audio_microphone_characteristic_t()
3175 convertReinterpret<unsigned int>(aidlInfo.indexInTheGroup)); in aidl2legacy_MicrophoneInfos_audio_microphone_characteristic_t()
3179 if (aidlInfo.sensitivity.has_value()) { in aidl2legacy_MicrophoneInfos_audio_microphone_characteristic_t()
3180 legacy.sensitivity = aidlInfo.sensitivity.value().leveldBFS; in aidl2legacy_MicrophoneInfos_audio_microphone_characteristic_t()
3181 legacy.max_spl = aidlInfo.sensitivity.value().maxSpldB; in aidl2legacy_MicrophoneInfos_audio_microphone_characteristic_t()
3182 legacy.min_spl = aidlInfo.sensitivity.value().minSpldB; in aidl2legacy_MicrophoneInfos_audio_microphone_characteristic_t()
3190 aidlInfo.directionality)); in aidl2legacy_MicrophoneInfos_audio_microphone_characteristic_t()
3191 if (aidlInfo.frequencyResponse.size() > AUDIO_MICROPHONE_MAX_FREQUENCY_RESPONSES) { in aidl2legacy_MicrophoneInfos_audio_microphone_characteristic_t()
3195 for (const auto& p: aidlInfo.frequencyResponse) { in aidl2legacy_MicrophoneInfos_audio_microphone_characteristic_t()
3199 if (aidlInfo.position.has_value()) { in aidl2legacy_MicrophoneInfos_audio_microphone_characteristic_t()
3202 aidlInfo.position.value())); in aidl2legacy_MicrophoneInfos_audio_microphone_characteristic_t()
3206 if (aidlInfo.orientation.has_value()) { in aidl2legacy_MicrophoneInfos_audio_microphone_characteristic_t()
3209 aidlInfo.orientation.value())); in aidl2legacy_MicrophoneInfos_audio_microphone_characteristic_t()
3231 MicrophoneInfo* aidlInfo, MicrophoneDynamicInfo* aidlDynamic) { in legacy2aidl_audio_microphone_characteristic_t_MicrophoneInfos() argument
3232 aidlInfo->id = VALUE_OR_RETURN_STATUS( in legacy2aidl_audio_microphone_characteristic_t_MicrophoneInfos()
3234 aidlDynamic->id = aidlInfo->id; in legacy2aidl_audio_microphone_characteristic_t_MicrophoneInfos()
3235 aidlInfo->device = VALUE_OR_RETURN_STATUS(legacy2aidl_audio_device_AudioDevice( in legacy2aidl_audio_microphone_characteristic_t_MicrophoneInfos()
3237 aidlInfo->location = VALUE_OR_RETURN_STATUS( in legacy2aidl_audio_microphone_characteristic_t_MicrophoneInfos()
3239 aidlInfo->group = VALUE_OR_RETURN_STATUS( in legacy2aidl_audio_microphone_characteristic_t_MicrophoneInfos()
3244 aidlInfo->indexInTheGroup = VALUE_OR_RETURN_STATUS( in legacy2aidl_audio_microphone_characteristic_t_MicrophoneInfos()
3247 aidlInfo->indexInTheGroup = MicrophoneInfo::INDEX_IN_THE_GROUP_UNKNOWN; in legacy2aidl_audio_microphone_characteristic_t_MicrophoneInfos()
3256 aidlInfo->sensitivity = std::move(sensitivity); in legacy2aidl_audio_microphone_characteristic_t_MicrophoneInfos()
3258 aidlInfo->sensitivity = {}; in legacy2aidl_audio_microphone_characteristic_t_MicrophoneInfos()
3260 aidlInfo->directionality = VALUE_OR_RETURN_STATUS( in legacy2aidl_audio_microphone_characteristic_t_MicrophoneInfos()
3266 aidlInfo->frequencyResponse.resize(legacy.num_frequency_responses); in legacy2aidl_audio_microphone_characteristic_t_MicrophoneInfos()
3268 aidlInfo->frequencyResponse[i].frequencyHz = legacy.frequency_responses[0][i]; in legacy2aidl_audio_microphone_characteristic_t_MicrophoneInfos()
3269 aidlInfo->frequencyResponse[i].leveldB = legacy.frequency_responses[1][i]; in legacy2aidl_audio_microphone_characteristic_t_MicrophoneInfos()
3274 aidlInfo->position = VALUE_OR_RETURN_STATUS( in legacy2aidl_audio_microphone_characteristic_t_MicrophoneInfos()
3278 aidlInfo->position = {}; in legacy2aidl_audio_microphone_characteristic_t_MicrophoneInfos()
3283 aidlInfo->orientation = VALUE_OR_RETURN_STATUS( in legacy2aidl_audio_microphone_characteristic_t_MicrophoneInfos()
3287 aidlInfo->orientation = {}; in legacy2aidl_audio_microphone_characteristic_t_MicrophoneInfos()