Home
last modified time | relevance | path

Searched full:brightness (Results 1 – 25 of 3027) sorted by relevance

12345678910>>...122

/aosp_15_r20/frameworks/base/services/core/java/com/android/server/display/
H A DBrightnessMappingStrategy.java57 * A utility to map from an ambient brightness to a display's "backlight" brightness based on the
58 * available display information and brightness configuration.
74 // MIN_PERMISSABLE_INCREASE. Otherwise when the brightness is set to 0, the curve will never
88 * @param mode The auto-brightness mode. Different modes use different brightness curves
132 // 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, including
265 * The returned brightness will be in the range [0, 1.0], where 1.0 is the display at max
266 * brightness and 0 is the display at minimum brightness.
268 * @param lux The current ambient brightness in lux.
[all …]
H A DDisplayDeviceConfig.java182 * <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 range
452 * // Minimum change needed in ambient brightness to darken screen.
454 * // Percentage increase of lux needed to decrease the screen brightness at a lux range
469 * <displayBrightnessChangeThresholds> // Thresholds for screen brightness changes
[all …]
H A DBrightnessSetting.java30 * Saves brightness to a persistent data store, enabling each logical display to have its own
31 * brightness.
73 * Returns the brightness from the brightness setting
75 * @return brightness for the current display
84 * 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 …]
H A DDisplayPowerController.java26 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 run
178 // State machine constants for tracking initial brightness ramp skipping when enabled.
[all …]
H A DAutomaticBrightnessController.java59 import com.android.server.display.brightness.BrightnessEvent;
69 * Manages the associated display brightness when in auto-brightness mode. This is also
70 * responsible for managing the brightness lux-nits mapping strategies. Internally also listens to
71 * 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 ensure
123 // The mapper to translate ambient lux to screen brightness in the range [0, 1.0].
127 // A map of Brightness Mapping Strategies indexed by AutomaticBrightnessMode
134 // 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 used
149 // brightness changes occur in response to an observed change in light level that exceeds the
[all …]
/aosp_15_r20/frameworks/base/services/core/java/com/android/server/display/brightness/strategy/
H A DAutomaticBrightnessStrategy.java16 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) using
46 * mappings from lux to nits to brightness, configured in the
56 // The last auto brightness adjustment that was set by the user and is not temporary. Set to
57 // Float.NaN when an auto-brightness adjustment hasn't been recorded yet.
[all …]
H A DAutomaticBrightnessStrategy2.java16 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) using
39 * mappings from lux to nits to brightness, configured in the
53 // The last auto brightness adjustment that was set by the user and is not temporary. Set to
54 // 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 …]
/aosp_15_r20/frameworks/base/services/core/java/com/android/server/display/brightness/
H A DDisplayBrightnessController.java17 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 specified
46 * 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 when
67 // The screen brightness that has changed but not taken effect yet. If this is different
[all …]
H A DDisplayBrightnessStrategySelector.java17 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 …]
/aosp_15_r20/packages/services/Car/service/src/com/android/car/hal/
DPowerHalService.java72 // 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() argument
216 * Received display brightness change event.
218 * @param brightness in percentile. 100% full.
220 void onDisplayBrightnessChange(int displayId, int brightness); in onDisplayBrightnessChange() argument
330 private record BrightnessForDisplayPort(int brightness, int displayPort) {} in BrightnessForDisplayPort() argument
339 // A FIFO queue that stores the brightness value we previously set to VHAL in a short time
472 * Sets the display brightness for the vehicle.
[all …]
/aosp_15_r20/frameworks/base/core/java/com/android/internal/display/
H A DBrightnessSynchronizer.java47 * (new) system for storing the brightness. It has methods to convert between the two and also
62 // The tolerance within which we consider brightness values approximately equal to eachother.
97 * Starts brightnessSyncObserver to ensure that the float and int brightness values stay
108 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 …]
/aosp_15_r20/frameworks/base/services/core/java/com/android/server/display/config/
H A DDisplayBrightnessMappingConfig.java39 * 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 values
49 * in the mBrightnessLevelsLuxMap.get(DEFAULT_ID) array. The display brightness is defined as
50 * the measured brightness of an all-white image. The brightness values must be non-negative and
56 * Map of arrays of desired screen brightness corresponding to the lux values
57 * 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 between
61 * The keys are a concatenation of the auto-brightness mode and the brightness preset separated
66 * in display auto-brightness settings.
71 * Map of arrays of light sensor lux values to define our levels for auto-brightness support,
[all …]
/aosp_15_r20/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/
H A DDisplayBrightnessControllerTest.java17 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 …]
/aosp_15_r20/hardware/google/graphics/common/libhwc2.1/libdevice/
DBrightnessController.cpp36 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 have
52 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() local
77 if (isnan(brightness)) { in NitsToBrightness()
81 return brightness; in NitsToBrightness()
100 float brightness, BrightnessMode& bm) const { in BrightnessToNits() argument
[all …]
/aosp_15_r20/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/gen/stubs/com/android/systemui/settings/brightness/ui/viewModel/
DBrightnessMirrorViewModel.java1 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;
15brightness/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 …]
/aosp_15_r20/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
H A DDozeScreenBrightness.java60 * Controls the screen brightness when dozing.
73 * brightness to the lower of {@link #mScreenBrightnessDim}, or the current brightness minus
107 * Debug value used for emulating various display brightness buckets:
216 float brightness = computeBrightnessFloat(sensorValue); in updateBrightnessAndReady() local
217 brightnessReady = brightness >= 0; in updateBrightnessAndReady()
221 clampToUserSettingFloat(brightness))); in updateBrightnessAndReady()
224 int brightness = computeBrightness(sensorValue); in updateBrightnessAndReady() local
225 brightnessReady = brightness > 0; in updateBrightnessAndReady()
228 clampToDimBrightnessForScreenOff(clampToUserSetting(brightness))); in updateBrightnessAndReady()
237 // Only unblank scrim once brightness is ready. in updateBrightnessAndReady()
[all …]
/aosp_15_r20/frameworks/base/core/java/android/hardware/display/
H A DVirtualDisplayConfig.java173 * 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 …]
H A DBrightnessInfo.java27 * Data about the current brightness state.
43 * High brightness mode is OFF. The high brightness range is not currently accessible to the
49 * High brightness mode is ON due to high ambient light (sunlight). The high brightness range is
55 * High brightness mode is ON due to high ambient light (sunlight). The high brightness range is
70 * 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 …]
/aosp_15_r20/out/soong/.intermediates/frameworks/base/services/core/services.core.unboosted/android_common/javac/
Dservices.core.unboosted.jar9 ... stateChanged int index boolean stateChanged int displayId int state float brightness float sdrBrightness boolean allInactive boolean allOff boolean stateChanged } com ...
/aosp_15_r20/frameworks/native/services/inputflinger/reader/controller/
H A DPeripheralController.cpp46 static inline int32_t toArgb(int32_t brightness, int32_t red, int32_t green, int32_t blue) { in toArgb() argument
47 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 EventHub
72 int brightness = brightnessOpt.value(); in getRawLightBrightness() local
74 // 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 …]
/aosp_15_r20/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
H A DPersistentDataStoreTest.java89 + " <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() local
100 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 …]
H A DDisplayPowerControllerTest.java85 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() local
396 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 …]
/aosp_15_r20/out/soong/.intermediates/frameworks/base/services/core/xsd/display-device-config/gen/
Ddisplay-device-config.xsd79 <!-- Ramp speed used to decrease the screen brightness when in idle mode.
80 In framework brightness units per second. Must exist with
85 <!-- Ramp speed used to decrease the screen brightness when in idle mode.
86 In framework brightness units per second. Must exist with
91 <!-- Maximum time in milliseconds that a brightness increase animation
96 <!-- Maximum time in milliseconds that a brightness decrease animation
101 <!-- Maximum time in milliseconds that a brightness increase animation
106 <!-- Maximum time in milliseconds that a brightness decrease animation
133 <!-- Set of thresholds that dictate the change needed for screen brightness
139 <!-- Set of thresholds that dictate the change needed for ambient brightness
[all …]
/aosp_15_r20/frameworks/base/services/core/xsd/display-device-config/
H A Ddisplay-device-config.xsd79 <!-- Ramp speed used to decrease the screen brightness when in idle mode.
80 In framework brightness units per second. Must exist with
85 <!-- Ramp speed used to decrease the screen brightness when in idle mode.
86 In framework brightness units per second. Must exist with
91 <!-- Maximum time in milliseconds that a brightness increase animation
96 <!-- Maximum time in milliseconds that a brightness decrease animation
101 <!-- Maximum time in milliseconds that a brightness increase animation
106 <!-- Maximum time in milliseconds that a brightness decrease animation
133 <!-- Set of thresholds that dictate the change needed for screen brightness
139 <!-- Set of thresholds that dictate the change needed for ambient brightness
[all …]
/aosp_15_r20/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/gen/stubs/com/android/systemui/brightness/ui/viewmodel/
DBrightnessSliderViewModel.java1 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),
33brightness/ui/viewmodel/BrightnessSliderViewModel;", "Lcom/android/systemui/lifecycle/ExclusiveAct…
36 …private final com.android.systemui.brightness.domain.interactor.ScreenBrightnessInteractor screenB…
[all …]

12345678910>>...122