From 0f7fc4105c8798909d14ff58f156f29933dee9ed Mon Sep 17 00:00:00 2001 From: Huihong Luo Date: Wed, 8 Mar 2023 22:11:14 +0000 Subject: [PATCH] Round up virtual display refresh rate This semantics guarantees the virtual display will at least have the specified refresh rate, e.g., if 60hz is requested on a 90hz display, the virtual dislay will get a 90hz. Bug: 266965278 Test: manual Change-Id: If71a0c1153a3b26bee613e1ca6830c25b31d668b --- core/java/android/hardware/display/VirtualDisplayConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/hardware/display/VirtualDisplayConfig.java b/core/java/android/hardware/display/VirtualDisplayConfig.java index 490e55ba260fc..3fffb3ca2c7b9 100644 --- a/core/java/android/hardware/display/VirtualDisplayConfig.java +++ b/core/java/android/hardware/display/VirtualDisplayConfig.java @@ -438,7 +438,7 @@ public final class VirtualDisplayConfig implements Parcelable { * *

For best results, specify a divisor of the physical refresh rate, e.g., 30 or 60 on * a 120hz display. If an arbitrary refresh rate is specified, the rate will be rounded up - * down to a divisor of the physical display. If unset or zero, the virtual display will be + * to a divisor of the physical display. If unset or zero, the virtual display will be * refreshed at the physical display refresh rate. * * @see Display#getRefreshRate()