Home
last modified time | relevance | path

Searched refs:BATTERY_PLUGGED_NONE (Results 1 – 5 of 5) sorted by relevance

/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/constraints/trackers/
DBatteryNotLowTracker.java38 static final int BATTERY_PLUGGED_NONE = 0; field in BatteryNotLowTracker
67 int plugged = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, BATTERY_PLUGGED_NONE); in getInitialState()
73 return (plugged != BATTERY_PLUGGED_NONE in getInitialState()
/frameworks/base/services/core/java/com/android/server/
DBatteryService.java136 private static final int BATTERY_PLUGGED_NONE = OsProtoEnums.BATTERY_PLUGGED_NONE; // = 0 field in BatteryService
345 final boolean plugged = mPlugType != BATTERY_PLUGGED_NONE; in shouldSendBatteryLowLocked()
346 final boolean oldPlugged = mLastPlugType != BATTERY_PLUGGED_NONE; in shouldSendBatteryLowLocked()
449 mPlugType = BATTERY_PLUGGED_NONE; in processValuesLocked()
485 if (mLastPlugType == BATTERY_PLUGGED_NONE) { in processValuesLocked()
507 } else if (mPlugType == BATTERY_PLUGGED_NONE) { in processValuesLocked()
543 mPlugType == BATTERY_PLUGGED_NONE) { in processValuesLocked()
552 if (mPlugType == BATTERY_PLUGGED_NONE in processValuesLocked()
560 if (mPlugType != BATTERY_PLUGGED_NONE) { in processValuesLocked()
1009 int batteryPluggedValue = OsProtoEnums.BATTERY_PLUGGED_NONE; in dumpProto()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/constraints/trackers/
DBatteryNotLowTrackerTest.java48 private static final int NOT_PLUGGED_IN = BatteryNotLowTracker.BATTERY_PLUGGED_NONE;
/frameworks/base/core/proto/android/os/
Denums.proto39 BATTERY_PLUGGED_NONE = 0; enumerator
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java12532 public static final int BATTERY_PLUGGED_NONE = OsProtoEnums.BATTERY_PLUGGED_NONE; // = 0 field in BatteryStatsImpl
12736 return plugType == BATTERY_PLUGGED_NONE && status != BatteryManager.BATTERY_STATUS_UNKNOWN; in isOnBattery()