Home
last modified time | relevance | path

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

/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
DJobPreconditions.java43 BatteryManager batteryManager = (BatteryManager) context.getSystemService( in isCharging() local
45 if (batteryManager != null) { in isCharging()
46 return batteryManager.isCharging(); in isCharging()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/privacy/
DLocationState.java112 final BatteryManager batteryManager = (BatteryManager) mContext in onCreate() local
114 if (batteryManager != null && !batteryManager.isCharging()) { in onCreate()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DLocationFragment.java161 final BatteryManager batteryManager = (BatteryManager) getContext() in onCreatePreferences() local
163 if (batteryManager != null && !batteryManager.isCharging()) { in onCreatePreferences()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DDarkThemeSlice.java168 final BatteryManager batteryManager = context.getSystemService(BatteryManager.class); in isAvailable() local
169 final int level = batteryManager.getIntProperty(BatteryManager.BATTERY_PROPERTY_CAPACITY); in isAvailable()
/packages/modules/ConfigInfrastructure/service/java/com/android/server/deviceconfig/
DUnattendedRebootManager.java455 BatteryManager batteryManager =
457 return batteryManager.isCharging();
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/base/
DCSTest.kt205 val batteryManager = BatteryStatsManager(batteryStats) constant
490 Context.BATTERY_STATS_SERVICE -> batteryManager in getSystemService()