Home
last modified time | relevance | path

Searched refs:connectedDevice (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAudioRoutingManager.java260 AudioRoutingDevice connectedDevice = getAudioRoutingDevice(device); in handleProfileConnected() local
261 if (connectedDevice.connectedProfiles.contains(profile)) { in handleProfileConnected()
265 connectedDevice.connectedProfiles.add(profile); in handleProfileConnected()
266 if (!shouldActivateWhenConnected(connectedDevice)) { in handleProfileConnected()
269 if (!connectedDevice.canActivateNow(profile)) { in handleProfileConnected()
272 () -> activateDeviceProfile(connectedDevice, profile), in handleProfileConnected()
273 connectedDevice, in handleProfileConnected() local
277 activateDeviceProfile(connectedDevice, profile); in handleProfileConnected()
672 private boolean shouldActivateWhenConnected(AudioRoutingDevice connectedDevice) { in shouldActivateWhenConnected() argument
673 BluetoothDevice device = connectedDevice.device; in shouldActivateWhenConnected()
[all …]
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbHostManagementActivity.java81 UsbDevice connectedDevice = getDevice(); in processDevice() local
83 if (connectedDevice != null) { in processDevice()
84 Log.d(TAG, "Processing device: " + connectedDevice.getProductName()); in processDevice()
85 mController.processDevice(connectedDevice); in processDevice()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothManager.java91 for (BluetoothDevice connectedDevice : connectedDevices) { in getConnectionState()
92 if (device.equals(connectedDevice)) { in getConnectionState()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioRouteStateMachine.java1792 BluetoothDevice connectedDevice = in setBluetoothOn() local
1794 if (address == null && connectedDevice != null) { in setBluetoothOn()
1801 mBluetoothRouteManager.connectBluetoothAudio(connectedDevice.getAddress()); in setBluetoothOn()
1804 if (connectedDevice == null || !Objects.equals(address, connectedDevice.getAddress())) { in setBluetoothOn()
2018 for (BluetoothDevice connectedDevice: connectedBtDevices) { in isWatchActiveOrOnlyWatchesAvailable()
2019 if (mBluetoothRouteManager.isWatch(connectedDevice)) { in isWatchActiveOrOnlyWatchesAvailable()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hearingaid/
DHearingAidService.java260 for (BluetoothDevice connectedDevice : getConnectedDevices()) { in connect()
261 disconnect(connectedDevice); in connect()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/
DHeadsetService.java2142 BluetoothDevice connectedDevice = audioConnectableDevices.get(0); in isInbandRingingEnabled() local
2143 BluetoothSinkAudioPolicy callAudioPolicy = getHfpCallAudioPolicy(connectedDevice); in isInbandRingingEnabled()