summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/sysprop
diff options
context:
space:
mode:
author Alec Mouri <alecmouri@google.com> 2019-04-18 21:17:13 -0700
committer Alec Mouri <alecmouri@google.com> 2019-05-15 11:20:47 -0700
commitdc28b3706b61ba1326658d96400fe55faf3dcb3e (patch)
tree0f4a1937d847d3b0a0e5745df28c5f93c50aff22 /services/surfaceflinger/sysprop
parentf888c9327f472ed02c4a5ae240ec5f6fa39fff54 (diff)
Support repurposing idle timer to work with kernel timer.
Idle timer would instead enable/disable hw vsyncs in accordance with inactivity. Bug: 130684082 Test: systrace Change-Id: I289600fc41b7ded863c9486cf6c2ab6155b06550
Diffstat (limited to 'services/surfaceflinger/sysprop')
-rw-r--r--services/surfaceflinger/sysprop/SurfaceFlingerProperties.sysprop10
-rw-r--r--services/surfaceflinger/sysprop/api/system-current.txt1
2 files changed, 11 insertions, 0 deletions
diff --git a/services/surfaceflinger/sysprop/SurfaceFlingerProperties.sysprop b/services/surfaceflinger/sysprop/SurfaceFlingerProperties.sysprop
index d3690967dc..bd8aacdff6 100644
--- a/services/surfaceflinger/sysprop/SurfaceFlingerProperties.sysprop
+++ b/services/surfaceflinger/sysprop/SurfaceFlingerProperties.sysprop
@@ -315,3 +315,13 @@ prop {
access: Readonly
prop_name: "ro.surface_flinger.protected_contents"
}
+
+# Indicates whether Scheduler's idle timer should support a display driver timeout in the kernel.
+# The value of set_idle_timer_ms should be shorter in time than the timeout duration in the kernel.
+prop {
+ api_name: "support_kernel_idle_timer"
+ type: Boolean
+ scope: System
+ access: Readonly
+ prop_name: "ro.surface_flinger.support_kernel_idle_timer"
+}
diff --git a/services/surfaceflinger/sysprop/api/system-current.txt b/services/surfaceflinger/sysprop/api/system-current.txt
index 3c39b51f9b..dd5dbe04b3 100644
--- a/services/surfaceflinger/sysprop/api/system-current.txt
+++ b/services/surfaceflinger/sysprop/api/system-current.txt
@@ -19,6 +19,7 @@ package android.sysprop {
method public static java.util.Optional<java.lang.Boolean> running_without_sync_framework();
method public static java.util.Optional<java.lang.Integer> set_idle_timer_ms();
method public static java.util.Optional<java.lang.Boolean> start_graphics_allocator_service();
+ method public static java.util.Optional<java.lang.Boolean> support_kernel_idle_timer();
method public static java.util.Optional<java.lang.Boolean> use_color_management();
method public static java.util.Optional<java.lang.Boolean> use_context_priority();
method public static java.util.Optional<java.lang.Boolean> use_smart_90_for_video();