Home
last modified time | relevance | path

Searched refs:BATTERY_PLUGGED_USB (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/core/java/android/os/
DBatteryManager.java188 public static final int BATTERY_PLUGGED_USB = OsProtoEnums.BATTERY_PLUGGED_USB; // = 2 field in BatteryManager
194 BATTERY_PLUGGED_AC | BATTERY_PLUGGED_USB | BATTERY_PLUGGED_WIRELESS;
362 return plugType == BATTERY_PLUGGED_USB || plugType == BATTERY_PLUGGED_AC; in isPlugWired()
DBatteryStats.java6412 case BatteryManager.BATTERY_PLUGGED_USB: in printNextItem()
/frameworks/base/packages/SettingsProvider/src/android/provider/settings/validators/
DGlobalSettingsValidators.java53 || (val == BatteryManager.BATTERY_PLUGGED_USB) in VALIDATORS.put()
57 | BatteryManager.BATTERY_PLUGGED_USB)) in VALIDATORS.put()
62 == (BatteryManager.BATTERY_PLUGGED_USB in VALIDATORS.put()
66 | BatteryManager.BATTERY_PLUGGED_USB in VALIDATORS.put()
DSystemSettingsValidators.java58 || (val == BatteryManager.BATTERY_PLUGGED_USB) in VALIDATORS.put()
62 | BatteryManager.BATTERY_PLUGGED_USB)) in VALIDATORS.put()
67 == (BatteryManager.BATTERY_PLUGGED_USB in VALIDATORS.put()
71 | BatteryManager.BATTERY_PLUGGED_USB in VALIDATORS.put()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatteryStatus.java92 || plugged == BatteryManager.BATTERY_PLUGGED_USB in isPluggedIn()
103 || plugged == BatteryManager.BATTERY_PLUGGED_USB; in isPluggedInWired()
/frameworks/base/cmds/svc/src/com/android/commands/svc/
DPowerCommand.java70 BatteryManager.BATTERY_PLUGGED_USB | in run()
76 val = BatteryManager.BATTERY_PLUGGED_USB; in run()
/frameworks/base/services/core/java/com/android/server/
DBatteryService.java339 … if ((plugTypeSet & BatteryManager.BATTERY_PLUGGED_USB) != 0 && mHealthInfo.chargerUsbOnline) { in isPoweredLocked()
476 mPlugType = BatteryManager.BATTERY_PLUGGED_USB; in processValuesLocked()
1048 batteryPluggedValue = OsProtoEnums.BATTERY_PLUGGED_USB; in dumpProto()
/frameworks/base/core/proto/android/os/
Denums.proto43 BATTERY_PLUGGED_USB = 2; enumerator
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAppStateTrackerTest.java1167 intent.putExtra(BatteryManager.EXTRA_PLUGGED, BatteryManager.BATTERY_PLUGGED_USB); in testSmallBatteryAndPluggedIn()
1191 intent.putExtra(BatteryManager.EXTRA_PLUGGED, BatteryManager.BATTERY_PLUGGED_USB); in testNotSmallBatteryAndPluggedIn()
/frameworks/base/cmds/statsd/tests/e2e/
DValueMetric_pull_e2e_test.cpp191 configAddedTimeNs + 50, BatteryPluggedStateEnum::BATTERY_PLUGGED_USB); in TEST()
DCountMetric_e2e_test.cpp104 bucketStartTimeNs + 50, BatteryPluggedStateEnum::BATTERY_PLUGGED_USB); in TEST()
DDurationMetric_e2e_test.cpp950 BatteryPluggedStateEnum::BATTERY_PLUGGED_USB)); // 3:10 in TEST()
/frameworks/base/cmds/statsd/tests/
Dstatsd_test_util.cpp157 BatteryPluggedStateEnum::BATTERY_PLUGGED_USB); in CreateBatteryStateUsbMatcher()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDeviceManager.java318 boolean usbCharging = chargePlug == BatteryManager.BATTERY_PLUGGED_USB; in UsbDeviceManager()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java4218 ((mStayOnWhilePluggedInSetting & BatteryManager.BATTERY_PLUGGED_USB) != 0));
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java3376 } else if ((h.batteryPlugType&BatteryManager.BATTERY_PLUGGED_USB) != 0) { in buildStateInt()
3533 cur.batteryPlugType = BatteryManager.BATTERY_PLUGGED_USB; in readHistoryDelta()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt21364 field public static final int BATTERY_PLUGGED_USB = 2; // 0x2
/frameworks/base/api/
Dcurrent.txt35736 field public static final int BATTERY_PLUGGED_USB = 2; // 0x2