/cts/tests/tests/animation/src/android/animation/cts/ |
D | EvaluatorTest.java | 49 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 …]
|
D | ValueAnimatorTest.java | 154 anim.start(); in testListenerCallbackWithStartDelay() 212 delayedAnim.start(); in testSetCurrentPlayTime() 238 a1.start(); in testPauseListener() 265 anim.start(); in testSetCurrentPlayTimeAfterStart() 319 anim.start(); in testReverseRightAfterStart() 362 a1.start(); in testUpdateListeners() 405 a1.start(); in testValuesSetterAndGetter() 442 a1.start(); in testSetObjectValues() 509 animator.start(); in testGetAnimatedFraction() 561 float start = 0.0f; in testOfFloat() local [all …]
|
D | ObjectAnimatorTest.java | 123 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 …]
|
D | AnimationActivity.java | 83 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/os/src/android/os/cts/ |
D | SystemClockTest.java | 26 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/view/jni/ |
D | android_view_cts_ChoreographerNativeTest.cpp | 112 auto start = now(); in android_view_cts_ChoreographerNativeTest_testPostCallback64WithoutDelayEventuallyRunsCallback() local 118 verifyCallback(env, cb1, 1, start, NOMINAL_VSYNC_PERIOD * 3); in android_view_cts_ChoreographerNativeTest_testPostCallback64WithoutDelayEventuallyRunsCallback() 119 verifyCallback(env, cb2, 1, start, NOMINAL_VSYNC_PERIOD * 3); in android_view_cts_ChoreographerNativeTest_testPostCallback64WithoutDelayEventuallyRunsCallback() 128 start = now(); in android_view_cts_ChoreographerNativeTest_testPostCallback64WithoutDelayEventuallyRunsCallback() 130 verifyCallback(env, cb1, 2, start, NOMINAL_VSYNC_PERIOD * 3); in android_view_cts_ChoreographerNativeTest_testPostCallback64WithoutDelayEventuallyRunsCallback() 131 verifyCallback(env, cb2, 1, start, ZERO); in android_view_cts_ChoreographerNativeTest_testPostCallback64WithoutDelayEventuallyRunsCallback() 138 auto start = now(); in android_view_cts_ChoreographerNativeTest_testPostCallback64WithDelayEventuallyRunsCallback() local 144 verifyCallback(env, cb1, 0, start, ZERO); in android_view_cts_ChoreographerNativeTest_testPostCallback64WithDelayEventuallyRunsCallback() 147 verifyCallback(env, cb1, 1, start, DELAY_PERIOD + NOMINAL_VSYNC_PERIOD * 3); in android_view_cts_ChoreographerNativeTest_testPostCallback64WithDelayEventuallyRunsCallback() 155 auto start = now(); in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() local [all …]
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | ContactsProvider2_AccountRemovalTest.java | 82 long start = System.currentTimeMillis(); in testAccountRemoval_hasDeleteLogsForContacts() local 84 assertContactsInDeleteLogEventually(start, acc2Ids); in testAccountRemoval_hasDeleteLogsForContacts() 86 start = System.currentTimeMillis(); in testAccountRemoval_hasDeleteLogsForContacts() 88 assertContactsInDeleteLogEventually(start, acc1Ids); in testAccountRemoval_hasDeleteLogsForContacts() 113 long start = System.currentTimeMillis(); in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated() local 117 assertWithinTimeoutLimit(start, in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated() 127 long start = System.currentTimeMillis(); in testAccountRemovalWithMergedContact_hasDeleteLogsForContacts() local 129 assertContactsInDeleteLogEventually(start, idList); in testAccountRemovalWithMergedContact_hasDeleteLogsForContacts() 152 private long assertMerged(long start, long rawContactId, long rawContactId2) { in assertMerged() argument 155 assertWithinTimeoutLimit(start, in assertMerged() [all …]
|
D | ContactsContract_DeletedContacts.java | 60 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/tests/text/src/android/text/cts/ |
D | SpannableStringBuilderSpanTest.java | 150 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 …]
|
D | AlteredCharSequenceTest.java | 68 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
|
D | HtmlTest.java | 68 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/securitybulletin/src/android/security/cts/ |
D | RegexUtils.java | 63 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/ |
D | MSSIMComparer.java | 64 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/widget/src/android/widget/cts/ |
D | EditTextTest.java | 146 int start = 1; in testSetSelectionStartEnd() local 148 mEditText1.setSelection(start, end); in testSetSelectionStartEnd() 149 assertEquals(start, mEditText1.getSelectionStart()); in testSetSelectionStartEnd() 152 start = 0; in testSetSelectionStartEnd() 154 mEditText1.setSelection(start, end); in testSetSelectionStartEnd() 155 assertEquals(start, mEditText1.getSelectionStart()); in testSetSelectionStartEnd() 158 start = 7; in testSetSelectionStartEnd() 160 mEditText1.setSelection(start, end); in testSetSelectionStartEnd() 161 assertEquals(start, mEditText1.getSelectionStart()); in testSetSelectionStartEnd() 203 int start = 0; in testExtendSelection() local [all …]
|
/cts/tests/sample/src/android/sample/cts/ |
D | SampleDeviceReportLogTest.java | 102 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/hostsidetests/jdwpsecurity/app/src/com/android/cts/jdwpsecurity/ |
D | JdwpTest.java | 31 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/suite/audio_quality/lib/src/ |
D | FileUtil.cpp | 115 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/ |
D | CodecUnitTest.java | 268 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 …]
|
D | MuxerUnitTest.java | 252 muxer.start(); in testIfCorruptMediaFormatIsRejected() 269 muxer.start(); in testIfAddTrackSucceedsAfterStart() 288 muxer.start(); in testIfAddTrackSucceedsAfterWriteSampleData() 308 muxer.start(); in testIfAddTrackSucceedsAfterStop() 347 muxer.start(); in testIfMuxerStartsBeforeAddTrack() 367 muxer.start(); in testIdempotentStart() 368 muxer.start(); in testIdempotentStart() 387 muxer.start(); in testIfMuxerStartsAfterWriteSampleData() 389 muxer.start(); in testIfMuxerStartsAfterWriteSampleData() 408 muxer.start(); in testIfMuxerStartsAfterStop() [all …]
|
D | CodecDecoderSurfaceTest.java | 102 mCodec.start(); in decodeAndSavePts() 218 mCodec.start(); in testSimpleDecodeToSurface() 277 mCodec.start(); in testFlush() 281 if (mIsCodecInAsyncMode) mCodec.start(); in testFlush() 286 if (mIsCodecInAsyncMode) mCodec.start(); in testFlush() 297 if (mIsCodecInAsyncMode) mCodec.start(); in testFlush() 310 if (mIsCodecInAsyncMode) mCodec.start(); in testFlush() 373 mCodec.start(); in testReconfigure() 377 mCodec.start(); in testReconfigure() 382 mCodec.start(); in testReconfigure() [all …]
|
/cts/tests/fragment/src/android/fragment/cts/ |
D | PostponedTransitionTest.java | 800 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/ |
D | BitmapFactoryTest.java | 132 Bitmap b = BitmapFactory.decodeResource(mRes, R.drawable.start, in testDecodeResource1() 139 assertNull(BitmapFactory.decodeResource(mRes, R.drawable.start, mOpt2)); in testDecodeResource1() 144 Bitmap b = BitmapFactory.decodeResource(mRes, R.drawable.start); in testDecodeResource2() 389 Bitmap start = BitmapFactory.decodeResource(mRes, R.drawable.start, options); in testDecodeReuseBasic() local 390 int originalSize = start.getByteCount(); in testDecodeReuseBasic() 391 assertEquals(originalSize, start.getAllocationByteCount()); in testDecodeReuseBasic() 393 options.inBitmap = start; in testDecodeReuseBasic() 400 assertSame(start, pass); in testDecodeReuseBasic() 410 Bitmap start = BitmapFactory.decodeResource(mRes, R.drawable.start, options); in testDecodeReuseAttempt() local 411 assertFalse(start.isMutable()); in testDecodeReuseAttempt() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaPlayerTest.java | 153 mMediaPlayer.start(); in testIfMediaServerDied() 173 mp2.start(); in testVorbisCrash() 224 mp.start(); in testPlayAudioFromDataURI() 243 mp.start(); in testPlayAudioFromDataURI() 252 mp.start(); in testPlayAudioFromDataURI() 288 mp.start(); 307 mp.start(); 318 mp.start(); 343 mp.start(); 384 mp.start(); in testPlayAudioLooping() [all …]
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | CodecTest.java | 106 mp.start(); in getCurrentPosition() 133 mp.start(); in seekTo() 163 mp.start(); in setLooping() 198 mp.start(); in pause() 265 mMediaPlayer.start(); in videoHeight() 301 mMediaPlayer.start(); in videoWidth() 326 mp.start(); in videoSeekTo() 334 mp.start(); in videoSeekTo() 339 mp.start(); in videoSeekTo() 363 mp.start(); in seekToEnd() [all …]
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/monitor_enter/ |
D | Test_monitor_enter.java | 39 tr1.start(); in testN1() 40 tr2.start(); in testN1() 59 tr1.start(); in testN2() 60 tr2.start(); in testN2()
|