Home
last modified time | relevance | path

Searched refs:BrightnessSynchronizer (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DBrightnessSynchronizerTest.java47 import com.android.internal.display.BrightnessSynchronizer;
76 private BrightnessSynchronizer mSynchronizer;
222 mSynchronizer = new BrightnessSynchronizer(mContext, mTestLooper.getLooper(), mClock::now, in start()
262 return BrightnessSynchronizer.brightnessFloatToIntSetting(mContext, brightness); in fToI()
264 return BrightnessSynchronizer.brightnessFloatToInt(brightness); in fToI()
270 return BrightnessSynchronizer.brightnessIntSettingToFloat(mContext, brightness); in iToF()
272 return BrightnessSynchronizer.brightnessIntToFloat(brightness); in iToF()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/clamper/
DBrightnessWearBedtimeModeClamperTest.java35 import com.android.internal.display.BrightnessSynchronizer;
69 assertEquals(BRIGHTNESS_CAP, mClamper.getBrightnessCap(), BrightnessSynchronizer.EPSILON); in testBrightnessCap()
98 assertEquals(newBrightnessCap, mClamper.getBrightnessCap(), BrightnessSynchronizer.EPSILON); in testOnDisplayChanged()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/utils/
DDeviceConfigParsingUtilsTest.java30 import com.android.internal.display.BrightnessSynchronizer;
172 assertArrayEquals(new float[]{ BrightnessSynchronizer.brightnessIntToFloat(155), -1, in testDisplayBrightnessThresholdsIntToFloat()
173 BrightnessSynchronizer.brightnessIntToFloat(170) }, in testDisplayBrightnessThresholdsIntToFloat()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDeviceInfo.java32 import com.android.internal.display.BrightnessSynchronizer;
496 if (!BrightnessSynchronizer.floatEquals(hdrSdrRatio, other.hdrSdrRatio)) { in diff()
533 || !BrightnessSynchronizer.floatEquals(brightnessMinimum, other.brightnessMinimum) in diff()
534 || !BrightnessSynchronizer.floatEquals(brightnessMaximum, other.brightnessMaximum) in diff()
535 || !BrightnessSynchronizer.floatEquals(brightnessDefault, in diff()
DDisplayDeviceConfig.java44 import com.android.internal.display.BrightnessSynchronizer;
1873 mBrightnessDefault = BrightnessSynchronizer.brightnessIntToFloat( in loadBrightnessDefaultFromConfigXml()
1888 mBacklightMinimum = BrightnessSynchronizer.brightnessIntToFloat( in loadBrightnessConstraintsFromConfigXml()
1891 mBacklightMaximum = BrightnessSynchronizer.brightnessIntToFloat( in loadBrightnessConstraintsFromConfigXml()
2402 sysBrightnessFloat[i] = BrightnessSynchronizer.brightnessIntToFloat( in loadBrightnessMapFromConfigXml()
2693 mBrightnessRampFastIncrease = BrightnessSynchronizer.brightnessIntToFloat( in loadBrightnessRampsFromConfigXml()
2695 mBrightnessRampSlowIncrease = BrightnessSynchronizer.brightnessIntToFloat( in loadBrightnessRampsFromConfigXml()
2918 mBrightnessCapForWearBedtimeMode = BrightnessSynchronizer.brightnessIntToFloat( in loadBrightnessCapForWearBedtimeModeFromConfigXml()
DLocalDisplayAdapter.java53 import com.android.internal.display.BrightnessSynchronizer;
955 BrightnessSynchronizer.brightnessFloatToInt(brightnessState)); in requestDisplayStateLocked()
958 BrightnessSynchronizer.brightnessFloatToInt( in requestDisplayStateLocked()
990 if (!BrightnessSynchronizer.floatEquals( in requestDisplayStateLocked()
1706 if (BrightnessSynchronizer.floatEquals(
DHighBrightnessModeController.java37 import com.android.internal.display.BrightnessSynchronizer;
626 if (!BrightnessSynchronizer.floatEquals( in onHdrInfoChanged()
DAutomaticBrightnessController.java53 import com.android.internal.display.BrightnessSynchronizer;
967 final boolean currentBrightnessWithinAllowedRange = BrightnessSynchronizer.floatEquals( in updateAutoBrightness()
984 if (!BrightnessSynchronizer.floatEquals(mScreenAutoBrightness, in updateAutoBrightness()
DDisplayPowerController.java73 import com.android.internal.display.BrightnessSynchronizer;
1596 && !BrightnessSynchronizer.floatEquals(brightnessState, in updatePowerStateInternal()
1666 final boolean isHdrOnlyChange = BrightnessSynchronizer.floatEquals( in updatePowerStateInternal()
2784 ? BrightnessSynchronizer.brightnessFloatToIntSetting(mContext, brightness) in noteScreenBrightness()
2785 : BrightnessSynchronizer.brightnessFloatToInt(brightness); in noteScreenBrightness()
DDisplayManagerService.java155 import com.android.internal.display.BrightnessSynchronizer;
562 private final BrightnessSynchronizer mBrightnessSynchronizer;
612 mBrightnessSynchronizer = new BrightnessSynchronizer(mContext, in DisplayManagerService()
/frameworks/base/services/core/java/com/android/server/display/utils/
DDeviceConfigParsingUtils.java24 import com.android.internal.display.BrightnessSynchronizer;
170 thresholds[i] = BrightnessSynchronizer.brightnessIntToFloat(thresholdsInt[i]); in displayBrightnessThresholdsIntToFloat()
/frameworks/base/services/core/java/com/android/server/display/brightness/clamper/
DBrightnessLowLuxModifier.java31 import com.android.internal.display.BrightnessSynchronizer;
176 if (BrightnessSynchronizer.floatEquals(stateBuilder.getBrightness(), in apply()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/brightness/
DBrightnessController.java47 import com.android.internal.display.BrightnessSynchronizer;
358 BrightnessSynchronizer.brightnessFloatToInt(valFloat)); in onChanged()
425 if (BrightnessSynchronizer.floatEquals(brightnessValue, in updateSlider()
/frameworks/base/services/core/java/com/android/server/display/config/
DDisplayBrightnessMappingConfig.java28 import com.android.internal.display.BrightnessSynchronizer;
277 BrightnessSynchronizer.brightnessIntToFloat(brightnessInt[i])); in brightnessArrayIntToFloat()
/frameworks/base/core/java/com/android/internal/display/
DBrightnessSynchronizer.java51 public class BrightnessSynchronizer { class
81 public BrightnessSynchronizer(Context context, boolean intRangeUserPerceptionEnabled) { in BrightnessSynchronizer() method in BrightnessSynchronizer
87 public BrightnessSynchronizer(Context context, Looper looper, Clock clock, in BrightnessSynchronizer() method in BrightnessSynchronizer
/frameworks/base/services/core/java/com/android/server/display/brightness/
DDisplayBrightnessController.java31 import com.android.internal.display.BrightnessSynchronizer;
195 && !BrightnessSynchronizer.floatEquals(mDisplayBrightnessStrategySelector in setBrightnessFromOffload()
/frameworks/base/services/core/java/com/android/server/wm/
DDeferredDisplayUpdater.java38 import com.android.internal.display.BrightnessSynchronizer;
422 || !BrightnessSynchronizer.floatEquals(first.hdrSdrRatio, second.hdrSdrRatio) in calculateDisplayInfoDiff()
/frameworks/base/services/core/java/com/android/server/lights/
DLightsService.java41 import com.android.internal.display.BrightnessSynchronizer;
299 int brightnessInt = BrightnessSynchronizer.brightnessFloatToInt(brightness); in setBrightness()
/frameworks/base/core/java/android/view/
DDisplayInfo.java45 import com.android.internal.display.BrightnessSynchronizer;
462 && BrightnessSynchronizer.floatEquals(hdrSdrRatio, other.hdrSdrRatio) in equals()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/
DDisplayModeDirectorTest.java85 import com.android.internal.display.BrightnessSynchronizer;
1171 float[] expectedDisplayThresholds = { BrightnessSynchronizer.brightnessIntToFloat(10) };
1185 expectedDisplayThresholds = new float[]{ BrightnessSynchronizer.brightnessIntToFloat(9),
1186 BrightnessSynchronizer.brightnessIntToFloat(14) };
3158 new float[]{ BrightnessSynchronizer.brightnessIntToFloat(250) }, /* delta= */ 0); in testNotifyDefaultDisplayDeviceUpdated()
3162 new float[]{ BrightnessSynchronizer.brightnessIntToFloat(5) }, /* delta= */ 0); in testNotifyDefaultDisplayDeviceUpdated()
3227 new float[]{ BrightnessSynchronizer.brightnessIntToFloat(255) }, /* delta= */ 0); in testNotifyDefaultDisplayDeviceUpdated()
3231 new float[]{ BrightnessSynchronizer.brightnessIntToFloat(10) }, /* delta= */ 0); in testNotifyDefaultDisplayDeviceUpdated()
3571 float floatBri = BrightnessSynchronizer.brightnessIntToFloat(brightness); in setBrightness()
3572 float floatAdjBri = BrightnessSynchronizer.brightnessIntToFloat(adjustedBrightness); in setBrightness()
/frameworks/base/ravenwood/texts/
Dravenwood-annotation-allowed-classes.txt5 com.android.internal.display.BrightnessSynchronizer
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java118 import com.android.internal.display.BrightnessSynchronizer;
1229 mScreenBrightnessMinimum = BrightnessSynchronizer.brightnessIntToFloat(
1232 mScreenBrightnessMaximum = BrightnessSynchronizer.brightnessIntToFloat(
1235 mScreenBrightnessDefault = BrightnessSynchronizer.brightnessIntToFloat(
1244 mScreenBrightnessDoze = BrightnessSynchronizer.brightnessIntToFloat(
1251 mScreenBrightnessDim = BrightnessSynchronizer.brightnessIntToFloat(
4434 if (!BrightnessSynchronizer.floatEquals(mScreenBrightnessOverrideFromWindowManager,
4471BrightnessSynchronizer.brightnessIntToFloat(mDozeScreenBrightnessOverrideFromDreamManager);
/frameworks/base/core/java/
DAndroid.bp54 srcs: ["com/android/internal/display/BrightnessSynchronizer.java"],
/frameworks/base/services/core/java/com/android/server/display/mode/
DDisplayModeDirector.java75 import com.android.internal.display.BrightnessSynchronizer;
2152 if (!BrightnessSynchronizer.floatEquals(brightness, mBrightness)) { in onDisplayChanged()
/frameworks/base/config/
Ddirty-image-objects318 Lcom/android/internal/display/BrightnessSynchronizer; 11

12