Package org.robolectric.shadows
Class BrightnessChangeEventBuilder
java.lang.Object
org.robolectric.shadows.BrightnessChangeEventBuilder
Builder for
BrightnessChangeEvent
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
setBatteryLevel
(float batteryLevel) setBrightness
(float brightness) setColorTemperature
(int colorTemperature) setColorValues
(long[] colorValueBuckets, long colorSampleDuration) setIsDefaultBrightnessConfig
(boolean isDefaultBrightnessConfig) setLastBrightness
(float lastBrightness) setLuxTimestamps
(long[] luxTimestamps) setLuxValues
(float[] luxValues) setNightMode
(boolean nightMode) setPackageName
(String packageName) setPowerBrightnessFactor
(float powerBrightnessFactor) setTimeStamp
(long timeStamp) setUniqueDisplayId
(String displayId) setUserBrightnessPoint
(boolean isUserSetBrightness) setUserId
(int userId)
-
Constructor Details
-
BrightnessChangeEventBuilder
public BrightnessChangeEventBuilder()
-
-
Method Details
-
setBrightness
-
setTimeStamp
-
setPackageName
-
setUserId
-
setLuxValues
-
setLuxTimestamps
-
setBatteryLevel
-
setPowerBrightnessFactor
-
setNightMode
-
setColorTemperature
-
setLastBrightness
-
setIsDefaultBrightnessConfig
-
setUserBrightnessPoint
-
setColorValues
public BrightnessChangeEventBuilder setColorValues(long[] colorValueBuckets, long colorSampleDuration) -
setUniqueDisplayId
-
build
-