Home
last modified time | relevance | path

Searched refs:mBatteryManager (Results 1 – 4 of 4) sorted by relevance

/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DJobPreconditionsTest.java49 @Mock private BatteryManager mBatteryManager; field in JobPreconditionsTest
64 mBatteryManager); in setUp()
90 when(mBatteryManager.isCharging()).thenReturn(true); in testBatteryConnected()
97 when(mBatteryManager.isCharging()).thenReturn(false); in testBatteryDisconnected()
DAutomaticStorageManagementJobServiceTest.java64 @Mock private BatteryManager mBatteryManager; field in AutomaticStorageManagementJobServiceTest
88 when(mBatteryManager.isCharging()).thenReturn(true); in setUp()
109 mApplication.setSystemService(Context.BATTERY_SERVICE, mBatteryManager); in setUp()
140 when(mBatteryManager.isCharging()).thenReturn(false); in testJobRequiresCharging()
145 when(mBatteryManager.isCharging()).thenReturn(true); in testJobRequiresCharging()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DDarkThemeSliceTest.java55 private BatteryManager mBatteryManager; field in DarkThemeSliceTest
216 doReturn(mBatteryManager).when(mContext).getSystemService(BatteryManager.class); in setBatteryCapacityLevel()
217 when(mBatteryManager.getIntProperty(BatteryManager.BATTERY_PROPERTY_CAPACITY)) in setBatteryCapacityLevel()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java70 private BatteryManager mBatteryManager = null; field in HeadsetClientService
99 mBatteryManager = getSystemService(BatteryManager.class); in start()
1075 int batteryLevel = mBatteryManager.getIntProperty(BatteryManager.BATTERY_PROPERTY_CAPACITY); in updateBatteryLevel()