/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/strategy/ |
D | AutomaticBrightnessStrategyTest.java | 113 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 …]
|
D | AutomaticBrightnessStrategy2Test.java | 103 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 …]
|
D | TemporaryBrightnessStrategyTest.java | 52 BrightnessReason brightnessReason = new BrightnessReason(); in testUpdateBrightnessWhenTemporaryBrightnessIsSet() local 53 brightnessReason.setReason(BrightnessReason.REASON_TEMPORARY); in testUpdateBrightnessWhenTemporaryBrightnessIsSet() 57 .setBrightnessReason(brightnessReason) in testUpdateBrightnessWhenTemporaryBrightnessIsSet()
|
D | BoostBrightnessStrategyTest.java | 52 BrightnessReason brightnessReason = new BrightnessReason(); in testUpdateBrightnessWhenBoostBrightnessIsRequested() local 53 brightnessReason.setReason(BrightnessReason.REASON_BOOST); in testUpdateBrightnessWhenBoostBrightnessIsRequested() 57 .setBrightnessReason(brightnessReason) in testUpdateBrightnessWhenBoostBrightnessIsRequested()
|
D | DozeBrightnessStrategyTest.java | 49 BrightnessReason brightnessReason = new BrightnessReason(); in testUpdateBrightnessWhenScreenDozeStateIsRequested() local 50 brightnessReason.setReason(BrightnessReason.REASON_DOZE); in testUpdateBrightnessWhenScreenDozeStateIsRequested() 54 .setBrightnessReason(brightnessReason) in testUpdateBrightnessWhenScreenDozeStateIsRequested()
|
D | OverrideBrightnessStrategyTest.java | 52 BrightnessReason brightnessReason = new BrightnessReason(); in testUpdateBrightnessWhenScreenDozeStateIsRequested() local 53 brightnessReason.setReason(BrightnessReason.REASON_OVERRIDE); in testUpdateBrightnessWhenScreenDozeStateIsRequested() 57 .setBrightnessReason(brightnessReason) in testUpdateBrightnessWhenScreenDozeStateIsRequested()
|
D | ScreenOffBrightnessStrategyTest.java | 49 BrightnessReason brightnessReason = new BrightnessReason(); in testUpdateBrightnessWhenScreenOffDisplayState() local 50 brightnessReason.setReason(BrightnessReason.REASON_SCREEN_OFF); in testUpdateBrightnessWhenScreenOffDisplayState() 55 .setBrightnessReason(brightnessReason) in testUpdateBrightnessWhenScreenOffDisplayState()
|
D | FallbackBrightnessStrategyTest.java | 51 BrightnessReason brightnessReason = new BrightnessReason(); in updateBrightness_currentBrightnessIsSet() local 52 brightnessReason.setReason(BrightnessReason.REASON_MANUAL); in updateBrightness_currentBrightnessIsSet() 56 .setBrightnessReason(brightnessReason) in updateBrightness_currentBrightnessIsSet()
|
D | FollowerBrightnessStrategyTest.java | 52 BrightnessReason brightnessReason = new BrightnessReason(); in testUpdateBrightness() local 53 brightnessReason.setReason(BrightnessReason.REASON_FOLLOWER); in testUpdateBrightness() 57 .setBrightnessReason(brightnessReason) in testUpdateBrightness()
|
D | AutoBrightnessFallbackStrategyTest.java | 107 BrightnessReason brightnessReason = new BrightnessReason(); in testUpdateBrightnessWhenScreenDozeStateIsRequested() local 108 brightnessReason.setReason(BrightnessReason.REASON_SCREEN_OFF_BRIGHTNESS_SENSOR); in testUpdateBrightnessWhenScreenDozeStateIsRequested() 112 .setBrightnessReason(brightnessReason) in testUpdateBrightnessWhenScreenDozeStateIsRequested()
|
D | OffloadBrightnessStrategyTest.java | 63 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/ |
D | BrightnessLowLuxModifierTest.kt | 101 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/ |
D | DisplayBrightnessStateTest.java | 51 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/ |
D | BrightnessReasonTest.java | 90 BrightnessReason brightnessReason = new BrightnessReason(); in getReason() local 91 brightnessReason.setReason(reason); in getReason() 92 brightnessReason.setModifier(modifier); in getReason() 93 return brightnessReason; in getReason()
|
D | BrightnessEventTest.java | 111 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/ |
D | BrightnessUtils.java | 67 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/ |
D | FallbackBrightnessStrategy.java | 38 BrightnessReason brightnessReason = new BrightnessReason(); in updateBrightness() local 39 brightnessReason.setReason(BrightnessReason.REASON_MANUAL); in updateBrightness() 43 .setBrightnessReason(brightnessReason) in updateBrightness()
|
D | OffloadBrightnessStrategy.java | 54 BrightnessReason brightnessReason = new BrightnessReason(); in updateBrightness() local 55 brightnessReason.setReason(BrightnessReason.REASON_OFFLOAD); in updateBrightness() 59 .setBrightnessReason(brightnessReason) in updateBrightness()
|
D | AutomaticBrightnessStrategy.java | 131 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()
|
D | AutoBrightnessFallbackStrategy.java | 74 BrightnessReason brightnessReason = new BrightnessReason(); in updateBrightness() local 75 brightnessReason.setReason(BrightnessReason.REASON_SCREEN_OFF_BRIGHTNESS_SENSOR); in updateBrightness() 79 .setBrightnessReason(brightnessReason) in updateBrightness()
|
D | AutomaticBrightnessStrategy2.java | 108 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/ |
D | DisplayBrightnessState.java | 328 public Builder setBrightnessReason(BrightnessReason brightnessReason) { in setBrightnessReason() argument 329 this.mBrightnessReason = brightnessReason; in setBrightnessReason()
|
D | DisplayPowerController.java | 2845 private int convertBrightnessReasonToStatsEnum(int brightnessReason) { in convertBrightnessReasonToStatsEnum() argument 2846 switch(brightnessReason) { in convertBrightnessReasonToStatsEnum()
|