Home
last modified time | relevance | path

Searched refs:mBatteryManager (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/
DCachedDeviceStateServiceTest.java54 @Mock private BatteryManagerInternal mBatteryManager; field in CachedDeviceStateServiceTest
76 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()
/frameworks/base/services/core/java/com/android/server/pm/dex/
DDexManager.java102 private BatteryManager mBatteryManager = null; field in DexManager
666 if (mBatteryManager == null && mContext != null) { in getBatteryManager()
667 mBatteryManager = mContext.getSystemService(BatteryManager.class); in getBatteryManager()
670 return mBatteryManager; in getBatteryManager()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DContextFixture.java284 return mBatteryManager; in getSystemService()
733 private final BatteryManager mBatteryManager = mock(BatteryManager.class); field in ContextFixture
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/
DAppStandbyController.java2618 private BatteryManager mBatteryManager; field in AppStandbyController.Injector
2662 mBatteryManager = mContext.getSystemService(BatteryManager.class); in onBootPhase()
2709 return mBatteryManager.isCharging(); in isCharging()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/
DAlarmManagerServiceTest.java241 private BatteryManager mBatteryManager; field in AlarmManagerServiceTest
500 when(mMockContext.getSystemService(BatteryManager.class)).thenReturn(mBatteryManager); in setUp()
538 verify(mBatteryManager).isCharging(); in setUp()