Home
last modified time | relevance | path

Searched refs:getPlugType (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/
DCachedDeviceStateServiceTest.java76 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/core/java/android/os/
DBatteryManagerInternal.java39 public abstract int getPlugType(); in getPlugType() method in BatteryManagerInternal
/frameworks/base/services/core/java/com/android/server/
DCachedDeviceStateService.java91 return batteryManager.getPlugType() != OsProtoEnums.BATTERY_PLUGGED_NONE; in queryIsCharging()
DBatteryService.java1258 public int getPlugType() { in getPlugType() method in BatteryService.LocalService
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DPowerManagerServiceTest.java391 when(mBatteryManagerInternalMock.getPlugType()) in testWakefulnessAwake_ShouldWakeUpWhenPluggedIn()
400 when(mBatteryManagerInternalMock.getPlugType()).thenReturn(0); in testWakefulnessAwake_ShouldWakeUpWhenPluggedIn()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java1744 mPlugType = mBatteryManagerInternal.getPlugType(); in updateIsPoweredLocked()
/frameworks/base/services/
Dart-profile604 HSPLcom/android/server/BatteryService$LocalService;->getPlugType()I