/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | VSyncPredictorTest.cpp | 104 nsecs_t mPeriod = 1000; member 105 ftl::NonNull<DisplayModePtr> mMode = displayMode(mPeriod); 120 EXPECT_THAT(model.slope, Eq(mPeriod)); in TEST_F() 133 tracker.addVsyncTimestamp(mNow += mPeriod); in TEST_F() 140 tracker.addVsyncTimestamp(mNow += mPeriod); in TEST_F() 144 auto const changedPeriod = mPeriod * 2; in TEST_F() 159 EXPECT_THAT(tracker.nextAnticipatedVSyncTimeFrom(mNow), Eq(last + mPeriod)); in TEST_F() 160 mNow += mPeriod - bias; in TEST_F() 166 EXPECT_THAT(tracker.nextAnticipatedVSyncTimeFrom(mNow), Eq(mNow + mPeriod - bias)); in TEST_F() 167 EXPECT_THAT(tracker.nextAnticipatedVSyncTimeFrom(mNow + 100), Eq(mNow + mPeriod - bias)); in TEST_F() [all …]
|
D | VSyncDispatchTimerQueueTest.cpp | 48 MockVSyncTracker(nsecs_t period) : mPeriod{period} { in MockVSyncTracker() 57 if (timePoint % mPeriod == 0) { in nextVSyncTime() 60 return (timePoint - (timePoint % mPeriod) + mPeriod); in nextVSyncTime() 63 nsecs_t getCurrentPeriod() const { return mPeriod; } in getCurrentPeriod() 66 nsecs_t const mPeriod; member in android::scheduler::MockVSyncTracker 228 nsecs_t const mPeriod = 1000; member in android::scheduler::VSyncDispatchTimerQueueTest 231 std::make_shared<NiceMock<MockVSyncTracker>>(mPeriod); 256 auto intended = mPeriod - 230; in TEST_F() 270 EXPECT_THAT(cb.mCalls[0], Eq(mPeriod)); in TEST_F() 274 auto intended = mPeriod - 230; in TEST_F() [all …]
|
D | VSyncDispatchRealtimeTest.cpp | 39 StubTracker(nsecs_t period) : mPeriod(period) {} in StubTracker() 45 return mPeriod; in currentPeriod() 61 nsecs_t mPeriod; member in android::scheduler::StubTracker 69 auto const floor = timePoint % mPeriod; in nextAnticipatedVSyncTimeFrom() 73 return timePoint - floor + mPeriod; in nextAnticipatedVSyncTimeFrom() 84 auto const floor = (normalized_to_base) % mPeriod; in nextAnticipatedVSyncTimeFrom() 88 return normalized_to_base - floor + mPeriod + mBase; in nextAnticipatedVSyncTimeFrom() 93 mPeriod = interval; in set_interval()
|
/frameworks/av/media/libstagefright/ |
D | VideoFrameSchedulerBase.cpp | 59 : 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 …]
|
/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
D | SipWakeupTimer.java | 96 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/ |
D | ThroughputFilter.java | 34 private int mPeriod = 5; field in ThroughputFilter 87 if ((curTime - mLastTime) >= (mPeriod * 1000)) { in process() 92 mPeriod, in process()
|
/frameworks/native/services/surfaceflinger/Scheduler/include/scheduler/ |
D | Fps.h | 56 constexpr Period getPeriod() const { return Period::fromNs(mPeriod); } in getPeriod() 57 constexpr nsecs_t getPeriodNsecs() const { return mPeriod; } in getPeriodNsecs() 60 constexpr Fps(float frequency, nsecs_t period) : mFrequency(frequency), mPeriod(period) {} in Fps() 63 nsecs_t mPeriod = 0; variable
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | ThroughputFilter.java | 27 private int mPeriod = 3; field in ThroughputFilter 79 if ((curTime - mLastTime) >= (mPeriod * 1000)) { in onProcess()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/ |
D | SimpleMirrorWindowControl.java | 186 private final long mPeriod; field in SimpleMirrorWindowControl.MoveWindowTask 195 mPeriod = period; in MoveWindowTask() 211 mHandler.postDelayed(this, mPeriod); in schedule()
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | VideoFrameSchedulerBase.h | 70 nsecs_t mPeriod;
|