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

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tablet/
H A DHeightReceiver.java62 final boolean plugged
64 setPlugged(plugged);
74 private void setPlugged(boolean plugged) { argument
75 mPlugged = plugged;
100 Slog.i(TAG, "Resizing status bar plugged=" + mPlugged + " height="
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DBatteryController.java59 final boolean plugged = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0) != 0;
60 final int icon = plugged ? R.drawable.stat_sys_battery_charge
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DKeyguardUpdateMonitor.java163 public final int plugged; field in class:KeyguardUpdateMonitor.BatteryStatus
165 public BatteryStatus(int status, int level, int plugged, int health) { argument
168 this.plugged = plugged;
279 final int plugged = intent.getIntExtra(EXTRA_PLUGGED, 0);
283 MSG_BATTERY_UPDATE, new BatteryStatus(status, level, plugged, health));
399 * @return Whether the device is considered "plugged in."
402 return status.plugged == BatteryManager.BATTERY_PLUGGED_AC
403 || status.plugged == BatteryManager.BATTERY_PLUGGED_USB;
418 // change in battery level while plugged i
[all...]
H A DPhoneWindowManager.java183 // toasts and the plugged-in battery thing
2540 void setHdmiPlugged(boolean plugged) { argument
2541 if (mHdmiPlugged != plugged) {
2542 mHdmiPlugged = plugged;
2546 intent.putExtra(EXTRA_HDMI_PLUGGED_STATE, plugged);
2552 boolean plugged = false;
2564 plugged = 0 != Integer.parseInt(new String(buf, 0, n-1));
2581 mHdmiPlugged = !plugged;
3191 // Ignore sensor when plugged into HDMI.
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
H A DPowerUI.java121 final boolean plugged = mPlugType != 0;
136 Slog.d(TAG, "plugged " + oldPlugged + " --> " + plugged);
150 if (!plugged
160 } else if (plugged || (bucket > oldBucket && bucket > 0)) {
/frameworks/base/services/java/com/android/server/
H A DBatteryService.java64 * <p>&quot;plugged&quot; - int, 0 if the device is not plugged in; 1 if plugged
65 * into an AC power adapter; 2 if plugged in via USB.</p>
152 // assume we are powered if battery state is unknown so the "stay on while plugged in" option will work.
158 // the "stay on while plugged in" option will work.
313 final boolean plugged = mPlugType != BATTERY_PLUGGED_NONE;
317 * - is just un-plugged (previously was plugged) and battery level is
319 * - is not plugged an
[all...]

Completed in 270 milliseconds