Searched refs:mBatteryManager (Results 1 – 5 of 5) 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()
102 private BatteryManager mBatteryManager = null; field in DexManager666 if (mBatteryManager == null && mContext != null) { in getBatteryManager()667 mBatteryManager = mContext.getSystemService(BatteryManager.class); in getBatteryManager()670 return mBatteryManager; in getBatteryManager()
284 return mBatteryManager; in getSystemService()733 private final BatteryManager mBatteryManager = mock(BatteryManager.class); field in ContextFixture
2618 private BatteryManager mBatteryManager; field in AppStandbyController.Injector2662 mBatteryManager = mContext.getSystemService(BatteryManager.class); in onBootPhase()2709 return mBatteryManager.isCharging(); in isCharging()
241 private BatteryManager mBatteryManager; field in AlarmManagerServiceTest500 when(mMockContext.getSystemService(BatteryManager.class)).thenReturn(mBatteryManager); in setUp()538 verify(mBatteryManager).isCharging(); in setUp()