Searched refs:newLevel (Results 1 – 4 of 4) sorted by relevance
120 private static boolean isEntering(int level, int oldLevel, int newLevel) { in isEntering() argument121 return newLevel >= level && (oldLevel < level || oldLevel == LEVEL_UNKNOWN); in isEntering()131 private static boolean isLeaving(int level, int oldLevel, int newLevel) { in isLeaving() argument132 return newLevel < level && (oldLevel >= level || oldLevel == LEVEL_UNKNOWN); in isLeaving()204 int newLevel; in check() local209 newLevel = mForceLevel; in check()211 newLevel = State.LEVEL_FULL; in check()213 newLevel = State.LEVEL_LOW; in check()216 newLevel = State.LEVEL_LOW; in check()218 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()
262 int newLevel = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, 0);263 if (newLevel != mBatteryLevel) {264 mBatteryLevel = newLevel;
1413 int newLevel = getLevel(); in setScanResults() local1416 if (newLevel > 0 && newLevel != oldLevel) { in setScanResults()