Home
last modified time | relevance | path

Searched refs:currentTimeMillis (Results 1 – 25 of 233) sorted by relevance

12345678910

/cts/tests/tests/os/src/android/os/cts/
DConditionVariableTest.java47 long time = System.currentTimeMillis(); in testConditionVariable()
49 assertTrue(System.currentTimeMillis() - time < TOLERANCE_MS); in testConditionVariable()
53 time = System.currentTimeMillis(); in testConditionVariable()
55 assertTrue(System.currentTimeMillis() - time >= BLOCK_TIME); in testConditionVariable()
58 time = System.currentTimeMillis(); in testConditionVariable()
73 long timeDelta = System.currentTimeMillis() - time; in testConditionVariable()
77 time = System.currentTimeMillis(); in testConditionVariable()
DFileAccessPermissionTest.java113 File newFile = new File(dir, System.currentTimeMillis() + "test.txt"); in testAccessAppDataDir()
143 File sdcardFile = new File(sdcardDir, System.currentTimeMillis() + "test.txt"); in testExternalStorageAccess()
151 File sdcardSubDir = new File(sdcardDir, System.currentTimeMillis() + "test"); in testExternalStorageAccess()
153 File sdcardSubDirFile = new File(sdcardSubDir, System.currentTimeMillis() + "test.txt"); in testExternalStorageAccess()
172 File sdcardFile = new File(sdcardDir, System.currentTimeMillis() + "test.txt"); in testNoExternalStorageAccess()
DTokenWatcherTest.java192 long time = System.currentTimeMillis(); in waitUntilAcquired()
193 while (System.currentTimeMillis() - time < OVERTIME) { in waitUntilAcquired()
203 long time = System.currentTimeMillis(); in waitUntilReleased()
204 while (System.currentTimeMillis() - time < OVERTIME) { in waitUntilReleased()
/cts/tests/openglperf2/jni/reference/
DReferenceRenderer.cpp36 double start = GLUtils::currentTimeMillis(); in setUp()
40 mSetUpTimes[0] = GLUtils::currentTimeMillis() - start; in setUp()
50 times[0] = GLUtils::currentTimeMillis(); in setUp()
52 times[1] = GLUtils::currentTimeMillis(); in setUp()
54 times[2] = GLUtils::currentTimeMillis(); in setUp()
56 times[3] = GLUtils::currentTimeMillis(); in setUp()
DGLReference.cpp45 double t0 = GLUtils::currentTimeMillis(); in Java_android_opengl2_cts_reference_GLGameActivity_startBenchmark()
47 double t1 = GLUtils::currentTimeMillis(); in Java_android_opengl2_cts_reference_GLGameActivity_startBenchmark()
49 double t2 = GLUtils::currentTimeMillis(); in Java_android_opengl2_cts_reference_GLGameActivity_startBenchmark()
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyGenParameterSpecTest.java75 Date certNotBeforeDate = new Date(System.currentTimeMillis()); in testSettersReflectedInGetters()
76 Date certNotAfterDate = new Date(System.currentTimeMillis() + 12345678); in testSettersReflectedInGetters()
77 Date keyValidityStartDate = new Date(System.currentTimeMillis() - 2222222); in testSettersReflectedInGetters()
78 Date keyValidityEndDateForOrigination = new Date(System.currentTimeMillis() + 11111111); in testSettersReflectedInGetters()
79 Date keyValidityEndDateForConsumption = new Date(System.currentTimeMillis() + 33333333); in testSettersReflectedInGetters()
147 Date date = new Date(System.currentTimeMillis() + 555555); in testSetKeyValidityEndDateAppliesToBothEndDates()
190 Date certNotBeforeDate = new Date(System.currentTimeMillis()); in testImmutabilityViaSetterParams()
192 Date certNotAfterDate = new Date(System.currentTimeMillis() + 12345678); in testImmutabilityViaSetterParams()
194 Date keyValidityStartDate = new Date(System.currentTimeMillis() - 2222222); in testImmutabilityViaSetterParams()
196 Date keyValidityEndDateForOrigination = new Date(System.currentTimeMillis() + 11111111); in testImmutabilityViaSetterParams()
[all …]
DKeyProtectionTest.java58 Date keyValidityStartDate = new Date(System.currentTimeMillis() - 2222222); in testSettersReflectedInGetters()
59 Date keyValidityEndDateForOrigination = new Date(System.currentTimeMillis() + 11111111); in testSettersReflectedInGetters()
60 Date keyValidityEndDateForConsumption = new Date(System.currentTimeMillis() + 33333333); in testSettersReflectedInGetters()
102 Date date = new Date(System.currentTimeMillis() + 555555); in testSetKeyValidityEndDateAppliesToBothEndDates()
145 Date keyValidityStartDate = new Date(System.currentTimeMillis() - 2222222); in testImmutabilityViaSetterParams()
147 Date keyValidityEndDateForOrigination = new Date(System.currentTimeMillis() + 11111111); in testImmutabilityViaSetterParams()
150 Date keyValidityEndDateForConsumption = new Date(System.currentTimeMillis() + 33333333); in testImmutabilityViaSetterParams()
220 .setKeyValidityStart(new Date(System.currentTimeMillis() - 2222222)) in testImmutabilityViaGetterReturnValues()
221 .setKeyValidityForOriginationEnd(new Date(System.currentTimeMillis() + 11111111)) in testImmutabilityViaGetterReturnValues()
222 .setKeyValidityForConsumptionEnd(new Date(System.currentTimeMillis() + 33333333)) in testImmutabilityViaGetterReturnValues()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerUsageTest.java59 tobj.set(System.currentTimeMillis()); in generateRandomId()
111 final long start1 = System.currentTimeMillis() - USAGE_STATS_RANGE_ALLOWANCE; in testReportShortcutUsed()
113 final long end1 = System.currentTimeMillis() + USAGE_STATS_RANGE_ALLOWANCE; in testReportShortcutUsed()
120 final long start2 = System.currentTimeMillis() - USAGE_STATS_RANGE_ALLOWANCE; in testReportShortcutUsed()
122 final long end2 = System.currentTimeMillis() + USAGE_STATS_RANGE_ALLOWANCE; in testReportShortcutUsed()
129 final long start3 = System.currentTimeMillis() - USAGE_STATS_RANGE_ALLOWANCE; in testReportShortcutUsed()
132 final long end3 = System.currentTimeMillis() + USAGE_STATS_RANGE_ALLOWANCE; in testReportShortcutUsed()
/cts/tests/tests/net/src/android/net/http/cts/
DSslCertificateTest.java86 return new Date(System.currentTimeMillis()); in getNotAfter()
91 return new Date(System.currentTimeMillis() - 1000); in getNotBefore()
190 Date date1 = new Date(System.currentTimeMillis() - 1000); in testState()
191 Date date2 = new Date(System.currentTimeMillis()); in testState()
212 Date date1 = new Date(System.currentTimeMillis() - 1000); in testSslCertificate()
213 Date date2 = new Date(System.currentTimeMillis()); in testSslCertificate()
239 Date validNotBefore = new Date(System.currentTimeMillis() - 1000); in testGetX509Certificate()
240 Date validNotAfter = new Date(System.currentTimeMillis()); in testGetX509Certificate()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DAdminActionBookkeepingTest.java77 long timeBefore = System.currentTimeMillis(); in testRetrieveSecurityLogs()
79 long timeAfter = System.currentTimeMillis(); in testRetrieveSecurityLogs()
87 timeBefore = System.currentTimeMillis(); in testRetrieveSecurityLogs()
90 timeAfter = System.currentTimeMillis(); in testRetrieveSecurityLogs()
117 final long timeBefore = System.currentTimeMillis(); in testRequestBugreport()
119 final long timeAfter = System.currentTimeMillis(); in testRequestBugreport()
164 long timeBefore = System.currentTimeMillis(); in testGetLastNetworkLogRetrievalTime()
166 long timeAfter = System.currentTimeMillis(); in testGetLastNetworkLogRetrievalTime()
DCreateAndManageUserTest.java75 String testUserName = "TestUser_" + System.currentTimeMillis(); in testCreateAndManageUser()
87 String testUserName = "TestUser_" + System.currentTimeMillis(); in testCreateAndManageUser_LowStorage()
103 String testUserName = "TestUser_" + System.currentTimeMillis(); in testCreateAndManageUser_MaxUsers()
132 String testUserName = "TestUser_" + System.currentTimeMillis(); in testCreateAndManageUser_GetSecondaryUsers()
151 String testUserName = "TestUser_" + System.currentTimeMillis(); in testCreateAndManageUser_SwitchUser()
176 String testUserName = "TestUser_" + System.currentTimeMillis(); in testCreateAndManageUser_CannotStopCurrentUser()
203 String testUserName = "TestUser_" + System.currentTimeMillis(); in testCreateAndManageUser_StartInBackground()
228 String testUserName = "TestUser_" + System.currentTimeMillis(); in testCreateAndManageUser_StartInBackground_MaxRunningUsers()
247 String testUserName = "TestUser_" + System.currentTimeMillis(); in testCreateAndManageUser_StopUser()
276 String testUserName = "TestUser_" + System.currentTimeMillis(); in testCreateAndManageUser_StopEphemeralUser_DisallowRemoveUser()
[all …]
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java197 final long startTime = System.currentTimeMillis(); in testOrderedActivityLaunchSequenceInEventLog()
200 final long endTime = System.currentTimeMillis(); in testOrderedActivityLaunchSequenceInEventLog()
254 final long startTime = System.currentTimeMillis(); in testActivityOnButton()
259 final long endTime = System.currentTimeMillis(); in testActivityOnButton()
280 long endTime = System.currentTimeMillis(); in testAppLaunchCount()
288 endTime = System.currentTimeMillis(); in testAppLaunchCount()
297 endTime = System.currentTimeMillis(); in testAppLaunchCount()
307 final long startTime = System.currentTimeMillis(); in testStandbyBucketChangeLog()
310 final long endTime = System.currentTimeMillis(); in testStandbyBucketChangeLog()
356 final long start = System.currentTimeMillis() - 2_000; in testQueryEventsForSelf()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContactsProvider2_AccountRemovalTest.java70 assertContactsDeletedEventually(System.currentTimeMillis(), acc2Ids); in testAccountRemoval_deletesContacts()
73 assertContactsDeletedEventually(System.currentTimeMillis(), acc1Ids); in testAccountRemoval_deletesContacts()
82 long start = System.currentTimeMillis(); in testAccountRemoval_hasDeleteLogsForContacts()
86 start = System.currentTimeMillis(); in testAccountRemoval_hasDeleteLogsForContacts()
99 assertContactsDeletedEventually(System.currentTimeMillis(), idList); in testAccountRemovalWithMergedContact_deletesContacts()
113 long start = System.currentTimeMillis(); in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated()
127 long start = System.currentTimeMillis(); in testAccountRemovalWithMergedContact_hasDeleteLogsForContacts()
142 long mergedContactId = assertMerged(System.currentTimeMillis(), ids1.mRawContactId, in createAndAssertMergedContact()
227 long now = System.currentTimeMillis(); in assertWithinTimeoutLimit()
/cts/tests/app/src/android/app/cts/
DAlarmManagerTest.java125 mWakeupTime = System.currentTimeMillis() + SNOOZE_DELAY; in testSetTypes()
137 mWakeupTime = System.currentTimeMillis() + SNOOZE_DELAY; in testSetTypes()
190 final long now = System.currentTimeMillis(); in testExactAlarmBatching()
210 long timeToExact = Math.max(exactStart - System.currentTimeMillis() + 1000, 1000); in testExactAlarmBatching()
234 mWakeupTime = System.currentTimeMillis() + TEST_ALARM_FUTURITY; in testSetRepeating()
264 final long when1 = System.currentTimeMillis() + TEST_ALARM_FUTURITY; in testCancel()
285 mAm.setInexactRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), in testSetInexactRepeating()
287 SystemClock.setCurrentTimeMillis(System.currentTimeMillis() in testSetInexactRepeating()
301 final long wakeupTimeFirst = System.currentTimeMillis() in testSetAlarmClock()
311 final long wakeupTimeSecond = System.currentTimeMillis() in testSetAlarmClock()
/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/
DSensorOperationTest.java53 long start = System.currentTimeMillis(); in testFakeSensorOperation()
55 long duration = System.currentTimeMillis() - start; in testFakeSensorOperation()
79 long startMs = System.currentTimeMillis();
81 long durationMs = System.currentTimeMillis() - startMs;
103 long start = System.currentTimeMillis();
105 long durationMs = System.currentTimeMillis() - start;
214 long start = System.currentTimeMillis();
216 long duration = System.currentTimeMillis() - start;
303 long start = System.currentTimeMillis();
305 long duration = System.currentTimeMillis() - start;
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DRegexUtils.java63 long start = System.currentTimeMillis(); in assertFind()
65 long duration = System.currentTimeMillis() - start; in assertFind()
109 expireTime = System.currentTimeMillis() + timeout; in TimeoutCharSequence()
114 if (System.currentTimeMillis() > expireTime) { in charAt()
129 expireTime - System.currentTimeMillis()); in subSequence()
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/
DHdmiCecClientWrapper.java215 long startTime = System.currentTimeMillis(); in checkConsoleOutput()
226 endTime = System.currentTimeMillis(); in checkConsoleOutput()
236 long startTime = System.currentTimeMillis(); in getAllMessages()
252 endTime = System.currentTimeMillis(); in getAllMessages()
295 long startTime = System.currentTimeMillis(); in checkExpectedOutput()
310 endTime = System.currentTimeMillis(); in checkExpectedOutput()
336 long startTime = System.currentTimeMillis(); in checkOutputDoesNotContainMessage()
352 endTime = System.currentTimeMillis(); in checkOutputDoesNotContainMessage()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DNetworkCallbackTest.java150 final long deadline = System.currentTimeMillis() + TEST_CALLBACK_TIMEOUT_MS; in expectBlockedStatusCallbackEventually()
152 final CallbackInfo cb = nextCallback((int) (deadline - System.currentTimeMillis())); in expectBlockedStatusCallbackEventually()
158 } while (System.currentTimeMillis() <= deadline); in expectBlockedStatusCallbackEventually()
164 final long deadline = System.currentTimeMillis() + TEST_CALLBACK_TIMEOUT_MS; in expectCapabilitiesCallbackEventually()
166 final CallbackInfo cb = nextCallback((int) (deadline - System.currentTimeMillis())); in expectCapabilitiesCallbackEventually()
176 } while (System.currentTimeMillis() <= deadline); in expectCapabilitiesCallbackEventually()
/cts/tests/tests/media/src/android/media/cts/
DAudioRecordTest.java201 long time = System.currentTimeMillis(); in testAudioRecordOP()
204 while (System.currentTimeMillis() - time < RECORD_TIME) { in testAudioRecordOP()
216 time = System.currentTimeMillis(); in testAudioRecordOP()
219 while (System.currentTimeMillis() - time < RECORD_TIME) { in testAudioRecordOP()
231 time = System.currentTimeMillis(); in testAudioRecordOP()
234 while (System.currentTimeMillis() - time < RECORD_TIME) { in testAudioRecordOP()
254 time = System.currentTimeMillis(); in testAudioRecordOP()
257 while (System.currentTimeMillis() - time < RECORD_TIME) { in testAudioRecordOP()
770 long startTime = System.currentTimeMillis(); in testSynchronizedRecord()
800 firstSampleTime = System.currentTimeMillis(); in testSynchronizedRecord()
[all …]
DSafeWaitObject.java33 final long timeOutTime = java.lang.System.currentTimeMillis() + millis; in safeWait()
36 final long timeToWait = timeOutTime - java.lang.System.currentTimeMillis(); in safeWait()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
DSimpleReaderActivity.java107 long startTime = System.currentTimeMillis(); in onTagDiscovered()
111 long apduStartTime = System.currentTimeMillis(); in onTagDiscovered()
113 long apduEndTime = System.currentTimeMillis(); in onTagDiscovered()
131 Long.toString(System.currentTimeMillis() - startTime) + " ms.\n\n"); in onTagDiscovered()
141 Long.toString(System.currentTimeMillis() - startTime) + " ms.\n\n"); in onTagDiscovered()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/
DTimeout.java31 mExpiredTime = System.currentTimeMillis() + msec; in Timeout()
48 long t = mExpiredTime - System.currentTimeMillis(); in getRemainTime()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/offhost/
DSimpleOffhostReaderActivity.java128 long startTime = System.currentTimeMillis(); in onTagDiscovered()
132 long apduStartTime = System.currentTimeMillis(); in onTagDiscovered()
134 long apduEndTime = System.currentTimeMillis(); in onTagDiscovered()
157 Long.toString(System.currentTimeMillis() - startTime) + " ms.\n\n"); in onTagDiscovered()
167 Long.toString(System.currentTimeMillis() - startTime) + " ms.\n\n"); in onTagDiscovered()
/cts/hostsidetests/jdwpsecurity/app/src/com/android/cts/jdwpsecurity/
DJdwpTest.java31 long start = System.currentTimeMillis(); in main()
38 return System.currentTimeMillis() - start; in getElapsedTime()
/cts/hostsidetests/multiuser/src/android/host/multiuser/
DCreateUsersNoAppCrashesTest.java60 "TestUser_" + System.currentTimeMillis() /* name */, in testCanCreateGuestUser()
74 "TestUser_" + System.currentTimeMillis() /* name */, in testCanCreateSecondaryUser()
110 long ti = System.currentTimeMillis(); in waitForUserSwitchComplete()
111 while (System.currentTimeMillis() - ti < USER_SWITCH_COMPLETE_TIMEOUT_MS) { in waitForUserSwitchComplete()

12345678910