Home
last modified time | relevance | path

Searched refs:charging (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/core/java/com/android/internal/os/
DCachedDeviceState.java55 public void setCharging(boolean charging) { in setCharging() argument
56 if (mCharging != charging) { in setCharging()
57 mCharging = charging; in setCharging()
58 updateStopwatches(/* shouldStart= */ !charging); in setCharging()
DBatteryStatsImpl.java12020 boolean setChargingLocked(boolean charging) { in setChargingLocked() argument
12029 if (mCharging != charging) { in setChargingLocked()
12030 mCharging = charging; in setChargingLocked()
12031 if (charging) { in setChargingLocked()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DThemedBatteryDrawable.kt97 var charging = false in <lambda>() variable
204 if (charging) { in <lambda>()
230 if (batteryLevel <= Companion.CRITICAL_LEVEL && !charging) { in <lambda>()
238 if (charging) { in <lambda>()
256 charging || powerSaveEnabled -> fillColor in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DBatterySaverTile.java111 public void onBatteryLevelChanged(int level, boolean pluggedIn, boolean charging) { in onBatteryLevelChanged() argument
114 mCharging = charging; in onBatteryLevelChanged()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/graph/
DBatteryMeterDrawableBaseTest.java63 for (boolean charging : bools) { in testDrawingForTypicalValues()
68 mBatteryDrawable.setCharging(charging); in testDrawingForTypicalValues()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryController.java58 default void onBatteryLevelChanged(int level, boolean pluggedIn, boolean charging) { in onBatteryLevelChanged() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardStatusBarView.java355 public void onBatteryLevelChanged(int level, boolean pluggedIn, boolean charging) { in onBatteryLevelChanged() argument
356 if (mBatteryCharging != charging) { in onBatteryLevelChanged()
357 mBatteryCharging = charging; in onBatteryLevelChanged()
DLightBarController.java248 public void onBatteryLevelChanged(int level, boolean pluggedIn, boolean charging) { in onBatteryLevelChanged() argument
DStatusBar.java148 import com.android.systemui.charging.WirelessChargingAnimation;
900 public void onBatteryLevelChanged(int level, boolean pluggedIn, boolean charging) { in makeStatusBarView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/charging/
DWirelessChargingLayout.java17 package com.android.systemui.charging;
DWirelessChargingAnimation.java17 package com.android.systemui.charging;
/frameworks/base/packages/SystemUI/docs/
Ddemo_mode.md31 … | ```plugged``` | | Sets charging state (```true```, ```false```)
101 Empty battery, and not charging (red exclamation point)
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppStandbyControllerTests.java275 private void setChargingState(AppStandbyController controller, boolean charging) { in setChargingState() argument
276 mInjector.mIsCharging = charging; in setChargingState()
278 controller.setChargingState(charging); in setChargingState()
/frameworks/base/services/usage/java/com/android/server/usage/
DAppStandbyController.java500 void setChargingState(boolean charging) { in setChargingState() argument
502 if (mCharging != charging) { in setChargingState()
503 mCharging = charging; in setChargingState()
504 if (DEBUG) Slog.d(TAG, "Setting mCharging to " + charging); in setChargingState()
505 if (charging) { in setChargingState()
/frameworks/base/core/proto/android/os/
Dbatterystats.proto113 // after charging (lower bound approximation).
154 // calculate an estimate, or if the battery is currently charging.
205 // Battery level steps when the device was charging.
576 // tracked when device is charging.
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DBatteryMeterView.java319 public void onBatteryLevelChanged(int level, boolean pluggedIn, boolean charging) { in onBatteryLevelChanged() argument
/frameworks/base/services/core/java/com/android/server/
DEventLogTags.logtags10 # This is logged when battery goes from discharging to charging.
DDeviceIdleController.java2576 void updateChargingLocked(boolean charging) { in updateChargingLocked() argument
2577 if (DEBUG) Slog.i(TAG, "updateChargingLocked: charging=" + charging); in updateChargingLocked()
2578 if (!charging && mCharging) { in updateChargingLocked()
2583 } else if (charging) { in updateChargingLocked()
2584 mCharging = charging; in updateChargingLocked()
/frameworks/base/proto/src/metrics_constants/
Dmetrics_constants.proto5310 // ACTION: Usb config has been changed to charging
5984 // ACTION: User has started or ended charging
5989 // Tag FIELD_CHARGING_DURATION: Time in ms phone was charging
5993 // Tag used to determine battery level when device started charging
5996 // Tag used to determine battery level when device ended charging
5999 // Tag used to determine length of charging
6002 // Tag used to determine what type of charging was started/ended
6104 // each bucket represents charging to n/8
/frameworks/base/core/proto/android/server/
Djobscheduler.proto157 // Minimum # of charging jobs that must be ready in order to force the JMS
/frameworks/base/cmds/statsd/src/
Datoms.proto979 * Logs change in charging status of the device.
3438 * 2) charging from 50% to 100% and draining back to 50% twice.