Searched refs:batteryService (Results 1 – 3 of 3) sorted by relevance
317 BatteryService batteryService = mFactory.getBatteryService(); in processInitProfilePriorities() local616 if ((batteryService != null) in processInitProfilePriorities()618 && (batteryService.getConnectionPolicy(device) in processInitProfilePriorities()622 batteryService.setConnectionPolicy( in processInitProfilePriorities()1029 BatteryService batteryService = mFactory.getBatteryService(); in processConnectOtherProfiles() local1101 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()
1159 BatteryService batteryService = BatteryService.getBatteryService(); in aclStateChangeCallback() local1160 if (batteryService != null && transportLinkType == BluetoothDevice.TRANSPORT_LE) { in aclStateChangeCallback()1161 batteryService.connectIfPossible(device); in aclStateChangeCallback()1192 BatteryService batteryService = BatteryService.getBatteryService(); in aclStateChangeCallback() local1193 if (batteryService != null in aclStateChangeCallback()1194 && batteryService.getConnectionState(device) in aclStateChangeCallback()1197 batteryService.disconnect(device); in aclStateChangeCallback()1601 BatteryService batteryService = BatteryService.getBatteryService(); in hasBatteryService() local1602 return batteryService != null in hasBatteryService()1603 && batteryService.getConnectionState(device) == BluetoothProfile.STATE_CONNECTED; in hasBatteryService()
556 final BluetoothGattService batteryService = gatt.getService(GATT_BATTERY_SERVICE_UUID); in onServicesDiscovered() local557 if (batteryService == null) { in onServicesDiscovered()563 batteryService.getCharacteristic(GATT_BATTERY_LEVEL_CHARACTERISTIC_UUID); in onServicesDiscovered()