Home
last modified time | relevance | path

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

/frameworks/native/services/surfaceflinger/tests/unittests/
DDispSyncSourceTest.cpp53 static constexpr std::chrono::nanoseconds mPhaseOffset = 6ms; member in android::__anonc64f8db30111::DispSyncSourceTest
81 mDispSyncSource = std::make_unique<DispSyncSource>(mDispSync.get(), mPhaseOffset.count(), true, in createDispSyncSource()
114 EXPECT_EQ(mDispSync->getCallbackPhase(), mPhaseOffset.count()); in TEST_F()
127 EXPECT_EQ(mDispSync->getCallbackPhase(), mPhaseOffset.count()); in TEST_F()
135 mDispSyncSource->setPhaseOffset((mPhaseOffset / 2).count()); in TEST_F()
137 EXPECT_EQ(mDispSync->getCallbackPhase(), (mPhaseOffset / 2).count()); in TEST_F()
/frameworks/native/services/surfaceflinger/Scheduler/
DDispSyncSource.cpp37 mPhaseOffset(phaseOffset) {} in DispSyncSource()
42 status_t err = mDispSync->addEventListener(mName, mPhaseOffset, in setVSyncEnabled()
76 mPhaseOffset = phaseOffset; in setPhaseOffset()
84 mDispSync->changePhaseOffset(static_cast<DispSync::Callback*>(this), mPhaseOffset); in setPhaseOffset()
DDispSyncSource.h55 nsecs_t mPhaseOffset GUARDED_BY(mVsyncMutex);
/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