Lines Matching refs:int64_t

83     static constexpr int64_t INVALID_VSYNC_ID = -1;
84 static constexpr int64_t UNKNOWN_DEADLINE = std::numeric_limits<int64_t>::max();
85 static constexpr int64_t UNKNOWN_FRAME_INTERVAL = -1;
88 explicit UiFrameInfoBuilder(int64_t* buffer) : mBuffer(buffer) { in UiFrameInfoBuilder()
89 memset(mBuffer, 0, UI_THREAD_FRAME_INFO_SIZE * sizeof(int64_t)); in UiFrameInfoBuilder()
95 set(FrameInfoIndex::FrameDeadline) = std::numeric_limits<int64_t>::max(); in UiFrameInfoBuilder()
99 int64_t vsyncId, int64_t frameDeadline, nsecs_t frameInterval) { in setVsync()
121 inline int64_t& set(FrameInfoIndex index) { return mBuffer[static_cast<int>(index)]; } in set()
123 int64_t* mBuffer;
128 void importUiThreadInfo(int64_t* info);
148 const int64_t* data() const { return mFrameInfo; } in data()
150 inline int64_t operator[](FrameInfoIndex index) const { return get(index); }
152 inline int64_t operator[](int index) const {
157 inline int64_t duration(FrameInfoIndex start, FrameInfoIndex end) const { in duration()
158 int64_t endtime = get(end); in duration()
159 int64_t starttime = get(start); in duration()
160 int64_t gap = endtime - starttime; in duration()
165 int64_t offset = get(FrameInfoIndex::SyncStart) - get(FrameInfoIndex::SyncQueued); in duration()
173 inline int64_t totalDuration() const { in totalDuration()
177 inline int64_t gpuDrawTime() const { in gpuDrawTime()
180 int64_t endTime = get(FrameInfoIndex::GpuCompleted); in gpuDrawTime()
184 inline int64_t& set(FrameInfoIndex index) { return mFrameInfo[static_cast<int>(index)]; } in set()
186 inline int64_t get(FrameInfoIndex index) const { in get()
197 int64_t mFrameInfo[static_cast<int>(FrameInfoIndex::NumIndexes)];