Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/core/java/com/android/server/display/color/
H A 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()
H A 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()
H A DColorDisplayService.java979 void setSaturationLevelInternal(int saturationLevel) { in setSaturationLevelInternal() argument
981 message.arg1 = saturationLevel; in setSaturationLevelInternal()
986 String affectedPackageName, int saturationLevel) { in setAppSaturationLevelInternal() argument
989 saturationLevel); in setAppSaturationLevelInternal()
/aosp14/frameworks/base/core/java/android/hardware/display/
H A DColorDisplayManager.java390 public boolean setSaturationLevel(@IntRange(from = 0, to = 100) int saturationLevel) { in setSaturationLevel()
391 return mManager.setSaturationLevel(saturationLevel); in setSaturationLevel()
416 @IntRange(from = 0, to = 100) int saturationLevel) { in setAppSaturationLevel()
417 return mManager.setAppSaturationLevel(packageName, saturationLevel); in setAppSaturationLevel()
720 boolean setSaturationLevel(int saturationLevel) { in setSaturationLevel() argument
722 return mCdm.setSaturationLevel(saturationLevel); in setSaturationLevel()
736 boolean setAppSaturationLevel(String packageName, int saturationLevel) { in setAppSaturationLevel() argument
738 return mCdm.setAppSaturationLevel(packageName, saturationLevel); in setAppSaturationLevel()
H A DIColorDisplayManager.aidl25 boolean setSaturationLevel(int saturationLevel); in setSaturationLevel() argument
27 boolean setAppSaturationLevel(String packageName, int saturationLevel); in setAppSaturationLevel() argument