Home
last modified time | relevance | path

Searched refs:startTime (Results 1 – 25 of 229) sorted by relevance

12345678910

/frameworks/native/services/surfaceflinger/tests/unittests/
DPowerAdvisorTest.cpp42 void fakeBasicFrameTiming(nsecs_t startTime, nsecs_t vsyncPeriod);
43 void setExpectedTiming(nsecs_t startTime, nsecs_t vsyncPeriod);
75 void PowerAdvisorTest::fakeBasicFrameTiming(nsecs_t startTime, nsecs_t vsyncPeriod) { in fakeBasicFrameTiming() argument
76 mPowerAdvisor->setCommitStart(startTime); in fakeBasicFrameTiming()
100 nsecs_t startTime = 100; in TEST_F() local
103 fakeBasicFrameTiming(startTime, vsyncPeriod); in TEST_F()
104 setExpectedTiming(vsyncPeriod, startTime + vsyncPeriod); in TEST_F()
106 mPowerAdvisor->setSfPresentTiming(startTime, startTime + presentDuration); in TEST_F()
107 mPowerAdvisor->setCompositeEnd(startTime + presentDuration + postCompDuration); in TEST_F()
110 startTime += vsyncPeriod; in TEST_F()
[all …]
/frameworks/base/services/core/java/com/android/server/vibrator/
DStep.java34 public final long startTime; field in Step
36 Step(VibrationStepConductor conductor, long startTime) { in Step() argument
38 this.startTime = startTime; in Step()
91 if (startTime == Long.MAX_VALUE) { in calculateWaitTime()
96 return Math.max(0, startTime - SystemClock.uptimeMillis()); in calculateWaitTime()
101 return Long.compare(startTime, o.startTime); in compareTo()
DSetAmplitudeVibratorStep.java44 SetAmplitudeVibratorStep(VibrationStepConductor conductor, long startTime, in SetAmplitudeVibratorStep() argument
48 super(conductor, startTime, controller, effect, index, previousStepVibratorOffTimeout); in SetAmplitudeVibratorStep()
61 return mNextOffTime < startTime && controller.getCurrentAmplitude() > 0; in acceptVibratorCompleteCallback()
72 long latency = now - startTime; in play()
82 return Arrays.asList(new SetAmplitudeVibratorStep(conductor, startTime, controller, in play()
107 if (startTime >= mNextOffTime) { in play()
121 long nextStartTime = startTime + segment.getDuration(); in play()
DRampOffVibratorStep.java31 RampOffVibratorStep(VibrationStepConductor conductor, long startTime, float amplitudeTarget, in RampOffVibratorStep() argument
34 super(conductor, startTime, controller, /* effect= */ null, /* index= */ -1, in RampOffVibratorStep()
56 long latency = SystemClock.uptimeMillis() - startTime; in play()
77 startTime + conductor.vibrationSettings.getRampStepDuration(), in play()
DTurnOffVibratorStep.java35 TurnOffVibratorStep(VibrationStepConductor conductor, long startTime, in TurnOffVibratorStep() argument
37 super(conductor, startTime, controller, /* effect= */ null, /* index= */ -1, startTime); in TurnOffVibratorStep()
/frameworks/base/core/java/android/content/
DSyncInfo.java55 public final long startTime; field in SyncInfo
64 int authorityId, String authority, long startTime) { in createAccountRedacted() argument
65 return new SyncInfo(authorityId, REDACTED_ACCOUNT, authority, startTime); in createAccountRedacted()
70 public SyncInfo(int authorityId, Account account, String authority, long startTime) { in SyncInfo() argument
74 this.startTime = startTime; in SyncInfo()
82 this.startTime = other.startTime; in SyncInfo()
95 parcel.writeLong(startTime); in writeToParcel()
104 startTime = parcel.readLong(); in SyncInfo()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/usage/
DUserUsageStatsServiceTest.java109 long startTime = now - TIME_INTERVAL_MILLIS; in testReportEvent_eventAppearsInQueries() local
111 startTime, now, TEST_PACKAGE_NAME, false /* includeTaskRoot */); in testReportEvent_eventAppearsInQueries()
136 long startTime = now - TIME_INTERVAL_MILLIS; in testReportEvent_packageUsedEventNotTracked() local
138 startTime, now, TEST_PACKAGE_NAME, false /* includeTaskRoot */); in testReportEvent_packageUsedEventNotTracked()
164 long startTime = now - TIME_INTERVAL_MILLIS; in testQueryEarliestEventsForPackage() local
166 startTime, now, TEST_PACKAGE_NAME, ACTIVITY_RESUMED); in testQueryEarliestEventsForPackage()
201 long startTime = now - forcedDiff * 2; in testQueryEarliestEventsForPackage_Caching() local
203 startTime, now, TEST_PACKAGE_NAME, ACTIVITY_RESUMED); in testQueryEarliestEventsForPackage_Caching()
221 startTime, now, TEST_PACKAGE_NAME, ACTIVITY_RESUMED); in testQueryEarliestEventsForPackage_Caching()
239 startTime = now - forcedDiff * 2; in testQueryEarliestEventsForPackage_Caching()
[all …]
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/
DBroadcastPerfTest.java40 final long startTime = System.nanoTime(); in manifestBroadcastRunning() local
46 return endTime - startTime; in manifestBroadcastRunning()
56 final long startTime = System.nanoTime(); in manifestBroadcastNotRunning() local
62 return endTime - startTime; in manifestBroadcastNotRunning()
74 final long startTime = System.nanoTime(); in registeredBroadcast() local
80 return endTime - startTime; in registeredBroadcast()
/frameworks/av/media/libaaudio/tests/
Dtest_clock_model.cpp117 const int64_t startTime = 100000; in TEST_F() local
118 model.start(startTime); in TEST_F()
120 int64_t position = model.convertTimeToPosition(startTime); in TEST_F()
124 EXPECT_EQ(startTime, time); in TEST_F()
126 time = startTime + (500 * NANOS_PER_MICROSECOND); in TEST_F()
133 const int64_t startTime = 100000000; in TEST_F() local
134 model.start(startTime); in TEST_F()
137 int64_t markerTime = startTime + NANOS_PER_MILLISECOND + (200 * NANOS_PER_MICROSECOND); in TEST_F()
/frameworks/native/services/surfaceflinger/FrameTracer/
DFrameTracer.cpp81 FrameEvent::BufferEventType type, nsecs_t startTime) { in traceFence() argument
83 startTime](FrameTracerDataSource::TraceContext ctx) { in traceFence()
95 traceSpanLocked(ctx, layerId, bufferID, frameNumber, type, startTime, signalTime); in traceFence()
101 .startTime = startTime}); in traceFence()
125 pendingFence.startTime, signalTime); in tracePendingFencesLocked()
160 FrameEvent::BufferEventType type, nsecs_t startTime, in traceSpanLocked() argument
164 if (startTime > 0 && startTime < endTime) { in traceSpanLocked()
165 timestamp = startTime; in traceSpanLocked()
166 duration = endTime - startTime; in traceSpanLocked()
/frameworks/av/media/codec2/hidl/1.0/vts/functional/component/
DVtsHalMediaC2V1_0TargetComponentTest.cpp251 int64_t startTime = getNowUs(); in TEST_P() local
253 int64_t timeConsumed = getNowUs() - startTime; in TEST_P()
258 startTime = getNowUs(); in TEST_P()
260 timeConsumed = getNowUs() - startTime; in TEST_P()
270 startTime = getNowUs(); in TEST_P()
272 timeConsumed = getNowUs() - startTime; in TEST_P()
281 startTime = getNowUs(); in TEST_P()
283 timeConsumed = getNowUs() - startTime; in TEST_P()
290 startTime = getNowUs(); in TEST_P()
292 timeConsumed = getNowUs() - startTime; in TEST_P()
[all …]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerTestBase.java157 long startTime = SystemClock.uptimeMillis(); in waitForNetworkState() local
164 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForNetworkState()
176 long startTime = SystemClock.uptimeMillis(); in waitForWifiState() local
183 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiState()
195 long startTime = SystemClock.uptimeMillis(); in waitForWifiApState() local
202 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiApState()
220 long startTime = SystemClock.uptimeMillis(); in waitForTetherStateChange() local
223 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForTetherStateChange()
285 long startTime = System.currentTimeMillis(); in pingTest() local
286 while ((System.currentTimeMillis() - startTime) < PING_TIMER) { in pingTest()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DIccRecordsTest.java148 long startTime; in testGetIccSimChallengeResponseNull() local
157 startTime = SystemClock.elapsedRealtime(); in testGetIccSimChallengeResponseNull()
161 timeSpent = SystemClock.elapsedRealtime() - startTime; in testGetIccSimChallengeResponseNull()
169 long startTime; in testGetIccSimChallengeResponseTimeout() local
177 startTime = SystemClock.elapsedRealtime(); in testGetIccSimChallengeResponseTimeout()
181 timeSpent = SystemClock.elapsedRealtime() - startTime; in testGetIccSimChallengeResponseTimeout()
206 long startTime; in testGetIccSimChallengeResponseDefault() local
218 startTime = SystemClock.elapsedRealtime(); in testGetIccSimChallengeResponseDefault()
222 timeSpent = SystemClock.elapsedRealtime() - startTime; in testGetIccSimChallengeResponseDefault()
228 startTime = SystemClock.elapsedRealtime(); in testGetIccSimChallengeResponseDefault()
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/concurrency/
DFakeExecutor.java102 long startTime = mClock.uptimeMillis(); in advanceClockToNext() local
104 if (nextTime <= startTime) { in advanceClockToNext()
109 return nextTime - startTime; in advanceClockToNext()
126 long startTime = mClock.uptimeMillis(); in advanceClockToLast() local
128 if (nextTime <= startTime) { in advanceClockToLast()
134 return nextTime - startTime; in advanceClockToLast()
/frameworks/av/services/oboeservice/
DTimestampScheduler.cpp24 void TimestampScheduler::start(int64_t startTime) { in start() argument
25 mStartTime = startTime; in start()
26 mLastTime = startTime; in start()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/
DInteraction.java109 long startTime = SystemClock.uptimeMillis() + 100; in createInterpolatedEventList() local
116 startTime, startTime, MotionEvent.ACTION_DOWN, startX, startY, 0); in createInterpolatedEventList()
130 MotionEvent moveEvent = MotionEvent.obtain(startTime, startTime + deltaT, in createInterpolatedEventList()
141 MotionEvent lastEvent = MotionEvent.obtain(startTime, startTime + duration, in createInterpolatedEventList()
/frameworks/av/media/utils/
DTimerThread-test.cpp105 auto startTime = std::chrono::steady_clock::now(); in testMultipleTasks() local
129 std::this_thread::sleep_until(startTime + 100ms - kJitter); in testMultipleTasks()
134 std::this_thread::sleep_until(startTime + 100ms + kJitter); in testMultipleTasks()
143 std::this_thread::sleep_until(startTime + 200ms - kJitter); in testMultipleTasks()
148 std::this_thread::sleep_until(startTime + 200ms + kJitter); in testMultipleTasks()
155 std::this_thread::sleep_until(startTime + 300ms - kJitter); in testMultipleTasks()
159 std::this_thread::sleep_until(startTime + 300ms + kJitter); in testMultipleTasks()
170 std::this_thread::sleep_until(startTime + 400ms - kJitter); in testMultipleTasks()
177 std::this_thread::sleep_until(startTime + 400ms + kJitter); in testMultipleTasks()
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
DCustomSurfaceView.java60 long startTime = System.currentTimeMillis(); in run() local
61 while (System.currentTimeMillis() - startTime < DURATION_TO_WARMUP_MS) { in run()
65 startTime = System.currentTimeMillis(); in run()
72 mFPS = (double)frameCnt * 1000.0 / (endTime - startTime); in run()
73 if ((endTime - startTime) >= DURATION_TO_MEASURE_ROUGH_MS) { in run()
79 if ((endTime - startTime) >= DURATION_TO_MEASURE_PRECISE_MS) { in run()
/frameworks/native/libs/binder/
DPermissionController.cpp33 int64_t startTime = 0; in getService() local
39 if (startTime == 0) { in getService()
40 startTime = uptimeMillis(); in getService()
42 } else if ((uptimeMillis() - startTime) > 10000) { in getService()
/frameworks/base/libs/hwui/
DSkiaInterpolator.cpp124 bool SkiaInterpolatorBase::getDuration(SkMSec* startTime, SkMSec* endTime) const { in getDuration() argument
129 if (startTime) { in getDuration()
130 *startTime = fTimes[0].fTime; in getDuration()
151 SkMSec startTime = 0, endTime = 0; // initialize to avoid warning in timeToT() local
152 this->getDuration(&startTime, &endTime); in timeToT()
153 SkMSec totalTime = endTime - startTime; in timeToT()
154 SkMSec offsetTime = time - startTime; in timeToT()
169 time = offsetTime + startTime; in timeToT()
/frameworks/base/tests/UsageStatsPerfTests/src/com/android/frameworks/perftests/usage/tests/
DUsageStatsDatabasePerfTest.java123 final long startTime = SystemClock.elapsedRealtimeNanos(); in runQueryUsageStatsTest() local
127 elapsedTimeNs = endTime - startTime; in runQueryUsageStatsTest()
138 final long startTime = SystemClock.elapsedRealtimeNanos(); in runPutUsageStatsTest() local
141 elapsedTimeNs = endTime - startTime; in runPutUsageStatsTest()
152 final long startTime = SystemClock.elapsedRealtimeNanos(); in runObfuscateStatsTest() local
156 elapsedTimeNs = endTime - startTime; in runObfuscateStatsTest()
169 final long startTime = SystemClock.elapsedRealtimeNanos(); in runDeobfuscateStatsTest() local
172 elapsedTimeNs = endTime - startTime; in runDeobfuscateStatsTest()
/frameworks/base/core/tests/coretests/src/android/view/
DPinchZoomAction.java81 final long startTime = SystemClock.uptimeMillis(); in sendPinchZoomAction() local
82 long eventTime = startTime; in sendPinchZoomAction()
85 final MotionEvent firstFingerEvent = MotionEvent.obtain(startTime, in sendPinchZoomAction()
90 final MotionEvent secondFingerEvent = MotionEvent.obtain(startTime, eventTime, in sendPinchZoomAction()
130 final MotionEvent event = MotionEvent.obtain(startTime, eventTime, in sendPinchZoomAction()
150 final MotionEvent secondFingerUpEvent = MotionEvent.obtain(startTime, eventTime, in sendPinchZoomAction()
165 final MotionEvent firstFingerUpEvent = MotionEvent.obtain(startTime, eventTime, in sendPinchZoomAction()
/frameworks/base/core/java/android/app/
DQueuedWork.java156 long startTime = System.currentTimeMillis(); in waitToFinish() local
202 long waitTime = System.currentTimeMillis() - startTime; in waitToFinish()
246 long startTime = 0; in processPendingWork() local
249 startTime = System.currentTimeMillis(); in processPendingWork()
270 +(System.currentTimeMillis() - startTime) + " ms"); in processPendingWork()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/
DKeyguardTransitionAnimationFlow.kt49 startTime: Duration = 0.milliseconds, in <lambda>()
58 if ((startTime + duration).compareTo(transitionDuration) > 0) { in <lambda>()
60 "startTime($startTime) + duration($duration) must be" + in <lambda>()
65 val start = (startTime / transitionDuration).toFloat() in <lambda>()
/frameworks/opt/car/services/updatableServices/src/com/android/internal/car/updatable/
DUserMetrics.java295 public final long startTime; field in UserMetrics.UserStartingMetric
301 UserStartingMetric(@UserIdInt int userId, long startTime) { in UserStartingMetric() argument
303 this.startTime = startTime; in UserStartingMetric()
309 TimeUtils.dumpTime(pw, startTime); in dump()
312 long delta = switchTime - startTime; in dump()
322 long delta = unlockingTime - startTime; in dump()
327 long delta = unlockedTime - startTime; in dump()

12345678910