Home
last modified time | relevance | path

Searched refs:plugType (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/core/java/com/android/server/power/
DWirelessChargerDetector.java219 public boolean update(boolean isPowered, int plugType) { in update() argument
223 if (isPowered && plugType == BatteryManager.BATTERY_PLUGGED_WIRELESS) { in update()
234 if (plugType != 0 && plugType != BatteryManager.BATTERY_PLUGGED_WIRELESS) { in update()
/frameworks/base/core/java/android/os/
DBatteryManager.java571 public static boolean isPlugWired(int plugType) { in isPlugWired() argument
572 return plugType == BATTERY_PLUGGED_USB || plugType == BATTERY_PLUGGED_AC; in isPlugWired()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsHistory.java1259 public void setBatteryState(int status, int level, int health, int plugType, int temperature, in setBatteryState() argument
1266 mHistoryCur.batteryPlugType = (byte) plugType; in setBatteryState()
2230 int plugType = 0; in buildStateInt() local
2232 plugType = 1; in buildStateInt()
2234 plugType = 2; in buildStateInt()
2236 plugType = 3; in buildStateInt()
2242 | ((plugType & BatteryStatsHistory.STATE_BATTERY_PLUG_MASK) in buildStateInt()
/frameworks/base/core/java/com/android/internal/app/
DIBatteryStats.aidl220 void setBatteryState(int status, int health, int plugType, int level, int temp, int volt, in setBatteryState() argument
/frameworks/base/services/core/java/com/android/server/
DBatteryService.java475 Trace.traceCounter(Trace.TRACE_TAG_POWER, "PlugType", plugType(info)); in update()
491 private static int plugType(HealthInfo healthInfo) { in plugType() method in BatteryService
512 mPlugType = plugType(mHealthInfo); in processValuesLocked()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java2674 public void setBatteryState(final int status, final int health, final int plugType, in setBatteryState() argument
2690 final boolean onBattery = BatteryStatsImpl.isOnBattery(plugType, status); in setBatteryState()
2694 mStats.setBatteryStateLocked(status, health, plugType, level, temp, in setBatteryState()
2708 mStats.setBatteryStateLocked(status, health, plugType, level, temp, in setBatteryState()
/frameworks/base/services/core/java/com/android/server/power/stats/
DBatteryStatsImpl.java1920 public void pluggedStateChanged(int plugType) { in pluggedStateChanged() argument
1921 FrameworkStatsLog.write(FrameworkStatsLog.PLUGGED_STATE_CHANGED, plugType); in pluggedStateChanged()
15009 public void setBatteryStateLocked(final int status, final int health, final int plugType,
15017 reportChangesToStatsLog(status, plugType, level);
15019 final boolean onBattery = isOnBattery(plugType, status);
15061 mBatteryPlugType = plugType;
15064 mHistory.setBatteryState(status, level, health, plugType, temp, voltageMv, chargeUah);
15100 if (mBatteryPlugType != plugType) {
15101 mBatteryPlugType = plugType;
15218 public static boolean isOnBattery(int plugType, int status) {
[all …]
/frameworks/base/services/
Dart-wear-profile1919 PLcom/android/server/BatteryService;->plugType(Landroid/hardware/health/HealthInfo;)I