Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc4e7201 authored by Andy Yu's avatar Andy Yu
Browse files

Add 40fps as a FPS option

40fps is a valid frame rate for a 120Hz display
since 40 is a divisor of 120. Though it is not a common FPS
for games, in compliance with CTS test we need to add it.

Bug: b/204322816, b/206128693
Test: atest GameManagerServiceTests
      atest FrameRateOverrideHostTest
Change-Id: I2a2cf9d88c269dee388c8fe68e82df3514f4a9f1
parent 25466c21
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -359,6 +359,7 @@ public final class GameManagerService extends IGameManagerService.Stub {
    public enum FrameRate {
        FPS_DEFAULT(0),
        FPS_30(30),
        FPS_40(40),
        FPS_45(45),
        FPS_60(60),
        FPS_90(90),
@@ -378,6 +379,8 @@ public final class GameManagerService extends IGameManagerService.Stub {
        switch (raw) {
            case "30":
                return FrameRate.FPS_30.fps;
            case "40":
                return FrameRate.FPS_40.fps;
            case "45":
                return FrameRate.FPS_45.fps;
            case "60":