summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Ady Abraham <adyabr@google.com> 2019-07-09 18:09:52 -0700
committer Ady Abraham <adyabr@google.com> 2019-07-09 18:10:05 -0700
commit42b3beb51f7f3e97762ed1db7ebc0decbfa56bb4 (patch)
tree0d04a4ea6fa441639fa5875997a1b508dc1fa080
parentee07312a52bef52f1a96572e101f7e6e3b00abd8 (diff)
SurfaceFlinger: add allowed display configs to dumpsys
Dump the allowed display configs from SurfaceFlinger to help with debugging issues where the refresh rate does not match the policy. Test: adb shell dumpsys SurfaceFlinger Bug: 136503733 Change-Id: I74ec7d08901ad9edb1a3706249e8809574bf1e5f
-rw-r--r--services/surfaceflinger/SurfaceFlinger.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index 6d9dc97c5a..94eeef5eef 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -4707,6 +4707,16 @@ void SurfaceFlinger::dumpVSync(std::string& result) const {
StringAppendF(&result, "Scheduler enabled.");
StringAppendF(&result, "+ Smart 90 for video detection: %s\n\n",
mUseSmart90ForVideo ? "on" : "off");
+ StringAppendF(&result, "Allowed Display Configs: ");
+ for (int32_t configId : mAllowedDisplayConfigs) {
+ for (auto refresh : mRefreshRateConfigs.getRefreshRates()) {
+ if (refresh.second && refresh.second->configId == configId) {
+ StringAppendF(&result, "%dHz, ", refresh.second->fps);
+ }
+ }
+ }
+ StringAppendF(&result, "(config override by backdoor: %s)\n\n",
+ mDebugDisplayConfigSetByBackdoor ? "yes" : "no");
mScheduler->dump(mAppConnectionHandle, result);
}