Home
last modified time | relevance | path

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

12345

/frameworks/base/tests/MidiTests/src/com/android/server/midi/
DMidiEventMultiSchedulerTest.java56 return System.nanoTime() + 1000000L * milliseconds; in timeFromNow()
77 assertNotNull(scheduler0.getNextEvent(System.nanoTime())); in testMultiScheduler()
78 assertNull(scheduler1.getNextEvent(System.nanoTime())); in testMultiScheduler()
79 assertNull(scheduler2.getNextEvent(System.nanoTime())); in testMultiScheduler()
81 assertNull(scheduler0.getNextEvent(System.nanoTime())); in testMultiScheduler()
82 assertNotNull(scheduler1.getNextEvent(System.nanoTime())); in testMultiScheduler()
83 assertNull(scheduler2.getNextEvent(System.nanoTime())); in testMultiScheduler()
85 assertNull(scheduler0.getNextEvent(System.nanoTime())); in testMultiScheduler()
86 assertNull(scheduler1.getNextEvent(System.nanoTime())); in testMultiScheduler()
87 assertNotNull(scheduler2.getNextEvent(System.nanoTime())); in testMultiScheduler()
[all …]
/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/av/media/libaaudio/src/client/
DIsochronousClockModel.cpp53 void IsochronousClockModel::setPositionAndTime(int64_t framePosition, int64_t nanoTime) { in setPositionAndTime() argument
54 ALOGV("setPositionAndTime, %lld, %lld", (long long) framePosition, (long long) nanoTime); in setPositionAndTime()
56 mMarkerNanoTime = nanoTime; in setPositionAndTime()
59 void IsochronousClockModel::start(int64_t nanoTime) { in start() argument
60 ALOGV("start(nanos = %lld)\n", (long long) nanoTime); in start()
61 mMarkerNanoTime = nanoTime; in start()
70 void IsochronousClockModel::stop(int64_t nanoTime) { in stop() argument
72 (long long) nanoTime, in stop()
76 setPositionAndTime(convertTimeToPosition(nanoTime), nanoTime); in stop()
92 void IsochronousClockModel::processTimestamp(int64_t framePosition, int64_t nanoTime) { in processTimestamp() argument
[all …]
DIsochronousClockModel.h40 void start(int64_t nanoTime);
41 void stop(int64_t nanoTime);
53 void processTimestamp(int64_t framePosition, int64_t nanoTime);
60 void setPositionAndTime(int64_t framePosition, int64_t nanoTime);
100 int64_t convertTimeToPosition(int64_t nanoTime) const;
112 int64_t convertLatestTimeToPosition(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/base/media/java/android/media/
DMediaTimestamp.java68 return nanoTime; in getAnchorSystemNanoTime()
86 public final long nanoTime; field in MediaTimestamp
101 this.nanoTime = nanoTimeNs; in MediaTimestamp()
108 nanoTime = 0; in MediaTimestamp()
119 && (this.nanoTime == that.nanoTime) in equals()
127 + " AnchorSystemNanoTime=" + nanoTime in toString()
DAudioTimestamp.java90 public long nanoTime; field in AudioTimestamp
97 nanoTime = in.readLong(); in AudioTimestamp()
104 + " nanoTime=" + nanoTime; in toString()
110 dest.writeLong(nanoTime); in writeToParcel()
/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 …]
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/
DContentProviderPerfTest.java41 long startTimeNs = System.nanoTime(); in contentProviderRunning()
45 final long endTimeNs = System.nanoTime(); in contentProviderRunning()
60 final long startTimeNs = System.nanoTime(); in contentProviderNotRunning()
64 final long endTimeNs = System.nanoTime(); in contentProviderNotRunning()
DServiceStartPerfTest.java71 final long startTimeNs = System.nanoTime(); in startServiceNotRunning()
91 final long startTimeNs = System.nanoTime(); in startServiceProcessRunning()
112 final long startTimeNs = System.nanoTime(); in startServiceAlreadyBound()
137 final long startTimeNs = System.nanoTime(); in startServiceProcessRunningReadUriPermission()
DBroadcastPerfTest.java40 final long startTime = System.nanoTime(); in manifestFgBroadcastRunning()
56 final long startTime = System.nanoTime(); in manifestFgBroadcastNotRunning()
74 final long startTime = System.nanoTime(); in registeredFgBroadcast()
DServiceBindPerfTest.java74 final long startTimeNs = System.nanoTime();
96 final long startTimeNs = System.nanoTime();
123 final long startTimeNs = System.nanoTime();
153 final long startTimeNs = System.nanoTime();
/frameworks/av/media/libaaudio/src/utility/
DAudioClock.h52 static int sleepUntilNanoTime(int64_t nanoTime,
54 if (nanoTime > 0) {
56 time.tv_sec = nanoTime / AAUDIO_NANOS_PER_SECOND;
58 time.tv_nsec = nanoTime - (time.tv_sec * AAUDIO_NANOS_PER_SECOND);
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DBenchmarkState.java106 mPausedTimeNs = System.nanoTime(); in pauseTiming()
117 mPausedDurationNs += System.nanoTime() - mPausedTimeNs; in resumeTiming()
132 mStartTimeNs = System.nanoTime(); in beginWarmup()
150 mStartTimeNs = System.nanoTime(); in beginBenchmark()
154 final long currentTime = System.nanoTime(); in startNextTestRun()
172 mStartTimeNs = System.nanoTime(); in startNextTestRun()
190 final long duration = System.nanoTime() - mStartTimeNs; in keepRunning()
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
DBenchmarkRunner.java71 mResults.addDuration(System.nanoTime() - mStartTimeNs - mPausedDurationNs); in startNextTestRun()
84 mStartTimeNs = System.nanoTime(); in prepareForNextRun()
92 mPausedTimeNs = System.nanoTime(); in pauseTiming()
124 mPausedDurationNs += System.nanoTime() - mPausedTimeNs; in resumeTimer()
/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/location/
DHandlerThreadingDomainTest.java128 long beforeExecutionNanos = System.nanoTime(); in postDelayed()
135 executionNanosHolder.set(System.nanoTime()); in postDelayed()
139 long afterPostNanos = System.nanoTime(); in postDelayed()
143 long afterWaitNanos = System.nanoTime(); in postDelayed()
180 long beforeExecutionNanos = System.nanoTime(); in postAndWait()
182 long afterExecutionNanos = System.nanoTime(); in postAndWait()
195 long beforeExecutionNanos = System.nanoTime(); in singleRunnableQueue_runDelayed()
217 long afterExecutionNanos = System.nanoTime(); in singleRunnableQueue_runDelayed()
/frameworks/base/tools/hoststubgen/hoststubgen/test-tiny-framework/tiny-test/src/com/android/hoststubgen/test/tinyframework/
DTinyFrameworkBenchmark.java39 final long start = System.nanoTime(); in doBenchmark()
43 while (System.nanoTime() <= end) { in doBenchmark()
50 final long realEnd = System.nanoTime(); in doBenchmark()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DStats.java57 public long getCurTime() { return System.nanoTime(); } in getCurTime()
63 public void setStartTime() { mStartTimeNs = System.nanoTime(); } in setStartTime()
67 public void addInputTime() { mInputTimer.add(System.nanoTime()); } in addInputTime()
69 public void addOutputTime() { mOutputTimer.add(System.nanoTime()); } in addOutputTime()
171 rowData += System.nanoTime() + ", "; in dumpStatistics()
/frameworks/base/graphics/java/android/graphics/
DFrameInfo.java114 frameInfo[HANDLE_INPUT_START] = System.nanoTime(); in markInputHandlingStart()
119 frameInfo[ANIMATION_START] = System.nanoTime(); in markAnimationsStart()
124 frameInfo[PERFORM_TRAVERSALS_START] = System.nanoTime(); in markPerformTraversalsStart()
/frameworks/base/apct-tests/perftests/blobstore/src/com/android/perftests/blob/
DBlobStorePerfTests.java137 final long startTimeNs = System.nanoTime(); in testDirectReads()
139 durationNs = System.nanoTime() - startTimeNs; in testDirectReads()
156 final long startTimeNs = System.nanoTime(); in testBlobStoreReads()
158 durationNs = System.nanoTime() - startTimeNs; in testBlobStoreReads()
175 final long startTimeNs = System.nanoTime(); in testDirectWrites()
177 durationNs = System.nanoTime() - startTimeNs; in testDirectWrites()
194 final long startTimeNs = System.nanoTime(); in testBlobStoreWrites()
196 durationNs = System.nanoTime() - startTimeNs; in testBlobStoreWrites()
/frameworks/base/apct-tests/perftests/core/src/android/mtp_perf/
DAppFusePerfTest.java56 final long startTime = System.nanoTime(); in testReadWriteFile()
58 readTime[i] = (System.nanoTime() - startTime) / 1000.0 / 1000.0; in testReadWriteFile()
68 final long startTime = System.nanoTime(); in testReadWriteFile()
70 writeTime[i] = (System.nanoTime() - startTime) / 1000.0 / 1000.0; in testReadWriteFile()
/frameworks/base/tests/ManagedProfileLifecycleStressTest/src/com/android/test/stress/
DManagedProfileLifecycleStressTest.java60 final long deadline = System.nanoTime() + TimeUnit.MINUTES.toNanos(TIME_LIMIT_MINUTES); in testCreateStartDelete()
61 while (System.nanoTime() < deadline) { in testCreateStartDelete()
83 final long deadline = System.nanoTime() + TimeUnit.MINUTES.toNanos(TIME_LIMIT_MINUTES); in testCreateStartDeleteStable()
84 while (System.nanoTime() < deadline) { in testCreateStartDeleteStable()
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
DTypefaceSerializationPerfTest.java71 long startTime = System.nanoTime(); in testSerializeFontMap()
73 elapsedTime = System.nanoTime() - startTime; in testSerializeFontMap()
108 long startTime = System.nanoTime(); in testDeserializeFontMap()
111 elapsedTime = System.nanoTime() - startTime; in testDeserializeFontMap()

12345