Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/
DCachedDeviceStateServiceTest.java53 @Mock private BatteryManagerInternal mBatteryManager; field in CachedDeviceStateServiceTest
74 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()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DConnOnActivityStartTest.java97 private static BatteryManager mBatteryManager; field in ConnOnActivityStartTest
115 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()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DContextFixture.java250 return mBatteryManager; in getSystemService()
597 private final BatteryManager mBatteryManager = mock(BatteryManager.class); field in ContextFixture