Home
last modified time | relevance | path

Searched refs:batteryService (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DPhonePolicy.java317 BatteryService batteryService = mFactory.getBatteryService(); in processInitProfilePriorities() local
616 if ((batteryService != null) in processInitProfilePriorities()
618 && (batteryService.getConnectionPolicy(device) in processInitProfilePriorities()
622 batteryService.setConnectionPolicy( in processInitProfilePriorities()
1029 BatteryService batteryService = mFactory.getBatteryService(); in processConnectOtherProfiles() local
1101 if (batteryService != null) { in processConnectOtherProfiles()
1102 List<BluetoothDevice> connectedDevices = batteryService.getConnectedDevices(); in processConnectOtherProfiles()
1104 && (batteryService.getConnectionPolicy(device) in processConnectOtherProfiles()
1106 && (batteryService.getConnectionState(device) in processConnectOtherProfiles()
1109 batteryService.connect(device); in processConnectOtherProfiles()
DRemoteDevices.java1159 BatteryService batteryService = BatteryService.getBatteryService(); in aclStateChangeCallback() local
1160 if (batteryService != null && transportLinkType == BluetoothDevice.TRANSPORT_LE) { in aclStateChangeCallback()
1161 batteryService.connectIfPossible(device); in aclStateChangeCallback()
1192 BatteryService batteryService = BatteryService.getBatteryService(); in aclStateChangeCallback() local
1193 if (batteryService != null in aclStateChangeCallback()
1194 && batteryService.getConnectionState(device) in aclStateChangeCallback()
1197 batteryService.disconnect(device); in aclStateChangeCallback()
1601 BatteryService batteryService = BatteryService.getBatteryService(); in hasBatteryService() local
1602 return batteryService != null in hasBatteryService()
1603 && batteryService.getConnectionState(device) == BluetoothProfile.STATE_CONNECTED; in hasBatteryService()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bas/
DBatteryStateMachine.java556 final BluetoothGattService batteryService = gatt.getService(GATT_BATTERY_SERVICE_UUID); in onServicesDiscovered() local
557 if (batteryService == null) { in onServicesDiscovered()
563 batteryService.getCharacteristic(GATT_BATTERY_LEVEL_CHARACTERISTIC_UUID); in onServicesDiscovered()