| Peiyong Lin | 6a043d5 | 2019-04-01 17:18:21 -0700 | [diff] [blame] | 1 | /* | 
 | 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 Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 16 |  | 
 | 17 | #ifndef SURFACEFLINGERPROPERTIES_H_ | 
 | 18 | #define SURFACEFLINGERPROPERTIES_H_ | 
 | 19 |  | 
| Inseob Kim | d6e835b | 2019-02-14 12:33:30 +0900 | [diff] [blame] | 20 | #include <SurfaceFlingerProperties.sysprop.h> | 
| Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 21 | #include <android/hardware/configstore/1.1/ISurfaceFlingerConfigs.h> | 
| Sundong Ahn | cb20cca | 2019-02-22 11:57:38 +0900 | [diff] [blame] | 22 | #include <android/hardware/graphics/common/1.2/types.h> | 
| Sundong Ahn | cb20cca | 2019-02-22 11:57:38 +0900 | [diff] [blame] | 23 | #include <ui/ConfigStoreTypes.h> | 
| Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 24 |  | 
 | 25 | #include <cstdint> | 
 | 26 | #include <optional> | 
 | 27 | #include <vector> | 
 | 28 |  | 
 | 29 | namespace android { | 
 | 30 | namespace sysprop { | 
 | 31 |  | 
 | 32 | int64_t vsync_event_phase_offset_ns(int64_t defaultValue); | 
 | 33 |  | 
 | 34 | int64_t vsync_sf_event_phase_offset_ns(int64_t defaultValue); | 
 | 35 |  | 
 | 36 | bool use_context_priority(bool defaultValue); | 
 | 37 |  | 
 | 38 | int64_t max_frame_buffer_acquired_buffers(int64_t defaultValue); | 
 | 39 |  | 
| Brian Lindahl | a13f2d5 | 2020-03-05 11:54:17 +0100 | [diff] [blame] | 40 | int32_t max_graphics_width(int32_t defaultValue); | 
 | 41 | int32_t max_graphics_height(int32_t defaultValue); | 
 | 42 |  | 
| Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 43 | bool has_wide_color_display(bool defaultValue); | 
 | 44 |  | 
 | 45 | bool running_without_sync_framework(bool defaultValue); | 
 | 46 |  | 
 | 47 | bool has_HDR_display(bool defaultValue); | 
 | 48 |  | 
 | 49 | int64_t present_time_offset_from_vsync_ns(int64_t defaultValue); | 
 | 50 |  | 
 | 51 | bool force_hwc_copy_for_virtual_displays(bool defaultValue); | 
 | 52 |  | 
 | 53 | int64_t max_virtual_display_dimension(int64_t defaultValue); | 
 | 54 |  | 
 | 55 | bool use_vr_flinger(bool defaultValue); | 
 | 56 |  | 
 | 57 | bool start_graphics_allocator_service(bool defaultValue); | 
 | 58 |  | 
 | 59 | SurfaceFlingerProperties::primary_display_orientation_values primary_display_orientation( | 
 | 60 |         SurfaceFlingerProperties::primary_display_orientation_values defaultValue); | 
 | 61 |  | 
 | 62 | bool use_color_management(bool defaultValue); | 
 | 63 |  | 
 | 64 | int64_t default_composition_dataspace( | 
 | 65 |         android::hardware::graphics::common::V1_2::Dataspace defaultValue); | 
 | 66 |  | 
 | 67 | int32_t default_composition_pixel_format( | 
| Kevin DuBois | 73d0f48 | 2019-01-25 11:18:03 -0800 | [diff] [blame] | 68 |         android::hardware::graphics::common::V1_2::PixelFormat defaultValue); | 
| Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 69 |  | 
 | 70 | int64_t wcg_composition_dataspace( | 
 | 71 |         android::hardware::graphics::common::V1_2::Dataspace defaultValue); | 
 | 72 |  | 
 | 73 | int32_t wcg_composition_pixel_format( | 
| Kevin DuBois | 73d0f48 | 2019-01-25 11:18:03 -0800 | [diff] [blame] | 74 |         android::hardware::graphics::common::V1_2::PixelFormat defaultValue); | 
| Sundong Ahn | 85131bd | 2019-02-18 15:51:53 +0900 | [diff] [blame] | 75 |  | 
| Yichi Chen | da901bf | 2019-06-28 14:58:27 +0800 | [diff] [blame] | 76 | int64_t color_space_agnostic_dataspace( | 
 | 77 |         android::hardware::graphics::common::V1_2::Dataspace defaultValue); | 
 | 78 |  | 
| Ana Krulec | 10e0205 | 2020-02-04 17:16:10 +0000 | [diff] [blame] | 79 | bool refresh_rate_switching(bool defaultValue); | 
 | 80 |  | 
| Ady Abraham | be59c0d | 2019-03-05 13:01:13 -0800 | [diff] [blame] | 81 | int32_t set_idle_timer_ms(int32_t defaultValue); | 
 | 82 |  | 
| Ady Abraham | 8532d01 | 2019-05-08 14:50:56 -0700 | [diff] [blame] | 83 | int32_t set_touch_timer_ms(int32_t defaultValue); | 
 | 84 |  | 
| Ady Abraham | 6fe2c17 | 2019-07-12 12:37:57 -0700 | [diff] [blame] | 85 | int32_t set_display_power_timer_ms(int32_t defaultValue); | 
 | 86 |  | 
| Ady Abraham | 48da070 | 2020-02-04 15:59:25 -0800 | [diff] [blame] | 87 | bool use_content_detection_for_refresh_rate(bool defaultValue); | 
| Ana Krulec | e5a06e0 | 2019-03-06 17:09:03 -0800 | [diff] [blame] | 88 |  | 
| Peiyong Lin | 6a043d5 | 2019-04-01 17:18:21 -0700 | [diff] [blame] | 89 | bool enable_protected_contents(bool defaultValue); | 
 | 90 |  | 
| Alec Mouri | dc28b37 | 2019-04-18 21:17:13 -0700 | [diff] [blame] | 91 | bool support_kernel_idle_timer(bool defaultValue); | 
 | 92 |  | 
| Ana Krulec | 3803b8d | 2020-02-03 16:35:46 -0800 | [diff] [blame] | 93 | bool use_frame_rate_api(bool defaultValue); | 
 | 94 |  | 
| Dan Stoza | 030fbc1 | 2020-02-19 15:32:01 -0800 | [diff] [blame] | 95 | int32_t display_update_imminent_timeout_ms(int32_t defaultValue); | 
 | 96 |  | 
| Sundong Ahn | cb20cca | 2019-02-22 11:57:38 +0900 | [diff] [blame] | 97 | android::ui::DisplayPrimaries getDisplayNativePrimaries(); | 
| Marin Shalamanov | f8c6372 | 2020-10-06 13:11:21 +0200 | [diff] [blame] | 98 |  | 
 | 99 | bool update_device_product_info_on_hotplug_reconnect(bool defaultValue); | 
 | 100 |  | 
| Ady Abraham | 4899ff8 | 2021-01-06 13:53:29 -0800 | [diff] [blame] | 101 | bool enable_frame_rate_override(bool defaultValue); | 
 | 102 |  | 
| Ady Abraham | 9c87def | 2021-02-18 11:25:28 -0800 | [diff] [blame] | 103 | bool enable_layer_caching(bool defaultValue); | 
 | 104 |  | 
| Sundong Ahn | d5e08f6 | 2018-12-12 20:27:28 +0900 | [diff] [blame] | 105 | } // namespace sysprop | 
 | 106 | } // namespace android | 
 | 107 | #endif // SURFACEFLINGERPROPERTIES_H_ |