Home
last modified time | relevance | path

Searched refs:saturationLevel (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/core/java/com/android/server/display/color/
DGlobalSaturationTintController.java43 public void setMatrix(int saturationLevel) { in setMatrix() argument
44 if (saturationLevel < 0) { in setMatrix()
45 saturationLevel = 0; in setMatrix()
46 } else if (saturationLevel > 100) { in setMatrix()
47 saturationLevel = 100; in setMatrix()
49 Slog.d(ColorDisplayService.TAG, "Setting saturation level: " + saturationLevel); in setMatrix()
51 if (saturationLevel == 100) { in setMatrix()
56 float saturation = saturationLevel * 0.01f; in setMatrix()
DAppSaturationController.java67 int saturationLevel) { in setSaturationLevel() argument
70 .setSaturationLevel(callingPackageName, saturationLevel); in setSaturationLevel()
160 private boolean setSaturationLevel(String callingPackageName, int saturationLevel) { in setSaturationLevel() argument
161 if (saturationLevel == FULL_SATURATION) { in setSaturationLevel()
164 mSaturationLevels.put(callingPackageName, saturationLevel); in setSaturationLevel()
183 int saturationLevel = FULL_SATURATION; in calculateSaturationLevel() local
186 if (level < saturationLevel) { in calculateSaturationLevel()
187 saturationLevel = level; in calculateSaturationLevel()
190 return saturationLevel; in calculateSaturationLevel()
DColorDisplayService.java823 String affectedPackageName, int saturationLevel) { in setAppSaturationLevelInternal() argument
826 saturationLevel); in setAppSaturationLevelInternal()
/frameworks/base/core/java/android/hardware/display/
DColorDisplayManager.java378 public boolean setSaturationLevel(@IntRange(from = 0, to = 100) int saturationLevel) { in setSaturationLevel()
379 return mManager.setSaturationLevel(saturationLevel); in setSaturationLevel()
404 @IntRange(from = 0, to = 100) int saturationLevel) { in setAppSaturationLevel()
405 return mManager.setAppSaturationLevel(packageName, saturationLevel); in setAppSaturationLevel()
629 boolean setSaturationLevel(int saturationLevel) { in setSaturationLevel() argument
631 return mCdm.setSaturationLevel(saturationLevel); in setSaturationLevel()
645 boolean setAppSaturationLevel(String packageName, int saturationLevel) { in setAppSaturationLevel() argument
647 return mCdm.setAppSaturationLevel(packageName, saturationLevel); in setAppSaturationLevel()
DIColorDisplayManager.aidl25 boolean setSaturationLevel(int saturationLevel); in setSaturationLevel() argument
26 boolean setAppSaturationLevel(String packageName, int saturationLevel); in setAppSaturationLevel() argument