/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/text/src/android/text/cts/ |
D | HtmlTest.java | 53 final int start = -1; in assertSingleTagOnWhileString() local 56 Object[] spans = spanned.getSpans(start, end, Object.class); in assertSingleTagOnWhileString() 72 final int start = 0; in assertBadHtml() local 76 Object[] spans = spanned.getSpans(start, end, Object.class); in assertBadHtml() 91 final int start = 0; in testColor() local 97 colors = s.getSpans(start, end, type); in testColor() 103 colors = s.getSpans(start, end, type); in testColor() 109 colors = s.getSpans(start, end, type); in testColor() 130 final int start = 0; in testBlockquote() local 134 s.setSpan(new QuoteSpan(), start, end, Spannable.SPAN_PARAGRAPH); in testBlockquote() [all …]
|
D | SpannableStringBuilderSpanTest.java | 131 int start = spannable.getSpanStart(span); in checkSpanPositions() local 140 start + "," + end + " | " + startStyle + " " + endStyle + in checkSpanPositions() 150 assertEquals(-1, start); in checkSpanPositions() 158 assertEquals(originalStart, start); in checkSpanPositions() 166 assertEquals(replaceStart, start); in checkSpanPositions() 168 assertEquals(replaceStart + replacementLength, start); in checkSpanPositions() 175 assertEquals(replaceStart + replacementLength, start); in checkSpanPositions() 177 assertEquals(replaceStart, start); in checkSpanPositions() 186 assertEquals(originalStart + delta, start); in checkSpanPositions() 224 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 | TextUtilsTest.java | 385 public void ellipsized(final int start, final int end) { in testEllipsizeCallback() 386 mStart = start; in testEllipsizeCallback() 700 int start = 1; in testGetChars() local 703 TextUtils.getChars(mockGetChars, start, end, destResult, destOff); in testGetChars() 705 assertEquals(start, mockGetChars.ReadGetCharsParams().start); in testGetChars() 714 start = 0; in testGetChars() 717 TextUtils.getChars(mockCharSequence, start, end, destResult, destOff); in testGetChars() 719 for (int i = 0; i < end - start; i++) { in testGetChars() 720 assertEquals(mockCharSequence.charAt(start + i), destResult[destOff + i]); in testGetChars() 723 for (int i = destOff + (end - start); i < destOriginal.length; i++) { in testGetChars() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | EditTextTest.java | 125 int start = 1; in testSetSelectionStartstop() local 127 editText.setSelection(start, end); in testSetSelectionStartstop() 128 assertEquals(start, editText.getSelectionStart()); in testSetSelectionStartstop() 131 start = 0; in testSetSelectionStartstop() 133 editText.setSelection(start, end); in testSetSelectionStartstop() 134 assertEquals(start, editText.getSelectionStart()); in testSetSelectionStartstop() 137 start = 7; in testSetSelectionStartstop() 139 editText.setSelection(start, end); in testSetSelectionStartstop() 140 assertEquals(start, editText.getSelectionStart()); in testSetSelectionStartstop() 182 int start = 0; in testExtendSelection() local [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() 120 long start = System.currentTimeMillis(); in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated() local 124 assertWithinTimeoutLimit(start, in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated() 133 long start = System.currentTimeMillis(); in testAccountRemovalWithMergedContact_hasDeleteLogsForContacts() local 135 assertContactsInDeleteLogEventually(start, idList); in testAccountRemovalWithMergedContact_hasDeleteLogsForContacts() 158 private long assertMerged(long start, long rawContactId, long rawContactId2) { in assertMerged() argument 161 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/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/tests/animation/src/android/animation/cts/ |
D | FloatEvaluatorTest.java | 24 float start = 0.0f; in testEvaluate() local 28 float result = floatEvaluator.evaluate(fraction, start, end); in testEvaluate() 29 assertTrue(result >= (fraction*start)); in testEvaluate()
|
D | IntEvaluatorTest.java | 24 final int start = 0; in testEvaluate() local 31 result = intEvaluator.evaluate(fraction, start, end); in testEvaluate() 38 assertTrue(result >= (fraction*start)); in testEvaluate()
|
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() 202 colorAnimator.start(); in startColorAnimator() 207 colorAnimator.start(); in startColorAnimator() 231 animatorSet.start(); in animateBall() 235 set.start(); in animateBall()
|
D | ValueAnimatorTest.java | 168 float start = 0.0f; in testOfFloat() local 170 float[] values = {start, end}; in testOfFloat() 179 valueAnimatorLocal.start(); in testOfFloat() 187 assertTrue(animatedValue >= start); in testOfFloat() 192 int start = 0; in testOfInt() local 194 int[] values = {start, end}; in testOfInt() 203 valueAnimatorLocal.start(); in testOfInt() 211 assertTrue(animatedValue >= start); in testOfInt()
|
/cts/suite/cts/deviceTests/dram/jni/ |
D | MemoryNativeJni.cpp | 42 double start = currentTimeMillis(); in Java_com_android_cts_dram_MemoryNative_runMemcpy() local 50 return end - start; in Java_com_android_cts_dram_MemoryNative_runMemcpy() 63 double start = currentTimeMillis(); in Java_com_android_cts_dram_MemoryNative_runMemset() local 69 return end - start; in Java_com_android_cts_dram_MemoryNative_runMemset()
|
/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/tests/tests/media/src/android/media/cts/ |
D | MediaCodecTest.java | 106 encoder.start(); in testCreateInputSurfaceErrors() 140 encoder.start(); in testSignalSurfaceEOS() 187 encoder.start(); in testDequeueSurface() 221 encoder.start(); in testReconfigureWithoutSurface() 229 encoder.start(); in testReconfigureWithoutSurface() 274 videoDecodingThread.start(); in testDecodeShortInput() 295 mediaCodec.start(); in runDecodeShortInput() 370 audioDecoderA.start(); in testCreateTwoAudioDecoders() 374 audioDecoderB.start(); in testCreateTwoAudioDecoders() 412 audioEncoder.start(); in testCreateAudioDecoderAndEncoder() [all …]
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
D | PhoneStateListenerTest.java | 93 t.start(); in testOnServiceStateChanged() 132 t.start(); in testOnSignalStrengthChanged() 167 t.start(); in testOnMessageWaitingIndicatorChanged() 202 t.start(); in testOnCallForwardingIndicatorChanged() 236 t.start(); in testOnCellLocationChanged() 270 t.start(); in testOnCallStateChanged() 305 t.start(); in testOnDataConnectionStateChanged() 339 t.start(); in testOnDataActivity()
|
/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/libs/commonutil/src/com/android/cts/util/ |
D | MeasureTime.java | 33 long start = System.currentTimeMillis(); in measure() local 36 result[i] = end - start; in measure()
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
D | SensorTestOperation.java | 45 public synchronized void start() throws Throwable { in start() method in SensorTestOperation 64 mThread.start(); in start() 88 this.start(); in execute()
|
/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/src/android/app/cts/ |
D | SearchManagerStubActivity.java | 90 }.start(); in testOnCancelListener() 127 }.start(); in testOnDismissListener() 150 }.start(); in testStopSearch() 202 public void start() { in start() method in SearchManagerStubActivity.TestStepHandler
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | ReplacementSpanTest.java | 42 public void draw(Canvas canvas, CharSequence text, int start, int end, in draw() argument 48 public int getSize(Paint paint, CharSequence text, int start, int end, in getSize() argument
|
/cts/libs/json/src/com/android/json/stream/ |
D | JsonReader.java | 811 int start = pos; in nextString() local 819 return new String(buffer, start, pos - start - 1); in nextString() 821 builder.append(buffer, start, pos - start - 1); in nextString() 829 builder.append(buffer, start, pos - start - 1); in nextString() 831 start = pos; in nextString() 838 builder.append(buffer, start, pos - start); in nextString()
|
/cts/tools/cts-reference-app-lib/src/android/cts/refapp/ |
D | ReferenceAppTestCase.java | 62 long start = System.currentTimeMillis(); in testActivityStartupTime() local 66 long startupTime = end - start; in testActivityStartupTime()
|