/hardware/interfaces/audio/common/all-versions/default/tests/ |
D | hidlutils6_tests.cpp | 37 audio_devices_t halDeviceType = static_cast<audio_devices_t>(lhs.device); in operator ==() local 38 if (audio_is_a2dp_out_device(halDeviceType) || audio_is_a2dp_in_device(halDeviceType)) { in operator ==() 40 } else if (halDeviceType == AUDIO_DEVICE_OUT_IP || halDeviceType == AUDIO_DEVICE_IN_IP) { in operator ==() 42 } else if (audio_is_usb_out_device(halDeviceType) || audio_is_usb_in_device(halDeviceType)) { in operator ==() 44 } else if (halDeviceType == AUDIO_DEVICE_OUT_REMOTE_SUBMIX || in operator ==() 45 halDeviceType == AUDIO_DEVICE_IN_REMOTE_SUBMIX) { in operator ==() 55 audio_devices_t halDeviceType; in ConvertDeviceAddress() local 57 EXPECT_EQ(NO_ERROR, HidlUtils::deviceAddressToHal(device, &halDeviceType, halDeviceAddress)); in ConvertDeviceAddress() 60 HidlUtils::deviceAddressFromHal(halDeviceType, halDeviceAddress, &deviceBack)); in ConvertDeviceAddress()
|
D | hidlutils_tests.cpp | 414 audio_devices_t halDeviceType, halDeviceTypeBack; in TEST() local 416 EXPECT_EQ(NO_ERROR, HidlUtils::audioDeviceTypeToHal(deviceType, &halDeviceType)) in TEST() 419 EXPECT_TRUE(audio_is_input_device(halDeviceType) || in TEST() 420 audio_is_output_device(halDeviceType)) in TEST() 423 EXPECT_FALSE(audio_is_input_device(halDeviceType)); in TEST() 424 EXPECT_FALSE(audio_is_output_device(halDeviceType)); in TEST() 426 EXPECT_EQ(NO_ERROR, HidlUtils::audioDeviceTypeFromHal(halDeviceType, &deviceTypeBack)) in TEST() 427 << "Conversion of device type " << halDeviceType << " failed"; in TEST() 432 EXPECT_EQ(halDeviceType, halDeviceTypeBack); in TEST() 476 audio_devices_t halDeviceType; in ConvertDeviceAddress() local [all …]
|
/hardware/interfaces/audio/common/all-versions/default/ |
D | HidlUtils.h | 77 static status_t deviceAddressToHal(const DeviceAddress& device, audio_devices_t* halDeviceType, 79 static status_t deviceAddressFromHal(audio_devices_t halDeviceType, 169 static status_t deviceAddressToHalImpl(const DA& device, audio_devices_t* halDeviceType, 172 static status_t deviceAddressFromHalImpl(audio_devices_t halDeviceType, 202 status_t HidlUtils::deviceAddressToHalImpl(const DA& device, audio_devices_t* halDeviceType, in deviceAddressToHalImpl() argument 204 *halDeviceType = static_cast<audio_devices_t>(device.device); in deviceAddressToHalImpl() 206 if (audio_is_a2dp_out_device(*halDeviceType) || audio_is_a2dp_in_device(*halDeviceType)) { in deviceAddressToHalImpl() 210 } else if (*halDeviceType == AUDIO_DEVICE_OUT_IP || *halDeviceType == AUDIO_DEVICE_IN_IP) { in deviceAddressToHalImpl() 214 } else if (audio_is_usb_out_device(*halDeviceType) || audio_is_usb_in_device(*halDeviceType)) { in deviceAddressToHalImpl() 217 } else if (*halDeviceType == AUDIO_DEVICE_OUT_BUS || *halDeviceType == AUDIO_DEVICE_IN_BUS) { in deviceAddressToHalImpl() [all …]
|
D | HidlUtils.cpp | 357 status_t HidlUtils::deviceAddressToHal(const DeviceAddress& device, audio_devices_t* halDeviceType, in deviceAddressToHal() argument 359 return deviceAddressToHalImpl(device, halDeviceType, halDeviceAddress); in deviceAddressToHal() 362 status_t HidlUtils::deviceAddressFromHal(audio_devices_t halDeviceType, in deviceAddressFromHal() argument 364 return deviceAddressFromHalImpl(halDeviceType, halDeviceAddress, device); in deviceAddressFromHal()
|
/hardware/interfaces/audio/effect/all-versions/default/ |
D | VirtualizerEffect.cpp | 206 audio_devices_t halDeviceType = static_cast<audio_devices_t>(device); in getVirtualSpeakerAngles() local 218 audio_devices_t halDeviceType; in getVirtualSpeakerAngles() 220 if (status_t status = HidlUtils::deviceAddressToHal(device, &halDeviceType, halDeviceAddress); in getVirtualSpeakerAngles() 231 halDeviceType}; in getVirtualSpeakerAngles() 266 audio_devices_t halDeviceType = static_cast<audio_devices_t>(device); in getVirtualSpeakerAngles() local 269 audio_devices_t halDeviceType; in getVirtualSpeakerAngles() 271 (void)HidlUtils::deviceAddressToHal(device, &halDeviceType, halDeviceAddress); in getVirtualSpeakerAngles() 273 return mEffect->setParam(VIRTUALIZER_PARAM_FORCE_VIRTUALIZATION_MODE, halDeviceType); in getVirtualSpeakerAngles()
|
/hardware/interfaces/audio/core/all-versions/default/ |
D | ParametersUtil.cpp | 155 audio_devices_t halDeviceType; in setParam() local 157 if (CoreUtils::deviceAddressToHal(address, &halDeviceType, halDeviceAddress) != NO_ERROR) { in setParam() 161 params.addInt(String8(name), halDeviceType); in setParam()
|
/hardware/interfaces/audio/common/all-versions/default/7.0/ |
D | HidlUtils.cpp | 1060 status_t HidlUtils::deviceAddressFromHal(audio_devices_t halDeviceType, in audioUsageFromHal() argument 1063 CONVERT_CHECKED(audioDeviceTypeFromHal(halDeviceType, &device->deviceType), result); in audioUsageFromHal() 1064 if (audio_is_a2dp_out_device(halDeviceType) || audio_is_a2dp_in_device(halDeviceType)) { in audioUsageFromHal() 1079 } else if (halDeviceType == AUDIO_DEVICE_OUT_IP || halDeviceType == AUDIO_DEVICE_IN_IP) { in audioUsageFromHal() 1094 } else if (audio_is_usb_out_device(halDeviceType) || audio_is_usb_in_device(halDeviceType)) { in audioUsageFromHal() 1115 status_t HidlUtils::deviceAddressToHal(const DeviceAddress& device, audio_devices_t* halDeviceType, in audioUsageFromHal() argument 1118 CONVERT_CHECKED(audioDeviceTypeToHal(device.deviceType, halDeviceType), result); in audioUsageFromHal() 1120 if (audio_is_a2dp_out_device(*halDeviceType) || audio_is_a2dp_in_device(*halDeviceType)) { in audioUsageFromHal() 1130 } else if (*halDeviceType == AUDIO_DEVICE_OUT_IP || *halDeviceType == AUDIO_DEVICE_IN_IP) { in audioUsageFromHal() 1139 } else if (audio_is_usb_out_device(*halDeviceType) || audio_is_usb_in_device(*halDeviceType)) { in audioUsageFromHal()
|
/hardware/interfaces/audio/core/all-versions/default/util/include/util/ |
D | CoreUtils.h | 45 static status_t deviceAddressToHal(const DeviceAddress& device, audio_devices_t* halDeviceType, 47 … static status_t deviceAddressFromHal(audio_devices_t halDeviceType, const char* halDeviceAddress,
|
/hardware/interfaces/audio/core/all-versions/vts/functional/7.0/ |
D | PolicyConfig.cpp | 139 audio_devices_t halDeviceType; in getDeviceAddressOfDevicePort() local 140 if (HidlUtils::audioDeviceTypeToHal(devicePort->getType(), &halDeviceType) == in getDeviceAddressOfDevicePort() 146 if (HidlUtils::deviceAddressFromHal(halDeviceType, address.c_str(), &result) == in getDeviceAddressOfDevicePort()
|
/hardware/interfaces/audio/core/all-versions/default/util/ |
D | CoreUtils.cpp | 43 status_t CoreUtils::deviceAddressToHal(const DeviceAddress& device, audio_devices_t* halDeviceType, in deviceAddressToHal() argument 46 return HidlUtils::deviceAddressToHal(device, halDeviceType, halDeviceAddress); in deviceAddressToHal() 48 return HidlUtils::deviceAddressToHalImpl(device, halDeviceType, halDeviceAddress); in deviceAddressToHal() 52 status_t CoreUtils::deviceAddressFromHal(audio_devices_t halDeviceType, in deviceAddressFromHal() argument 55 return HidlUtils::deviceAddressFromHal(halDeviceType, halDeviceAddress, device); in deviceAddressFromHal() 57 return HidlUtils::deviceAddressFromHalImpl(halDeviceType, halDeviceAddress, device); in deviceAddressFromHal()
|