summaryrefslogtreecommitdiff
path: root/tools/aidl/generate_java.cpp
diff options
context:
space:
mode:
authorAdy Abraham <adyabr@google.com>2021-04-05 21:17:00 -0700
committerAdy Abraham <adyabr@google.com>2021-04-06 15:33:19 -0700
commit6f1cac9912af0ab18d2d7782f6cdcb3634bb1e25 (patch)
tree2572cf11e23181803c386dbc34ae35caf572898b /tools/aidl/generate_java.cpp
parent27ec0f6a4a013e0e32ce9919288258ab0168840d (diff)
DisplayManagerGlobal: suppress redundant onDisplayChanged events
With Frame Rate Override enabled, an app could get an onDisplayChanged events which seems redundant. An example would be: 1. Display changed refresh rate to 60Hz - onDisplayChanged was called 2. App's frame rate override changed to 60Hz - onDisplayChanged was called To avoid sending these redundant events, DisplayManagerGlobal caches the last DisplayInfo that was reported to the app and based on it it decides whether to send the event or not. Bug: 184588343 Test: atest SetFrameRateTest Test: atest FrameRateOverrideHostTest Change-Id: I97c7b2b9a799424998b1b717a4311d3d08b3178f
Diffstat (limited to 'tools/aidl/generate_java.cpp')
0 files changed, 0 insertions, 0 deletions