Home
last modified time | relevance | path

Searched refs:mPhaseOffset (Results 1 – 4 of 4) sorted by relevance

/frameworks/native/services/surfaceflinger/Scheduler/
DDispSyncSource.cpp40 mPhaseOffset(phaseOffset), in DispSyncSource()
47 status_t err = mDispSync->addEventListener(mName, mPhaseOffset, in setVSyncEnabled()
81 if (mPhaseOffset == phaseOffset) { in setPhaseOffset()
85 mPhaseOffset = phaseOffset; in setPhaseOffset()
94 mDispSync->changePhaseOffset(static_cast<DispSync::Callback*>(this), mPhaseOffset); in setPhaseOffset()
118 if (mPhaseOffset > 0) { in tracePhaseOffset()
119 ATRACE_INT(mVsyncOffsetLabel.c_str(), mPhaseOffset); in tracePhaseOffset()
123 ATRACE_INT(mVsyncNegativeOffsetLabel.c_str(), -mPhaseOffset); in tracePhaseOffset()
DDispSyncSource.h60 nsecs_t mPhaseOffset GUARDED_BY(mVsyncMutex);
/frameworks/native/services/surfaceflinger/tests/unittests/
DDispSyncSourceTest.cpp53 static constexpr std::chrono::nanoseconds mPhaseOffset = 6ms; member in android::__anon200b3c6a0111::DispSyncSourceTest
82 mDispSyncSource = std::make_unique<DispSyncSource>(mDispSync.get(), mPhaseOffset.count(), in createDispSyncSource()
116 EXPECT_EQ(mDispSync->getCallbackPhase(), mPhaseOffset.count()); in TEST_F()
129 EXPECT_EQ(mDispSync->getCallbackPhase(), mPhaseOffset.count()); in TEST_F()
137 mDispSyncSource->setPhaseOffset((mPhaseOffset / 2).count()); in TEST_F()
139 EXPECT_EQ(mDispSync->getCallbackPhase(), (mPhaseOffset / 2).count()); in TEST_F()
/frameworks/av/media/libaaudio/examples/loopback/src/
DLoopbackAnalyzer.h965 mPhaseOffset = 0.0; in process()
966 mMagnitude = calculateMagnitude(&mPhaseOffset); in process()
968 if (fabs(mPreviousPhaseOffset - mPhaseOffset) < 0.001) { in process()
972 mPreviousPhaseOffset = mPhaseOffset; in process()
980 float predicted = sinf(mPhase + mPhaseOffset) * mMagnitude; in process()
1085 double mPhaseOffset = 0.0; variable