Searched refs:newLevel (Results 1 – 4 of 4) sorted by relevance
123 private static boolean isEntering(int level, int oldLevel, int newLevel) { in isEntering() argument124 return newLevel >= level && (oldLevel < level || oldLevel == LEVEL_UNKNOWN); in isEntering()134 private static boolean isLeaving(int level, int oldLevel, int newLevel) { in isLeaving() argument135 return newLevel < level && (oldLevel >= level || oldLevel == LEVEL_UNKNOWN); in isLeaving()207 int newLevel; in check() local212 newLevel = mForceLevel; in check()214 newLevel = State.LEVEL_FULL; in check()216 newLevel = State.LEVEL_LOW; in check()219 newLevel = State.LEVEL_LOW; in check()221 newLevel = State.LEVEL_NORMAL; in check()[all …]
477 public void setBatteryStatus(boolean newPowered, int newLevel, boolean newBatteryLevelLow) { in setBatteryStatus() argument479 Slog.d(TAG, "setBatteryStatus: powered=" + newPowered + " level=" + newLevel in setBatteryStatus()486 final boolean levelChanged = mBatteryLevel != newLevel; in setBatteryStatus()494 mBatteryLevel = newLevel; in setBatteryStatus()
260 int newLevel = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, 0);261 if (newLevel != mBatteryLevel) {262 mBatteryLevel = newLevel;
1336 int newLevel = getLevel(); in setScanResults() local1339 if (newLevel > 0 && newLevel != oldLevel) { in setScanResults()