/cts/tests/tests/text/src/android/text/method/cts/ |
D | ScrollingMovementMethodTest.java | 124 final long now = SystemClock.uptimeMillis(); in testOnTouchEventHorizontalMotion() local 129 MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, 0, 0, 0)); in testOnTouchEventHorizontalMotion() 139 MotionEvent.obtain(now, now, MotionEvent.ACTION_MOVE, tinyDist, 0, 0)); in testOnTouchEventHorizontalMotion() 148 MotionEvent.obtain(now, now, MotionEvent.ACTION_UP, tinyDist, 0, 0)); in testOnTouchEventHorizontalMotion() 156 MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, 0, 0, 0)); in testOnTouchEventHorizontalMotion() 166 MotionEvent.obtain(now, now, MotionEvent.ACTION_MOVE, distFar, 0, 0)); in testOnTouchEventHorizontalMotion() 178 MotionEvent.obtain(now, now, MotionEvent.ACTION_MOVE, distTooFar, 0, 0)); in testOnTouchEventHorizontalMotion() 189 MotionEvent.obtain(now, now, MotionEvent.ACTION_MOVE, 0, 0, 0)); in testOnTouchEventHorizontalMotion() 199 MotionEvent.obtain(now, now, MotionEvent.ACTION_UP, 0, 0, 0)); in testOnTouchEventHorizontalMotion() 218 final long now = SystemClock.uptimeMillis(); local [all …]
|
D | LinkMovementMethodTest.java | 215 long now = SystemClock.uptimeMillis(); in testOnKeyDown() local 216 KeyEvent event = new KeyEvent(now, now, KeyEvent.ACTION_DOWN, in testOnKeyDown() 297 long now = SystemClock.uptimeMillis(); in testOnTouchEvent_nullViewParam() local 300 MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, 5, y, 0)); in testOnTouchEvent_nullViewParam() 306 long now = SystemClock.uptimeMillis(); in testOnTouchEvent_nullSpannableParam() local 309 MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, 5, y, 0)); in testOnTouchEvent_nullSpannableParam() 491 long now = SystemClock.uptimeMillis(); in performMotionOnLine() local 494 MotionEvent.obtain(now, now, action, x, y, 0)); in performMotionOnLine()
|
D | ArrowKeyMovementMethodTest.java | 903 long now = SystemClock.currentThreadTimeMillis(); in testOnTouchEvent() local 906 MotionEvent.obtain(now, now, MotionEvent.ACTION_UP, 1, 1, 0))); in testOnTouchEvent() 910 MotionEvent.obtain(now, now, MotionEvent.ACTION_UP, 1, 1, in testOnTouchEvent() 923 long now = SystemClock.currentThreadTimeMillis(); in testOnTouchEventWithNullLayout() local 925 MotionEvent.obtain(now, now, MotionEvent.ACTION_UP, 1, 1, 0))); in testOnTouchEventWithNullLayout() 931 long now = SystemClock.currentThreadTimeMillis(); in testOnTouchEventWithoutFocus() local 934 MotionEvent.obtain(now, now, MotionEvent.ACTION_UP, 1, 1, 0))); in testOnTouchEventWithoutFocus() 1458 final long now = System.currentTimeMillis(); in pressCtrlChord() local 1460 now, now, KeyEvent.ACTION_DOWN, keyCode, 0, KeyEvent.META_CTRL_LEFT_ON); in pressCtrlChord()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | MockService.java | 89 long now = SystemClock.elapsedRealtime(); in waitForStart() local 90 final long endTime = now + timeout; in waitForStart() 92 while (!sStarted && now < endTime) { in waitForStart() 94 sBlocker.wait(endTime - now); in waitForStart() 97 now = SystemClock.elapsedRealtime(); in waitForStart() 111 long now = SystemClock.elapsedRealtime(); in waitForDestroy() local 112 final long endTime = now + timeout; in waitForDestroy() 114 while (!sDestroyed && now < endTime) { in waitForDestroy() 116 sBlocker.wait(endTime - now); in waitForDestroy() 119 now = SystemClock.elapsedRealtime(); in waitForDestroy()
|
D | PendingIntentStubActivity.java | 51 long now = SystemClock.elapsedRealtime(); in waitForCreate() local 52 final long endTime = now + timeout; in waitForCreate() 54 while (!sCreated && now < endTime) { in waitForCreate() 56 sBlocker.wait(endTime - now); in waitForCreate() 59 now = SystemClock.elapsedRealtime(); in waitForCreate()
|
D | MockReceiver.java | 58 long now = SystemClock.elapsedRealtime(); in waitForReceive() local 59 final long endTime = now + timeout; in waitForReceive() 61 while (!sReceived && now < endTime) { in waitForReceive() 63 sBlocker.wait(endTime - now); in waitForReceive() 66 now = SystemClock.elapsedRealtime(); in waitForReceive()
|
/cts/tests/app/src/android/app/cts/android/app/cts/tools/ |
D | ServiceConnectionHandler.java | 83 final long now = SystemClock.uptimeMillis(); in waitForConnect() local 84 if (now >= endTime) { in waitForConnect() 88 wait(endTime - now); in waitForConnect() 108 final long now = SystemClock.uptimeMillis(); in waitForDisconnect() local 109 if (now >= endTime) { in waitForDisconnect() 113 wait(endTime - now); in waitForDisconnect()
|
D | WaitForBroadcast.java | 64 final long now = SystemClock.uptimeMillis(); in doWait() local 65 if (now >= endTime) { in doWait() 71 wait(endTime - now); in doWait()
|
D | SyncOrderedBroadcast.java | 57 final long now = SystemClock.uptimeMillis(); in sendAndWait() local 58 if (now >= endTime) { in sendAndWait() 62 wait(endTime - now); in sendAndWait()
|
D | UidImportanceListener.java | 75 final long now = SystemClock.uptimeMillis(); in waitForValue() local 76 if (now >= endTime) { in waitForValue() 82 wait(endTime-now); in waitForValue()
|
D | WatchUidRunner.java | 198 long now = SystemClock.uptimeMillis(); in waitForNextLine() local 199 if (now >= waitUntil) { in waitForNextLine() 206 mPendingLines.wait(waitUntil - now); in waitForNextLine()
|
/cts/tests/tests/view/jni/ |
D | android_view_cts_ChoreographerNativeTest.cpp | 64 static std::chrono::nanoseconds now() { in now() function 65 return std::chrono::steady_clock::now().time_since_epoch(); in now() 112 auto start = now(); in android_view_cts_ChoreographerNativeTest_testPostCallback64WithoutDelayEventuallyRunsCallback() 128 start = now(); in android_view_cts_ChoreographerNativeTest_testPostCallback64WithoutDelayEventuallyRunsCallback() 138 auto start = now(); in android_view_cts_ChoreographerNativeTest_testPostCallback64WithDelayEventuallyRunsCallback() 155 auto start = now(); in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() 178 start = now(); in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() 194 auto start = now(); in android_view_cts_ChoreographerNativeTest_testPostCallbackWithDelayEventuallyRunsCallback() 213 auto start = now(); in android_view_cts_ChoreographerNativeTest_testPostCallbackMixedWithoutDelayEventuallyRunsCallback() 232 start = now(); in android_view_cts_ChoreographerNativeTest_testPostCallbackMixedWithoutDelayEventuallyRunsCallback() [all …]
|
/cts/tests/tests/text/src/android/text/format/cts/ |
D | DateUtilsTest.java | 263 long now = System.currentTimeMillis(); in test_bug_7548161() local 264 long today = now; in test_bug_7548161() 265 long tomorrow = now + DateUtils.DAY_IN_MILLIS; in test_bug_7548161() 266 long yesterday = now - DateUtils.DAY_IN_MILLIS; in test_bug_7548161() 267 assertEquals("Tomorrow", DateUtils.getRelativeTimeSpanString(tomorrow, now, in test_bug_7548161() 269 assertEquals("Yesterday", DateUtils.getRelativeTimeSpanString(yesterday, now, in test_bug_7548161() 271 assertEquals("Today", DateUtils.getRelativeTimeSpanString(today, now, in test_bug_7548161()
|
/cts/tests/security/src/android/keystore/cts/ |
D | CertificateUtils.java | 39 long now = System.currentTimeMillis(); in createCertificate() local 40 Date start = new Date(now - millisPerDay); in createCertificate() 41 Date end = new Date(now + millisPerDay); in createCertificate()
|
/cts/hostsidetests/jdwptunnel/src/android/jdwptunnel/cts/ |
D | JdwpTunnelTest.java | 118 final Instant deadline = Instant.now().plusSeconds(60); in startupTest() 122 if (Instant.now().isAfter(deadline)) { in startupTest() 149 final Instant deadline = Instant.now().plusSeconds(120); in testAttachDebugger() 163 if (Instant.now().isAfter(deadline)) { in testAttachDebugger() 182 if (Instant.now().isAfter(deadline)) { in testAttachDebugger()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | MessageQueueTest.java | 177 long now = SystemClock.uptimeMillis() + 200; in testMessageOrder() 180 mHandler.sendMessageAtTime(mHandler.obtainMessage(2), now + 1); in testMessageOrder() 181 mHandler.sendMessageAtTime(mHandler.obtainMessage(3), now + 2); in testMessageOrder() 182 mHandler.sendMessageAtTime(mHandler.obtainMessage(4), now + 2); in testMessageOrder() 183 mHandler.sendMessageAtTime(mHandler.obtainMessage(0), now + 0); in testMessageOrder() 184 mHandler.sendMessageAtTime(mHandler.obtainMessage(1), now + 0); in testMessageOrder() 201 long now = SystemClock.uptimeMillis() + 200; in testAtFrontOfQueue() 203 mHandler.sendMessageAtTime(mHandler.obtainMessage(3), now); in testAtFrontOfQueue() 864 long now = System.currentTimeMillis(); in doTest() local 865 long endTime = now + timeout; in doTest() [all …]
|
D | MessengerTest.java | 218 long now = System.currentTimeMillis(); in doTest() local 219 long endTime = now + timeout; in doTest() 221 while (!mDone && now < endTime) { in doTest() 223 now = System.currentTimeMillis(); in doTest()
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | ContactsContract_RawContactsTest.java | 239 final long now = System.currentTimeMillis(); in testInsertUsageStat() local 245 .with(RawContacts.LAST_TIME_CONTACTED, now) in testInsertUsageStat() 268 .with(RawContacts.LAST_TIME_CONTACTED, now) in testInsertUsageStat() 280 final long now = System.currentTimeMillis(); in testUpdateUsageStat() local 285 .with(RawContacts.LAST_TIME_CONTACTED, now) in testUpdateUsageStat() 301 values.put(RawContacts.LAST_TIME_CONTACTED, now + 86400); in testUpdateUsageStat()
|
D | ContactsContract_ContactsTest.java | 189 final long now = System.currentTimeMillis(); in testContactUpdate_usageStats() local 194 values.put(Contacts.LAST_TIME_CONTACTED, now); in testContactUpdate_usageStats() 203 values.put(Contacts.LAST_TIME_CONTACTED, now); in testContactUpdate_usageStats() 231 final long now = (System.currentTimeMillis() / 86400 * 86400) + 86400 * 5 + 123; in testContactUpdateDelete_usageStats_visibilityInWhere() local 234 values.put(Contacts.LAST_TIME_CONTACTED, now); in testContactUpdateDelete_usageStats_visibilityInWhere()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | MediaStoreUtils.java | 99 final long now = System.currentTimeMillis() / 1000; in PendingParams() local 103 this.insertValues.put(MediaColumns.DATE_ADDED, now); in PendingParams() 104 this.insertValues.put(MediaColumns.DATE_MODIFIED, now); in PendingParams()
|
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/ |
D | MediaStoreUtils.java | 93 final long now = System.currentTimeMillis() / 1000; in PendingParams() local 97 this.insertValues.put(MediaColumns.DATE_ADDED, now); in PendingParams() 98 this.insertValues.put(MediaColumns.DATE_MODIFIED, now); in PendingParams()
|
/cts/tests/tests/location/src/android/location/cts/psedorange/ |
D | GpsTime.java | 122 public static GpsTime now() { in now() method in GpsTime 124 ZonedDateTime current = ZonedDateTime.now(zone); in now() 151 ZonedDateTime current = ZonedDateTime.now(zone); in fromYumaWeekTow() 225 ZonedDateTime current = ZonedDateTime.now(zone);
|
/cts/hostsidetests/shortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/ |
D | ShortcutManagerSecondaryUserTest.java | 66 final long now = System.currentTimeMillis(); in testCreateAndStart() local 71 retryUntil(() -> MainActivity.getLastCreateTime() >= now, "Activity not started"); in testCreateAndStart()
|
/cts/tests/AlarmManager/src/android/alarmmanager/cts/ |
D | BackgroundRestrictedAlarmsTest.java | 114 private static int getMinExpectedExpirations(long now, long start, long interval) { in getMinExpectedExpirations() argument 115 if (now - start <= 1000) { in getMinExpectedExpirations() 118 return 1 + (int)((now - start - 1000)/interval); in getMinExpectedExpirations()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | FrameMetricsListenerTest.java | 193 long now = System.nanoTime(); in callGetMetric() local 196 assertTrue(intended_vsync < now); in callGetMetric() 197 assertTrue(vsync < now); in callGetMetric()
|