/frameworks/base/services/tests/selinux/src/com/android/server/selinux/ |
D | RateLimiterTest.java | 44 mMockClock.currentTimeMillis += Duration.ofSeconds(1).toMillis(); in testRateLimiter_1QPS() 56 mMockClock.currentTimeMillis += Duration.ofSeconds(1).dividedBy(2).toMillis(); in testRateLimiter_3QPS() 58 mMockClock.currentTimeMillis += Duration.ofSeconds(1).dividedBy(3).toMillis(); in testRateLimiter_3QPS() 60 mMockClock.currentTimeMillis += Duration.ofSeconds(1).dividedBy(4).toMillis(); in testRateLimiter_3QPS() 75 mMockClock.currentTimeMillis += Duration.ofSeconds(10).toMillis(); in testRateLimiter_infiniteQPS() 83 mMockClock.currentTimeMillis += Duration.ofDays(-10).toMillis(); in testRateLimiter_infiniteQPS() 98 mMockClock.currentTimeMillis += Duration.ofSeconds(1000).toMillis(); in testRateLimiter_negativeQPS() 106 public long currentTimeMillis = 0; field in RateLimiterTest.MockClock 109 public long currentTimeMillis() { in currentTimeMillis() method in RateLimiterTest.MockClock 110 return currentTimeMillis; in currentTimeMillis()
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | UT_reduce.java | 301 final long javaTimeStart = java.lang.System.currentTimeMillis(); in addint1D() 303 final long javaTimeEnd = java.lang.System.currentTimeMillis(); in addint1D() 305 final long rsTimeStart = java.lang.System.currentTimeMillis(); in addint1D() 309 final long copyTimeStart = java.lang.System.currentTimeMillis(); in addint1D() 313 final long kernelTimeStart = java.lang.System.currentTimeMillis(); in addint1D() 315 final long rsTimeEnd = java.lang.System.currentTimeMillis(); in addint1D() 332 final long javaTimeStart = java.lang.System.currentTimeMillis(); in addint2D() 334 final long javaTimeEnd = java.lang.System.currentTimeMillis(); in addint2D() 336 final long rsTimeStart = java.lang.System.currentTimeMillis(); in addint2D() 342 final long copyTimeStart = java.lang.System.currentTimeMillis(); in addint2D() [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | UT_reduce.java | 299 final long javaTimeStart = java.lang.System.currentTimeMillis(); in addint1D() 301 final long javaTimeEnd = java.lang.System.currentTimeMillis(); in addint1D() 303 final long rsTimeStart = java.lang.System.currentTimeMillis(); in addint1D() 307 final long copyTimeStart = java.lang.System.currentTimeMillis(); in addint1D() 311 final long kernelTimeStart = java.lang.System.currentTimeMillis(); in addint1D() 313 final long rsTimeEnd = java.lang.System.currentTimeMillis(); in addint1D() 330 final long javaTimeStart = java.lang.System.currentTimeMillis(); in addint2D() 332 final long javaTimeEnd = java.lang.System.currentTimeMillis(); in addint2D() 334 final long rsTimeStart = java.lang.System.currentTimeMillis(); in addint2D() 340 final long copyTimeStart = java.lang.System.currentTimeMillis(); in addint2D() [all …]
|
/frameworks/libs/systemui/toruslib/torus-core/src/main/java/com/google/android/torus/core/time/ |
D | TimeController.kt | 55 fun resetDeltaTime(currentTimeMillis: Long = SystemClock.elapsedRealtime()) { in resetDeltaTime() 56 lastTimeMillis = currentTimeMillis in resetDeltaTime() 76 fun updateDeltaTime(currentTimeMillis: Long = SystemClock.elapsedRealtime()) { in updateDeltaTime() 77 deltaTimeMillis = currentTimeMillis - lastTimeMillis in updateDeltaTime()
|
/frameworks/layoutlib/bridge/src/android/os/ |
D | SystemClock_Delegate.java | 43 return System_Delegate.currentTimeMillis() - System_Delegate.bootTimeMillis(); in uptimeMillis() 53 return System_Delegate.currentTimeMillis() - System_Delegate.bootTimeMillis(); in elapsedRealtime() 83 return System_Delegate.currentTimeMillis(); in currentThreadTimeMillis() 95 return System_Delegate.currentTimeMillis() * 1000; in currentThreadTimeMicro()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | VelocityTest.java | 52 long t = System.currentTimeMillis(); in testClear() 67 long t = System.currentTimeMillis(); in testDragAcceleration() 78 long t = System.currentTimeMillis(); in testDragDeceleration() 90 long t = System.currentTimeMillis(); in testDragLinearHorizontal() 103 long t = System.currentTimeMillis(); in testDragLinearVertical() 120 long t = System.currentTimeMillis(); in testDragWith2Points() 137 long t = System.currentTimeMillis(); in testStabilityInNbPoints() 159 long t = System.currentTimeMillis(); in testStabilityInTime() 181 long t = System.currentTimeMillis(); in testStabilityInSpace() 203 long t = System.currentTimeMillis(); in testStabilityOfComputation() [all …]
|
/frameworks/rs/tests/java_api/ComputePerf/src/com/example/android/rs/computeperf/ |
D | LaunchTest.java | 42 long t = java.lang.System.currentTimeMillis(); in XLW() 45 t = java.lang.System.currentTimeMillis() - t; in XLW() 50 long t = java.lang.System.currentTimeMillis(); in XYW() 53 t = java.lang.System.currentTimeMillis() - t; in XYW()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | Clock.java | 37 public long currentTimeMillis() { in currentTimeMillis() method in Clock 54 public long currentTimeMillis() { 55 return System.currentTimeMillis();
|
/frameworks/rs/tests/java_api/LatencyBenchmark/src/com/example/android/rs/computebench/ |
D | Benchmark.java | 39 long t = java.lang.System.currentTimeMillis(); in run() 45 t = java.lang.System.currentTimeMillis() - t; in run() 52 t = java.lang.System.currentTimeMillis(); in run() 56 t = java.lang.System.currentTimeMillis() - t; in run()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | FileRotator.java | 189 public void rewriteActive(Rewriter rewriter, long currentTimeMillis) in rewriteActive() argument 191 final String activeName = getActiveName(currentTimeMillis); in rewriteActive() 196 public void combineActive(final Reader reader, final Writer writer, long currentTimeMillis) in combineActive() argument 218 }, currentTimeMillis); in combineActive() 333 private String getActiveName(long currentTimeMillis) { in getActiveName() argument 342 if (info.isActive() && info.startMillis < currentTimeMillis in getActiveName() 353 info.startMillis = currentTimeMillis; in getActiveName() 363 public void maybeRotate(long currentTimeMillis) { in maybeRotate() argument 364 final long rotateBefore = currentTimeMillis - mRotateAgeMillis; in maybeRotate() 365 final long deleteBefore = currentTimeMillis - mDeleteAgeMillis; in maybeRotate() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/ |
D | ImsEnablementTrackerTest.java | 219 System.currentTimeMillis()); in testDisableCommandInDisabledState() 254 System.currentTimeMillis()); in testEnableCommandWithoutTimeoutInDisableState() 294 System.currentTimeMillis()); in testEnableCommandInDisablingState() 312 System.currentTimeMillis()); in testDisablingMessageInDisablingState() 328 System.currentTimeMillis()); in testResetCommandInDisablingState() 354 System.currentTimeMillis()); in testEnablingMessageInEnablingState() 369 System.currentTimeMillis()); in testDisableCommandInEnablingState() 386 System.currentTimeMillis()); in testResetCommandWithEnablingState() 412 System.currentTimeMillis()); in testEnableCommandInResettingState() 430 System.currentTimeMillis()); in testDisableCommandInResettingState() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/usage/ |
D | UserUsageStatsServiceTest.java | 80 "test_" + System.currentTimeMillis()); in setUp() 84 installedPkgs.put(TEST_PACKAGE_NAME, System.currentTimeMillis()); in setUp() 86 mService.init(System.currentTimeMillis(), installedPkgs, true); in setUp() 108 long now = System.currentTimeMillis(); in testReportEvent_eventAppearsInQueries() 128 Event event = new Event(APP_COMPONENT_USED, System.currentTimeMillis()); in testReportEvent_packageUsedEventNotTracked() 135 long now = System.currentTimeMillis(); in testReportEvent_packageUsedEventNotTracked() 163 long now = System.currentTimeMillis(); in testQueryEarliestEventsForPackage() 190 final long event1ReportTime = System.currentTimeMillis(); in testQueryEarliestEventsForPackage_Caching() 195 final long event2ReportTime = System.currentTimeMillis(); in testQueryEarliestEventsForPackage_Caching() 200 long now = System.currentTimeMillis(); in testQueryEarliestEventsForPackage_Caching()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/util/ |
D | BurnInHelper.kt | 35 return zigzag(System.currentTimeMillis() / MILLIS_PER_MINUTES, in getBurnInOffset() 45 return zigzag(System.currentTimeMillis() / MILLIS_PER_MINUTES, in getBurnInProgressOffset() 53 return 0.8f + zigzag(System.currentTimeMillis() / MILLIS_PER_MINUTES, in getBurnInScale()
|
/frameworks/base/services/core/java/com/android/server/ |
D | SystemClockTime.java | 98 long currentTimeMillis = getCurrentTimeMillis(); in initializeIfRequired() local 99 if (currentTimeMillis < systemBuildTime) { in initializeIfRequired() 100 String logMsg = "Current time only " + currentTimeMillis in initializeIfRequired() 144 return System.currentTimeMillis(); in getCurrentTimeMillis()
|
D | MountServiceIdler.java | 107 if (System.currentTimeMillis() > today3AM && System.currentTimeMillis() < today4AM) { in scheduleIdlePass() 110 nextScheduleTime = tomorrow3AM - System.currentTimeMillis(); // 3AM tomorrow in scheduleIdlePass() 123 calendar.setTimeInMillis(System.currentTimeMillis()); in offsetFromTodayMidnight()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyLogger.java | 446 data.timeStamp = System.currentTimeMillis(); in uidStateChanged() 456 data.timeStamp = System.currentTimeMillis(); in event() 470 data.timeStamp = System.currentTimeMillis(); in networkBlocked() 482 data.timeStamp = System.currentTimeMillis(); in uidPolicyChanged() 493 data.timeStamp = System.currentTimeMillis(); in meterednessChanged() 503 data.timeStamp = System.currentTimeMillis(); in userRemoved() 514 data.timeStamp = System.currentTimeMillis(); in restrictBackgroundChanged() 524 data.timeStamp = System.currentTimeMillis(); in deviceIdleModeEnabled() 535 data.timeStamp = System.currentTimeMillis(); in appIdleStateChanged() 546 data.timeStamp = System.currentTimeMillis(); in appIdleWlChanged() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/data/repository/ |
D | PackageUpdateMonitor.kt | 97 timeMillis = systemClock.currentTimeMillis() in <lambda>() 108 timeMillis = systemClock.currentTimeMillis() in <lambda>() 123 timeMillis = systemClock.currentTimeMillis() in <lambda>() 135 timeMillis = systemClock.currentTimeMillis() in <lambda>() 146 timeMillis = systemClock.currentTimeMillis() in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/common/data/repository/ |
D | FakePackageChangeRepository.kt | 60 timeMillis = systemClock.currentTimeMillis(), in notifyInstall() 74 timeMillis = systemClock.currentTimeMillis(), in notifyUpdateStarted() 88 timeMillis = systemClock.currentTimeMillis(), in notifyUpdateFinished() 102 timeMillis = systemClock.currentTimeMillis(), in notifyUninstall()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | RankingHelperTest.java | 170 null, System.currentTimeMillis()), getLowChannel()); in setUp() 180 null, System.currentTimeMillis()), getLowChannel()); in setUp() 188 null, System.currentTimeMillis()), getLowChannel()); in setUp() 196 null, System.currentTimeMillis()), getLowChannel()); in setUp() 205 null, System.currentTimeMillis()), getLowChannel()); in setUp() 258 0, n, UserHandle.ALL, null, System.currentTimeMillis()); in generateRecord() 324 null, System.currentTimeMillis()), getLowChannel()); in testGroupNotifications_highestIsProxy() 330 null, System.currentTimeMillis()), getLowChannel()); in testGroupNotifications_highestIsProxy() 340 null, System.currentTimeMillis()), getDefaultChannel()); in testGroupNotifications_highestIsProxy() 390 mUser, null, System.currentTimeMillis()), getLowChannel()); in testSort_oldWhenChildren_unspecifiedSummary() [all …]
|
/frameworks/ex/common/java/com/android/common/ |
D | OperationScheduler.java | 162 long now = currentTimeMillis(); in getNextTimeMillis() 256 .putLong(PREFIX + "moratoriumSetTimeMillis", currentTimeMillis())); in setMoratoriumTimeMillis() 270 setMoratoriumTimeMillis(ms + currentTimeMillis()); in setMoratoriumTimeHttp() 306 .putLong(PREFIX + "lastSuccessTimeMillis", currentTimeMillis())); in onSuccess() 316 editor.putLong(PREFIX + "lastErrorTimeMillis", currentTimeMillis()); in onTransientError() 383 protected long currentTimeMillis() { in currentTimeMillis() method in OperationScheduler 384 return System.currentTimeMillis(); in currentTimeMillis()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | TraceTest.java | 111 long start = System.currentTimeMillis(); in testNativeTracingFromJava() 119 long end = System.currentTimeMillis(); in testNativeTracingFromJava() 132 long start = System.currentTimeMillis(); in disableTestNativeTracingFromC() 134 long end = System.currentTimeMillis(); in disableTestNativeTracingFromC() 148 long start = System.currentTimeMillis(); in testMethodTracing() 152 long end = System.currentTimeMillis(); in testMethodTracing()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | HearingAidStatsLogUtilsTest.java | 93 final long todayStartOfDay = convertToStartOfDayTime(System.currentTimeMillis()); in addCurrentTimeToHistory_addNewData() 105 final long todayStartOfDay = convertToStartOfDayTime(System.currentTimeMillis()); in addCurrentTimeToHistory_skipSameDateData() 118 final long todayStartOfDay = convertToStartOfDayTime(System.currentTimeMillis()); in addCurrentTimeToHistory_cleanUpExpiredData() 180 final long todayStartOfDay = convertToStartOfDayTime(System.currentTimeMillis()); in prepareHearingAidsUserHistory() 189 final long todayStartOfDay = convertToStartOfDayTime(System.currentTimeMillis()); in prepareHearableDevicesUserHistory() 198 final long todayStartOfDay = convertToStartOfDayTime(System.currentTimeMillis()); in prepareNewUserHistory()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/blob/ |
D | BlobStoreManagerServiceTest.java | 142 "label1", System.currentTimeMillis() + 10000, "tag1"); in testHandlePackageRemoved() 151 "label2", System.currentTimeMillis() + 20000, "tag2"); in testHandlePackageRemoved() 160 "label3", System.currentTimeMillis() - 1000, "tag3"); in testHandlePackageRemoved() 236 doReturn(System.currentTimeMillis() - SESSION_EXPIRY_TIMEOUT_MS + 1000) in testHandleIdleMaintenance_deleteStaleSessions() 240 "label1", System.currentTimeMillis() - 1000, "tag1"); in testHandleIdleMaintenance_deleteStaleSessions() 246 doReturn(System.currentTimeMillis() - 20000) in testHandleIdleMaintenance_deleteStaleSessions() 250 "label2", System.currentTimeMillis() + 20000, "tag2"); in testHandleIdleMaintenance_deleteStaleSessions() 256 doReturn(System.currentTimeMillis() - SESSION_EXPIRY_TIMEOUT_MS - 2000) in testHandleIdleMaintenance_deleteStaleSessions() 260 "label3", System.currentTimeMillis() + 30000, "tag3"); in testHandleIdleMaintenance_deleteStaleSessions() 289 "label1", System.currentTimeMillis() - 2000, "tag1"); in testHandleIdleMaintenance_deleteStaleBlobs() [all …]
|
/frameworks/base/telecomm/java/android/telecom/Logging/ |
D | SessionManager.java | 155 System.currentTimeMillis(), false, callerIdentification); in startSession() 184 sessionInfo.methodPath, System.currentTimeMillis(), in startExternalSession() 228 threadSession.getShortMethodName(), System.currentTimeMillis(), in createSubsession() 290 subsession.setExecutionStartTimeMs(System.currentTimeMillis()); in continueSession() 319 completedSession.markSessionCompleted(System.currentTimeMillis()); in endSession() 355 System.currentTimeMillis() - subsession.getExecutionStartTimeMilliseconds(); in endParentSessions() 363 System.currentTimeMillis() - subsession.getExecutionStartTimeMilliseconds(); in endParentSessions() 430 long currentTimeMs = System.currentTimeMillis(); in cleanupStaleSessions()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/ |
D | CallbackHandler.java | 123 .append(SSDF.format(System.currentTimeMillis())).append(",") in setWifiIndicators() 137 .append(SSDF.format(System.currentTimeMillis())).append(",") in setMobileDataIndicators() 160 .append(SSDF.format(System.currentTimeMillis())).append(",") in setConnectivityStatus() 183 .append(SSDF.format(System.currentTimeMillis())).append(",") in setCallIndicator() 204 .append(SSDF.format(System.currentTimeMillis())).append(",") in setSubs() 230 .append(SSDF.format(System.currentTimeMillis())).append(",") in setEthernetIndicators() 247 .append(SSDF.format(System.currentTimeMillis())).append(",") in setIsAirplaneMode()
|