Home
last modified time | relevance | path

Searched refs:vsyncPeriod (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/native/libs/gui/
DCompositorTiming.cpp25 CompositorTiming::CompositorTiming(nsecs_t vsyncDeadline, nsecs_t vsyncPeriod, nsecs_t vsyncPhase, in CompositorTiming() argument
27 if (CC_UNLIKELY(vsyncPeriod <= 0)) { in CompositorTiming()
34 if (vsyncPhase < 0) return -vsyncPhase % vsyncPeriod; in CompositorTiming()
36 const nsecs_t latency = (vsyncPeriod - vsyncPhase) % vsyncPeriod; in CompositorTiming()
37 return latency > 0 ? latency : vsyncPeriod; in CompositorTiming()
44 const nsecs_t bias = vsyncPeriod / 2; in CompositorTiming()
45 const nsecs_t extraVsyncs = (presentLatency - idealLatency + bias) / vsyncPeriod; in CompositorTiming()
47 extraVsyncs > 0 ? idealLatency + extraVsyncs * vsyncPeriod : idealLatency; in CompositorTiming()
50 this->interval = vsyncPeriod; in CompositorTiming()
DChoreographer.cpp410 void Choreographer::signalRefreshRateCallbacks(nsecs_t vsyncPeriod) { in signalRefreshRateCallbacks() argument
412 gChoreographers.mLastKnownVsync.store(vsyncPeriod); in signalRefreshRateCallbacks()
/frameworks/native/services/surfaceflinger/tests/unittests/
DPowerAdvisorTest.cpp50 void fakeBasicFrameTiming(TimePoint startTime, Duration vsyncPeriod);
63 Duration vsyncPeriod; member
169 void PowerAdvisorTest::fakeBasicFrameTiming(TimePoint startTime, Duration vsyncPeriod) { in fakeBasicFrameTiming() argument
172 mPowerAdvisor->updateTargetWorkDuration(vsyncPeriod); in fakeBasicFrameTiming()
215 fakeBasicFrameTiming(startTime, config.vsyncPeriod); in testGpuScenario()
234 ASSERT_EQ(target, config.vsyncPeriod.ns()); in testGpuScenario()
237 setExpectedTiming(config.vsyncPeriod, startTime + config.vsyncPeriod); in testGpuScenario()
253 std::this_thread::sleep_for(config.vsyncPeriod); in testGpuScenario()
255 fakeBasicFrameTiming(startTime, config.vsyncPeriod); in testGpuScenario()
260 setExpectedTiming(config.vsyncPeriod, startTime + config.vsyncPeriod); in testGpuScenario()
[all …]
DVsyncConfigurationTest.cpp111 auto validateOffsets = [](const auto& offsets, std::chrono::nanoseconds vsyncPeriod) { in TEST_F() argument
115 EXPECT_EQ(offsets.late.sfWorkDuration, vsyncPeriod - 1'000'000ns); in TEST_F()
116 EXPECT_EQ(offsets.late.appWorkDuration, vsyncPeriod); in TEST_F()
121 EXPECT_EQ(offsets.early.sfWorkDuration, vsyncPeriod - 1'000'000ns); in TEST_F()
122 EXPECT_EQ(offsets.early.appWorkDuration, vsyncPeriod); in TEST_F()
127 EXPECT_EQ(offsets.earlyGpu.sfWorkDuration, vsyncPeriod - 1'000'000ns); in TEST_F()
128 EXPECT_EQ(offsets.earlyGpu.appWorkDuration, vsyncPeriod); in TEST_F()
DHWComposerTest.cpp219 EXPECT_EQ(modes.front().vsyncPeriod, kVsyncPeriod); in TEST_F()
240 EXPECT_EQ(modes.front().vsyncPeriod, kVsyncPeriod); in TEST_F()
311 EXPECT_EQ(modes.front().vsyncPeriod, kVsyncPeriod); in TEST_F()
332 EXPECT_EQ(modes.front().vsyncPeriod, kVsyncPeriod); in TEST_F()
372 .vsyncPeriod = kVsyncPeriod, in TEST_F()
387 EXPECT_EQ(modes.front().vsyncPeriod, kVsyncPeriod); in TEST_F()
407 EXPECT_EQ(modes.front().vsyncPeriod, kVsyncPeriod); in TEST_F()
/frameworks/base/core/jni/
Dandroid_hardware_display_DisplayManagerGlobal.cpp36 const nsecs_t vsyncPeriod = kNanosPerSecond / refreshRate; in android_hardware_display_DisplayManagerGlobal_signalNativeCallbacks() local
38 AChoreographer_signalRefreshRateCallbacks(vsyncPeriod); in android_hardware_display_DisplayManagerGlobal_signalNativeCallbacks()
/frameworks/native/services/surfaceflinger/Scheduler/src/
DFrameTargeter.cpp74 const Period vsyncPeriod = vsyncSource.period(); in beginFrame() local
83 if (args.sfWorkDuration > vsyncPeriod) { in beginFrame()
85 mExpectedPresentTime += vsyncPeriod; in beginFrame()
121 const nsecs_t frameMissedSlop = vsyncPeriod.ns() / 2; in beginFrame()
/frameworks/av/media/libstagefright/
DVideoFrameScheduler.cpp53 (long long)stats.vsyncTime, (long long)stats.vsyncPeriod); in updateVsync()
55 mVsyncPeriod = stats.vsyncPeriod; in updateVsync()
/frameworks/base/libs/hwui/
DDeviceInfo.cpp119 void DeviceInfo::onRefreshRateChanged(int64_t vsyncPeriod) { in onRefreshRateChanged() argument
120 mVsyncPeriod = vsyncPeriod; in onRefreshRateChanged()
DDeviceInfo.h96 void onRefreshRateChanged(int64_t vsyncPeriod);
/frameworks/native/libs/gui/aidl/android/gui/
DDisplayStatInfo.aidl22 long vsyncPeriod;
/frameworks/native/libs/ui/include_vndk/ui/
DDisplayStatInfo.h26 nsecs_t vsyncPeriod{0};
/frameworks/native/libs/ui/include/ui/
DDisplayStatInfo.h26 nsecs_t vsyncPeriod{0};
/frameworks/native/libs/gui/include/gui/
DCompositorTiming.h28 CompositorTiming(nsecs_t vsyncDeadline, nsecs_t vsyncPeriod, nsecs_t vsyncPhase,
DChoreographer.h107 static void signalRefreshRateCallbacks(nsecs_t vsyncPeriod) EXCLUDES(gChoreographers.lock);
124 nsecs_t vsyncPeriod) override;
DDisplayEventDispatcher.h60 nsecs_t vsyncPeriod) = 0;
DDisplayEventReceiver.h96 nsecs_t vsyncPeriod __attribute__((aligned(8))); member
/frameworks/native/services/surfaceflinger/Scheduler/
DVsyncConfiguration.h118 VsyncConfigSet getDefaultOffsets(nsecs_t vsyncPeriod) const;
119 VsyncConfigSet getHighFpsOffsets(nsecs_t vsyncPeriod) const;
DEventThread.cpp67 auto vsyncPeriod(VSyncRequest request) { in vsyncPeriod() function
80 return StringPrintf("VSyncRequest::Periodic{period=%d}", vsyncPeriod(request)); in toString()
152 event.modeChange.vsyncPeriod = mode.fps.getPeriodNsecs(); in makeModeChanged()
621 return event.vsync.count % vsyncPeriod(connection->vsyncRequest) == 0; in shouldConsumeEvent()
/frameworks/native/libs/nativedisplay/include-private/private/android/
Dchoreographer.h30 void AChoreographer_signalRefreshRateCallbacks(int64_t vsyncPeriod);
/frameworks/native/services/surfaceflinger/DisplayHardware/
DDisplayMode.h84 Builder& setVsyncPeriod(nsecs_t vsyncPeriod) { in setVsyncPeriod() argument
85 mDisplayMode->mVsyncRate = Fps::fromPeriodNsecs(vsyncPeriod); in setVsyncPeriod()
/frameworks/native/libs/nativedisplay/
DAChoreographer.cpp53 void AChoreographer_signalRefreshRateCallbacks(nsecs_t vsyncPeriod) { in AChoreographer_signalRefreshRateCallbacks() argument
54 Choreographer::signalRefreshRateCallbacks(vsyncPeriod); in AChoreographer_signalRefreshRateCallbacks()
/frameworks/native/services/surfaceflinger/Scheduler/tests/
DFrameTargeterTest.cpp35 : vsyncPeriod(period), framePeriod(minFramePeriod), vsyncDeadline(deadline) {} in VsyncSource()
37 const Period vsyncPeriod; member
41 Period period() const override { return vsyncPeriod; } in period()
168 EXPECT_EQ(target().expectedPresentTime(), vsyncSource.vsyncDeadline + vsyncSource.vsyncPeriod); in TEST_F()
/frameworks/native/libs/gui/tests/
DDisplayEventStructLayout_test.cpp65 CHECK_OFFSET(DisplayEventReceiver::Event::ModeChange, vsyncPeriod, 8); in TEST()
/frameworks/base/libs/hwui/renderthread/
DRenderThread.cpp158 void RenderThread::refreshRateCallback(int64_t vsyncPeriod, void* data) { in refreshRateCallback() argument
161 DeviceInfo::get()->onRefreshRateChanged(vsyncPeriod); in refreshRateCallback()

12