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.java123 private static boolean isEntering(int level, int oldLevel, int newLevel) { in isEntering() argument
124 return newLevel >= level && (oldLevel < level || oldLevel == LEVEL_UNKNOWN); in isEntering()
134 private static boolean isLeaving(int level, int oldLevel, int newLevel) { in isLeaving() argument
135 return newLevel < level && (oldLevel >= level || oldLevel == LEVEL_UNKNOWN); in isLeaving()
207 int newLevel; in check() local
212 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 …]
/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.java260 int newLevel = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, 0);
261 if (newLevel != mBatteryLevel) {
262 mBatteryLevel = newLevel;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPoint.java1336 int newLevel = getLevel(); in setScanResults() local
1339 if (newLevel > 0 && newLevel != oldLevel) { in setScanResults()