Home
last modified time | relevance | path

Searched refs:mPeriod (Results 1 – 8 of 8) sorted by relevance

/frameworks/native/services/surfaceflinger/Scheduler/
DDispSync.cpp68 mPeriod(0), in DispSyncThread()
88 if (mPeriod != 0 && mPeriod != period && mReferenceTime != 0) { in updateModel()
93 const nsecs_t numOldPeriods = baseTime / mPeriod; in updateModel()
94 mReferenceTime = mReferenceTime + (numOldPeriods)*mPeriod; in updateModel()
96 mPeriod = period; in updateModel()
98 ATRACE_INT64("DispSync:Period", mPeriod); in updateModel()
99 ATRACE_INT64("DispSync:Phase", mPhase + mPeriod / 2); in updateModel()
104 mName, ns2us(mPeriod), ns2us(mPhase), ns2us(mReferenceTime)); in updateModel()
147 if (mPeriod == 0) { in threadLoop()
225 if (mPeriod != 0) { in addEventListener()
[all …]
DDispSync.h206 nsecs_t mPeriod; variable
/frameworks/av/media/libstagefright/
DVideoFrameSchedulerBase.cpp59 : mPeriod(-1), in PLL()
75 mPeriod = -1; in reset()
79 mPeriod = (nsecs_t)(1e9 / fps + 0.5); in reset()
258 mPeriod = delta; in prime()
263 numSamplesToUse, (long long)mPhase, (long long)mPeriod); in prime()
278 if ((mPeriod <= 0 || !mPrimed) && mNumSamples >= kMinSamplesToStartPrime) { in addSample()
283 if (mPeriod > 0 && mNumSamples >= kMinSamplesToEstimatePeriod) { in addSample()
289 int64_t err = periodicError(time - mPhase, mPeriod); in addSample()
290 doFit = err > mPeriod / kReFitThresholdDiv; in addSample()
295 if (!fit(mPhase, mPeriod, kMaxSamplesToEstimatePeriod, &a, &b, &err)) { in addSample()
[all …]
DVideoFrameScheduler2.cpp60 nsecs_t mPeriod; member in android::VsyncTracker
72 mPeriod(0) { in VsyncTracker()
80 return mPeriod; in getVsyncPeriod()
90 nsecs_t result = (now - phase) / mPeriod; in getVsyncTime()
96 if (result > LONG_LONG_MAX / mPeriod) { in getVsyncTime()
99 result *= mPeriod; in getVsyncTime()
144 mPeriod = durationSum / (mNumSamples - 3); in updateModelLocked()
148 double scale = 2.0 * M_PI / (double) mPeriod; in updateModelLocked()
153 double samplePhase = (double) (sample % mPeriod) * scale; in updateModelLocked()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipWakeupTimer.java96 e.mPeriod = e.mMaxPeriod / minPeriod * minPeriod; in recalculatePeriods()
118 event.mTriggerTime = now + event.mPeriod; in insertEvent()
123 int minPeriod = firstEvent.mPeriod; in insertEvent()
125 event.mPeriod = event.mMaxPeriod / minPeriod * minPeriod; in insertEvent()
132 long triggerTime = now + event.mPeriod; in insertEvent()
135 event.mLastTriggerTime -= event.mPeriod; in insertEvent()
195 firstEvent.mPeriod = firstEvent.mMaxPeriod; in cancel()
197 + firstEvent.mPeriod; in cancel()
263 event.mTriggerTime += event.mPeriod; in execute()
288 int mPeriod; field in SipWakeupTimer.MyEvent
[all …]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/performance/
DThroughputFilter.java34 private int mPeriod = 5; field in ThroughputFilter
87 if ((curTime - mLastTime) >= (mPeriod * 1000)) { in process()
92 mPeriod, in process()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DThroughputFilter.java27 private int mPeriod = 3; field in ThroughputFilter
79 if ((curTime - mLastTime) >= (mPeriod * 1000)) { in onProcess()
/frameworks/av/media/libstagefright/include/media/stagefright/
DVideoFrameSchedulerBase.h70 nsecs_t mPeriod;