Home
last modified time | relevance | path

Searched refs:plugged (Results 1 – 20 of 20) sorted by relevance

/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
H A DBatteryStatus.java56 public final int plugged; field in BatteryStatus
72 this.plugged = plugged; in BatteryStatus()
102 return isPluggedIn(plugged); in isPluggedIn()
107 return plugged == BatteryManager.BATTERY_PLUGGED_AC in isPluggedInWired()
108 || plugged == BatteryManager.BATTERY_PLUGGED_USB; in isPluggedInWired()
119 return isPluggedInDock(plugged); in isPluggedInDock()
206 public static boolean isPluggedIn(int plugged) { in isPluggedIn() argument
207 return plugged == BatteryManager.BATTERY_PLUGGED_AC in isPluggedIn()
208 || plugged == BatteryManager.BATTERY_PLUGGED_USB in isPluggedIn()
220 public static boolean isPluggedInDock(int plugged) { in isPluggedInDock() argument
[all …]
/aosp14/frameworks/base/packages/SettingsLib/tests/unit/src/com/android/settingslib/fuelgague/
H A DBatteryStatusTest.kt153 private val plugged: Int,
159 val batteryChangedIntent = createIntent(plugged = plugged)
161 assertWithMessage("failed by isPluggedIn(plugged=$plugged)")
162 .that(BatteryStatus.isPluggedIn(plugged))
164 assertWithMessage("failed by isPlugged(Intent), which plugged=$plugged")
186 private val plugged: Int,
192 val batteryChangedIntent = createIntent(plugged = plugged)
194 assertWithMessage("failed by isPluggedInDock(plugged=$plugged)")
195 .that(BatteryStatus.isPluggedInDock(plugged))
320 plugged: Int = BATTERY_PLUGGED_NONE,
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
H A DBatteryStateSnapshot.kt12 val plugged: Boolean,
37 plugged: Boolean,
45 plugged,
H A DPowerUI.java304 final boolean plugged = mPlugType != 0; in onReceive()
319 Slog.d(TAG, "plugged " + oldPlugged + " --> " + plugged); in onReceive()
346 plugged, bucket); in onReceive()
355 protected void maybeShowBatteryWarningV2(boolean plugged, int bucket) { in maybeShowBatteryWarningV2() argument
370 plugged, bucket, mBatteryStatus, mLowBatteryReminderLevels[1], in maybeShowBatteryWarningV2()
381 plugged, bucket, mBatteryStatus, mLowBatteryReminderLevels[1], in maybeShowBatteryWarningV2()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/
H A DSystemEventCoordinator.kt110 private var plugged = false regex
115 plugged = pluggedIn
120 if (plugged != pluggedIn) {
121 plugged = pluggedIn
128 if (plugged) notifyPluggedIn(batteryLevel)
/aosp14/frameworks/base/packages/SystemUI/docs/
H A Ddemo_mode.md31 | | ```plugged``` | | Sets charging state (```true…
105 0 -e plugged false
159 plugged false
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DBatteryControllerImpl.java492 String plugged = args.getString("plugged"); in dispatchDemoCommand() local
500 if (plugged != null) { in dispatchDemoCommand()
501 mPluggedIn = Boolean.parseBoolean(plugged); in dispatchDemoCommand()
/aosp14/frameworks/base/core/proto/android/service/
H A Dbattery.proto32 optional android.os.BatteryPluggedStateEnum plugged = 2; field
/aosp14/frameworks/base/core/proto/android/server/
H A Dappstatetracker.proto68 // Whether device is plugged in to the charger
H A Dpowermanagerservice.proto83 // True if the device is plugged into a power source.
258 // True if the device should wake up when plugged or unplugged.
260 // True if the device should wake up when plugged or unplugged in theater mode.
274 // True if dreams can run while not plugged in.
308 // The stay on while plugged in setting.
/aosp14/frameworks/base/tests/AccessoryDisplay/
H A DREADME45 so the USB OTG cable should be plugged directly into it.
/aosp14/frameworks/base/tools/orientationplot/
H A DREADME.txt21 1. Plug in the device. Ensure that it is the only device plugged in
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DDisplayPolicy.java708 public void setHdmiPlugged(boolean plugged) { in setHdmiPlugged() argument
709 setHdmiPlugged(plugged, false /* force */); in setHdmiPlugged()
712 public void setHdmiPlugged(boolean plugged, boolean force) { in setHdmiPlugged() argument
713 if (force || mHdmiPlugged != plugged) { in setHdmiPlugged()
714 mHdmiPlugged = plugged; in setHdmiPlugged()
718 intent.putExtra(EXTRA_HDMI_PLUGGED_STATE, plugged); in setHdmiPlugged()
/aosp14/frameworks/base/core/proto/android/net/
H A Dnetworkcapabilities.proto79 // This generally means it's a sim-selected carrier, a plugged in
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DEventLogTags.logtags9 2723 battery_status (status|1|5),(health|1|5),(present|1|5),(plugged|1|5),(technology|3)
H A DBatteryService.java374 final boolean plugged = mPlugType != BATTERY_PLUGGED_NONE; in shouldSendBatteryLowLocked()
383 return !plugged in shouldSendBatteryLowLocked()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DKeyguardIndicationController.java795 void setPowerPluggedIn(boolean plugged) { in setPowerPluggedIn() argument
796 mPowerPluggedIn = plugged; in setPowerPluggedIn()
/aosp14/frameworks/base/services/core/java/com/android/server/policy/
H A DPhoneWindowManager.java4069 boolean plugged = false;
4081 plugged = 0 != Integer.parseInt(new String(buf, 0, n - 1));
4102 plugged = observer.init(extcons.get(0));
4111 mDefaultDisplayPolicy.setHdmiPlugged(plugged, true /* force */);
6528 boolean plugged = false;
6530 plugged = parseStateFromFile(hdmi);
6543 return plugged;
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/
H A DDeviceIdleController.java681 boolean plugged = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0) != 0;
683 updateChargingLocked(present && plugged);
/aosp14/frameworks/base/core/api/
H A Dcurrent.txt32505 field public static final String EXTRA_PLUGGED = "plugged";