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

/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DBatteryMeterView.java86 boolean plugged; field in class:BatteryMeterView.BatteryTracker
105 plugged = plugType != 0;
130 dummy.putExtra("plugged", savePlugged);
134 dummy.putExtra("plugged", incr > 0 ? BatteryManager.BATTERY_PLUGGED_AC : 0);
339 mBatteryPaint.setColor(tracker.plugged ? mChargeColor : getColorForLevel(level));
362 if (tracker.plugged) {
400 if (!tracker.plugged && level > mCriticalLevel && mShowPercent
429 if (!tracker.plugged) {
455 mDemoTracker.plugged = mTracker.plugged;
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
H A DPowerUI.java164 final boolean plugged = mPlugType != 0;
179 Slog.d(TAG, "plugged " + oldPlugged + " --> " + plugged);
194 if (!plugged
201 } else if (plugged || (bucket > oldBucket && bucket > 0)) {
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardUpdateMonitor.java378 final int plugged = intent.getIntExtra(EXTRA_PLUGGED, 0);
382 MSG_BATTERY_UPDATE, new BatteryStatus(status, level, plugged, health));
508 public final int plugged; field in class:KeyguardUpdateMonitor.BatteryStatus
510 public BatteryStatus(int status, int level, int plugged, int health) { argument
513 this.plugged = plugged;
518 * Determine whether the device is plugged in (USB, power, or wireless).
519 * @return true if the device is plugged in.
522 return plugged == BatteryManager.BATTERY_PLUGGED_AC
523 || plugged
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DBatteryService.java73 * <p>&quot;plugged&quot; - int, 0 if the device is not plugged in; 1 if plugged
74 * into an AC power adapter; 2 if plugged in via USB.</p>
225 // the "stay on while plugged in" option will work.
242 final boolean plugged = mPlugType != BATTERY_PLUGGED_NONE;
246 * - is just un-plugged (previously was plugged) and battery level is
248 * - is not plugged and battery level falls to WARNING boundary
251 return !plugged
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DPhoneWindowManager.java1587 // toasts and the plugged-in battery thing
4102 void setHdmiPlugged(boolean plugged) { argument
4103 if (mHdmiPlugged != plugged) {
4104 mHdmiPlugged = plugged;
4108 intent.putExtra(EXTRA_HDMI_PLUGGED_STATE, plugged);
4114 boolean plugged = false;
4126 plugged = 0 != Integer.parseInt(new String(buf, 0, n-1));
4143 mHdmiPlugged = !plugged;
5047 // Ignore sensor when plugged into HDMI when demo HDMI rotation lock enabled.
5052 // Ignore sensor when plugged int
[all...]

Completed in 154 milliseconds