Searched full:brightness (Results 1 – 25 of 3027) sorted by relevance
12345678910>>...122
57 * A utility to map from an ambient brightness to a display's "backlight" brightness based on the58 * available display information and brightness configuration.74 // MIN_PERMISSABLE_INCREASE. Otherwise when the brightness is set to 0, the curve will never88 * @param mode The auto-brightness mode. Different modes use different brightness curves132 // Display dependent values - used for physical mapping strategy nits -> brightness in create()251 * @return Whether the brightness configuration has changed.262 * Returns the desired brightness of the display based on the current ambient lux, including265 * The returned brightness will be in the range [0, 1.0], where 1.0 is the display at max266 * brightness and 0 is the display at minimum brightness.268 * @param lux The current ambient brightness in lux.[all …]
182 * <brightness>0.1</brightness>186 * <brightness>0.01</brightness>192 * <brightness>0.2</brightness>196 * <brightness>0.1</brightness>405 * <name>Binned Brightness 0 (wake-up)</name>435 * // Minimum change needed in ambient brightness to brighten screen.437 * // Percentage increase of lux needed to increase the screen brightness at a lux range452 * // Minimum change needed in ambient brightness to darken screen.454 * // Percentage increase of lux needed to decrease the screen brightness at a lux range469 * <displayBrightnessChangeThresholds> // Thresholds for screen brightness changes[all …]
30 * Saves brightness to a persistent data store, enabling each logical display to have its own31 * brightness.73 * Returns the brightness from the brightness setting75 * @return brightness for the current display84 * Registers listener for brightness setting change events.94 * Unregisters listener for brightness setting change events.102 /** Sets the user serial for the brightness setting */108 * Sets the brightness and broadcasts the change to the listeners.109 * @param brightness The value to which the brightness is to be set.111 public void setBrightness(float brightness) { in setBrightness() argument[all …]
26 import static com.android.server.display.brightness.BrightnessEvent.FLAG_EVEN_DIMMER;85 import com.android.server.display.brightness.BrightnessEvent;86 import com.android.server.display.brightness.BrightnessReason;87 import com.android.server.display.brightness.BrightnessUtils;88 import com.android.server.display.brightness.DisplayBrightnessController;89 import com.android.server.display.brightness.clamper.BrightnessClamperController;90 import com.android.server.display.brightness.strategy.AutomaticBrightnessStrategy2;91 import com.android.server.display.brightness.strategy.DisplayBrightnessStrategyConstants;128 * For debugging, you can make the color fade and brightness animations run178 // State machine constants for tracking initial brightness ramp skipping when enabled.[all …]
59 import com.android.server.display.brightness.BrightnessEvent;69 * Manages the associated display brightness when in auto-brightness mode. This is also70 * responsible for managing the brightness lux-nits mapping strategies. Internally also listens to71 * the LightSensor and adjusts the system brightness in case of changes in the surrounding lux.102 // Debounce for sampling user-initiated changes in display brightness to ensure123 // The mapper to translate ambient lux to screen brightness in the range [0, 1.0].127 // A map of Brightness Mapping Strategies indexed by AutomaticBrightnessMode134 // How much to scale doze brightness by (should be (0, 1.0]).146 // Stability requirements in milliseconds for accepting a new brightness level. This is used149 // brightness changes occur in response to an observed change in light level that exceeds the[all …]
16 package com.android.server.display.brightness.strategy;35 import com.android.server.display.brightness.BrightnessEvent;36 import com.android.server.display.brightness.BrightnessReason;37 import com.android.server.display.brightness.BrightnessUtils;38 import com.android.server.display.brightness.StrategyExecutionRequest;39 import com.android.server.display.brightness.StrategySelectionNotifyRequest;45 * Helps manage the brightness based on the ambient environment (Ambient Light/lux sensor) using46 * mappings from lux to nits to brightness, configured in the56 // The last auto brightness adjustment that was set by the user and is not temporary. Set to57 // Float.NaN when an auto-brightness adjustment hasn't been recorded yet.[all …]
16 package com.android.server.display.brightness.strategy;30 import com.android.server.display.brightness.BrightnessEvent;31 import com.android.server.display.brightness.BrightnessReason;32 import com.android.server.display.brightness.BrightnessUtils;38 * Helps manage the brightness based on the ambient environment (Ambient Light/lux sensor) using39 * mappings from lux to nits to brightness, configured in the53 // The last auto brightness adjustment that was set by the user and is not temporary. Set to54 // Float.NaN when an auto-brightness adjustment hasn't been recorded yet.56 // The pending auto brightness adjustment that will take effect on the next power state update.58 // The temporary auto brightness adjustment. This was historically used when a user interacts[all …]
17 package com.android.server.display.brightness;37 import com.android.server.display.brightness.strategy.AutoBrightnessFallbackStrategy;38 import com.android.server.display.brightness.strategy.AutomaticBrightnessStrategy2;39 import com.android.server.display.brightness.strategy.DisplayBrightnessStrategy;45 * Deploys different DozeBrightnessStrategy to choose the current brightness for a specified46 * display. Applies the chosen brightness.56 // The default screen brightness to be used when no value is available in BrightnessSetting.59 // This is used to persist the changes happening to the brightness.63 // .EVENT_DISPLAY_BRIGHTNESS_CHANGED about the brightness change. Called when67 // The screen brightness that has changed but not taken effect yet. If this is different[all …]
17 package com.android.server.display.brightness;30 import com.android.server.display.brightness.strategy.AutoBrightnessFallbackStrategy;31 import com.android.server.display.brightness.strategy.AutomaticBrightnessStrategy;32 import com.android.server.display.brightness.strategy.AutomaticBrightnessStrategy2;33 import com.android.server.display.brightness.strategy.BoostBrightnessStrategy;34 import com.android.server.display.brightness.strategy.DisplayBrightnessStrategy;35 import com.android.server.display.brightness.strategy.DozeBrightnessStrategy;36 import com.android.server.display.brightness.strategy.FallbackBrightnessStrategy;37 import com.android.server.display.brightness.strategy.FollowerBrightnessStrategy;38 import com.android.server.display.brightness.strategy.InvalidBrightnessStrategy;[all …]
72 // Set display brightness from 0-100%210 * Received display brightness change event.211 * @param brightness in percentile. 100% full.213 void onDisplayBrightnessChange(int brightness); in onDisplayBrightnessChange() argument216 * Received display brightness change event.218 * @param brightness in percentile. 100% full.220 void onDisplayBrightnessChange(int displayId, int brightness); in onDisplayBrightnessChange() argument330 private record BrightnessForDisplayPort(int brightness, int displayPort) {} in BrightnessForDisplayPort() argument339 // A FIFO queue that stores the brightness value we previously set to VHAL in a short time472 * Sets the display brightness for the vehicle.[all …]
47 * (new) system for storing the brightness. It has methods to convert between the two and also62 // The tolerance within which we consider brightness values approximately equal to eachother.97 * Starts brightnessSyncObserver to ensure that the float and int brightness values stay108 Slog.wtf(TAG, "Brightness sync observer requesting synchronization a second time."); in startSynchronizing()113 Slog.i(TAG, "Initial brightness readings: " + mLatestIntBrightness + "(int), " in startSynchronizing()126 Slog.i(TAG, "Setting initial brightness to default value of: " + defaultBrightness); in startSynchronizing()147 * Converts between the int brightness system and the float brightness system.164 * Converts between the float brightness system and the int brightness system.171 * Translates specified value from the float brightness system to the int brightness system,191 * Consumes a brightness change event for the float-based brightness.[all …]
39 * Provides a mapping between lux and brightness values in order to support auto-brightness.48 * Array of desired screen brightness in nits corresponding to the lux values49 * in the mBrightnessLevelsLuxMap.get(DEFAULT_ID) array. The display brightness is defined as50 * the measured brightness of an all-white image. The brightness values must be non-negative and56 * Map of arrays of desired screen brightness corresponding to the lux values57 * in mBrightnessLevelsLuxMap, indexed by the auto-brightness mode and the brightness preset.58 * The brightness values must be non-negative and non-decreasing. They must be between61 * The keys are a concatenation of the auto-brightness mode and the brightness preset separated66 * in display auto-brightness settings.71 * Map of arrays of light sensor lux values to define our levels for auto-brightness support,[all …]
17 package com.android.server.display.brightness;51 import com.android.server.display.brightness.strategy.AutoBrightnessFallbackStrategy;52 import com.android.server.display.brightness.strategy.AutomaticBrightnessStrategy;53 import com.android.server.display.brightness.strategy.DisplayBrightnessStrategy;54 import com.android.server.display.brightness.strategy.OffloadBrightnessStrategy;55 import com.android.server.display.brightness.strategy.OverrideBrightnessStrategy;56 import com.android.server.display.brightness.strategy.TemporaryBrightnessStrategy;161 request.brightness = 0.4f; in updateWindowManagerBrightnessOverride()181 // Current Screen brightness is set as expected when a different value than the current in setCurrentScreenBrightness()189 // No change to the current screen brightness is same as the existing one in setCurrentScreenBrightness()[all …]
36 ALOGE("%s: brightness range for BM_NOMINAL is invalid!", __func__); in Init()42 ALOGE("%s: brightness range for BM_HBM is invalid!", __func__); in Init()49 // cannot use linear interpolation between brightness and dbv because they have52 float brightness) const { in BrightnessToDbv()53 BrightnessMode bm = GetBrightnessMode(brightness); in BrightnessToDbv()58 std::optional<float> nits = BrightnessToNits(brightness, bm); in BrightnessToDbv()74 const float brightness = LinearInterpolation(nits, in NitsToBrightness() local77 if (isnan(brightness)) { in NitsToBrightness()81 return brightness; in NitsToBrightness()100 float brightness, BrightnessMode& bm) const { in BrightnessToNits() argument[all …]
1 package com.android.systemui.settings.brightness.ui.viewModel;8 import com.android.systemui.settings.brightness.BrightnessSliderController;9 import com.android.systemui.settings.brightness.MirrorController;10 import com.android.systemui.settings.brightness.ToggleSlider;11 import com.android.systemui.settings.brightness.domain.interactor.BrightnessMirrorShowingInteractor;15 …brightness/ui/viewModel/BrightnessMirrorViewModel;", "Lcom/android/systemui/settings/brightness/Mi…16 public final class BrightnessMirrorViewModel implements com.android.systemui.settings.brightness.Mi…18 …private final com.android.systemui.settings.brightness.domain.interactor.BrightnessMirrorShowingIn…22 …private final com.android.systemui.settings.brightness.BrightnessSliderController.Factory sliderCo…26 private com.android.systemui.settings.brightness.BrightnessSliderController _toggleSlider;[all …]
60 * Controls the screen brightness when dozing.73 * brightness to the lower of {@link #mScreenBrightnessDim}, or the current brightness minus107 * Debug value used for emulating various display brightness buckets:216 float brightness = computeBrightnessFloat(sensorValue); in updateBrightnessAndReady() local217 brightnessReady = brightness >= 0; in updateBrightnessAndReady()221 clampToUserSettingFloat(brightness))); in updateBrightnessAndReady()224 int brightness = computeBrightness(sensorValue); in updateBrightnessAndReady() local225 brightnessReady = brightness > 0; in updateBrightnessAndReady()228 clampToDimBrightnessForScreenOff(clampToUserSetting(brightness))); in updateBrightnessAndReady()237 // Only unblank scrim once brightness is ready. in updateBrightnessAndReady()[all …]
173 * Returns the default brightness of the display.175 * <p>Value of {@code 0.0} indicates the minimum supported brightness and value of {@code 1.0}176 * indicates the maximum supported brightness.</p>186 * Returns the dim brightness of the display.188 * <p>Value of {@code 0.0} indicates the minimum supported brightness and value of {@code 1.0}189 * indicates the maximum supported brightness.</p>199 * Returns the listener to get notified about changes in the display brightness.387 * Listener for display brightness changes.393 * Called when the display's brightness has changed.395 * @param brightness the new brightness of the display. Value of {@code 0.0} indicates the[all …]
27 * Data about the current brightness state.43 * High brightness mode is OFF. The high brightness range is not currently accessible to the49 * High brightness mode is ON due to high ambient light (sunlight). The high brightness range is55 * High brightness mode is ON due to high ambient light (sunlight). The high brightness range is70 * Maximum brightness is unrestricted.75 * Maximum brightness is restricted due to thermal throttling.80 * Maximum brightness is restricted due to power throttling.85 * Maximum brightness is restricted due to the Wear bedtime mode.89 /** Brightness */90 public final float brightness; field in BrightnessInfo[all …]
... stateChanged int index boolean stateChanged int displayId int state float brightness float sdrBrightness boolean allInactive boolean allOff boolean stateChanged } com ...
46 static inline int32_t toArgb(int32_t brightness, int32_t red, int32_t green, int32_t blue) { in toArgb() argument47 return (brightness & 0xff) << 24 | (red & 0xff) << 16 | (green & 0xff) << 8 | (blue & 0xff); in toArgb()52 * lights, getting and setting the lights brightness and color, by interacting with EventHub72 int brightness = brightnessOpt.value(); in getRawLightBrightness() local74 // If the light node doesn't have max brightness, use the default max brightness. in getRawLightBrightness()77 // Scale the returned brightness in [0, rawMaxBrightness] to [0, 255] in getRawLightBrightness()79 brightness = brightness * ratio; in getRawLightBrightness()82 ALOGD("getRawLightBrightness rawLightId %d brightness 0x%x ratio %.2f", rawLightId, in getRawLightBrightness()83 brightness, ratio); in getRawLightBrightness()85 return brightness; in getRawLightBrightness()[all …]
89 + " <brightness-value user-serial=\"1\">0.1</brightness-value>\n" in testLoadBrightness()90 + " <brightness-value user-serial=\"2\">0.2</brightness-value>\n" in testLoadBrightness()99 float brightness = mDataStore.getBrightness(testDisplayDevice, 1); in testLoadBrightness() local100 assertEquals(0.1, brightness, 0.01); in testLoadBrightness()102 brightness = mDataStore.getBrightness(testDisplayDevice, 2); in testLoadBrightness()103 assertEquals(0.2, brightness, 0.01); in testLoadBrightness()128 + " <brightness-value>0.5</brightness-value>\n" in testSetBrightness_brightnessTagWithNoUserId_updatesToBrightnessTagWithUserId()143 mDataStore.setBrightness(testDisplayDevice, 0.2f, 2 /* userSerial */ /* brightness*/); in testSetBrightness_brightnessTagWithNoUserId_updatesToBrightnessTagWithUserId()150 // Override the value for user 1. User-specific brightness values should co-exist. in testSetBrightness_brightnessTagWithNoUserId_updatesToBrightnessTagWithUserId()151 mDataStore.setBrightness(testDisplayDevice, 0.1f, 1 /* userSerial */ /* brightness*/); in testSetBrightness_brightnessTagWithNoUserId_updatesToBrightnessTagWithUserId()[all …]
85 import com.android.server.display.brightness.BrightnessEvent;86 import com.android.server.display.brightness.BrightnessReason;87 import com.android.server.display.brightness.clamper.BrightnessClamperController;88 import com.android.server.display.brightness.clamper.HdrClamper;394 float brightness = 0.6f; in testDisplayBrightnessFollowers_BothDpcsSupportNits() local396 when(mHolder.automaticBrightnessController.convertToNits(brightness)).thenReturn(nits); in testDisplayBrightnessFollowers_BothDpcsSupportNits()398 .thenReturn(brightness); in testDisplayBrightnessFollowers_BothDpcsSupportNits()399 when(mHolder.brightnessSetting.getBrightness()).thenReturn(brightness); in testDisplayBrightnessFollowers_BothDpcsSupportNits()400 listener.onBrightnessChanged(brightness); in testDisplayBrightnessFollowers_BothDpcsSupportNits()402 verify(mHolder.animator).animateTo(eq(brightness), anyFloat(), in testDisplayBrightnessFollowers_BothDpcsSupportNits()[all …]
79 <!-- Ramp speed used to decrease the screen brightness when in idle mode.80 In framework brightness units per second. Must exist with85 <!-- Ramp speed used to decrease the screen brightness when in idle mode.86 In framework brightness units per second. Must exist with91 <!-- Maximum time in milliseconds that a brightness increase animation96 <!-- Maximum time in milliseconds that a brightness decrease animation101 <!-- Maximum time in milliseconds that a brightness increase animation106 <!-- Maximum time in milliseconds that a brightness decrease animation133 <!-- Set of thresholds that dictate the change needed for screen brightness139 <!-- Set of thresholds that dictate the change needed for ambient brightness[all …]
1 package com.android.systemui.brightness.ui.viewmodel;5 import com.android.systemui.brightness.domain.interactor.BrightnessPolicyEnforcementInteractor;6 import com.android.systemui.brightness.domain.interactor.ScreenBrightnessInteractor;7 import com.android.systemui.brightness.shared.model.GammaBrightness;17 import com.android.systemui.settings.brightness.domain.interactor.BrightnessMirrorShowingInteractor;18 import com.android.systemui.settings.brightness.ui.BrightnessWarningToast;25 * View Model for a brightness slider.27 * If this brightness slider supports mirroring (show on top of current activity while dragging),33 …brightness/ui/viewmodel/BrightnessSliderViewModel;", "Lcom/android/systemui/lifecycle/ExclusiveAct…36 …private final com.android.systemui.brightness.domain.interactor.ScreenBrightnessInteractor screenB…[all …]