Home
last modified time | relevance | path

Searched refs:BrightnessInfo (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/core/java/android/hardware/display/
DBrightnessInfo.java32 public final class BrightnessInfo implements Parcelable { class
115 public BrightnessInfo(float brightness, float brightnessMinimum, float brightnessMaximum, in BrightnessInfo() method in BrightnessInfo
122 public BrightnessInfo(float brightness, float adjustedBrightness, float brightnessMinimum, in BrightnessInfo() method in BrightnessInfo
180 public static final @android.annotation.NonNull Creator<BrightnessInfo> CREATOR =
181 new Creator<BrightnessInfo>() {
183 public BrightnessInfo createFromParcel(Parcel source) {
184 return new BrightnessInfo(source);
188 public BrightnessInfo[] newArray(int size) {
189 return new BrightnessInfo[size];
193 private BrightnessInfo(Parcel source) { in BrightnessInfo() method in BrightnessInfo
DBrightnessInfo.aidl19 parcelable BrightnessInfo;
DIDisplayManager.aidl23 import android.hardware.display.BrightnessInfo;
182 BrightnessInfo getBrightnessInfo(int displayId); in getBrightnessInfo()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/brightness/data/repository/
DFakeScreenBrightnessRepository.kt19 import android.hardware.display.BrightnessInfo
20 import android.hardware.display.BrightnessInfo.BRIGHTNESS_MAX_REASON_NONE
21 import android.hardware.display.BrightnessInfo.HIGH_BRIGHTNESS_MODE_OFF
28 initialBrightnessInfo: BrightnessInfo =
29 BrightnessInfo(0f, 0f, 1f, HIGH_BRIGHTNESS_MODE_OFF, 1f, BRIGHTNESS_MAX_REASON_NONE)
62 BrightnessInfo( in setBrightness()
79 BrightnessInfo( in setMinMaxBrightness()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/brightness/data/repository/
DScreenBrightnessDisplayManagerRepositoryTest.kt19 import android.hardware.display.BrightnessInfo
20 import android.hardware.display.BrightnessInfo.BRIGHTNESS_MAX_REASON_NONE
21 import android.hardware.display.BrightnessInfo.HIGH_BRIGHTNESS_MODE_OFF
65 private var currentBrightnessInfo = BrightnessInfo()
126 val newBrightness = BrightnessInfo(0.6f, 0.3f, 0.9f) in followsChangingBrightnessInfo()
141 currentBrightnessInfo = BrightnessInfo(0.5f, 0.1f, 0.7f) in minMaxWhenNotCollecting()
165 BrightnessInfo(0.5f, 0.1f, 0.7f), in minMaxWhenCollecting()
231 newValue: BrightnessInfo, in changeBrightnessInfoAndNotify()
239 fun BrightnessInfo( in BrightnessInfo() method
243 ): BrightnessInfo { in BrightnessInfo()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DHighBrightnessModeController.java22 import android.hardware.display.BrightnessInfo;
100 private @BrightnessInfo.BrightnessMaxReason int mThrottlingReason =
101 BrightnessInfo.BRIGHTNESS_MAX_REASON_NONE;
103 private int mHbmMode = BrightnessInfo.HIGH_BRIGHTNESS_MODE_OFF;
219 @BrightnessInfo.BrightnessMaxReason int throttlingReason) { in onBrightnessChanged()
306 pw.println(" mThrottlingReason=" + BrightnessInfo.briMaxReasonToString(mThrottlingReason)); in dumpLocal()
309 pw.println(" mHbmMode=" + BrightnessInfo.hbmToString(mHbmMode) in dumpLocal()
310 + (mHbmMode == BrightnessInfo.HIGH_BRIGHTNESS_MODE_HDR in dumpLocal()
475 + BrightnessInfo.briMaxReasonToString(mThrottlingReason) in recalculateTimeAllowance()
502 if (newMode == BrightnessInfo.HIGH_BRIGHTNESS_MODE_HDR in updateHbmStats()
[all …]
DBrightnessThrottler.java24 import android.hardware.display.BrightnessInfo;
92 private @BrightnessInfo.BrightnessMaxReason int mBrightnessMaxReason =
93 BrightnessInfo.BRIGHTNESS_MAX_REASON_NONE;
174 return mBrightnessMaxReason != BrightnessInfo.BRIGHTNESS_MAX_REASON_NONE; in isThrottled()
182 mBrightnessMaxReason = BrightnessInfo.BRIGHTNESS_MAX_REASON_NONE; in stop()
231 int brightnessMaxReason = BrightnessInfo.BRIGHTNESS_MAX_REASON_NONE; in updateThermalThrottling()
238 brightnessMaxReason = BrightnessInfo.BRIGHTNESS_MAX_REASON_THERMAL; in updateThermalThrottling()
253 + BrightnessInfo.briMaxReasonToString(mBrightnessMaxReason)); in updateThermalThrottling()
274 BrightnessInfo.briMaxReasonToString(mBrightnessMaxReason)); in dumpLocal()
DDisplayPowerControllerInterface.java23 import android.hardware.display.BrightnessInfo;
183 BrightnessInfo getBrightnessInfo(); in getBrightnessInfo()
DBrightnessRangeController.java19 import android.hardware.display.BrightnessInfo;
123 @BrightnessInfo.BrightnessMaxReason int throttlingReason) { in onBrightnessChanged()
DDisplayPowerController.java41 import android.hardware.display.BrightnessInfo;
1636 == BrightnessInfo.HIGH_BRIGHTNESS_MODE_HDR in updatePowerStateInternal()
1939 public BrightnessInfo getBrightnessInfo() { in getBrightnessInfo()
1941 return new BrightnessInfo( in getBrightnessInfo()
2895 event.getHbmMode() == BrightnessInfo.HIGH_BRIGHTNESS_MODE_OFF in logBrightnessEvent()
2918 event.getHbmMode() == BrightnessInfo.HIGH_BRIGHTNESS_MODE_SUNLIGHT, in logBrightnessEvent()
2919 event.getHbmMode() == BrightnessInfo.HIGH_BRIGHTNESS_MODE_HDR, in logBrightnessEvent()
3279 public MutableInt hbmMode = new MutableInt(BrightnessInfo.HIGH_BRIGHTNESS_MODE_OFF);
3283 new MutableInt(BrightnessInfo.BRIGHTNESS_MAX_REASON_NONE);
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DBrightnessThrottlerTest.java29 import android.hardware.display.BrightnessInfo;
181 assertEquals(BrightnessInfo.BRIGHTNESS_MAX_REASON_NONE, throttler.getBrightnessMaxReason()); in testThermalThrottlingSingleLevel()
188 assertEquals(BrightnessInfo.BRIGHTNESS_MAX_REASON_THERMAL, in testThermalThrottlingSingleLevel()
196 assertEquals(BrightnessInfo.BRIGHTNESS_MAX_REASON_THERMAL, in testThermalThrottlingSingleLevel()
204 assertEquals(BrightnessInfo.BRIGHTNESS_MAX_REASON_THERMAL, in testThermalThrottlingSingleLevel()
212 assertEquals(BrightnessInfo.BRIGHTNESS_MAX_REASON_NONE, in testThermalThrottlingSingleLevel()
239 assertEquals(BrightnessInfo.BRIGHTNESS_MAX_REASON_NONE, throttler.getBrightnessMaxReason()); in testThermalThrottlingMultiLevel()
246 assertEquals(BrightnessInfo.BRIGHTNESS_MAX_REASON_THERMAL, in testThermalThrottlingMultiLevel()
254 assertEquals(BrightnessInfo.BRIGHTNESS_MAX_REASON_THERMAL, in testThermalThrottlingMultiLevel()
262 assertEquals(BrightnessInfo.BRIGHTNESS_MAX_REASON_THERMAL, in testThermalThrottlingMultiLevel()
[all …]
DBrightnessSynchronizerTest.java31 import android.hardware.display.BrightnessInfo;
91 BrightnessInfo info = new BrightnessInfo(PowerManager.BRIGHTNESS_INVALID_FLOAT, in setUp()
93 BrightnessInfo.HIGH_BRIGHTNESS_MODE_OFF, BRIGHTNESS_MAX, in setUp()
94 BrightnessInfo.BRIGHTNESS_MAX_REASON_NONE); in setUp()
DHighBrightnessModeControllerTest.java19 import static android.hardware.display.BrightnessInfo.HIGH_BRIGHTNESS_MODE_HDR;
20 import static android.hardware.display.BrightnessInfo.HIGH_BRIGHTNESS_MODE_OFF;
21 import static android.hardware.display.BrightnessInfo.HIGH_BRIGHTNESS_MODE_SUNLIGHT;
44 import android.hardware.display.BrightnessInfo;
318 BrightnessInfo.BRIGHTNESS_MAX_REASON_NONE); in testHbmIsNotTurnedOffInHighThermalState()
331 /*unthrottledBrightness*/ 1f, BrightnessInfo.BRIGHTNESS_MAX_REASON_THERMAL); in testHbmIsNotTurnedOffInHighThermalState()
338 BrightnessInfo.BRIGHTNESS_MAX_REASON_NONE); in testHbmIsNotTurnedOffInHighThermalState()
604 BrightnessInfo.BRIGHTNESS_MAX_REASON_NONE); in testHbmStats_ExternalThermalOff()
614 BrightnessInfo.BRIGHTNESS_MAX_REASON_THERMAL); in testHbmStats_ExternalThermalOff()
791 hbmc.onBrightnessChanged(brightness, brightness, BrightnessInfo.BRIGHTNESS_MAX_REASON_NONE); in hbmcOnBrightnessChanged()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/
DBrightnessObserverTest.kt21 import android.hardware.display.BrightnessInfo
99 BrightnessInfo(/* brightness = */ 0.05f, /* adjustedBrightness = */ 0.05f, in setUpLowBrightnessZone()
101 BrightnessInfo.HIGH_BRIGHTNESS_MODE_OFF, in setUpLowBrightnessZone()
103 BrightnessInfo.BRIGHTNESS_MAX_REASON_NONE)) in setUpLowBrightnessZone()
DDisplayModeDirectorTest.java57 import android.hardware.display.BrightnessInfo;
2702 new BrightnessInfo(TRANSITION_POINT + FLOAT_TOLERANCE, 0.0f, 1.0f, in testHbmVoting_forHdr()
2703 BrightnessInfo.HIGH_BRIGHTNESS_MODE_HDR, TRANSITION_POINT, in testHbmVoting_forHdr()
2704 BrightnessInfo.BRIGHTNESS_MAX_REASON_NONE)); in testHbmVoting_forHdr()
2711 new BrightnessInfo(TRANSITION_POINT - FLOAT_TOLERANCE, 0.0f, 1.0f, in testHbmVoting_forHdr()
2712 BrightnessInfo.HIGH_BRIGHTNESS_MODE_HDR, TRANSITION_POINT, in testHbmVoting_forHdr()
2713 BrightnessInfo.BRIGHTNESS_MAX_REASON_NONE)); in testHbmVoting_forHdr()
2720 new BrightnessInfo(0.45f, 0.0f, 1.0f, BrightnessInfo.HIGH_BRIGHTNESS_MODE_OFF, in testHbmVoting_forHdr()
2722 BrightnessInfo.BRIGHTNESS_MAX_REASON_NONE)); in testHbmVoting_forHdr()
2729 new BrightnessInfo(TRANSITION_POINT + FLOAT_TOLERANCE, 0.0f, 1.0f, in testHbmVoting_forHdr()
[all …]
/frameworks/base/services/core/java/com/android/server/display/brightness/clamper/
DBrightnessClamperController.java31 import android.hardware.display.BrightnessInfo;
210 @BrightnessInfo.BrightnessMaxReason
213 return BrightnessInfo.BRIGHTNESS_MAX_REASON_NONE; in getBrightnessMaxReason()
215 return BrightnessInfo.BRIGHTNESS_MAX_REASON_THERMAL; in getBrightnessMaxReason()
217 return BrightnessInfo.BRIGHTNESS_MAX_REASON_POWER_IC; in getBrightnessMaxReason()
219 return BrightnessInfo.BRIGHTNESS_MAX_REASON_WEAR_BEDTIME_MODE; in getBrightnessMaxReason()
222 return BrightnessInfo.BRIGHTNESS_MAX_REASON_NONE; in getBrightnessMaxReason()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/
DBrightnessEventTest.java25 import android.hardware.display.BrightnessInfo;
60 mBrightnessEvent.setHbmMode(BrightnessInfo.HIGH_BRIGHTNESS_MODE_OFF); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/brightness/data/repository/
DScreenBrightnessRepository.kt20 import android.hardware.display.BrightnessInfo
116 private val brightnessInfo: StateFlow<BrightnessInfo?> = in getMinMaxLinearBrightness()
149 private suspend fun brightnessInfoValue(): BrightnessInfo? { in getMinMaxLinearBrightness()
/frameworks/base/services/core/java/com/android/server/display/brightness/
DBrightnessEvent.java25 import android.hardware.display.BrightnessInfo;
135 mHbmMode = BrightnessInfo.HIGH_BRIGHTNESS_MODE_OFF; in reset()
209 + ", hbmMode=" + BrightnessInfo.hbmToString(mHbmMode) in toString()
/frameworks/base/core/java/com/android/internal/display/
DBrightnessSynchronizer.java26 import android.hardware.display.BrightnessInfo;
326 final BrightnessInfo info = display.getBrightnessInfo(); in brightnessIntSettingToFloat()
353 final BrightnessInfo info = display.getBrightnessInfo(); in brightnessFloatToIntSetting()
/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/src/com/android/systemui/accessibility/accessibilitymenu/
DAccessibilityMenuService.java32 import android.hardware.display.BrightnessInfo;
328 BrightnessInfo info = display.getBrightnessInfo(); in adjustBrightness()
/frameworks/layoutlib/bridge/src/android/hardware/display/
DDisplayManagerGlobal.java146 public BrightnessInfo getBrightnessInfo(int displayId) { in getBrightnessInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/brightness/
DBrightnessController.java27 import android.hardware.display.BrightnessInfo;
232 final BrightnessInfo info = mContext.getDisplay().getBrightnessInfo();
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/clamper/
DBrightnessClamperControllerTest.java33 import android.hardware.display.BrightnessInfo;
143 assertEquals(BrightnessInfo.BRIGHTNESS_MAX_REASON_NONE, in testMaxReasonIsNoneOnInit()
/frameworks/base/services/core/java/com/android/server/display/mode/
DDisplayModeDirector.java37 import android.hardware.display.BrightnessInfo;
2479 final BrightnessInfo info = mInjector.getBrightnessInfo(displayId); in getBrightness()
2814 final BrightnessInfo info = mInjector.getBrightnessInfo(displayId); in onDisplayChanged()
2821 final boolean isHbmActive = hbmMode != BrightnessInfo.HIGH_BRIGHTNESS_MODE_OFF in onDisplayChanged()
2846 mHbmMode.get(displayId, BrightnessInfo.HIGH_BRIGHTNESS_MODE_OFF); in recalculateVotesForDisplay()
2847 if (hbmMode == BrightnessInfo.HIGH_BRIGHTNESS_MODE_SUNLIGHT) { in recalculateVotesForDisplay()
2864 } else if (hbmMode == BrightnessInfo.HIGH_BRIGHTNESS_MODE_HDR in recalculateVotesForDisplay()
2998 BrightnessInfo getBrightnessInfo(int displayId); in getBrightnessInfo()
3081 public BrightnessInfo getBrightnessInfo(int displayId) { in getBrightnessInfo()

12