/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/animation/src/android/animation/cts/ |
D | EvaluatorTest.java | 37 float start = 0.0f; in testFloatEvaluator() local 42 float result = floatEvaluator.evaluate(0, start, end); in testFloatEvaluator() 43 assertEquals(start, result, .001f); in testFloatEvaluator() 45 result = floatEvaluator.evaluate(fraction, start, end); in testFloatEvaluator() 48 result = floatEvaluator.evaluate(1, start, end); in testFloatEvaluator() 53 float[] start = {0f, 0f}; in testFloatArrayEvaluator() local 58 float[] result = evaluator.evaluate(0, start, end); in testFloatArrayEvaluator() 59 assertEquals(start[0], result[0], .001f); in testFloatArrayEvaluator() 60 assertEquals(start[1], result[1], .001f); in testFloatArrayEvaluator() 62 result = evaluator.evaluate(fraction, start, end); in testFloatArrayEvaluator() [all …]
|
D | ValueAnimatorTest.java | 154 delayedAnim.start(); in testSetCurrentPlayTime() 199 anim.start(); in testSetCurrentPlayTimeAfterStart() 254 anim.start(); in testReverseRightAfterStart() 349 float start = 0.0f; in testOfFloat() local 351 float[] values = {start, end}; in testOfFloat() 360 valueAnimatorLocal.start(); in testOfFloat() 368 assertTrue(animatedValue >= start); in testOfFloat() 373 int start = 0; in testOfInt() local 375 int[] values = {start, end}; in testOfInt() 384 valueAnimatorLocal.start(); in testOfInt() [all …]
|
D | AnimationActivity.java | 84 TimeInterpolator timeInterpolator, float start, float end){ in createAnimator() argument 85 ValueAnimator valueAnimator = ObjectAnimator.ofFloat(object, propertyName, start,end); in createAnimator() 115 int start, int end) { in createObjectAnimatorForInt() argument 116 ObjectAnimator objAnimator = ObjectAnimator.ofInt(object, propertyName, start,end); in createObjectAnimatorForInt() 150 animator.start(); in startSingleAnimation() 207 colorAnimator.start(); in startColorAnimator() 212 colorAnimator.start(); in startColorAnimator() 236 animatorSet.start(); in animateBall() 240 set.start(); in animateBall()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | SpannableStringBuilderSpanTest.java | 136 int start = spannable.getSpanStart(span); in checkSpanPositions() local 145 start + "," + end + " | " + startStyle + " " + endStyle + in checkSpanPositions() 155 assertEquals(-1, start); in checkSpanPositions() 163 assertEquals(originalStart, start); in checkSpanPositions() 171 assertEquals(replaceStart, start); in checkSpanPositions() 173 assertEquals(replaceStart + replacementLength, start); in checkSpanPositions() 180 assertEquals(replaceStart + replacementLength, start); in checkSpanPositions() 182 assertEquals(replaceStart, start); in checkSpanPositions() 191 assertEquals(originalStart + delta, start); in checkSpanPositions() 229 if (start != originalStart || end != originalEnd) { in checkSpanPositions() [all …]
|
D | AlteredCharSequenceTest.java | 58 int start = 0; in testGetChars() local 64 mAlteredCharSequence.getChars(start, end, dest, off); in testGetChars() 67 for (int i = off; i < end - start + off; i++) { in testGetChars() 74 mAlteredCharSequence.getChars(start, end, dest, off); in testGetChars() 75 for (int i = off; i < end - start + off; i++) { in testGetChars() 78 start = end + 1; in testGetChars() 80 mAlteredCharSequence.getChars(start, end, dest, off); in testGetChars() 152 public <T> T[] getSpans(int start, int end, Class<T> type) { in getSpans() argument 156 public int nextSpanTransition(int start, int limit, Class type) { in nextSpanTransition() argument 165 public CharSequence subSequence(int start, int end) { in subSequence() argument
|
D | HtmlTest.java | 61 final int start = -1; in assertSingleTagOnWhileString() local 64 Object[] spans = spanned.getSpans(start, end, Object.class); in assertSingleTagOnWhileString() 80 final int start = 0; in assertBadHtml() local 84 Object[] spans = spanned.getSpans(start, end, Object.class); in assertBadHtml() 261 final int start = 0; in testBlockquote() local 265 s.setSpan(new QuoteSpan(), start, end, Spannable.SPAN_PARAGRAPH); in testBlockquote() 271 s.setSpan(new QuoteSpan(), start, end, Spannable.SPAN_PARAGRAPH); in testBlockquote() 291 final int start = 6; in testMarkup() local 294 int end = s.length() - start; in testMarkup() 295 s.setSpan(new StyleSpan(Typeface.BOLD), start, end, SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup() [all …]
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | ContactsProvider2_AccountRemovalTest.java | 90 long start = System.currentTimeMillis(); in testAccountRemoval_hasDeleteLogsForContacts() local 92 assertContactsInDeleteLogEventually(start, acc2Ids); in testAccountRemoval_hasDeleteLogsForContacts() 94 start = System.currentTimeMillis(); in testAccountRemoval_hasDeleteLogsForContacts() 96 assertContactsInDeleteLogEventually(start, acc1Ids); in testAccountRemoval_hasDeleteLogsForContacts() 121 long start = System.currentTimeMillis(); in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated() local 125 assertWithinTimeoutLimit(start, in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated() 135 long start = System.currentTimeMillis(); in testAccountRemovalWithMergedContact_hasDeleteLogsForContacts() local 137 assertContactsInDeleteLogEventually(start, idList); in testAccountRemovalWithMergedContact_hasDeleteLogsForContacts() 160 private long assertMerged(long start, long rawContactId, long rawContactId2) { in assertMerged() argument 163 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/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/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/ |
D | MSSIMComparer.java | 57 int start = indexFromXAndY(currentWindowX, currentWindowY, stride, offset); in verifySame() local 58 if (isWindowWhite(ideal, start, stride) && isWindowWhite(given, start, stride)) { in verifySame() 62 double[] means = getMeans(ideal, given, start, stride); in verifySame() 65 double[] variances = getVariances(ideal, given, meanX, meanY, start, stride); in verifySame() 110 private boolean isWindowWhite(int[] colors, int start, int stride) { in isWindowWhite() argument 113 if (colors[indexFromXAndY(x, y, stride, start)] != Color.WHITE) { in isWindowWhite() 135 private double[] getMeans(int[] pixels0, int[] pixels1, int start, int stride) { in getMeans() argument 140 int index = indexFromXAndY(x, y, stride, start); in getMeans() 156 int start, int stride) { in getVariances() argument 162 int index = indexFromXAndY(x, y, stride, start); in getVariances()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | EditTextTest.java | 126 int start = 1; in testSetSelectionStartstop() local 128 editText.setSelection(start, end); in testSetSelectionStartstop() 129 assertEquals(start, editText.getSelectionStart()); in testSetSelectionStartstop() 132 start = 0; in testSetSelectionStartstop() 134 editText.setSelection(start, end); in testSetSelectionStartstop() 135 assertEquals(start, editText.getSelectionStart()); in testSetSelectionStartstop() 138 start = 7; in testSetSelectionStartstop() 140 editText.setSelection(start, end); in testSetSelectionStartstop() 141 assertEquals(start, editText.getSelectionStart()); in testSetSelectionStartstop() 183 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/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/dram/jni/ |
D | MemoryNativeJni.cpp | 42 double start = currentTimeMillis(); in Java_android_dram_cts_MemoryNative_runMemcpy() local 50 return end - start; in Java_android_dram_cts_MemoryNative_runMemcpy() 63 double start = currentTimeMillis(); in Java_android_dram_cts_MemoryNative_runMemset() local 69 return end - start; in Java_android_dram_cts_MemoryNative_runMemset()
|
/cts/tests/tests/view/jni/ |
D | android_view_cts_ChoreographerNativeTest.cpp | 93 auto start = now(); in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() local 101 ASSERT(cb1->frameTime - start < NOMINAL_VSYNC_PERIOD * 3, in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() 104 ASSERT(cb2->frameTime - start < NOMINAL_VSYNC_PERIOD * 3, in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() 112 start = now(); in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() 117 ASSERT(cb1->frameTime - start < NOMINAL_VSYNC_PERIOD * 3, in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() 127 auto start = now(); in android_view_cts_ChoreographerNativeTest_testPostCallbackWithDelayEventuallyRunsCallback() local 141 ASSERT(cb1->frameTime - start < DELAY_PERIOD + NOMINAL_VSYNC_PERIOD * 3, in android_view_cts_ChoreographerNativeTest_testPostCallbackWithDelayEventuallyRunsCallback()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/ |
D | GpsTestActivity.java | 99 mLocationVerifier.start(); in nextTest() 105 mLocationVerifier.start(); in nextTest() 111 mLocationVerifier.start(); in nextTest() 117 mLocationVerifier.start(); in nextTest() 141 int start = mTextView.getText().length(); in log() local 146 spanText.setSpan(new ForegroundColorSpan(color), start, end, 0); in log()
|
/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()
|
/cts/tests/tests/os/jni/ |
D | android_os_cts_NoExecutePermissionTest.cpp | 35 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/tests/tests/telephony/src/android/telephony/cts/ |
D | PhoneStateListenerTest.java | 109 t.start(); in testOnServiceStateChanged() 146 t.start(); in testOnSignalStrengthChanged() 183 t.start(); in testOnSignalStrengthsChanged() 232 t.start(); in testOnMessageWaitingIndicatorChanged() 271 t.start(); in testOnCallForwardingIndicatorChanged() 308 t.start(); in testOnCellLocationChanged() 345 t.start(); in testOnCallStateChanged() 383 t.start(); in testOnDataConnectionStateChanged() 420 t.start(); in testOnDataActivity()
|
/cts/common/util/src/com/android/compatibility/common/util/ |
D | MeasureTime.java | 37 long start = System.currentTimeMillis(); in measure() local 40 result[i] = end - start; in measure()
|
/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/tests/tests/media/src/android/media/cts/ |
D | MediaPlayerTest.java | 139 mMediaPlayer.start(); in testIfMediaServerDied() 159 mp2.start(); in testVorbisCrash() 210 mp.start(); in testPlayAudioFromDataURI() 229 mp.start(); in testPlayAudioFromDataURI() 238 mp.start(); in testPlayAudioFromDataURI() 262 mp.start(); 281 mp.start(); 292 mp.start(); 322 mp.start(); 352 mp.start(); [all …]
|
D | MediaCodecTest.java | 172 codec.start(); in verifyException() 247 codec.start(); in verifyException() 336 encoder.start(); in testCreateInputSurfaceErrors() 378 encoder.start(); in testSignalSurfaceEOS() 444 encoder.start(); in doTestAbruptStop() 496 flushThread.start(); in testReleaseAfterFlush() 506 callbackThread.start(); in testReleaseAfterFlush() 525 flushThread.start(); in testReleaseAfterFlush() 678 encoder.start(); in initCodecAndSurface() 788 encoder.start(); in testDequeueSurface() [all …]
|
/cts/tests/app/app/src/android/app/stubs/ |
D | SearchManagerStubActivity.java | 91 }.start(); in testOnCancelListener() 128 }.start(); in testOnDismissListener() 151 }.start(); in testStopSearch() 203 public void start() { in start() method in SearchManagerStubActivity.TestStepHandler
|