Home
last modified time | relevance | path

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

1234

/aosp14/system/core/libutils/include/utils/
H A DTimers.h34 static CONSTEXPR inline nsecs_t seconds_to_nanoseconds(nsecs_t secs) in seconds_to_nanoseconds()
39 static CONSTEXPR inline nsecs_t milliseconds_to_nanoseconds(nsecs_t secs) in milliseconds_to_nanoseconds()
44 static CONSTEXPR inline nsecs_t microseconds_to_nanoseconds(nsecs_t secs) in microseconds_to_nanoseconds()
49 static CONSTEXPR inline nsecs_t nanoseconds_to_seconds(nsecs_t secs) in nanoseconds_to_seconds()
54 static CONSTEXPR inline nsecs_t nanoseconds_to_milliseconds(nsecs_t secs) in nanoseconds_to_milliseconds()
59 static CONSTEXPR inline nsecs_t nanoseconds_to_microseconds(nsecs_t secs) in nanoseconds_to_microseconds()
64 static CONSTEXPR inline nsecs_t s2ns(nsecs_t v) {return seconds_to_nanoseconds(v);} in s2ns()
71 static CONSTEXPR inline nsecs_t seconds(nsecs_t v) { return s2ns(v); } in seconds()
72 static CONSTEXPR inline nsecs_t milliseconds(nsecs_t v) { return ms2ns(v); } in milliseconds()
73 static CONSTEXPR inline nsecs_t microseconds(nsecs_t v) { return us2ns(v); } in microseconds()
[all …]
H A DLooper.h363 void sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler,
374 void sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler,
446 MessageEnvelope(nsecs_t u, sp<MessageHandler> h, const Message& m) in MessageEnvelope()
449 nsecs_t uptime;
482 nsecs_t mNextMessageUptime; // set to LLONG_MAX when none
H A DStopWatch.h32 nsecs_t elapsedTime() const;
40 nsecs_t mStartTime;
/aosp14/frameworks/base/libs/hwui/renderthread/
H A 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, nsecs_t indendedVsync, int64_t vsyncId,
36 int64_t frameDeadline, nsecs_t frameInterval);
37 nsecs_t latestVsync() { return mFrameTimeNanos; } in latestVsync()
38 nsecs_t computeFrameTimeNanos();
48 nsecs_t mFrameIntervalNanos;
49 nsecs_t mFrameTimeNanos;
50 nsecs_t mFrameIntendedTimeNanos;
H A DTimeLord.cpp31 bool TimeLord::vsyncReceived(nsecs_t vsync, nsecs_t intendedVsync, int64_t vsyncId, in vsyncReceived()
32 int64_t frameDeadline, nsecs_t frameInterval) { in vsyncReceived()
53 nsecs_t TimeLord::computeFrameTimeNanos() { in computeFrameTimeNanos()
55 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in computeFrameTimeNanos()
56 nsecs_t jitterNanos = now - mFrameTimeNanos; in computeFrameTimeNanos()
58 nsecs_t lastFrameOffset = jitterNanos % mFrameIntervalNanos; in computeFrameTimeNanos()
H A DCanvasContext.h233 void setSyncDelayDuration(nsecs_t duration);
304 nsecs_t vsyncTime;
305 nsecs_t swapCompletedTime;
306 nsecs_t dequeueDuration;
307 nsecs_t queueDuration;
317 nsecs_t mLastDropVsync = 0;
363 nsecs_t mLastDequeueBufferDuration = 0;
364 nsecs_t mSyncDelayDuration = 0;
365 nsecs_t mIdleDuration = 0;
H A DHintSessionWrapper.h49 nsecs_t mLastFrameNotification = 0;
50 nsecs_t mLastTargetWorkDuration = 0;
57 static constexpr nsecs_t kResetHintTimeout = 100_ms;
/aosp14/system/core/libutils/
H A DTimers.cpp33 nsecs_t systemTime(int clock) { in systemTime()
41 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in systemTime()
44 nsecs_t systemTime(int clock) { in systemTime()
53 return nsecs_t(t.tv_sec)*1000000000LL + nsecs_t(t.tv_usec)*1000LL; in systemTime()
57 int toMillisecondTimeoutDelay(nsecs_t referenceTime, nsecs_t timeoutTime) { in toMillisecondTimeoutDelay()
/aosp14/frameworks/base/libs/hwui/
H A 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() { 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;
H A DAnimator.h60 void setDuration(nsecs_t durationInMs);
61 nsecs_t duration() { return mDuration; } in duration()
62 void setStartDelay(nsecs_t startDelayInMs);
63 nsecs_t startDelay() { return mStartDelay; } in startDelay()
85 nsecs_t getRemainingPlayTime();
135 virtual void onPlayTimeChanged(nsecs_t playTime) {} in onPlayTimeChanged()
149 nsecs_t mStartTime;
150 nsecs_t mDuration;
151 nsecs_t mStartDelay;
155 nsecs_t mPlayTime;
[all …]
H A DJankTracker.cpp41 std::function<int64_t(nsecs_t)> computeThreadshold;
51 [](nsecs_t frameInterval) { return static_cast<int64_t>(.5 * frameInterval); }, in __anon63a6732d0202()
55 [](nsecs_t frameInterval) { return static_cast<int64_t>(.2 * frameInterval); }, in __anon63a6732d0302()
85 nsecs_t frameIntervalNanos = DeviceInfo::getVsyncPeriod(); in JankTracker()
86 nsecs_t sfOffset = DeviceInfo::getCompositorOffset(); in JankTracker()
87 nsecs_t offsetDelta = sfOffset - DeviceInfo::getAppOffset(); in JankTracker()
106 nsecs_t expectedDequeueDuration = mDequeueTimeForgivenessLegacy in calculateLegacyJank()
112 nsecs_t forgiveAmount = in calculateLegacyJank()
165 nsecs_t lastFrameOffset = jitterNanos % mFrameIntervalLegacy; in calculateLegacyJank()
225 nsecs_t jitterNanos = frame[FrameInfoIndex::GpuCompleted] in finishFrame()
[all …]
H A DPropertyValuesAnimatorSet.cpp26 Interpolator* interpolator, nsecs_t startDelay, in addPropertyAnimator()
27 nsecs_t duration, int repeatCount, in addPropertyAnimator()
70 void PropertyValuesAnimatorSet::onPlayTimeChanged(nsecs_t playTime) { in onPlayTimeChanged()
129 nsecs_t startDelay, nsecs_t duration, int repeatCount, in PropertyAnimator()
141 mTotalDuration = ((nsecs_t)mRepeatCount + 1) * mDuration + mStartDelay; in PropertyAnimator()
144 void PropertyAnimator::setCurrentPlayTime(nsecs_t playTime) { in setCurrentPlayTime()
H A DFrameInfoVisualizer.h42 explicit FrameInfoVisualizer(FrameInfoSource& source, nsecs_t frameInterval);
74 nsecs_t mFrameInterval;
86 nsecs_t mLastFrameLogged = 0;
H A DJankTracker.h84 nsecs_t mSwapDeadlineLegacy = -1;
92 nsecs_t mDequeueTimeForgivenessLegacy = 0;
94 nsecs_t mNextFrameStartUnstuffed GUARDED_BY(mDataMutex) = -1;
H A DAnimator.cpp73 void BaseRenderNodeAnimator::setDuration(nsecs_t duration) { in setDuration()
78 void BaseRenderNodeAnimator::setStartDelay(nsecs_t startDelay) { in setStartDelay()
170 nsecs_t currentPlayTime = mPlayTime; in pushStaging()
192 nsecs_t currentFrameTime = context.frameTimeMs(); in pushStaging()
215 nsecs_t frameTimeMs = context.frameTimeMs(); in transitionToRunning()
252 nsecs_t currentPlayTime = context.frameTimeMs() - mStartTime; in animate()
261 bool BaseRenderNodeAnimator::updatePlayTime(nsecs_t playTime) { in updatePlayTime()
287 nsecs_t BaseRenderNodeAnimator::getRemainingPlayTime() { in getRemainingPlayTime()
/aosp14/frameworks/base/libs/input/
H A DPointerControllerContext.h52 nsecs_t durationPerFrame;
104 nsecs_t getAnimationTime();
116 void addAnimationCallback(int32_t displayId, std::function<bool(nsecs_t)> callback);
140 void addCallback(int32_t displayId, std::function<bool(nsecs_t)> callback);
143 nsecs_t getAnimationTimeLocked();
150 nsecs_t animationTime{systemTime(SYSTEM_TIME_MONOTONIC)};
152 std::unordered_map<int32_t, std::function<bool(nsecs_t)>> callbacks;
161 void handleCallbacksLocked(nsecs_t timestamp);
H A DPointerControllerContext.cpp22 const nsecs_t INACTIVITY_TIMEOUT_DELAY_TIME_NORMAL = 15 * 1000 * 1000000LL; // 15 seconds
23 const nsecs_t INACTIVITY_TIMEOUT_DELAY_TIME_SHORT = 3 * 1000 * 1000000LL; // 3 seconds
68 nsecs_t timeout = mLocked.inactivityTimeout == InactivityTimeout::SHORT in resetInactivityTimeoutLocked()
79 nsecs_t PointerControllerContext::getAnimationTime() REQUIRES(mAnimator.mLock) { in getAnimationTime()
142 std::function<bool(nsecs_t)> callback) { in addAnimationCallback()
165 std::function<bool(nsecs_t)> callback) { in addCallback()
183 nsecs_t timestamp; in handleVsyncEvents()
200 nsecs_t PointerControllerContext::PointerAnimator::getAnimationTimeLocked() REQUIRES(mLock) { in getAnimationTimeLocked()
212 void PointerControllerContext::PointerAnimator::handleCallbacksLocked(nsecs_t timestamp) in handleCallbacksLocked()
H A DMouseCursorController.h63 bool doAnimations(nsecs_t timestamp);
79 nsecs_t lastFrameUpdatedTime;
108 bool doBitmapAnimationLocked(nsecs_t timestamp);
109 bool doFadingAnimationLocked(nsecs_t timestamp);
/aosp14/frameworks/base/libs/hwui/thread/
H A DWorkQueue.h34 static nsecs_t now() { return systemTime(SYSTEM_TIME_MONOTONIC); } in now()
51 WorkItem(nsecs_t runAt, std::function<void()>&& work) in WorkItem()
54 nsecs_t runAt;
83 void postAt(nsecs_t time, F&& func) { in postAt()
88 void postDelayed(nsecs_t delay, F&& func) { in postDelayed()
112 nsecs_t nextWakeup(std::unique_lock<std::mutex>& lock) { in nextWakeup()
114 return std::numeric_limits<nsecs_t>::max(); in nextWakeup()
/aosp14/frameworks/base/libs/hwui/utils/
H A DTimeUtils.h24 constexpr nsecs_t operator"" _s(unsigned long long s) {
28 constexpr nsecs_t operator"" _ms(unsigned long long ms) {
32 constexpr nsecs_t operator"" _us(unsigned long long us) {
/aosp14/frameworks/base/libs/hwui/hwui/
H A DAnimatedImageDrawable.h63 bool isDirty(nsecs_t* outDelay);
132 nsecs_t mTimeToShowNextSnapshot = 0;
135 nsecs_t mCurrentTime = 0;
138 nsecs_t mLastWallTime = 0;
H A DAnimatedImageDrawable.cpp70 bool AnimatedImageDrawable::isDirty(nsecs_t* outDelay) { in isDirty()
72 const nsecs_t currentTime = systemTime(SYSTEM_TIME_MONOTONIC); in isDirty()
73 const nsecs_t lastWallTime = mLastWallTime; in isDirty()
199 const nsecs_t timeToShowCurrentSnap = mTimeToShowNextSnapshot; in onDraw()
290 const nsecs_t currentTime = systemTime(SYSTEM_TIME_MONOTONIC); in drawStaging()
323 const nsecs_t timeToShowCurrentSnapshot = mTimeToShowNextSnapshot; in drawStaging()
/aosp14/frameworks/base/core/jni/
H A Dandroid_view_DisplayEventReceiver.cpp89 void dispatchVsync(nsecs_t timestamp, PhysicalDisplayId displayId, uint32_t count,
91 void dispatchHotplug(nsecs_t timestamp, PhysicalDisplayId displayId, bool connected) override;
92 void dispatchModeChanged(nsecs_t timestamp, PhysicalDisplayId displayId, int32_t modeId,
93 nsecs_t renderPeriod) override;
94 void dispatchFrameRateOverrides(nsecs_t timestamp, PhysicalDisplayId displayId,
96 void dispatchNullEvent(nsecs_t timestamp, PhysicalDisplayId displayId) override {} in dispatchNullEvent()
166 void NativeDisplayEventReceiver::dispatchVsync(nsecs_t timestamp, PhysicalDisplayId displayId, in dispatchVsync()
218 void NativeDisplayEventReceiver::dispatchHotplug(nsecs_t timestamp, PhysicalDisplayId displayId, in dispatchHotplug()
233 void NativeDisplayEventReceiver::dispatchModeChanged(nsecs_t timestamp, PhysicalDisplayId displayId, in dispatchModeChanged()
234 int32_t modeId, nsecs_t renderPeriod) { in dispatchModeChanged()
[all …]
H A Dandroid_view_MotionPredictor.cpp43 const nsecs_t offset = static_cast<nsecs_t>(offsetNanos); in android_view_MotionPredictor_nativeInitialize()
63 predictor->predict(static_cast<nsecs_t>( in android_view_MotionPredictor_nativePredict()
/aosp14/frameworks/base/libs/hostgraphics/ui/
H A DFence.h23 typedef int64_t nsecs_t; typedef
32 static constexpr nsecs_t SIGNAL_TIME_PENDING = INT64_MAX;
33 static constexpr nsecs_t SIGNAL_TIME_INVALID = -1;

1234