Home
last modified time | relevance | path

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

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsResetTest.java104 mBatteryPlugType = BatteryManager.BATTERY_PLUGGED_USB; in setUp()
122 plugBattery(BatteryManager.BATTERY_PLUGGED_USB); in testResetOnUnplug_highBatteryLevel()
128 plugBattery(BatteryManager.BATTERY_PLUGGED_USB); in testResetOnUnplug_highBatteryLevel()
143 plugBattery(BatteryManager.BATTERY_PLUGGED_USB); in testResetOnUnplug_highBatteryLevel()
159 plugBattery(BatteryManager.BATTERY_PLUGGED_USB); in testResetOnUnplug_significantCharge()
165 plugBattery(BatteryManager.BATTERY_PLUGGED_USB); in testResetOnUnplug_significantCharge()
174 plugBattery(BatteryManager.BATTERY_PLUGGED_USB); in testResetOnUnplug_significantCharge()
187 plugBattery(BatteryManager.BATTERY_PLUGGED_USB); in testResetOnUnplug_significantCharge()
202 plugBattery(BatteryManager.BATTERY_PLUGGED_USB); in testResetOnUnplug_manyPartialCharges()
211 plugBattery(BatteryManager.BATTERY_PLUGGED_USB); in testResetOnUnplug_manyPartialCharges()
[all …]
DBatteryChargeCalculatorTest.java94 BatteryManager.BATTERY_PLUGGED_USB, 80, 72, 3700, 2_400_000, 4_000_000, 100, in testDischargeTotals()
/frameworks/base/core/java/android/os/
DBatteryManager.java206 public static final int BATTERY_PLUGGED_USB = OsProtoEnums.BATTERY_PLUGGED_USB; // = 2 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.java7088 case BatteryManager.BATTERY_PLUGGED_USB: in printNextItem()
/frameworks/base/cmds/svc/src/com/android/commands/svc/
DPowerCommand.java68 | BatteryManager.BATTERY_PLUGGED_USB in run()
75 val = BatteryManager.BATTERY_PLUGGED_USB; in run()
/frameworks/base/packages/SettingsProvider/src/android/provider/settings/validators/
DSystemSettingsValidators.java59 || (val == BatteryManager.BATTERY_PLUGGED_USB) in VALIDATORS.put()
64 | BatteryManager.BATTERY_PLUGGED_USB)) in VALIDATORS.put()
69 == (BatteryManager.BATTERY_PLUGGED_USB in VALIDATORS.put()
73 | BatteryManager.BATTERY_PLUGGED_USB in VALIDATORS.put()
79 == (BatteryManager.BATTERY_PLUGGED_USB in VALIDATORS.put()
DGlobalSettingsValidators.java66 || (val == BatteryManager.BATTERY_PLUGGED_USB) in VALIDATORS.put()
71 | BatteryManager.BATTERY_PLUGGED_USB)) in VALIDATORS.put()
79 == (BatteryManager.BATTERY_PLUGGED_USB in VALIDATORS.put()
82 == (BatteryManager.BATTERY_PLUGGED_USB in VALIDATORS.put()
89 | BatteryManager.BATTERY_PLUGGED_USB in VALIDATORS.put()
93 | BatteryManager.BATTERY_PLUGGED_USB in VALIDATORS.put()
96 == (BatteryManager.BATTERY_PLUGGED_USB in VALIDATORS.put()
/frameworks/base/packages/SettingsLib/tests/unit/src/com/android/settingslib/fuelgague/
DBatteryStatusTest.kt24 import android.os.BatteryManager.BATTERY_PLUGGED_USB
177 arrayOf("withUSB_returnsTrue", BATTERY_PLUGGED_USB, true), in parameters()
210 arrayOf("withUSB_returnsTrue", BATTERY_PLUGGED_USB, false), in parameters()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatteryStatus.java109 || plugged == BatteryManager.BATTERY_PLUGGED_USB; in isPluggedInWired()
240 || plugged == BatteryManager.BATTERY_PLUGGED_USB in isPluggedIn()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibrationSettingsTest.java19 import static android.os.BatteryManager.BATTERY_PLUGGED_USB;
335 Intent nonWirelessChargingIntent = getBatteryChangedIntent(BATTERY_PLUGGED_USB); in shouldIgnoreVibration_onNonWirelessChargerWhenSystemReady_allowsAnyUsage()
359 Intent nonWirelessChargingIntent = getBatteryChangedIntent(BATTERY_PLUGGED_USB); in shouldIgnoreVibration_receivesWirelessChargingIntent_doesNotAllowFromAnyUsage()
383 Intent nonWirelessChargingIntent = getBatteryChangedIntent(BATTERY_PLUGGED_USB); in shouldIgnoreVibration_receivesNonWirelessChargingIntent_allowsAnyUsage()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DUtilsTest.java391 intent.putExtra(BatteryManager.EXTRA_PLUGGED, BatteryManager.BATTERY_PLUGGED_USB); in getBatteryStatus_batteryLevel99_returnChargingString()
424 intent.putExtra(BatteryManager.EXTRA_PLUGGED, BatteryManager.BATTERY_PLUGGED_USB); in getBatteryStatus_chargingAndUseCompactStatus_returnCompactString()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsHistoryIterator.java178 cur.batteryPlugType = BatteryManager.BATTERY_PLUGGED_USB; in readHistoryDelta()
DBatteryStatsHistory.java2233 } else if ((h.batteryPlugType & BatteryManager.BATTERY_PLUGGED_USB) != 0) { in buildStateInt()
/frameworks/base/services/core/java/com/android/server/
DBatteryService.java373 if ((plugTypeSet & BatteryManager.BATTERY_PLUGGED_USB) != 0 in isPoweredLocked()
495 return BatteryManager.BATTERY_PLUGGED_USB; in plugType()
1273 batteryPluggedValue = OsProtoEnums.BATTERY_PLUGGED_USB; in dumpProto()
/frameworks/proto_logging/stats/enums/os/
Denums.proto46 BATTERY_PLUGGED_USB = 2; enumerator
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAppStateTrackerTest.java1655 intent.putExtra(BatteryManager.EXTRA_PLUGGED, BatteryManager.BATTERY_PLUGGED_USB); in testSmallBatteryAndPluggedIn()
1679 intent.putExtra(BatteryManager.EXTRA_PLUGGED, BatteryManager.BATTERY_PLUGGED_USB); in testNotSmallBatteryAndPluggedIn()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDeviceManager.java369 boolean usbCharging = chargePlug == BatteryManager.BATTERY_PLUGGED_USB; in UsbDeviceManager()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java5148 ((mStayOnWhilePluggedInSetting & BatteryManager.BATTERY_PLUGGED_USB) != 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.txt21364 field public static final int BATTERY_PLUGGED_USB = 2; // 0x2
/frameworks/base/core/api/
Dcurrent.txt32580 field public static final int BATTERY_PLUGGED_USB = 2; // 0x2
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt37146 Landroid/os/OsProtoEnums;->BATTERY_PLUGGED_USB:I