Home
last modified time | relevance | path

Searched refs:mBatteryService (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bas/
DBatteryStateMachineTest.java75 @Mock private BatteryService mBatteryService; field in BatteryStateMachineTest
91 mTestDevice, mBatteryService, mHandlerThread.getLooper()); in setUp()
102 reset(mBatteryService); in tearDown()
118 when(mBatteryService.canConnect(any(BluetoothDevice.class))).thenReturn(allow); in allowConnection()
134 verify(mBatteryService, after(WAIT_MS).never()) in testOkToConnectFails()
151 verify(mBatteryService, after(WAIT_MS).never()) in testFailToConnectGatt()
169 verify(mBatteryService, timeout(TIMEOUT_MS)) in testSuccessfullyConnected()
183 verify(mBatteryService, timeout(TIMEOUT_MS)) in testSuccessfullyConnected()
201 verify(mBatteryService, timeout(TIMEOUT_MS)) in testDisconnectBeforeConnected()
209 verify(mBatteryService, timeout(TIMEOUT_MS)) in testDisconnectBeforeConnected()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAdapterService.java316 private BatteryService mBatteryService; field in AdapterService
1953 if (mBatteryService != null in connectEnabledProfiles()
1955 && mBatteryService.getConnectionPolicy(device) in connectEnabledProfiles()
1958 mBatteryService.connect(device); in connectEnabledProfiles()
1999 mBatteryService = BatteryService.getBatteryService(); in initProfileServices()
5387 if (mBatteryService != null && isProfileSupported(device, BluetoothProfile.BATTERY)) { in connectAllSupportedProfiles()
5389 mBatteryService.setConnectionPolicy(device, BluetoothProfile.CONNECTION_POLICY_ALLOWED); in connectAllSupportedProfiles()
5547 if (mBatteryService != null in disconnectAllEnabledProfiles()
5548 && (mBatteryService.getConnectionState(device) == BluetoothProfile.STATE_CONNECTED in disconnectAllEnabledProfiles()
5549 || mBatteryService.getConnectionState(device) in disconnectAllEnabledProfiles()
[all …]