Searched refs:mBatteryManager (Results 1 – 4 of 4) sorted by relevance
49 @Mock private BatteryManager mBatteryManager; field in JobPreconditionsTest64 mBatteryManager); in setUp()90 when(mBatteryManager.isCharging()).thenReturn(true); in testBatteryConnected()97 when(mBatteryManager.isCharging()).thenReturn(false); in testBatteryDisconnected()
64 @Mock private BatteryManager mBatteryManager; field in AutomaticStorageManagementJobServiceTest88 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()
55 private BatteryManager mBatteryManager; field in DarkThemeSliceTest216 doReturn(mBatteryManager).when(mContext).getSystemService(BatteryManager.class); in setBatteryCapacityLevel()217 when(mBatteryManager.getIntProperty(BatteryManager.BATTERY_PROPERTY_CAPACITY)) in setBatteryCapacityLevel()
70 private BatteryManager mBatteryManager = null; field in HeadsetClientService99 mBatteryManager = getSystemService(BatteryManager.class); in start()1075 int batteryLevel = mBatteryManager.getIntProperty(BatteryManager.BATTERY_PROPERTY_CAPACITY); in updateBatteryLevel()