Home
last modified time | relevance | path

Searched refs:deviceType (Results 1 – 23 of 23) sorted by relevance

/hardware/interfaces/audio/core/all-versions/vts/functional/4.0/
DAudioPrimaryHidlHalTest.cpp104 for (auto deviceType : {AD::OUT_HDMI, AD::OUT_WIRED_HEADPHONE, AD::IN_USB_HEADSET}) {
105 SCOPED_TRACE("device=" + ::testing::PrintToString(deviceType));
108 for (auto deviceType : {AD::AUDIO_DEVICE_OUT_HDMI, AD::AUDIO_DEVICE_OUT_WIRED_HEADPHONE,
110 SCOPED_TRACE("device=" + toString(deviceType));
116 address.device = deviceType;
118 address.deviceType = toString(deviceType);
119 if (deviceType == AD::AUDIO_DEVICE_IN_USB_HEADSET) {
151 auto device = devices[0].deviceType;
163 : testGetDevices(stream.get(), address.deviceType))
172 otherAddress.deviceType = xsd::isOutputDevice(address.deviceType)
/hardware/interfaces/neuralnetworks/aidl/utils/src/
DInvalidDevice.cpp64 constexpr auto deviceType = DeviceType::OTHER; in create() local
68 std::move(extensions), deviceType, in create()
74 std::vector<Extension> extensions, DeviceType deviceType, in InvalidDevice() argument
79 kDeviceType(deviceType), in InvalidDevice()
114 ndk::ScopedAStatus InvalidDevice::getType(DeviceType* deviceType) { in getType() argument
115 *deviceType = kDeviceType; in getType()
DDevice.cpp85 DeviceType deviceType; in getDeviceTypeFrom() local
86 const auto ret = device->getType(&deviceType); in getDeviceTypeFrom()
88 return nn::convert(deviceType); in getDeviceTypeFrom()
139 const auto deviceType = NN_TRY(getDeviceTypeFrom(device.get())); in create() local
146 PrivateConstructorTag{}, std::move(name), std::move(versionString), deviceType, in create()
152 nn::DeviceType deviceType, std::vector<nn::Extension> extensions, in Device() argument
158 kDeviceType(deviceType), in Device()
DConversions.cpp167 GeneralResult<DeviceType> unvalidatedConvert(const aidl_hal::DeviceType& deviceType) { in unvalidatedConvert() argument
168 return static_cast<DeviceType>(deviceType); in unvalidatedConvert()
519 GeneralResult<DeviceType> convert(const aidl_hal::DeviceType& deviceType) { in convert() argument
520 return validatedConvert(deviceType); in convert()
/hardware/interfaces/neuralnetworks/1.2/utils/src/
DDevice.cpp63 DeviceType deviceType) { in deviceTypeCallback() argument
65 return nn::convert(deviceType); in deviceTypeCallback()
160 const auto deviceType = NN_TRY(getDeviceTypeFrom(device.get())); in create() local
167 PrivateConstructorTag{}, std::move(name), std::move(versionString), deviceType, in create()
173 nn::DeviceType deviceType, std::vector<nn::Extension> extensions, in Device() argument
179 kDeviceType(deviceType), in Device()
DConversions.cpp102 GeneralResult<DeviceType> unvalidatedConvert(const hal::V1_2::DeviceType& deviceType) { in unvalidatedConvert() argument
103 return static_cast<DeviceType>(deviceType); in unvalidatedConvert()
276 GeneralResult<DeviceType> convert(const hal::V1_2::DeviceType& deviceType) { in convert() argument
277 return validatedConvert(deviceType); in convert()
400 nn::GeneralResult<DeviceType> unvalidatedConvert(const nn::DeviceType& deviceType) { in unvalidatedConvert() argument
401 switch (deviceType) { in unvalidatedConvert()
408 return static_cast<DeviceType>(deviceType); in unvalidatedConvert()
411 << "Invalid DeviceType " << underlyingType(deviceType); in unvalidatedConvert()
555 nn::GeneralResult<DeviceType> convert(const nn::DeviceType& deviceType) { in convert() argument
556 return validatedConvert(deviceType); in convert()
/hardware/interfaces/neuralnetworks/1.2/utils/include/nnapi/hal/1.2/
DConversions.h29 GeneralResult<DeviceType> unvalidatedConvert(const hal::V1_2::DeviceType& deviceType);
50 GeneralResult<DeviceType> convert(const hal::V1_2::DeviceType& deviceType);
70 nn::GeneralResult<DeviceType> unvalidatedConvert(const nn::DeviceType& deviceType);
91 nn::GeneralResult<DeviceType> convert(const nn::DeviceType& deviceType);
DDevice.h66 nn::DeviceType deviceType, std::vector<nn::Extension> extensions,
/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/
DInvalidDevice.h35 std::vector<Extension> extensions, DeviceType deviceType,
48 ndk::ScopedAStatus getType(DeviceType* deviceType) override;
DDevice.h49 nn::DeviceType deviceType, std::vector<nn::Extension> extensions,
DConversions.h60 GeneralResult<DeviceType> unvalidatedConvert(const aidl_hal::DeviceType& deviceType);
106 GeneralResult<DeviceType> convert(const aidl_hal::DeviceType& deviceType);
/hardware/interfaces/tv/cec/1.0/vts/functional/
DVtsHalTvCecV1_0TargetTest.cpp82 for (auto deviceType = deviceTypes.begin(); deviceType != deviceTypes.end(); ++deviceType) { in hasDeviceType() local
83 if (*deviceType == (int)type) { in hasDeviceType()
/hardware/interfaces/neuralnetworks/1.3/utils/src/
DDevice.cpp110 const auto deviceType = NN_TRY(V1_2::utils::getDeviceTypeFrom(device.get())); in create() local
118 PrivateConstructorTag{}, std::move(name), std::move(versionString), deviceType, in create()
124 nn::DeviceType deviceType, std::vector<nn::Extension> extensions, in Device() argument
130 kDeviceType(deviceType), in Device()
DConversions.cpp719 nn::GeneralResult<V1_2::DeviceType> convert(const nn::DeviceType& deviceType) { in convert() argument
720 return V1_2::utils::convert(deviceType); in convert()
/hardware/interfaces/audio/common/all-versions/default/tests/
Dhidlutils_tests.cpp413 const AudioDevice deviceType = toString(enumVal); in TEST() local
416 EXPECT_EQ(NO_ERROR, HidlUtils::audioDeviceTypeToHal(deviceType, &halDeviceType)) in TEST()
417 << "Conversion of \"" << deviceType << "\" failed"; in TEST()
421 << "Device \"" << deviceType << "\" is neither input, nor output device"; in TEST()
467 invalid.deviceType = toString(xsd::AudioDevice::AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER); in TEST()
469 invalid.deviceType = toString(xsd::AudioDevice::AUDIO_DEVICE_OUT_IP); in TEST()
471 invalid.deviceType = toString(xsd::AudioDevice::AUDIO_DEVICE_OUT_USB_HEADSET); in TEST()
487 speaker.deviceType = toString(xsd::AudioDevice::AUDIO_DEVICE_OUT_SPEAKER); in TEST()
491 micWithAddress.deviceType = toString(xsd::AudioDevice::AUDIO_DEVICE_IN_BUILTIN_MIC); in TEST()
498 a2dpSpeaker.deviceType = toString(xsd::AudioDevice::AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER); in TEST()
[all …]
/hardware/interfaces/audio/common/all-versions/default/7.0/
DHidlUtils.cpp685 *role = xsd::isOutputDevice(ext.device().deviceType) ? AUDIO_PORT_ROLE_SINK in audioPortExtendedInfoToHal()
1058 CONVERT_CHECKED(audioDeviceTypeFromHal(halDeviceType, &device->deviceType), result); in deviceAddressFromHal()
1067 device->deviceType.c_str(), halDeviceAddress); in deviceAddressFromHal()
1081 ALOGE("IP device \"%s\" IPv4 address \"%s\" is invalid", device->deviceType.c_str(), in deviceAddressFromHal()
1086 ALOGE("IP device \"%s\" does not have an IPv4 address", device->deviceType.c_str()); in deviceAddressFromHal()
1096 device->deviceType.c_str(), halDeviceAddress); in deviceAddressFromHal()
1100 ALOGE("USB device \"%s\" does not have ALSA address", device->deviceType.c_str()); in deviceAddressFromHal()
1113 CONVERT_CHECKED(audioDeviceTypeToHal(device.deviceType, halDeviceType), result); in deviceAddressToHal()
1122 ALOGE("BT A2DP device \"%s\" does not have MAC address set", device.deviceType.c_str()); in deviceAddressToHal()
1131 ALOGE("IP device \"%s\" does not have IPv4 address set", device.deviceType.c_str()); in deviceAddressToHal()
[all …]
/hardware/interfaces/neuralnetworks/aidl/utils/test/
DMockDevice.h44 MOCK_METHOD(ndk::ScopedAStatus, getType, (DeviceType * deviceType), (override));
/hardware/interfaces/neuralnetworks/1.3/utils/include/nnapi/hal/1.3/
DDevice.h49 nn::DeviceType deviceType, std::vector<nn::Extension> extensions,
/hardware/interfaces/audio/core/all-versions/default/util/tests/
Dcoreutils_tests.cpp143 micInfo.deviceAddress.deviceType = toString(xsd::AudioDevice::AUDIO_DEVICE_IN_BUILTIN_MIC); in generateValidMicrophoneInfo()
175 invalidDeviceType.deviceAddress.deviceType = "random string"; in TEST()
214 metadata.destination.device().deviceType = toString(xsd::AudioDevice::AUDIO_DEVICE_OUT_SPEAKER); in generateValidRecordTrackMetadataWithDevice()
231 invalidDeviceType.tracks[0].destination.device().deviceType = "random string"; in TEST()
/hardware/interfaces/audio/core/all-versions/vts/functional/7.0/
DPolicyConfig.h88 const AudioDevice& deviceType) const;
DPolicyConfig.cpp152 result.deviceType = devicePort->getType(); in getDeviceAddressOfDevicePort()
/hardware/interfaces/audio/effect/all-versions/vts/functional/
DVtsHalAudioEffectTargetTest.cpp468 DeviceAddress device{.deviceType = "random_string"}; in TEST_P()
480 DeviceAddress device{.deviceType = toString(xsd::AudioDevice::AUDIO_DEVICE_OUT_SPEAKER)}; in TEST_P()
533 DeviceAddress device{.deviceType = "random_string"}; in TEST_P()
546 DeviceAddress device{.deviceType = toString(xsd::AudioDevice::AUDIO_DEVICE_IN_BUILTIN_MIC)}; in TEST_P()
/hardware/interfaces/audio/common/7.0/
Dtypes.hal225 AudioDevice deviceType;