Home
last modified time | relevance | path

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

/cts/tests/tests/media/audio/src/android/media/audio/cts/
DEnumDevicesTest.java56 AudioDeviceInfo[] deviceList; in test_getDevices() local
59 deviceList = mAudioManager.getDevices(0); in test_getDevices()
60 assertTrue(deviceList != null); in test_getDevices()
61 assertTrue(deviceList.length == 0); in test_getDevices()
70 deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in test_getDevices()
71 assertTrue(deviceList != null); in test_getDevices()
73 numOutputDevices = deviceList.length; in test_getDevices()
86 assertTrue(deviceList[index].isSink()); in test_getDevices()
93 deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_INPUTS); in test_getDevices()
94 assertTrue(deviceList != null); in test_getDevices()
[all …]
DRoutingTest.java123 AudioDeviceInfo[] deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in test_audioTrack_preferredDevice() local
124 for (int index = 0; index < deviceList.length; index++) { in test_audioTrack_preferredDevice()
125 if (deviceList[index].getType() == AudioDeviceInfo.TYPE_TELEPHONY) { in test_audioTrack_preferredDevice()
129 assertTrue(audioTrack.setPreferredDevice(deviceList[index])); in test_audioTrack_preferredDevice()
130 assertTrue(audioTrack.getPreferredDevice() == deviceList[index]); in test_audioTrack_preferredDevice()
180 AudioDeviceInfo[] deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in getTelephonyDeviceAndSetInCommunicationMode() local
181 for (int index = 0; index < deviceList.length; index++) { in getTelephonyDeviceAndSetInCommunicationMode()
182 if (deviceList[index].getType() == AudioDeviceInfo.TYPE_TELEPHONY) { in getTelephonyDeviceAndSetInCommunicationMode()
183 telephonyDevice = deviceList[index]; in getTelephonyDeviceAndSetInCommunicationMode()
403 AudioDeviceInfo[] deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_INPUTS); in test_audioRecord_preferredDevice() local
[all …]
DAudioRecordRoutingNative.java110 AudioDeviceInfo[] deviceList; in testRouting() local
111 deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_INPUTS); in testRouting()
112 assertTrue(deviceList != null); in testRouting()
113 for (AudioDeviceInfo devInfo : deviceList) { in testRouting()
DAudioPlayRoutingNative.java101 AudioDeviceInfo[] deviceList; in testRouting() local
102 deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in testRouting()
103 assertTrue(deviceList != null); in testRouting()
104 for (AudioDeviceInfo devInfo : deviceList) { in testRouting()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DHearingAidProfileTest.java261 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in getConnectedDevices() local
262 Log.d(TAG, "getConnectedDevices(): size=" + deviceList.size()); in getConnectedDevices()
263 for (BluetoothDevice device : deviceList) { in getConnectedDevices()
277 List<BluetoothDevice> deviceList = in getDevicesMatchingConnectionStates() local
279 assertThat(deviceList).isNotNull(); in getDevicesMatchingConnectionStates()
280 for (BluetoothDevice device : deviceList) { in getDevicesMatchingConnectionStates()
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/playback/
DHdmiCecActiveTrackingTest.java99 String deviceList = getDeviceList(); in cect_RemoveDeviceFromNetwork() local
100 assertThat(deviceList).doesNotContain(deviceName); in cect_RemoveDeviceFromNetwork()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DUSBRestrictRecordAActivity.java159 HashMap<String, UsbDevice> deviceList = mUsbManager.getDeviceList(); in connectUSB() local
160 Collection<UsbDevice> deviceCollection = deviceList.values(); in connectUSB()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DAudioDeviceUtils.java287 HashMap<String, UsbDevice> deviceList = usbManager.getDeviceList(); in getConnectedUsbDevice() local
288 Collection<UsbDevice> devices = deviceList.values(); in getConnectedUsbDevice()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DBrailleDisplayControllerTest.java716 HashMap<String, UsbDevice> deviceList = usbManager.getDeviceList(); in connect_realUsbDevice_noPermission_throwsSecurityException() local
717 assumeFalse(deviceList.isEmpty()); in connect_realUsbDevice_noPermission_throwsSecurityException()
719 for (UsbDevice usbDevice : deviceList.values()) { in connect_realUsbDevice_noPermission_throwsSecurityException()