Home
last modified time | relevance | path

Searched refs:mBatteryManager (Results 1 – 4 of 4) 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/tests/servicestests/src/com/android/server/net/
DConnOnActivityStartTest.java93 private static BatteryManager mBatteryManager; field in ConnOnActivityStartTest
107 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()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DContextFixture.java252 return mBatteryManager; in getSystemService()
621 private final BatteryManager mBatteryManager = mock(BatteryManager.class); field in ContextFixture
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/
DAppStandbyController.java1916 private BatteryManager mBatteryManager; field in AppStandbyController.Injector
1957 mBatteryManager = mContext.getSystemService(BatteryManager.class); in onBootPhase()
1998 return mBatteryManager.isCharging(); in isCharging()