Searched refs:deviceList (Results 1 – 6 of 6) sorted by relevance
55 AudioDeviceInfo[] deviceList; in test_getDevices() local58 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 …]
135 AudioDeviceInfo[] deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in test_audioTrack_preferredDevice() local136 for (int index = 0; index < deviceList.length; index++) { in test_audioTrack_preferredDevice()137 if (deviceList[index].getType() == AudioDeviceInfo.TYPE_TELEPHONY) { in test_audioTrack_preferredDevice()141 assertTrue(audioTrack.setPreferredDevice(deviceList[index])); in test_audioTrack_preferredDevice()142 assertTrue(audioTrack.getPreferredDevice() == deviceList[index]); in test_audioTrack_preferredDevice()192 AudioDeviceInfo[] deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in getTelephonyDeviceAndSetInCommunicationMode() local193 for (int index = 0; index < deviceList.length; index++) { in getTelephonyDeviceAndSetInCommunicationMode()194 if (deviceList[index].getType() == AudioDeviceInfo.TYPE_TELEPHONY) { in getTelephonyDeviceAndSetInCommunicationMode()195 telephonyDevice = deviceList[index]; in getTelephonyDeviceAndSetInCommunicationMode()415 AudioDeviceInfo[] deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_INPUTS); in test_audioRecord_preferredDevice() local[all …]
118 AudioDeviceInfo[] deviceList; in testRouting() local119 deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_INPUTS); in testRouting()120 assertTrue(deviceList != null); in testRouting()121 for (AudioDeviceInfo devInfo : deviceList) { in testRouting()
108 AudioDeviceInfo[] deviceList; in testRouting() local109 deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in testRouting()110 assertTrue(deviceList != null); in testRouting()111 for (AudioDeviceInfo devInfo : deviceList) { in testRouting()
155 List<BluetoothDevice> deviceList; in test_getConnectedDevices() local157 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() local182 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 …]
148 HashMap<String, UsbDevice> deviceList = mUsbManager.getDeviceList(); in connectUSB() local149 Collection<UsbDevice> deviceCollection = deviceList.values(); in connectUSB()