Home
last modified time | relevance | path

Searched refs:deviceList (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DEnumDevicesTest.java50 AudioDeviceInfo[] deviceList; in test_getDevices() local
53 deviceList = mAudioManager.getDevices(0); in test_getDevices()
54 assertTrue(deviceList != null); in test_getDevices()
55 assertTrue(deviceList.length == 0); in test_getDevices()
60 deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in test_getDevices()
61 assertTrue(deviceList != null); in test_getDevices()
62 numOutputDevices = deviceList.length; in test_getDevices()
67 assertTrue(deviceList[index].isSink()); in test_getDevices()
74 deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_INPUTS); in test_getDevices()
75 assertTrue(deviceList != null); in test_getDevices()
[all …]
DAudioPlayRoutingNative.java108 AudioDeviceInfo[] deviceList; in testRouting() local
109 deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in testRouting()
110 assertTrue(deviceList != null); in testRouting()
111 for (AudioDeviceInfo devInfo : deviceList) { in testRouting()
DAudioRecordRoutingNative.java118 AudioDeviceInfo[] deviceList; in testRouting() local
119 deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_INPUTS); in testRouting()
120 assertTrue(deviceList != null); in testRouting()
121 for (AudioDeviceInfo devInfo : deviceList) { in testRouting()
DRoutingTest.java94 AudioDeviceInfo[] deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in test_audioTrack_preferredDevice() local
95 for (int index = 0; index < deviceList.length; index++) { in test_audioTrack_preferredDevice()
96 assertTrue(audioTrack.setPreferredDevice(deviceList[index])); in test_audioTrack_preferredDevice()
97 assertTrue(audioTrack.getPreferredDevice() == deviceList[index]); in test_audioTrack_preferredDevice()
310 AudioDeviceInfo[] deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_INPUTS); in test_audioRecord_preferredDevice() local
311 for (int index = 0; index < deviceList.length; index++) { in test_audioRecord_preferredDevice()
312 assertTrue(audioRecord.setPreferredDevice(deviceList[index])); in test_audioRecord_preferredDevice()
313 assertTrue(audioRecord.getPreferredDevice() == deviceList[index]); in test_audioRecord_preferredDevice()
/cts/common/util/src/com/android/compatibility/common/util/
DResultHandler.java127 String deviceList = parser.getAttributeValue(NS, DEVICES_ATTR); in getResults() local
128 for (String device : deviceList.split(",")) { in getResults()
265 StringBuilder deviceList = new StringBuilder(); in writeResults() local
271 deviceList.append(","); in writeResults()
273 deviceList.append(device); in writeResults()
275 serializer.attribute(NS, DEVICES_ATTR, deviceList.toString()); in writeResults()