/frameworks/base/services/core/java/com/android/server/storage/ |
D | DeviceStorageMonitorService.java | 124 private static boolean isEntering(int level, int oldLevel, int newLevel) { in isEntering() argument 125 return newLevel >= level && (oldLevel < level || oldLevel == LEVEL_UNKNOWN); in isEntering() 135 private static boolean isLeaving(int level, int oldLevel, int newLevel) { in isLeaving() argument 136 return newLevel < level && (oldLevel >= level || oldLevel == LEVEL_UNKNOWN); in isLeaving() 208 int newLevel; in checkLow() local 213 newLevel = mForceLevel; in checkLow() 215 newLevel = State.LEVEL_FULL; in checkLow() 217 newLevel = State.LEVEL_LOW; in checkLow() 220 newLevel = State.LEVEL_LOW; in checkLow() 222 newLevel = State.LEVEL_NORMAL; in checkLow() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/ |
D | ToggleRangeBehavior.kt | 225 val newLevel = Math.max(MIN_LEVEL, Math.min(MAX_LEVEL, level)) in <lambda>() constant 230 if (clipLayer.level == MIN_LEVEL && newLevel > MIN_LEVEL) { in <lambda>() 236 val isEdge = newLevel == MIN_LEVEL || newLevel == MAX_LEVEL in <lambda>() 237 if (clipLayer.level != newLevel) { in <lambda>() 239 clipLayer.level = newLevel in <lambda>() 241 } else if (newLevel != clipLayer.level) { in <lambda>() 242 rangeAnimator = ValueAnimator.ofInt(cvh.clipLayer.level, newLevel).apply { in <lambda>() 258 val newValue = levelToRangeValue(newLevel) in <lambda>()
|
/frameworks/native/services/surfaceflinger/Effects/ |
D | Daltonizer.cpp | 45 float newLevel = level / 10.0f; in setLevel() local 46 if (std::fabs(mLevel - newLevel) > 0.09f) { in setLevel() 49 mLevel = newLevel; in setLevel()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | KeyboardBacklightController.java | 279 int newLevel = Arrays.binarySearch(state.mBrightnessValueForLevel, brightnessValue); in maybeRestoreBacklightBrightness() local 280 if (newLevel < 0) { in maybeRestoreBacklightBrightness() 281 newLevel = Math.min(state.getNumBrightnessChangeSteps(), -(newLevel + 1)); in maybeRestoreBacklightBrightness() 283 state.setBrightnessLevel(newLevel); in maybeRestoreBacklightBrightness()
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySaverStateMachine.java | 511 public void setBatteryStatus(boolean newPowered, int newLevel, boolean newBatteryLevelLow) { in setBatteryStatus() argument 513 Slog.d(TAG, "setBatteryStatus: powered=" + newPowered + " level=" + newLevel in setBatteryStatus() 520 final boolean levelChanged = mBatteryLevel != newLevel; in setBatteryStatus() 528 mBatteryLevel = newLevel; in setBatteryStatus()
|
/frameworks/base/media/java/android/mtp/ |
D | MtpDatabase.java | 275 int newLevel = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, 0); 276 if (newLevel != mBatteryLevel) { 277 mBatteryLevel = newLevel;
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | AccessPoint.java | 1464 int newLevel = getLevel(); in setScanResults() local 1467 if (newLevel > 0 && newLevel != oldLevel) { in setScanResults()
|
/frameworks/base/core/java/android/app/ |
D | ActivityManagerInternal.java | 1004 @RestrictionLevel int newLevel) { in onRestrictionLevelChanged() argument
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | AppRestrictionController.java | 2296 @RestrictionLevel int newLevel) { in dispatchAppRestrictionLevelChanges() argument 2298 l -> l.onRestrictionLevelChanged(uid, pkgName, newLevel)); in dispatchAppRestrictionLevelChanges()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | BackgroundRestrictionTest.java | 2706 public void onRestrictionLevelChanged(int uid, String packageName, int newLevel) { 2709 mLevelHolder[0] = newLevel;
|