Home
last modified time | relevance | path

Searched refs:devices (Results 1 – 25 of 65) sorted by relevance

123

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/
DBluetoothScanner.java98 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/
DShortcutsUpdater.java59 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/
DMediaDeviceUpdateWorkerTest.java97 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/
DBluetoothProfileDeviceManagerTest.java213 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/
DBluetoothSummaryUpdater.java95 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/
DBluetoothSummaryUpdater.java95 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/
DBluetoothProfileDeviceManager.java393 ArrayList<BluetoothDevice> devices = new ArrayList<>(); in load() local
397 devices.add(device); in load()
405 mPrioritizedDevices = devices; in load()
408 logd("Loaded Priority list: " + devices); in load()
447 ArrayList<BluetoothDevice> devices = getDeviceListSnapshot(); in sync() local
448 for (BluetoothDevice device : devices) { in sync()
462 ArrayList<BluetoothDevice> devices = new ArrayList<>(); in getDeviceListSnapshot() local
464 devices = (ArrayList) mPrioritizedDevices.clone(); in getDeviceListSnapshot()
466 return devices; in getDeviceListSnapshot()
802 ArrayList<BluetoothDevice> devices = getDeviceListSnapshot(); in dump() local
[all …]
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbUtil.java36 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/
DHearingAidService.java335 List<BluetoothDevice> devices = new ArrayList<>(); in getConnectedDevices() local
338 devices.add(sm.getDevice()); in getConnectedDevices()
341 return devices; in getConnectedDevices()
393 ArrayList<BluetoothDevice> devices = new ArrayList<>(); in getDevicesMatchingConnectionStates() local
395 return devices; in getDevicesMatchingConnectionStates()
399 return devices; in getDevicesMatchingConnectionStates()
414 devices.add(device); in getDevicesMatchingConnectionStates()
419 return devices; in getDevicesMatchingConnectionStates()
430 List<BluetoothDevice> devices = new ArrayList<>(); in getDevices() local
433 devices.add(sm.getDevice()); in getDevices()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sound/
DAudioSwitchPreferenceController.java200 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/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/trust/ui/
DTrustedDeviceDetailFragment.java105 private void setTrustedDevices(List<TrustedDevice> devices) { in setTrustedDevices() argument
106 if (devices == null) { in setTrustedDevices()
111 if (devices.isEmpty()) { in setTrustedDevices()
116 if (devices.size() > 1) { in setTrustedDevices()
121 TrustedDevice device = devices.get(0); in setTrustedDevices()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/media/
DMediaDeviceUpdateWorker.java77 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()
DMediaOutputSlice.java84 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/Settings/src/com/android/settings/media/
DMediaDeviceUpdateWorker.java78 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()
DMediaOutputSlice.java85 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/apps/Car/Settings/tests/robotests/src/com/android/car/settings/security/
DTrustedDeviceEntryPreferenceControllerTest.java86 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/Settings/src/com/android/settings/sound/
DAudioSwitchPreferenceController.java196 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/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/trust/
DTrustedDeviceManager.java296 List<CompanionDevice> devices = new ArrayList<>(); in getActiveUserConnectedDevices() local
300 return devices; in getActiveUserConnectedDevices()
303 devices = manager.getActiveUserConnectedDevices(); in getActiveUserConnectedDevices()
307 return devices; in getActiveUserConnectedDevices()
626 List<TrustedDevice> devices = getTrustedDevicesForActiveUser();
627 if (devices == null || devices.isEmpty()) {
631 for (TrustedDevice trustedDevice : devices) {
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java312 List<BluetoothDevice> devices = new ArrayList<>(); in getConnectedDevices() local
315 devices.add(sm.getDevice()); in getConnectedDevices()
318 return devices; in getConnectedDevices()
392 List<BluetoothDevice> devices = new ArrayList<>(); in getDevicesMatchingConnectionStates() local
394 return devices; in getDevicesMatchingConnectionStates()
398 return devices; in getDevicesMatchingConnectionStates()
413 devices.add(device); in getDevicesMatchingConnectionStates()
418 return devices; in getDevicesMatchingConnectionStates()
429 List<BluetoothDevice> devices = new ArrayList<>(); in getDevices() local
432 devices.add(sm.getDevice()); in getDevices()
[all …]
/packages/apps/Car/Messenger/src/com/android/car/messenger/bluetooth/
DBluetoothHelper.java27 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/
DBluetoothPairListLiveData.java73 Set<BluetoothDevice> devices = mBluetoothAdapter.getBondedDevices(); in updateList() local
74 L.d(TAG, "updateList to %s", devices); in updateList()
75 setValue(devices); in updateList()
/packages/services/Telecomm/src/com/android/server/telecom/
DWiredHeadsetManager.java53 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/
DHeadsetService.java793 ArrayList<BluetoothDevice> devices = new ArrayList<>(); in getConnectedDevices() local
797 devices.add(stateMachine.getDevice()); in getConnectedDevices()
801 return devices; in getConnectedDevices()
813 ArrayList<BluetoothDevice> devices = new ArrayList<>(); in getDevicesMatchingConnectionStates() local
816 return devices; in getDevicesMatchingConnectionStates()
820 return devices; in getDevicesMatchingConnectionStates()
830 devices.add(device); in getDevicesMatchingConnectionStates()
836 return devices; in getDevicesMatchingConnectionStates()
1239 ArrayList<BluetoothDevice> devices = new ArrayList<>(); in getNonIdleAudioDevices() local
1243 devices.add(stateMachine.getDevice()); in getNonIdleAudioDevices()
[all …]
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioZone.java82 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/TvSettings/Settings/src/com/android/tv/settings/accessories/
DAddAccessoryPreferenceFragment.java77 public void updateList(List<BluetoothDevice> devices, String currentTargetAddress, in updateList() argument
89 if (devices == null) { in updateList()
94 for (BluetoothDevice bt : devices) { in updateList()

123