2 * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #ifndef __HAL_DISPLAY_H__
19 #define __HAL_DISPLAY_H__
21 #include "hal-display-interface.h"
27 int hal_device_display_get_backend(void);
28 int hal_device_display_put_backend(void);
29 int hal_device_display_get_max_brightness(int *brightness);
30 int hal_device_display_get_brightness(int *brightness);
31 int hal_device_display_set_brightness(int brightness);
32 int hal_device_display_set_multi_brightness(int brightness, int step, int delay);
33 int hal_device_display_get_auto_brightness(float lmax, float lmin, float light, int *brightness);
34 int hal_device_display_get_state(enum display_state *state);
35 int hal_device_display_set_state(enum display_state state);
36 int hal_device_display_get_image_effect(enum display_image_effect *effect);
37 int hal_device_display_set_image_effect(enum display_image_effect effect);
38 int hal_device_display_get_panel_mode(enum display_panel_mode *mode);
39 int hal_device_display_set_panel_mode(enum display_panel_mode mode);
40 int hal_device_display_get_aod_mode(enum display_aod_mode *mode);
41 int hal_device_display_get_aod_brightness(int *max, int *normal, int *min, int *charging);
42 int hal_device_display_get_max_frame_rate(int *rate);
43 int hal_device_display_get_min_frame_rate(int *rate);
44 int hal_device_display_get_frame_rate(int *rate);
45 int hal_device_display_set_frame_rate(int rate);
52 #endif // __HAL_DISPLAY_H__