Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/os/
DBatteryManager.java204 public static final int BATTERY_PLUGGED_AC = OsProtoEnums.BATTERY_PLUGGED_AC; // = 1 field in BatteryManager
280 BATTERY_PLUGGED_AC | BATTERY_PLUGGED_USB | BATTERY_PLUGGED_WIRELESS
572 return plugType == BATTERY_PLUGGED_USB || plugType == BATTERY_PLUGGED_AC; in isPlugWired()
DBatteryStats.java7085 case BatteryManager.BATTERY_PLUGGED_AC: in printNextItem()
/frameworks/base/cmds/svc/src/com/android/commands/svc/
DPowerCommand.java67 val = BatteryManager.BATTERY_PLUGGED_AC in run()
77 val = BatteryManager.BATTERY_PLUGGED_AC; in run()
/frameworks/base/packages/SettingsProvider/src/android/provider/settings/validators/
DSystemSettingsValidators.java58 || (val == BatteryManager.BATTERY_PLUGGED_AC) in VALIDATORS.put()
63 == (BatteryManager.BATTERY_PLUGGED_AC in VALIDATORS.put()
66 == (BatteryManager.BATTERY_PLUGGED_AC in VALIDATORS.put()
72 == (BatteryManager.BATTERY_PLUGGED_AC in VALIDATORS.put()
76 == (BatteryManager.BATTERY_PLUGGED_AC in VALIDATORS.put()
DGlobalSettingsValidators.java65 || (val == BatteryManager.BATTERY_PLUGGED_AC) in VALIDATORS.put()
70 == (BatteryManager.BATTERY_PLUGGED_AC in VALIDATORS.put()
73 == (BatteryManager.BATTERY_PLUGGED_AC in VALIDATORS.put()
76 == (BatteryManager.BATTERY_PLUGGED_AC in VALIDATORS.put()
88 == (BatteryManager.BATTERY_PLUGGED_AC in VALIDATORS.put()
92 == (BatteryManager.BATTERY_PLUGGED_AC in VALIDATORS.put()
/frameworks/base/packages/SettingsLib/tests/unit/src/com/android/settingslib/fuelgague/
DBatteryStatusTest.kt22 import android.os.BatteryManager.BATTERY_PLUGGED_AC
175 arrayOf("withAC_returnsTrue", BATTERY_PLUGGED_AC, true), in parameters()
208 arrayOf("withAC_returnsTrue", BATTERY_PLUGGED_AC, false), in parameters()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DCachedDeviceStateServiceTest.java131 intentPluggedIn.putExtra(BatteryManager.EXTRA_PLUGGED, OsProtoEnums.BATTERY_PLUGGED_AC); in correctlyReportsCharging()
166 intentPluggedIn.putExtra(BatteryManager.EXTRA_PLUGGED, OsProtoEnums.BATTERY_PLUGGED_AC); in correctlyTracksTimeOnBattery()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatteryStatus.java108 return plugged == BatteryManager.BATTERY_PLUGGED_AC in isPluggedInWired()
239 return plugged == BatteryManager.BATTERY_PLUGGED_AC in isPluggedIn()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsHistoryIterator.java175 cur.batteryPlugType = BatteryManager.BATTERY_PLUGGED_AC; in readHistoryDelta()
DBatteryStatsHistory.java2231 if ((h.batteryPlugType & BatteryManager.BATTERY_PLUGGED_AC) != 0) { in buildStateInt()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DKeyguardIndicationControllerTest.java836 80 /* level */, BatteryManager.BATTERY_PLUGGED_AC, in onRefreshBatteryInfo_chargingWithLongLife_presentChargingLimited()
854 100 /* level */, BatteryManager.BATTERY_PLUGGED_AC, in onRefreshBatteryInfo_fullChargedWithLongLife_presentChargingLimited()
872 100 /* level */, BatteryManager.BATTERY_PLUGGED_AC, in onRefreshBatteryInfo_fullChargedWithoutLongLife_presentCharged()
/frameworks/base/services/core/java/com/android/server/
DBatteryService.java369 if ((plugTypeSet & BatteryManager.BATTERY_PLUGGED_AC) != 0 in isPoweredLocked()
493 return BatteryManager.BATTERY_PLUGGED_AC; in plugType()
1271 batteryPluggedValue = OsProtoEnums.BATTERY_PLUGGED_AC; in dumpProto()
/frameworks/proto_logging/stats/enums/os/
Denums.proto44 BATTERY_PLUGGED_AC = 1; enumerator
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryControllerImpl.java310 mIncrement > 0 ? BatteryManager.BATTERY_PLUGGED_AC : 0); in onReceive()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBstatsCpuTimesValidationTest.java824 executeCmd("dumpsys battery set ac " + BatteryManager.BATTERY_PLUGGED_AC); in batteryOff()
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/
DPowerManagerServiceTest.java983 .thenReturn(BatteryManager.BATTERY_PLUGGED_AC); in testWakefulnessDream_shouldStopDreamingWhenUnplugging_whenDreamPrevents()
1345 Settings.Global.STAY_ON_WHILE_PLUGGED_IN, BatteryManager.BATTERY_PLUGGED_AC); in testInattentiveSleep_hideWarningIfStayOnIsEnabledAndPluggedIn()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java1583 Settings.Global.STAY_ON_WHILE_PLUGGED_IN, BatteryManager.BATTERY_PLUGGED_AC);
5144 ((mStayOnWhilePluggedInSetting & BatteryManager.BATTERY_PLUGGED_AC) != 0));
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt21363 field public static final int BATTERY_PLUGGED_AC = 1; // 0x1
/frameworks/base/core/api/
Dcurrent.txt32578 field public static final int BATTERY_PLUGGED_AC = 1; // 0x1
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt37144 Landroid/os/OsProtoEnums;->BATTERY_PLUGGED_AC:I