Searched defs:plugged (Results 1 - 4 of 4) sorted by relevance

/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/constraints/trackers/
H A DBatteryNotLowTrackerTest.java73 private Intent createBatteryChangedIntent(int plugged, int status, float percent) { argument
78 intent.putExtra(BatteryManager.EXTRA_PLUGGED, plugged);
86 int plugged, int status, float percentage, boolean expectedBatteryNotLow) {
87 mockContextReturns(createBatteryChangedIntent(plugged, status, percentage));
85 testGetInitialStateHelper( int plugged, int status, float percentage, boolean expectedBatteryNotLow) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
H A DPowerUI.java218 final boolean plugged = mPlugType != 0;
233 Slog.d(TAG, "plugged " + oldPlugged + " --> " + plugged);
250 maybeShowBatteryWarning(plugged, oldPlugged, oldBucket, bucket);
265 protected void maybeShowBatteryWarning(boolean plugged, boolean oldPlugged, int oldBucket, argument
291 if (shouldShowLowBatteryWarning(plugged, oldPlugged, oldBucket, bucket,
305 } else if (shouldDismissLowBatteryWarning(plugged, oldBucket, bucket, mTimeRemaining,
314 boolean shouldShowLowBatteryWarning(boolean plugged, boolean oldPlugged, int oldBucket, argument
318 return isEnhancedTrigger(plugged, timeRemaining, isPowerSaver, batteryStatus);
321 return !plugged
328 shouldDismissLowBatteryWarning(boolean plugged, int oldBucket, int bucket, long timeRemaining, boolean isPowerSaver) argument
339 isEnhancedTrigger(boolean plugged, long timeRemaining, boolean isPowerSaver, int batteryStatus) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DKeyguardUpdateMonitor.java771 final int plugged = intent.getIntExtra(EXTRA_PLUGGED, 0);
791 MSG_BATTERY_UPDATE, new BatteryStatus(status, level, plugged, health,
983 public final int plugged; field in class:KeyguardUpdateMonitor.BatteryStatus
986 public BatteryStatus(int status, int level, int plugged, int health, argument
990 this.plugged = plugged;
996 * Determine whether the device is plugged in (USB, power, or wireless).
997 * @return true if the device is plugged in.
1000 return plugged == BatteryManager.BATTERY_PLUGGED_AC
1001 || plugged
[all...]
/frameworks/base/services/core/java/com/android/server/policy/
H A DPhoneWindowManager.java5962 void setHdmiPlugged(boolean plugged) { argument
5963 if (mHdmiPlugged != plugged) {
5964 mHdmiPlugged = plugged;
5968 intent.putExtra(EXTRA_HDMI_PLUGGED_STATE, plugged);
5983 boolean plugged = false;
5995 plugged = 0 != Integer.parseInt(new String(buf, 0, n-1));
6012 mHdmiPlugged = !plugged;
7286 // Ignore sensor when plugged into HDMI when demo HDMI rotation lock enabled.
7291 // Ignore sensor when plugged into HDMI and an undocked orientation has

Completed in 156 milliseconds