Searched refs:batteryManager (Results 1 – 6 of 6) sorted by relevance
43 BatteryManager batteryManager = (BatteryManager) context.getSystemService( in isCharging() local45 if (batteryManager != null) { in isCharging()46 return batteryManager.isCharging(); in isCharging()
112 final BatteryManager batteryManager = (BatteryManager) mContext in onCreate() local114 if (batteryManager != null && !batteryManager.isCharging()) { in onCreate()
161 final BatteryManager batteryManager = (BatteryManager) getContext() in onCreatePreferences() local163 if (batteryManager != null && !batteryManager.isCharging()) { in onCreatePreferences()
168 final BatteryManager batteryManager = context.getSystemService(BatteryManager.class); in isAvailable() local169 final int level = batteryManager.getIntProperty(BatteryManager.BATTERY_PROPERTY_CAPACITY); in isAvailable()
455 BatteryManager batteryManager =457 return batteryManager.isCharging();
205 val batteryManager = BatteryStatsManager(batteryStats) constant490 Context.BATTERY_STATS_SERVICE -> batteryManager in getSystemService()