Lines Matching refs:idx
156 size_t idx = (mOffset+NUM_FRAME_RECORDS-i) % NUM_FRAME_RECORDS; in processFencesLocked() local
159 const sp<Fence>& rfence = records[idx].frameReadyFence; in processFencesLocked()
161 records[idx].frameReadyTime = rfence->getSignalTime(); in processFencesLocked()
162 if (records[idx].frameReadyTime < INT64_MAX) { in processFencesLocked()
163 records[idx].frameReadyFence = NULL; in processFencesLocked()
169 const sp<Fence>& pfence = records[idx].actualPresentFence; in processFencesLocked()
171 records[idx].actualPresentTime = pfence->getSignalTime(); in processFencesLocked()
172 if (records[idx].actualPresentTime < INT64_MAX) { in processFencesLocked()
173 records[idx].actualPresentFence = NULL; in processFencesLocked()
180 updateStatsLocked(idx); in processFencesLocked()
231 bool FrameTracker::isFrameValidLocked(size_t idx) const { in isFrameValidLocked()
232 return mFrameRecords[idx].actualPresentTime > 0 && in isFrameValidLocked()
233 mFrameRecords[idx].actualPresentTime < INT64_MAX; in isFrameValidLocked()