Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/
DCachedDeviceStateService.java84 final BatteryManagerInternal batteryManager = in queryIsCharging() local
86 if (batteryManager == null) { in queryIsCharging()
91 return batteryManager.getPlugType() != OsProtoEnums.BATTERY_PLUGGED_NONE; in queryIsCharging()
/frameworks/base/services/core/java/com/android/server/storage/
DDiskStatsLoggingService.java109 BatteryManager batteryManager = in isCharging() local
111 if (batteryManager != null) { in isCharging()
112 return batteryManager.isCharging(); in isCharging()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/satellite/metrics/
DControllerMetricsStats.java351 BatteryManager batteryManager = mContext.getSystemService(BatteryManager.class); in startCaptureBatteryLevel() local
353 batteryManager.getIntProperty(BatteryManager.BATTERY_PROPERTY_CAPACITY); in startCaptureBatteryLevel()
364 BatteryManager batteryManager = context.getSystemService(BatteryManager.class); in captureTotalBatteryConsumptionPercent() local
366 batteryManager.getIntProperty(BatteryManager.BATTERY_PROPERTY_CAPACITY); in captureTotalBatteryConsumptionPercent()
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/
DDiskStatsLoggingServiceTest.java180 BatteryManager batteryManager = mock(BatteryManager.class); in testDontCrashOnRun() local
181 when(batteryManager.isCharging()).thenReturn(true); in testDontCrashOnRun()
182 doReturn(batteryManager).when(service).getSystemService(Context.BATTERY_SERVICE); in testDontCrashOnRun()
/frameworks/base/services/core/java/com/android/server/pm/dex/
DDexManager.java678 BatteryManager batteryManager = getBatteryManager(); in areBatteryThermalOrMemoryCritical() local
679 boolean isBtmCritical = (batteryManager != null in areBatteryThermalOrMemoryCritical()
680 && batteryManager.getIntProperty(BatteryManager.BATTERY_PROPERTY_STATUS) in areBatteryThermalOrMemoryCritical()
682 && batteryManager.getIntProperty(BatteryManager.BATTERY_PROPERTY_CAPACITY) in areBatteryThermalOrMemoryCritical()