Searched refs:surfaceFrame (Results 1 – 8 of 8) sorted by relevance
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | TransactionSurfaceFrameTest.cpp | 78 const auto surfaceFrame = layer->mDrawingState.bufferlessSurfaceFramesTX.at(/*token*/ 1); in PresentedSurfaceFrameForBufferlessTransaction() local 80 EXPECT_EQ(1, surfaceFrame->getToken()); in PresentedSurfaceFrameForBufferlessTransaction() 81 EXPECT_EQ(false, surfaceFrame->getIsBuffer()); in PresentedSurfaceFrameForBufferlessTransaction() 82 EXPECT_EQ(PresentState::Presented, surfaceFrame->getPresentState()); in PresentedSurfaceFrameForBufferlessTransaction() 108 const auto surfaceFrame = layer->mDrawingState.bufferSurfaceFrameTX; in PresentedSurfaceFrameForBufferTransaction() local 110 EXPECT_EQ(PresentState::Unknown, surfaceFrame->getPresentState()); in PresentedSurfaceFrameForBufferTransaction() 114 EXPECT_EQ(1, surfaceFrame->getToken()); in PresentedSurfaceFrameForBufferTransaction() 115 EXPECT_EQ(true, surfaceFrame->getIsBuffer()); in PresentedSurfaceFrameForBufferTransaction() 116 EXPECT_EQ(PresentState::Presented, surfaceFrame->getPresentState()); in PresentedSurfaceFrameForBufferTransaction() 205 const auto surfaceFrame = layer->mDrawingState.bufferSurfaceFrameTX; in BufferlessSurfaceFramePromotedToBufferSurfaceFrame() local [all …]
|
D | FrameTimelineTest.cpp | 125 auto surfaceFrame = in addEmptySurfaceFrame() local 129 mFrameTimeline->addSurfaceFrame(std::move(surfaceFrame)); in addEmptySurfaceFrame() 222 auto surfaceFrame = in TEST_F() local 226 EXPECT_EQ(surfaceFrame->getPredictionState(), PredictionState::None); in TEST_F() 235 auto surfaceFrame = in TEST_F() local 240 EXPECT_EQ(surfaceFrame->getPredictionState(), PredictionState::Expired); in TEST_F() 248 auto surfaceFrame = in TEST_F() local 253 EXPECT_EQ(surfaceFrame->getPredictionState(), PredictionState::Valid); in TEST_F() 254 EXPECT_EQ(compareTimelineItems(surfaceFrame->getPredictions(), TimelineItem(10, 20, 30)), true); in TEST_F() 263 auto surfaceFrame = in TEST_F() local [all …]
|
/frameworks/native/services/surfaceflinger/FrameTimeline/ |
D | FrameTimeline.cpp | 904 void FrameTimeline::addSurfaceFrame(std::shared_ptr<SurfaceFrame> surfaceFrame) { in addSurfaceFrame() argument 907 mCurrentDisplayFrame->addSurfaceFrame(surfaceFrame); in addSurfaceFrame() 939 void FrameTimeline::DisplayFrame::addSurfaceFrame(std::shared_ptr<SurfaceFrame> surfaceFrame) { in addSurfaceFrame() argument 940 mSurfaceFrames.push_back(surfaceFrame); in addSurfaceFrame() 1115 for (auto& surfaceFrame : mSurfaceFrames) { in onPresent() local 1116 surfaceFrame->onPresent(signalTime, mJankType, mRefreshRate, mRenderRate, deadlineDelta, in onPresent() 1122 for (auto& surfaceFrame : mSurfaceFrames) { in onCommitNotComposited() local 1123 surfaceFrame->onCommitNotComposited(mRefreshRate, mRenderRate); in onCommitNotComposited() 1166 for (auto& surfaceFrame : mSurfaceFrames) { in addSkippedFrame() local 1171 static_cast<float>(surfaceFrame->getPredictions().presentTime) <= in addSkippedFrame() [all …]
|
D | FrameTimeline.h | 309 virtual void addSurfaceFrame(std::shared_ptr<SurfaceFrame> surfaceFrame) = 0; 402 void addSurfaceFrame(std::shared_ptr<SurfaceFrame> surfaceFrame); 482 void addSurfaceFrame(std::shared_ptr<frametimeline::SurfaceFrame> surfaceFrame) override;
|
/frameworks/native/services/surfaceflinger/ |
D | Layer.cpp | 795 std::shared_ptr<frametimeline::SurfaceFrame> surfaceFrame = in transferAvailableJankData() local 797 jankData.emplace_back(JankData(surfaceFrame->getToken(), in transferAvailableJankData() 798 surfaceFrame->getJankType().value(), in transferAvailableJankData() 799 surfaceFrame->getRenderRate().getPeriodNsecs())); in transferAvailableJankData() 845 for (auto& [token, surfaceFrame] : mDrawingState.bufferlessSurfaceFramesTX) { in commitTransaction() 846 if (surfaceFrame->getPresentState() != PresentState::Presented) { in commitTransaction() 849 surfaceFrame->setPresentState(PresentState::Presented, mLastLatchTime); in commitTransaction() 850 mFlinger->mFrameTimeline->addSurfaceFrame(surfaceFrame); in commitTransaction() 1395 auto surfaceFrame = createSurfaceFrameForTransaction(info, postTime); in setFrameTimelineVsyncForBufferlessTransaction() local 1396 mDrawingState.bufferlessSurfaceFramesTX[info.vsyncId] = surfaceFrame; in setFrameTimelineVsyncForBufferlessTransaction() [all …]
|
D | Layer.h | 801 void addSurfaceFrameDroppedForBuffer(std::shared_ptr<frametimeline::SurfaceFrame>& surfaceFrame, 804 std::shared_ptr<frametimeline::SurfaceFrame>& surfaceFrame, nsecs_t acquireFenceTime,
|
/frameworks/libs/systemui/toruslib/torus-framework-canvas/src/main/java/com/google/android/torus/canvas/engine/ |
D | CanvasWallpaperEngine.kt | 134 getCurrentSurfaceHolder().surfaceFrame.width(), in create() 135 getCurrentSurfaceHolder().surfaceFrame.height() in create()
|
/frameworks/base/core/java/android/widget/ |
D | Magnifier.java | 652 final Rect surfaceFrame = surfaceHolder.getSurfaceFrame(); in obtainSurfaces() local 654 surfaceFrame.right, surfaceFrame.bottom, new Rect(), false); in obtainSurfaces()
|