blob: e394ccab7b5d9525cba3518de4c78ae37cca047f [file] [log] [blame]
Peiyong Lin6a043d52019-04-01 17:18:21 -07001/*
2 * Copyright 2019 The Android Open Source Project
3 *
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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
15 */
Sundong Ahnd5e08f62018-12-12 20:27:28 +090016
17#ifndef SURFACEFLINGERPROPERTIES_H_
18#define SURFACEFLINGERPROPERTIES_H_
19
Inseob Kimd6e835b2019-02-14 12:33:30 +090020#include <SurfaceFlingerProperties.sysprop.h>
Sundong Ahnd5e08f62018-12-12 20:27:28 +090021#include <android/hardware/configstore/1.1/ISurfaceFlingerConfigs.h>
Sundong Ahncb20cca2019-02-22 11:57:38 +090022#include <android/hardware/graphics/common/1.2/types.h>
Sundong Ahncb20cca2019-02-22 11:57:38 +090023#include <ui/ConfigStoreTypes.h>
Sundong Ahnd5e08f62018-12-12 20:27:28 +090024
25#include <cstdint>
26#include <optional>
27#include <vector>
28
29namespace android {
30namespace sysprop {
31
32int64_t vsync_event_phase_offset_ns(int64_t defaultValue);
33
34int64_t vsync_sf_event_phase_offset_ns(int64_t defaultValue);
35
36bool use_context_priority(bool defaultValue);
37
38int64_t max_frame_buffer_acquired_buffers(int64_t defaultValue);
39
40bool has_wide_color_display(bool defaultValue);
41
42bool running_without_sync_framework(bool defaultValue);
43
44bool has_HDR_display(bool defaultValue);
45
46int64_t present_time_offset_from_vsync_ns(int64_t defaultValue);
47
48bool force_hwc_copy_for_virtual_displays(bool defaultValue);
49
50int64_t max_virtual_display_dimension(int64_t defaultValue);
51
52bool use_vr_flinger(bool defaultValue);
53
54bool start_graphics_allocator_service(bool defaultValue);
55
56SurfaceFlingerProperties::primary_display_orientation_values primary_display_orientation(
57 SurfaceFlingerProperties::primary_display_orientation_values defaultValue);
58
59bool use_color_management(bool defaultValue);
60
61int64_t default_composition_dataspace(
62 android::hardware::graphics::common::V1_2::Dataspace defaultValue);
63
64int32_t default_composition_pixel_format(
Kevin DuBois73d0f482019-01-25 11:18:03 -080065 android::hardware::graphics::common::V1_2::PixelFormat defaultValue);
Sundong Ahnd5e08f62018-12-12 20:27:28 +090066
67int64_t wcg_composition_dataspace(
68 android::hardware::graphics::common::V1_2::Dataspace defaultValue);
69
70int32_t wcg_composition_pixel_format(
Kevin DuBois73d0f482019-01-25 11:18:03 -080071 android::hardware::graphics::common::V1_2::PixelFormat defaultValue);
Sundong Ahn85131bd2019-02-18 15:51:53 +090072
Yichi Chenda901bf2019-06-28 14:58:27 +080073int64_t color_space_agnostic_dataspace(
74 android::hardware::graphics::common::V1_2::Dataspace defaultValue);
75
Steven Thomase9eb1832019-08-28 16:08:35 -070076bool refresh_rate_switching(bool defaultValue);
77
Ady Abrahambe59c0d2019-03-05 13:01:13 -080078int32_t set_idle_timer_ms(int32_t defaultValue);
79
Ady Abraham8532d012019-05-08 14:50:56 -070080int32_t set_touch_timer_ms(int32_t defaultValue);
81
Ady Abraham24363172019-07-12 12:37:57 -070082int32_t set_display_power_timer_ms(int32_t defaultValue);
83
Ana Krulece5a06e02019-03-06 17:09:03 -080084bool use_smart_90_for_video(bool defaultValue);
85
Peiyong Lin6a043d52019-04-01 17:18:21 -070086bool enable_protected_contents(bool defaultValue);
87
Alec Mouridc28b372019-04-18 21:17:13 -070088bool support_kernel_idle_timer(bool defaultValue);
89
Sundong Ahncb20cca2019-02-22 11:57:38 +090090android::ui::DisplayPrimaries getDisplayNativePrimaries();
Sundong Ahnd5e08f62018-12-12 20:27:28 +090091} // namespace sysprop
92} // namespace android
93#endif // SURFACEFLINGERPROPERTIES_H_