Home
last modified time | relevance | path

Searched refs:nanoTime (Results 1 – 25 of 75) sorted by relevance

123

/frameworks/av/media/libaaudio/src/client/
DIsochronousClockModel.cpp43 void IsochronousClockModel::setPositionAndTime(int64_t framePosition, int64_t nanoTime) { in setPositionAndTime() argument
45 (long long) framePosition, (long long) nanoTime); in setPositionAndTime()
47 mMarkerNanoTime = nanoTime; in setPositionAndTime()
50 void IsochronousClockModel::start(int64_t nanoTime) { in start() argument
51 ALOGV("IsochronousClockModel::start(nanos = %lld)\n", (long long) nanoTime); in start()
52 mMarkerNanoTime = nanoTime; in start()
56 void IsochronousClockModel::stop(int64_t nanoTime) { in stop() argument
57 ALOGV("IsochronousClockModel::stop(nanos = %lld)\n", (long long) nanoTime); in stop()
58 setPositionAndTime(convertTimeToPosition(nanoTime), nanoTime); in stop()
67 void IsochronousClockModel::processTimestamp(int64_t framePosition, int64_t nanoTime) { in processTimestamp() argument
[all …]
DIsochronousClockModel.h36 void start(int64_t nanoTime);
37 void stop(int64_t nanoTime);
41 void processTimestamp(int64_t framePosition, int64_t nanoTime);
48 void setPositionAndTime(int64_t framePosition, int64_t nanoTime);
79 int64_t convertTimeToPosition(int64_t nanoTime) const;
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/d1new/
DRefocusFilterd1new.java65 startnow = System.nanoTime(); in extractResultImage()
67 endnow = System.nanoTime(); in extractResultImage()
70 startnow = System.nanoTime(); in extractResultImage()
72 endnow = System.nanoTime(); in extractResultImage()
137 startnow = System.nanoTime(); in computeLayerMatteBehindFocalDepth()
141 endnow = System.nanoTime(); in computeLayerMatteBehindFocalDepth()
144 startnow = System.nanoTime(); in computeLayerMatteBehindFocalDepth()
148 endnow = System.nanoTime(); in computeLayerMatteBehindFocalDepth()
165 startnow = System.nanoTime(); in filterLayerBehindFocalDepth()
168 endnow = System.nanoTime(); in filterLayerBehindFocalDepth()
[all …]
DImageBuffersForRenderScriptd1new.java96 startnow = System.nanoTime(); in initializeRenderScript()
99 endnow = System.nanoTime(); in initializeRenderScript()
105 startnow = System.nanoTime(); in initializeRenderScript()
107 endnow = System.nanoTime(); in initializeRenderScript()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/f32/
DRefocusFilterF32.java63 startnow = System.nanoTime(); in extractResultImage()
65 endnow = System.nanoTime(); in extractResultImage()
68 startnow = System.nanoTime(); in extractResultImage()
70 endnow = System.nanoTime(); in extractResultImage()
135 startnow = System.nanoTime(); in computeLayerMatteBehindFocalDepth()
137 endnow = System.nanoTime(); in computeLayerMatteBehindFocalDepth()
140 startnow = System.nanoTime(); in computeLayerMatteBehindFocalDepth()
142 endnow = System.nanoTime(); in computeLayerMatteBehindFocalDepth()
158 startnow = System.nanoTime(); in filterLayerBehindFocalDepth()
161 endnow = System.nanoTime(); in filterLayerBehindFocalDepth()
[all …]
DImageBuffersForRenderScriptF32.java74 startnow = System.nanoTime(); in initializeRenderScript()
77 endnow = System.nanoTime(); in initializeRenderScript()
83 startnow = System.nanoTime(); in initializeRenderScript()
85 endnow = System.nanoTime(); in initializeRenderScript()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DSlowNestedRecyclerViewActivity.java79 final long start = System.nanoTime(); in onCreateViewHolder()
85 final long start = System.nanoTime(); in onCreateViewHolder()
87 while (System.nanoTime() - start < INNER_ITEM_ATTACH_NS); in onCreateViewHolder()
103 while (System.nanoTime() - start < INNER_ITEM_CREATE_NS); in onCreateViewHolder()
109 final long start = System.nanoTime(); in onBindViewHolder()
110 while (System.nanoTime() - start < INNER_ITEM_BIND_NS); in onBindViewHolder()
138 final long start = System.nanoTime(); in onCreateViewHolder()
143 final long start = System.nanoTime(); in onCreateViewHolder()
145 while (System.nanoTime() - start < OUTER_ITEM_ATTACH_NS); in onCreateViewHolder()
157 while (System.nanoTime() - start < OUTER_ITEM_CREATE_NS); in onCreateViewHolder()
[all …]
DSlowBindRecyclerViewActivity.java33 long start = System.nanoTime(); in spinWaitMs()
34 while (System.nanoTime() - start < TimeUnit.MILLISECONDS.toNanos(ms)); in spinWaitMs()
/frameworks/base/media/java/android/media/
DMediaTimestamp.java51 return nanoTime; in getAnchorSytemNanoTime()
68 public final long nanoTime; field in MediaTimestamp
75 nanoTime = systemNs; in MediaTimestamp()
82 nanoTime = 0; in MediaTimestamp()
/frameworks/base/core/java/android/view/
DFrameInfo.java99 mFrameInfo[HANDLE_INPUT_START] = System.nanoTime(); in markInputHandlingStart()
103 mFrameInfo[ANIMATION_START] = System.nanoTime(); in markAnimationsStart()
107 mFrameInfo[PERFORM_TRAVERSALS_START] = System.nanoTime(); in markPerformTraversalsStart()
111 mFrameInfo[DRAW_START] = System.nanoTime(); in markDrawStart()
DChoreographer.java553 return USE_FRAME_TIME ? mLastFrameTimeNanos : System.nanoTime(); in getFrameTimeNanos()
565 return USE_FRAME_TIME ? mLastFrameTimeNanos : System.nanoTime(); in getLastFrameTimeNanos()
614 startNanos = System.nanoTime(); in doFrame()
667 final long endNanos = System.nanoTime(); in doFrame()
680 final long now = System.nanoTime(); in doCallbacks()
826 doFrame(System.nanoTime(), 0); in handleMessage()
872 long now = System.nanoTime(); in onVsync()
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
DBenchmarkRunner.java62 mResults.addDuration(System.nanoTime() - mStartTimeNs - mPausedDurationNs); in startNextTestRun()
76 mStartTimeNs = System.nanoTime(); in prepareForNextRun()
84 mPausedTimeNs = System.nanoTime(); in pauseTiming()
92 mPausedDurationNs += System.nanoTime() - mPausedTimeNs; in resumeTiming()
/frameworks/av/media/libaaudio/src/utility/
DAudioClock.h51 static int sleepUntilNanoTime(int64_t nanoTime,
53 if (nanoTime > 0) {
55 time.tv_sec = nanoTime / AAUDIO_NANOS_PER_SECOND;
57 time.tv_nsec = nanoTime - (time.tv_sec * AAUDIO_NANOS_PER_SECOND);
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DBenchmarkState.java130 mPausedTimeNs = System.nanoTime(); in pauseTiming()
141 mPausedDurationNs += System.nanoTime() - mPausedTimeNs; in resumeTiming()
147 mStartTimeNs = System.nanoTime(); in beginWarmup()
165 mStartTimeNs = System.nanoTime(); in beginBenchmark()
169 final long currentTime = System.nanoTime(); in startNextTestRun()
182 mStartTimeNs = System.nanoTime(); in startNextTestRun()
200 final long duration = System.nanoTime() - mStartTimeNs; in keepRunning()
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/java/
DSystem_Delegate.java33 private static AtomicLong mNanosTime = new AtomicLong(System.nanoTime());
35 private static AtomicLong mBootNanosTime = new AtomicLong(System.nanoTime());
53 public static long nanoTime() { in nanoTime() method in System_Delegate
/frameworks/base/packages/MtpDocumentsProvider/perf_tests/src/com/android/mtp/
DAppFusePerfTest.java58 final long startTime = System.nanoTime(); in testReadWriteFile()
60 readTime[i] = (System.nanoTime() - startTime) / 1000.0 / 1000.0; in testReadWriteFile()
70 final long startTime = System.nanoTime(); in testReadWriteFile()
72 writeTime[i] = (System.nanoTime() - startTime) / 1000.0 / 1000.0; in testReadWriteFile()
/frameworks/base/apct-tests/perftests/core/src/android/perftests/
DSystemPerfTest.java47 System.nanoTime(); in testNanoTimePerf()
58 long start = System.nanoTime(); in spinBlock()
59 while (System.nanoTime() - start < durationNs) {} in spinBlock()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DBlockChecker.java22 long startTimeNano = System.nanoTime(); in isBlocked()
34 int durationMillis = (int) ((System.nanoTime() - startTimeNano) / 1000000); in isBlocked()
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/
DSwarm.java154 long time = System.nanoTime();
187 Log.v(TAG, " gl " + count / ((System.nanoTime() - time) * 1E-9) + " fps"); in draw()
189 time = System.nanoTime(); in draw()
296 long time = System.nanoTime();
346 long time = System.nanoTime(); in doInBackground()
385 Log.v(TAG, " " + count / ((System.nanoTime() - time) * 1E-9) + " fps"); in onProgressUpdate()
387 time = System.nanoTime(); in onProgressUpdate()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
DBasicPipeline.java57 long start = System.nanoTime(); in rasterizeTriangles()
62 Log.v(LOGTAG,"render triangles "+((System.nanoTime()-start)/1E6f)+" ms"); in rasterizeTriangles()
/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/
DBluetoothPacketDecoder.java46 mTimeTracker = new MidiBtleTimeTracker(System.nanoTime()); in decodePacket()
99 long now = System.nanoTime(); in decodePacket()
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/
DLinearLayoutManagerJankActivity.java41 long start = System.nanoTime(); in spinWaitMs()
42 while (System.nanoTime() - start < ms * 1000L * 1000L); in spinWaitMs()
/frameworks/support/compat/tests/java/android/support/v4/provider/
DSelfDestructiveThreadTest.java55 System.nanoTime() + TimeUnit.MILLISECONDS.toNanos(timeoutMs); in waitUntilDestruction()
66 } while (System.nanoTime() < deadlineNanoTime); in waitUntilDestruction()
71 final long deadlineNanoTime = System.nanoTime() + TimeUnit.MILLISECONDS.toNanos(ms); in waitMillis()
73 final long now = System.nanoTime(); in waitMillis()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/
DMandelbulb.java73 long time = System.nanoTime(); in buildRSVolume()
82 Log.v(LOGTAG, "compute Mandelbulb in" + ((System.nanoTime() - time) / 1E9f) + "seconds"); in buildRSVolume()
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
DHealing.java77 long time = System.nanoTime(); in heal()
109 Log.v(TAG, " time ss to smart paste = " + (System.nanoTime() - time) / 1E6f + "ms"); in heal()
123 long time = System.nanoTime(); in heal_orig()
186 Log.v(TAG, " time to smart paste = " + (System.nanoTime() - time) / 1E6f + "ms"); in heal_orig()

123