Home
last modified time | relevance | path

Searched refs:brightnessReason (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/strategy/
DAutomaticBrightnessStrategyTest.java113 int brightnessReason = BrightnessReason.REASON_UNKNOWN; in testAutoBrightnessState_AutoBrightnessDisabled() local
119 allowAutoBrightnessWhileDozing, brightnessReason, policy, lastUserSetBrightness, in testAutoBrightnessState_AutoBrightnessDisabled()
137 int brightnessReason = BrightnessReason.REASON_UNKNOWN; in testAutoBrightnessState_DisplayIsOff() local
143 allowAutoBrightnessWhileDozing, brightnessReason, policy, lastUserSetBrightness, in testAutoBrightnessState_DisplayIsOff()
161 int brightnessReason = BrightnessReason.REASON_UNKNOWN; in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesNotAllow() local
167 allowAutoBrightnessWhileDozing, brightnessReason, policy, lastUserSetBrightness, in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesNotAllow()
185 int brightnessReason = BrightnessReason.REASON_OVERRIDE; in testAutoBrightnessState_BrightnessReasonIsOverride() local
191 allowAutoBrightnessWhileDozing, brightnessReason, policy, lastUserSetBrightness, in testAutoBrightnessState_BrightnessReasonIsOverride()
209 int brightnessReason = BrightnessReason.REASON_UNKNOWN; in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesAllow() local
217 allowAutoBrightnessWhileDozing, brightnessReason, policy, lastUserSetBrightness, in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesAllow()
[all …]
DAutomaticBrightnessStrategy2Test.java103 int brightnessReason = BrightnessReason.REASON_UNKNOWN; in testAutoBrightnessState_AutoBrightnessDisabled() local
109 allowAutoBrightnessWhileDozing, brightnessReason, policy, lastUserSetBrightness, in testAutoBrightnessState_AutoBrightnessDisabled()
127 int brightnessReason = BrightnessReason.REASON_UNKNOWN; in testAutoBrightnessState_DisplayIsOff() local
133 allowAutoBrightnessWhileDozing, brightnessReason, policy, lastUserSetBrightness, in testAutoBrightnessState_DisplayIsOff()
151 int brightnessReason = BrightnessReason.REASON_UNKNOWN; in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesNotAllow() local
157 allowAutoBrightnessWhileDozing, brightnessReason, policy, lastUserSetBrightness, in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesNotAllow()
175 int brightnessReason = BrightnessReason.REASON_OVERRIDE; in testAutoBrightnessState_BrightnessReasonIsOverride() local
181 allowAutoBrightnessWhileDozing, brightnessReason, policy, lastUserSetBrightness, in testAutoBrightnessState_BrightnessReasonIsOverride()
199 int brightnessReason = BrightnessReason.REASON_UNKNOWN; in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesAllow() local
207 allowAutoBrightnessWhileDozing, brightnessReason, policy, lastUserSetBrightness, in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesAllow()
[all …]
DTemporaryBrightnessStrategyTest.java52 BrightnessReason brightnessReason = new BrightnessReason(); in testUpdateBrightnessWhenTemporaryBrightnessIsSet() local
53 brightnessReason.setReason(BrightnessReason.REASON_TEMPORARY); in testUpdateBrightnessWhenTemporaryBrightnessIsSet()
57 .setBrightnessReason(brightnessReason) in testUpdateBrightnessWhenTemporaryBrightnessIsSet()
DBoostBrightnessStrategyTest.java52 BrightnessReason brightnessReason = new BrightnessReason(); in testUpdateBrightnessWhenBoostBrightnessIsRequested() local
53 brightnessReason.setReason(BrightnessReason.REASON_BOOST); in testUpdateBrightnessWhenBoostBrightnessIsRequested()
57 .setBrightnessReason(brightnessReason) in testUpdateBrightnessWhenBoostBrightnessIsRequested()
DDozeBrightnessStrategyTest.java49 BrightnessReason brightnessReason = new BrightnessReason(); in testUpdateBrightnessWhenScreenDozeStateIsRequested() local
50 brightnessReason.setReason(BrightnessReason.REASON_DOZE); in testUpdateBrightnessWhenScreenDozeStateIsRequested()
54 .setBrightnessReason(brightnessReason) in testUpdateBrightnessWhenScreenDozeStateIsRequested()
DOverrideBrightnessStrategyTest.java52 BrightnessReason brightnessReason = new BrightnessReason(); in testUpdateBrightnessWhenScreenDozeStateIsRequested() local
53 brightnessReason.setReason(BrightnessReason.REASON_OVERRIDE); in testUpdateBrightnessWhenScreenDozeStateIsRequested()
57 .setBrightnessReason(brightnessReason) in testUpdateBrightnessWhenScreenDozeStateIsRequested()
DScreenOffBrightnessStrategyTest.java49 BrightnessReason brightnessReason = new BrightnessReason(); in testUpdateBrightnessWhenScreenOffDisplayState() local
50 brightnessReason.setReason(BrightnessReason.REASON_SCREEN_OFF); in testUpdateBrightnessWhenScreenOffDisplayState()
55 .setBrightnessReason(brightnessReason) in testUpdateBrightnessWhenScreenOffDisplayState()
DFallbackBrightnessStrategyTest.java51 BrightnessReason brightnessReason = new BrightnessReason(); in updateBrightness_currentBrightnessIsSet() local
52 brightnessReason.setReason(BrightnessReason.REASON_MANUAL); in updateBrightness_currentBrightnessIsSet()
56 .setBrightnessReason(brightnessReason) in updateBrightness_currentBrightnessIsSet()
DFollowerBrightnessStrategyTest.java52 BrightnessReason brightnessReason = new BrightnessReason(); in testUpdateBrightness() local
53 brightnessReason.setReason(BrightnessReason.REASON_FOLLOWER); in testUpdateBrightness()
57 .setBrightnessReason(brightnessReason) in testUpdateBrightness()
DAutoBrightnessFallbackStrategyTest.java107 BrightnessReason brightnessReason = new BrightnessReason(); in testUpdateBrightnessWhenScreenDozeStateIsRequested() local
108 brightnessReason.setReason(BrightnessReason.REASON_SCREEN_OFF_BRIGHTNESS_SENSOR); in testUpdateBrightnessWhenScreenDozeStateIsRequested()
112 .setBrightnessReason(brightnessReason) in testUpdateBrightnessWhenScreenDozeStateIsRequested()
DOffloadBrightnessStrategyTest.java63 BrightnessReason brightnessReason = new BrightnessReason(); in testUpdateBrightnessWhenOffloadBrightnessIsSet() local
64 brightnessReason.setReason(BrightnessReason.REASON_OFFLOAD); in testUpdateBrightnessWhenOffloadBrightnessIsSet()
68 .setBrightnessReason(brightnessReason) in testUpdateBrightnessWhenOffloadBrightnessIsSet()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/clamper/
DBrightnessLowLuxModifierTest.kt101 assertThat(modifier.brightnessReason).isEqualTo(0) // no reason - ie off in testSettingOffDisablesModifier()
107 assertThat(modifier.brightnessReason).isEqualTo(0) // no reason - ie off in testSettingOffDisablesModifier()
124 assertThat(modifier.brightnessReason).isEqualTo(BrightnessReason.MODIFIER_MIN_LUX) in testLuxRestrictsBrightnessRange()
141 assertThat(modifier.brightnessReason) in testUserRestrictsBrightnessRange()
160 assertThat(modifier.brightnessReason).isEqualTo(BrightnessReason.MODIFIER_MIN_LUX) in testOnToOff()
171 assertThat(modifier.brightnessReason).isEqualTo(0) // no reason - ie off in testOnToOff()
188 assertThat(modifier.brightnessReason).isEqualTo(0) // no reason - ie off in testOffToOn()
199 assertThat(modifier.brightnessReason).isEqualTo(BrightnessReason.MODIFIER_MIN_LUX) in testOffToOn()
217 assertThat(modifier.brightnessReason).isEqualTo(BrightnessReason.MODIFIER_MIN_LUX) in testEnabledEvenWhenAutobrightnessIsOff()
225 assertThat(modifier.brightnessReason).isEqualTo(BrightnessReason.MODIFIER_MIN_LUX) in testEnabledEvenWhenAutobrightnessIsOff()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayBrightnessStateTest.java51 BrightnessReason brightnessReason = new BrightnessReason(); in validateAllDisplayBrightnessStateFieldsAreSetAsExpected() local
52 brightnessReason.setReason(BrightnessReason.REASON_AUTOMATIC); in validateAllDisplayBrightnessStateFieldsAreSetAsExpected()
53 brightnessReason.setModifier(BrightnessReason.MODIFIER_DIMMED); in validateAllDisplayBrightnessStateFieldsAreSetAsExpected()
57 .setBrightnessReason(brightnessReason) in validateAllDisplayBrightnessStateFieldsAreSetAsExpected()
66 assertEquals(displayBrightnessState.getBrightnessReason(), brightnessReason); in validateAllDisplayBrightnessStateFieldsAreSetAsExpected() local
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/
DBrightnessReasonTest.java90 BrightnessReason brightnessReason = new BrightnessReason(); in getReason() local
91 brightnessReason.setReason(reason); in getReason()
92 brightnessReason.setModifier(modifier); in getReason()
93 return brightnessReason; in getReason()
DBrightnessEventTest.java111 BrightnessReason brightnessReason = new BrightnessReason(); in getReason() local
112 brightnessReason.setReason(reason); in getReason()
113 brightnessReason.setModifier(modifier); in getReason()
114 return brightnessReason; in getReason()
/frameworks/base/services/core/java/com/android/server/display/brightness/
DBrightnessUtils.java67 BrightnessReason brightnessReason = new BrightnessReason(); in constructDisplayBrightnessState() local
68 brightnessReason.setReason(brightnessChangeReason); in constructDisplayBrightnessState()
72 .setBrightnessReason(brightnessReason) in constructDisplayBrightnessState()
/frameworks/base/services/core/java/com/android/server/display/brightness/strategy/
DFallbackBrightnessStrategy.java38 BrightnessReason brightnessReason = new BrightnessReason(); in updateBrightness() local
39 brightnessReason.setReason(BrightnessReason.REASON_MANUAL); in updateBrightness()
43 .setBrightnessReason(brightnessReason) in updateBrightness()
DOffloadBrightnessStrategy.java54 BrightnessReason brightnessReason = new BrightnessReason(); in updateBrightness() local
55 brightnessReason.setReason(BrightnessReason.REASON_OFFLOAD); in updateBrightness()
59 .setBrightnessReason(brightnessReason) in updateBrightness()
DAutomaticBrightnessStrategy.java131 boolean allowAutoBrightnessWhileDozingConfig, int brightnessReason, int policy, in setAutoBrightnessState() argument
140 && brightnessReason != BrightnessReason.REASON_OVERRIDE in setAutoBrightnessState()
145 && brightnessReason != BrightnessReason.REASON_FOLLOWER in setAutoBrightnessState()
281 BrightnessReason brightnessReason = new BrightnessReason(); in updateBrightness() local
282 brightnessReason.setReason(BrightnessReason.REASON_AUTOMATIC); in updateBrightness()
293 .setBrightnessReason(brightnessReason) in updateBrightness()
DAutoBrightnessFallbackStrategy.java74 BrightnessReason brightnessReason = new BrightnessReason(); in updateBrightness() local
75 brightnessReason.setReason(BrightnessReason.REASON_SCREEN_OFF_BRIGHTNESS_SENSOR); in updateBrightness()
79 .setBrightnessReason(brightnessReason) in updateBrightness()
DAutomaticBrightnessStrategy2.java108 boolean allowAutoBrightnessWhileDozingConfig, int brightnessReason, int policy, in setAutoBrightnessState() argument
114 && brightnessReason != BrightnessReason.REASON_OVERRIDE in setAutoBrightnessState()
119 && brightnessReason != BrightnessReason.REASON_FOLLOWER in setAutoBrightnessState()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayBrightnessState.java328 public Builder setBrightnessReason(BrightnessReason brightnessReason) { in setBrightnessReason() argument
329 this.mBrightnessReason = brightnessReason; in setBrightnessReason()
DDisplayPowerController.java2845 private int convertBrightnessReasonToStatsEnum(int brightnessReason) { in convertBrightnessReasonToStatsEnum() argument
2846 switch(brightnessReason) { in convertBrightnessReasonToStatsEnum()