Home
last modified time | relevance | path

Searched refs:start (Results 1 – 25 of 700) sorted by relevance

12345678910>>...28

/cts/tests/tests/os/src/android/os/cts/
DSystemClockTest.java26 long start = SystemClock.currentThreadTimeMillis(); in testCurrentThreadTimeMillis() local
29 assertFalse(end - 100 >= start); in testCurrentThreadTimeMillis()
35 long start = SystemClock.elapsedRealtime(); in testElapsedRealtime() local
38 assertTrue(end - 100 >= start); in testElapsedRealtime()
44 long start = SystemClock.currentThreadTimeMillis(); in testSetCurrentTimeMillis() local
45 boolean actual = SystemClock.setCurrentTimeMillis(start + 10000); in testSetCurrentTimeMillis()
53 long start = SystemClock.currentThreadTimeMillis(); in testSleep() local
56 assertFalse(end - 100 >= start); in testSleep()
58 start = SystemClock.elapsedRealtime(); in testSleep()
61 assertTrue(end - 100 >= start); in testSleep()
[all …]
/cts/tests/tests/animation/src/android/animation/cts/
DEvaluatorTest.java49 float start = 0.0f; in testFloatEvaluator() local
54 float result = floatEvaluator.evaluate(0, start, end); in testFloatEvaluator()
55 assertEquals(start, result, EPSILON); in testFloatEvaluator()
57 result = floatEvaluator.evaluate(fraction, start, end); in testFloatEvaluator()
60 result = floatEvaluator.evaluate(1, start, end); in testFloatEvaluator()
75 float[] start = {0f, 0f}; in floatArrayEvaluatorTestImpl() local
79 float[] result = evaluator.evaluate(0, start, end); in floatArrayEvaluatorTestImpl()
80 assertEquals(start[0], result[0], EPSILON); in floatArrayEvaluatorTestImpl()
81 assertEquals(start[1], result[1], EPSILON); in floatArrayEvaluatorTestImpl()
83 result = evaluator.evaluate(fraction, start, end); in floatArrayEvaluatorTestImpl()
[all …]
DValueAnimatorTest.java155 anim.start(); in testListenerCallbackWithStartDelay()
213 delayedAnim.start(); in testSetCurrentPlayTime()
239 a1.start(); in testPauseListener()
266 anim.start(); in testSetCurrentPlayTimeAfterStart()
320 anim.start(); in testReverseRightAfterStart()
363 a1.start(); in testUpdateListeners()
406 a1.start(); in testValuesSetterAndGetter()
443 a1.start(); in testSetObjectValues()
510 animator.start(); in testGetAnimatedFraction()
562 float start = 0.0f; in testOfFloat() local
[all …]
/cts/tests/tests/view/jni/
Dandroid_view_cts_ChoreographerNativeTest.cpp144 auto start = now(); in android_view_cts_ChoreographerNativeTest_testPostVsyncCallbackWithoutDelayEventuallyRunsCallback() local
150 verifyCallback(env, cb1, 1, start, NOMINAL_VSYNC_PERIOD * 3); in android_view_cts_ChoreographerNativeTest_testPostVsyncCallbackWithoutDelayEventuallyRunsCallback()
151 verifyCallback(env, cb2, 1, start, NOMINAL_VSYNC_PERIOD * 3); in android_view_cts_ChoreographerNativeTest_testPostVsyncCallbackWithoutDelayEventuallyRunsCallback()
160 start = now(); in android_view_cts_ChoreographerNativeTest_testPostVsyncCallbackWithoutDelayEventuallyRunsCallback()
162 verifyCallback(env, cb1, 2, start, NOMINAL_VSYNC_PERIOD * 3); in android_view_cts_ChoreographerNativeTest_testPostVsyncCallbackWithoutDelayEventuallyRunsCallback()
163 verifyCallback(env, cb2, 1, start, ZERO); in android_view_cts_ChoreographerNativeTest_testPostVsyncCallbackWithoutDelayEventuallyRunsCallback()
170 auto start = now(); in android_view_cts_ChoreographerNativeTest_testFrameCallbackDataVsyncIdValid() local
175 verifyCallback(env, cb1, 1, start, NOMINAL_VSYNC_PERIOD * 3); in android_view_cts_ChoreographerNativeTest_testFrameCallbackDataVsyncIdValid()
192 auto start = now(); in android_view_cts_ChoreographerNativeTest_testFrameCallbackDataDeadlineInFuture() local
197 verifyCallback(env, cb1, 1, start, NOMINAL_VSYNC_PERIOD * 3); in android_view_cts_ChoreographerNativeTest_testFrameCallbackDataDeadlineInFuture()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DBufferDebug.java87 private static void writeRow(StringBuilder str, byte[] buf, int start, int len, int max) { in writeRow() argument
91 f.format("%10d 0x%08x ", start, start); in writeRow()
94 int end = start + len; in writeRow()
97 if (start + WIDTH > max) { in writeRow()
103 for (int i = start; i < end; i++) { in writeRow()
105 if (i == start + HALF_WIDTH - 1) { in writeRow()
117 for (int i = start; i < end; i++) { in writeRow()
124 if (i == start + HALF_WIDTH - 1) { in writeRow()
/cts/hostsidetests/jdwpsecurity/app/src/com/android/cts/jdwpsecurity/
DJdwpTest.java31 long start = System.currentTimeMillis(); in main() local
32 while(getElapsedTime(start) < LOOP_TIMEOUT_MS) { in main()
37 private static long getElapsedTime(long start) { in getElapsedTime() argument
38 return System.currentTimeMillis() - start; in getElapsedTime()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/
DMSSIMComparer.java64 int start = indexFromXAndY(currentWindowX, currentWindowY, stride, offset); in verifySame() local
65 if (isWindowWhite(ideal, start, stride, windowWidth, windowHeight) in verifySame()
66 && isWindowWhite(given, start, stride, windowWidth, windowHeight)) { in verifySame()
70 double[] means = getMeans(ideal, given, start, stride, windowWidth, windowHeight); in verifySame()
73 double[] variances = getVariances(ideal, given, meanX, meanY, start, stride, in verifySame()
94 private boolean isWindowWhite(int[] colors, int start, int stride, in isWindowWhite() argument
98 if (colors[indexFromXAndY(x, y, stride, start)] != Color.WHITE) { in isWindowWhite()
120 private double[] getMeans(int[] pixels0, int[] pixels1, int start, int stride, in getMeans() argument
126 int index = indexFromXAndY(x, y, stride, start); in getMeans()
142 int start, int stride, int windowWidth, int windowHeight) { in getVariances() argument
[all …]
/cts/tests/tests/text/src/android/text/cts/
DSpannableStringBuilderSpanTest.java150 int start = spannable.getSpanStart(span); in verifySpanPositions() local
159 start + "," + end + " | " + startStyle + " " + endStyle + in verifySpanPositions()
169 assertEquals(-1, start); in verifySpanPositions()
177 assertEquals(originalStart, start); in verifySpanPositions()
185 assertEquals(replaceStart, start); in verifySpanPositions()
187 assertEquals(replaceStart + replacementLength, start); in verifySpanPositions()
194 assertEquals(replaceStart + replacementLength, start); in verifySpanPositions()
196 assertEquals(replaceStart, start); in verifySpanPositions()
205 assertEquals(originalStart + delta, start); in verifySpanPositions()
243 if (start != originalStart || end != originalEnd) { in verifySpanPositions()
[all …]
DAlteredCharSequenceTest.java68 int start = 0; in testGetChars() local
74 mAlteredCharSequence.getChars(start, end, dest, off); in testGetChars()
77 for (int i = off; i < end - start + off; i++) { in testGetChars()
84 mAlteredCharSequence.getChars(start, end, dest, off); in testGetChars()
85 for (int i = off; i < end - start + off; i++) { in testGetChars()
88 start = end + 1; in testGetChars()
90 mAlteredCharSequence.getChars(start, end, dest, off); in testGetChars()
167 public <T> T[] getSpans(int start, int end, Class<T> type) { in getSpans() argument
171 public int nextSpanTransition(int start, int limit, Class type) { in nextSpanTransition() argument
183 public CharSequence subSequence(int start, int end) { in subSequence() argument
DHtmlTest.java72 final int start = -1; in verifySingleTagOnWhileString() local
75 Object[] spans = spanned.getSpans(start, end, Object.class); in verifySingleTagOnWhileString()
92 final int start = 0; in verifyBadHtml() local
96 Object[] spans = spanned.getSpans(start, end, Object.class); in verifyBadHtml()
351 final int start = 0; in testBlockquote() local
355 s.setSpan(new QuoteSpan(), start, end, Spannable.SPAN_PARAGRAPH); in testBlockquote()
361 s.setSpan(new QuoteSpan(), start, end, Spannable.SPAN_PARAGRAPH); in testBlockquote()
383 final int start = 6; in testMarkup() local
386 int end = s.length() - start; in testMarkup()
387 s.setSpan(new StyleSpan(Typeface.BOLD), start, end, SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/utils/
DMathUtils.java28 public static float lerp(float start, float stop, float amount) { in lerp() argument
29 return start + (stop - start) * amount; in lerp()
/cts/tests/tests/uidmigration/
Dsystem-app-test.sh26 adb shell start || true
63 adb shell start
94 adb shell start
115 adb shell start
131 adb shell start
148 adb shell start
154 adb shell start
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContactsProvider2_AccountRemovalTest.java104 long start = System.currentTimeMillis(); in testAccountRemoval_hasDeleteLogsForContacts() local
106 assertContactsInDeleteLogEventually(start, acc2Ids); in testAccountRemoval_hasDeleteLogsForContacts()
108 start = System.currentTimeMillis(); in testAccountRemoval_hasDeleteLogsForContacts()
110 assertContactsInDeleteLogEventually(start, acc1Ids); in testAccountRemoval_hasDeleteLogsForContacts()
234 long start = System.currentTimeMillis(); in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated() local
238 assertWithinTimeoutLimit(start, in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated()
248 long start = System.currentTimeMillis(); in testAccountRemovalWithMergedContact_hasDeleteLogsForContacts() local
250 assertContactsInDeleteLogEventually(start, idList); in testAccountRemovalWithMergedContact_hasDeleteLogsForContacts()
273 private long assertMerged(long start, long rawContactId, long rawContactId2) { in assertMerged() argument
276 assertWithinTimeoutLimit(start, in assertMerged()
[all …]
DContactsContract_DeletedContacts.java60 long start = System.currentTimeMillis(); in testQuery_returnsProperColumns() local
72 assertTrue(Long.parseLong(record[1]) > start); in testQuery_returnsProperColumns()
108 long start = System.currentTimeMillis(); in testQuerySinceTimestamp() local
121 start); in testQuerySinceTimestamp()
129 assertTrue(Long.parseLong(record[1]) > start); in testQuerySinceTimestamp()
/cts/tests/sample/src/android/sample/cts/
DSampleDeviceReportLogTest.java106 int start; in countHelper() local
109 start = COUNT_START; in countHelper()
111 for (int i = start; i <= end;) { in countHelper()
115 start = COUNT_END; in countHelper()
117 for (int i = start; i >= end;) { in countHelper()
124 reportLog.addValue(START_TAG, 1.0 * start, ResultType.NEUTRAL, ResultUnit.NONE); in countHelper()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/
DActivityEmbeddingFinishTests.java129 .preventSplitActivities().setFinishPrimaryWithSecondary(FINISH_NEVER).start(); in testFinishPrimaryWithSecondary_ActivitiesStacked_FinishNever()
145 .preventSplitActivities().setFinishPrimaryWithSecondary(FINISH_ADJACENT).start(); in testFinishPrimaryWithSecondary_ActivitiesStacked_FinishAdjacent()
161 .preventSplitActivities().setFinishPrimaryWithSecondary(FINISH_ALWAYS).start(); in testFinishPrimaryWithSecondary_ActivitiesStacked_FinishAlways()
176 .setFinishPrimaryWithSecondary(FINISH_NEVER).start(); in testFinishPrimaryWithSecondary_ActivitiesSplit_FinishNever()
194 .setFinishPrimaryWithSecondary(FINISH_ADJACENT).start(); in testFinishPrimaryWithSecondary_ActivitiesSplit_FinishAdjacent()
209 .setFinishPrimaryWithSecondary(FINISH_ALWAYS).start(); in testFinishPrimaryWithSecondary_ActivitiesSplit_FinishAlways()
224 .preventSplitActivities().setFinishSecondaryWithPrimary(FINISH_NEVER).start(); in testFinishSecondaryWithPrimary_ActivitiesStacked_FinishNever()
240 .preventSplitActivities().setFinishSecondaryWithPrimary(FINISH_ADJACENT).start(); in testFinishSecondaryWithPrimary_ActivitiesStacked_FinishAdjacent()
256 .preventSplitActivities().setFinishSecondaryWithPrimary(FINISH_ALWAYS).start(); in testFinishSecondaryWithPrimary_ActivitiesStacked_FinishAlways()
271 .setFinishSecondaryWithPrimary(FINISH_NEVER).start(); in testFinishSecondaryWithPrimary_ActivitiesSplit_FinishNever()
[all …]
/cts/tests/tests/permission/permissionTestUtilLib/src/android/permission/cts/
DTestUtils.java65 long start = System.currentTimeMillis(); in ensure() local
73 if (System.currentTimeMillis() - start < timeout) { in ensure()
105 long start = System.currentTimeMillis(); in eventually() local
116 if (System.currentTimeMillis() - start < timeout) { in eventually()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DInputConnectionSplitter.java108 public boolean setComposingRegion(int start, int end) { in setComposingRegion() argument
109 mForNotify.setComposingRegion(start, end); in setComposingRegion()
110 return super.setComposingRegion(start, end); in setComposingRegion()
114 public boolean setComposingRegion(int start, int end, TextAttribute textAttribute) { in setComposingRegion() argument
115 mForNotify.setComposingRegion(start, end, textAttribute); in setComposingRegion()
116 return super.setComposingRegion(start, end, textAttribute); in setComposingRegion()
151 public boolean setSelection(int start, int end) { in setSelection() argument
152 mForNotify.setSelection(start, end); in setSelection()
153 return super.setSelection(start, end); in setSelection()
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/
DBaseHostTestCase.java73 protected static void throwExceptionIfTimeout(long start, long timeoutMillis, Throwable e) { in throwExceptionIfTimeout() argument
74 if (System.currentTimeMillis() - start < timeoutMillis) { in throwExceptionIfTimeout()
86 long start = System.currentTimeMillis(); in eventually() local
93 throwExceptionIfTimeout(start, timeoutMillis, e); in eventually()
100 long start = System.currentTimeMillis(); in eventually() local
110 throwExceptionIfTimeout(start, timeoutMillis, e); in eventually()
/cts/hostsidetests/media/app/MediaExtractorTest/jni/
DMediaExtractorDeviceSideTestNative.cpp31 off_t start; in Java_android_media_cts_MediaExtractorDeviceSideTest_extractUsingNdkMediaExtractor() local
33 int fd = AAsset_openFileDescriptor(asset, &start, &length); in Java_android_media_cts_MediaExtractorDeviceSideTest_extractUsingNdkMediaExtractor()
37 AMediaExtractor_setDataSourceFd(mediaExtractor, fd, start, length); in Java_android_media_cts_MediaExtractorDeviceSideTest_extractUsingNdkMediaExtractor()
/cts/tests/tests/os/jni/
Dandroid_os_cts_NoExecutePermissionTest.cpp35 uintptr_t start; in isAddressExecutable() local
38 int scan = sscanf(line, "%" SCNxPTR "-%" SCNxPTR " %9s ", &start, &end, permissions); in isAddressExecutable()
39 if ((scan == 3) && (start <= address) && (address < end)) { in isAddressExecutable()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/monitor_enter/
DTest_monitor_enter.java39 tr1.start(); in testN1()
40 tr2.start(); in testN1()
59 tr1.start(); in testN2()
60 tr2.start(); in testN2()
/cts/tests/media/src/android/mediav2/cts/
DCodecUnitTest.java273 mCodec.start(); in tryStartInInvalidState()
483 mCodec.start(); in testConfigureAfterStart()
503 mCodec.start(); in testConfigureAfterQueueInputBuffer()
522 mCodec.start(); in testConfigureInEOSState()
542 mCodec.start(); in testConfigureInFlushState()
547 if (mIsCodecInAsyncMode) mCodec.start(); in testConfigureInFlushState()
596 mCodec.start(); in testDequeueInputBufferInUnInitState()
630 mCodec.start(); in testDequeueInputBufferInRunningState()
665 mCodec.start(); in testDequeueOutputBufferInUnInitState()
699 mCodec.start(); in testDequeueOutputBufferInRunningState()
[all …]
DMuxerUnitTest.java253 muxer.start(); in testIfCorruptMediaFormatIsRejected()
269 muxer.start(); in testIfAddTrackSucceedsAfterStart()
288 muxer.start(); in testIfAddTrackSucceedsAfterWriteSampleData()
308 muxer.start(); in testIfAddTrackSucceedsAfterStop()
347 muxer.start(); in testIfMuxerStartsBeforeAddTrack()
366 muxer.start(); in testIdempotentStart()
367 muxer.start(); in testIdempotentStart()
386 muxer.start(); in testIfMuxerStartsAfterWriteSampleData()
388 muxer.start(); in testIfMuxerStartsAfterWriteSampleData()
407 muxer.start(); in testIfMuxerStartsAfterStop()
[all …]
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerUsageTest.java152 final long start = System.currentTimeMillis() - USAGE_STATS_RANGE_ALLOWANCE; in testShortcutInvocationEventIsVisible() local
157 checkEventReported(start, end, mPackageContext1, id1, in testShortcutInvocationEventIsVisible()
169 final long start = System.currentTimeMillis() - USAGE_STATS_RANGE_ALLOWANCE; in testShortcutInvocationEventIsNotVisible() local
175 hasEvent(mUsageStatsManager.queryEvents(start, end), in testShortcutInvocationEventIsNotVisible()
179 private void checkEventReported(long start, long end, Context packageContext, String id, in checkEventReported() argument
183 (usm) -> usm.queryEvents(start, end)), packageContext.getPackageName(), id), in checkEventReported()

12345678910>>...28