Home
last modified time | relevance | path

Searched refs:now (Results 1 – 25 of 57) sorted by relevance

123

/cts/tests/tests/text/src/android/text/method/cts/
DScrollingMovementMethodTest.java124 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 …]
DLinkMovementMethodTest.java215 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()
DArrowKeyMovementMethodTest.java903 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/
DMockService.java89 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()
DPendingIntentStubActivity.java51 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()
DMockReceiver.java58 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/
DServiceConnectionHandler.java83 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()
DWaitForBroadcast.java64 final long now = SystemClock.uptimeMillis(); in doWait() local
65 if (now >= endTime) { in doWait()
71 wait(endTime - now); in doWait()
DSyncOrderedBroadcast.java57 final long now = SystemClock.uptimeMillis(); in sendAndWait() local
58 if (now >= endTime) { in sendAndWait()
62 wait(endTime - now); in sendAndWait()
DUidImportanceListener.java75 final long now = SystemClock.uptimeMillis(); in waitForValue() local
76 if (now >= endTime) { in waitForValue()
82 wait(endTime-now); in waitForValue()
DWatchUidRunner.java198 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/
Dandroid_view_cts_ChoreographerNativeTest.cpp64 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/
DDateUtilsTest.java263 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/
DCertificateUtils.java39 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/
DJdwpTunnelTest.java118 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/
DMessageQueueTest.java177 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 …]
DMessengerTest.java218 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/
DContactsContract_RawContactsTest.java239 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()
DContactsContract_ContactsTest.java189 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/
DMediaStoreUtils.java99 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/
DMediaStoreUtils.java93 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/
DGpsTime.java122 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/
DShortcutManagerSecondaryUserTest.java66 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/
DBackgroundRestrictedAlarmsTest.java114 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/
DFrameMetricsListenerTest.java193 long now = System.nanoTime(); in callGetMetric() local
196 assertTrue(intended_vsync < now); in callGetMetric()
197 assertTrue(vsync < now); in callGetMetric()

123