Home
last modified time | relevance | path

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

12

/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/
DScheduler.cpp364 DisplayModeId modeId, nsecs_t vsyncPeriod) { in onPrimaryDisplayModeChanged() argument
368 mFeatures.cachedModeChangedParams = {handle, displayId, modeId, vsyncPeriod}; in onPrimaryDisplayModeChanged()
374 onNonPrimaryDisplayModeChanged(handle, displayId, modeId, vsyncPeriod); in onPrimaryDisplayModeChanged()
389 const auto vsyncPeriod = mRefreshRateConfigs.getRefreshRateFromModeId(modeId).getVsyncPeriod(); in dispatchCachedReportedMode() local
393 vsyncPeriod == mFeatures.cachedModeChangedParams->vsyncPeriod) { in dispatchCachedReportedMode()
398 mFeatures.cachedModeChangedParams->vsyncPeriod = vsyncPeriod; in dispatchCachedReportedMode()
402 mFeatures.cachedModeChangedParams->vsyncPeriod); in dispatchCachedReportedMode()
406 DisplayModeId modeId, nsecs_t vsyncPeriod) { in onNonPrimaryDisplayModeChanged() argument
413 thread->onModeChanged(displayId, modeId, vsyncPeriod); in onNonPrimaryDisplayModeChanged()
445 const auto vsyncPeriod = mVsyncSchedule.tracker->currentPeriod(); in getDisplayStatInfo() local
[all …]
DEventThread.cpp61 auto vsyncPeriod(VSyncRequest request) { in vsyncPeriod() function
74 return StringPrintf("VSyncRequest::Periodic{period=%d}", vsyncPeriod(request)); in toString()
122 nsecs_t vsyncPeriod) { in makeModeChanged() argument
126 event.modeChange.vsyncPeriod = vsyncPeriod; in makeModeChanged()
379 nsecs_t vsyncPeriod) { in onModeChanged() argument
382 mPendingEvents.push_back(makeModeChanged(displayId, modeId, vsyncPeriod)); in onModeChanged()
557 return event.vsync.count % vsyncPeriod(connection->vsyncRequest) == 0; in shouldConsumeEvent()
DVsyncConfiguration.h120 VsyncConfigSet getDefaultOffsets(nsecs_t vsyncPeriod) const;
121 VsyncConfigSet getHighFpsOffsets(nsecs_t vsyncPeriod) const;
DScheduler.h91 nsecs_t vsyncPeriod) EXCLUDES(mFeatureStateLock);
93 nsecs_t vsyncPeriod);
301 nsecs_t vsyncPeriod; member
DEventThread.h128 nsecs_t vsyncPeriod) = 0;
178 nsecs_t vsyncPeriod) override;
/frameworks/av/media/libstagefright/
DVideoFrameScheduler.cpp52 (long long)stats.vsyncTime, (long long)stats.vsyncPeriod); in updateVsync()
54 mVsyncPeriod = stats.vsyncPeriod; in updateVsync()
/frameworks/native/services/surfaceflinger/tests/unittests/
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()
DTestableScheduler.h99 DisplayModeId modeId, nsecs_t vsyncPeriod) { in onNonPrimaryDisplayModeChanged() argument
100 return Scheduler::onNonPrimaryDisplayModeChanged(handle, displayId, modeId, vsyncPeriod); in onNonPrimaryDisplayModeChanged()
DRefreshRateStatsTest.cpp65 DisplayModePtr createDisplayMode(DisplayModeId modeId, int32_t group, int64_t vsyncPeriod);
81 int64_t vsyncPeriod) { in createDisplayMode() argument
84 .setVsyncPeriod(static_cast<int32_t>(vsyncPeriod)) in createDisplayMode()
DSchedulerTest.cpp202 nsecs_t vsyncPeriod = 111111; in TEST_F() local
209 vsyncPeriod)); in TEST_F()
/frameworks/base/libs/hwui/
DDeviceInfo.cpp105 void DeviceInfo::onRefreshRateChanged(int64_t vsyncPeriod) { in onRefreshRateChanged() argument
106 mVsyncPeriod = vsyncPeriod; in onRefreshRateChanged()
DDeviceInfo.h72 void onRefreshRateChanged(int64_t vsyncPeriod);
/frameworks/native/libs/ui/include/ui/
DDisplayStatInfo.h26 nsecs_t vsyncPeriod{0};
/frameworks/native/libs/ui/include_vndk/ui/
DDisplayStatInfo.h26 nsecs_t vsyncPeriod{0};
/frameworks/native/services/surfaceflinger/tests/fakehwc/
DSFFakeHwc_test.cpp146 int32_t vsyncPeriod; member
189 .WillRepeatedly(DoAll(SetArgPointee<3>(testConfigs[i].vsyncPeriod), in setExpectationsForConfigs()
233 .vsyncPeriod = 16'666'666, in SetUp()
337 .vsyncPeriod = 16'666'666, in Test_HotplugOneConfig()
394 .vsyncPeriod = 16'666'666, in Test_HotplugTwoSeparateConfigs()
399 .vsyncPeriod = 11'111'111, in Test_HotplugTwoSeparateConfigs()
502 .vsyncPeriod = 16'666'666, in Test_HotplugTwoConfigsSameGroup()
507 .vsyncPeriod = 11'111'111, in Test_HotplugTwoConfigsSameGroup()
609 .vsyncPeriod = 16'666'666, in Test_HotplugThreeConfigsMixedGroups()
614 .vsyncPeriod = 11'111'111, in Test_HotplugThreeConfigsMixedGroups()
[all …]
/frameworks/native/services/surfaceflinger/DisplayHardware/
DDisplayMode.h67 Builder& setVsyncPeriod(int32_t vsyncPeriod) { in setVsyncPeriod() argument
68 mDisplayMode->mFps = Fps::fromPeriodNsecs(vsyncPeriod); in setVsyncPeriod()
/frameworks/native/libs/nativedisplay/include-private/private/android/
Dchoreographer.h30 void AChoreographer_signalRefreshRateCallbacks(int64_t vsyncPeriod);
/frameworks/native/services/surfaceflinger/
DDisplayDevice.cpp196 nsecs_t vsyncPeriod; in getVsyncPeriodFromHWC() local
197 const auto status = mHwComposer.getDisplayVsyncPeriod(physicalId, &vsyncPeriod); in getVsyncPeriodFromHWC()
199 return vsyncPeriod; in getVsyncPeriodFromHWC()
DSurfaceFlinger.cpp1198 const nsecs_t vsyncPeriod = refreshRate.getPeriodNsecs(); in setActiveModeInternal() local
1201 mUpcomingActiveMode.modeId, vsyncPeriod); in setActiveModeInternal()
1719 std::optional<hal::VsyncPeriodNanos> vsyncPeriod) { in onComposerHalVsync() argument
1740 mScheduler->addResyncSample(timestamp, vsyncPeriod, &periodFlushed); in onComposerHalVsync()
1826 const auto vsyncPeriod = mScheduler->getDisplayStatInfo(now).vsyncPeriod; in previousFrameFence() local
1827 const bool expectedPresentTimeIsTheNextVsync = mExpectedPresentTime - now <= vsyncPeriod; in previousFrameFence()
1859 : stats.vsyncTime + stats.vsyncPeriod; in calculateExpectedPresentTime()
1916 const nsecs_t frameMissedSlop = stats.vsyncPeriod / 2; in onMessageInvalidate()
1981 mFrameTimeline->setSfWakeUp(vsyncId, frameStart, Fps::fromPeriodNsecs(stats.vsyncPeriod)); in onMessageInvalidate()
2209 ? (stats.vsyncPeriod - in setCompositorTimingSnapped()
[all …]
/frameworks/native/libs/gui/tests/
DDisplayEventStructLayout_test.cpp43 CHECK_OFFSET(DisplayEventReceiver::Event::ModeChange, vsyncPeriod, 8); in TEST()
/frameworks/native/libs/gui/include/gui/
DDisplayEventDispatcher.h67 nsecs_t vsyncPeriod) = 0;
DDisplayEventReceiver.h88 nsecs_t vsyncPeriod __attribute__((aligned(8))); member
/frameworks/native/libs/nativedisplay/
DAChoreographer.cpp142 nsecs_t vsyncPeriod) override;
439 void AChoreographer_signalRefreshRateCallbacks(nsecs_t vsyncPeriod) EXCLUDES(gChoreographers.lock) { in AChoreographer_signalRefreshRateCallbacks() argument
441 gChoreographers.mLastKnownVsync.store(vsyncPeriod); in AChoreographer_signalRefreshRateCallbacks()
/frameworks/base/libs/hwui/renderthread/
DRenderThread.cpp130 void RenderThread::refreshRateCallback(int64_t vsyncPeriod, void* data) { in refreshRateCallback() argument
133 DeviceInfo::get()->onRefreshRateChanged(vsyncPeriod); in refreshRateCallback()

12