/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/ |
D | BluetoothScanner.java | 98 public void onScanningStopped(ArrayList<Device> devices) { in onScanningStopped() argument 165 public final ArrayList<Device> devices; field in BluetoothScanner.ClientRecord 170 devices = new ArrayList<>(); in ClientRecord() 235 newClient.devices.add(target); in startListening() 328 for (int devPtr = client.devices.size() - 1; devPtr > -1; devPtr--) { in removeDevice() 329 Device d = client.devices.get(devPtr); in removeDevice() 331 client.devices.remove(devPtr); in removeDevice() 483 client.listener.onScanningStopped(client.devices); in sendScanningStopped() 494 client.devices.add(device); in sendDeviceAdded() 508 for (int ptr = client.devices.size() - 1; ptr > -1; ptr--) { in sendDeviceChanged() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | ShortcutsUpdater.java | 59 List<ShortcutInfo> devices = getDeviceShortcuts(roots); in update() local 61 for (ShortcutInfo s : devices) { in update() 65 mgr.setDynamicShortcuts(devices.subList(0, getNumDynSlots(mgr, devices.size()))); in update() 84 List<ShortcutInfo> devices = new ArrayList<>(); in getDeviceShortcuts() local 97 devices.add(0, createShortcut(root, R.drawable.ic_advanced_shortcut)); in getDeviceShortcuts() 101 devices.add(0, createShortcut(root, R.drawable.ic_folder_shortcut)); in getDeviceShortcuts() 113 return devices; in getDeviceShortcuts()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/media/ |
D | MediaDeviceUpdateWorkerTest.java | 97 final List<MediaDevice> devices = mMediaDeviceUpdateWorker.getMediaDevices(); in onDeviceListUpdate_sameDeviceList_shouldBeEqual() local 99 assertThat(devices.get(0).getId()).isEqualTo(newDevices.get(0).getId()); in onDeviceListUpdate_sameDeviceList_shouldBeEqual() 100 assertThat(devices.get(1).getId()).isEqualTo(newDevices.get(1).getId()); in onDeviceListUpdate_sameDeviceList_shouldBeEqual() 115 final List<MediaDevice> devices = mMediaDeviceUpdateWorker.getMediaDevices(); in onDeviceListUpdate_add1DeviceToDeviceList_shouldBeEqual() local 117 assertThat(devices.size()).isEqualTo(newDevices.size()); in onDeviceListUpdate_add1DeviceToDeviceList_shouldBeEqual() 128 final List<MediaDevice> devices = mMediaDeviceUpdateWorker.getMediaDevices(); in onDeviceListUpdate_less1DeviceToDeviceList_shouldBeEqual() local 130 assertThat(devices.size()).isEqualTo(newDevices.size()); in onDeviceListUpdate_less1DeviceToDeviceList_shouldBeEqual()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | BluetoothProfileDeviceManagerTest.java | 213 String devices = Settings.Secure.getStringForUser(mMockContext.getContentResolver(), in getSettingsDeviceList() local 215 if (devices == null) devices = ""; in getSettingsDeviceList() 216 return devices; in getSettingsDeviceList() 220 ArrayList<BluetoothDevice> devices = new ArrayList<>(); in makeDeviceList() local 224 devices.add(device); in makeDeviceList() 226 return devices; in makeDeviceList() 234 List<String> devices) { in setPreconditionsAndStart() argument 255 for (BluetoothDevice device : makeDeviceList(devices)) { in setPreconditionsAndStart() 338 ArrayList<BluetoothDevice> devices = mProfileDeviceManager.getDeviceListSnapshot(); in assertDeviceList() local 340 Assert.assertEquals(expectedDevices, devices); in assertDeviceList() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/ |
D | BluetoothSummaryUpdater.java | 95 final Set<BluetoothDevice> devices = mBluetoothAdapter.getBondedDevices(); in getConnectedDeviceSummary() local 96 if (devices == null) { in getConnectedDeviceSummary() 99 } else if (devices.isEmpty()) { in getConnectedDeviceSummary() 103 for (BluetoothDevice device : devices) { in getConnectedDeviceSummary() 114 + devices.size()); in getConnectedDeviceSummary() 115 for (BluetoothDevice device : devices) { in getConnectedDeviceSummary()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothSummaryUpdater.java | 95 final Set<BluetoothDevice> devices = mBluetoothAdapter.getBondedDevices(); in getConnectedDeviceSummary() local 96 if (devices == null) { in getConnectedDeviceSummary() 99 } else if (devices.isEmpty()) { in getConnectedDeviceSummary() 103 for (BluetoothDevice device : devices) { in getConnectedDeviceSummary() 114 + devices.size()); in getConnectedDeviceSummary() 115 for (BluetoothDevice device : devices) { in getConnectedDeviceSummary()
|
/packages/services/Car/service/src/com/android/car/ |
D | BluetoothProfileDeviceManager.java | 384 ArrayList<BluetoothDevice> devices = new ArrayList<>(); in load() local 388 devices.add(device); in load() 396 mPrioritizedDevices = devices; in load() 399 logd("Loaded Priority list: " + devices); in load() 438 ArrayList<BluetoothDevice> devices = getDeviceListSnapshot(); in sync() local 439 for (BluetoothDevice device : devices) { in sync() 453 ArrayList<BluetoothDevice> devices = new ArrayList<>(); in getDeviceListSnapshot() local 455 devices = (ArrayList) mPrioritizedDevices.clone(); in getDeviceListSnapshot() 457 return devices; in getDeviceListSnapshot() 785 ArrayList<BluetoothDevice> devices = getDeviceListSnapshot(); in dump() local [all …]
|
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/ |
D | UsbUtil.java | 36 HashMap<String, UsbDevice> devices = usbManager.getDeviceList(); in findAllPossibleAndroidDevices() local 37 ArrayList<UsbDevice> androidDevices = new ArrayList<>(devices.size()); in findAllPossibleAndroidDevices() 38 for (UsbDevice device : devices.values()) { in findAllPossibleAndroidDevices() 88 HashMap<String, UsbDevice> devices = usbManager.getDeviceList(); in isDeviceConnected() local 89 for (UsbDevice dev : devices.values()) { in isDeviceConnected()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/ |
D | HearingAidService.java | 319 List<BluetoothDevice> devices = new ArrayList<>(); in getConnectedDevices() local 322 devices.add(sm.getDevice()); in getConnectedDevices() 325 return devices; in getConnectedDevices() 378 ArrayList<BluetoothDevice> devices = new ArrayList<>(); in getDevicesMatchingConnectionStates() local 380 return devices; in getDevicesMatchingConnectionStates() 384 return devices; in getDevicesMatchingConnectionStates() 399 devices.add(device); in getDevicesMatchingConnectionStates() 404 return devices; in getDevicesMatchingConnectionStates() 415 List<BluetoothDevice> devices = new ArrayList<>(); in getDevices() local 418 devices.add(sm.getDevice()); in getDevices() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sound/ |
D | AudioSwitchPreferenceController.java | 200 final List<BluetoothDevice> devices = hfpProfile.getConnectedDevices(); in getConnectedHfpDevices() local 201 for (BluetoothDevice device : devices) { in getConnectedHfpDevices() 231 final List<BluetoothDevice> devices = hapProfile.getConnectedDevices(); in getConnectedHearingAidDevices() local 232 for (BluetoothDevice device : devices) { in getConnectedHearingAidDevices() 256 final List<BluetoothDevice> devices = hapProfile.getConnectableDevices(); in getConnectableHearingAidDevices() local 257 for (BluetoothDevice device : devices) { in getConnectableHearingAidDevices() 325 public void onAudioDevicesRemoved(AudioDeviceInfo[] devices) { in onAudioDevicesRemoved() argument
|
/packages/apps/Settings/src/com/android/settings/media/ |
D | MediaDeviceUpdateWorker.java | 78 public void onDeviceListUpdate(List<MediaDevice> devices) { in onDeviceListUpdate() argument 79 buildMediaDevices(devices); in onDeviceListUpdate() 83 private void buildMediaDevices(List<MediaDevice> devices) { in buildMediaDevices() argument 85 mMediaDevices.addAll(devices); in buildMediaDevices()
|
D | MediaOutputSlice.java | 85 final List<MediaDevice> devices = getMediaDevices(); in getSlice() local 92 for (MediaDevice device : devices) { in getSlice() 142 final List<MediaDevice> devices = getWorker().getMediaDevices(); in getMediaDevices() local 143 return devices; in getMediaDevices()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/media/ |
D | MediaDeviceUpdateWorker.java | 77 public void onDeviceListUpdate(List<MediaDevice> devices) { in onDeviceListUpdate() argument 78 buildMediaDevices(devices); in onDeviceListUpdate() 82 private void buildMediaDevices(List<MediaDevice> devices) { in buildMediaDevices() argument 84 mMediaDevices.addAll(devices); in buildMediaDevices()
|
D | MediaOutputSlice.java | 84 final List<MediaDevice> devices = getMediaDevices(); in getSlice() local 89 for (MediaDevice device : devices) { in getSlice() 141 final List<MediaDevice> devices = getWorker().getMediaDevices(); in getMediaDevices() local 142 return devices; in getMediaDevices()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/security/ |
D | TrustedDeviceEntryPreferenceControllerTest.java | 86 List<TrustedDeviceInfo> devices = new ArrayList<>(); in testUpdateState() local 87 devices.add(new TrustedDeviceInfo(1, "", "")); in testUpdateState() 88 devices.add(new TrustedDeviceInfo(2, "", "")); in testUpdateState() 91 .thenReturn(devices); in testUpdateState()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpService.java | 292 List<BluetoothDevice> devices = new ArrayList<>(); in getConnectedDevices() local 295 devices.add(sm.getDevice()); in getConnectedDevices() 298 return devices; in getConnectedDevices() 373 List<BluetoothDevice> devices = new ArrayList<>(); in getDevicesMatchingConnectionStates() local 375 return devices; in getDevicesMatchingConnectionStates() 379 return devices; in getDevicesMatchingConnectionStates() 394 devices.add(device); in getDevicesMatchingConnectionStates() 399 return devices; in getDevicesMatchingConnectionStates() 410 List<BluetoothDevice> devices = new ArrayList<>(); in getDevices() local 413 devices.add(sm.getDevice()); in getDevices() [all …]
|
/packages/apps/Settings/src/com/android/settings/sound/ |
D | AudioSwitchPreferenceController.java | 196 final List<BluetoothDevice> devices = hfpProfile.getConnectedDevices(); in getConnectedHfpDevices() local 197 for (BluetoothDevice device : devices) { in getConnectedHfpDevices() 227 final List<BluetoothDevice> devices = hapProfile.getConnectedDevices(); in getConnectedHearingAidDevices() local 228 for (BluetoothDevice device : devices) { in getConnectedHearingAidDevices() 294 public void onAudioDevicesRemoved(AudioDeviceInfo[] devices) { in onAudioDevicesRemoved() argument
|
/packages/apps/Car/Messenger/src/com/android/car/messenger/bluetooth/ |
D | BluetoothHelper.java | 27 Set<BluetoothDevice> devices = adapter.getBondedDevices(); in getPairedDevices() local 28 if (devices != null) { in getPairedDevices() 29 return devices; in getPairedDevices()
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/livedata/ |
D | BluetoothPairListLiveData.java | 74 Set<BluetoothDevice> devices = mBluetoothAdapter.getBondedDevices(); in updateList() local 75 L.d(TAG, "updateList to %s", devices); in updateList() 76 setValue(devices); in updateList()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | WiredHeadsetManager.java | 53 public void onAudioDevicesRemoved(AudioDeviceInfo[] devices) { in onAudioDevicesRemoved() argument 105 AudioDeviceInfo[] devices = mAudioManager.getDevices(AudioManager.GET_DEVICES_ALL); in isWiredHeadsetPluggedIn() local 107 for (AudioDeviceInfo device : devices) { in isWiredHeadsetPluggedIn()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetService.java | 755 ArrayList<BluetoothDevice> devices = new ArrayList<>(); in getConnectedDevices() local 759 devices.add(stateMachine.getDevice()); in getConnectedDevices() 763 return devices; in getConnectedDevices() 775 ArrayList<BluetoothDevice> devices = new ArrayList<>(); in getDevicesMatchingConnectionStates() local 778 return devices; in getDevicesMatchingConnectionStates() 782 return devices; in getDevicesMatchingConnectionStates() 792 devices.add(device); in getDevicesMatchingConnectionStates() 798 return devices; in getDevicesMatchingConnectionStates() 1169 ArrayList<BluetoothDevice> devices = new ArrayList<>(); in getNonIdleAudioDevices() local 1173 devices.add(stateMachine.getDevice()); in getNonIdleAudioDevices() [all …]
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioZone.java | 82 final List<AudioDeviceInfo> devices = new ArrayList<>(); in getAudioDeviceInfos() local 85 devices.add(group.getCarAudioDeviceInfoForBus(busNumber).getAudioDeviceInfo()); in getAudioDeviceInfos() 88 return devices; in getAudioDeviceInfos()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/connserv/ |
D | HfpClientConnectionService.java | 273 List<BluetoothDevice> devices = mHeadsetProfile.getConnectedDevices(); 274 if (devices == null) { 275 Log.w(TAG, "No connected or more than one connected devices found." + devices); 278 for (BluetoothDevice device : devices) {
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | AddAccessoryPreferenceFragment.java | 77 public void updateList(List<BluetoothDevice> devices, String currentTargetAddress, in updateList() argument 89 if (devices == null) { in updateList() 94 for (BluetoothDevice bt : devices) { in updateList()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/ |
D | PanService.java | 420 List<BluetoothDevice> devices = in getConnectedDevices() local 422 return devices; in getConnectedDevices() 671 List<BluetoothDevice> devices = new ArrayList<BluetoothDevice>(); in getConnectedPanDevices() local 675 devices.add(device); in getConnectedPanDevices() 678 return devices; in getConnectedPanDevices()
|