/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | VideoFrameSchedulerBase.h | 35 nsecs_t schedule(nsecs_t renderTime); 38 nsecs_t getVsyncPeriod(); 46 static const nsecs_t kNanosIn1s = 1000000000; 47 static const nsecs_t kDefaultVsyncPeriod = kNanosIn1s / 60; // 60Hz 48 static const nsecs_t kVsyncRefreshPeriod = kNanosIn1s; // 1 sec 53 nsecs_t mVsyncTime; // vsync timing from display 54 nsecs_t mVsyncPeriod; 55 nsecs_t mVsyncRefreshAt; // next time to refresh timing info 66 nsecs_t addSample(nsecs_t time); 67 nsecs_t getPeriod() const; [all …]
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | DispSync.h | 39 virtual void onDispSyncEvent(nsecs_t when) = 0; 52 virtual bool addResyncSample(nsecs_t timestamp, bool* periodChanged) = 0; 54 virtual void setPeriod(nsecs_t period) = 0; 55 virtual nsecs_t getPeriod() = 0; 57 virtual status_t addEventListener(const char* name, nsecs_t phase, Callback* callback, 58 nsecs_t lastCallbackTime) = 0; 59 virtual status_t removeEventListener(Callback* callback, nsecs_t* outLastCallback) = 0; 60 virtual status_t changePhaseOffset(Callback* callback, nsecs_t phase) = 0; 61 virtual nsecs_t computeNextRefresh(int periodOffset) const = 0; 63 virtual nsecs_t expectedPresentTime() = 0; [all …]
|
D | DispSync.cpp | 58 static const nsecs_t kErrorThreshold = 160000000000; // 400 usec squared 77 void updateModel(nsecs_t period, nsecs_t phase, nsecs_t referenceTime) { in updateModel() 91 const nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in updateModel() 92 const nsecs_t baseTime = now - mReferenceTime; in updateModel() 93 const nsecs_t numOldPeriods = baseTime / mPeriod; in updateModel() 127 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in threadLoop() 132 nsecs_t targetTime = 0; in threadLoop() 182 static const nsecs_t kMaxWakeupLatency = us2ns(1500); in threadLoop() 204 status_t addEventListener(const char* name, nsecs_t phase, DispSync::Callback* callback, in addEventListener() 205 nsecs_t lastCallbackTime) { in addEventListener() [all …]
|
D | LayerInfo.h | 47 explicit RefreshRateHistory(nsecs_t minRefreshDuration) in RefreshRateHistory() 49 void insertRefreshRate(nsecs_t refreshRate) { in insertRefreshRate() 57 nsecs_t refreshDuration = mMinRefreshDuration; in getRefreshRateAvg() 67 std::deque<nsecs_t> mElements; 69 const nsecs_t mMinRefreshDuration; 79 void insertPresentTime(nsecs_t presentTime) { in insertPresentTime() 102 std::deque<nsecs_t> mElements; 116 void setLastPresentTime(nsecs_t lastPresentTime); 152 nsecs_t getLastUpdatedTime() { in getLastUpdatedTime() 167 const nsecs_t mMinRefreshDuration; [all …]
|
D | PhaseOffsets.h | 43 virtual nsecs_t getCurrentAppOffset() = 0; 44 virtual nsecs_t getCurrentSfOffset() = 0; 49 virtual nsecs_t getOffsetThresholdForNextVsync() const = 0; 58 nsecs_t getCurrentAppOffset() override; 59 nsecs_t getCurrentSfOffset() override; 76 nsecs_t getOffsetThresholdForNextVsync() const override { return mOffsetThresholdForNextVsync; } in getOffsetThresholdForNextVsync() 90 nsecs_t mOffsetThresholdForNextVsync;
|
/frameworks/av/media/libstagefright/ |
D | VideoFrameScheduler2.cpp | 39 static void getVsyncOffset(nsecs_t* appVsyncOffsetPtr, nsecs_t* sfVsyncOffsetPtr); 49 nsecs_t getVsyncPeriod(); 50 nsecs_t getVsyncTime(nsecs_t periodOffset); 51 void addSample(nsecs_t timestamp); 58 nsecs_t mReferenceTime; 59 nsecs_t mPhase; 60 nsecs_t mPeriod; 61 nsecs_t mTimestampSamples[kMaxSamples]; 78 nsecs_t VsyncTracker::getVsyncPeriod() { in getVsyncPeriod() 83 nsecs_t VsyncTracker::getVsyncTime(nsecs_t periodOffset) { in getVsyncTime() [all …]
|
D | VideoFrameSchedulerBase.cpp | 54 static const nsecs_t kMaxAllowedFrameSkip = VideoFrameSchedulerBase::kNanosIn1s; // 1 sec 55 static const nsecs_t kMinPeriod = VideoFrameSchedulerBase::kNanosIn1s / 120; // 120Hz 56 static const nsecs_t kRefitRefreshPeriod = 10 * VideoFrameSchedulerBase::kNanosIn1s; // 10 sec 79 mPeriod = (nsecs_t)(1e9 / fps + 0.5); in reset() 95 nsecs_t period = VideoFrameSchedulerBase::kNanosIn1s / 60; 123 nsecs_t phase, nsecs_t period, size_t numSamplesToUse, in fit() 141 nsecs_t lastTime; in fit() 144 nsecs_t time = mTimes[ix]; in fit() 188 Vector<nsecs_t> deltas; in prime() 189 nsecs_t lastTime, firstTime; in prime() [all …]
|
/frameworks/native/libs/gui/include/gui/ |
D | FrameTimestamps.h | 56 static constexpr nsecs_t TIMESTAMP_PENDING = -2; 58 static inline bool isValidTimestamp(nsecs_t time) { in isValidTimestamp() 86 nsecs_t postedTime{TIMESTAMP_PENDING}; 87 nsecs_t requestedPresentTime{TIMESTAMP_PENDING}; 88 nsecs_t latchTime{TIMESTAMP_PENDING}; 89 nsecs_t firstRefreshStartTime{TIMESTAMP_PENDING}; 90 nsecs_t lastRefreshStartTime{TIMESTAMP_PENDING}; 91 nsecs_t dequeueReadyTime{TIMESTAMP_PENDING}; 100 nsecs_t deadline{0}; 101 nsecs_t interval{16666667}; [all …]
|
D | Surface.h | 126 status_t setDequeueTimeout(nsecs_t timeout); 133 bool waitForNextFrame(uint64_t lastFrame, nsecs_t timeout); 140 status_t getDisplayRefreshCycleDuration(nsecs_t* outRefreshDuration); 149 nsecs_t* compositeDeadline, nsecs_t* compositeInterval, 150 nsecs_t* compositeToPresentLatency); 154 nsecs_t* outRequestedPresentTime, nsecs_t* outAcquireTime, 155 nsecs_t* outLatchTime, nsecs_t* outFirstRefreshStartTime, 156 nsecs_t* outLastRefreshStartTime, nsecs_t* outGlCompositionDoneTime, 157 nsecs_t* outDisplayPresentTime, nsecs_t* outDequeueReadyTime, 158 nsecs_t* outReleaseTime); [all …]
|
D | OccupancyTracker.h | 48 Segment(nsecs_t _totalTime, size_t _numFrames, float _occupancyAverage, in Segment() 59 nsecs_t totalTime; 77 static constexpr nsecs_t NEW_SEGMENT_DELAY = ms2ns(100); 87 nsecs_t totalTime; 89 std::unordered_map<size_t, nsecs_t> mOccupancyTimes; 98 nsecs_t mLastOccupancyChangeTime;
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/ |
D | MockDispSync.h | 34 MOCK_METHOD2(addResyncSample, bool(nsecs_t, bool*)); 36 MOCK_METHOD1(setPeriod, void(nsecs_t)); 37 MOCK_METHOD0(getPeriod, nsecs_t()); 39 MOCK_CONST_METHOD1(computeNextRefresh, nsecs_t(int)); 41 MOCK_METHOD0(expectedPresentTime, nsecs_t()); 45 status_t addEventListener(const char* name, nsecs_t phase, Callback* callback, 46 nsecs_t lastCallbackTime) override; 47 status_t removeEventListener(Callback* callback, nsecs_t* outLastCallback) override; 48 status_t changePhaseOffset(Callback* callback, nsecs_t phase) override; 50 nsecs_t getCallbackPhase() { return mCallback.phase; } in getCallbackPhase() [all …]
|
D | MockTimeStats.h | 37 MOCK_METHOD4(setPostTime, void(int32_t, uint64_t, const std::string&, nsecs_t)); 38 MOCK_METHOD3(setLatchTime, void(int32_t, uint64_t, nsecs_t)); 39 MOCK_METHOD3(setDesiredTime, void(int32_t, uint64_t, nsecs_t)); 40 MOCK_METHOD3(setAcquireTime, void(int32_t, uint64_t, nsecs_t)); 42 MOCK_METHOD3(setPresentTime, void(int32_t, uint64_t, nsecs_t)); 47 MOCK_METHOD2(recordRefreshRate, void(uint32_t, nsecs_t));
|
/frameworks/native/services/surfaceflinger/TimeStats/ |
D | TimeStats.h | 51 nsecs_t postTime) = 0; 52 virtual void setLatchTime(int32_t layerID, uint64_t frameNumber, nsecs_t latchTime) = 0; 53 virtual void setDesiredTime(int32_t layerID, uint64_t frameNumber, nsecs_t desiredTime) = 0; 54 virtual void setAcquireTime(int32_t layerID, uint64_t frameNumber, nsecs_t acquireTime) = 0; 57 virtual void setPresentTime(int32_t layerID, uint64_t frameNumber, nsecs_t presentTime) = 0; 67 virtual void recordRefreshRate(uint32_t fps, nsecs_t duration) = 0; 76 nsecs_t postTime = 0; 77 nsecs_t latchTime = 0; 78 nsecs_t acquireTime = 0; 79 nsecs_t desiredTime = 0; [all …]
|
/frameworks/native/services/inputflinger/ |
D | InputReader.h | 49 nsecs_t when; 84 virtual void disableVirtualKeysUntil(nsecs_t time) = 0; 85 virtual bool shouldDropVirtualKey(nsecs_t now, 90 virtual void requestTimeoutAtTime(nsecs_t when) = 0; 145 virtual void vibrate(int32_t deviceId, const nsecs_t* pattern, size_t patternSize, 163 virtual void disableVirtualKeysUntil(nsecs_t time); 164 virtual bool shouldDropVirtualKey(nsecs_t now, 167 virtual void requestTimeoutAtTime(nsecs_t when); 202 void addDeviceLocked(nsecs_t when, int32_t deviceId); 203 void removeDeviceLocked(nsecs_t when, int32_t deviceId); [all …]
|
D | InputDispatcher.h | 184 nsecs_t keyRepeatTimeout; 187 nsecs_t keyRepeatDelay; 211 virtual void notifyConfigurationChanged(nsecs_t when) = 0; 215 virtual nsecs_t notifyANR(const sp<InputApplicationHandle>& inputApplicationHandle, 249 virtual void interceptMotionBeforeQueueing(const int32_t displayId, nsecs_t when, 253 virtual nsecs_t interceptKeyBeforeDispatching(const sp<IBinder>& token, 263 virtual void notifySwitch(nsecs_t when, 267 virtual void pokeUserActivity(nsecs_t eventTime, int32_t eventType) = 0; 489 nsecs_t eventTime; 502 EventEntry(uint32_t sequenceNum, int32_t type, nsecs_t eventTime, uint32_t policyFlags); [all …]
|
/frameworks/native/include/input/ |
D | VelocityTracker.h | 41 nsecs_t time; 83 void addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions); 107 nsecs_t mLastEventTime; 130 virtual void addMovement(nsecs_t eventTime, BitSet32 idBits, 162 virtual void addMovement(nsecs_t eventTime, BitSet32 idBits, 170 static const nsecs_t HORIZON = 100 * 1000000; // 100 ms 176 nsecs_t eventTime; 205 virtual void addMovement(nsecs_t eventTime, BitSet32 idBits, 212 nsecs_t updateTime; 223 void initState(State& state, nsecs_t eventTime, float xpos, float ypos) const; [all …]
|
/frameworks/base/libs/hwui/renderthread/ |
D | TimeLord.h | 31 void setFrameInterval(nsecs_t intervalNanos) { mFrameIntervalNanos = intervalNanos; } in setFrameInterval() 32 nsecs_t frameIntervalNanos() const { return mFrameIntervalNanos; } in frameIntervalNanos() 35 bool vsyncReceived(nsecs_t vsync); 36 nsecs_t latestVsync() { return mFrameTimeNanos; } in latestVsync() 37 nsecs_t computeFrameTimeNanos(); 45 nsecs_t mFrameIntervalNanos; 46 nsecs_t mFrameTimeNanos;
|
D | TimeLord.cpp | 24 bool TimeLord::vsyncReceived(nsecs_t vsync) { in vsyncReceived() 32 nsecs_t TimeLord::computeFrameTimeNanos() { in computeFrameTimeNanos() 34 nsecs_t now = systemTime(CLOCK_MONOTONIC); in computeFrameTimeNanos() 35 nsecs_t jitterNanos = now - mFrameTimeNanos; in computeFrameTimeNanos() 37 nsecs_t lastFrameOffset = jitterNanos % mFrameIntervalNanos; in computeFrameTimeNanos()
|
/frameworks/native/services/surfaceflinger/ |
D | FrameTracker.h | 54 void setDesiredPresentTime(nsecs_t desiredPresentTime); 60 void setFrameReadyTime(nsecs_t readyTime); 68 void setActualPresentTime(nsecs_t displayTime); 77 void setDisplayRefreshPeriod(nsecs_t displayPeriod); 101 nsecs_t desiredPresentTime; 102 nsecs_t frameReadyTime; 103 nsecs_t actualPresentTime; 157 nsecs_t mDisplayPeriod;
|
/frameworks/base/libs/hwui/ |
D | PropertyValuesAnimatorSet.h | 28 PropertyAnimator(PropertyValuesHolder* holder, Interpolator* interpolator, nsecs_t startDelay, 29 nsecs_t duration, int repeatCount, RepeatMode repeatMode); 30 void setCurrentPlayTime(nsecs_t playTime); 31 nsecs_t getTotalDuration() { return mTotalDuration; } in getTotalDuration() 38 nsecs_t mStartDelay; 39 nsecs_t mDuration; 41 nsecs_t mTotalDuration; 58 Interpolator* interpolators, int64_t startDelays, nsecs_t durations, 71 virtual void onPlayTimeChanged(nsecs_t playTime) override;
|
D | JankTracker.cpp | 42 std::function<int64_t(nsecs_t)> computeThreadshold; 48 Comparison{JankType::kMissedVsync, [](nsecs_t) { return 1; }, FrameInfoIndex::IntendedVsync, in __anonf38a02a80102() 52 [](nsecs_t frameInterval) { return static_cast<int64_t>(.5 * frameInterval); }, in __anonf38a02a80202() 56 [](nsecs_t frameInterval) { return static_cast<int64_t>(.2 * frameInterval); }, in __anonf38a02a80302() 60 [](nsecs_t frameInterval) { return static_cast<int64_t>(.75 * frameInterval); }, in __anonf38a02a80402() 84 nsecs_t frameIntervalNanos = static_cast<nsecs_t>(1_s / displayInfo.fps); in JankTracker() 85 nsecs_t sfOffset = frameIntervalNanos - (displayInfo.presentationDeadline - 1_ms); in JankTracker() 86 nsecs_t offsetDelta = sfOffset - displayInfo.appVsyncOffset; in JankTracker() 101 void JankTracker::setFrameInterval(nsecs_t frameInterval) { in setFrameInterval() 113 nsecs_t expectedDequeueDuration = mDequeueTimeForgiveness + frame[FrameInfoIndex::Vsync] - in finishFrame() [all …]
|
/frameworks/base/native/android/ |
D | choreographer.cpp | 42 nsecs_t dueTime; 55 AChoreographer_frameCallback64 cb64, void* data, nsecs_t delay); 72 void dispatchVsync(nsecs_t timestamp, PhysicalDisplayId displayId, uint32_t count) override; 73 void dispatchHotplug(nsecs_t timestamp, PhysicalDisplayId displayId, bool connected) override; 74 void dispatchConfigChanged(nsecs_t timestamp, PhysicalDisplayId displayId, 112 … AChoreographer_frameCallback cb, AChoreographer_frameCallback64 cb64, void* data, nsecs_t delay) { in postFrameCallbackDelayed() 113 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in postFrameCallbackDelayed() 134 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in scheduleCallbacks() 145 void Choreographer::dispatchVsync(nsecs_t timestamp, PhysicalDisplayId, uint32_t) { in dispatchVsync() 149 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in dispatchVsync() [all …]
|
/frameworks/native/libs/ui/ |
D | FrameStats.cpp | 26 const size_t timestampSize = sizeof(nsecs_t); in getFlattenedSize() 39 nsecs_t* timestamps = reinterpret_cast<nsecs_t*>(buffer); in flatten() 40 const size_t timestampSize = sizeof(nsecs_t); in flatten() 58 const size_t timestampSize = sizeof(nsecs_t); in unflatten() 64 nsecs_t const* timestamps = reinterpret_cast<nsecs_t const*>(buffer); in unflatten()
|
/frameworks/av/services/mediaanalytics/ |
D | MediaAnalyticsService.h | 71 nsecs_t mMaxRecordAgeNs; 78 nsecs_t mNewSetInterval; 95 String8 dumpQueue(nsecs_t, const char *only); 97 void dumpHeaders(String8 &result, nsecs_t ts_since); 98 void dumpSummaries(String8 &result, nsecs_t ts_since, const char * only); 99 void dumpRecent(String8 &result, nsecs_t ts_since, const char * only); 107 nsecs_t expiration;
|
/frameworks/native/services/inputflinger/include/ |
D | InputListener.h | 35 nsecs_t eventTime; 39 inline explicit NotifyArgs(uint32_t sequenceNum, nsecs_t eventTime) : in NotifyArgs() 55 NotifyConfigurationChangedArgs(uint32_t sequenceNum, nsecs_t eventTime); 76 nsecs_t downTime; 80 NotifyKeyArgs(uint32_t sequenceNum, nsecs_t eventTime, int32_t deviceId, uint32_t source, 82 int32_t scanCode, int32_t metaState, nsecs_t downTime); 122 nsecs_t downTime; 127 NotifyMotionArgs(uint32_t sequenceNum, nsecs_t eventTime, int32_t deviceId, uint32_t source, 133 float xPrecision, float yPrecision, nsecs_t downTime, 154 NotifySwitchArgs(uint32_t sequenceNum, nsecs_t eventTime, uint32_t policyFlags, [all …]
|