Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatteryStatus.java26 import static android.os.BatteryManager.EXTRA_PLUGGED;
91 plugged = batteryChangedIntent.getIntExtra(EXTRA_PLUGGED, 0); in BatteryStatus()
229 return batteryChangedIntent.getIntExtra(EXTRA_PLUGGED, 0); in getPluggedType()
248 batteryChangedIntent.getIntExtra(EXTRA_PLUGGED, BATTERY_PLUGGED_NONE)); in isPluggedInDock()
/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/tests/robotests/src/com/android/settingslib/
DUtilsTest.java391 intent.putExtra(BatteryManager.EXTRA_PLUGGED, BatteryManager.BATTERY_PLUGGED_USB); in getBatteryStatus_batteryLevel99_returnChargingString()
402 intent.putExtra(BatteryManager.EXTRA_PLUGGED, BatteryManager.BATTERY_PLUGGED_DOCK); in getBatteryStatus_chargingDock_returnDockChargingString()
413 intent.putExtra(BatteryManager.EXTRA_PLUGGED, BatteryManager.BATTERY_PLUGGED_WIRELESS); in getBatteryStatus_chargingWireless_returnWirelessChargingString()
424 intent.putExtra(BatteryManager.EXTRA_PLUGGED, BatteryManager.BATTERY_PLUGGED_USB); in getBatteryStatus_chargingAndUseCompactStatus_returnCompactString()
435 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.java761 intent.putExtra(BatteryManager.EXTRA_PLUGGED, mPlugType); in sendBatteryChangedIntentLocked()
813 event.putInt(BatteryManager.EXTRA_PLUGGED, mPlugType); in sendBatteryLevelChangedIntentLocked()
DUiModeManagerService.java304 mCharging = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0) != 0;
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryInputSuspendTest.java112 return batteryMonitor.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1) != 0; in isCharging()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBatteryControllerTest.java221 intent.putExtra(BatteryManager.EXTRA_PLUGGED, BatteryManager.BATTERY_PLUGGED_DOCK); in batteryStateChanged_withChargingSourceDock_isChargingSourceDockTrue()
232 intent.putExtra(BatteryManager.EXTRA_PLUGGED, BatteryManager.BATTERY_PLUGGED_WIRELESS); in batteryStateChanged_withChargingSourceNotDock_isChargingSourceDockFalse()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DUpdateInstaller.java94 batteryStatus.getIntExtra(BatteryManager.EXTRA_PLUGGED, /* defaultValue= */ -1) > 0; in isBatteryLevelSufficient()
/frameworks/base/core/java/android/os/
DBatteryManager.java96 public static final String EXTRA_PLUGGED = "plugged"; field in BatteryManager
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryControllerImpl.java253 mPluggedChargingSource = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0); in onReceive()
260 && intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0) in onReceive()
/frameworks/base/packages/SettingsLib/tests/unit/src/com/android/settingslib/fuelgague/
DBatteryStatusTest.kt354 putExtra(BatteryManager.EXTRA_PLUGGED, plugged) in createIntent()
/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.java189 mIsPluggedIn = (intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0) != 0);
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibrationSettingsTest.java21 import static android.os.BatteryManager.EXTRA_PLUGGED;
1027 batteryIntent.putExtra(EXTRA_PLUGGED, extraPluggedValue); in getBatteryChangedIntent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java324 mPlugType = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 1); in onReceive()
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibrationSettings.java628 int pluggedInfo = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0); in updateBatteryInfo()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBstatsCpuTimesValidationTest.java899 return batteryIntent.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1) > 0; in isDevicePluggedIn()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DAppStateTrackerImpl.java456 mIsPluggedIn = (intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0) != 0);
DDeviceIdleController.java675 boolean plugged = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0) != 0;
/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.java368 int chargePlug = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1); in UsbDeviceManager()
/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.txt21379 field public static final java.lang.String EXTRA_PLUGGED = "plugged";
/frameworks/base/core/api/
Dcurrent.txt32600 field public static final String EXTRA_PLUGGED = "plugged";