Searched refs:batteryManager (Results 1 – 5 of 5) sorted by relevance
84 final BatteryManagerInternal batteryManager = in queryIsCharging() local86 if (batteryManager == null) { in queryIsCharging()91 return batteryManager.getPlugType() != OsProtoEnums.BATTERY_PLUGGED_NONE; in queryIsCharging()
109 BatteryManager batteryManager = in isCharging() local111 if (batteryManager != null) { in isCharging()112 return batteryManager.isCharging(); in isCharging()
351 BatteryManager batteryManager = mContext.getSystemService(BatteryManager.class); in startCaptureBatteryLevel() local353 batteryManager.getIntProperty(BatteryManager.BATTERY_PROPERTY_CAPACITY); in startCaptureBatteryLevel()364 BatteryManager batteryManager = context.getSystemService(BatteryManager.class); in captureTotalBatteryConsumptionPercent() local366 batteryManager.getIntProperty(BatteryManager.BATTERY_PROPERTY_CAPACITY); in captureTotalBatteryConsumptionPercent()
180 BatteryManager batteryManager = mock(BatteryManager.class); in testDontCrashOnRun() local181 when(batteryManager.isCharging()).thenReturn(true); in testDontCrashOnRun()182 doReturn(batteryManager).when(service).getSystemService(Context.BATTERY_SERVICE); in testDontCrashOnRun()
678 BatteryManager batteryManager = getBatteryManager(); in areBatteryThermalOrMemoryCritical() local679 boolean isBtmCritical = (batteryManager != null in areBatteryThermalOrMemoryCritical()680 && batteryManager.getIntProperty(BatteryManager.BATTERY_PROPERTY_STATUS) in areBatteryThermalOrMemoryCritical()682 && batteryManager.getIntProperty(BatteryManager.BATTERY_PROPERTY_CAPACITY) in areBatteryThermalOrMemoryCritical()