Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatteryStatus.java57 public final int plugged; field in BatteryStatus
69 public BatteryStatus(int status, int level, int plugged, int chargingStatus, in BatteryStatus() argument
73 this.plugged = plugged; in BatteryStatus()
91 plugged = batteryChangedIntent.getIntExtra(EXTRA_PLUGGED, 0); in BatteryStatus()
103 return isPluggedIn(plugged); in isPluggedIn()
108 return plugged == BatteryManager.BATTERY_PLUGGED_AC in isPluggedInWired()
109 || plugged == BatteryManager.BATTERY_PLUGGED_USB; in isPluggedInWired()
116 return plugged == BatteryManager.BATTERY_PLUGGED_WIRELESS; in isPluggedInWireless()
121 return isPluggedInDock(plugged); in isPluggedInDock()
158 return "BatteryStatus{status=" + status + ",level=" + level + ",plugged=" + plugged in toString()
[all …]
/frameworks/base/packages/SettingsLib/tests/unit/src/com/android/settingslib/fuelgague/
DBatteryStatusTest.kt154 private val plugged: Int, constant in com.android.settingslib.fuelgague.BatteryStatusTest.IsPluggedInTest
160 val batteryChangedIntent = createIntent(plugged = plugged) in isPluggedIn_()
162 assertWithMessage("failed by isPluggedIn(plugged=$plugged)") in isPluggedIn_()
163 .that(BatteryStatus.isPluggedIn(plugged)) in isPluggedIn_()
165 assertWithMessage("failed by isPlugged(Intent), which plugged=$plugged") in isPluggedIn_()
187 private val plugged: Int, in parameters() constant in com.android.settingslib.fuelgague.BatteryStatusTest.IsPluggedInDockTest
193 val batteryChangedIntent = createIntent(plugged = plugged) in parameters()
195 assertWithMessage("failed by isPluggedInDock(plugged=$plugged)") in parameters()
196 .that(BatteryStatus.isPluggedInDock(plugged)) in parameters()
198 assertWithMessage("failed by isPluggedInDock(Intent), which plugged=$plugged") in parameters()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DBatteryStateSnapshot.kt12 val plugged: Boolean, constant in com.android.systemui.power.BatteryStateSnapshot
37 plugged: Boolean,
45 plugged,
DPowerUI.java329 final boolean plugged = mPlugType != 0; in onReceive()
344 Slog.d(TAG, "plugged " + oldPlugged + " --> " + plugged); in onReceive()
371 plugged, bucket); in onReceive()
380 protected void maybeShowBatteryWarningV2(boolean plugged, int bucket) { in maybeShowBatteryWarningV2() argument
395 plugged, bucket, mBatteryStatus, mLowBatteryReminderLevels[1], in maybeShowBatteryWarningV2()
406 plugged, bucket, mBatteryStatus, mLowBatteryReminderLevels[1], in maybeShowBatteryWarningV2()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/
DSystemEventCoordinator.kt106 private var plugged = false variable
111 plugged = pluggedIn in onBatteryLevelChanged()
116 if (plugged != pluggedIn) { in onBatteryLevelChanged()
117 plugged = pluggedIn in onBatteryLevelChanged()
124 if (plugged) notifyPluggedIn(batteryLevel) in notifyListeners()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryControllerLogger.kt92 fun logBatteryLevelChangedCallback(level: Int, plugged: Boolean, charging: Boolean) { in logBatteryLevelChangedCallback()
98 bool1 = plugged in logBatteryLevelChangedCallback()
DBatteryControllerImpl.java495 String plugged = args.getString("plugged"); in dispatchDemoCommand() local
503 if (plugged != null) { in dispatchDemoCommand()
504 mPluggedIn = Boolean.parseBoolean(plugged); in dispatchDemoCommand()
/frameworks/hardware/interfaces/cameraservice/service/2.0/
Dtypes.hal45 * Device physically has been plugged in and the camera can be used
51 * Device physically has been plugged in but it will not be connect-able
/frameworks/base/packages/SystemUI/docs/
Ddemo_mode.md31 | | ```plugged``` | | Sets charging state (```tr…
117 0 -e plugged false
171 plugged false
/frameworks/base/core/proto/android/service/
Dbattery.proto32 optional android.os.BatteryPluggedStateEnum plugged = 2; field
/frameworks/base/core/proto/android/server/
Dappstatetracker.proto68 // Whether device is plugged in to the charger
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.
/frameworks/base/tests/AccessoryDisplay/
DREADME45 so the USB OTG cable should be plugged directly into it.
/frameworks/base/tools/orientationplot/
DREADME.txt21 1. Plug in the device. Ensure that it is the only device plugged in
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayPolicy.java717 public void setHdmiPlugged(boolean plugged) { in setHdmiPlugged() argument
718 setHdmiPlugged(plugged, false /* force */); in setHdmiPlugged()
721 public void setHdmiPlugged(boolean plugged, boolean force) { in setHdmiPlugged() argument
722 if (force || mHdmiPlugged != plugged) { in setHdmiPlugged()
723 mHdmiPlugged = plugged; in setHdmiPlugged()
727 intent.putExtra(EXTRA_HDMI_PLUGGED_STATE, plugged); in setHdmiPlugged()
/frameworks/base/core/proto/android/net/
Dnetworkcapabilities.proto79 // This generally means it's a sim-selected carrier, a plugged in
/frameworks/base/services/core/java/com/android/server/
DEventLogTags.logtags9 2723 battery_status (status|1|5),(health|1|5),(present|1|5),(plugged|1|5),(technology|3)
DBatteryService.java389 final boolean plugged = mPlugType != BATTERY_PLUGGED_NONE; in shouldSendBatteryLowLocked()
398 return !plugged in shouldSendBatteryLowLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyguardIndicationController.java871 void setPowerPluggedIn(boolean plugged) { in setPowerPluggedIn() argument
872 mPowerPluggedIn = plugged; in setPowerPluggedIn()
/frameworks/base/services/core/java/com/android/server/policy/
DPhoneWindowManager.java4553 boolean plugged = false;
4565 plugged = 0 != Integer.parseInt(new String(buf, 0, n - 1));
4586 plugged = observer.init(extcons.get(0));
4595 mDefaultDisplayPolicy.setHdmiPlugged(plugged, true /* force */);
6931 boolean plugged = false;
6933 plugged = parseStateFromFile(hdmi);
6946 return plugged;
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DDeviceIdleController.java675 boolean plugged = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0) != 0;
677 updateChargingLocked(present && plugged);
/frameworks/proto_logging/stats/
Datoms.proto263 // as at other transitions - coming out of doze, device plugged in, etc.
2880 * Logs whether the device is plugged in, and what power source it is using.
2886 // Whether the device is plugged in, from frameworks/proto_logging/stats/enums/os/enums.proto.
4570 * Logs when something is plugged into or removed from the USB-C connector.
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt21379 field public static final java.lang.String EXTRA_PLUGGED = "plugged";
/frameworks/base/core/api/
Dcurrent.txt32600 field public static final String EXTRA_PLUGGED = "plugged";