Lines Matching refs:int64_t
81 static constexpr int64_t INVALID_VSYNC_ID = -1;
82 static constexpr int64_t UNKNOWN_DEADLINE = std::numeric_limits<int64_t>::max();
83 static constexpr int64_t UNKNOWN_FRAME_INTERVAL = -1;
86 explicit UiFrameInfoBuilder(int64_t* buffer) : mBuffer(buffer) { in UiFrameInfoBuilder()
87 memset(mBuffer, 0, UI_THREAD_FRAME_INFO_SIZE * sizeof(int64_t)); in UiFrameInfoBuilder()
93 set(FrameInfoIndex::FrameDeadline) = std::numeric_limits<int64_t>::max(); in UiFrameInfoBuilder()
97 int64_t vsyncId, int64_t frameDeadline, nsecs_t frameInterval) { in setVsync()
118 inline int64_t& set(FrameInfoIndex index) { return mBuffer[static_cast<int>(index)]; } in set()
120 int64_t* mBuffer;
125 void importUiThreadInfo(int64_t* info);
145 const int64_t* data() const { return mFrameInfo; } in data()
147 inline int64_t operator[](FrameInfoIndex index) const { return get(index); }
149 inline int64_t operator[](int index) const {
154 inline int64_t duration(FrameInfoIndex start, FrameInfoIndex end) const { in duration()
155 int64_t endtime = get(end); in duration()
156 int64_t starttime = get(start); in duration()
157 int64_t gap = endtime - starttime; in duration()
162 int64_t offset = get(FrameInfoIndex::SyncStart) - get(FrameInfoIndex::SyncQueued); in duration()
170 inline int64_t totalDuration() const { in totalDuration()
174 inline int64_t gpuDrawTime() const { in gpuDrawTime()
177 int64_t endTime = get(FrameInfoIndex::GpuCompleted); in gpuDrawTime()
181 inline int64_t& set(FrameInfoIndex index) { return mFrameInfo[static_cast<int>(index)]; } in set()
183 inline int64_t get(FrameInfoIndex index) const { in get()
189 int64_t mFrameInfo[static_cast<int>(FrameInfoIndex::NumIndexes)];