Lines Matching refs:offsets
63 auto offsets = mPhaseDurations.getOffsetsForRefreshRate(60.0f); in TEST_F() local
65 EXPECT_EQ(currentOffsets, offsets); in TEST_F()
66 EXPECT_EQ(offsets.late.sf, 6'166'667); in TEST_F()
68 EXPECT_EQ(offsets.late.app, 2'333'334); in TEST_F()
70 EXPECT_EQ(offsets.early.sf, 666'667); in TEST_F()
72 EXPECT_EQ(offsets.early.app, 833'334); in TEST_F()
74 EXPECT_EQ(offsets.earlyGl.sf, 3'166'667); in TEST_F()
76 EXPECT_EQ(offsets.earlyGl.app, 15'500'001); in TEST_F()
82 auto offsets = mPhaseDurations.getOffsetsForRefreshRate(90.0f); in TEST_F() local
84 EXPECT_EQ(currentOffsets, offsets); in TEST_F()
85 EXPECT_EQ(offsets.late.sf, 611'111); in TEST_F()
87 EXPECT_EQ(offsets.late.app, 2'333'333); in TEST_F()
89 EXPECT_EQ(offsets.early.sf, -4'888'889); in TEST_F()
91 EXPECT_EQ(offsets.early.app, 833'333); in TEST_F()
93 EXPECT_EQ(offsets.earlyGl.sf, -2'388'889); in TEST_F()
95 EXPECT_EQ(offsets.earlyGl.app, 9'944'444); in TEST_F()
101 auto validateOffsets = [](auto& offsets) { in TEST_F() argument
102 EXPECT_EQ(offsets.late.sf, 1'000'000); in TEST_F()
104 EXPECT_EQ(offsets.late.app, 1'000'000); in TEST_F()
106 EXPECT_EQ(offsets.early.sf, 1'000'000); in TEST_F()
108 EXPECT_EQ(offsets.early.app, 1'000'000); in TEST_F()
110 EXPECT_EQ(offsets.earlyGl.sf, 1'000'000); in TEST_F()
112 EXPECT_EQ(offsets.earlyGl.app, 1'000'000); in TEST_F()
117 auto offsets = phaseOffsetsWithDefaultValues.getOffsetsForRefreshRate(90.0f); in TEST_F() local
118 EXPECT_EQ(currentOffsets, offsets); in TEST_F()
119 validateOffsets(offsets); in TEST_F()
123 offsets = phaseOffsetsWithDefaultValues.getOffsetsForRefreshRate(90.0f); in TEST_F()
124 EXPECT_EQ(currentOffsets, offsets); in TEST_F()
125 validateOffsets(offsets); in TEST_F()
129 auto offsets = mPhaseDurations.getOffsetsForRefreshRate(14.7f); in TEST_F() local
131 EXPECT_EQ(offsets.late.sf, 57'527'208); in TEST_F()
133 EXPECT_EQ(offsets.late.app, 37'027'208); in TEST_F()
135 EXPECT_EQ(offsets.early.sf, 52'027'208); in TEST_F()
137 EXPECT_EQ(offsets.early.app, 35'527'208); in TEST_F()
139 EXPECT_EQ(offsets.earlyGl.sf, 54'527'208); in TEST_F()
141 EXPECT_EQ(offsets.earlyGl.app, 33'527'208); in TEST_F()
163 auto offsets = mPhaseOffsets.getOffsetsForRefreshRate(14.7f); in TEST_F() local
165 EXPECT_EQ(offsets.late.sf, 1'000'000); in TEST_F()
167 EXPECT_EQ(offsets.late.app, 1'000'000); in TEST_F()
169 EXPECT_EQ(offsets.early.sf, 1'000'000); in TEST_F()
171 EXPECT_EQ(offsets.early.app, 1'000'000); in TEST_F()
173 EXPECT_EQ(offsets.earlyGl.sf, 1'000'000); in TEST_F()
175 EXPECT_EQ(offsets.earlyGl.app, 1'000'000); in TEST_F()