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.java55 AudioDeviceInfo[] deviceList; in test_getDevices() local
58 deviceList = mAudioManager.getDevices(0); in test_getDevices()
59 assertTrue(deviceList != null); in test_getDevices()
60 assertTrue(deviceList.length == 0); in test_getDevices()
69 deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in test_getDevices()
70 assertTrue(deviceList != null); in test_getDevices()
72 numOutputDevices = deviceList.length; in test_getDevices()
85 assertTrue(deviceList[index].isSink()); in test_getDevices()
92 deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_INPUTS); in test_getDevices()
93 assertTrue(deviceList != null); in test_getDevices()
[all …]
DRoutingTest.java134 AudioDeviceInfo[] deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in test_audioTrack_preferredDevice() local
135 for (int index = 0; index < deviceList.length; index++) { in test_audioTrack_preferredDevice()
136 assertTrue(audioTrack.setPreferredDevice(deviceList[index])); in test_audioTrack_preferredDevice()
137 assertTrue(audioTrack.getPreferredDevice() == deviceList[index]); in test_audioTrack_preferredDevice()
187 AudioDeviceInfo[] deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in getTelephonyDeviceAndSetInCommunicationMode() local
188 for (int index = 0; index < deviceList.length; index++) { in getTelephonyDeviceAndSetInCommunicationMode()
189 if (deviceList[index].getType() == AudioDeviceInfo.TYPE_TELEPHONY) { in getTelephonyDeviceAndSetInCommunicationMode()
190 telephonyDevice = deviceList[index]; in getTelephonyDeviceAndSetInCommunicationMode()
410 AudioDeviceInfo[] deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_INPUTS); in test_audioRecord_preferredDevice() local
411 for (int index = 0; index < deviceList.length; index++) { in test_audioRecord_preferredDevice()
[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()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DHearingAidProfileTest.java155 List<BluetoothDevice> deviceList; in test_getConnectedDevices() local
157 deviceList = mService.getConnectedDevices(); in test_getConnectedDevices()
158 Log.d(TAG, "getConnectedDevices(): size=" + deviceList.size()); in test_getConnectedDevices()
159 for (BluetoothDevice device : deviceList) { in test_getConnectedDevices()
180 List<BluetoothDevice> deviceList; in test_getDevicesMatchingConnectionStates() local
182 deviceList = mService.getDevicesMatchingConnectionStates(new int[]{connectionState}); in test_getDevicesMatchingConnectionStates()
183 assertNotNull(deviceList); in test_getDevicesMatchingConnectionStates()
185 + deviceList.size()); in test_getDevicesMatchingConnectionStates()
186 checkDeviceListAndStates(deviceList, connectionState); in test_getDevicesMatchingConnectionStates()
208 List<BluetoothDevice> deviceList; in test_getConnectionStateChangedIntent() local
[all …]