/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | PowerAdvisorTest.cpp | 50 void fakeBasicFrameTiming(TimePoint startTime, Duration vsyncPeriod); 169 void PowerAdvisorTest::fakeBasicFrameTiming(TimePoint startTime, Duration vsyncPeriod) { in fakeBasicFrameTiming() argument 170 mPowerAdvisor->setCommitStart(startTime); in fakeBasicFrameTiming() 201 TimePoint startTime = TimePoint::now(); in testGpuScenario() local 215 fakeBasicFrameTiming(startTime, config.vsyncPeriod); in testGpuScenario() 225 ASSERT_GE(msgs[0].timeStampNanos, startTime.ns()); in testGpuScenario() 230 ASSERT_GE(msgs[1].timeStampNanos, startTime.ns()); in testGpuScenario() 237 setExpectedTiming(config.vsyncPeriod, startTime + config.vsyncPeriod); in testGpuScenario() 242 mPowerAdvisor->setGpuStartTime(display1, startTime); in testGpuScenario() 248 TimePoint end = startTime + config.frame1GpuFenceDuration; in testGpuScenario() [all …]
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | Step.java | 34 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()
|
D | SetAmplitudeVibratorStep.java | 42 SetAmplitudeVibratorStep(VibrationStepConductor conductor, long startTime, in SetAmplitudeVibratorStep() argument 46 super(conductor, startTime, controller, effect, index, pendingVibratorOffDeadline); in SetAmplitudeVibratorStep() 62 (SystemClock.uptimeMillis() < startTime) && (controller.getCurrentAmplitude() > 0); in acceptVibratorCompleteCallback() 80 long latency = now - startTime; in play() 90 return Arrays.asList(new SetAmplitudeVibratorStep(conductor, startTime, controller, in play() 99 return nextSteps(startTime, /* segmentsPlayed= */ 1); in play() 105 return nextSteps(startTime, /* segmentsPlayed= */ 1); in play() 115 if (startTime >= mPendingVibratorOffDeadline) { in play() 127 long nextStartTime = startTime + segment.getDuration(); in play()
|
D | RampOffVibratorStep.java | 31 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() 79 startTime + conductor.vibrationSettings.getRampStepDuration(), in play()
|
/frameworks/base/core/java/android/content/ |
D | SyncInfo.java | 55 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/ |
D | UserUsageStatsServiceTest.java | 109 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/core/tests/utiltests/src/android/util/ |
D | SystemConfigFileCommitEventLoggerTest.java | 43 var startTime = SystemClock.uptimeMillis(); in testSimple() local 48 longThat(l -> l <= endTime - startTime)); in testSimple() 54 var startTime = SystemClock.uptimeMillis(); in testMultipleWrong() local 64 l -> l <= endTime1 - startTime)); in testMultipleWrong() 66 l -> l > endTime1 - startTime && l <= endTime2 - startTime)); in testMultipleWrong() 72 var startTime = SystemClock.uptimeMillis(); in testMultipleRight() local 83 l -> l <= endTime1 - startTime)); in testMultipleRight()
|
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/ |
D | BroadcastPerfTest.java | 40 final long startTime = System.nanoTime(); in manifestFgBroadcastRunning() local 46 return endTime - startTime; in manifestFgBroadcastRunning() 56 final long startTime = System.nanoTime(); in manifestFgBroadcastNotRunning() local 62 return endTime - startTime; in manifestFgBroadcastNotRunning() 74 final long startTime = System.nanoTime(); in registeredFgBroadcast() local 80 return endTime - startTime; in registeredFgBroadcast()
|
/frameworks/native/services/surfaceflinger/FrameTracer/ |
D | FrameTracer.cpp | 81 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/hal/hidl/1.0/vts/functional/component/ |
D | VtsHalMediaC2V1_0TargetComponentTest.cpp | 252 int64_t startTime = getNowUs(); in TEST_P() local 254 int64_t timeConsumed = getNowUs() - startTime; in TEST_P() 259 startTime = getNowUs(); in TEST_P() 261 timeConsumed = getNowUs() - startTime; in TEST_P() 268 startTime = getNowUs(); in TEST_P() 270 timeConsumed = getNowUs() - startTime; in TEST_P() 279 startTime = getNowUs(); in TEST_P() 281 timeConsumed = getNowUs() - startTime; in TEST_P() 288 startTime = getNowUs(); in TEST_P() 290 timeConsumed = getNowUs() - startTime; in TEST_P() [all …]
|
/frameworks/av/media/libaaudio/tests/ |
D | test_clock_model.cpp | 153 const int64_t startTime = 100000; in TEST_F() local 154 model.start(startTime); in TEST_F() 156 int64_t position = model.convertTimeToPosition(startTime); in TEST_F() 160 EXPECT_EQ(startTime, time); in TEST_F() 162 time = startTime + (500 * NANOS_PER_MICROSECOND); in TEST_F() 169 const int64_t startTime = 100000000; in TEST_F() local 170 model.start(startTime); in TEST_F() 173 int64_t markerTime = startTime + NANOS_PER_MILLISECOND + (200 * NANOS_PER_MICROSECOND); in TEST_F()
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | ConnectivityManagerTestBase.java | 158 long startTime = SystemClock.uptimeMillis(); in waitForNetworkState() local 165 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForNetworkState() 177 long startTime = SystemClock.uptimeMillis(); in waitForWifiState() local 184 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiState() 196 long startTime = SystemClock.uptimeMillis(); in waitForWifiApState() local 203 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiApState() 221 long startTime = SystemClock.uptimeMillis(); in waitForTetherStateChange() local 224 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForTetherStateChange() 286 long startTime = System.currentTimeMillis(); in pingTest() local 287 while ((System.currentTimeMillis() - startTime) < PING_TIMER) { in pingTest() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | IccRecordsTest.java | 148 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/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | PowerStatsSchedulerTest.java | 114 long startTime = invocation.getArgument(0); in storeAggregatePowerStats() 119 mClock.currentTime - (mMonotonicClock.monotonicTime() - startTime); in storeAggregatePowerStats() 123 assertThat(startTime).isEqualTo(START_REALTIME + 123); in storeAggregatePowerStats() 124 assertThat(endTime - startTime).isAtLeast(TimeUnit.MINUTES.toMillis(30)); in storeAggregatePowerStats() 129 createAggregatedPowerStats(startTime, startTimeWallClock, endTime - startTime)); in storeAggregatePowerStats() 132 long startTime = invocation.getArgument(0); in storeAggregatePowerStats() 137 mClock.currentTime - (mMonotonicClock.monotonicTime() - startTime); in storeAggregatePowerStats() 147 createAggregatedPowerStats(startTime, startTimeWallClock, endTime - startTime)); in storeAggregatePowerStats() 172 assertThat(Instant.ofEpochMilli(timeFrame2.startTime)) in storeAggregatePowerStats()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/concurrency/ |
D | FakeExecutor.java | 102 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/base/services/autofill/java/com/android/server/autofill/ |
D | RemoteFieldClassificationService.java | 73 long startTime, @NonNull FieldClassificationResponse response, in logFieldClassificationEvent() argument 143 final long startTime = SystemClock.elapsedRealtime(); in onFieldClassificationRequest() local 165 startTime, in onFieldClassificationRequest() 195 startTime, in onFieldClassificationRequest() 218 startTime, in onFieldClassificationRequest() 240 long startTime, in logFieldClassificationEvent() argument 249 SystemClock.elapsedRealtime() - startTime); in logFieldClassificationEvent() 255 startTime, response, status); in logFieldClassificationEvent()
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/ |
D | Interaction.java | 109 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/services/oboeservice/ |
D | TimestampScheduler.cpp | 24 void TimestampScheduler::start(int64_t startTime) { in start() argument 25 mStartTime = startTime; in start() 26 mLastTime = startTime; in start()
|
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
D | CustomSurfaceView.java | 60 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/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/ |
D | KeyguardTransitionAnimationFlow.kt | 79 startTime: Duration = 0.milliseconds, in <lambda>() 89 startTime = startTime, in <lambda>() 111 startTime: Duration = 0.milliseconds, in <lambda>() 121 if ((startTime + duration) > transitionDuration) { in <lambda>() 123 "startTime($startTime) + duration($duration) must be" + in <lambda>() 128 val start = (startTime / transitionDuration).toFloat() in <lambda>()
|
/frameworks/av/media/utils/tests/ |
D | TimerThread-test.cpp | 111 auto startTime = std::chrono::steady_clock::now(); in testMultipleTasks() local 135 std::this_thread::sleep_until(startTime + 100ms - kJitter); in testMultipleTasks() 140 std::this_thread::sleep_until(startTime + 100ms + kJitter); in testMultipleTasks() 149 std::this_thread::sleep_until(startTime + 200ms - kJitter); in testMultipleTasks() 154 std::this_thread::sleep_until(startTime + 200ms + kJitter); in testMultipleTasks() 161 std::this_thread::sleep_until(startTime + 300ms - kJitter); in testMultipleTasks() 165 std::this_thread::sleep_until(startTime + 300ms + kJitter); in testMultipleTasks() 177 std::this_thread::sleep_until(startTime + 400ms - kJitter); in testMultipleTasks() 185 std::this_thread::sleep_until(startTime + 400ms + kJitter); in testMultipleTasks()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/ |
D | VisualInterruptionDecisionProviderImplTest.kt | 91 avalancheProvider.startTime = whenAgo(10) in testAvalancheFilter_duringAvalanche_allowConversationFromAfterEvent() 111 avalancheProvider.startTime = whenAgo(10) in testAvalancheFilter_duringAvalanche_suppressConversationFromBeforeEvent() 131 avalancheProvider.startTime = whenAgo(10) in testAvalancheFilter_duringAvalanche_allowHighPriorityConversation() 149 avalancheProvider.startTime = whenAgo(10) in testAvalancheFilter_duringAvalanche_allowCall() 167 avalancheProvider.startTime = whenAgo(10) in testAvalancheFilter_duringAvalanche_allowCategoryReminder() 185 avalancheProvider.startTime = whenAgo(10) in testAvalancheFilter_duringAvalanche_allowCategoryEvent() 203 avalancheProvider.startTime = whenAgo(10) in testAvalancheFilter_duringAvalanche_allowFsi() 215 avalancheProvider.startTime = whenAgo(10) in testAvalancheFilter_duringAvalanche_allowColorized() 233 avalancheProvider.startTime = whenAgo(10) in testAvalancheFilter_duringAvalanche_allowEmergency()
|
/frameworks/base/media/java/android/media/tv/ |
D | AdRequest.java | 92 @Nullable ParcelFileDescriptor fileDescriptor, long startTime, long stopTime, in AdRequest() argument 94 this(id, requestType, fileDescriptor, null, startTime, stopTime, echoInterval, in AdRequest() 98 public AdRequest(int id, @RequestType int requestType, @Nullable Uri uri, long startTime, in AdRequest() argument 100 this(id, requestType, null, uri, startTime, stopTime, echoInterval, null, metadata); in AdRequest() 104 @Nullable ParcelFileDescriptor fileDescriptor, @Nullable Uri uri, long startTime, in AdRequest() argument 110 mStartTime = startTime; in AdRequest()
|
/frameworks/base/tests/ChoreographerTests/jni/ |
D | android_view_tests_ChoreographerNativeTest.cpp | 69 std::chrono::nanoseconds startTime; member 90 if (cb->endTime - cb->startTime > kMaxRuntime) { in vsyncCallback() 134 cb.startTime = now(); in android_view_ChoreographerNativeTest_testPostVsyncCallbackAtFrameRate() 135 ALOGI("%s: Post first callback at %ld", __func__, static_cast<long>(cb.startTime.count())); in android_view_ChoreographerNativeTest_testPostVsyncCallbackAtFrameRate() 143 (static_cast<double>((cb.endTime - cb.startTime).count()) / 1'000'000'000.0); in android_view_ChoreographerNativeTest_testPostVsyncCallbackAtFrameRate() 146 __func__, cb.count, static_cast<long>(cb.startTime.count()), in android_view_ChoreographerNativeTest_testPostVsyncCallbackAtFrameRate()
|
/frameworks/native/libs/binder/ |
D | PermissionController.cpp | 33 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()
|