Home
last modified time | relevance | path

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

12345678910>>...23

/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 …]
DObjectAnimatorTest.java123 mActivityRule.runOnUiThread(objAnimator::start); in testOfFloat()
162 mActivityRule.runOnUiThread(intAnimator::start); in testOfInt()
196 mActivityRule.runOnUiThread(colorAnimator::start); in testOfObject()
224 mActivityRule.runOnUiThread(intAnimator::start); in testOfPropertyValuesHolder()
233 int start = 0xffff0000; in testOfArgb() local
235 int[] values = {start, end}; in testOfArgb()
236 int startRed = Color.red(start); in testOfArgb()
237 int startBlue = Color.blue(start); in testOfArgb()
257 final ObjectAnimator animator = ObjectAnimator.ofArgb(object, property, start, end); in testOfArgb()
262 mActivityRule.runOnUiThread(animator::start); in testOfArgb()
[all …]
DAnimationActivity.java83 TimeInterpolator timeInterpolator, float start, float end){ in createAnimator() argument
84 ValueAnimator valueAnimator = ObjectAnimator.ofFloat(object, propertyName, start,end); in createAnimator()
114 int start, int end) { in createObjectAnimatorForInt() argument
115 ObjectAnimator objAnimator = ObjectAnimator.ofInt(object, propertyName, start,end); in createObjectAnimatorForInt()
149 animator.start(); in startSingleAnimation()
206 colorAnimator.start(); in startColorAnimator()
211 colorAnimator.start(); in startColorAnimator()
235 animatorSet.start(); in animateBall()
239 set.start(); in animateBall()
/cts/tests/tests/view/jni/
Dandroid_view_cts_ChoreographerNativeTest.cpp167 auto start = now(); in android_view_cts_ChoreographerNativeTest_testPostCallback64WithoutDelayEventuallyRunsCallback() local
173 verifyCallback(env, cb1, 1, start, NOMINAL_VSYNC_PERIOD * 3); in android_view_cts_ChoreographerNativeTest_testPostCallback64WithoutDelayEventuallyRunsCallback()
174 verifyCallback(env, cb2, 1, start, NOMINAL_VSYNC_PERIOD * 3); in android_view_cts_ChoreographerNativeTest_testPostCallback64WithoutDelayEventuallyRunsCallback()
183 start = now(); in android_view_cts_ChoreographerNativeTest_testPostCallback64WithoutDelayEventuallyRunsCallback()
185 verifyCallback(env, cb1, 2, start, NOMINAL_VSYNC_PERIOD * 3); in android_view_cts_ChoreographerNativeTest_testPostCallback64WithoutDelayEventuallyRunsCallback()
186 verifyCallback(env, cb2, 1, start, ZERO); in android_view_cts_ChoreographerNativeTest_testPostCallback64WithoutDelayEventuallyRunsCallback()
193 auto start = now(); in android_view_cts_ChoreographerNativeTest_testPostCallback64WithDelayEventuallyRunsCallback() local
199 verifyCallback(env, cb1, 0, start, ZERO); in android_view_cts_ChoreographerNativeTest_testPostCallback64WithDelayEventuallyRunsCallback()
202 verifyCallback(env, cb1, 1, start, DELAY_PERIOD + NOMINAL_VSYNC_PERIOD * 3); in android_view_cts_ChoreographerNativeTest_testPostCallback64WithDelayEventuallyRunsCallback()
210 auto start = now(); in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() local
[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.java68 final int start = -1; in verifySingleTagOnWhileString() local
71 Object[] spans = spanned.getSpans(start, end, Object.class); in verifySingleTagOnWhileString()
88 final int start = 0; in verifyBadHtml() local
92 Object[] spans = spanned.getSpans(start, end, Object.class); in verifyBadHtml()
293 final int start = 0; in testBlockquote() local
297 s.setSpan(new QuoteSpan(), start, end, Spannable.SPAN_PARAGRAPH); in testBlockquote()
303 s.setSpan(new QuoteSpan(), start, end, Spannable.SPAN_PARAGRAPH); in testBlockquote()
325 final int start = 6; in testMarkup() local
328 int end = s.length() - start; in testMarkup()
329 s.setSpan(new StyleSpan(Typeface.BOLD), start, end, SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup()
[all …]
/cts/hostsidetests/statsd/src/android/cts/statsd/atom/
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/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContactsProvider2_AccountRemovalTest.java85 long start = System.currentTimeMillis(); in testAccountRemoval_hasDeleteLogsForContacts() local
87 assertContactsInDeleteLogEventually(start, acc2Ids); in testAccountRemoval_hasDeleteLogsForContacts()
89 start = System.currentTimeMillis(); in testAccountRemoval_hasDeleteLogsForContacts()
91 assertContactsInDeleteLogEventually(start, acc1Ids); in testAccountRemoval_hasDeleteLogsForContacts()
145 long start = System.currentTimeMillis(); in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated() local
149 assertWithinTimeoutLimit(start, in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated()
159 long start = System.currentTimeMillis(); in testAccountRemovalWithMergedContact_hasDeleteLogsForContacts() local
161 assertContactsInDeleteLogEventually(start, idList); in testAccountRemovalWithMergedContact_hasDeleteLogsForContacts()
184 private long assertMerged(long start, long rawContactId, long rawContactId2) { in assertMerged() argument
187 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/hostsidetests/securitybulletin/src/android/security/cts/
DRegexUtils.java63 long start = System.currentTimeMillis(); in assertFind() local
65 long duration = System.currentTimeMillis() - start; in assertFind()
73 String substring = input.substring(matcher.start(), matcher.end()); in assertFind()
74 String context = getInputContext(input, matcher.start(), matcher.end(), in assertFind()
92 private static String getInputContext(String input, int start, int end, int before, int after) { in getInputContext() argument
93 start = Math.max(0, start - before); in getInputContext()
95 return input.substring(start, end); in getInputContext()
127 public CharSequence subSequence(int start, int end) { in subSequence() argument
128 return new TimeoutCharSequence(chars.subSequence(start, end), in subSequence()
/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/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/sample/src/android/sample/cts/
DSampleDeviceReportLogTest.java102 int start; in countHelper() local
105 start = COUNT_START; in countHelper()
107 for (int i = start; i <= end;) { in countHelper()
111 start = COUNT_END; in countHelper()
113 for (int i = start; i >= end;) { in countHelper()
120 reportLog.addValue(START_TAG, 1.0 * start, ResultType.NEUTRAL, ResultUnit.NONE); in countHelper()
/cts/suite/audio_quality/lib/src/
DFileUtil.cpp115 int start = 0; in doVprintf() local
119 start = 2; in doVprintf()
122 size = vsnprintf(mBuffer + start, mBufferSize - start - 2, fmt, ap); // 2 for \n\0 in doVprintf()
127 if ((size + start + 2) > mBufferSize) { in doVprintf()
139 size += start; in doVprintf()
/cts/tests/media/src/android/mediav2/cts/
DCodecUnitTest.java268 mCodec.start(); in tryStartInInvalidState()
478 mCodec.start(); in testConfigureAfterStart()
498 mCodec.start(); in testConfigureAfterQueueInputBuffer()
517 mCodec.start(); in testConfigureInEOSState()
537 mCodec.start(); in testConfigureInFlushState()
542 if (mIsCodecInAsyncMode) mCodec.start(); in testConfigureInFlushState()
591 mCodec.start(); in testDequeueInputBufferInUnInitState()
625 mCodec.start(); in testDequeueInputBufferInRunningState()
660 mCodec.start(); in testDequeueOutputBufferInUnInitState()
694 mCodec.start(); in testDequeueOutputBufferInRunningState()
[all …]
DMuxerUnitTest.java252 muxer.start(); in testIfCorruptMediaFormatIsRejected()
268 muxer.start(); in testIfAddTrackSucceedsAfterStart()
287 muxer.start(); in testIfAddTrackSucceedsAfterWriteSampleData()
307 muxer.start(); in testIfAddTrackSucceedsAfterStop()
346 muxer.start(); in testIfMuxerStartsBeforeAddTrack()
365 muxer.start(); in testIdempotentStart()
366 muxer.start(); in testIdempotentStart()
385 muxer.start(); in testIfMuxerStartsAfterWriteSampleData()
387 muxer.start(); in testIfMuxerStartsAfterWriteSampleData()
406 muxer.start(); in testIfMuxerStartsAfterStop()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DEditTextTest.java163 int start = 1; in testSetSelectionStartEnd() local
165 mEditText1.setSelection(start, end); in testSetSelectionStartEnd()
166 assertEquals(start, mEditText1.getSelectionStart()); in testSetSelectionStartEnd()
169 start = 0; in testSetSelectionStartEnd()
171 mEditText1.setSelection(start, end); in testSetSelectionStartEnd()
172 assertEquals(start, mEditText1.getSelectionStart()); in testSetSelectionStartEnd()
175 start = 7; in testSetSelectionStartEnd()
177 mEditText1.setSelection(start, end); in testSetSelectionStartEnd()
178 assertEquals(start, mEditText1.getSelectionStart()); in testSetSelectionStartEnd()
220 int start = 0; in testExtendSelection() local
[all …]
/cts/hostsidetests/media/app/MediaExtractorTest/jni/
DMediaExtractorDeviceSideTestNative.cpp30 off_t start; in Java_android_media_cts_MediaExtractorDeviceSideTest_extractUsingNdkMediaExtractor() local
32 int fd = AAsset_openFileDescriptor(asset, &start, &length); in Java_android_media_cts_MediaExtractorDeviceSideTest_extractUsingNdkMediaExtractor()
36 AMediaExtractor_setDataSourceFd(mediaExtractor, fd, start, length); in Java_android_media_cts_MediaExtractorDeviceSideTest_extractUsingNdkMediaExtractor()
/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/fragment/src/android/fragment/cts/
DPostponedTransitionTest.java800 private void assertForwardTransition(TransitionFragment start, TransitionFragment end) in assertForwardTransition() argument
802 start.waitForTransition(); in assertForwardTransition()
804 assertEquals(0, start.enterTransition.targets.size()); in assertForwardTransition()
807 assertEquals(0, start.reenterTransition.targets.size()); in assertForwardTransition()
810 assertEquals(0, start.returnTransition.targets.size()); in assertForwardTransition()
813 assertEquals(1, start.exitTransition.targets.size()); in assertForwardTransition()
816 assertEquals(0, start.sharedElementEnter.targets.size()); in assertForwardTransition()
819 assertEquals(0, start.sharedElementReturn.targets.size()); in assertForwardTransition()
827 assertNoTargets(start); in assertForwardTransition()
830 clearTargets(start); in assertForwardTransition()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapFactoryTest.java140 Bitmap b = BitmapFactory.decodeResource(mRes, R.drawable.start, in testDecodeResource1()
147 assertNull(BitmapFactory.decodeResource(mRes, R.drawable.start, mOpt2)); in testDecodeResource1()
152 Bitmap b = BitmapFactory.decodeResource(mRes, R.drawable.start); in testDecodeResource2()
412 Bitmap start = BitmapFactory.decodeResource(mRes, R.drawable.start, options); in testDecodeReuseBasic() local
413 int originalSize = start.getByteCount(); in testDecodeReuseBasic()
414 assertEquals(originalSize, start.getAllocationByteCount()); in testDecodeReuseBasic()
416 options.inBitmap = start; in testDecodeReuseBasic()
423 assertSame(start, pass); in testDecodeReuseBasic()
433 Bitmap start = BitmapFactory.decodeResource(mRes, R.drawable.start, options); in testDecodeReuseAttempt() local
434 assertFalse(start.isMutable()); in testDecodeReuseAttempt()
[all …]
/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()

12345678910>>...23