OSDN Git Service

DisplayModeDirector: make settings higher priority than app request
authorAdy Abraham <adyabr@google.com>
Wed, 12 Jun 2019 02:16:12 +0000 (19:16 -0700)
committerAdy Abraham <adyabr@google.com>
Wed, 12 Jun 2019 02:16:57 +0000 (19:16 -0700)
commitce743b7e42aedb2e5c1bfc907b263b71f13fbdd0
tree9a1221a3d0662cedc097fbceaf285b3cb8be83fc
parent9ce46b641a3c1636e539914c30c9f6b04aa7f8ce
DisplayModeDirector: make settings higher priority than app request

Applications can still set refresh rate to 90Hz even if the Peak refresh
rate setting is disabled. This prevents users disable 90Hz completely
(to preserve power for example).
Users should have the option to do so.

Fixes: 135044304
Test: Disable peak refresh rate and run an app that requests 90Hz
Change-Id: I7ab809f9bf75f91e983873b8993cf4a22010a5ea
services/core/java/com/android/server/display/DisplayModeDirector.java