/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | BrightnessSynchronizerTest.java | 156 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()
|
D | DisplayBrightnessStateTest.java | 55 .setBrightness(brightness) in validateAllDisplayBrightnessStateFieldsAreSetAsExpected() 80 .setBrightness(0.26f) in testFrom()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/brightness/data/repository/ |
D | ScreenBrightnessDisplayManagerRepositoryTest.kt | 185 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/ |
D | ScreenBrightnessInteractorTest.kt | 67 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/ |
D | LogicalLight.java | 60 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/ |
D | BrightnessSetting.java | 111 public void setBrightness(float brightness) { in setBrightness() method in BrightnessSetting 122 mPersistentDataStore.setBrightness(mLogicalDisplay.getPrimaryDisplayDeviceLocked(), in setBrightness() 144 mPersistentDataStore.setBrightness(mLogicalDisplay.getPrimaryDisplayDeviceLocked(), in setBrightnessNoNotify()
|
D | DisplayPowerControllerInterface.java | 103 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/ |
D | DisplayBrightnessControllerTest.java | 260 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/ |
D | DisplayDimModifierTest.java | 87 mBuilder.setBrightness(0.4f); in testApply_dimPolicyFromResources() 121 mBuilder.setBrightness(0.0f); in testApply_dimPolicyAndMinBrightness() 144 builder.setBrightness(DEFAULT_BRIGHTNESS); in prepareBuilder()
|
D | BrightnessLowPowerModeModifierTest.java | 86 mBuilder.setBrightness(0.0f); in testApply_lowPowerModeOnAndMinBrightness() 122 builder.setBrightness(DEFAULT_BRIGHTNESS); in prepareBuilder()
|
/frameworks/base/services/core/java/com/android/server/display/brightness/ |
D | DisplayBrightnessController.java | 316 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()
|
D | BrightnessUtils.java | 70 .setBrightness(brightness) in constructDisplayBrightnessState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/brightness/domain/interactor/ |
D | ScreenBrightnessInteractor.kt | 79 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/ |
D | ScreenBrightnessRepository.kt | 77 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/ |
D | BrightnessSliderViewModelTest.kt | 75 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/ |
D | BrightnessModifier.java | 48 stateBuilder.setBrightness(getBrightnessAdjusted(value, request)); in apply()
|
/frameworks/base/services/core/java/com/android/server/display/brightness/strategy/ |
D | FallbackBrightnessStrategy.java | 41 .setBrightness(strategyExecutionRequest.getCurrentScreenBrightness()) in updateBrightness()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/strategy/ |
D | TemporaryBrightnessStrategyTest.java | 56 .setBrightness(temporaryBrightness) in testUpdateBrightnessWhenTemporaryBrightnessIsSet()
|
D | ScreenOffBrightnessStrategyTest.java | 53 .setBrightness(PowerManager.BRIGHTNESS_OFF_FLOAT) in testUpdateBrightnessWhenScreenOffDisplayState()
|
D | FallbackBrightnessStrategyTest.java | 55 .setBrightness(currentBrightness) in updateBrightness_currentBrightnessIsSet()
|
D | OverrideBrightnessStrategyTest.java | 56 .setBrightness(overrideBrightness) in testUpdateBrightnessWhenScreenDozeStateIsRequested()
|
D | BoostBrightnessStrategyTest.java | 56 .setBrightness(PowerManager.BRIGHTNESS_MAX) in testUpdateBrightnessWhenBoostBrightnessIsRequested()
|
D | DozeBrightnessStrategyTest.java | 53 .setBrightness(dozeScreenBrightness) in testUpdateBrightnessWhenScreenDozeStateIsRequested()
|
D | FollowerBrightnessStrategyTest.java | 56 .setBrightness(brightnessToFollow) in testUpdateBrightness()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/brightness/ |
D | BrightnessController.java | 361 setBrightness(valFloat); in onChanged() 365 mDisplayManager.setBrightness(mDisplayId, valFloat); in onChanged() 399 private void setBrightness(float brightness) { in setBrightness() method in BrightnessController
|