Searched refs:mBatteryManager (Results 1 – 4 of 4) sorted by relevance
54 @Mock private BatteryManagerInternal mBatteryManager; field in CachedDeviceStateServiceTest76 LocalServices.addService(BatteryManagerInternal.class, mBatteryManager); in setUp()78 when(mBatteryManager.getPlugType()).thenReturn(OsProtoEnums.BATTERY_PLUGGED_NONE); in setUp()117 when(mBatteryManager.getPlugType()).thenReturn(OsProtoEnums.BATTERY_PLUGGED_NONE); in correctlyReportsCharging()144 when(mBatteryManager.getPlugType()).thenReturn(OsProtoEnums.BATTERY_PLUGGED_NONE); in correctlyTracksTimeOnBattery()
93 private static BatteryManager mBatteryManager; field in ConnOnActivityStartTest107 mBatteryManager = (BatteryManager) mContext.getSystemService(Context.BATTERY_SERVICE); in setUpOnce()299 while (mBatteryManager.isCharging() && SystemClock.uptimeMillis() < endTime) { in assertBatteryOn()302 assertFalse("Power should be disconnected", mBatteryManager.isCharging()); in assertBatteryOn()
252 return mBatteryManager; in getSystemService()621 private final BatteryManager mBatteryManager = mock(BatteryManager.class); field in ContextFixture
1916 private BatteryManager mBatteryManager; field in AppStandbyController.Injector1957 mBatteryManager = mContext.getSystemService(BatteryManager.class); in onBootPhase()1998 return mBatteryManager.isCharging(); in isCharging()