/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/ |
D | AudioSharingDialogHandlerTest.java | 209 ImmutableList<BluetoothDevice> deviceList = ImmutableList.of(mDevice1); in handleUserTriggeredDeviceConnected_inCall_setActive() local 210 when(mAssistant.getAllConnectedDevices()).thenReturn(deviceList); in handleUserTriggeredDeviceConnected_inCall_setActive() 232 ImmutableList<BluetoothDevice> deviceList = ImmutableList.of(mDevice1); in handleUserTriggeredDeviceConnected_inCall_enableHysteresisFix_setAndSaveActive() local 233 when(mAssistant.getAllConnectedDevices()).thenReturn(deviceList); in handleUserTriggeredDeviceConnected_inCall_enableHysteresisFix_setAndSaveActive() 248 ImmutableList<BluetoothDevice> deviceList = ImmutableList.of(mDevice2); in handleUserTriggeredNonLeaDeviceConnected_noSharing_setActive() local 249 when(mAssistant.getAllConnectedDevices()).thenReturn(deviceList); in handleUserTriggeredNonLeaDeviceConnected_noSharing_setActive() 261 ImmutableList<BluetoothDevice> deviceList = ImmutableList.of(mDevice2); in handleUserTriggeredNonLeaDeviceConnected_sharing_showStopDialog() local 262 when(mAssistant.getAllConnectedDevices()).thenReturn(deviceList); in handleUserTriggeredNonLeaDeviceConnected_sharing_showStopDialog() 300 ImmutableList<BluetoothDevice> deviceList = ImmutableList.of(mDevice1); in handleUserTriggeredLeaDeviceConnected_noSharingNoTwoLeaDevices_setActive() local 301 when(mAssistant.getAllConnectedDevices()).thenReturn(deviceList); in handleUserTriggeredLeaDeviceConnected_noSharingNoTwoLeaDevices_setActive() [all …]
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | HearingAidHelper.java | 63 final List<BluetoothDevice> deviceList = new ArrayList<>(); in getConnectedHearingAidDeviceList() local 66 deviceList.addAll(hapClientProfile.getConnectedDevices()); in getConnectedHearingAidDeviceList() 70 deviceList.addAll(hearingAidProfile.getConnectedDevices()); in getConnectedHearingAidDeviceList() 72 return deviceList.stream() in getConnectedHearingAidDeviceList() 83 final List<BluetoothDevice> deviceList = getConnectedHearingAidDeviceList(); in getConnectedHearingAidDevice() local 84 return deviceList.isEmpty() ? null : mCachedDeviceManager.findDevice(deviceList.get(0)); in getConnectedHearingAidDevice()
|
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/ |
D | BootUsbScanner.java | 29 HashMap<String, UsbDevice> deviceList = usbManager.getDeviceList(); in onReceive() local 30 if (deviceList.size() > 0) { in onReceive() 33 BootUsbService.USB_DEVICE_LIST_KEY, new ArrayList<>(deviceList.values())); in onReceive()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | AccessibilityHearingAidPreferenceControllerTest.java | 338 final List<BluetoothDevice> deviceList = new ArrayList<>(1); in generateHearingAidDeviceList() local 339 deviceList.add(mBluetoothDevice); in generateHearingAidDeviceList() 340 return deviceList; in generateHearingAidDeviceList() 345 final List<BluetoothDevice> deviceList = new ArrayList<>(2); in generateMultipleHearingAidDeviceList() local 346 deviceList.add(mBluetoothDevice); in generateMultipleHearingAidDeviceList() 347 deviceList.add(mSubBluetoothDevice); in generateMultipleHearingAidDeviceList() 348 return deviceList; in generateMultipleHearingAidDeviceList()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/stylus/ |
D | StylusUsbFirmwareControllerTest.java | 151 HashMap<String, UsbDevice> deviceList = new HashMap<>(); in attachUsbDevice() local 152 deviceList.put("0", mock(UsbDevice.class)); in attachUsbDevice() 153 when(mUsbManager.getDeviceList()).thenReturn(deviceList); in attachUsbDevice()
|
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/ |
D | WifiP2pDeviceList.java | 211 WifiP2pDeviceList deviceList = new WifiP2pDeviceList(); 215 deviceList.update((WifiP2pDevice)in.readParcelable(null)); 217 return deviceList;
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkService.java | 276 List<BluetoothDevice> deviceList = new ArrayList<>(); in getDevicesMatchingConnectionStates() local 284 deviceList.add(device); in getDevicesMatchingConnectionStates() 293 + deviceList.toString()); in getDevicesMatchingConnectionStates() 294 return deviceList; in getDevicesMatchingConnectionStates()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/ |
D | MapClientService.java | 223 List<BluetoothDevice> deviceList = new ArrayList<>(); in getDevicesMatchingConnectionStates() local 231 deviceList.add(device); in getDevicesMatchingConnectionStates() 235 Log.d(TAG, deviceList.toString()); in getDevicesMatchingConnectionStates() 236 return deviceList; in getDevicesMatchingConnectionStates()
|
/packages/modules/Uwb/ranging/test_app/app/src/main/java/com/android/ranging/rangingtestapp/ |
D | BleConnectionCentralFragment.java | 95 deviceList -> { in onViewCreated() 97 mConnectedBtDevicesArrayAdapterCentral.addAll(deviceList); in onViewCreated()
|
D | BleConnectionPeripheralFragment.java | 80 deviceList -> { in onViewCreated() 82 mConnectedBtDevicesArrayAdapterPeripheral.addAll(deviceList); in onViewCreated()
|
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/ |
D | BluetoothRouteManager.java | 861 Collection<BluetoothDevice> deviceList = mDeviceManager.getConnectedDevices(); in computeAddressToConnectTo() local 862 Optional<BluetoothDevice> matchingDevice = deviceList.stream() in computeAddressToConnectTo() 871 if (deviceList.size() > 0) { in computeAddressToConnectTo() 872 for (BluetoothDevice device : deviceList) { in computeAddressToConnectTo() 979 Collection<BluetoothDevice> deviceList = mDeviceManager.getConnectedDevices(); 980 Optional<BluetoothDevice> matchingDevice = deviceList.stream() 994 if (deviceList.size() > 0) { 995 for (BluetoothDevice device : deviceList) {
|
/packages/services/Telecomm/testapps/callaudiotest/src/com/android/server/telecom/callaudiotest/ |
D | CallAudioTestInCallService.java | 120 AudioDeviceInfo[] deviceList = audioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in getTelephonyDevice() local 121 for (AudioDeviceInfo device: deviceList) { in getTelephonyDevice()
|
/packages/modules/Wifi/tests/hostsidetests/multidevices/com.google.snippet.wifi/direct/ |
D | BundleUtils.java | 57 public static ArrayList<Bundle> fromWifiP2pDeviceList(WifiP2pDeviceList deviceList) { in fromWifiP2pDeviceList() argument 58 Collection<WifiP2pDevice> devices = deviceList.getDeviceList(); in fromWifiP2pDeviceList()
|
/packages/services/Car/service/src/com/android/car/bluetooth/ |
D | BluetoothDeviceManager.java | 359 List<String> deviceList = Arrays.asList(devicesStr.split(SETTINGS_DELIMITER)); in load() local 360 if (deviceList == null) { in load() 366 for (int i = 0; i < deviceList.size(); i++) { in load() 367 String address = deviceList.get(i); in load()
|
/packages/modules/Bluetooth/android/ChannelSoundingTestApp/app/src/main/java/com/android/bluetooth/channelsoundingtestapp/ |
D | BleConnectionFragment.java | 112 deviceList -> { in onViewCreated() 114 mBondedBtDevicesArrayAdapter.addAll(deviceList); in onViewCreated()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/ |
D | WifiP2pSettingsTest.java | 486 final ArrayList<WifiP2pDevice> deviceList = new ArrayList<>(); in peersCategoryController_withOnePeerDevice_shouldBeAvailable() local 487 deviceList.add(wifiP2pDevice); in peersCategoryController_withOnePeerDevice_shouldBeAvailable() 489 doReturn(deviceList).when(peers).getDeviceList(); in peersCategoryController_withOnePeerDevice_shouldBeAvailable() 498 final ArrayList<WifiP2pDevice> deviceList = new ArrayList<>(); in peersCategoryController_withNoPeerDevice_shouldBeUnavailable() local 500 doReturn(deviceList).when(peers).getDeviceList(); in peersCategoryController_withNoPeerDevice_shouldBeUnavailable()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbapclient/ |
D | PbapClientService.java | 605 List<BluetoothDevice> deviceList = new ArrayList<BluetoothDevice>(0); in getDevicesMatchingConnectionStates() local 614 deviceList.add(stateMachineEntry.getKey()); in getDevicesMatchingConnectionStates() 626 deviceList.add(stateMachineEntryOld.getKey()); in getDevicesMatchingConnectionStates() 633 return deviceList; in getDevicesMatchingConnectionStates()
|
D | PbapClientStateMachineOld.java | 476 List<BluetoothDevice> deviceList = new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates() local 480 deviceList.add(currentDevice); in getDevicesMatchingConnectionStates() 484 return deviceList; in getDevicesMatchingConnectionStates()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerService.java | 682 List<BluetoothDevice> deviceList = new ArrayList<>(); in getDevicesMatchingConnectionStates() local 689 deviceList.add(device); in getDevicesMatchingConnectionStates() 698 + deviceList.toString()); in getDevicesMatchingConnectionStates() 699 return deviceList; in getDevicesMatchingConnectionStates()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CallRecordingTonePlayer.java | 318 AudioDeviceInfo[] deviceList = audioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in getTelephonyDevice() local 319 for (AudioDeviceInfo device: deviceList) { in getTelephonyDevice()
|
/packages/modules/Bluetooth/android/leaudio/app/src/main/java/com/android/bluetooth/leaudio/ |
D | MainActivity.java | 211 List<LeAudioDeviceStateWrapper> deviceList = in setupLeAudioViewModel() 213 if (deviceList == null || deviceList.size() == 0) in setupLeAudioViewModel()
|
/packages/modules/Connectivity/tests/cts/multidevices/snippet/ |
D | Wifip2pMultiDevicesSnippet.kt | 186 return peers?.deviceList?.firstOrNull { it.deviceName == deviceName }?.deviceAddress in <lambda>() 301 wifip2pManager.requestPeers(wifip2pChannel) { peers -> peers?.deviceList?.any { in <lambda>()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothDetailsProfilesController.java | 196 List<CachedBluetoothDevice> deviceList = mProfileDeviceMap.get( in refreshProfilePreference() local 198 boolean isBusy = deviceList != null in refreshProfilePreference() 199 && deviceList.stream().anyMatch(item -> item.isBusy()); in refreshProfilePreference()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/sap/ |
D | SapService.java | 591 List<BluetoothDevice> deviceList = new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates() local 603 deviceList.add(device); in getDevicesMatchingConnectionStates() 608 return deviceList; in getDevicesMatchingConnectionStates()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/ |
D | BluetoothMapService.java | 614 List<BluetoothDevice> deviceList = new ArrayList<>(); in getDevicesMatchingConnectionStates() local 617 return deviceList; in getDevicesMatchingConnectionStates() 628 deviceList.add(device); in getDevicesMatchingConnectionStates() 633 return deviceList; in getDevicesMatchingConnectionStates()
|