Home
last modified time | relevance | path

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

12

/frameworks/native/services/surfaceflinger/tests/unittests/
DPowerAdvisorTest.cpp42 void fakeBasicFrameTiming(nsecs_t startTime, nsecs_t vsyncPeriod);
43 void setExpectedTiming(nsecs_t startTime, nsecs_t vsyncPeriod);
75 void PowerAdvisorTest::fakeBasicFrameTiming(nsecs_t startTime, nsecs_t vsyncPeriod) { in fakeBasicFrameTiming() argument
78 mPowerAdvisor->setTargetWorkDuration(vsyncPeriod); in fakeBasicFrameTiming()
96 const nsecs_t vsyncPeriod = std::chrono::nanoseconds(1s).count() / 60; in TEST_F() local
103 fakeBasicFrameTiming(startTime, vsyncPeriod); in TEST_F()
104 setExpectedTiming(vsyncPeriod, startTime + vsyncPeriod); in TEST_F()
110 startTime += vsyncPeriod; in TEST_F()
115 fakeBasicFrameTiming(startTime, vsyncPeriod); in TEST_F()
116 setExpectedTiming(vsyncPeriod, startTime + vsyncPeriod); in TEST_F()
[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()
/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/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.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/gui/aidl/android/gui/
DDisplayStatInfo.aidl22 long 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/Scheduler/
DVsyncConfiguration.h120 VsyncConfigSet getDefaultOffsets(nsecs_t vsyncPeriod) const;
121 VsyncConfigSet getHighFpsOffsets(nsecs_t vsyncPeriod) const;
DScheduler.cpp366 const auto vsyncPeriod = mVsyncSchedule->getTracker().currentPeriod(); in getDisplayStatInfo() local
367 return DisplayStatInfo{.vsyncTime = vsyncTime, .vsyncPeriod = vsyncPeriod}; in getDisplayStatInfo()
780 const auto vsyncPeriod = std::chrono::nanoseconds(mVsyncSchedule->getTracker().currentPeriod()); in getPreviousVsyncFrom() local
781 return std::chrono::steady_clock::time_point(presentTime - vsyncPeriod); in getPreviousVsyncFrom()
DEventThread.cpp61 auto vsyncPeriod(VSyncRequest request) { in vsyncPeriod() function
74 return StringPrintf("VSyncRequest::Periodic{period=%d}", vsyncPeriod(request)); in toString()
132 event.modeChange.vsyncPeriod = mode->getVsyncPeriod(); in makeModeChanged()
582 return event.vsync.count % vsyncPeriod(connection->vsyncRequest) == 0; in shouldConsumeEvent()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DDisplayMode.h78 Builder& setVsyncPeriod(nsecs_t vsyncPeriod) { in setVsyncPeriod() argument
79 mDisplayMode->mFps = Fps::fromPeriodNsecs(vsyncPeriod); in setVsyncPeriod()
DHWComposer.h97 nsecs_t vsyncPeriod = -1; member
104 << " vsyncPeriod=" << mode.vsyncPeriod << " dpi=" << mode.dpiX << "x"
/frameworks/native/libs/nativedisplay/include-private/private/android/
Dchoreographer.h30 void AChoreographer_signalRefreshRateCallbacks(int64_t vsyncPeriod);
/frameworks/native/libs/gui/include/gui/
DDisplayEventDispatcher.h56 nsecs_t vsyncPeriod) = 0;
DDisplayEventReceiver.h89 nsecs_t vsyncPeriod __attribute__((aligned(8))); member
/frameworks/native/libs/gui/tests/
DDisplayEventStructLayout_test.cpp63 CHECK_OFFSET(DisplayEventReceiver::Event::ModeChange, vsyncPeriod, 8); in TEST()
/frameworks/native/services/surfaceflinger/
DDisplayDevice.cpp261 nsecs_t vsyncPeriod; in getVsyncPeriodFromHWC() local
262 const auto status = mHwComposer.getDisplayVsyncPeriod(physicalId, &vsyncPeriod); in getVsyncPeriodFromHWC()
264 return vsyncPeriod; in getVsyncPeriodFromHWC()
DSurfaceFlinger.cpp1857 std::optional<hal::VsyncPeriodNanos> vsyncPeriod) { in onComposerHalVsync() argument
1858 const std::string tracePeriod = [vsyncPeriod]() { in onComposerHalVsync()
1859 if (ATRACE_ENABLED() && vsyncPeriod) { in onComposerHalVsync()
1861 ss << "(" << *vsyncPeriod << ")"; in onComposerHalVsync()
1888 mScheduler->addResyncSample(timestamp, vsyncPeriod, &periodFlushed); in onComposerHalVsync()
1961 const auto vsyncPeriod = mScheduler->getDisplayStatInfo(now).vsyncPeriod; in previousFrameFence() local
1962 const bool expectedPresentTimeIsTheNextVsync = mExpectedPresentTime - now <= vsyncPeriod; in previousFrameFence()
1994 : stats.vsyncTime + stats.vsyncPeriod; in calculateExpectedPresentTime()
2038 const nsecs_t frameMissedSlop = stats.vsyncPeriod / 2; in commit()
2096 const nsecs_t vsyncPeriod = display->getActiveMode()->getVsyncPeriod(); in commit() local
[all …]
/frameworks/base/libs/hwui/renderthread/
DRenderThread.cpp143 void RenderThread::refreshRateCallback(int64_t vsyncPeriod, void* data) { in refreshRateCallback() argument
146 DeviceInfo::get()->onRefreshRateChanged(vsyncPeriod); in refreshRateCallback()
DRenderThread.h218 static void refreshRateCallback(int64_t vsyncPeriod, void* data);
/frameworks/native/libs/nativedisplay/
DAChoreographer.cpp156 nsecs_t vsyncPeriod) override;
491 void AChoreographer_signalRefreshRateCallbacks(nsecs_t vsyncPeriod) EXCLUDES(gChoreographers.lock) { in AChoreographer_signalRefreshRateCallbacks() argument
493 gChoreographers.mLastKnownVsync.store(vsyncPeriod); in AChoreographer_signalRefreshRateCallbacks()
/frameworks/native/libs/gui/
DDisplayEventDispatcher.cpp176 ev.modeChange.modeId, ev.modeChange.vsyncPeriod); in processPendingEvents()

12