Home
last modified time | relevance | path

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

12345678910>>...12

/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()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerUsageTest.java65 tobj.set(System.currentTimeMillis()); in generateRandomId()
115 final long start1 = System.currentTimeMillis() - USAGE_STATS_RANGE_ALLOWANCE; in testReportShortcutUsed()
117 final long end1 = System.currentTimeMillis() + USAGE_STATS_RANGE_ALLOWANCE; in testReportShortcutUsed()
123 final long start2 = System.currentTimeMillis() - USAGE_STATS_RANGE_ALLOWANCE; in testReportShortcutUsed()
125 final long end2 = System.currentTimeMillis() + USAGE_STATS_RANGE_ALLOWANCE; in testReportShortcutUsed()
131 final long start3 = System.currentTimeMillis() - USAGE_STATS_RANGE_ALLOWANCE; in testReportShortcutUsed()
134 final long end3 = System.currentTimeMillis() + USAGE_STATS_RANGE_ALLOWANCE; in testReportShortcutUsed()
152 final long start = System.currentTimeMillis() - USAGE_STATS_RANGE_ALLOWANCE; in testShortcutInvocationEventIsVisible()
154 final long end = System.currentTimeMillis() + USAGE_STATS_RANGE_ALLOWANCE; in testShortcutInvocationEventIsVisible()
169 final long start = System.currentTimeMillis() - USAGE_STATS_RANGE_ALLOWANCE; in testShortcutInvocationEventIsNotVisible()
[all …]
/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/apache-http/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/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContactsProvider2_AccountRemovalTest.java92 assertContactsDeletedEventually(System.currentTimeMillis(), acc2Ids); in testAccountRemoval_deletesContacts()
95 assertContactsDeletedEventually(System.currentTimeMillis(), acc1Ids); in testAccountRemoval_deletesContacts()
104 long start = System.currentTimeMillis(); in testAccountRemoval_hasDeleteLogsForContacts()
108 start = System.currentTimeMillis(); in testAccountRemoval_hasDeleteLogsForContacts()
121 assertContactsDeletedEventually(System.currentTimeMillis(), idList); in testAccountRemovalWithMergedContact_deletesContacts()
148 assertContactsDeletedEventually(System.currentTimeMillis(), acc1Ids); in testAccountRemoval_doesNotDeleteLocalAccountContacts()
179 assertContactsDeletedEventually(System.currentTimeMillis(), acc1Ids); in testAccountRemoval_doesNotDeleteSimAccountContacts()
216 assertContactsDeletedEventually(System.currentTimeMillis(), acc1Ids); in testRemoveSimAccount_deleteSimAccountContacts()
217 assertContactsDeletedEventually(System.currentTimeMillis(), acc2Ids); in testRemoveSimAccount_deleteSimAccountContacts()
234 long start = System.currentTimeMillis(); in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated()
[all …]
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyGenParameterSpecTest.java82 Date certNotBeforeDate = new Date(System.currentTimeMillis()); in testSettersReflectedInGetters()
83 Date certNotAfterDate = new Date(System.currentTimeMillis() + 12345678); in testSettersReflectedInGetters()
84 Date keyValidityStartDate = new Date(System.currentTimeMillis() - 2222222); in testSettersReflectedInGetters()
85 Date keyValidityEndDateForOrigination = new Date(System.currentTimeMillis() + 11111111); in testSettersReflectedInGetters()
86 Date keyValidityEndDateForConsumption = new Date(System.currentTimeMillis() + 33333333); in testSettersReflectedInGetters()
160 Date date = new Date(System.currentTimeMillis() + 555555); in testSetKeyValidityEndDateAppliesToBothEndDates()
203 Date certNotBeforeDate = new Date(System.currentTimeMillis()); in testImmutabilityViaSetterParams()
205 Date certNotAfterDate = new Date(System.currentTimeMillis() + 12345678); in testImmutabilityViaSetterParams()
207 Date keyValidityStartDate = new Date(System.currentTimeMillis() - 2222222); in testImmutabilityViaSetterParams()
209 Date keyValidityEndDateForOrigination = new Date(System.currentTimeMillis() + 11111111); in testImmutabilityViaSetterParams()
[all …]
DKeyInfoTest.java41 Date keyValidityStartDate = new Date(System.currentTimeMillis() - 2222222); in testImmutabilityViaGetterReturnValues()
42 Date keyValidityEndDateForOrigination = new Date(System.currentTimeMillis() + 11111111); in testImmutabilityViaGetterReturnValues()
43 Date keyValidityEndDateForConsumption = new Date(System.currentTimeMillis() + 33333333); in testImmutabilityViaGetterReturnValues()
107 Date keyValidityStartDate = new Date(System.currentTimeMillis() - 2222222); in testLimitedUseKey()
108 Date keyValidityEndDateForOrigination = new Date(System.currentTimeMillis() + 11111111); in testLimitedUseKey()
109 Date keyValidityEndDateForConsumption = new Date(System.currentTimeMillis() + 33333333); in testLimitedUseKey()
DKeyProtectionTest.java62 Date keyValidityStartDate = new Date(System.currentTimeMillis() - 2222222); in testSettersReflectedInGetters()
63 Date keyValidityEndDateForOrigination = new Date(System.currentTimeMillis() + 11111111); in testSettersReflectedInGetters()
64 Date keyValidityEndDateForConsumption = new Date(System.currentTimeMillis() + 33333333); in testSettersReflectedInGetters()
114 Date date = new Date(System.currentTimeMillis() + 555555); in testSetKeyValidityEndDateAppliesToBothEndDates()
157 Date keyValidityStartDate = new Date(System.currentTimeMillis() - 2222222); in testImmutabilityViaSetterParams()
159 Date keyValidityEndDateForOrigination = new Date(System.currentTimeMillis() + 11111111); in testImmutabilityViaSetterParams()
162 Date keyValidityEndDateForConsumption = new Date(System.currentTimeMillis() + 33333333); in testImmutabilityViaSetterParams()
232 .setKeyValidityStart(new Date(System.currentTimeMillis() - 2222222)) in testImmutabilityViaGetterReturnValues()
233 .setKeyValidityForOriginationEnd(new Date(System.currentTimeMillis() + 11111111)) in testImmutabilityViaGetterReturnValues()
234 .setKeyValidityForConsumptionEnd(new Date(System.currentTimeMillis() + 33333333)) in testImmutabilityViaGetterReturnValues()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java257 final long startTime = System.currentTimeMillis(); in testLastTimeAnyComponentUsed_launchActivityShouldBeDetected()
259 final long endTime = System.currentTimeMillis(); in testLastTimeAnyComponentUsed_launchActivityShouldBeDetected()
270 final long startTime = System.currentTimeMillis(); in testLastTimeAnyComponentUsed_bindServiceShouldBeDetected()
272 final long endTime = System.currentTimeMillis(); in testLastTimeAnyComponentUsed_bindServiceShouldBeDetected()
301 final long startTime = System.currentTimeMillis(); in testLastTimeAnyComponentUsed_JobServiceShouldBeIgnored()
306 startTime, System.currentTimeMillis()); in testLastTimeAnyComponentUsed_JobServiceShouldBeIgnored()
345 final long startTime = System.currentTimeMillis(); in testOrderedActivityLaunchSequenceInEventLog()
348 final long endTime = System.currentTimeMillis(); in testOrderedActivityLaunchSequenceInEventLog()
402 final long startTime = System.currentTimeMillis(); in testActivityOnButton()
407 final long endTime = System.currentTimeMillis(); in testActivityOnButton()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/offhost/
DSimpleOffhostReaderActivity.java135 startTime = System.currentTimeMillis(); in onTagDiscovered()
158 long apduStartTime = System.currentTimeMillis(); in onTagDiscovered()
161 long apduEndTime = System.currentTimeMillis(); in onTagDiscovered()
177 startTime = System.currentTimeMillis(); in onTagDiscovered()
185 long apduStartTime = System.currentTimeMillis(); in onTagDiscovered()
188 long apduEndTime = System.currentTimeMillis(); in onTagDiscovered()
207 startTime = System.currentTimeMillis(); in onTagDiscovered()
213 long apduStartTime = System.currentTimeMillis(); in onTagDiscovered()
215 long apduEndTime = System.currentTimeMillis(); in onTagDiscovered()
226 Long.toString(System.currentTimeMillis() - startTime) + " ms.\n\n"); in onTagDiscovered()
[all …]
/cts/tests/app/AppExitTest/src/android/app/cts/
DActivityManagerAppExitInfoTest.java372 long now = System.currentTimeMillis(); in testExitCode()
376 long now2 = System.currentTimeMillis(); in testExitCode()
444 long now = System.currentTimeMillis(); in testLmkdKill()
478 long now2 = System.currentTimeMillis(); in testLmkdKill()
495 long now = System.currentTimeMillis(); in testKillBySignal()
500 long now2 = System.currentTimeMillis(); in testKillBySignal()
533 long now = System.currentTimeMillis(); in testAnr()
560 long now2 = System.currentTimeMillis(); in testAnr()
657 long now = System.currentTimeMillis(); in testOther()
669 long now2 = System.currentTimeMillis(); in testOther()
[all …]
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DUriGrantsTest.java118 long before = System.currentTimeMillis(); in testGrantPersistableUriPermission()
120 long after = System.currentTimeMillis(); in testGrantPersistableUriPermission()
146 before = System.currentTimeMillis(); in testGrantPersistableUriPermission()
148 after = System.currentTimeMillis(); in testGrantPersistableUriPermission()
152 before = System.currentTimeMillis(); in testGrantPersistableUriPermission()
155 after = System.currentTimeMillis(); in testGrantPersistableUriPermission()
246 long before = System.currentTimeMillis(); in testGrantPersistablePrefixUriPermission()
248 long after = System.currentTimeMillis(); in testGrantPersistablePrefixUriPermission()
299 long before = System.currentTimeMillis(); in testDirectGrantRevokeUriPermission()
301 long after = System.currentTimeMillis(); in testDirectGrantRevokeUriPermission()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DActivityTransitionTests.java85 transitionStartTime[0] = System.currentTimeMillis(); in testActivityTransitionDurationNoShortenAsExpected()
89 transitionEndTime[0] = System.currentTimeMillis(); in testActivityTransitionDurationNoShortenAsExpected()
128 transitionStartTime[0] = System.currentTimeMillis(); in testTaskTransitionDurationNoShortenAsExpected()
132 transitionEndTime[0] = System.currentTimeMillis(); in testTaskTransitionDurationNoShortenAsExpected()
167 transitionStartTime[0] = System.currentTimeMillis(); in testTaskTransitionOverrideDisabled()
171 transitionEndTime[0] = System.currentTimeMillis(); in testTaskTransitionOverrideDisabled()
208 transitionStartTime[0] = System.currentTimeMillis(); in testTaskTransitionOverride()
212 transitionEndTime[0] = System.currentTimeMillis(); in testTaskTransitionOverride()
/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/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/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DAdminActionBookkeepingTest.java65 long timeBefore = System.currentTimeMillis(); in testRetrieveSecurityLogs()
67 long timeAfter = System.currentTimeMillis(); in testRetrieveSecurityLogs()
74 timeBefore = System.currentTimeMillis(); in testRetrieveSecurityLogs()
77 timeAfter = System.currentTimeMillis(); in testRetrieveSecurityLogs()
105 final long timeBefore = System.currentTimeMillis(); in testRequestBugreport()
107 final long timeAfter = System.currentTimeMillis(); in testRequestBugreport()
161 long timeBefore = System.currentTimeMillis(); in testGetLastNetworkLogRetrievalTime()
163 long timeAfter = System.currentTimeMillis(); in testGetLastNetworkLogRetrievalTime()
/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/tests/tests/media/src/android/media/cts/
DSafeWaitObject.java33 final long timeOutTime = java.lang.System.currentTimeMillis() + millis; in safeWait()
36 final long timeToWait = timeOutTime - java.lang.System.currentTimeMillis(); in safeWait()
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpEventCollectionTest.kt104 val before = System.currentTimeMillis() in switchUidStateWhileOpsAreRunning()
110 val beforeUidChange = System.currentTimeMillis() in switchUidStateWhileOpsAreRunning()
135 val before = System.currentTimeMillis() in noteWithAttributionAndCheckOpEntries()
137 val after = System.currentTimeMillis() in noteWithAttributionAndCheckOpEntries()
180 val before = System.currentTimeMillis() in noteInBackgroundWithAttributionAndCheckOpEntries()
188 val after = System.currentTimeMillis() in noteInBackgroundWithAttributionAndCheckOpEntries()
228 val before = System.currentTimeMillis() in noteSelfAndTrustedAccessAndCheckOpEntries()
234 afterTrusted.set(System.currentTimeMillis()) in noteSelfAndTrustedAccessAndCheckOpEntries()
241 val after = System.currentTimeMillis() in noteSelfAndTrustedAccessAndCheckOpEntries()
264 val before = System.currentTimeMillis() in noteForTwoAttributionsCheckOpEntries()
[all …]
/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/tests/tests/sensorprivacy/src/android/sensorprivacy/cts/
DSensorPrivacyBaseTest.kt219 val before = System.currentTimeMillis() in <lambda>()
227 val after = System.currentTimeMillis() in <lambda>()
254 val before = System.currentTimeMillis() in <lambda>()
261 val after = System.currentTimeMillis() in <lambda>()
270 val before = System.currentTimeMillis() in <lambda>()
278 val after = System.currentTimeMillis() in <lambda>()
283 val before2 = System.currentTimeMillis() in <lambda>()
291 val after = System.currentTimeMillis() in <lambda>()
/cts/hostsidetests/bootstats/src/android/bootstats/cts/
DBootStatsHostTest.java74 long timeoutMs = System.currentTimeMillis() + MAX_WAIT_TIME_MS; in testBootStats()
75 while (System.currentTimeMillis() < timeoutMs) { in testBootStats()
122 long startTime = System.currentTimeMillis(); in testBootStatsForApiLevel29AndBelow()
129 int upperBoundSeconds = (int) ((System.currentTimeMillis() - startTime) / 1000); in testBootStatsForApiLevel29AndBelow()
/cts/hostsidetests/multiuser/src/android/host/multiuser/
DCreateUsersNoAppCrashesTest.java44 "TestUser_" + System.currentTimeMillis() /* name */, in testCanCreateGuestUser()
55 "TestUser_" + System.currentTimeMillis() /* name */, in testCanCreateSecondaryUser()

12345678910>>...12