Home
last modified time | relevance | path

Searched refs:systemTime (Results 1 – 25 of 47) sorted by relevance

12

/aosp14/system/core/libutils/
H A DTimers_test.cpp22 EXPECT_EXIT(systemTime(-1), testing::KilledBySignal(SIGABRT), ""); in TEST()
23 systemTime(SYSTEM_TIME_REALTIME); in TEST()
24 systemTime(SYSTEM_TIME_MONOTONIC); in TEST()
25 systemTime(SYSTEM_TIME_PROCESS); in TEST()
26 systemTime(SYSTEM_TIME_THREAD); in TEST()
27 systemTime(SYSTEM_TIME_BOOTTIME); in TEST()
28 EXPECT_EXIT(systemTime(SYSTEM_TIME_BOOTTIME + 1), testing::KilledBySignal(SIGABRT), ""); in TEST()
H A DStopWatch.cpp44 return systemTime(mClock) - mStartTime; in elapsedTime()
48 mStartTime = systemTime(mClock); in reset()
H A DSystemClock.cpp50 return systemTime(SYSTEM_TIME_MONOTONIC); in uptimeNanos()
77 return systemTime(SYSTEM_TIME_MONOTONIC); in elapsedRealtimeNano()
H A DTimers.cpp33 nsecs_t systemTime(int clock) { in systemTime() function
44 nsecs_t systemTime(int clock) { in systemTime() function
H A DLooper.cpp228 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollInner()
319 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollInner()
390 nsecs_t endTime = systemTime(SYSTEM_TIME_MONOTONIC) in pollAll()
399 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollAll()
584 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in sendMessage()
590 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in sendMessageDelayed()
/aosp14/frameworks/base/libs/hwui/
H A DFrameInfo.h128 void markSyncStart() { set(FrameInfoIndex::SyncStart) = systemTime(SYSTEM_TIME_MONOTONIC); } in markSyncStart()
131 set(FrameInfoIndex::IssueDrawCommandsStart) = systemTime(SYSTEM_TIME_MONOTONIC); in markIssueDrawCommandsStart()
134 void markSwapBuffers() { set(FrameInfoIndex::SwapBuffers) = systemTime(SYSTEM_TIME_MONOTONIC); } in markSwapBuffers()
137 set(FrameInfoIndex::SwapBuffersCompleted) = systemTime(SYSTEM_TIME_MONOTONIC); in markSwapBuffersCompleted()
140 …void markFrameCompleted() { set(FrameInfoIndex::FrameCompleted) = systemTime(SYSTEM_TIME_MONOTONIC… in markFrameCompleted()
H A DHardwareBitmapUploader.cpp101 nsecs_t durationSince = systemTime() - mLastUpload; in shouldTimeOutLocked()
131 mLastUpload = systemTime(); in endUpload()
/aosp14/frameworks/base/media/jni/soundpool/tests/
H A Dsoundpool_stress.cpp118 const int64_t startTimeNs = systemTime(); in testStreams()
143 const int64_t requestLoadTimeNs = systemTime(); in testStreams()
178 const int64_t loadTimeNs = systemTime(); in testStreams()
197 const int64_t playTimeNs = systemTime(); in testStreams()
282 const int64_t startTimeNs = systemTime(); in main()
298 const int64_t endTimeNs = systemTime(); in main()
/aosp14/system/core/trusty/keymaster/ipc/
H A Dtrusty_keymaster_ipc.cpp92 nsecs_t start_time_ns = systemTime(SYSTEM_TIME_MONOTONIC); in trusty_keymaster_call_2()
104 (long long)(systemTime(SYSTEM_TIME_MONOTONIC) - start_time_ns)); in trusty_keymaster_call_2()
122 (long long)(systemTime(SYSTEM_TIME_MONOTONIC) - start_time_ns)); in trusty_keymaster_call_2()
161 start_time_ns = systemTime(SYSTEM_TIME_MONOTONIC); in trusty_keymaster_call_2()
173 (long long)(systemTime(SYSTEM_TIME_MONOTONIC) - start_time_ns)); in trusty_keymaster_call_2()
190 (long long)(systemTime(SYSTEM_TIME_MONOTONIC) - start_time_ns)); in trusty_keymaster_call_2()
/aosp14/frameworks/base/libs/hwui/tests/macrobench/
H A DTestSceneRunner.cpp141 nsecs_t vsync = systemTime(SYSTEM_TIME_MONOTONIC); in doRun()
155 nsecs_t start = systemTime(SYSTEM_TIME_MONOTONIC); in doRun()
158 nsecs_t vsync = systemTime(SYSTEM_TIME_MONOTONIC); in doRun()
171 nsecs_t done = systemTime(SYSTEM_TIME_MONOTONIC); in doRun()
179 nsecs_t end = systemTime(SYSTEM_TIME_MONOTONIC); in doRun()
/aosp14/frameworks/base/core/jni/
H A Dandroid_os_SystemClock.cpp52 return nanoseconds_to_milliseconds(systemTime(SYSTEM_TIME_THREAD)); in android_os_SystemClock_currentThreadTimeMillis()
60 return nanoseconds_to_microseconds(systemTime(SYSTEM_TIME_THREAD)); in android_os_SystemClock_currentThreadTimeMicro()
/aosp14/system/core/libutils/include/utils/
H A DTimers.h85 nsecs_t systemTime(int clock = SYSTEM_TIME_MONOTONIC);
87 nsecs_t systemTime(int clock);
H A DMutex.h193 timeoutNs += systemTime(SYSTEM_TIME_REALTIME); in timedLock()
/aosp14/frameworks/base/libs/hwui/renderthread/
H A DHintSessionWrapper.cpp129 mLastFrameNotification = systemTime(); in updateTargetWorkDuration()
144 nsecs_t now = systemTime(); in sendLoadResetHint()
H A DCacheManager.cpp86 mLastDeferredCleanup = systemTime(CLOCK_MONOTONIC); in reset()
263 mFrameCompletions.next() = systemTime(CLOCK_MONOTONIC); in onFrameCompleted()
278 const nsecs_t now = systemTime(CLOCK_MONOTONIC); in onThreadIdle()
H A DDrawFrameTask.cpp76 mSyncQueued = systemTime(SYSTEM_TIME_MONOTONIC); in drawFrame()
93 mContext->setSyncDelayDuration(systemTime(SYSTEM_TIME_MONOTONIC) - mSyncQueued); in run()
H A DTimeLord.cpp55 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in computeFrameTimeNanos()
H A DRenderThread.cpp188 systemTime(SYSTEM_TIME_MONOTONIC), 16_ms); in requestNextVsync()
195 systemTime(SYSTEM_TIME_MONOTONIC), 16_ms); in drainPendingEvents()
H A DCanvasContext.cpp666 swap.swapCompletedTime = systemTime(SYSTEM_TIME_MONOTONIC); in draw()
746 int64_t frameDuration = systemTime(SYSTEM_TIME_MONOTONIC) - frameStartTime; in draw()
870 systemTime(SYSTEM_TIME_MONOTONIC) - mRenderThread.timeLord().computeFrameTimeNanos(); in doFrame()
905 prepareTree(info, frameInfo, systemTime(SYSTEM_TIME_MONOTONIC), node); in prepareAndDraw()
/aosp14/frameworks/base/media/jni/soundpool/
H A DStream.cpp188 mStopTimeNs = systemTime() + kStopWaitTimeNs; in requestStop()
190 mStopTimeNs = systemTime(); in requestStop()
458 mStopTimeNs = systemTime(); in onBufferEnd()
H A DStreamManager.cpp188 newStream->setStopTimeNs(systemTime()); in queueForPlay()
387 const nsecs_t nowNs = systemTime(); in run()
/aosp14/frameworks/base/libs/hwui/hwui/
H A DAnimatedImageDrawable.cpp72 const nsecs_t currentTime = systemTime(SYSTEM_TIME_MONOTONIC); in isDirty()
290 const nsecs_t currentTime = systemTime(SYSTEM_TIME_MONOTONIC); in drawStaging()
/aosp14/frameworks/base/libs/input/
H A DPointerControllerContext.h150 nsecs_t animationTime{systemTime(SYSTEM_TIME_MONOTONIC)};
/aosp14/frameworks/base/libs/hwui/jni/
H A Dandroid_graphics_HardwareBufferRenderer.cpp114 nsecs_t vsync = systemTime(SYSTEM_TIME_MONOTONIC); in android_graphics_HardwareBufferRenderer_render()
/aosp14/frameworks/base/libs/hwui/thread/
H A DWorkQueue.h34 static nsecs_t now() { return systemTime(SYSTEM_TIME_MONOTONIC); } in now()

12