/hardware/google/graphics/common/libhwc2.1/libdevice/ |
D | BrightnessController.cpp | 57 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 …]
|
D | BrightnessController.h | 80 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/ |
D | lights.c | 133 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/ |
D | types.hal | 45 * 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/ |
D | lights.c | 135 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/ |
D | ComposerClientWriter.h | 80 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()
|
D | ComposerServiceWriter.h | 110 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/ |
D | LayerBrightness.aidl | 37 float brightness;
|
D | DisplayBrightness.aidl | 37 float brightness;
|
D | ClientTargetPropertyWithBrightness.aidl | 39 float brightness;
|
/hardware/interfaces/graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/2/android/hardware/graphics/composer3/ |
D | LayerBrightness.aidl | 37 float brightness;
|
D | DisplayBrightness.aidl | 37 float brightness;
|
D | ClientTargetPropertyWithBrightness.aidl | 39 float brightness;
|
/hardware/interfaces/graphics/composer/aidl/android/hardware/graphics/composer3/ |
D | LayerBrightness.aidl | 25 float brightness;
|
D | DisplayBrightness.aidl | 25 float brightness;
|
D | ClientTargetPropertyWithBrightness.aidl | 37 float brightness;
|
/hardware/interfaces/graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/1/android/hardware/graphics/composer3/ |
D | LayerBrightness.aidl | 37 float brightness;
|
D | DisplayBrightness.aidl | 37 float brightness;
|
D | ClientTargetPropertyWithBrightness.aidl | 39 float brightness;
|
D | DisplayCommand.aidl | 40 @nullable android.hardware.graphics.composer3.DisplayBrightness brightness;
|
/hardware/qcom/sm7250/display/liblight/ |
D | lights.c | 154 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/ |
D | lights.c | 131 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/ |
D | lights.c | 134 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/ |
D | lights.c | 131 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/ |
D | hw_peripheral_drm.cpp | 529 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()
|