Home
last modified time | relevance | path

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

123

/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/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/display/msm8998/sdm/libs/core/drm/
Dhw_device_drm.cpp286 char brightness[kMaxStringLength] = {0}; in GetHWPanelMaxBrightness() local
297 if (Sys::pread_(fd, brightness, sizeof(brightness), 0) > 0) { in GetHWPanelMaxBrightness()
298 hw_panel_info_.panel_max_brightness = atoi(brightness); in GetHWPanelMaxBrightness()
672 char brightness[kMaxStringLength] = {0}; in GetPanelBrightness() local
686 if (Sys::pread_(fd, brightness, sizeof(brightness), 0) > 0) { in GetPanelBrightness()
687 *level = atoi(brightness); in GetPanelBrightness()
/hardware/interfaces/graphics/composer/2.3/
DIComposerClient.hal66 * Indicates that the display supports brightness operations.
505 * Use getDisplayCapabilities instead. If brightness is supported, must return
507 * Only use getDisplayCapabilities as the source of truth to query brightness support.
509 * Gets whether brightness operations are supported on a display.
518 * Whether brightness operations are supported on the display.
523 * Sets the brightness of a display.
525 * Ideally, the brightness change should take effect in the next frame post (so that it can be
529 * The display whose brightness is set.
530 * @param brightness
531 * A number between 0.0f (minimum brightness) and 1.0f (maximum brightness), or -1.0 to
[all …]
/hardware/interfaces/tests/extension/light/2.0/default/
DLight.cpp32 .brightness = // Brightness inherits from Brightness in setLight()
/hardware/interfaces/graphics/composer/2.3/utils/passthrough/include/composer-passthrough/2.3/
DHwcHal.h292 Error setDisplayBrightness(Display display, float brightness) { in setDisplayBrightness() argument
293 if (std::isnan(brightness) || brightness > 1.0f || in setDisplayBrightness()
294 (brightness < 0.0f && brightness != -1.0f)) { in setDisplayBrightness()
300 int32_t error = mDispatch.setDisplayBrightness(mDevice, display, brightness); in setDisplayBrightness()
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_main_menu.c285 int brightness = CAMERA_DEF_BRIGHTNESS; variable
292 int brightness = 0; variable
1146 brightness -= CAMERA_BRIGHTNESS_STEP; in decrease_brightness()
1147 if (brightness < CAMERA_MIN_BRIGHTNESS) { in decrease_brightness()
1148 brightness = CAMERA_MIN_BRIGHTNESS; in decrease_brightness()
1151 printf("Decrease Brightness to %d\n", brightness); in decrease_brightness()
1154 &brightness, in decrease_brightness()
1164 brightness += CAMERA_BRIGHTNESS_STEP; in increase_brightness()
1165 if (brightness > CAMERA_MAX_BRIGHTNESS) { in increase_brightness()
1166 brightness = CAMERA_MAX_BRIGHTNESS; in increase_brightness()
[all …]
/hardware/qcom/display/msm8084/liblight/
Dlights.c118 int brightness = rgb_to_brightness(state); in set_light_backlight() local
123 err = write_int(LCD_FILE, brightness); in set_light_backlight()
/hardware/qcom/display/msm8226/liblight/
Dlights.c118 int brightness = rgb_to_brightness(state); in set_light_backlight() local
123 err = write_int(LCD_FILE, brightness); in set_light_backlight()
/hardware/interfaces/tests/extension/light/2.0/
Dtypes.hal62 * So, this parameter represents the speed at which brightness is changed
71 Brightness brightness;
/hardware/qcom/display/msm8994/liblight/
Dlights.c119 int brightness = rgb_to_brightness(state); in set_light_backlight() local
124 err = write_int(LCD_FILE, brightness); in set_light_backlight()
/hardware/qcom/display/msm8996/liblight/
Dlights.c119 int brightness = rgb_to_brightness(state); in set_light_backlight() local
124 err = write_int(LCD_FILE, brightness); in set_light_backlight()
/hardware/qcom/display/msm8909/sdm/libs/core/drm/
Dhw_device_drm.cpp515 char brightness[kMaxStringLength] = {0}; in GetHWPanelMaxBrightness() local
526 if (Sys::pread_(fd, brightness, sizeof(brightness), 0) > 0) { in GetHWPanelMaxBrightness()
527 hw_panel_info_.panel_max_brightness = atoi(brightness); in GetHWPanelMaxBrightness()
916 char brightness[kMaxStringLength] = {0}; in GetPanelBrightness() local
930 if (Sys::pread_(fd, brightness, sizeof(brightness), 0) > 0) { in GetPanelBrightness()
931 *level = atoi(brightness); in GetPanelBrightness()
/hardware/qcom/display/msm8909w_3100/sdm/libs/core/drm/
Dhw_device_drm.cpp510 char brightness[kMaxStringLength] = {0}; in GetHWPanelMaxBrightness() local
521 if (Sys::pread_(fd, brightness, sizeof(brightness), 0) > 0) { in GetHWPanelMaxBrightness()
522 hw_panel_info_.panel_max_brightness = atoi(brightness); in GetHWPanelMaxBrightness()
913 char brightness[kMaxStringLength] = {0}; in GetPanelBrightness() local
927 if (Sys::pread_(fd, brightness, sizeof(brightness), 0) > 0) { in GetPanelBrightness()
928 *level = atoi(brightness); in GetPanelBrightness()
/hardware/interfaces/graphics/composer/2.3/utils/vts/
DComposerVts.cpp200 Error ComposerClient::setDisplayBrightness(Display display, float brightness) { in setDisplayBrightness() argument
201 return mClient->setDisplayBrightness(display, brightness); in setDisplayBrightness()
/hardware/qcom/sdm845/display/liblight/
Dlights.c200 int brightness = rgb_to_brightness(state); in set_light_backlight() local
233 err = write_int(LCD_FILE, brightness); in set_light_backlight()
/hardware/qcom/display/msm8996/sdm/libs/core/fb/
Dhw_primary.cpp544 char brightness[kMaxStringLength] = {0}; in GetPanelBrightness() local
558 if (Sys::pread_(fd, brightness, sizeof(brightness), 0) > 0) { in GetPanelBrightness()
559 *level = atoi(brightness); in GetPanelBrightness()
/hardware/interfaces/graphics/composer/2.3/utils/hal/include/composer-hal/2.3/
DComposerClient.h182 Return<Error> setDisplayBrightness(Display display, float brightness) override { in setDisplayBrightness() argument
183 return mHal->setDisplayBrightness(display, brightness); in setDisplayBrightness()
/hardware/qcom/display/msm8998/sdm/libs/core/fb/
Dhw_primary.cpp550 char brightness[kMaxStringLength] = {0}; in GetPanelBrightness() local
564 if (Sys::pread_(fd, brightness, sizeof(brightness), 0) > 0) { in GetPanelBrightness()
565 *level = atoi(brightness); in GetPanelBrightness()
/hardware/qcom/sdm845/display/sdm/libs/core/fb/
Dhw_primary.cpp550 char brightness[kMaxStringLength] = {0}; in GetPanelBrightness() local
564 if (Sys::pread_(fd, brightness, sizeof(brightness), 0) > 0) { in GetPanelBrightness()
565 *level = atoi(brightness); in GetPanelBrightness()
/hardware/qcom/display/msm8909w_3100/sdm/libs/core/fb/
Dhw_primary.cpp550 char brightness[kMaxStringLength] = {0}; in GetPanelBrightness() local
564 if (Sys::pread_(fd, brightness, sizeof(brightness), 0) > 0) { in GetPanelBrightness()
565 *level = atoi(brightness); in GetPanelBrightness()

123