Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [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 | |
| 17 | #define ATRACE_TAG ATRACE_TAG_GRAPHICS |
| 18 | //#define LOG_NDEBUG 0 |
| 19 | #include "VSyncPredictor.h" |
| 20 | #include <android-base/logging.h> |
Ady Abraham | 5e7371c | 2020-03-24 14:47:24 -0700 | [diff] [blame] | 21 | #include <android-base/stringprintf.h> |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 22 | #include <cutils/compiler.h> |
Kevin DuBois | ecb1f0d | 2019-12-12 10:47:41 -0800 | [diff] [blame] | 23 | #include <cutils/properties.h> |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 24 | #include <utils/Log.h> |
| 25 | #include <utils/Trace.h> |
| 26 | #include <algorithm> |
| 27 | #include <chrono> |
Kevin DuBois | 127a2d9 | 2019-12-04 13:52:52 -0800 | [diff] [blame] | 28 | #include <sstream> |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 29 | |
| 30 | namespace android::scheduler { |
Ady Abraham | 5e7371c | 2020-03-24 14:47:24 -0700 | [diff] [blame] | 31 | using base::StringAppendF; |
Kevin DuBois | ecb1f0d | 2019-12-12 10:47:41 -0800 | [diff] [blame] | 32 | |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 33 | static auto constexpr kMaxPercent = 100u; |
| 34 | |
| 35 | VSyncPredictor::~VSyncPredictor() = default; |
| 36 | |
| 37 | VSyncPredictor::VSyncPredictor(nsecs_t idealPeriod, size_t historySize, |
| 38 | size_t minimumSamplesForPrediction, uint32_t outlierTolerancePercent) |
Kevin DuBois | c57f2c3 | 2019-12-20 16:32:29 -0800 | [diff] [blame] | 39 | : mTraceOn(property_get_bool("debug.sf.vsp_trace", true)), |
Kevin DuBois | ecb1f0d | 2019-12-12 10:47:41 -0800 | [diff] [blame] | 40 | kHistorySize(historySize), |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 41 | kMinimumSamplesForPrediction(minimumSamplesForPrediction), |
| 42 | kOutlierTolerancePercent(std::min(outlierTolerancePercent, kMaxPercent)), |
| 43 | mIdealPeriod(idealPeriod) { |
Kevin DuBois | c3e9e8e | 2020-01-07 09:06:52 -0800 | [diff] [blame] | 44 | resetModel(); |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 45 | } |
| 46 | |
Kevin DuBois | ecb1f0d | 2019-12-12 10:47:41 -0800 | [diff] [blame] | 47 | inline void VSyncPredictor::traceInt64If(const char* name, int64_t value) const { |
| 48 | if (CC_UNLIKELY(mTraceOn)) { |
| 49 | ATRACE_INT64(name, value); |
| 50 | } |
| 51 | } |
| 52 | |
Ady Abraham | 9c53ee7 | 2020-07-22 21:16:18 -0700 | [diff] [blame^] | 53 | inline size_t VSyncPredictor::next(size_t i) const { |
Ady Abraham | 92fa2f4 | 2020-02-11 15:33:56 -0800 | [diff] [blame] | 54 | return (i + 1) % mTimestamps.size(); |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 55 | } |
| 56 | |
| 57 | bool VSyncPredictor::validate(nsecs_t timestamp) const { |
Ady Abraham | 92fa2f4 | 2020-02-11 15:33:56 -0800 | [diff] [blame] | 58 | if (mLastTimestampIndex < 0 || mTimestamps.empty()) { |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 59 | return true; |
| 60 | } |
| 61 | |
Ady Abraham | 92fa2f4 | 2020-02-11 15:33:56 -0800 | [diff] [blame] | 62 | auto const aValidTimestamp = mTimestamps[mLastTimestampIndex]; |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 63 | auto const percent = (timestamp - aValidTimestamp) % mIdealPeriod * kMaxPercent / mIdealPeriod; |
| 64 | return percent < kOutlierTolerancePercent || percent > (kMaxPercent - kOutlierTolerancePercent); |
| 65 | } |
| 66 | |
Kevin DuBois | 2fd3cea | 2019-11-14 08:52:45 -0800 | [diff] [blame] | 67 | nsecs_t VSyncPredictor::currentPeriod() const { |
Ady Abraham | 9c53ee7 | 2020-07-22 21:16:18 -0700 | [diff] [blame^] | 68 | std::lock_guard lock(mMutex); |
Kevin DuBois | 2fd3cea | 2019-11-14 08:52:45 -0800 | [diff] [blame] | 69 | return std::get<0>(mRateMap.find(mIdealPeriod)->second); |
| 70 | } |
| 71 | |
Kevin DuBois | 02d5ed9 | 2020-01-27 11:05:46 -0800 | [diff] [blame] | 72 | bool VSyncPredictor::addVsyncTimestamp(nsecs_t timestamp) { |
Ady Abraham | 9c53ee7 | 2020-07-22 21:16:18 -0700 | [diff] [blame^] | 73 | std::lock_guard lock(mMutex); |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 74 | |
| 75 | if (!validate(timestamp)) { |
Kevin DuBois | 241d0ee | 2020-06-26 17:00:15 -0700 | [diff] [blame] | 76 | // VSR could elect to ignore the incongruent timestamp or resetModel(). If ts is ignored, |
| 77 | // don't insert this ts into mTimestamps ringbuffer. |
| 78 | if (!mTimestamps.empty()) { |
| 79 | mKnownTimestamp = |
| 80 | std::max(timestamp, *std::max_element(mTimestamps.begin(), mTimestamps.end())); |
| 81 | } else { |
| 82 | mKnownTimestamp = timestamp; |
| 83 | } |
Kevin DuBois | 02d5ed9 | 2020-01-27 11:05:46 -0800 | [diff] [blame] | 84 | return false; |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 85 | } |
| 86 | |
Ady Abraham | 92fa2f4 | 2020-02-11 15:33:56 -0800 | [diff] [blame] | 87 | if (mTimestamps.size() != kHistorySize) { |
| 88 | mTimestamps.push_back(timestamp); |
| 89 | mLastTimestampIndex = next(mLastTimestampIndex); |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 90 | } else { |
Ady Abraham | 92fa2f4 | 2020-02-11 15:33:56 -0800 | [diff] [blame] | 91 | mLastTimestampIndex = next(mLastTimestampIndex); |
| 92 | mTimestamps[mLastTimestampIndex] = timestamp; |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 93 | } |
| 94 | |
Ady Abraham | 92fa2f4 | 2020-02-11 15:33:56 -0800 | [diff] [blame] | 95 | if (mTimestamps.size() < kMinimumSamplesForPrediction) { |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 96 | mRateMap[mIdealPeriod] = {mIdealPeriod, 0}; |
Kevin DuBois | 02d5ed9 | 2020-01-27 11:05:46 -0800 | [diff] [blame] | 97 | return true; |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 98 | } |
| 99 | |
| 100 | // This is a 'simple linear regression' calculation of Y over X, with Y being the |
| 101 | // vsync timestamps, and X being the ordinal of vsync count. |
| 102 | // The calculated slope is the vsync period. |
| 103 | // Formula for reference: |
| 104 | // Sigma_i: means sum over all timestamps. |
| 105 | // mean(variable): statistical mean of variable. |
| 106 | // X: snapped ordinal of the timestamp |
| 107 | // Y: vsync timestamp |
| 108 | // |
| 109 | // Sigma_i( (X_i - mean(X)) * (Y_i - mean(Y) ) |
| 110 | // slope = ------------------------------------------- |
| 111 | // Sigma_i ( X_i - mean(X) ) ^ 2 |
| 112 | // |
| 113 | // intercept = mean(Y) - slope * mean(X) |
| 114 | // |
Ady Abraham | 92fa2f4 | 2020-02-11 15:33:56 -0800 | [diff] [blame] | 115 | std::vector<nsecs_t> vsyncTS(mTimestamps.size()); |
| 116 | std::vector<nsecs_t> ordinals(mTimestamps.size()); |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 117 | |
| 118 | // normalizing to the oldest timestamp cuts down on error in calculating the intercept. |
Ady Abraham | 92fa2f4 | 2020-02-11 15:33:56 -0800 | [diff] [blame] | 119 | auto const oldest_ts = *std::min_element(mTimestamps.begin(), mTimestamps.end()); |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 120 | auto it = mRateMap.find(mIdealPeriod); |
| 121 | auto const currentPeriod = std::get<0>(it->second); |
| 122 | // TODO (b/144707443): its important that there's some precision in the mean of the ordinals |
Kevin DuBois | 0049f8b | 2020-03-11 10:30:11 -0700 | [diff] [blame] | 123 | // for the intercept calculation, so scale the ordinals by 1000 to continue |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 124 | // fixed point calculation. Explore expanding |
| 125 | // scheduler::utils::calculate_mean to have a fixed point fractional part. |
Kevin DuBois | 0049f8b | 2020-03-11 10:30:11 -0700 | [diff] [blame] | 126 | static constexpr int64_t kScalingFactor = 1000; |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 127 | |
Ady Abraham | 92fa2f4 | 2020-02-11 15:33:56 -0800 | [diff] [blame] | 128 | for (auto i = 0u; i < mTimestamps.size(); i++) { |
| 129 | traceInt64If("VSP-ts", mTimestamps[i]); |
Kevin DuBois | ecb1f0d | 2019-12-12 10:47:41 -0800 | [diff] [blame] | 130 | |
Ady Abraham | 92fa2f4 | 2020-02-11 15:33:56 -0800 | [diff] [blame] | 131 | vsyncTS[i] = mTimestamps[i] - oldest_ts; |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 132 | ordinals[i] = ((vsyncTS[i] + (currentPeriod / 2)) / currentPeriod) * kScalingFactor; |
| 133 | } |
| 134 | |
| 135 | auto meanTS = scheduler::calculate_mean(vsyncTS); |
| 136 | auto meanOrdinal = scheduler::calculate_mean(ordinals); |
Ady Abraham | 9c53ee7 | 2020-07-22 21:16:18 -0700 | [diff] [blame^] | 137 | for (size_t i = 0; i < vsyncTS.size(); i++) { |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 138 | vsyncTS[i] -= meanTS; |
| 139 | ordinals[i] -= meanOrdinal; |
| 140 | } |
| 141 | |
| 142 | auto top = 0ll; |
| 143 | auto bottom = 0ll; |
Ady Abraham | 9c53ee7 | 2020-07-22 21:16:18 -0700 | [diff] [blame^] | 144 | for (size_t i = 0; i < vsyncTS.size(); i++) { |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 145 | top += vsyncTS[i] * ordinals[i]; |
| 146 | bottom += ordinals[i] * ordinals[i]; |
| 147 | } |
| 148 | |
| 149 | if (CC_UNLIKELY(bottom == 0)) { |
| 150 | it->second = {mIdealPeriod, 0}; |
Ady Abraham | 92fa2f4 | 2020-02-11 15:33:56 -0800 | [diff] [blame] | 151 | clearTimestamps(); |
Kevin DuBois | 02d5ed9 | 2020-01-27 11:05:46 -0800 | [diff] [blame] | 152 | return false; |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 153 | } |
| 154 | |
Kevin DuBois | 0049f8b | 2020-03-11 10:30:11 -0700 | [diff] [blame] | 155 | nsecs_t const anticipatedPeriod = top * kScalingFactor / bottom; |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 156 | nsecs_t const intercept = meanTS - (anticipatedPeriod * meanOrdinal / kScalingFactor); |
| 157 | |
Ady Abraham | 92fa2f4 | 2020-02-11 15:33:56 -0800 | [diff] [blame] | 158 | auto const percent = std::abs(anticipatedPeriod - mIdealPeriod) * kMaxPercent / mIdealPeriod; |
| 159 | if (percent >= kOutlierTolerancePercent) { |
| 160 | it->second = {mIdealPeriod, 0}; |
| 161 | clearTimestamps(); |
| 162 | return false; |
| 163 | } |
| 164 | |
Kevin DuBois | ecb1f0d | 2019-12-12 10:47:41 -0800 | [diff] [blame] | 165 | traceInt64If("VSP-period", anticipatedPeriod); |
| 166 | traceInt64If("VSP-intercept", intercept); |
| 167 | |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 168 | it->second = {anticipatedPeriod, intercept}; |
| 169 | |
| 170 | ALOGV("model update ts: %" PRId64 " slope: %" PRId64 " intercept: %" PRId64, timestamp, |
| 171 | anticipatedPeriod, intercept); |
Kevin DuBois | 02d5ed9 | 2020-01-27 11:05:46 -0800 | [diff] [blame] | 172 | return true; |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 173 | } |
| 174 | |
| 175 | nsecs_t VSyncPredictor::nextAnticipatedVSyncTimeFrom(nsecs_t timePoint) const { |
Ady Abraham | 9c53ee7 | 2020-07-22 21:16:18 -0700 | [diff] [blame^] | 176 | std::lock_guard lock(mMutex); |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 177 | |
Ady Abraham | 9c53ee7 | 2020-07-22 21:16:18 -0700 | [diff] [blame^] | 178 | auto const [slope, intercept] = getVSyncPredictionModel(lock); |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 179 | |
Ady Abraham | 92fa2f4 | 2020-02-11 15:33:56 -0800 | [diff] [blame] | 180 | if (mTimestamps.empty()) { |
Kevin DuBois | ecb1f0d | 2019-12-12 10:47:41 -0800 | [diff] [blame] | 181 | traceInt64If("VSP-mode", 1); |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 182 | auto const knownTimestamp = mKnownTimestamp ? *mKnownTimestamp : timePoint; |
| 183 | auto const numPeriodsOut = ((timePoint - knownTimestamp) / mIdealPeriod) + 1; |
| 184 | return knownTimestamp + numPeriodsOut * mIdealPeriod; |
| 185 | } |
| 186 | |
Ady Abraham | 92fa2f4 | 2020-02-11 15:33:56 -0800 | [diff] [blame] | 187 | auto const oldest = *std::min_element(mTimestamps.begin(), mTimestamps.end()); |
Kevin DuBois | 127a2d9 | 2019-12-04 13:52:52 -0800 | [diff] [blame] | 188 | |
| 189 | // See b/145667109, the ordinal calculation must take into account the intercept. |
| 190 | auto const zeroPoint = oldest + intercept; |
| 191 | auto const ordinalRequest = (timePoint - zeroPoint + slope) / slope; |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 192 | auto const prediction = (ordinalRequest * slope) + intercept + oldest; |
| 193 | |
Kevin DuBois | ecb1f0d | 2019-12-12 10:47:41 -0800 | [diff] [blame] | 194 | traceInt64If("VSP-mode", 0); |
| 195 | traceInt64If("VSP-timePoint", timePoint); |
| 196 | traceInt64If("VSP-prediction", prediction); |
| 197 | |
Kevin DuBois | 127a2d9 | 2019-12-04 13:52:52 -0800 | [diff] [blame] | 198 | auto const printer = [&, slope = slope, intercept = intercept] { |
| 199 | std::stringstream str; |
| 200 | str << "prediction made from: " << timePoint << "prediction: " << prediction << " (+" |
| 201 | << prediction - timePoint << ") slope: " << slope << " intercept: " << intercept |
| 202 | << "oldestTS: " << oldest << " ordinal: " << ordinalRequest; |
| 203 | return str.str(); |
| 204 | }; |
| 205 | |
| 206 | ALOGV("%s", printer().c_str()); |
| 207 | LOG_ALWAYS_FATAL_IF(prediction < timePoint, "VSyncPredictor: model miscalculation: %s", |
| 208 | printer().c_str()); |
| 209 | |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 210 | return prediction; |
| 211 | } |
| 212 | |
| 213 | std::tuple<nsecs_t, nsecs_t> VSyncPredictor::getVSyncPredictionModel() const { |
Ady Abraham | 9c53ee7 | 2020-07-22 21:16:18 -0700 | [diff] [blame^] | 214 | std::lock_guard lock(mMutex); |
| 215 | return VSyncPredictor::getVSyncPredictionModel(lock); |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 216 | } |
| 217 | |
| 218 | std::tuple<nsecs_t, nsecs_t> VSyncPredictor::getVSyncPredictionModel( |
| 219 | std::lock_guard<std::mutex> const&) const { |
| 220 | return mRateMap.find(mIdealPeriod)->second; |
| 221 | } |
| 222 | |
| 223 | void VSyncPredictor::setPeriod(nsecs_t period) { |
| 224 | ATRACE_CALL(); |
| 225 | |
Ady Abraham | 9c53ee7 | 2020-07-22 21:16:18 -0700 | [diff] [blame^] | 226 | std::lock_guard lock(mMutex); |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 227 | static constexpr size_t kSizeLimit = 30; |
| 228 | if (CC_UNLIKELY(mRateMap.size() == kSizeLimit)) { |
| 229 | mRateMap.erase(mRateMap.begin()); |
| 230 | } |
| 231 | |
| 232 | mIdealPeriod = period; |
| 233 | if (mRateMap.find(period) == mRateMap.end()) { |
| 234 | mRateMap[mIdealPeriod] = {period, 0}; |
| 235 | } |
| 236 | |
Kevin DuBois | c3e9e8e | 2020-01-07 09:06:52 -0800 | [diff] [blame] | 237 | clearTimestamps(); |
| 238 | } |
| 239 | |
| 240 | void VSyncPredictor::clearTimestamps() { |
Ady Abraham | 92fa2f4 | 2020-02-11 15:33:56 -0800 | [diff] [blame] | 241 | if (!mTimestamps.empty()) { |
Kevin DuBois | 241d0ee | 2020-06-26 17:00:15 -0700 | [diff] [blame] | 242 | auto const maxRb = *std::max_element(mTimestamps.begin(), mTimestamps.end()); |
| 243 | if (mKnownTimestamp) { |
| 244 | mKnownTimestamp = std::max(*mKnownTimestamp, maxRb); |
| 245 | } else { |
| 246 | mKnownTimestamp = maxRb; |
| 247 | } |
| 248 | |
Ady Abraham | 92fa2f4 | 2020-02-11 15:33:56 -0800 | [diff] [blame] | 249 | mTimestamps.clear(); |
| 250 | mLastTimestampIndex = 0; |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 251 | } |
| 252 | } |
| 253 | |
Kevin DuBois | b818bfa | 2020-07-10 14:29:36 -0700 | [diff] [blame] | 254 | bool VSyncPredictor::needsMoreSamples() const { |
Ady Abraham | 9c53ee7 | 2020-07-22 21:16:18 -0700 | [diff] [blame^] | 255 | std::lock_guard lock(mMutex); |
Kevin DuBois | b818bfa | 2020-07-10 14:29:36 -0700 | [diff] [blame] | 256 | return mTimestamps.size() < kMinimumSamplesForPrediction; |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 257 | } |
| 258 | |
Kevin DuBois | c3e9e8e | 2020-01-07 09:06:52 -0800 | [diff] [blame] | 259 | void VSyncPredictor::resetModel() { |
Ady Abraham | 9c53ee7 | 2020-07-22 21:16:18 -0700 | [diff] [blame^] | 260 | std::lock_guard lock(mMutex); |
Kevin DuBois | c3e9e8e | 2020-01-07 09:06:52 -0800 | [diff] [blame] | 261 | mRateMap[mIdealPeriod] = {mIdealPeriod, 0}; |
| 262 | clearTimestamps(); |
| 263 | } |
| 264 | |
Ady Abraham | 5e7371c | 2020-03-24 14:47:24 -0700 | [diff] [blame] | 265 | void VSyncPredictor::dump(std::string& result) const { |
Ady Abraham | 9c53ee7 | 2020-07-22 21:16:18 -0700 | [diff] [blame^] | 266 | std::lock_guard lock(mMutex); |
Ady Abraham | 5e7371c | 2020-03-24 14:47:24 -0700 | [diff] [blame] | 267 | StringAppendF(&result, "\tmIdealPeriod=%.2f\n", mIdealPeriod / 1e6f); |
| 268 | StringAppendF(&result, "\tRefresh Rate Map:\n"); |
| 269 | for (const auto& [idealPeriod, periodInterceptTuple] : mRateMap) { |
| 270 | StringAppendF(&result, |
| 271 | "\t\tFor ideal period %.2fms: period = %.2fms, intercept = %" PRId64 "\n", |
| 272 | idealPeriod / 1e6f, std::get<0>(periodInterceptTuple) / 1e6f, |
| 273 | std::get<1>(periodInterceptTuple)); |
| 274 | } |
| 275 | } |
| 276 | |
Kevin DuBois | 1678e2c | 2019-08-22 12:26:24 -0700 | [diff] [blame] | 277 | } // namespace android::scheduler |
Ady Abraham | b0dbdaa | 2020-01-06 16:19:42 -0800 | [diff] [blame] | 278 | |