Home
last modified time | relevance | path

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

12345678910>>...16

/cts/tests/tests/os/src/android/os/cts/
DConditionVariableTest.java49 long time = System.currentTimeMillis(); in testConditionVariable()
51 assertTrue(System.currentTimeMillis() - time < TOLERANCE_MS); in testConditionVariable()
55 time = System.currentTimeMillis(); in testConditionVariable()
57 assertTrue(System.currentTimeMillis() - time >= BLOCK_TIME); in testConditionVariable()
60 time = System.currentTimeMillis(); in testConditionVariable()
75 long timeDelta = System.currentTimeMillis() - time; in testConditionVariable()
79 time = System.currentTimeMillis(); in testConditionVariable()
DFileAccessPermissionTest.java115 File newFile = new File(dir, System.currentTimeMillis() + "test.txt"); in testAccessAppDataDir()
145 File sdcardFile = new File(sdcardDir, System.currentTimeMillis() + "test.txt"); in testExternalStorageAccess()
153 File sdcardSubDir = new File(sdcardDir, System.currentTimeMillis() + "test"); in testExternalStorageAccess()
155 File sdcardSubDirFile = new File(sdcardSubDir, System.currentTimeMillis() + "test.txt"); in testExternalStorageAccess()
174 File sdcardFile = new File(sdcardDir, System.currentTimeMillis() + "test.txt"); in testNoExternalStorageAccess()
/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/media/audio/src/android/media/audio/cts/
DSafeWaitObject.java40 final long deadline = System.currentTimeMillis() + timeoutMs; in waitFor()
43 final long timeToWait = deadline - System.currentTimeMillis(); in waitFor()
67 final long deadline = System.currentTimeMillis() + timeoutMs; in checkConditionFor()
68 while (!stopWaiting.getAsBoolean() && (System.currentTimeMillis() < deadline)) { in checkConditionFor()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerUsageTest.java119 final long start1 = System.currentTimeMillis() - USAGE_STATS_RANGE_ALLOWANCE; in testReportShortcutUsed()
121 final long end1 = System.currentTimeMillis() + USAGE_STATS_RANGE_ALLOWANCE; in testReportShortcutUsed()
127 final long start2 = System.currentTimeMillis() - USAGE_STATS_RANGE_ALLOWANCE; in testReportShortcutUsed()
129 final long end2 = System.currentTimeMillis() + USAGE_STATS_RANGE_ALLOWANCE; in testReportShortcutUsed()
135 final long start3 = System.currentTimeMillis() - USAGE_STATS_RANGE_ALLOWANCE; in testReportShortcutUsed()
138 final long end3 = System.currentTimeMillis() + USAGE_STATS_RANGE_ALLOWANCE; in testReportShortcutUsed()
156 final long start = System.currentTimeMillis() - USAGE_STATS_RANGE_ALLOWANCE; in testShortcutInvocationEventIsVisible()
158 final long end = System.currentTimeMillis() + USAGE_STATS_RANGE_ALLOWANCE; in testShortcutInvocationEventIsVisible()
173 final long start = System.currentTimeMillis() - USAGE_STATS_RANGE_ALLOWANCE; in testShortcutInvocationEventIsNotVisible()
175 final long end = System.currentTimeMillis() + USAGE_STATS_RANGE_ALLOWANCE; in testShortcutInvocationEventIsNotVisible()
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContactsProvider2_AccountRemovalTest.java93 assertContactsDeletedEventually(System.currentTimeMillis(), acc2Ids); in testAccountRemoval_deletesContacts()
96 assertContactsDeletedEventually(System.currentTimeMillis(), acc1Ids); in testAccountRemoval_deletesContacts()
105 long start = System.currentTimeMillis(); in testAccountRemoval_hasDeleteLogsForContacts()
109 start = System.currentTimeMillis(); in testAccountRemoval_hasDeleteLogsForContacts()
122 assertContactsDeletedEventually(System.currentTimeMillis(), idList); in testAccountRemovalWithMergedContact_deletesContacts()
149 assertContactsDeletedEventually(System.currentTimeMillis(), acc2Ids); in testAccountRemoval_doesNotDeleteLocalAccountContacts()
151 assertContactsDeletedEventually(System.currentTimeMillis(), acc1Ids); in testAccountRemoval_doesNotDeleteLocalAccountContacts()
183 assertContactsDeletedEventually(System.currentTimeMillis(), acc2Ids); in testAccountRemoval_doesNotDeleteSimAccountContacts()
185 assertContactsDeletedEventually(System.currentTimeMillis(), acc1Ids); in testAccountRemoval_doesNotDeleteSimAccountContacts()
222 assertContactsDeletedEventually(System.currentTimeMillis(), acc1Ids); in testRemoveSimAccount_deleteSimAccountContacts()
[all …]
/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()
DSslCertificate_DNameTest.java32 Date date1 = new Date(System.currentTimeMillis() - 1000); in testDName()
33 Date date2 = new Date(System.currentTimeMillis()); in testDName()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DPendingSystemUpdateTest.kt55 val receivedTime = System.currentTimeMillis() in notifyPendingSystemUpdate_unknownIfSecurityPatch_dpcReceivesCallback()
71 val receivedTime = System.currentTimeMillis() in notifyPendingSystemUpdate_forSecurityPatch_dpcReceivesCallback()
87 val receivedTime = System.currentTimeMillis() in notifyPendingSystemUpdate_forNonSecurityPatch_dpcReceivesCallback()
104 TestApis.devicePolicy().notifyPendingSystemUpdate(System.currentTimeMillis()) in getPendingSystemUpdate_unknownIfSecurityPatch()
118 System.currentTimeMillis(), /* isSecurityPatch= */true in getPendingSystemUpdate_forSecurityPatch()
135 System.currentTimeMillis(), /* isSecurityPatch= */false in getPendingSystemUpdate_forNonSecurityPatch()
151 val receivedTime = System.currentTimeMillis() in getPendingSystemUpdate_withReceivedTime()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/offhost/
DSimpleOffhostReaderActivity.java137 startTime = System.currentTimeMillis(); in onTagDiscovered()
160 long apduStartTime = System.currentTimeMillis(); in onTagDiscovered()
163 long apduEndTime = System.currentTimeMillis(); in onTagDiscovered()
179 startTime = System.currentTimeMillis(); in onTagDiscovered()
187 long apduStartTime = System.currentTimeMillis(); in onTagDiscovered()
190 long apduEndTime = System.currentTimeMillis(); in onTagDiscovered()
209 startTime = System.currentTimeMillis(); in onTagDiscovered()
215 long apduStartTime = System.currentTimeMillis(); in onTagDiscovered()
217 long apduEndTime = System.currentTimeMillis(); in onTagDiscovered()
228 Long.toString(System.currentTimeMillis() - startTime) + " ms.\n\n"); in onTagDiscovered()
[all …]
/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/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/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/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DAdminActionBookkeepingTest.java63 long timeBefore = System.currentTimeMillis(); in testRetrieveSecurityLogs()
65 long timeAfter = System.currentTimeMillis(); in testRetrieveSecurityLogs()
72 timeBefore = System.currentTimeMillis(); in testRetrieveSecurityLogs()
75 timeAfter = System.currentTimeMillis(); in testRetrieveSecurityLogs()
101 long timeBefore = System.currentTimeMillis(); in testGetLastNetworkLogRetrievalTime()
103 long timeAfter = System.currentTimeMillis(); in testGetLastNetworkLogRetrievalTime()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java423 final long startTime = System.currentTimeMillis(); in testLastTimeVisible_launchActivityShouldBeDetected()
425 final long endTime = System.currentTimeMillis(); in testLastTimeVisible_launchActivityShouldBeDetected()
436 final long startTime = System.currentTimeMillis(); in testLastTimeAnyComponentUsed_launchActivityShouldBeDetected()
438 final long endTime = System.currentTimeMillis(); in testLastTimeAnyComponentUsed_launchActivityShouldBeDetected()
449 final long startTime = System.currentTimeMillis(); in testLastTimeAnyComponentUsed_bindServiceShouldBeDetected()
451 final long endTime = System.currentTimeMillis(); in testLastTimeAnyComponentUsed_bindServiceShouldBeDetected()
463 final long startTime = System.currentTimeMillis(); in testLastTimeAnyComponentUsed_bindExplicitBroadcastReceiverShouldBeDetected()
465 final long endTime = System.currentTimeMillis(); in testLastTimeAnyComponentUsed_bindExplicitBroadcastReceiverShouldBeDetected()
477 final long startTime = System.currentTimeMillis(); in testLastTimeAnyComponentUsed_bindContentProviderShouldBeDetected()
479 final long endTime = System.currentTimeMillis(); in testLastTimeAnyComponentUsed_bindContentProviderShouldBeDetected()
[all …]
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyGenParameterSpecTest.java104 Date certNotBeforeDate = new Date(System.currentTimeMillis()); in testSettersReflectedInGetters()
105 Date certNotAfterDate = new Date(System.currentTimeMillis() + 12345678); in testSettersReflectedInGetters()
106 Date keyValidityStartDate = new Date(System.currentTimeMillis() - 2222222); in testSettersReflectedInGetters()
107 Date keyValidityEndDateForOrigination = new Date(System.currentTimeMillis() + 11111111); in testSettersReflectedInGetters()
108 Date keyValidityEndDateForConsumption = new Date(System.currentTimeMillis() + 33333333); in testSettersReflectedInGetters()
206 Date date = new Date(System.currentTimeMillis() + 555555); in testSetKeyValidityEndDateAppliesToBothEndDates()
251 Date certNotBeforeDate = new Date(System.currentTimeMillis()); in testImmutabilityViaSetterParams()
253 Date certNotAfterDate = new Date(System.currentTimeMillis() + 12345678); in testImmutabilityViaSetterParams()
255 Date keyValidityStartDate = new Date(System.currentTimeMillis() - 2222222); in testImmutabilityViaSetterParams()
257 Date keyValidityEndDateForOrigination = new Date(System.currentTimeMillis() + 11111111); in testImmutabilityViaSetterParams()
[all …]
DKeyProtectionTest.java79 Date keyValidityStartDate = new Date(System.currentTimeMillis() - 2222222); in testSettersReflectedInGetters()
80 Date keyValidityEndDateForOrigination = new Date(System.currentTimeMillis() + 11111111); in testSettersReflectedInGetters()
81 Date keyValidityEndDateForConsumption = new Date(System.currentTimeMillis() + 33333333); in testSettersReflectedInGetters()
142 Date date = new Date(System.currentTimeMillis() + 555555); in testSetKeyValidityEndDateAppliesToBothEndDates()
187 Date keyValidityStartDate = new Date(System.currentTimeMillis() - 2222222); in testImmutabilityViaSetterParams()
189 Date keyValidityEndDateForOrigination = new Date(System.currentTimeMillis() + 11111111); in testImmutabilityViaSetterParams()
192 Date keyValidityEndDateForConsumption = new Date(System.currentTimeMillis() + 33333333); in testImmutabilityViaSetterParams()
276 .setKeyValidityStart(new Date(System.currentTimeMillis() - 2222222)) in testImmutabilityViaGetterReturnValues()
277 .setKeyValidityForOriginationEnd(new Date(System.currentTimeMillis() + 11111111)) in testImmutabilityViaGetterReturnValues()
278 .setKeyValidityForConsumptionEnd(new Date(System.currentTimeMillis() + 33333333)) in testImmutabilityViaGetterReturnValues()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/users/
DUserLifecycleEventStatsTests.java38 String userName = "TestUser_" + System.currentTimeMillis(); in testCreateGuestUser()
47 String userName = "TestUser_" + System.currentTimeMillis(); in testRemoveGuestUser()
64 String userName = "FullUser_" + System.currentTimeMillis(); in testCreateFullUser()
73 String userName = "FullUser_" + System.currentTimeMillis(); in testRemoveFullUser()
DUserLifecycleJourneyStatsTests.java42 String userName = "TestUser_" + System.currentTimeMillis(); in testCreateGuestUser()
52 String userName = "TestUser_" + System.currentTimeMillis(); in testRemoveGuestUser()
71 String userName = "FullUser_" + System.currentTimeMillis(); in testCreateFullUser()
81 String userName = "FullUser_" + System.currentTimeMillis(); in testRemoveFullUser()
/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/tests/tests/mediacujtest/common/src/android/media/cujcommon/cts/
DCujTestBase.java144 long startTime = System.currentTimeMillis(); in play()
155 long endTime = System.currentTimeMillis() + timeoutMilliSeconds; in play()
160 if (endTime < System.currentTimeMillis()) { in play()
167 long actualTotalTime = System.currentTimeMillis() - startTime; in play()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0685/src/android/security/cts/CVE_2021_0685/
DPocAmbiguator.java48 long allowedTime = System.currentTimeMillis() + TIMER_MILLIS; in make()
53 } while (keyHash >= minHash && System.currentTimeMillis() < allowedTime); in make()
128 long allowedTime = System.currentTimeMillis() + TIMER_MILLIS; in padBundle()
132 && System.currentTimeMillis() < allowedTime); in padBundle()
/cts/tests/app/AppExitTest/src/android/app/cts/
DActivityManagerAppExitInfoTest.java479 long now = System.currentTimeMillis(); in testExitCode()
483 long now2 = System.currentTimeMillis(); in testExitCode()
552 long now = System.currentTimeMillis(); in testLmkdKill()
586 long now2 = System.currentTimeMillis(); in testLmkdKill()
604 long now = System.currentTimeMillis(); in testKillBySignal()
609 long now2 = System.currentTimeMillis(); in testKillBySignal()
644 long now = System.currentTimeMillis(); in testAnr()
671 long now2 = System.currentTimeMillis(); in testAnr()
772 long now = System.currentTimeMillis(); in testOther()
784 long now2 = System.currentTimeMillis(); in testOther()
[all …]
/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 …]

12345678910>>...16