Home
last modified time | relevance | path

Searched refs:mCharging (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/core/java/com/android/internal/os/
DCachedDeviceState.java35 private volatile boolean mCharging; field in CachedDeviceState
41 mCharging = true; in CachedDeviceState()
47 mCharging = isCharging; in CachedDeviceState()
56 if (mCharging != charging) { in setCharging()
57 mCharging = charging; in setCharging()
84 return mCharging; in isCharging()
96 if (!mCharging) { in createTimeOnBatteryStopwatch()
DBatteryStatsImpl.java413 action = mCharging ? BatteryManager.ACTION_CHARGING in handleMessage()
936 boolean mCharging = true; field in BatteryStatsImpl
10408 return mCharging; in isCharging()
12052 if (mCharging != charging) { in setChargingLocked()
12053 mCharging = charging; in setChargingLocked()
12131 if (mCharging) { in setOnBatteryLocked()
12389 } else if (!mCharging) { in setBatteryStateLocked()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DBatteryController.java127 private boolean mCharging; field in BatteryController.ChargingTracker
153 mCharging = batteryManagerInternal.isPowered(BatteryManager.BATTERY_PLUGGED_ANY); in startTracking()
177 return mCharging && mBatteryHealthy; in isOnStablePower()
223 mCharging = true; in onReceiveInternal()
229 mCharging = false; in onReceiveInternal()
DQuotaController.java1341 private boolean mCharging; field in QuotaController.ChargingTracker
1357 mCharging = batteryManagerInternal.isPowered(BatteryManager.BATTERY_PLUGGED_ANY); in startTracking()
1361 return mCharging; in isCharging()
1373 mCharging = true; in onReceive()
1379 mCharging = false; in onReceive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryControllerImpl.java72 protected boolean mCharging; field in BatteryControllerImpl
125 pw.print(" mCharging="); pw.println(mCharging); in dump()
141 cb.onBatteryLevelChanged(mLevel, mPluggedIn, mCharging); in addCallback()
166 mCharging = mCharged || status == BatteryManager.BATTERY_STATUS_CHARGING; in onReceive()
306 mChangeCallbacks.get(i).onBatteryLevelChanged(mLevel, mPluggedIn, mCharging); in fireBatteryLevelChanged()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DBatteryMeterDrawableBase.java58 private boolean mCharging; field in BatteryMeterDrawableBase
191 mCharging = val; in setCharging()
196 return mCharging; in getCharging()
306 return (mCharging || (mPowerSaveEnabled && mPowerSaveAsColorError)) in batteryColorForLevel()
363 if (mCharging) { in draw()
431 if (!mCharging && !mPowerSaveEnabled && level > mCriticalLevel && mShowPercent) { in draw()
459 if (!mCharging && !mPowerSaveEnabled) { in draw()
472 if (!mCharging && mPowerSaveEnabled && mPowerSaveAsColorError) { in draw()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DBatterySaverTile.java43 private boolean mCharging; field in BatterySaverTile
124 mCharging = charging; in onBatteryLevelChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DBatteryMeterView.java103 private boolean mCharging; field in BatteryMeterView
326 mCharging = pluggedIn; in onBatteryLevelChanged()
358 if (mShowPercentMode == MODE_ESTIMATE && !mCharging) { in updatePercentText()
374 getContext().getString(mCharging ? R.string.accessibility_battery_level_charging in updatePercentText()
383 getContext().getString(mCharging ? R.string.accessibility_battery_level_charging in setPercentTextAtCurrentLevel()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DDeviceIdleController.java298 private boolean mCharging; field in DeviceIdleController
2032 mCharging = true; in onStart()
2743 return mCharging; in isCharging()
2749 if (!charging && mCharging) { in updateChargingLocked()
2750 mCharging = false; in updateChargingLocked()
2755 mCharging = charging; in updateChargingLocked()
2890 + " mCharging=" + mCharging in becomeInactiveIfAppropriateLocked()
2894 if (!mForceIdle && (mCharging || isScreenBlockingInactive)) { in becomeInactiveIfAppropriateLocked()
2979 if (mScreenOn || mCharging) { in exitForceIdleLocked()
4039 case "charging": pw.println(mCharging); break; in onShellCommand()
[all …]
/frameworks/base/services/core/java/com/android/server/
DUiModeManagerService.java110 private boolean mCharging = false; field in UiModeManagerService
220 mCharging = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0) != 0;
1239 boolean keepScreenOn = mCharging && in updateLocked()