Home
last modified time | relevance | path

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

1234567891011

/frameworks/av/media/libstagefright/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.h54 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/libs/gui/include/gui/
DFrameTimestamps.h57 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 …]
DSurface.h124 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 …]
DOccupancyTracker.h48 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/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()
144 nsecs_t lastTime; in fit()
147 nsecs_t time = mTimes[ix]; in fit()
191 Vector<nsecs_t> deltas; in prime()
[all …]
/frameworks/native/services/surfaceflinger/
DDispSync.cpp56 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 …]
DDispSync.h56 virtual void onDispSyncEvent(nsecs_t when) = 0;
90 bool addResyncSample(nsecs_t timestamp);
96 void setPeriod(nsecs_t period);
99 nsecs_t getPeriod();
111 status_t addEventListener(const char* name, nsecs_t phase,
123 nsecs_t computeNextRefresh(int periodOffset) const;
144 nsecs_t mPeriod;
148 nsecs_t mPhase;
152 nsecs_t mReferenceTime;
157 nsecs_t mError;
[all …]
DFrameTracker.h54 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;
DSurfaceFlinger.h188 status_t postMessageAsync(const sp<MessageBase>& msg, nsecs_t reltime = 0, uint32_t flags = 0);
191 status_t postMessageSync(const sp<MessageBase>& msg, nsecs_t reltime = 0, uint32_t flags = 0);
315 virtual status_t injectVSync(nsecs_t when);
339 void onVSyncReceived(HWComposer* composer, int type, nsecs_t timestamp) override;
549 void preComposition(nsecs_t refreshStartTime);
550 void postComposition(nsecs_t refreshStartTime);
552 nsecs_t vsyncPhase, nsecs_t vsyncInterval, nsecs_t compositeTime,
555 nsecs_t vsyncPhase, nsecs_t vsyncInterval,
556 nsecs_t compositeToPresentLatency);
677 nsecs_t mBootTime;
[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.h100 nsecs_t virtualKeyQuietTime;
118 nsecs_t pointerGestureQuietInterval;
127 nsecs_t pointerGestureTapInterval;
136 nsecs_t pointerGestureTapDragInterval;
145 nsecs_t pointerGestureMultitouchSettleInterval;
337 virtual void vibrate(int32_t deviceId, const nsecs_t* pattern, size_t patternSize,
344 nsecs_t when;
379 virtual void disableVirtualKeysUntil(nsecs_t time) = 0;
380 virtual bool shouldDropVirtualKey(nsecs_t now,
385 virtual void requestTimeoutAtTime(nsecs_t when) = 0;
[all …]
DInputListener.h39 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/
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()
/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.h73 nsecs_t eventTime __attribute__((aligned(8)));
84 nsecs_t downTime __attribute__((aligned(8)));
94 nsecs_t eventTime __attribute__((aligned(8)));
105 nsecs_t downTime __attribute__((aligned(8)));
235 nsecs_t downTime,
236 nsecs_t eventTime);
261 nsecs_t downTime,
262 nsecs_t eventTime,
322 nsecs_t frameTime, uint32_t* outSeq, InputEvent** outEvent, int32_t* displayId);
381 nsecs_t eventTime;
[all …]
/frameworks/av/services/mediaanalytics/
DMediaAnalyticsService.h71 nsecs_t mMaxRecordAgeNs;
76 nsecs_t mNewSetInterval;
95 nsecs_t mStarted;
104 nsecs_t getStarted() { return mStarted;} in getStarted()
105 void setStarted(nsecs_t started) {mStarted = started;} in setStarted()
129 String8 dumpQueue(List<MediaAnalyticsItem*> *, nsecs_t, const char *only);
131 void dumpHeaders(String8 &result, nsecs_t ts_since);
132 void dumpSummaries(String8 &result, nsecs_t ts_since, const char * only);
133 void dumpRecent(String8 &result, nsecs_t ts_since, const char * only);
141 nsecs_t expiration;
/frameworks/base/libs/hwui/
DPropertyValuesAnimatorSet.h28 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;
DAnimator.h58 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/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/native/libs/ui/include/ui/
DFenceTime.h54 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);
DFrameStats.h33 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/
DZslProcessor.h96 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);

1234567891011