Home
last modified time | relevance | path

Searched refs:newLevel (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/core/java/com/android/server/storage/
DDeviceStorageMonitorService.java120 private static boolean isEntering(int level, int oldLevel, int newLevel) { in isEntering() argument
121 return newLevel >= level && (oldLevel < level || oldLevel == LEVEL_UNKNOWN); in isEntering()
131 private static boolean isLeaving(int level, int oldLevel, int newLevel) { in isLeaving() argument
132 return newLevel < level && (oldLevel >= level || oldLevel == LEVEL_UNKNOWN); in isLeaving()
204 int newLevel; in check() local
209 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 …]
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverStateMachine.java477 public void setBatteryStatus(boolean newPowered, int newLevel, boolean newBatteryLevelLow) { in setBatteryStatus() argument
479 Slog.d(TAG, "setBatteryStatus: powered=" + newPowered + " level=" + newLevel in setBatteryStatus()
486 final boolean levelChanged = mBatteryLevel != newLevel; in setBatteryStatus()
494 mBatteryLevel = newLevel; in setBatteryStatus()
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java262 int newLevel = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, 0);
263 if (newLevel != mBatteryLevel) {
264 mBatteryLevel = newLevel;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPoint.java1413 int newLevel = getLevel(); in setScanResults() local
1416 if (newLevel > 0 && newLevel != oldLevel) { in setScanResults()