blob: 1964ccd582305d3593d458ec1b0fb17ea25f072f [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
Ady Abrahambe59c0d2019-03-05 13:01:13 -080073int32_t set_idle_timer_ms(int32_t defaultValue);
74
Ady Abraham8532d012019-05-08 14:50:56 -070075int32_t set_touch_timer_ms(int32_t defaultValue);
76
Ana Krulece5a06e02019-03-06 17:09:03 -080077bool use_smart_90_for_video(bool defaultValue);
78
Peiyong Lin6a043d52019-04-01 17:18:21 -070079bool enable_protected_contents(bool defaultValue);
80
Alec Mouridc28b372019-04-18 21:17:13 -070081bool support_kernel_idle_timer(bool defaultValue);
82
Sundong Ahncb20cca2019-02-22 11:57:38 +090083android::ui::DisplayPrimaries getDisplayNativePrimaries();
Sundong Ahnd5e08f62018-12-12 20:27:28 +090084} // namespace sysprop
85} // namespace android
86#endif // SURFACEFLINGERPROPERTIES_H_