Home
last modified time | relevance | path

Searched refs:brightness (Results 1 – 25 of 105) sorted by relevance

12345

/hardware/google/graphics/common/libhwc2.1/libdevice/
DBrightnessController.cpp57 const float brightness = LinearInterpolation(nits, in NitsToBrightness() local
60 if (isnan(brightness)) { in NitsToBrightness()
64 return brightness; in NitsToBrightness()
83 float brightness, BrightnessMode& bm) const { in BrightnessToNits() argument
84 bm = GetBrightnessMode(brightness); in BrightnessToNits()
89 float nits = LinearInterpolation(brightness, range.brightness_min, range.brightness_max, in BrightnessToNits()
362 int BrightnessController::processDisplayBrightness(float brightness, const nsecs_t vsyncNs, in processDisplayBrightness() argument
369 __func__, brightness, mBrightnessFloatReq.get()); in processDisplayBrightness()
373 if (brightness < -1.0f || brightness > 1.0f) { in processDisplayBrightness()
379 level = brightness < 0 ? 0 : static_cast<uint32_t>(brightness * mMaxBrightness + 0.5f); in processDisplayBrightness()
[all …]
DBrightnessController.h80 bool validateLayerBrightness(float brightness);
266 std::optional<float> BrightnessToNits(float brightness, BrightnessMode& bm) const override;
272 BrightnessMode GetBrightnessMode(float brightness) const { in GetBrightnessMode() argument
274 if (((!range.brightness_min_exclusive && brightness == range.brightness_min) || in GetBrightnessMode()
275 brightness > range.brightness_min) && in GetBrightnessMode()
276 brightness <= range.brightness_max) { in GetBrightnessMode()
366 int queryBrightness(float brightness, bool* ghbm = nullptr, uint32_t* level = nullptr,
/hardware/qcom/display/msm8909w_3100/liblight/
Dlights.c133 int brightness = rgb_to_brightness(state); in set_light_backlight() local
150 brightness = DEFAULT_LOW_PERSISTENCE_MODE_BRIGHTNESS; in set_light_backlight()
158 err = write_int(LCD_FILE, brightness); in set_light_backlight()
160 err = write_int(LCD_FILE2, brightness); in set_light_backlight()
178 int brightness = state->color & 0x00ffffff; in set_light_backlight_ext() local
181 if (brightness >= 0 && brightness <= g_brightness_max) { in set_light_backlight_ext()
182 set_brightness_ext_level(brightness); in set_light_backlight_ext()
/hardware/interfaces/light/2.0/
Dtypes.hal45 * Light brightness is managed by a user setting.
50 * Light brightness is managed by a light sensor.
59 * head mounted display (HMD). The actual display brightness in this mode is
71 * - Display brightness is set so that the display is still visible to the user
112 * - If you can only do a brightness ramp, then use this formula:
113 * unsigned char brightness = ((77*((color>>16)&0x00ff))
/hardware/qcom/display/msm8960/liblight/
Dlights.c135 int brightness = rgb_to_brightness(state); in set_light_backlight() local
137 err = write_int(LCD_FILE, brightness); in set_light_backlight()
212 int brightness = ((77 * ((colorRGB >> 16) & 0xFF)) + in set_speaker_light_locked() local
215 write_int(WHITE_LED_FILE, (int) brightness); in set_speaker_light_locked()
/hardware/interfaces/graphics/composer/aidl/include/android/hardware/graphics/composer3/
DComposerClientWriter.h80 void setDisplayBrightness(int64_t display, float brightness, float brightnessNits) { in setDisplayBrightness() argument
81 getDisplayCommand(display).brightness.emplace( in setDisplayBrightness()
82 DisplayBrightness{.brightness = brightness, .brightnessNits = brightnessNits}); in setDisplayBrightness()
223 void setLayerBrightness(int64_t display, int64_t layer, float brightness) { in setLayerBrightness() argument
225 .brightness.emplace(LayerBrightness{.brightness = brightness}); in setLayerBrightness()
DComposerServiceWriter.h110 float brightness, const DimmingStage& dimmingStage) { in setClientTargetProperty() argument
114 clientTargetPropertyWithBrightness.brightness = brightness; in setClientTargetProperty()
/hardware/interfaces/graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/
DLayerBrightness.aidl37 float brightness;
DDisplayBrightness.aidl37 float brightness;
DClientTargetPropertyWithBrightness.aidl39 float brightness;
/hardware/interfaces/graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/2/android/hardware/graphics/composer3/
DLayerBrightness.aidl37 float brightness;
DDisplayBrightness.aidl37 float brightness;
DClientTargetPropertyWithBrightness.aidl39 float brightness;
/hardware/interfaces/graphics/composer/aidl/android/hardware/graphics/composer3/
DLayerBrightness.aidl25 float brightness;
DDisplayBrightness.aidl25 float brightness;
DClientTargetPropertyWithBrightness.aidl37 float brightness;
/hardware/interfaces/graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/1/android/hardware/graphics/composer3/
DLayerBrightness.aidl37 float brightness;
DDisplayBrightness.aidl37 float brightness;
DClientTargetPropertyWithBrightness.aidl39 float brightness;
DDisplayCommand.aidl40 @nullable android.hardware.graphics.composer3.DisplayBrightness brightness;
/hardware/qcom/sm7250/display/liblight/
Dlights.c154 int brightness = rgb_to_brightness(state); in set_light_backlight() local
174 brightness = DEFAULT_LOW_PERSISTENCE_MODE_BRIGHTNESS; in set_light_backlight()
182 err = write_int(LCD_FILE, brightness); in set_light_backlight()
184 err = write_int(LCD_FILE2, brightness); in set_light_backlight()
192 static int set_rgb_led_brightness(enum rgb_led led, int brightness) in set_rgb_led_brightness() argument
205 rc = write_int(file, brightness); in set_rgb_led_brightness()
/hardware/qcom/display/msm8998/liblight/
Dlights.c131 int brightness = rgb_to_brightness(state); in set_light_backlight() local
148 brightness = DEFAULT_LOW_PERSISTENCE_MODE_BRIGHTNESS; in set_light_backlight()
156 err = write_int(LCD_FILE, brightness); in set_light_backlight()
158 err = write_int(LCD_FILE2, brightness); in set_light_backlight()
/hardware/qcom/sm8150/display/liblight/
Dlights.c134 int brightness = rgb_to_brightness(state); in set_light_backlight() local
159 err = write_int(LCD_FILE, brightness); in set_light_backlight()
161 err = write_int(LCD_FILE2, brightness); in set_light_backlight()
169 static int set_rgb_led_brightness(enum rgb_led led, int brightness) in set_rgb_led_brightness() argument
174 return write_int(file, brightness); in set_rgb_led_brightness()
/hardware/qcom/display/msm8909/liblight/
Dlights.c131 int brightness = rgb_to_brightness(state); in set_light_backlight() local
148 brightness = DEFAULT_LOW_PERSISTENCE_MODE_BRIGHTNESS; in set_light_backlight()
156 err = write_int(LCD_FILE, brightness); in set_light_backlight()
158 err = write_int(LCD_FILE2, brightness); in set_light_backlight()
/hardware/qcom/sm8150/display/sdm/libs/core/drm/
Dhw_peripheral_drm.cpp529 char brightness[kMaxStringLength] = {0}; in GetPanelBrightness() local
536 if (Sys::pread_(brightness_fd_, brightness, sizeof(brightness), 0) > 0) { in GetPanelBrightness()
537 level = atoi(brightness); in GetPanelBrightness()
548 char brightness[kMaxStringLength] = {0}; in GetHWPanelMaxBrightness() local
556 if (Sys::pread_(max_brightness_fd_, brightness, sizeof(brightness), 0) > 0) { in GetHWPanelMaxBrightness()
557 hw_panel_info_.panel_max_brightness = atoi(brightness); in GetHWPanelMaxBrightness()

12345