Home
last modified time | relevance | path

Searched refs:mBatteryManagerInternal (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySavingStats.java154 private BatteryManagerInternal mBatteryManagerInternal; field in BatterySavingStats
193 mBatteryManagerInternal = LocalServices.getService(BatteryManagerInternal.class); in BatterySavingStats()
197 if (mBatteryManagerInternal == null) { in getBatteryManagerInternal()
198 mBatteryManagerInternal = LocalServices.getService(BatteryManagerInternal.class); in getBatteryManagerInternal()
199 if (mBatteryManagerInternal == null) { in getBatteryManagerInternal()
203 return mBatteryManagerInternal; in getBatteryManagerInternal()
/frameworks/base/services/core/java/com/android/server/am/
DBaseAppStateTracker.java282 BatteryManagerInternal mBatteryManagerInternal; field in BaseAppStateTracker.Injector
303 mBatteryManagerInternal = LocalServices.getService(BatteryManagerInternal.class); in onSystemReady()
330 return mBatteryManagerInternal; in getBatteryManagerInternal()
DBatteryStatsService.java263 private BatteryManagerInternal mBatteryManagerInternal; field in BatteryStatsService
668 mBatteryManagerInternal = LocalServices.getService(BatteryManagerInternal.class); in systemServicesReady()
3691 mBatteryManagerInternal.setChargerAcOnline(online, forceUpdate); in setChargerAcOnline()
3702 mBatteryManagerInternal.setBatteryLevel(level, forceUpdate); in setBatteryLevel()
3713 mBatteryManagerInternal.unplugBattery(forceUpdate); in unplugBattery()
3724 mBatteryManagerInternal.resetBattery(forceUpdate); in resetBattery()
3735 mBatteryManagerInternal.suspendBatteryInput(); in suspendBatteryInput()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DBatteryControllerTest.java68 private BatteryManagerInternal mBatteryManagerInternal; field in BatteryControllerTest
89 doReturn(mBatteryManagerInternal) in setUp()
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamManagerService.java122 private final BatteryManagerInternal mBatteryManagerInternal; field in DreamManagerService
192 mIsCharging = mBatteryManagerInternal.isPowered(BatteryManager.BATTERY_PLUGGED_ANY);
262 mBatteryManagerInternal = getLocalService(BatteryManagerInternal.class); in DreamManagerService()
264 mBatteryManagerInternal = null; in DreamManagerService()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java121 private BatteryManagerInternal mBatteryManagerInternal; field in JobSchedulerServiceTest
158 doReturn(mBatteryManagerInternal) in setUp()
215 verify(mBatteryManagerInternal).registerChargingPolicyChangeListener( in setUp()
2500 doReturn(level).when(mBatteryManagerInternal).getBatteryLevel();
2506 doReturn(policy).when(mBatteryManagerInternal).getChargingPolicy();
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerService.java4248 private final BatteryManagerInternal mBatteryManagerInternal;
4272 mBatteryManagerInternal = LocalServices.getService(BatteryManagerInternal.class);
4289 mBatteryManagerInternal.registerChargingPolicyChangeListener(this);
4292 mBatteryLevel = mBatteryManagerInternal.getBatteryLevel();
4293 mBatteryNotLow = !mBatteryManagerInternal.getBatteryLevelLow();
4294 mCharging = mBatteryManagerInternal.isPowered(BatteryManager.BATTERY_PLUGGED_ANY);
4295 mChargingPolicy = mBatteryManagerInternal.getChargingPolicy();
4394 mBatteryLevel = mBatteryManagerInternal.getBatteryLevel();
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java343 private BatteryManagerInternal mBatteryManagerInternal; field in PowerManagerService
1365 mBatteryManagerInternal = getLocalService(BatteryManagerInternal.class);
2616 mIsPowered = mBatteryManagerInternal.isPowered(BatteryManager.BATTERY_PLUGGED_ANY);
2617 mPlugType = mBatteryManagerInternal.getPlugType();
2619 mBatteryLevel = mBatteryManagerInternal.getBatteryLevel();
2620 mBatteryLevelLow = mBatteryManagerInternal.getBatteryLevelLow();
2621 final boolean isOverheat = mBatteryManagerInternal.getBatteryHealth()
2740 mStayOn = mBatteryManagerInternal.isPowered(mStayOnWhilePluggedInSetting);
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DBackgroundRestrictionTest.java286 @Mock private BatteryManagerInternal mBatteryManagerInternal; field in BackgroundRestrictionTest
394 doReturn(BATTERY_FULL_CHARGE_MAH * 1000).when(mBatteryManagerInternal) in initController()
3386 return BackgroundRestrictionTest.this.mBatteryManagerInternal; in getBatteryManagerInternal()