/frameworks/native/libs/gui/ |
D | CompositorTiming.cpp | 25 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()
|
D | Choreographer.cpp | 410 void Choreographer::signalRefreshRateCallbacks(nsecs_t vsyncPeriod) { in signalRefreshRateCallbacks() argument 412 gChoreographers.mLastKnownVsync.store(vsyncPeriod); in signalRefreshRateCallbacks()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | PowerAdvisorTest.cpp | 50 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 …]
|
D | VsyncConfigurationTest.cpp | 111 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()
|
D | HWComposerTest.cpp | 219 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/ |
D | android_hardware_display_DisplayManagerGlobal.cpp | 36 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/ |
D | FrameTargeter.cpp | 74 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/ |
D | VideoFrameScheduler.cpp | 53 (long long)stats.vsyncTime, (long long)stats.vsyncPeriod); in updateVsync() 55 mVsyncPeriod = stats.vsyncPeriod; in updateVsync()
|
/frameworks/base/libs/hwui/ |
D | DeviceInfo.cpp | 119 void DeviceInfo::onRefreshRateChanged(int64_t vsyncPeriod) { in onRefreshRateChanged() argument 120 mVsyncPeriod = vsyncPeriod; in onRefreshRateChanged()
|
D | DeviceInfo.h | 96 void onRefreshRateChanged(int64_t vsyncPeriod);
|
/frameworks/native/libs/gui/aidl/android/gui/ |
D | DisplayStatInfo.aidl | 22 long vsyncPeriod;
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | DisplayStatInfo.h | 26 nsecs_t vsyncPeriod{0};
|
/frameworks/native/libs/ui/include/ui/ |
D | DisplayStatInfo.h | 26 nsecs_t vsyncPeriod{0};
|
/frameworks/native/libs/gui/include/gui/ |
D | CompositorTiming.h | 28 CompositorTiming(nsecs_t vsyncDeadline, nsecs_t vsyncPeriod, nsecs_t vsyncPhase,
|
D | Choreographer.h | 107 static void signalRefreshRateCallbacks(nsecs_t vsyncPeriod) EXCLUDES(gChoreographers.lock); 124 nsecs_t vsyncPeriod) override;
|
D | DisplayEventDispatcher.h | 60 nsecs_t vsyncPeriod) = 0;
|
D | DisplayEventReceiver.h | 96 nsecs_t vsyncPeriod __attribute__((aligned(8))); member
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | VsyncConfiguration.h | 118 VsyncConfigSet getDefaultOffsets(nsecs_t vsyncPeriod) const; 119 VsyncConfigSet getHighFpsOffsets(nsecs_t vsyncPeriod) const;
|
D | EventThread.cpp | 67 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/ |
D | choreographer.h | 30 void AChoreographer_signalRefreshRateCallbacks(int64_t vsyncPeriod);
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | DisplayMode.h | 84 Builder& setVsyncPeriod(nsecs_t vsyncPeriod) { in setVsyncPeriod() argument 85 mDisplayMode->mVsyncRate = Fps::fromPeriodNsecs(vsyncPeriod); in setVsyncPeriod()
|
/frameworks/native/libs/nativedisplay/ |
D | AChoreographer.cpp | 53 void AChoreographer_signalRefreshRateCallbacks(nsecs_t vsyncPeriod) { in AChoreographer_signalRefreshRateCallbacks() argument 54 Choreographer::signalRefreshRateCallbacks(vsyncPeriod); in AChoreographer_signalRefreshRateCallbacks()
|
/frameworks/native/services/surfaceflinger/Scheduler/tests/ |
D | FrameTargeterTest.cpp | 35 : 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/ |
D | DisplayEventStructLayout_test.cpp | 65 CHECK_OFFSET(DisplayEventReceiver::Event::ModeChange, vsyncPeriod, 8); in TEST()
|
/frameworks/base/libs/hwui/renderthread/ |
D | RenderThread.cpp | 158 void RenderThread::refreshRateCallback(int64_t vsyncPeriod, void* data) { in refreshRateCallback() argument 161 DeviceInfo::get()->onRefreshRateChanged(vsyncPeriod); in refreshRateCallback()
|