Home
last modified time | relevance | path

Searched refs:shouldUseAutoBrightness (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayBrightnessStateTest.java48 boolean shouldUseAutoBrightness = true; in validateAllDisplayBrightnessStateFieldsAreSetAsExpected()
58 .setShouldUseAutoBrightness(shouldUseAutoBrightness) in validateAllDisplayBrightnessStateFieldsAreSetAsExpected()
67 assertEquals(displayBrightnessState.getShouldUseAutoBrightness(), shouldUseAutoBrightness); in validateAllDisplayBrightnessStateFieldsAreSetAsExpected() local
/frameworks/base/services/core/java/com/android/server/display/brightness/strategy/
DAutomaticBrightnessStrategy2.java112 mIsAutoBrightnessEnabled = shouldUseAutoBrightness() in setAutoBrightnessState()
116 mAutoBrightnessDisabledDueToDisplayOff = shouldUseAutoBrightness() in setAutoBrightnessState()
185 public boolean shouldUseAutoBrightness() { in shouldUseAutoBrightness() method in AutomaticBrightnessStrategy2
DAutomaticBrightnessStrategy.java138 mIsAutoBrightnessEnabled = shouldUseAutoBrightness() in setAutoBrightnessState()
142 mAutoBrightnessDisabledDueToDisplayOff = shouldUseAutoBrightness() in setAutoBrightnessState()
239 public boolean shouldUseAutoBrightness() { in shouldUseAutoBrightness() method in AutomaticBrightnessStrategy
/frameworks/base/services/core/java/com/android/server/display/brightness/
DDisplayBrightnessStrategySelector.java191 } else if (mAutomaticBrightnessStrategy.shouldUseAutoBrightness() in selectStrategy()
293 && getAutomaticBrightnessStrategy().shouldUseAutoBrightness() in isAutoBrightnessFallbackStrategyValid()
319 getAutomaticBrightnessStrategy().shouldUseAutoBrightness()); in constructStrategySelectionNotifyRequest()
DDisplayBrightnessController.java556 autoStrat != null && autoStrat.shouldUseAutoBrightness()); in addAutomaticBrightnessState()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayBrightnessState.java357 public Builder setShouldUseAutoBrightness(boolean shouldUseAutoBrightness) { in setShouldUseAutoBrightness() argument
358 this.mShouldUseAutoBrightness = shouldUseAutoBrightness; in setShouldUseAutoBrightness()
DDisplayPowerController.java1483 || !mAutomaticBrightnessStrategy.shouldUseAutoBrightness())) { in updatePowerStateInternal()
2507 boolean brightnessIsTemporary, boolean shouldUseAutoBrightness) { in notifyBrightnessTrackerChanged() argument
2522 || !shouldUseAutoBrightness in notifyBrightnessTrackerChanged()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/
DDisplayBrightnessStrategySelectorTest.java324 when(mAutomaticBrightnessStrategy2.shouldUseAutoBrightness()).thenReturn(true); in selectStrategySelectsOffloadStrategyWhenValid()
348 when(mAutomaticBrightnessStrategy.shouldUseAutoBrightness()).thenReturn(true); in selectStrategy_selectsAutomaticStrategyWhenValid()
370 when(mAutomaticBrightnessStrategy.shouldUseAutoBrightness()).thenReturn(true); in selectStrategy_selectsAutomaticFallbackStrategyWhenValid()
407 when(mAutomaticBrightnessStrategy.shouldUseAutoBrightness()).thenReturn(false); in selectStrategy_selectsFallbackStrategyAsAnUltimateFallback()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/strategy/
DAutomaticBrightnessStrategy2Test.java354 public void shouldUseAutoBrightness() { in shouldUseAutoBrightness() method in AutomaticBrightnessStrategy2Test
356 assertTrue(mAutomaticBrightnessStrategy.shouldUseAutoBrightness()); in shouldUseAutoBrightness()
DAutomaticBrightnessStrategyTest.java403 public void shouldUseAutoBrightness() { in shouldUseAutoBrightness() method in AutomaticBrightnessStrategyTest
405 assertTrue(mAutomaticBrightnessStrategy.shouldUseAutoBrightness()); in shouldUseAutoBrightness()
/frameworks/base/services/
Dart-wear-profile11066 …android/server/display/brightness/strategy/AutomaticBrightnessStrategy;->shouldUseAutoBrightness()Z