/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sound/ |
D | HandsFreeProfileOutputPreferenceController.java | 66 final BluetoothDevice btDevice = mConnectedDevices.get(connectedDeviceIndex); in onPreferenceChange() 75 if (mConnectedDevices != null) { in getConnectedDeviceIndex() 76 for (int i = 0, size = mConnectedDevices.size(); i < size; i++) { in getConnectedDeviceIndex() 77 final BluetoothDevice btDevice = mConnectedDevices.get(i); in getConnectedDeviceIndex() 103 mConnectedDevices.clear(); in updateState() 104 mConnectedDevices.addAll(getConnectedHfpDevices()); in updateState() 105 mConnectedDevices.addAll(getConnectedHearingAidDevices()); in updateState() 107 final int numDevices = mConnectedDevices.size(); in updateState() 132 return mConnectedDevices.size(); in getDefaultDeviceIndex() 144 for (int i = 0, size = mConnectedDevices.size(); i < size; i++) { in setupPreferenceEntries() [all …]
|
D | AudioSwitchPreferenceController.java | 70 protected final List<BluetoothDevice> mConnectedDevices; field in AudioSwitchPreferenceController 96 mConnectedDevices = new ArrayList<>(); in AudioSwitchPreferenceController() 281 if (btDevice != null && mConnectedDevices.contains(btDevice)) { in findActiveHearingAidDevice()
|
/packages/apps/Settings/src/com/android/settings/sound/ |
D | HandsFreeProfileOutputPreferenceController.java | 66 final BluetoothDevice btDevice = mConnectedDevices.get(connectedDeviceIndex); in onPreferenceChange() 75 if (mConnectedDevices != null) { in getConnectedDeviceIndex() 76 for (int i = 0, size = mConnectedDevices.size(); i < size; i++) { in getConnectedDeviceIndex() 77 final BluetoothDevice btDevice = mConnectedDevices.get(i); in getConnectedDeviceIndex() 103 mConnectedDevices.clear(); in updateState() 104 mConnectedDevices.addAll(getConnectedHfpDevices()); in updateState() 105 mConnectedDevices.addAll(getConnectedHearingAidDevices()); in updateState() 107 final int numDevices = mConnectedDevices.size(); in updateState() 132 return mConnectedDevices.size(); in getDefaultDeviceIndex() 144 for (int i = 0, size = mConnectedDevices.size(); i < size; i++) { in setupPreferenceEntries() [all …]
|
D | AudioSwitchPreferenceController.java | 68 protected final List<BluetoothDevice> mConnectedDevices; field in AudioSwitchPreferenceController 92 mConnectedDevices = new ArrayList<>(); in AudioSwitchPreferenceController() 252 if (btDevice != null && mConnectedDevices.contains(btDevice)) { in findActiveHearingAidDevice()
|
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/ble/ |
D | CarBleManager.java | 43 final CopyOnWriteArraySet<BleDevice> mConnectedDevices = new CopyOnWriteArraySet<>(); field in CarBleManager 61 for (BleDevice device : mConnectedDevices) { in stop() 66 mConnectedDevices.clear(); in stop() 129 for (BleDevice device : mConnectedDevices) { in getConnectedDevice() 144 for (BleDevice connectedDevice : mConnectedDevices) { in getConnectedDevice() 159 for (BleDevice device : mConnectedDevices) { in getConnectedDevice() 170 mConnectedDevices.add(device); in addConnectedDevice() 175 return mConnectedDevices.size(); in getConnectedDevicesCount() 180 mConnectedDevices.remove(device); in removeConnectedDevice()
|
D | CarBlePeripheralManager.java | 173 mConnectedDevices.clear(); in reset() 178 for (BleDevice device : mConnectedDevices) { in connectToDevice() 207 if (mConnectedDevices.isEmpty()) { in getConnectedDevice() 210 return mConnectedDevices.iterator().next(); in getConnectedDevice()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/ |
D | AudioOutputSwitchPreferenceControllerTest.java | 256 mController.mConnectedDevices.clear(); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice() 257 mController.mConnectedDevices.add(mBluetoothDevice); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice() 258 mController.mConnectedDevices.add(mLeftBluetoothHapDevice); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice() 274 mController.mConnectedDevices.clear(); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice() 275 mController.mConnectedDevices.add(mBluetoothDevice); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice() 276 mController.mConnectedDevices.add(mRightBluetoothHapDevice); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice() 292 mController.mConnectedDevices.clear(); in findActiveHearingAidDevice_twoActiveDevice_returnActiveDeviceInConnectedDevices() 293 mController.mConnectedDevices.add(mBluetoothDevice); in findActiveHearingAidDevice_twoActiveDevice_returnActiveDeviceInConnectedDevices() 294 mController.mConnectedDevices.add(mRightBluetoothHapDevice); in findActiveHearingAidDevice_twoActiveDevice_returnActiveDeviceInConnectedDevices() 310 mController.mConnectedDevices.clear(); in findActiveHearingAidDevice_noActiveDevice_returnNull() [all …]
|
D | HandsFreeProfileOutputPreferenceControllerTest.java | 399 assertThat(mController.mConnectedDevices.contains(mLeftBluetoothHapDevice)).isTrue(); in updateState_hapBtDeviceWithSameId_shouldSetActivatedDeviceName() 400 assertThat(mController.mConnectedDevices.contains(mRightBluetoothHapDevice)).isFalse(); in updateState_hapBtDeviceWithSameId_shouldSetActivatedDeviceName() 431 assertThat(mController.mConnectedDevices.contains(mRightBluetoothHapDevice)).isTrue(); in updateState_hapBtDeviceWithSameIdButDifferentOrder_shouldSetActivatedDeviceName() 432 assertThat(mController.mConnectedDevices.contains(mLeftBluetoothHapDevice)).isFalse(); in updateState_hapBtDeviceWithSameIdButDifferentOrder_shouldSetActivatedDeviceName() 463 assertThat(mController.mConnectedDevices).containsExactly(mBluetoothDevice, in updateState_hapBtDeviceWithDifferentId_shouldSetActivatedDeviceName() 489 mController.mConnectedDevices.clear(); in onPreferenceChange_toBtDevice_shouldSetBtDeviceName() 490 mController.mConnectedDevices.add(mBluetoothDevice); in onPreferenceChange_toBtDevice_shouldSetBtDeviceName() 508 mController.mConnectedDevices.clear(); in onPreferenceChange_toBtDevices_shouldSetSecondBtDeviceName() 509 mController.mConnectedDevices.add(mBluetoothDevice); in onPreferenceChange_toBtDevices_shouldSetSecondBtDeviceName() 510 mController.mConnectedDevices.add(secondBluetoothDevice); in onPreferenceChange_toBtDevices_shouldSetSecondBtDeviceName() [all …]
|
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/ |
D | ConnectedDeviceManager.java | 95 private final Map<String, InternalConnectedDevice> mConnectedDevices = field in ConnectedDeviceManager 212 for (InternalConnectedDevice device : mConnectedDevices.values()) { in reset() 224 for (InternalConnectedDevice device : mConnectedDevices.values()) { in getActiveUserConnectedDevices() 304 if (mConnectedDevices.containsKey(userDevice.getDeviceId())) { in connectToActiveUserDeviceInternal() 392 InternalConnectedDevice device = mConnectedDevices.get(deviceId); in disconnectDevice() 544 InternalConnectedDevice connectedDevice = mConnectedDevices.get(deviceId); in sendMessage() 577 InternalConnectedDevice connectedDevice = mConnectedDevices.get(deviceId); in blacklistRecipient() 592 if (mConnectedDevices.containsKey(deviceId)) { in addConnectedDevice() 604 mConnectedDevices.put(deviceId, new InternalConnectedDevice(connectedDevice, bleManager)); in addConnectedDevice() 624 mConnectedDevices.remove(deviceId); in removeConnectedDevice() [all …]
|
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/activity/ |
D | AssociatedDeviceViewModel.java | 67 private List<CompanionDevice> mConnectedDevices = new ArrayList<>(); field in AssociatedDeviceViewModel 247 if (mAssociatedDevices.isEmpty() || mConnectedDevices.isEmpty()) { in isConnected() 251 String connectedDeviceId = mConnectedDevices.get(0).getDeviceId(); in isConnected() 261 mConnectedDevices = connectedDevices; in setConnectedDevices() 387 mConnectedDevices.add(companionDevice); 393 mConnectedDevices.removeIf(d -> d.getDeviceId().equals(companionDevice.getDeviceId()));
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/p2p/ |
D | WifiP2pSettings.java | 86 private int mConnectedDevices; field in WifiP2pSettings 474 if (mConnectedDevices > 1) { in onCreateDialog() 476 deviceName, mConnectedDevices - 1); in onCreateDialog() 562 mConnectedDevices = 0; in handlePeersChanged() 567 if (peer.status == WifiP2pDevice.CONNECTED) mConnectedDevices++; in handlePeersChanged() 569 if (DBG) Log.d(TAG, " mConnectedDevices " + mConnectedDevices); in handlePeersChanged()
|
/packages/apps/Settings/src/com/android/settings/wifi/p2p/ |
D | WifiP2pSettings.java | 87 private int mConnectedDevices; field in WifiP2pSettings 471 if (mConnectedDevices > 1) { in onCreateDialog() 473 deviceName, mConnectedDevices - 1); in onCreateDialog() 559 mConnectedDevices = 0; in handlePeersChanged() 564 if (peer.status == WifiP2pDevice.CONNECTED) mConnectedDevices++; in handlePeersChanged() 566 if (DBG) Log.d(TAG, " mConnectedDevices " + mConnectedDevices); in handlePeersChanged()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDetailsProfilesControllerTest.java | 92 private Set<BluetoothDevice> mConnectedDevices = new HashSet<>(); field in BluetoothDetailsProfilesControllerTest.FakeBluetoothProfile 119 if (mConnectedDevices.contains(device)) { in getConnectionStatus()
|