Home
last modified time | relevance | path

Searched refs:nsecs_t (Results 1 – 25 of 218) sorted by relevance

123456789

/frameworks/av/include/media/stagefright/
DVideoFrameScheduler.h37 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 …]
DFrameRenderTracker.h55 nsecs_t getRenderTimeNs() const { return mRenderTimeNs; } in getRenderTimeNs()
70 Info(int64_t mediaTimeUs, nsecs_t renderTimeNs) in Info()
80 nsecs_t mRenderTimeNs;
93 void clear(nsecs_t lastRenderTimeNs);
109 status_t onFrameRendered(int64_t mediaTimeUs, nsecs_t systemNano);
135 nsecs_t mLastRenderTimeNs;
/frameworks/native/services/surfaceflinger/
DDispSync.cpp56 static const nsecs_t kErrorThreshold = 160000000000; // 400 usec squared
78 void updateModel(nsecs_t period, nsecs_t phase, nsecs_t referenceTime) { in updateModel()
99 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in threadLoop()
104 nsecs_t targetTime = 0; in threadLoop()
157 static const nsecs_t kMaxWakeupLatency = us2ns(1500); in threadLoop()
180 status_t addEventListener(const char* name, nsecs_t phase, in addEventListener()
234 nsecs_t mPhase;
235 nsecs_t mLastEventTime;
241 nsecs_t mEventTime;
244 nsecs_t computeNextEventTimeLocked(nsecs_t now) { in computeNextEventTimeLocked()
[all …]
DDispSync.h61 virtual void onDispSyncEvent(nsecs_t when) = 0;
93 bool addResyncSample(nsecs_t timestamp);
99 void setPeriod(nsecs_t period);
102 nsecs_t getPeriod();
114 status_t addEventListener(const char* name, nsecs_t phase,
126 nsecs_t computeNextRefresh(int periodOffset) const;
146 nsecs_t mPeriod;
150 nsecs_t mPhase;
154 nsecs_t mReferenceTime;
159 nsecs_t mError;
[all …]
DFenceTracker.h41 void addFrame(nsecs_t refreshStartTime, sp<Fence> retireFence,
51 nsecs_t postedTime; // time when buffer was queued
52 nsecs_t acquireTime; // timestamp from the acquire fence
53 nsecs_t releaseTime; // timestamp from the release fence
58 bool isGlesComposition, nsecs_t postedTime, in LayerRecord()
59 nsecs_t acquireTime, nsecs_t releaseTime, in LayerRecord()
77 nsecs_t refreshStartTime;
79 nsecs_t retireTime;
81 nsecs_t glesCompositionDoneTime;
DFrameTracker.h53 void setDesiredPresentTime(nsecs_t desiredPresentTime);
59 void setFrameReadyTime(nsecs_t readyTime);
67 void setActualPresentTime(nsecs_t displayTime);
76 void setDisplayRefreshPeriod(nsecs_t displayPeriod);
100 nsecs_t desiredPresentTime;
101 nsecs_t frameReadyTime;
102 nsecs_t actualPresentTime;
156 nsecs_t mDisplayPeriod;
DFrameTracker.cpp41 void FrameTracker::setDesiredPresentTime(nsecs_t presentTime) { in setDesiredPresentTime()
46 void FrameTracker::setFrameReadyTime(nsecs_t readyTime) { in setFrameReadyTime()
57 void FrameTracker::setActualPresentTime(nsecs_t presentTime) { in setActualPresentTime()
68 void FrameTracker::setDisplayRefreshPeriod(nsecs_t displayPeriod) { in setDisplayRefreshPeriod()
134 nsecs_t desiredPresentTimeNano = mFrameRecords[index].desiredPresentTime; in getStats()
137 nsecs_t actualPresentTimeNano = mFrameRecords[index].actualPresentTime; in getStats()
140 nsecs_t frameReadyTimeNano = mFrameRecords[index].frameReadyTime; in getStats()
193 nsecs_t newPresentTime = in updateStatsLocked()
195 nsecs_t prevPresentTime = in updateStatsLocked()
198 nsecs_t duration = newPresentTime - prevPresentTime; in updateStatsLocked()
/frameworks/av/media/libstagefright/
DVideoFrameScheduler.cpp35 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/
DInputDispatcher.h179 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 …]
DInputReader.h154 nsecs_t virtualKeyQuietTime;
172 nsecs_t pointerGestureQuietInterval;
181 nsecs_t pointerGestureTapInterval;
190 nsecs_t pointerGestureTapDragInterval;
199 nsecs_t pointerGestureMultitouchSettleInterval;
375 virtual void vibrate(int32_t deviceId, const nsecs_t* pattern, size_t patternSize,
382 nsecs_t when;
417 virtual void disableVirtualKeysUntil(nsecs_t time) = 0;
418 virtual bool shouldDropVirtualKey(nsecs_t now,
423 virtual void requestTimeoutAtTime(nsecs_t when) = 0;
[all …]
DInputListener.h39 nsecs_t eventTime;
43 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/native/include/input/
DVelocityTracker.h41 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 …]
DInputTransport.h65 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 …]
DInput.h336 inline nsecs_t getDownTime() const { return mDownTime; } in getDownTime()
338 inline nsecs_t getEventTime() const { return mEventTime; } in getEventTime()
352 nsecs_t downTime,
353 nsecs_t eventTime);
363 nsecs_t mDownTime;
364 nsecs_t mEventTime;
415 inline nsecs_t getDownTime() const { return mDownTime; } in getDownTime()
417 inline void setDownTime(nsecs_t downTime) { mDownTime = downTime; } in setDownTime()
433 inline nsecs_t getEventTime() const { return mSampleEventTimes[getHistorySize()]; } in getEventTime()
487 inline nsecs_t getHistoricalEventTime(size_t historicalIndex) const { in getHistoricalEventTime()
[all …]
/frameworks/base/libs/hwui/renderthread/
DTimeLord.h31 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;
DTimeLord.cpp27 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()
DRenderThread.cpp42 static const nsecs_t DISPATCH_FRAME_CALLBACKS_DELAY = milliseconds_to_nanoseconds(4);
188 nsecs_t frameIntervalNanos = static_cast<nsecs_t>(1000000000 / mDisplayInfo.fps); in initThreadLocals()
214 static nsecs_t latestVsyncEvent(DisplayEventReceiver* receiver) { in latestVsyncEvent()
216 nsecs_t latest = 0; in latestVsyncEvent()
236 nsecs_t vsyncEvent = latestVsyncEvent(mDisplayEventReceiver); in drainDisplayEventQueue()
242 nsecs_t runAt = (vsyncEvent + DISPATCH_FRAME_CALLBACKS_DELAY); in drainDisplayEventQueue()
284 nsecs_t nextWakeup; in threadLoop()
293 nsecs_t timeoutNanos = nextWakeup - systemTime(SYSTEM_TIME_MONOTONIC); in threadLoop()
348 void RenderThread::queueAt(RenderTask* task, nsecs_t runAtNs) { in queueAt()
375 RenderTask* RenderThread::nextTask(nsecs_t* nextWakeup) { in nextTask()
/frameworks/base/libs/hwui/
DPropertyValuesAnimatorSet.h28 PropertyAnimator(PropertyValuesHolder* holder, Interpolator* interpolator, nsecs_t startDelay,
29 nsecs_t duration, int repeatCount);
30 void setCurrentPlayTime(nsecs_t playTime);
31 nsecs_t getTotalDuration() { in getTotalDuration()
39 nsecs_t mStartDelay;
40 nsecs_t mDuration;
42 nsecs_t mTotalDuration;
56 nsecs_t durations, int repeatCount);
62 virtual void onPlayTimeChanged(nsecs_t playTime) override;
DPropertyValuesAnimatorSet.cpp26 Interpolator* interpolator, nsecs_t startDelay, in addPropertyAnimator()
27 nsecs_t duration, int repeatCount) { in addPropertyAnimator()
57 void PropertyValuesAnimatorSet::onPlayTimeChanged(nsecs_t playTime) { in onPlayTimeChanged()
110 nsecs_t startDelay, nsecs_t duration, int repeatCount) in PropertyAnimator()
118 mTotalDuration = ((nsecs_t) mRepeatCount + 1) * mDuration + mStartDelay; in PropertyAnimator()
121 void PropertyAnimator::setCurrentPlayTime(nsecs_t playTime) { in setCurrentPlayTime()
123 nsecs_t currentIterationPlayTime = (playTime - mStartDelay) % mDuration; in setCurrentPlayTime()
DAnimator.h52 ANDROID_API void setDuration(nsecs_t durationInMs);
53 ANDROID_API nsecs_t duration() { return mDuration; } in duration()
54 ANDROID_API void setStartDelay(nsecs_t startDelayInMs);
55 ANDROID_API nsecs_t startDelay() { return mStartDelay; } in startDelay()
126 virtual void onPlayTimeChanged(nsecs_t playTime) {} in onPlayTimeChanged()
140 nsecs_t mStartTime;
141 nsecs_t mDuration;
142 nsecs_t mStartDelay;
146 nsecs_t mPlayTime;
161 bool updatePlayTime(nsecs_t playTime);
/frameworks/native/libs/ui/
DFrameStats.cpp26 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/
Dchoreographer.cpp40 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/av/services/camera/libcameraservice/device3/
DCamera3ZslStream.h57 status_t enqueueInputBufferByTimestamp(nsecs_t timestamp,
58 nsecs_t* actualTimestamp);
65 status_t clearInputRingBuffer(nsecs_t* latestTimestamp);
96 nsecs_t timestamp,
104 status_t clearInputRingBufferLocked(nsecs_t* latestTimestamp);
/frameworks/native/include/ui/
DFrameStats.h33 nsecs_t refreshPeriodNano;
40 Vector<nsecs_t> desiredPresentTimesNano;
45 Vector<nsecs_t> actualPresentTimesNano;
53 Vector<nsecs_t> frameReadyTimesNano;
/frameworks/native/libs/gui/
DISensorEventConnection.cpp58 virtual status_t enableDisable(int handle, bool enabled, nsecs_t samplingPeriodNs, in enableDisable()
59 nsecs_t maxBatchReportLatencyNs, int reservedFlags) in enableDisable()
72 virtual status_t setEventRate(int handle, nsecs_t ns) in setEventRate()
112 nsecs_t samplingPeriodNs = data.readInt64(); in onTransact()
113 nsecs_t maxBatchReportLatencyNs = data.readInt64(); in onTransact()
123 nsecs_t ns = data.readInt64(); in onTransact()

123456789