/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/ |
D | DisplayBrightnessStrategySelectorTest.java | 100 private DisplayManagerFlags mDisplayManagerFlags; field in DisplayBrightnessStrategySelectorTest 185 mInjector, DISPLAY_ID, mDisplayManagerFlags); in before() 219 when(mDisplayManagerFlags.offloadControlsDozeAutoBrightness()).thenReturn(true); in selectStrategyDoesNotSelectDozeStrategyWhenOffloadSessionAutoBrightnessIsEnabled() 220 when(mDisplayManagerFlags.isDisplayOffloadEnabled()).thenReturn(true); in selectStrategyDoesNotSelectDozeStrategyWhenOffloadSessionAutoBrightnessIsEnabled() 228 mInjector, DISPLAY_ID, mDisplayManagerFlags); in selectStrategyDoesNotSelectDozeStrategyWhenOffloadSessionAutoBrightnessIsEnabled() 316 when(mDisplayManagerFlags.isDisplayOffloadEnabled()).thenReturn(true); in selectStrategySelectsOffloadStrategyWhenValid() 318 mInjector, DISPLAY_ID, mDisplayManagerFlags); in selectStrategySelectsOffloadStrategyWhenValid() 334 when(mDisplayManagerFlags.isRefactorDisplayPowerControllerEnabled()).thenReturn(true); in selectStrategy_selectsAutomaticStrategyWhenValid() 335 when(mDisplayManagerFlags.offloadControlsDozeAutoBrightness()).thenReturn(true); in selectStrategy_selectsAutomaticStrategyWhenValid() 336 when(mDisplayManagerFlags.isDisplayOffloadEnabled()).thenReturn(true); in selectStrategy_selectsAutomaticStrategyWhenValid() [all …]
|
D | DisplayBrightnessControllerTest.java | 81 private DisplayManagerFlags mDisplayManagerFlags; field in DisplayBrightnessControllerTest 108 mBrightnessChangeExecutor, mDisplayManagerFlags); in before() 396 mOnBrightnessChangeRunnable, mBrightnessChangeExecutor, mDisplayManagerFlags); in testLoadNitBasedBrightnessSetting()
|
/frameworks/base/services/core/java/com/android/server/display/brightness/ |
D | DisplayBrightnessStrategySelector.java | 104 private final DisplayManagerFlags mDisplayManagerFlags; field in DisplayBrightnessStrategySelector 119 mDisplayManagerFlags = flags; in DisplayBrightnessStrategySelector() 129 (!mDisplayManagerFlags.isRefactorDisplayPowerControllerEnabled()) ? null in DisplayBrightnessStrategySelector() 131 mDisplayManagerFlags); in DisplayBrightnessStrategySelector() 133 (mDisplayManagerFlags.isRefactorDisplayPowerControllerEnabled()) ? null in DisplayBrightnessStrategySelector() 136 (mDisplayManagerFlags.isRefactorDisplayPowerControllerEnabled()) in DisplayBrightnessStrategySelector() 138 mAutoBrightnessFallbackStrategy = (mDisplayManagerFlags in DisplayBrightnessStrategySelector() 143 .getOffloadBrightnessStrategy(mDisplayManagerFlags); in DisplayBrightnessStrategySelector() 147 mFallbackBrightnessStrategy = (mDisplayManagerFlags in DisplayBrightnessStrategySelector() 188 } else if (mDisplayManagerFlags.isRefactorDisplayPowerControllerEnabled() in selectStrategy() [all …]
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/ |
D | DisplayObserverTest.java | 115 private DisplayManagerFlags mDisplayManagerFlags; field in DisplayObserverTest 190 when(mDisplayManagerFlags.isUserPreferredModeVoteEnabled()).thenReturn(true); in testExternalDisplay_voteUserPreferredMode() 234 when(mDisplayManagerFlags.isUserPreferredModeVoteEnabled()).thenReturn(true); in testExternalDisplay_doNotApplyLimitToUserPreferredMode() 235 when(mDisplayManagerFlags.isExternalDisplayLimitModeEnabled()).thenReturn(true); in testExternalDisplay_doNotApplyLimitToUserPreferredMode() 267 when(mDisplayManagerFlags.isUserPreferredModeVoteEnabled()).thenReturn(true); in testDefaultDisplayAdded_notAppliedLimitToUserPreferredMode() 268 when(mDisplayManagerFlags.isExternalDisplayLimitModeEnabled()).thenReturn(true); in testDefaultDisplayAdded_notAppliedLimitToUserPreferredMode() 293 when(mDisplayManagerFlags.isUserPreferredModeVoteEnabled()).thenReturn(true); in testDefaultDisplayAdded() 294 when(mDisplayManagerFlags.isExternalDisplayLimitModeEnabled()).thenReturn(true); in testDefaultDisplayAdded() 311 when(mDisplayManagerFlags.isDisplayResolutionRangeVotingEnabled()).thenReturn(true); in testExternalDisplayAdded_applyResolutionRefreshRateLimit() 312 when(mDisplayManagerFlags.isUserPreferredModeVoteEnabled()).thenReturn(true); in testExternalDisplayAdded_applyResolutionRefreshRateLimit() [all …]
|
D | DisplayModeDirectorTest.java | 321 private DisplayManagerFlags mDisplayManagerFlags; field in DisplayModeDirectorTest 425 mDisplayManagerFlags, mDisplayDeviceConfigProvider); in createDirectorFromModeArray() 827 when(mDisplayManagerFlags.isDisplayResolutionRangeVotingEnabled()) 1105 mDisplayManagerFlags, mDisplayDeviceConfigProvider); 1353 when(mDisplayManagerFlags.isBackUpSmoothDisplayAndForcePeakRefreshRateEnabled()) 1357 mDisplayManagerFlags, mDisplayDeviceConfigProvider); 1526 when(mDisplayManagerFlags.isIdleScreenRefreshRateTimeoutEnabled()) 1535 when(mDisplayManagerFlags.isIdleScreenRefreshRateTimeoutEnabled()) 1768 when(mDisplayManagerFlags.isBackUpSmoothDisplayAndForcePeakRefreshRateEnabled()) 1772 mDisplayManagerFlags, mDisplayDeviceConfigProvider); [all …]
|
/frameworks/base/services/core/java/com/android/server/display/brightness/strategy/ |
D | OffloadBrightnessStrategy.java | 36 private final DisplayManagerFlags mDisplayManagerFlags; field in OffloadBrightnessStrategy 39 mDisplayManagerFlags = displayManagerFlags; in OffloadBrightnessStrategy() 47 if (mDisplayManagerFlags.isRefactorDisplayPowerControllerEnabled()) { in updateBrightness()
|
D | AutomaticBrightnessStrategy.java | 103 private DisplayManagerFlags mDisplayManagerFlags; field in AutomaticBrightnessStrategy 117 mDisplayManagerFlags = displayManagerFlags; in AutomaticBrightnessStrategy() 491 if (mDisplayManagerFlags.areAutoBrightnessModesEnabled() in switchMode()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/strategy/ |
D | OffloadBrightnessStrategyTest.java | 46 private DisplayManagerFlags mDisplayManagerFlags; field in OffloadBrightnessStrategyTest 53 mOffloadBrightnessStrategy = new OffloadBrightnessStrategy(mDisplayManagerFlags); in before() 58 when(mDisplayManagerFlags.isRefactorDisplayPowerControllerEnabled()).thenReturn(true); in testUpdateBrightnessWhenOffloadBrightnessIsSet()
|
D | AutomaticBrightnessStrategyTest.java | 72 private DisplayManagerFlags mDisplayManagerFlags; field in AutomaticBrightnessStrategyTest 91 mDisplayManagerFlags); in before() 260 when(mDisplayManagerFlags.areAutoBrightnessModesEnabled()).thenReturn(true); in testAutoBrightnessState_modeSwitch() 439 mDisplayManagerFlags); in testVerifyNoAutoBrightnessAdjustmentsArePopulatedForNonDefaultDisplay() 487 mContext, DISPLAY_ID, displayId -> brightnessEvent, mDisplayManagerFlags); in updateBrightness_constructsDisplayBrightnessState_withAdjustmentAutoAdjustmentFlag() 529 mContext, DISPLAY_ID, displayId -> brightnessEvent, mDisplayManagerFlags); in updateBrightness_constructsDisplayBrightnessState_withAdjustmentTempAdjustmentFlag() 578 mContext, DISPLAY_ID, displayId -> brightnessEvent, mDisplayManagerFlags); in updateBrightness_constructsDisplayBrightnessState_withNoAdjustmentFlag_isSlowChange() 618 mContext, DISPLAY_ID, displayId -> brightnessEvent, mDisplayManagerFlags); in updateBrightness_autoBrightnessNotApplied_noAdjustments_isNotSlowChange()
|
/frameworks/base/services/core/java/com/android/server/display/color/ |
D | DisplayWhiteBalanceTintController.java | 80 private final DisplayManagerFlags mDisplayManagerFlags; field in DisplayWhiteBalanceTintController 85 mDisplayManagerFlags = displayManagerFlags; in DisplayWhiteBalanceTintController() 149 if (!mDisplayManagerFlags.isAdaptiveTone2Enabled()) { in setUp()
|
D | ColorDisplayService.java | 153 private final DisplayManagerFlags mDisplayManagerFlags = new DisplayManagerFlags(); field in ColorDisplayService 158 LocalServices.getService(DisplayManagerInternal.class), mDisplayManagerFlags);
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | AutomaticBrightnessController.java | 280 private final DisplayManagerFlags mDisplayManagerFlags; field in AutomaticBrightnessController 371 mDisplayManagerFlags = displayManagerFlags; in AutomaticBrightnessController() 1379 final long time = (mDisplayManagerFlags.offloadControlsDozeAutoBrightness())
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | AutomaticBrightnessControllerTest.java | 104 DisplayManagerFlags mDisplayManagerFlags; field in AutomaticBrightnessControllerTest 181 mDisplayManagerFlags in setupController() 816 when(mDisplayManagerFlags.offloadControlsDozeAutoBrightness()).thenReturn(true);
|
/frameworks/base/services/core/java/com/android/server/display/mode/ |
D | DisplayModeDirector.java | 196 private final DisplayManagerFlags mDisplayManagerFlags; field in DisplayModeDirector 220 mDisplayManagerFlags = displayManagerFlags; in DisplayModeDirector() 2544 if (mDisplayManagerFlags.isIdleScreenRefreshRateTimeoutEnabled()) { in onSensorChanged()
|