Home
last modified time | relevance | path

Searched refs:TimelineItem (Results 1 – 4 of 4) sorted by relevance

/frameworks/native/services/surfaceflinger/FrameTimeline/
DFrameTimeline.h86 struct TimelineItem { struct
87 TimelineItem(const nsecs_t startTime = 0, const nsecs_t endTime = 0,
95 bool operator==(const TimelineItem& other) const { argument
100 bool operator!=(const TimelineItem& other) const { return !(*this == other); }
122 virtual int64_t generateTokenForPredictions(TimelineItem&& prediction) = 0;
125 virtual std::optional<TimelineItem> getPredictionsForToken(int64_t token) const = 0;
163 PredictionState predictionState, TimelineItem&& predictions,
178 TimelineItem getPredictions() const { return mPredictions; }; in getPredictions()
220 TimelineItem getActuals() const;
251 const TimelineItem mPredictions;
[all …]
DFrameTimeline.cpp39 void dumpTable(std::string& result, TimelineItem predictions, TimelineItem actuals, in dumpTable()
297 nsecs_t getMinTime(PredictionState predictionState, TimelineItem predictions, in getMinTime()
298 TimelineItem actuals) { in getMinTime()
327 frametimeline::TimelineItem&& predictions, in SurfaceFrame()
435 TimelineItem SurfaceFrame::getActuals() const { in getActuals()
822 int64_t TokenManager::generateTokenForPredictions(TimelineItem&& predictions) { in generateTokenForPredictions()
833 std::optional<TimelineItem> TokenManager::getPredictionsForToken(int64_t token) const { in getPredictionsForToken()
873 PredictionState::None, TimelineItem(), mTimeStats, in createSurfaceFrameForToken()
877 std::optional<TimelineItem> predictions = in createSurfaceFrameForToken()
888 PredictionState::Expired, TimelineItem(), mTimeStats, in createSurfaceFrameForToken()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DMessageQueueTest.cpp72 MOCK_METHOD1(generateTokenForPredictions, int64_t(frametimeline::TimelineItem&& prediction));
73 MOCK_CONST_METHOD1(getPredictionsForToken, std::optional<frametimeline::TimelineItem>(int64_t));
162 generateTokenForPredictions(frametimeline::TimelineItem(kStartTime.ns(), in TEST_F()
DFrameTimelineTest.cpp156 static bool compareTimelineItems(const TimelineItem& a, const TimelineItem& b) { in compareTimelineItems()
161 const std::map<int64_t, TimelineItem>& getPredictions() const { in getPredictions()
199 std::optional<TimelineItem> predictions = mTokenManager->getPredictionsForToken(token1); in TEST_F()
205 EXPECT_EQ(compareTimelineItems(*predictions, TimelineItem(10, 20, 30)), true); in TEST_F()
254 EXPECT_EQ(compareTimelineItems(surfaceFrame->getPredictions(), TimelineItem(10, 20, 30)), true); in TEST_F()
424 EXPECT_EQ(compareTimelineItems(displayFrame0->getActuals(), TimelineItem(22, 27, 32)), true); in TEST_F()
448 EXPECT_EQ(compareTimelineItems(displayFrame0->getActuals(), TimelineItem(52, 57, 62)), true); in TEST_F()