/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/ble/ |
D | CarBlePeripheralManager.java | 160 BleDevice connectedDevice = getConnectedDevice(); in disconnectDevice() local 161 if (connectedDevice == null || !deviceId.equals(connectedDevice.mDeviceId)) { in disconnectDevice() 315 BleDevice connectedDevice = getConnectedDevice(); in getConnectedDeviceChannel() local 316 if (connectedDevice == null) { in getConnectedDeviceChannel() 320 return connectedDevice.mSecureChannel; in getConnectedDeviceChannel() 325 BleDevice connectedDevice = getConnectedDevice(); in setDeviceId() local 326 if (connectedDevice == null) { in setDeviceId() 331 connectedDevice.mDeviceId = deviceId; in setDeviceId() 389 BleDevice connectedDevice = getConnectedDevice(); in setMtuSize() local 390 if (connectedDevice != null in setMtuSize() [all …]
|
D | CarBleCentralManager.java | 267 BleDevice connectedDevice = getConnectedDevice(gatt); 268 if (connectedDevice == null) { 274 deviceConnected(connectedDevice); 277 deviceDisconnected(connectedDevice, status); 293 BleDevice connectedDevice = getConnectedDevice(gatt); 294 if (connectedDevice == null) { 299 ignoreDevice(connectedDevice); 304 connectedDevice.mState = BleDeviceState.CONNECTED;
|
D | CarBleManager.java | 144 for (BleDevice connectedDevice : mConnectedDevices) { in getConnectedDevice() 145 if (device.equals(connectedDevice.mDevice)) { in getConnectedDevice() 146 return connectedDevice; in getConnectedDevice()
|
/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/ |
D | ConnectedDeviceManagerTest.java | 148 ConnectedDevice connectedDevice = in getActiveUserConnectedDevices_reflectsSecureChannelEstablished() local 150 assertThat(connectedDevice.hasSecureChannel()).isTrue(); in getActiveUserConnectedDevices_reflectsSecureChannelEstablished() 224 ConnectedDevice connectedDevice = deviceCaptor.getValue(); in connectionCallback_onDeviceConnectedInvokedForNewlyConnectedDevice() local 225 assertThat(connectedDevice.getDeviceId()).isEqualTo(deviceId); in connectionCallback_onDeviceConnectedInvokedForNewlyConnectedDevice() 226 assertThat(connectedDevice.hasSecureChannel()).isFalse(); in connectionCallback_onDeviceConnectedInvokedForNewlyConnectedDevice() 301 ConnectedDevice connectedDevice = in registerDeviceCallback_blacklistsDuplicateRecipientId() local 316 mConnectedDeviceManager.registerDeviceCallback(connectedDevice, mRecipientId, in registerDeviceCallback_blacklistsDuplicateRecipientId() 318 mConnectedDeviceManager.registerDeviceCallback(connectedDevice, mRecipientId, in registerDeviceCallback_blacklistsDuplicateRecipientId() 321 mConnectedDeviceManager.onMessageReceived(connectedDevice.getDeviceId(), message); in registerDeviceCallback_blacklistsDuplicateRecipientId() 325 .onDeviceError(connectedDevice, DEVICE_ERROR_INSECURE_RECIPIENT_ID_DETECTED); in registerDeviceCallback_blacklistsDuplicateRecipientId() [all …]
|
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/ |
D | ConnectedDeviceManager.java | 544 InternalConnectedDevice connectedDevice = mConnectedDevices.get(deviceId); in sendMessage() local 545 if (connectedDevice == null) { in sendMessage() 550 if (isEncrypted && !connectedDevice.mConnectedDevice.hasSecureChannel()) { in sendMessage() 555 connectedDevice.mCarBleManager.sendMessage(deviceId, in sendMessage() 577 InternalConnectedDevice connectedDevice = mConnectedDevices.get(deviceId); in blacklistRecipient() local 578 if (connectedDevice != null) { in blacklistRecipient() 581 callback.onDeviceError(connectedDevice.mConnectedDevice, in blacklistRecipient() 597 ConnectedDevice connectedDevice = new ConnectedDevice( in addConnectedDevice() local 604 mConnectedDevices.put(deviceId, new InternalConnectedDevice(connectedDevice, bleManager)); in addConnectedDevice() 605 invokeConnectionCallbacks(connectedDevice.isAssociatedWithActiveUser(), in addConnectedDevice() [all …]
|
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/model/ |
D | ConnectedDevice.java | 85 ConnectedDevice connectedDevice = (ConnectedDevice) obj; in equals() local 86 return Objects.equals(mDeviceId, connectedDevice.mDeviceId) in equals() 87 && Objects.equals(mDeviceName, connectedDevice.mDeviceName) in equals() 88 && mBelongsToActiveUser == connectedDevice.mBelongsToActiveUser in equals() 89 && mHasSecureChannel == connectedDevice.mHasSecureChannel; in equals()
|
/packages/apps/Settings/src/com/android/settings/media/ |
D | MediaOutputSlice.java | 87 final MediaDevice connectedDevice = getWorker().getCurrentConnectedMediaDevice(); in getSlice() local 88 if (connectedDevice != null) { in getSlice() 89 listBuilder.addRow(getActiveDeviceHeaderRow(connectedDevice)); in getSlice() 93 if (connectedDevice == null in getSlice() 94 || !TextUtils.equals(connectedDevice.getId(), device.getId())) { in getSlice()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/media/ |
D | MediaOutputSlice.java | 86 final MediaDevice connectedDevice = getWorker().getCurrentConnectedMediaDevice(); in getSlice() local 87 final ListBuilder listBuilder = buildActiveDeviceHeader(connectedDevice); in getSlice() 90 if (!TextUtils.equals(connectedDevice.getId(), device.getId())) { in getSlice()
|
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/ |
D | UsbHostManagementActivity.java | 78 UsbDevice connectedDevice = getDevice(); in processDevice() local 80 if (connectedDevice != null) { in processDevice() 81 mController.processDevice(connectedDevice); in processDevice()
|
/packages/apps/Car/CompanionDeviceSupport/tests/unit/src/com/android/car/companiondevicesupport/api/external/ |
D | ConnectedDeviceManagerBinderTest.java | 81 ConnectedDevice connectedDevice = new ConnectedDevice(UUID.randomUUID().toString(), in getActiveUserConnectedDevices_mirrorsConnectedDeviceManager() local 84 CompanionDevice expectedDevice = new CompanionDevice(connectedDevice); in getActiveUserConnectedDevices_mirrorsConnectedDeviceManager() 86 .thenReturn(Collections.singletonList(connectedDevice)); in getActiveUserConnectedDevices_mirrorsConnectedDeviceManager()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CallAudioRouteStateMachine.java | 1610 BluetoothDevice connectedDevice = in setBluetoothOn() local 1612 if (address == null && connectedDevice != null) { in setBluetoothOn() 1619 mBluetoothRouteManager.connectBluetoothAudio(connectedDevice.getAddress()); in setBluetoothOn() 1622 if (connectedDevice == null || !Objects.equals(address, connectedDevice.getAddress())) { in setBluetoothOn()
|
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/storage/ |
D | AssociatedDeviceDao.java | 50 void removeAssociatedDevice(AssociatedDeviceEntity connectedDevice); in removeAssociatedDevice() argument
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/ |
D | HearingAidService.java | 257 for (BluetoothDevice connectedDevice : getConnectedDevices()) { in connect() 258 disconnect(connectedDevice); in connect()
|