Searched refs:deviceList (Results 1 – 5 of 5) 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 …]
134 AudioDeviceInfo[] deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in test_audioTrack_preferredDevice() local135 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() local188 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() local411 for (int index = 0; index < deviceList.length; index++) { in test_audioRecord_preferredDevice()[all …]
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()
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()
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 …]