Searched refs:mBatteryManager (Results 1 – 3 of 3) sorted by relevance
53 @Mock private BatteryManagerInternal mBatteryManager; field in CachedDeviceStateServiceTest74 LocalServices.addService(BatteryManagerInternal.class, mBatteryManager); in setUp()76 when(mBatteryManager.getPlugType()).thenReturn(OsProtoEnums.BATTERY_PLUGGED_NONE); in setUp()115 when(mBatteryManager.getPlugType()).thenReturn(OsProtoEnums.BATTERY_PLUGGED_NONE); in correctlyReportsCharging()142 when(mBatteryManager.getPlugType()).thenReturn(OsProtoEnums.BATTERY_PLUGGED_NONE); in correctlyTracksTimeOnBattery()
97 private static BatteryManager mBatteryManager; field in ConnOnActivityStartTest115 mBatteryManager = (BatteryManager) mContext.getSystemService(Context.BATTERY_SERVICE); in setUpOnce()332 while (mBatteryManager.isCharging() && SystemClock.uptimeMillis() < endTime) { in assertBatteryOn()335 assertFalse("Power should be disconnected", mBatteryManager.isCharging()); in assertBatteryOn()
250 return mBatteryManager; in getSystemService()597 private final BatteryManager mBatteryManager = mock(BatteryManager.class); field in ContextFixture