Home
last modified time | relevance | path

Searched refs:POLICY_BRIGHT (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/
DScreenUndimDetectorTest.java19 import static android.hardware.display.DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT;
61 POLICY_BRIGHT);
115 mScreenUndimDetector.recordScreenPolicy(DEFAULT_DISPLAY_GROUP, POLICY_BRIGHT); in recordScreenPolicy_disabledByFlag_noop()
134 mScreenUndimDetector.recordScreenPolicy(DEFAULT_DISPLAY_GROUP, POLICY_BRIGHT); in recordScreenPolicy_dimToBright_extends()
143 mScreenUndimDetector.recordScreenPolicy(OTHER_DISPLAY_GROUP, POLICY_BRIGHT); in recordScreenPolicy_dimToBright_ignoresOtherDisplayGroup()
146 mScreenUndimDetector.recordScreenPolicy(DEFAULT_DISPLAY_GROUP, POLICY_BRIGHT); in recordScreenPolicy_dimToBright_ignoresOtherDisplayGroup()
154 if (from == POLICY_DIM && to == POLICY_BRIGHT) { in recordScreenPolicy_otherTransitions_doesNotExtend()
175 mScreenUndimDetector.recordScreenPolicy(DEFAULT_DISPLAY_GROUP, POLICY_BRIGHT); in recordScreenPolicy_dimToBright_twoUndimsNeeded_extends()
180 mScreenUndimDetector.recordScreenPolicy(DEFAULT_DISPLAY_GROUP, POLICY_BRIGHT); in recordScreenPolicy_dimToBright_twoUndimsNeeded_extends()
193 mScreenUndimDetector.recordScreenPolicy(DEFAULT_DISPLAY_GROUP, POLICY_BRIGHT); in recordScreenPolicy_dimToBright_twoUndimsNeeded_otherDisplayDoesNotExtend()
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/state/
DDisplayStateControllerTest.java96 validDisplayState(DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT, in updateProximityStateEvaluatesDimBrightAsExpected()
107 displayPowerRequest.policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in updateProximityStateWorksAsExpectedWhenDisplayDisabled()
125 displayPowerRequest.policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in updateProximityStateWorksAsExpectedWhenTransitionPhase()
143 displayPowerRequest.policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in updateProximityStateWorksAsExpectedWhenScreenOffBecauseOfProximity()
/frameworks/base/core/java/android/hardware/display/
DDisplayManagerInternal.java460 public static final int POLICY_BRIGHT = 3; field in DisplayManagerInternal.DisplayPowerRequest
504 policy = POLICY_BRIGHT; in DisplayPowerRequest()
520 return policy == POLICY_BRIGHT || policy == POLICY_DIM; in isBrightOrDim()
595 case POLICY_BRIGHT: in policyToString()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/strategy/
DAutomaticBrightnessStrategyTest.java114 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in testAutoBrightnessState_AutoBrightnessDisabled()
186 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in testAutoBrightnessState_BrightnessReasonIsOverride()
238 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in testAutoBrightnessState_DisplayIsOn()
266 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in testAutoBrightnessState_modeSwitch()
306 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in accommodateUserBrightnessChangesWorksAsExpected()
454 DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT, 0.1f, in isAutoBrightnessValid_returnsFalseWhenBrightnessIsInvalid()
470 DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT, 0.1f, in isAutoBrightnessValid_returnsTrueWhenBrightnessIsValid_adjustsAutoBrightness()
544 brightness, DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT, in updateBrightness_constructsDisplayBrightnessState_withAdjustmentTempAdjustmentFlag()
DAutomaticBrightnessStrategy2Test.java104 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in testAutoBrightnessState_AutoBrightnessDisabled()
176 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in testAutoBrightnessState_BrightnessReasonIsOverride()
228 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in testAutoBrightnessState_DisplayIsOn()
253 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in accommodateUserBrightnessChangesWorksAsExpected()
/frameworks/base/services/core/java/com/android/server/power/
DScreenUndimDetector.java19 import static android.hardware.display.DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT;
148 if (newPolicy == POLICY_BRIGHT) { in recordScreenPolicy()
183 case POLICY_BRIGHT: in recordScreenPolicy()
DPowerGroup.java322 return mDisplayPowerRequest.policy == DisplayPowerRequest.POLICY_BRIGHT; in isPolicyBrightLocked()
412 return DisplayPowerRequest.POLICY_BRIGHT; in getDesiredScreenPolicyLocked()
423 return DisplayPowerRequest.POLICY_BRIGHT; in getDesiredScreenPolicyLocked()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/
DBrightnessEventTest.java19 import static android.hardware.display.DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT;
48 mBrightnessEvent.setDisplayPolicy(POLICY_BRIGHT); in setUp()
DDisplayBrightnessStrategySelectorTest.java344 displayPowerRequest.policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in selectStrategy_selectsAutomaticStrategyWhenValid()
356 DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT, 0.1f, false); in selectStrategy_selectsAutomaticStrategyWhenValid()
366 displayPowerRequest.policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in selectStrategy_selectsAutomaticFallbackStrategyWhenValid()
403 displayPowerRequest.policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in selectStrategy_selectsFallbackStrategyAsAnUltimateFallback()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DAutomaticBrightnessControllerTest.java196 false /* userChanged= */, DisplayPowerRequest.POLICY_BRIGHT, Display.STATE_ON, in setupController()
302 false /* userChanged= */, DisplayPowerRequest.POLICY_BRIGHT, Display.STATE_ON, in testUserAddUserDataPoint()
326 false /* userChanged= */, DisplayPowerRequest.POLICY_BRIGHT, Display.STATE_ON, in testRecalculateSplines()
360 /* userChanged= */ false, DisplayPowerRequest.POLICY_BRIGHT, Display.STATE_ON, in testShortTermModelTimesOut()
400 false /* userChanged= */, DisplayPowerRequest.POLICY_BRIGHT, Display.STATE_ON, in testShortTermModelDoesntTimeOut()
440 /* userChanged= */ false, DisplayPowerRequest.POLICY_BRIGHT, Display.STATE_ON, in testShortTermModelIsRestoredWhenSwitchingWithinTimeout()
486 /* userChanged= */ false, DisplayPowerRequest.POLICY_BRIGHT, Display.STATE_ON, in testShortTermModelNotRestoredAfterTimeout()
573 false /* userChanged= */, DisplayPowerRequest.POLICY_BRIGHT, Display.STATE_ON, in testSwitchToIdleMappingStrategy()
600 false /* userChanged= */, DisplayPowerRequest.POLICY_BRIGHT, Display.STATE_ON, in testSwitchToIdleMappingStrategy()
761 0 /* adjustment= */, false /* userChanged= */, DisplayPowerRequest.POLICY_BRIGHT,
[all …]
DDisplayPowerControllerTest.java225 dpr.policy = DisplayPowerRequest.POLICY_BRIGHT; in testReleaseProxSuspendBlockersOnExit()
254 dpr.policy = DisplayPowerRequest.POLICY_BRIGHT; in testScreenOffBecauseOfProximity()
297 dpr.policy = DisplayPowerRequest.POLICY_BRIGHT; in testScreenOffBecauseOfProximity_ProxSensorGone()
336 dpr.policy = DisplayPowerRequest.POLICY_BRIGHT; in testProximitySensorListenerNotRegisteredForNonDefaultDisplay()
858 dpr.policy = DisplayPowerRequest.POLICY_BRIGHT; in testSetScreenOffBrightnessSensorEnabled_DisplayIsOff()
896 dpr.policy = DisplayPowerRequest.POLICY_BRIGHT; in testSetScreenOffBrightnessSensorEnabled_DisplayIsInDoze()
939 dpr.policy = DisplayPowerRequest.POLICY_BRIGHT; in testSetScreenOffBrightnessSensorDisabled_DisplayIsOn()
982 dpr.policy = DisplayPowerRequest.POLICY_BRIGHT; in testAutoBrightnessEnabled_DisplayIsOn()
991 /* userChangedAutoBrightnessAdjustment= */ false, DisplayPowerRequest.POLICY_BRIGHT, in testAutoBrightnessEnabled_DisplayIsOn()
1061 dpr.policy = DisplayPowerRequest.POLICY_BRIGHT; in testAutoBrightnessDisabled_ManualBrightnessMode()
[all …]
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/
DPowerGroupTest.java20 import static android.hardware.display.DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT;
469 assertThat(displayPowerRequest.policy).isEqualTo(POLICY_BRIGHT); in testUpdateWhileDreamingWithScreenBrightWakelock_UpdatesDisplayPowerRequest()
506 assertThat(displayPowerRequest.policy).isEqualTo(POLICY_BRIGHT); in testUpdateWhileAwakeBootNotComplete_UpdatesDisplayPowerRequest()
544 assertThat(displayPowerRequest.policy).isEqualTo(POLICY_BRIGHT); in testUpdateWhileAwakeUserActivityScreenBright_UpdatesDisplayPowerRequest()
581 assertThat(displayPowerRequest.policy).isEqualTo(POLICY_BRIGHT); in testUpdateWhileAwakeScreenBrightnessBoostInProgress_UpdatesDisplayPowerRequest()
DPowerManagerServiceTest.java1746 DisplayPowerRequest.POLICY_BRIGHT); in testBoot_DesiredScreenPolicyShouldBeBright()
1776 DisplayPowerRequest.POLICY_BRIGHT); in testQuiescentBoot_WakeUp_DesiredScreenPolicyShouldBeBright()
1791 DisplayPowerRequest.POLICY_BRIGHT); in testQuiescentBoot_WakeKeyBeforeBootCompleted_AwakeAfterBootCompleted()
/frameworks/base/services/core/java/com/android/server/display/state/
DDisplayStateController.java82 case DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT: in updateDisplayState()
/frameworks/base/services/core/java/com/android/server/display/
DAutomaticBrightnessController.java534 return policy == DisplayPowerRequest.POLICY_BRIGHT in isInteractivePolicy()
DDisplayPowerController.java1299 previousPolicy = DisplayPowerRequest.POLICY_BRIGHT; in updatePowerStateInternal()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt19831 Landroid/hardware/display/DisplayManagerInternal$DisplayPowerRequest;->POLICY_BRIGHT:I