Searched refs:plugged (Results 1 - 7 of 7) sorted by relevance

/frameworks/base/core/proto/android/service/
H A Dbattery.proto53 BatteryPlugged plugged = 2;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DBatteryControllerImpl.java142 dummy.putExtra("plugged", savePlugged);
146 dummy.putExtra("plugged", incr > 0 ? BatteryManager.BATTERY_PLUGGED_AC
211 String plugged = args.getString("plugged");
216 if (plugged != null) {
217 mPluggedIn = Boolean.parseBoolean(plugged);
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
H A DPowerUI.java197 final boolean plugged = mPlugType != 0;
212 Slog.d(TAG, "plugged " + oldPlugged + " --> " + plugged);
228 if (!plugged
237 } else if (isPowerSaver || plugged || (bucket > oldBucket && bucket > 0)) {
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DKeyguardUpdateMonitor.java727 final int plugged = intent.getIntExtra(EXTRA_PLUGGED, 0);
747 MSG_BATTERY_UPDATE, new BatteryStatus(status, level, plugged, health,
927 public final int plugged; field in class:KeyguardUpdateMonitor.BatteryStatus
930 public BatteryStatus(int status, int level, int plugged, int health, argument
934 this.plugged = plugged;
940 * Determine whether the device is plugged in (USB, power, or wireless).
941 * @return true if the device is plugged in.
944 return plugged == BatteryManager.BATTERY_PLUGGED_AC
945 || plugged
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DBatteryService.java80 * <p>&quot;plugged&quot; - int, 0 if the device is not plugged in; 1 if plugged
81 * into an AC power adapter; 2 if plugged in via USB.</p>
252 // the "stay on while plugged in" option will work.
269 final boolean plugged = mPlugType != BATTERY_PLUGGED_NONE;
273 * - is just un-plugged (previously was plugged) and battery level is
275 * - is not plugged and battery level falls to WARNING boundary
278 return !plugged
[all...]
H A DDeviceIdleController.java339 int plugged = intent.getIntExtra("plugged", 0);
340 updateChargingLocked(plugged != 0);
/frameworks/base/services/core/java/com/android/server/policy/
H A DPhoneWindowManager.java5781 void setHdmiPlugged(boolean plugged) { argument
5782 if (mHdmiPlugged != plugged) {
5783 mHdmiPlugged = plugged;
5787 intent.putExtra(EXTRA_HDMI_PLUGGED_STATE, plugged);
5793 boolean plugged = false;
5805 plugged = 0 != Integer.parseInt(new String(buf, 0, n-1));
5822 mHdmiPlugged = !plugged;
7117 // Ignore sensor when plugged into HDMI when demo HDMI rotation lock enabled.
7122 // Ignore sensor when plugged into HDMI and an undocked orientation has

Completed in 828 milliseconds