Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DSapProfile.java65 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() local
66 while (!deviceList.isEmpty()) { in onServiceConnected()
67 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected()
125 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in disconnect()
126 if (!deviceList.isEmpty() && deviceList.get(0).equals(device)) { in disconnect()
138 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in getConnectionStatus()
140 return !deviceList.isEmpty() && deviceList.get(0).equals(device) in getConnectionStatus()
DMapProfile.java66 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() local
67 while (!deviceList.isEmpty()) { in onServiceConnected()
68 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected()
121 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in disconnect()
122 if (!deviceList.isEmpty() && deviceList.get(0).equals(device)) { in disconnect()
134 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in getConnectionStatus()
137 return !deviceList.isEmpty() && deviceList.get(0).equals(device) in getConnectionStatus()
DHeadsetProfile.java66 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() local
67 while (!deviceList.isEmpty()) { in onServiceConnected()
68 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected()
126 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in disconnect()
127 if (!deviceList.isEmpty()) { in disconnect()
128 for (BluetoothDevice dev : deviceList) { in disconnect()
145 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in getConnectionStatus()
146 if (!deviceList.isEmpty()){ in getConnectionStatus()
147 for (BluetoothDevice dev : deviceList) { in getConnectionStatus()
DHidProfile.java58 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() local
59 while (!deviceList.isEmpty()) { in onServiceConnected()
60 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected()
115 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in getConnectionStatus() local
117 return !deviceList.isEmpty() && deviceList.get(0).equals(device) in getConnectionStatus()
DHfpClientProfile.java67 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() local
68 while (!deviceList.isEmpty()) { in onServiceConnected()
69 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected()
DPbapClientProfile.java65 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() local
66 while (!deviceList.isEmpty()) { in onServiceConnected()
67 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected()
DMapClientProfile.java67 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() local
68 while (!deviceList.isEmpty()) { in onServiceConnected()
69 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected()
DA2dpSinkProfile.java63 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() local
64 while (!deviceList.isEmpty()) { in onServiceConnected()
65 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected()
DA2dpProfile.java72 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() local
73 while (!deviceList.isEmpty()) { in onServiceConnected()
74 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DHwModule.cpp310 DeviceVector deviceList = declaredDevices.getDevicesFromTypeAddr(device, address); in getDeviceDescriptor() local
311 if (!deviceList.isEmpty()) { in getDeviceDescriptor()
312 return deviceList.itemAt(0); in getDeviceDescriptor()
315 deviceList = declaredDevices.getDevicesFromType(device); in getDeviceDescriptor()
316 if (!deviceList.isEmpty()) { in getDeviceDescriptor()
317 return deviceList.itemAt(0); in getDeviceDescriptor()
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pDeviceList.java203 WifiP2pDeviceList deviceList = new WifiP2pDeviceList();
207 deviceList.update((WifiP2pDevice)in.readParcelable(null));
209 return deviceList;
/frameworks/base/core/java/com/android/internal/alsa/
DAlsaCardsParser.java270 static private void LogDevices(String caption, ArrayList<AlsaCardRecord> deviceList) { in LogDevices() argument
273 for (AlsaCardRecord device : deviceList) { in LogDevices()
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/
DScoAudioTest.java660 List<BluetoothDevice> deviceList = mBluetoothHeadset.getConnectedDevices();
661 if (deviceList.size() > 0) {
662 mBluetoothHeadsetDevice = deviceList.get(0);
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp392 DeviceVector deviceList; in updateCallRouting() local
428 deviceList = mAvailableOutputDevices.getDevicesFromType(rxDevice); in updateCallRouting()
429 ALOG_ASSERT(!deviceList.isEmpty(), in updateCallRouting()
431 sp<DeviceDescriptor> rxSinkDeviceDesc = deviceList.itemAt(0); in updateCallRouting()
432 deviceList = mAvailableInputDevices.getDevicesFromType(AUDIO_DEVICE_IN_TELEPHONY_RX); in updateCallRouting()
433 ALOG_ASSERT(!deviceList.isEmpty(), in updateCallRouting()
435 sp<DeviceDescriptor> rxSourceDeviceDesc = deviceList.itemAt(0); in updateCallRouting()
471 deviceList = mAvailableInputDevices.getDevicesFromType(txDevice); in updateCallRouting()
472 ALOG_ASSERT(!deviceList.isEmpty(), in updateCallRouting()
474 sp<DeviceDescriptor> txSourceDeviceDesc = deviceList.itemAt(0); in updateCallRouting()
[all …]
/frameworks/base/media/java/android/media/
DAudioManager.java4295 AudioDeviceInfo[] deviceList = new AudioDeviceInfo[numRecs]; in infoListFromPortList() local
4299 deviceList[slot++] = new AudioDeviceInfo(port); in infoListFromPortList()
4303 return deviceList; in infoListFromPortList()
4425 AudioDeviceInfo[] deviceList = in broadcastDeviceListChange() local
4428 Message.obtain(handler, MSG_DEVICES_CALLBACK_REGISTERED, deviceList)); in broadcastDeviceListChange()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java3388 List<BluetoothDevice> deviceList;
3394 deviceList = mA2dp.getConnectedDevices();
3395 if (deviceList.size() > 0) {
3396 btDevice = deviceList.get(0);
3414 deviceList = proxy.getConnectedDevices();
3415 if (deviceList.size() > 0) {
3416 btDevice = deviceList.get(0);
3434 deviceList = mBluetoothHeadset.getConnectedDevices();
3435 if (deviceList.size() > 0) {
3436 mBluetoothHeadsetDevice = deviceList.get(0);