Home
last modified time | relevance | path

Searched refs:setBrightness (Results 1 – 25 of 71) sorted by relevance

123

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DBrightnessSynchronizerTest.java156 verify(mDisplayManagerMock, times(0)).setBrightness( in testSetSameIntValue_nothingUpdated()
176 verify(mDisplayManagerMock, times(0)).setBrightness( in testUpdateDuringResponseIsNotOverwritten()
183 verify(mDisplayManagerMock).setBrightness(Display.DEFAULT_DISPLAY, iToF(20)); in testUpdateDuringResponseIsNotOverwritten()
205 verify(mDisplayManagerMock).setBrightness(Display.DEFAULT_DISPLAY, iToF(20)); in testSetFloat_outOfTimeForResponse()
217 verify(mDisplayManagerMock).setBrightness(Display.DEFAULT_DISPLAY, in testSetFloat_outOfTimeForResponse()
257 verify(mDisplayManagerMock).setBrightness(eq(Display.DEFAULT_DISPLAY), eq(brightness)); in verifyFloatWasSetTo()
DDisplayBrightnessStateTest.java55 .setBrightness(brightness) in validateAllDisplayBrightnessStateFieldsAreSetAsExpected()
80 .setBrightness(0.26f) in testFrom()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/brightness/data/repository/
DScreenBrightnessDisplayManagerRepositoryTest.kt185 verify(displayManager, never()).setBrightness(anyInt(), anyFloat()) in setTemporaryBrightness_insideBounds()
199 verify(displayManager, never()).setBrightness(anyInt(), anyFloat()) in setTemporaryBrightness_outsideBounds()
208 underTest.setBrightness(LinearBrightness(brightness)) in setBrightness_insideBounds()
211 verify(displayManager).setBrightness(displayId, brightness) in setBrightness_insideBounds()
221 underTest.setBrightness(LinearBrightness(brightness)) in setBrightness_outsideBounds()
225 .setBrightness(displayId, currentBrightnessInfo.brightnessMaximum) in setBrightness_outsideBounds()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/brightness/domain/interactor/
DScreenBrightnessInteractorTest.kt67 setBrightness(LinearBrightness(brightness)) in gammaBrightness()
88 setBrightness(LinearBrightness(brightness)) in gammaBrightness_constrained()
125 fun setBrightness() = in setBrightness() method in com.android.systemui.brightness.domain.interactor.ScreenBrightnessInteractorTest
131 underTest.setBrightness(GammaBrightness(gammaBrightness)) in setBrightness()
/frameworks/base/services/core/java/com/android/server/lights/
DLogicalLight.java60 public abstract void setBrightness(float brightness); in setBrightness() method in LogicalLight
65 public abstract void setBrightness(float brightness, int brightnessMode); in setBrightness() method in LogicalLight
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessSetting.java111 public void setBrightness(float brightness) { in setBrightness() method in BrightnessSetting
122 mPersistentDataStore.setBrightness(mLogicalDisplay.getPrimaryDisplayDeviceLocked(), in setBrightness()
144 mPersistentDataStore.setBrightness(mLogicalDisplay.getPrimaryDisplayDeviceLocked(), in setBrightnessNoNotify()
DDisplayPowerControllerInterface.java103 void setBrightness(float brightness); in setBrightness() method
110 void setBrightness(float brightness, int userSerial); in setBrightness() method
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/
DDisplayBrightnessControllerTest.java260 mDisplayBrightnessController.setBrightness(brightnessValue, maxBrightnessValue); in setBrightnessSetsInBrightnessSetting()
261 verify(mBrightnessSetting).setBrightness(brightnessValue); in setBrightnessSetsInBrightnessSetting()
276 verify(mBrightnessSetting).setBrightness(brightnessValue); in updateScreenBrightnessSetting()
420 mDisplayBrightnessController.setBrightness(brightnessValue, maxBrightness); in testDoesNotSetBrightnessNits_settingMaxBrightnessAndStoredValueGreater()
438 mDisplayBrightnessController.setBrightness(brightnessValue, maxBrightness); in testSetsBrightnessNits_storedValueLower()
456 mDisplayBrightnessController.setBrightness(brightnessValue, maxBrightness); in testSetsBrightnessNits_lowerThanMax()
484 mDisplayBrightnessController.setBrightness(brightnessValue1, userSerial1, maxBrightness); in testChangeBrightnessNitsWhenUserChanges()
486 verify(mBrightnessSetting).setBrightness(brightnessValue1); in testChangeBrightnessNitsWhenUserChanges()
489 mDisplayBrightnessController.setBrightness(brightnessValue2, userSerial2, maxBrightness); in testChangeBrightnessNitsWhenUserChanges()
491 verify(mBrightnessSetting).setBrightness(brightnessValue2); in testChangeBrightnessNitsWhenUserChanges()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/clamper/
DDisplayDimModifierTest.java87 mBuilder.setBrightness(0.4f); in testApply_dimPolicyFromResources()
121 mBuilder.setBrightness(0.0f); in testApply_dimPolicyAndMinBrightness()
144 builder.setBrightness(DEFAULT_BRIGHTNESS); in prepareBuilder()
DBrightnessLowPowerModeModifierTest.java86 mBuilder.setBrightness(0.0f); in testApply_lowPowerModeOnAndMinBrightness()
122 builder.setBrightness(DEFAULT_BRIGHTNESS); in prepareBuilder()
/frameworks/base/services/core/java/com/android/server/display/brightness/
DDisplayBrightnessController.java316 public void setBrightness(float brightnessValue, float maxBrightness) { in setBrightness() method in DisplayBrightnessController
319 mBrightnessSetting.setBrightness(brightnessValue); in setBrightness()
336 public void setBrightness(float brightnessValue, int userSerial, float maxBrightness) { in setBrightness() method in DisplayBrightnessController
338 setBrightness(brightnessValue, maxBrightness); in setBrightness()
353 setBrightness(brightnessValue, maxBrightness); in updateScreenBrightnessSetting()
DBrightnessUtils.java70 .setBrightness(brightness) in constructDisplayBrightnessState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/brightness/domain/interactor/
DScreenBrightnessInteractor.kt79 suspend fun setBrightness(gammaBrightness: GammaBrightness) { in <lambda>() method in com.android.systemui.brightness.domain.interactor.ScreenBrightnessInteractor
80 screenBrightnessRepository.setBrightness(gammaBrightness.clamp().toLinearBrightness()) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/brightness/data/repository/
DScreenBrightnessRepository.kt77 fun setBrightness(value: LinearBrightness) in getMinMaxLinearBrightness() method
108 displayManager.setBrightness(displayId, value) in getMinMaxLinearBrightness()
187 override fun setBrightness(value: LinearBrightness) { in getMinMaxLinearBrightness() method
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/brightness/ui/viewmodel/
DBrightnessSliderViewModelTest.kt75 fakeScreenBrightnessRepository.setBrightness(LinearBrightness(brightness)) in brightnessChangeInRepository_changeInFlow()
87 fakeScreenBrightnessRepository.setBrightness(LinearBrightness(brightness)) in brightnessChangeInRepository_changeInFlow()
/frameworks/base/services/core/java/com/android/server/display/brightness/clamper/
DBrightnessModifier.java48 stateBuilder.setBrightness(getBrightnessAdjusted(value, request)); in apply()
/frameworks/base/services/core/java/com/android/server/display/brightness/strategy/
DFallbackBrightnessStrategy.java41 .setBrightness(strategyExecutionRequest.getCurrentScreenBrightness()) in updateBrightness()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/strategy/
DTemporaryBrightnessStrategyTest.java56 .setBrightness(temporaryBrightness) in testUpdateBrightnessWhenTemporaryBrightnessIsSet()
DScreenOffBrightnessStrategyTest.java53 .setBrightness(PowerManager.BRIGHTNESS_OFF_FLOAT) in testUpdateBrightnessWhenScreenOffDisplayState()
DFallbackBrightnessStrategyTest.java55 .setBrightness(currentBrightness) in updateBrightness_currentBrightnessIsSet()
DOverrideBrightnessStrategyTest.java56 .setBrightness(overrideBrightness) in testUpdateBrightnessWhenScreenDozeStateIsRequested()
DBoostBrightnessStrategyTest.java56 .setBrightness(PowerManager.BRIGHTNESS_MAX) in testUpdateBrightnessWhenBoostBrightnessIsRequested()
DDozeBrightnessStrategyTest.java53 .setBrightness(dozeScreenBrightness) in testUpdateBrightnessWhenScreenDozeStateIsRequested()
DFollowerBrightnessStrategyTest.java56 .setBrightness(brightnessToFollow) in testUpdateBrightness()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/brightness/
DBrightnessController.java361 setBrightness(valFloat); in onChanged()
365 mDisplayManager.setBrightness(mDisplayId, valFloat); in onChanged()
399 private void setBrightness(float brightness) { in setBrightness() method in BrightnessController

123