Home
last modified time | relevance | path

Searched refs:mPhase (Results 1 – 11 of 11) sorted by relevance

/frameworks/native/services/surfaceflinger/Scheduler/
DDispSync.cpp69 mPhase(0), in DispSyncThread()
81 mPhase = phase; in updateModel()
95 eventListener.mLastEventTime = mReferenceTime + mPhase + eventListener.mPhase; in updateModel()
105 ATRACE_INT64("DispSync:Phase", mPhase + mPeriod / 2); in updateModel()
110 mName, ns2us(mPeriod), ns2us(mPhase), ns2us(mReferenceTime)); in updateModel()
225 listener.mPhase = phase; in addEventListener()
237 const nsecs_t phaseCorrection = mPhase + listener.mPhase; in addEventListener()
247 listener.mLastEventTime = now + mPhase - mWakeupLatency; in addEventListener()
288 const nsecs_t oldPhase = eventListener.mPhase; in changePhaseOffset()
289 eventListener.mPhase = phase; in changePhaseOffset()
[all …]
DDispSync.h223 nsecs_t mPhase; variable
/frameworks/av/media/libaaudio/examples/utils/
DSineGenerator.h47 buffer[sampleIndex] = (int16_t) (INT16_MAX * sin(mPhase) * mAmplitude); in render()
55 buffer[sampleIndex] = sin(mPhase) * mAmplitude; in render()
71 mPhase += mPhaseIncrement; in advancePhase()
72 if (mPhase > M_PI * 2) { in advancePhase()
73 mPhase -= M_PI * 2; in advancePhase()
91 double mPhase = 0.0; variable
/frameworks/av/cmds/stagefright/
DSineSource.cpp17 mPhase(0), in SineSource()
34 mPhase = 0; in start()
80 double x = mPhase * k; in read()
93 kKeyTime, ((int64_t)mPhase * 1000000) / mSampleRate); in read()
95 mPhase += numFramesPerBuffer; in read()
DSineSource.h33 size_t mPhase; member
/frameworks/av/media/libstagefright/
DVideoFrameSchedulerBase.cpp60 mPhase(0), in PLL()
89 mPhase = -1; in restart()
259 mPhase = firstTime; in prime()
263 numSamplesToUse, (long long)mPhase, (long long)mPeriod); in prime()
284 if (mPhase < 0) { in addSample()
286 mPhase = time; in addSample()
289 int64_t err = periodicError(time - mPhase, mPeriod); in addSample()
295 if (!fit(mPhase, mPeriod, kMaxSamplesToEstimatePeriod, &a, &b, &err)) { in addSample()
304 mPhase += (mPeriod * b) >> kPrecision; in addSample()
306 ALOGV("new phase:%lld period:%lld", (long long)mPhase, (long long)mPeriod); in addSample()
/frameworks/layoutlib/bridge/src/android/graphics/
DDashPathEffect_Delegate.java47 private final float mPhase; field in DashPathEffect_Delegate
59 mPhase); in getStroke()
86 mPhase = phase; in DashPathEffect_Delegate()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRadioCapability.java94 private int mPhase; field in RadioCapability
136 mPhase = phase; in RadioCapability()
176 return mPhase; in getPhase()
/frameworks/base/media/java/android/media/
DWebVttRenderer.java172 private TokenizerPhase mPhase; field in Tokenizer
220 mPhase = mTagTokenizer.start(); in tokenize()
272 mPhase = mDataTokenizer.start(); in tokenize()
316 mPhase = mDataTokenizer.start(); in reset()
323 mPhase.tokenize(); in tokenize()
326 if (!(mPhase instanceof TagTokenizer)) { in tokenize()
572 private Phase mPhase; field in WebVttParser
579 mPhase = mParseStart; in WebVttParser()
660 mPhase.parse(lines[i]); in parse()
673 mPhase.parse(mBuffer); in eos()
[all …]
/frameworks/av/media/libaaudio/examples/loopback/src/
DLoopbackAnalyzer.h920 float sinOut = sinf(mPhase); in process()
940 mPhase = 0.0; // prevent spike at start in process()
961 mCosAccumulator += sample * cosf(mPhase); in process()
980 float predicted = sinf(mPhase + mPhaseOffset) * mMagnitude; in process()
998 mCosAccumulator += sample * cosf(mPhase); in process()
1019 mPhase += mPhaseIncrement; in process()
1020 if (mPhase > M_PI) { in process()
1021 mPhase -= (2.0 * M_PI); in process()
1049 mPhase = 0.0f; in reset()
1084 double mPhase = 0.0; variable
/frameworks/av/media/libstagefright/include/media/stagefright/
DVideoFrameSchedulerBase.h71 nsecs_t mPhase; member