Home
last modified time | relevance | path

Searched refs:deviceInfo (Results 1 – 7 of 7) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DUSBAudioPeripheralAttributesActivity.java60 AudioDeviceInfo deviceInfo = mOutputDevInfo; in updateConnectStatus() local
65 if (!ListsHelper.isMatch(deviceInfo.getChannelCounts(), attribs.mChannelCounts)) { in updateConnectStatus()
68 if (!ListsHelper.isMatch(deviceInfo.getChannelIndexMasks(), in updateConnectStatus()
72 if (!ListsHelper.isMatch(deviceInfo.getChannelMasks(), in updateConnectStatus()
76 if (!ListsHelper.isMatch(deviceInfo.getEncodings(), attribs.mEncodings)) { in updateConnectStatus()
79 if (!ListsHelper.isMatch(deviceInfo.getSampleRates(), attribs.mSampleRates)) { in updateConnectStatus()
93 AudioDeviceInfo deviceInfo = mInputDevInfo; in updateConnectStatus() local
98 if (!ListsHelper.isMatch(deviceInfo.getChannelCounts(), attribs.mChannelCounts)) { in updateConnectStatus()
101 if (!ListsHelper.isMatch(deviceInfo.getChannelIndexMasks(), in updateConnectStatus()
105 if (!ListsHelper.isMatch(deviceInfo.getChannelMasks(), in updateConnectStatus()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/peripheralprofile/
DUSBDeviceInfoHelper.java29 public static int calcMaxChannelCount(AudioDeviceInfo deviceInfo) { in calcMaxChannelCount() argument
30 if (deviceInfo == null) { in calcMaxChannelCount()
35 int[] counts = deviceInfo.getChannelCounts(); in calcMaxChannelCount()
45 public static int getPlayChanMask(AudioDeviceInfo deviceInfo) { in getPlayChanMask() argument
46 int numChans = calcMaxChannelCount(deviceInfo); in getPlayChanMask()
70 public static int getRecordChanMask(AudioDeviceInfo deviceInfo) { in getRecordChanMask() argument
71 int numChans = calcMaxChannelCount(deviceInfo); in getRecordChanMask()
DPeripheralProfile.java108 public static boolean matches(ProfileAttributes attribs, AudioDeviceInfo deviceInfo) { in matches() argument
110 ListsHelper.isMatch(deviceInfo.getChannelCounts(), attribs.mChannelCounts) && in matches()
111 ListsHelper.isMatch(deviceInfo.getChannelIndexMasks(), attribs.mChannelIndexMasks) && in matches()
112 ListsHelper.isMatch(deviceInfo.getChannelMasks(), attribs.mChannelPositionMasks) && in matches()
113 ListsHelper.isMatch(deviceInfo.getEncodings(), attribs.mEncodings) && in matches()
114 ListsHelper.isMatch(deviceInfo.getSampleRates(), attribs.mSampleRates); in matches()
/cts/tests/tests/media/src/android/media/cts/
DEnumDevicesTest.java116 AudioDeviceInfo deviceInfo = deviceList[index]; in test_devicesInfoFields() local
119 int id = deviceInfo.getId(); in test_devicesInfoFields()
122 CharSequence productName = deviceInfo.getProductName(); in test_devicesInfoFields()
127 String address = deviceInfo.getAddress(); in test_devicesInfoFields()
132 assertTrue(deviceInfo.isSource() != deviceInfo.isSink()); in test_devicesInfoFields()
135 int[] sampleRates = deviceInfo.getSampleRates(); in test_devicesInfoFields()
140 int[] channelMasks = deviceInfo.getChannelMasks(); in test_devicesInfoFields()
145 int[] indexMasks = deviceInfo.getChannelIndexMasks(); in test_devicesInfoFields()
151 int[] channelCounts = deviceInfo.getChannelCounts(); in test_devicesInfoFields()
156 int[] encodings = deviceInfo.getEncodings(); in test_devicesInfoFields()
[all …]
DAudioNativeTest.java246 for (AudioDeviceInfo deviceInfo : in testInputChannelMasks()
248 for (int channels : deviceInfo.getChannelCounts()) { in testInputChannelMasks()
/cts/suite/audio_quality/executable/src/
Dmain.cpp124 android::String8 deviceInfo; in main() local
125 if (!client->getAudio()->getDeviceInfo(deviceInfo)) { in main()
130 Settings::Instance()->addSetting(Settings::EDEVICE_INFO, deviceInfo); in main()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/mtp/
DMtpHostTestActivity.java292 final MtpDeviceInfo deviceInfo = mMtpDevice.getDeviceInfo();
293 assertNotNull(deviceInfo.getOperationsSupported());
294 assertTrue(deviceInfo.isOperationSupported(MtpConstants.OPERATION_SEND_OBJECT_INFO));
295 assertTrue(deviceInfo.isOperationSupported(MtpConstants.OPERATION_SEND_OBJECT));