Home | History | Annotate | Download | only in os

Lines Matching defs:plugType

3435         int plugType = 0;
3437 plugType = 1;
3439 plugType = 2;
3441 plugType = 3;
3445 | ((plugType&STATE_BATTERY_PLUG_MASK)<<STATE_BATTERY_PLUG_SHIFT)
12535 public void setBatteryStateLocked(final int status, final int health, final int plugType,
12542 status, plugType, level);
12544 final boolean onBattery = isOnBattery(plugType, status);
12594 mHistoryCur.batteryPlugType = (byte)plugType;
12632 if (mHistoryCur.batteryPlugType != plugType) {
12633 mHistoryCur.batteryPlugType = (byte)plugType;
12735 public static boolean isOnBattery(int plugType, int status) {
12736 return plugType == BATTERY_PLUGGED_NONE && status != BatteryManager.BATTERY_STATUS_UNKNOWN;
12742 final int status, final int plugType, final int level) {
12747 if (recentPast == null || recentPast.batteryPlugType != plugType) {
12748 StatsLog.write(StatsLog.PLUGGED_STATE_CHANGED, plugType);