Home
last modified time | relevance | path

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

/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/constraints/trackers/
DBatteryChargingTrackerTest.java70 private Intent createBatteryChangedIntent(boolean charging) { in createBatteryChangedIntent() argument
73 int status = charging ? BatteryManager.BATTERY_STATUS_CHARGING in createBatteryChangedIntent()
77 int plugged = charging ? 1 : 0; in createBatteryChangedIntent()
83 private Intent createChargingIntent(boolean charging) { in createChargingIntent() argument
85 charging ? Intent.ACTION_POWER_CONNECTED : Intent.ACTION_POWER_DISCONNECTED); in createChargingIntent()
89 private Intent createChargingIntent_afterApi23(boolean charging) { in createChargingIntent_afterApi23() argument
91 charging ? BatteryManager.ACTION_CHARGING : BatteryManager.ACTION_DISCHARGING); in createChargingIntent_afterApi23()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/constraints/trackers/
DBatteryChargingTracker.java98 boolean charging; in isBatteryChangedIntentCharging()
101 charging = (status == BatteryManager.BATTERY_STATUS_CHARGING in isBatteryChangedIntentCharging()
105 charging = (chargePlug != 0); in isBatteryChangedIntentCharging()
107 return charging; in isBatteryChangedIntentCharging()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/graph/
DBatteryMeterDrawableBaseTest.java60 for (boolean charging : bools) { in testDrawingForTypicalValues()
65 mBatteryDrawable.setCharging(charging); in testDrawingForTypicalValues()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DBatterySaverTile.java95 public void onBatteryLevelChanged(int level, boolean pluggedIn, boolean charging) { in onBatteryLevelChanged() argument
98 mCharging = charging; in onBatteryLevelChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryController.java55 default void onBatteryLevelChanged(int level, boolean pluggedIn, boolean charging) {} in onBatteryLevelChanged() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardStatusBarView.java346 public void onBatteryLevelChanged(int level, boolean pluggedIn, boolean charging) { in onBatteryLevelChanged() argument
347 if (mBatteryCharging != charging) { in onBatteryLevelChanged()
348 mBatteryCharging = charging; in onBatteryLevelChanged()
DLightBarController.java227 public void onBatteryLevelChanged(int level, boolean pluggedIn, boolean charging) { in onBatteryLevelChanged() argument
DStatusBar.java159 import com.android.systemui.charging.WirelessChargingAnimation;
929 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;
DWirelessChargingView.java17 package com.android.systemui.charging;
DWirelessChargingAnimation.java17 package com.android.systemui.charging;
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DBatteryMeterView.java233 public void onBatteryLevelChanged(int level, boolean pluggedIn, boolean charging) { in onBatteryLevelChanged() argument
239 getContext().getString(charging ? R.string.accessibility_battery_level_charging in onBatteryLevelChanged()
/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.java262 private void setChargingState(AppStandbyController controller, boolean charging) { in setChargingState() argument
263 mInjector.mIsCharging = charging; in setChargingState()
265 controller.setChargingState(charging); in setChargingState()
/frameworks/base/services/usage/java/com/android/server/usage/
DAppStandbyController.java457 void setChargingState(boolean charging) { in setChargingState() argument
459 if (mCharging != charging) { in setChargingState()
460 mCharging = charging; in setChargingState()
461 if (DEBUG) Slog.d(TAG, "Setting mCharging to " + charging); in setChargingState()
462 if (charging) { in setChargingState()
/frameworks/base/core/proto/android/os/
Dbatterystats.proto109 // after charging (lower bound approximation).
150 // calculate an estimate, or if the battery is currently charging.
201 // Battery level steps when the device was charging.
572 // tracked when device is charging.
/frameworks/base/services/core/java/com/android/server/
DDeviceIdleController.java2025 void updateChargingLocked(boolean charging) { in updateChargingLocked() argument
2026 if (DEBUG) Slog.i(TAG, "updateChargingLocked: charging=" + charging); in updateChargingLocked()
2027 if (!charging && mCharging) { in updateChargingLocked()
2032 } else if (charging) { in updateChargingLocked()
2033 mCharging = charging; in updateChargingLocked()
DEventLogTags.logtags10 # This is logged when battery goes from discharging to charging.
/frameworks/base/core/proto/android/server/
Djobscheduler.proto150 // Minimum # of charging jobs that must be ready in order to force the JMS
/frameworks/base/proto/src/
Dmetrics_constants.proto5226 // ACTION: Usb config has been changed to charging
5900 // ACTION: User has started or ended charging
5905 // Tag FIELD_CHARGING_DURATION: Time in ms phone was charging
5909 // Tag used to determine battery level when device started charging
5912 // Tag used to determine battery level when device ended charging
5915 // Tag used to determine length of charging
5918 // Tag used to determine what type of charging was started/ended
6020 // each bucket represents charging to n/8
/frameworks/base/cmds/statsd/src/
Datoms.proto543 * Logs change in charging status of the device.
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java12343 boolean setChargingLocked(boolean charging) { in setChargingLocked() argument
12344 if (mCharging != charging) { in setChargingLocked()
12345 mCharging = charging; in setChargingLocked()
12346 if (charging) { in setChargingLocked()
/frameworks/support/work/integration-tests/testapp/src/main/assets/
Dmems.txt47 upon his chest and his brows knitted, charging and recharging his