Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2019 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Ady Abraham | b0dbdaa | 2020-01-06 16:19:42 -0800 | [diff] [blame] | 17 | // TODO(b/129481165): remove the #pragma below and fix conversion issues |
| 18 | #pragma clang diagnostic push |
| 19 | #pragma clang diagnostic ignored "-Wconversion" |
| 20 | |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 21 | #undef LOG_TAG |
| 22 | #define LOG_TAG "SchedulerUnittests" |
| 23 | |
| 24 | #include <gmock/gmock.h> |
| 25 | #include <log/log.h> |
| 26 | #include <thread> |
| 27 | |
| 28 | #include "Scheduler/RefreshRateStats.h" |
Ady Abraham | abc2760 | 2020-04-08 17:20:29 -0700 | [diff] [blame] | 29 | #include "mock/DisplayHardware/MockDisplay.h" |
Alec Mouri | fb571ea | 2019-01-24 18:42:10 -0800 | [diff] [blame] | 30 | #include "mock/MockTimeStats.h" |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 31 | |
| 32 | using namespace std::chrono_literals; |
Peiyong Lin | 65248e0 | 2020-04-18 21:15:07 -0700 | [diff] [blame] | 33 | using android::hardware::graphics::composer::hal::PowerMode; |
Alec Mouri | fb571ea | 2019-01-24 18:42:10 -0800 | [diff] [blame] | 34 | using testing::_; |
Alec Mouri | a2957ea | 2019-03-16 21:05:23 -0700 | [diff] [blame] | 35 | using testing::AtLeast; |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 36 | |
| 37 | namespace android { |
| 38 | namespace scheduler { |
| 39 | |
| 40 | class RefreshRateStatsTest : public testing::Test { |
| 41 | protected: |
Ady Abraham | 2139f73 | 2019-11-13 18:56:40 -0800 | [diff] [blame] | 42 | static inline const auto CONFIG_ID_0 = HwcConfigIndexType(0); |
| 43 | static inline const auto CONFIG_ID_1 = HwcConfigIndexType(1); |
Ady Abraham | abc2760 | 2020-04-08 17:20:29 -0700 | [diff] [blame] | 44 | static inline const auto CONFIG_GROUP_0 = 0; |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 45 | static constexpr int64_t VSYNC_90 = 11111111; |
| 46 | static constexpr int64_t VSYNC_60 = 16666667; |
| 47 | |
| 48 | RefreshRateStatsTest(); |
| 49 | ~RefreshRateStatsTest(); |
| 50 | |
Ady Abraham | abc2760 | 2020-04-08 17:20:29 -0700 | [diff] [blame] | 51 | void init(const std::vector<std::shared_ptr<const HWC2::Display::Config>>& configs) { |
Ana Krulec | 3f6a206 | 2020-01-23 15:48:01 -0800 | [diff] [blame] | 52 | mRefreshRateConfigs = |
| 53 | std::make_unique<RefreshRateConfigs>(configs, /*currentConfig=*/CONFIG_ID_0); |
Peiyong Lin | 65248e0 | 2020-04-18 21:15:07 -0700 | [diff] [blame] | 54 | mRefreshRateStats = std::make_unique<RefreshRateStats>(*mRefreshRateConfigs, mTimeStats, |
| 55 | /*currentConfigId=*/CONFIG_ID_0, |
| 56 | /*currentPowerMode=*/PowerMode::OFF); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 57 | } |
| 58 | |
Ady Abraham | abc2760 | 2020-04-08 17:20:29 -0700 | [diff] [blame] | 59 | Hwc2::mock::Display mDisplay; |
Dominik Laskowski | 6453651 | 2019-03-28 09:53:04 -0700 | [diff] [blame] | 60 | mock::TimeStats mTimeStats; |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 61 | std::unique_ptr<RefreshRateConfigs> mRefreshRateConfigs; |
| 62 | std::unique_ptr<RefreshRateStats> mRefreshRateStats; |
Ady Abraham | abc2760 | 2020-04-08 17:20:29 -0700 | [diff] [blame] | 63 | |
| 64 | std::shared_ptr<const HWC2::Display::Config> createConfig(HwcConfigIndexType configId, |
| 65 | int32_t configGroup, |
| 66 | int64_t vsyncPeriod); |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 67 | }; |
| 68 | |
| 69 | RefreshRateStatsTest::RefreshRateStatsTest() { |
| 70 | const ::testing::TestInfo* const test_info = |
| 71 | ::testing::UnitTest::GetInstance()->current_test_info(); |
| 72 | ALOGD("**** Setting up for %s.%s\n", test_info->test_case_name(), test_info->name()); |
| 73 | } |
| 74 | |
| 75 | RefreshRateStatsTest::~RefreshRateStatsTest() { |
| 76 | const ::testing::TestInfo* const test_info = |
| 77 | ::testing::UnitTest::GetInstance()->current_test_info(); |
| 78 | ALOGD("**** Tearing down after %s.%s\n", test_info->test_case_name(), test_info->name()); |
| 79 | } |
| 80 | |
Ady Abraham | abc2760 | 2020-04-08 17:20:29 -0700 | [diff] [blame] | 81 | std::shared_ptr<const HWC2::Display::Config> RefreshRateStatsTest::createConfig( |
| 82 | HwcConfigIndexType configId, int32_t configGroup, int64_t vsyncPeriod) { |
Peiyong Lin | e9d809e | 2020-04-14 13:10:48 -0700 | [diff] [blame] | 83 | return HWC2::Display::Config::Builder(mDisplay, configId.value()) |
Ady Abraham | abc2760 | 2020-04-08 17:20:29 -0700 | [diff] [blame] | 84 | .setVsyncPeriod(int32_t(vsyncPeriod)) |
| 85 | .setConfigGroup(configGroup) |
| 86 | .build(); |
| 87 | } |
| 88 | |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 89 | namespace { |
| 90 | /* ------------------------------------------------------------------------ |
| 91 | * Test cases |
| 92 | */ |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 93 | TEST_F(RefreshRateStatsTest, oneConfigTest) { |
Ady Abraham | abc2760 | 2020-04-08 17:20:29 -0700 | [diff] [blame] | 94 | init({createConfig(CONFIG_ID_0, CONFIG_GROUP_0, VSYNC_90)}); |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 95 | |
Dominik Laskowski | 6453651 | 2019-03-28 09:53:04 -0700 | [diff] [blame] | 96 | EXPECT_CALL(mTimeStats, recordRefreshRate(0, _)).Times(AtLeast(1)); |
| 97 | EXPECT_CALL(mTimeStats, recordRefreshRate(90, _)).Times(AtLeast(1)); |
Alec Mouri | fb571ea | 2019-01-24 18:42:10 -0800 | [diff] [blame] | 98 | |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 99 | std::unordered_map<std::string, int64_t> times = mRefreshRateStats->getTotalTimes(); |
| 100 | ASSERT_EQ(1, times.size()); |
Alec Mouri | a2957ea | 2019-03-16 21:05:23 -0700 | [diff] [blame] | 101 | EXPECT_NE(0u, times.count("ScreenOff")); |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 102 | // Setting up tests on mobile harness can be flaky with time passing, so testing for |
| 103 | // exact time changes can result in flaxy numbers. To avoid that remember old |
| 104 | // numbers to make sure the correct values are increasing in the next test. |
| 105 | int screenOff = times["ScreenOff"]; |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 106 | |
| 107 | // Screen is off by default. |
| 108 | std::this_thread::sleep_for(std::chrono::milliseconds(2)); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 109 | times = mRefreshRateStats->getTotalTimes(); |
Alec Mouri | a2957ea | 2019-03-16 21:05:23 -0700 | [diff] [blame] | 110 | EXPECT_LT(screenOff, times["ScreenOff"]); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 111 | EXPECT_EQ(0u, times.count("90fps")); |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 112 | |
Ady Abraham | 2139f73 | 2019-11-13 18:56:40 -0800 | [diff] [blame] | 113 | mRefreshRateStats->setConfigMode(CONFIG_ID_0); |
Peiyong Lin | 65248e0 | 2020-04-18 21:15:07 -0700 | [diff] [blame] | 114 | mRefreshRateStats->setPowerMode(PowerMode::ON); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 115 | screenOff = mRefreshRateStats->getTotalTimes()["ScreenOff"]; |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 116 | std::this_thread::sleep_for(std::chrono::milliseconds(2)); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 117 | times = mRefreshRateStats->getTotalTimes(); |
Alec Mouri | a2957ea | 2019-03-16 21:05:23 -0700 | [diff] [blame] | 118 | EXPECT_EQ(screenOff, times["ScreenOff"]); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 119 | ASSERT_EQ(1u, times.count("90fps")); |
| 120 | EXPECT_LT(0, times["90fps"]); |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 121 | |
Peiyong Lin | 65248e0 | 2020-04-18 21:15:07 -0700 | [diff] [blame] | 122 | mRefreshRateStats->setPowerMode(PowerMode::DOZE); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 123 | int ninety = mRefreshRateStats->getTotalTimes()["90fps"]; |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 124 | std::this_thread::sleep_for(std::chrono::milliseconds(2)); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 125 | times = mRefreshRateStats->getTotalTimes(); |
Alec Mouri | a2957ea | 2019-03-16 21:05:23 -0700 | [diff] [blame] | 126 | EXPECT_LT(screenOff, times["ScreenOff"]); |
| 127 | EXPECT_EQ(ninety, times["90fps"]); |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 128 | |
Ady Abraham | 2139f73 | 2019-11-13 18:56:40 -0800 | [diff] [blame] | 129 | mRefreshRateStats->setConfigMode(CONFIG_ID_0); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 130 | screenOff = mRefreshRateStats->getTotalTimes()["ScreenOff"]; |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 131 | std::this_thread::sleep_for(std::chrono::milliseconds(2)); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 132 | times = mRefreshRateStats->getTotalTimes(); |
Peiyong Lin | 65248e0 | 2020-04-18 21:15:07 -0700 | [diff] [blame] | 133 | // Because the power mode is not PowerMode::ON, switching the config |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 134 | // does not update refresh rates that come from the config. |
Alec Mouri | a2957ea | 2019-03-16 21:05:23 -0700 | [diff] [blame] | 135 | EXPECT_LT(screenOff, times["ScreenOff"]); |
| 136 | EXPECT_EQ(ninety, times["90fps"]); |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 137 | } |
| 138 | |
| 139 | TEST_F(RefreshRateStatsTest, twoConfigsTest) { |
Ady Abraham | abc2760 | 2020-04-08 17:20:29 -0700 | [diff] [blame] | 140 | init({createConfig(CONFIG_ID_0, CONFIG_GROUP_0, VSYNC_90), |
| 141 | createConfig(CONFIG_ID_1, CONFIG_GROUP_0, VSYNC_60)}); |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 142 | |
Dominik Laskowski | 6453651 | 2019-03-28 09:53:04 -0700 | [diff] [blame] | 143 | EXPECT_CALL(mTimeStats, recordRefreshRate(0, _)).Times(AtLeast(1)); |
| 144 | EXPECT_CALL(mTimeStats, recordRefreshRate(60, _)).Times(AtLeast(1)); |
| 145 | EXPECT_CALL(mTimeStats, recordRefreshRate(90, _)).Times(AtLeast(1)); |
Alec Mouri | fb571ea | 2019-01-24 18:42:10 -0800 | [diff] [blame] | 146 | |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 147 | std::unordered_map<std::string, int64_t> times = mRefreshRateStats->getTotalTimes(); |
| 148 | ASSERT_EQ(1, times.size()); |
Alec Mouri | a2957ea | 2019-03-16 21:05:23 -0700 | [diff] [blame] | 149 | EXPECT_NE(0u, times.count("ScreenOff")); |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 150 | // Setting up tests on mobile harness can be flaky with time passing, so testing for |
| 151 | // exact time changes can result in flaxy numbers. To avoid that remember old |
| 152 | // numbers to make sure the correct values are increasing in the next test. |
| 153 | int screenOff = times["ScreenOff"]; |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 154 | |
| 155 | // Screen is off by default. |
| 156 | std::this_thread::sleep_for(std::chrono::milliseconds(2)); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 157 | times = mRefreshRateStats->getTotalTimes(); |
Alec Mouri | a2957ea | 2019-03-16 21:05:23 -0700 | [diff] [blame] | 158 | EXPECT_LT(screenOff, times["ScreenOff"]); |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 159 | |
Ady Abraham | 2139f73 | 2019-11-13 18:56:40 -0800 | [diff] [blame] | 160 | mRefreshRateStats->setConfigMode(CONFIG_ID_0); |
Peiyong Lin | 65248e0 | 2020-04-18 21:15:07 -0700 | [diff] [blame] | 161 | mRefreshRateStats->setPowerMode(PowerMode::ON); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 162 | screenOff = mRefreshRateStats->getTotalTimes()["ScreenOff"]; |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 163 | std::this_thread::sleep_for(std::chrono::milliseconds(2)); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 164 | times = mRefreshRateStats->getTotalTimes(); |
Alec Mouri | a2957ea | 2019-03-16 21:05:23 -0700 | [diff] [blame] | 165 | EXPECT_EQ(screenOff, times["ScreenOff"]); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 166 | ASSERT_EQ(1u, times.count("90fps")); |
| 167 | EXPECT_LT(0, times["90fps"]); |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 168 | |
| 169 | // When power mode is normal, time for configs updates. |
Ady Abraham | 2139f73 | 2019-11-13 18:56:40 -0800 | [diff] [blame] | 170 | mRefreshRateStats->setConfigMode(CONFIG_ID_1); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 171 | int ninety = mRefreshRateStats->getTotalTimes()["90fps"]; |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 172 | std::this_thread::sleep_for(std::chrono::milliseconds(2)); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 173 | times = mRefreshRateStats->getTotalTimes(); |
Alec Mouri | a2957ea | 2019-03-16 21:05:23 -0700 | [diff] [blame] | 174 | EXPECT_EQ(screenOff, times["ScreenOff"]); |
| 175 | EXPECT_EQ(ninety, times["90fps"]); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 176 | ASSERT_EQ(1u, times.count("60fps")); |
| 177 | EXPECT_LT(0, times["60fps"]); |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 178 | |
Ady Abraham | 2139f73 | 2019-11-13 18:56:40 -0800 | [diff] [blame] | 179 | mRefreshRateStats->setConfigMode(CONFIG_ID_0); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 180 | int sixty = mRefreshRateStats->getTotalTimes()["60fps"]; |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 181 | std::this_thread::sleep_for(std::chrono::milliseconds(2)); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 182 | times = mRefreshRateStats->getTotalTimes(); |
Alec Mouri | a2957ea | 2019-03-16 21:05:23 -0700 | [diff] [blame] | 183 | EXPECT_EQ(screenOff, times["ScreenOff"]); |
| 184 | EXPECT_LT(ninety, times["90fps"]); |
| 185 | EXPECT_EQ(sixty, times["60fps"]); |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 186 | |
Ady Abraham | 2139f73 | 2019-11-13 18:56:40 -0800 | [diff] [blame] | 187 | mRefreshRateStats->setConfigMode(CONFIG_ID_1); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 188 | ninety = mRefreshRateStats->getTotalTimes()["90fps"]; |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 189 | std::this_thread::sleep_for(std::chrono::milliseconds(2)); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 190 | times = mRefreshRateStats->getTotalTimes(); |
Alec Mouri | a2957ea | 2019-03-16 21:05:23 -0700 | [diff] [blame] | 191 | EXPECT_EQ(screenOff, times["ScreenOff"]); |
| 192 | EXPECT_EQ(ninety, times["90fps"]); |
| 193 | EXPECT_LT(sixty, times["60fps"]); |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 194 | |
Peiyong Lin | 65248e0 | 2020-04-18 21:15:07 -0700 | [diff] [blame] | 195 | // Because the power mode is not PowerMode::ON, switching the config |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 196 | // does not update refresh rates that come from the config. |
Peiyong Lin | 65248e0 | 2020-04-18 21:15:07 -0700 | [diff] [blame] | 197 | mRefreshRateStats->setPowerMode(PowerMode::DOZE); |
Ady Abraham | 2139f73 | 2019-11-13 18:56:40 -0800 | [diff] [blame] | 198 | mRefreshRateStats->setConfigMode(CONFIG_ID_0); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 199 | sixty = mRefreshRateStats->getTotalTimes()["60fps"]; |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 200 | std::this_thread::sleep_for(std::chrono::milliseconds(2)); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 201 | times = mRefreshRateStats->getTotalTimes(); |
Alec Mouri | a2957ea | 2019-03-16 21:05:23 -0700 | [diff] [blame] | 202 | EXPECT_LT(screenOff, times["ScreenOff"]); |
| 203 | EXPECT_EQ(ninety, times["90fps"]); |
| 204 | EXPECT_EQ(sixty, times["60fps"]); |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 205 | |
Ady Abraham | 2139f73 | 2019-11-13 18:56:40 -0800 | [diff] [blame] | 206 | mRefreshRateStats->setConfigMode(CONFIG_ID_1); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 207 | screenOff = mRefreshRateStats->getTotalTimes()["ScreenOff"]; |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 208 | std::this_thread::sleep_for(std::chrono::milliseconds(2)); |
Steven Thomas | 2bbaabe | 2019-08-28 16:08:35 -0700 | [diff] [blame] | 209 | times = mRefreshRateStats->getTotalTimes(); |
Alec Mouri | a2957ea | 2019-03-16 21:05:23 -0700 | [diff] [blame] | 210 | EXPECT_LT(screenOff, times["ScreenOff"]); |
| 211 | EXPECT_EQ(ninety, times["90fps"]); |
| 212 | EXPECT_EQ(sixty, times["60fps"]); |
Ana Krulec | 4593b69 | 2019-01-11 22:07:25 -0800 | [diff] [blame] | 213 | } |
| 214 | } // namespace |
| 215 | } // namespace scheduler |
| 216 | } // namespace android |
Ady Abraham | b0dbdaa | 2020-01-06 16:19:42 -0800 | [diff] [blame] | 217 | |
| 218 | // TODO(b/129481165): remove the #pragma below and fix conversion issues |
| 219 | #pragma clang diagnostic pop // ignored "-Wconversion" |