Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/
DCachedDeviceStateServiceTest.java131 intentPluggedIn.putExtra(BatteryManager.EXTRA_PLUGGED, OsProtoEnums.BATTERY_PLUGGED_AC); in correctlyReportsCharging()
136 intentUnplugged.putExtra(BatteryManager.EXTRA_PLUGGED, OsProtoEnums.BATTERY_PLUGGED_NONE); in correctlyReportsCharging()
166 intentPluggedIn.putExtra(BatteryManager.EXTRA_PLUGGED, OsProtoEnums.BATTERY_PLUGGED_AC); in correctlyTracksTimeOnBattery()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatteryStatus.java27 import static android.os.BatteryManager.EXTRA_PLUGGED;
68 plugged = batteryChangedIntent.getIntExtra(EXTRA_PLUGGED, 0); in BatteryStatus()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DUtilsTest.java360 intent.putExtra(BatteryManager.EXTRA_PLUGGED, BatteryManager.BATTERY_PLUGGED_USB); in getBatteryStatus_batteryLevel99_returnChargingString()
371 intent.putExtra(BatteryManager.EXTRA_PLUGGED, BatteryManager.BATTERY_PLUGGED_DOCK); in getBatteryStatus_chargingDock_returnDockChargingString()
382 intent.putExtra(BatteryManager.EXTRA_PLUGGED, BatteryManager.BATTERY_PLUGGED_WIRELESS); in getBatteryStatus_chargingWireless_returnWirelessChargingString()
393 intent.putExtra(BatteryManager.EXTRA_PLUGGED, BatteryManager.BATTERY_PLUGGED_USB); in getBatteryStatus_chargingAndUseCompactStatus_returnCompactString()
404 intent.putExtra(BatteryManager.EXTRA_PLUGGED, BatteryManager.BATTERY_PLUGGED_WIRELESS); in getBatteryStatus_chargingWirelessAndUseCompactStatus_returnCompactString()
/frameworks/base/services/core/java/com/android/server/
DCachedDeviceStateService.java46 intent.getIntExtra(BatteryManager.EXTRA_PLUGGED,
DBatteryService.java698 intent.putExtra(BatteryManager.EXTRA_PLUGGED, mPlugType); in sendBatteryChangedIntentLocked()
728 event.putInt(BatteryManager.EXTRA_PLUGGED, mPlugType); in sendBatteryLevelChangedIntentLocked()
DUiModeManagerService.java261 mCharging = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0) != 0;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBatteryControllerTest.java207 intent.putExtra(BatteryManager.EXTRA_PLUGGED, BatteryManager.BATTERY_PLUGGED_DOCK); in batteryStateChanged_withChargingSourceDock_isChargingSourceDockTrue()
218 intent.putExtra(BatteryManager.EXTRA_PLUGGED, BatteryManager.BATTERY_PLUGGED_WIRELESS); in batteryStateChanged_withChargingSourceNotDock_isChargingSourceDockFalse()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryInputSuspendTest.java111 return batteryMonitor.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1) != 0; in isCharging()
DBstatsCpuTimesValidationTest.java886 return batteryIntent.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1) > 0; in isDevicePluggedIn()
/frameworks/base/core/java/android/os/
DBatteryManager.java89 public static final String EXTRA_PLUGGED = "plugged"; field in BatteryManager
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DUpdateInstaller.java94 batteryStatus.getIntExtra(BatteryManager.EXTRA_PLUGGED, /* defaultValue= */ -1) > 0; in isBatteryLevelSufficient()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryControllerImpl.java216 mPluggedChargingSource = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0); in onReceive()
223 && intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0) in onReceive()
/frameworks/base/core/tests/batterystatstests/BatteryStatsLoadTests/src/com/android/frameworks/core/batterystatsloadtests/
DPowerMetricsCollector.java167 return intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1) != 0;
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverController.java190 mIsPluggedIn = (intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0) != 0);
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java299 mPlugType = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 1); in onReceive()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DAppStateTrackerImpl.java477 mIsPluggedIn = (intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0) != 0);
DDeviceIdleController.java656 boolean plugged = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0) != 0;
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAppStateTrackerTest.java1557 intent.putExtra(BatteryManager.EXTRA_PLUGGED, BatteryManager.BATTERY_PLUGGED_USB); in testSmallBatteryAndPluggedIn()
1581 intent.putExtra(BatteryManager.EXTRA_PLUGGED, BatteryManager.BATTERY_PLUGGED_USB); in testNotSmallBatteryAndPluggedIn()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDeviceManager.java354 int chargePlug = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1); in UsbDeviceManager()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt21379 field public static final java.lang.String EXTRA_PLUGGED = "plugged";
/frameworks/base/core/api/
Dcurrent.txt30832 field public static final String EXTRA_PLUGGED = "plugged";