/frameworks/av/media/libstagefright/include/ |
D | VideoFrameScheduler.h | 37 nsecs_t schedule(nsecs_t renderTime); 40 nsecs_t getVsyncPeriod(); 61 nsecs_t addSample(nsecs_t time); 62 nsecs_t getPeriod() const; 65 nsecs_t mPeriod; 66 nsecs_t mPhase; 71 nsecs_t mLastTime; // last input time 72 nsecs_t mRefitAt; // next input time to fit at 75 nsecs_t mTimes[kHistorySize]; 79 bool fit(nsecs_t phase, nsecs_t period, size_t numSamples, [all …]
|
D | FrameRenderTracker.h | 54 nsecs_t getRenderTimeNs() const { return mRenderTimeNs; } in getRenderTimeNs() 70 RenderedFrameInfo(int64_t mediaTimeUs, nsecs_t renderTimeNs) in RenderedFrameInfo() 80 nsecs_t mRenderTimeNs; 96 void clear(nsecs_t lastRenderTimeNs); 112 status_t onFrameRendered(int64_t mediaTimeUs, nsecs_t systemNano); 138 nsecs_t mLastRenderTimeNs;
|
/frameworks/native/include/gui/ |
D | FrameTimestamps.h | 57 static constexpr nsecs_t TIMESTAMP_PENDING = -2; 59 static inline bool isValidTimestamp(nsecs_t time) { in isValidTimestamp() 87 nsecs_t postedTime{TIMESTAMP_PENDING}; 88 nsecs_t requestedPresentTime{TIMESTAMP_PENDING}; 89 nsecs_t latchTime{TIMESTAMP_PENDING}; 90 nsecs_t firstRefreshStartTime{TIMESTAMP_PENDING}; 91 nsecs_t lastRefreshStartTime{TIMESTAMP_PENDING}; 92 nsecs_t dequeueReadyTime{TIMESTAMP_PENDING}; 101 nsecs_t deadline{0}; 102 nsecs_t interval{16666667}; [all …]
|
D | Surface.h | 124 status_t setDequeueTimeout(nsecs_t timeout); 131 bool waitForNextFrame(uint64_t lastFrame, nsecs_t timeout); 138 status_t getDisplayRefreshCycleDuration(nsecs_t* outRefreshDuration); 147 nsecs_t* compositeDeadline, nsecs_t* compositeInterval, 148 nsecs_t* compositeToPresentLatency); 152 nsecs_t* outRequestedPresentTime, nsecs_t* outAcquireTime, 153 nsecs_t* outLatchTime, nsecs_t* outFirstRefreshStartTime, 154 nsecs_t* outLastRefreshStartTime, nsecs_t* outGlCompositionDoneTime, 155 nsecs_t* outDisplayPresentTime, nsecs_t* outDequeueReadyTime, 156 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/ |
D | DispSync.h | 52 virtual void onDispSyncEvent(nsecs_t when) = 0; 84 bool addResyncSample(nsecs_t timestamp); 90 void setPeriod(nsecs_t period); 93 nsecs_t getPeriod(); 105 status_t addEventListener(const char* name, nsecs_t phase, 117 nsecs_t computeNextRefresh(int periodOffset) const; 137 nsecs_t mPeriod; 141 nsecs_t mPhase; 145 nsecs_t mReferenceTime; 150 nsecs_t mError; [all …]
|
D | DispSync.cpp | 56 static const nsecs_t kErrorThreshold = 160000000000; // 400 usec squared 74 void updateModel(nsecs_t period, nsecs_t phase, nsecs_t referenceTime) { in updateModel() 95 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in threadLoop() 100 nsecs_t targetTime = 0; in threadLoop() 153 static const nsecs_t kMaxWakeupLatency = us2ns(1500); in threadLoop() 176 status_t addEventListener(const char* name, nsecs_t phase, in addEventListener() 231 nsecs_t mPhase; 232 nsecs_t mLastEventTime; 238 nsecs_t mEventTime; 241 nsecs_t computeNextEventTimeLocked(nsecs_t now) { in computeNextEventTimeLocked() [all …]
|
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;
|
D | SurfaceFlinger.h | 177 status_t postMessageAsync(const sp<MessageBase>& msg, nsecs_t reltime = 0, uint32_t flags = 0); 180 status_t postMessageSync(const sp<MessageBase>& msg, nsecs_t reltime = 0, uint32_t flags = 0); 303 virtual status_t injectVSync(nsecs_t when); 319 virtual void onVSyncReceived(HWComposer* composer, int type, nsecs_t timestamp); 503 void preComposition(nsecs_t refreshStartTime); 504 void postComposition(nsecs_t refreshStartTime); 506 nsecs_t vsyncPhase, nsecs_t vsyncInterval, nsecs_t compositeTime, 509 nsecs_t vsyncPhase, nsecs_t vsyncInterval, 510 nsecs_t compositeToPresentLatency); 614 nsecs_t mBootTime; [all …]
|
/frameworks/av/media/libstagefright/ |
D | VideoFrameScheduler.cpp | 35 static const nsecs_t kNanosIn1s = 1000000000; 61 static const nsecs_t kMaxAllowedFrameSkip = kNanosIn1s; // 1 sec 62 static const nsecs_t kMinPeriod = kNanosIn1s / 120; // 120Hz 63 static const nsecs_t kRefitRefreshPeriod = 10 * kNanosIn1s; // 10 sec 86 mPeriod = (nsecs_t)(1e9 / fps + 0.5); in reset() 102 nsecs_t period = kNanosIn1s / 60; 126 nsecs_t phase, nsecs_t period, size_t numSamplesToUse, in fit() 139 nsecs_t lastTime; in fit() 142 nsecs_t time = mTimes[ix]; in fit() 186 Vector<nsecs_t> deltas; in prime() [all …]
|
/frameworks/native/services/inputflinger/ |
D | InputDispatcher.h | 179 nsecs_t keyRepeatTimeout; 182 nsecs_t keyRepeatDelay; 206 virtual void notifyConfigurationChanged(nsecs_t when) = 0; 210 virtual nsecs_t notifyANR(const sp<InputApplicationHandle>& inputApplicationHandle, 243 virtual void interceptMotionBeforeQueueing(nsecs_t when, uint32_t& policyFlags) = 0; 246 virtual nsecs_t interceptKeyBeforeDispatching(const sp<InputWindowHandle>& inputWindowHandle, 256 virtual void notifySwitch(nsecs_t when, 260 virtual void pokeUserActivity(nsecs_t eventTime, int32_t eventType) = 0; 439 nsecs_t eventTime; 452 EventEntry(int32_t type, nsecs_t eventTime, uint32_t policyFlags); [all …]
|
D | InputReader.h | 94 nsecs_t virtualKeyQuietTime; 112 nsecs_t pointerGestureQuietInterval; 121 nsecs_t pointerGestureTapInterval; 130 nsecs_t pointerGestureTapDragInterval; 139 nsecs_t pointerGestureMultitouchSettleInterval; 325 virtual void vibrate(int32_t deviceId, const nsecs_t* pattern, size_t patternSize, 332 nsecs_t when; 367 virtual void disableVirtualKeysUntil(nsecs_t time) = 0; 368 virtual bool shouldDropVirtualKey(nsecs_t now, 373 virtual void requestTimeoutAtTime(nsecs_t when) = 0; [all …]
|
D | InputListener.h | 39 nsecs_t eventTime; 43 explicit NotifyConfigurationChangedArgs(nsecs_t eventTime); 55 nsecs_t eventTime; 64 nsecs_t downTime; 68 NotifyKeyArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, 70 int32_t metaState, nsecs_t downTime); 82 nsecs_t eventTime; 98 nsecs_t downTime; 102 NotifyMotionArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, 107 float xPrecision, float yPrecision, nsecs_t downTime); [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 | 27 bool TimeLord::vsyncReceived(nsecs_t vsync) { in vsyncReceived() 35 nsecs_t TimeLord::computeFrameTimeNanos() { in computeFrameTimeNanos() 37 nsecs_t now = systemTime(CLOCK_MONOTONIC); in computeFrameTimeNanos() 38 nsecs_t jitterNanos = now - mFrameTimeNanos; in computeFrameTimeNanos() 40 nsecs_t lastFrameOffset = jitterNanos % mFrameIntervalNanos; in computeFrameTimeNanos()
|
/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 …]
|
D | InputTransport.h | 65 nsecs_t eventTime __attribute__((aligned(8))); 74 nsecs_t downTime __attribute__((aligned(8))); 83 nsecs_t eventTime __attribute__((aligned(8))); 92 nsecs_t downTime __attribute__((aligned(8))); 220 nsecs_t downTime, 221 nsecs_t eventTime); 245 nsecs_t downTime, 246 nsecs_t eventTime, 306 nsecs_t frameTime, uint32_t* outSeq, InputEvent** outEvent); 365 nsecs_t eventTime; [all …]
|
/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() { in getTotalDuration() 40 nsecs_t mStartDelay; 41 nsecs_t mDuration; 43 nsecs_t mTotalDuration; 61 nsecs_t durations, int repeatCount, RepeatMode repeatMode); 73 virtual void onPlayTimeChanged(nsecs_t playTime) override;
|
D | Animator.h | 58 ANDROID_API void setDuration(nsecs_t durationInMs); 59 ANDROID_API nsecs_t duration() { return mDuration; } in duration() 60 ANDROID_API void setStartDelay(nsecs_t startDelayInMs); 61 ANDROID_API nsecs_t startDelay() { return mStartDelay; } in startDelay() 87 ANDROID_API nsecs_t getRemainingPlayTime(); 136 virtual void onPlayTimeChanged(nsecs_t playTime) {} in onPlayTimeChanged() 150 nsecs_t mStartTime; 151 nsecs_t mDuration; 152 nsecs_t mStartDelay; 156 nsecs_t mPlayTime; [all …]
|
/frameworks/av/services/mediaanalytics/ |
D | MediaAnalyticsService.h | 70 nsecs_t mNewSetInterval; 89 nsecs_t mStarted; 98 nsecs_t getStarted() { return mStarted;} in getStarted() 99 void setStarted(nsecs_t started) {mStarted = started;} in setStarted() 122 String8 dumpQueue(List<MediaAnalyticsItem*> *, nsecs_t, const char *only); 124 void dumpHeaders(String8 &result, nsecs_t ts_since); 125 void dumpSummaries(String8 &result, nsecs_t ts_since, const char * only); 126 void dumpRecent(String8 &result, nsecs_t ts_since, const char * only);
|
/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/base/native/android/ |
D | choreographer.cpp | 40 nsecs_t dueTime; 53 void postFrameCallbackDelayed(AChoreographer_frameCallback cb, void* data, nsecs_t delay); 70 virtual void dispatchVsync(nsecs_t timestamp, int32_t id, uint32_t count); 71 virtual void dispatchHotplug(nsecs_t timestamp, int32_t id, bool connected); 112 AChoreographer_frameCallback cb, 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() 143 void Choreographer::dispatchVsync(nsecs_t timestamp, int32_t id, uint32_t) { in dispatchVsync() 152 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in dispatchVsync() 163 void Choreographer::dispatchHotplug(nsecs_t, int32_t id, bool connected) { in dispatchHotplug() argument
|
/frameworks/native/include/ui/ |
D | FenceTime.h | 54 explicit Snapshot(nsecs_t signalTime); 73 nsecs_t signalTime{Fence::SIGNAL_TIME_INVALID}; 83 explicit FenceTime(nsecs_t signalTime); 106 nsecs_t getSignalTime(); 109 nsecs_t getCachedSignalTime() const; 114 void signalForTest(nsecs_t signalTime); 139 std::atomic<nsecs_t> mSignalTime{Fence::SIGNAL_TIME_INVALID}; 195 void signalAllForTest(const sp<Fence>& fence, nsecs_t signalTime);
|
D | FrameStats.h | 33 nsecs_t refreshPeriodNano; 40 Vector<nsecs_t> desiredPresentTimesNano; 45 Vector<nsecs_t> actualPresentTimesNano; 53 Vector<nsecs_t> frameReadyTimesNano;
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | ZslProcessor.h | 96 static const nsecs_t kWaitDuration = 10000000; // 10 ms 97 nsecs_t mLatestClearedBufferTimestamp; 156 nsecs_t getCandidateTimestampLocked(size_t* metadataIdx) const; 158 status_t enqueueInputBufferByTimestamp( nsecs_t timestamp, 159 nsecs_t* actualTimestamp); 160 status_t clearInputRingBufferLocked(nsecs_t* latestTimestamp);
|