/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 | 48 float start = 0.0f; in testFloatEvaluator() local 53 float result = floatEvaluator.evaluate(0, start, end); in testFloatEvaluator() 54 assertEquals(start, result, EPSILON); in testFloatEvaluator() 56 result = floatEvaluator.evaluate(fraction, start, end); in testFloatEvaluator() 59 result = floatEvaluator.evaluate(1, start, end); in testFloatEvaluator() 74 float[] start = {0f, 0f}; in floatArrayEvaluatorTestImpl() local 78 float[] result = evaluator.evaluate(0, start, end); in floatArrayEvaluatorTestImpl() 79 assertEquals(start[0], result[0], EPSILON); in floatArrayEvaluatorTestImpl() 80 assertEquals(start[1], result[1], EPSILON); in floatArrayEvaluatorTestImpl() 82 result = evaluator.evaluate(fraction, start, end); in floatArrayEvaluatorTestImpl() [all …]
|
D | ValueAnimatorTest.java | 151 anim.start(); in testListenerCallbackWithStartDelay() 209 delayedAnim.start(); in testSetCurrentPlayTime() 235 a1.start(); in testPauseListener() 262 anim.start(); in testSetCurrentPlayTimeAfterStart() 316 anim.start(); in testReverseRightAfterStart() 359 a1.start(); in testUpdateListeners() 402 a1.start(); in testValuesSetterAndGetter() 439 a1.start(); in testSetObjectValues() 522 float start = 0.0f; in testOfFloat() local 524 float[] values = {start, end}; in testOfFloat() [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/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 | 51 int start = indexFromXAndY(currentWindowX, currentWindowY, stride, offset); in verifySame() local 52 if (isWindowWhite(ideal, start, stride) && isWindowWhite(given, start, stride)) { in verifySame() 56 double[] means = getMeans(ideal, given, start, stride); in verifySame() 59 double[] variances = getVariances(ideal, given, meanX, meanY, start, stride); in verifySame() 79 private boolean isWindowWhite(int[] colors, int start, int stride) { in isWindowWhite() argument 82 if (colors[indexFromXAndY(x, y, stride, start)] != Color.WHITE) { in isWindowWhite() 104 private double[] getMeans(int[] pixels0, int[] pixels1, int start, int stride) { in getMeans() argument 109 int index = indexFromXAndY(x, y, stride, start); in getMeans() 125 int start, int stride) { in getVariances() argument 131 int index = indexFromXAndY(x, y, stride, start); in getVariances()
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
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/tests/tests/text/src/android/text/cts/ |
D | SpannableStringBuilderSpanTest.java | 149 int start = spannable.getSpanStart(span); in verifySpanPositions() local 158 start + "," + end + " | " + startStyle + " " + endStyle + in verifySpanPositions() 168 assertEquals(-1, start); in verifySpanPositions() 176 assertEquals(originalStart, start); in verifySpanPositions() 184 assertEquals(replaceStart, start); in verifySpanPositions() 186 assertEquals(replaceStart + replacementLength, start); in verifySpanPositions() 193 assertEquals(replaceStart + replacementLength, start); in verifySpanPositions() 195 assertEquals(replaceStart, start); in verifySpanPositions() 204 assertEquals(originalStart + delta, start); in verifySpanPositions() 242 if (start != originalStart || end != originalEnd) { in verifySpanPositions() [all …]
|
D | AlteredCharSequenceTest.java | 67 int start = 0; in testGetChars() local 73 mAlteredCharSequence.getChars(start, end, dest, off); in testGetChars() 76 for (int i = off; i < end - start + off; i++) { in testGetChars() 83 mAlteredCharSequence.getChars(start, end, dest, off); in testGetChars() 84 for (int i = off; i < end - start + off; i++) { in testGetChars() 87 start = end + 1; in testGetChars() 89 mAlteredCharSequence.getChars(start, end, dest, off); in testGetChars() 166 public <T> T[] getSpans(int start, int end, Class<T> type) { in getSpans() argument 170 public int nextSpanTransition(int start, int limit, Class type) { in nextSpanTransition() argument 182 public CharSequence subSequence(int start, int end) { in subSequence() argument
|
D | HtmlTest.java | 67 final int start = -1; in verifySingleTagOnWhileString() local 70 Object[] spans = spanned.getSpans(start, end, Object.class); in verifySingleTagOnWhileString() 87 final int start = 0; in verifyBadHtml() local 91 Object[] spans = spanned.getSpans(start, end, Object.class); in verifyBadHtml() 292 final int start = 0; in testBlockquote() local 296 s.setSpan(new QuoteSpan(), start, end, Spannable.SPAN_PARAGRAPH); in testBlockquote() 302 s.setSpan(new QuoteSpan(), start, end, Spannable.SPAN_PARAGRAPH); in testBlockquote() 324 final int start = 6; in testMarkup() local 327 int end = s.length() - start; in testMarkup() 328 s.setSpan(new StyleSpan(Typeface.BOLD), start, end, SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup() [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/tests/widget/src/android/widget/cts/ |
D | EditTextTest.java | 143 int start = 1; in testSetSelectionStartEnd() local 145 mEditText1.setSelection(start, end); in testSetSelectionStartEnd() 146 assertEquals(start, mEditText1.getSelectionStart()); in testSetSelectionStartEnd() 149 start = 0; in testSetSelectionStartEnd() 151 mEditText1.setSelection(start, end); in testSetSelectionStartEnd() 152 assertEquals(start, mEditText1.getSelectionStart()); in testSetSelectionStartEnd() 155 start = 7; in testSetSelectionStartEnd() 157 mEditText1.setSelection(start, end); in testSetSelectionStartEnd() 158 assertEquals(start, mEditText1.getSelectionStart()); in testSetSelectionStartEnd() 200 int start = 0; in testExtendSelection() local [all …]
|
/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/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/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/telephony/src/android/telephony/cts/ |
D | PhoneStateListenerTest.java | 114 t.start(); in testOnServiceStateChanged() 151 t.start(); in testOnSignalStrengthChanged() 188 t.start(); in testOnSignalStrengthsChanged() 237 t.start(); in testOnMessageWaitingIndicatorChanged() 276 t.start(); in testOnCallForwardingIndicatorChanged() 313 t.start(); in testOnCellLocationChanged() 350 t.start(); in testOnCallStateChanged() 396 t.start(); in testOnDataConnectionStateChanged() 435 t.start(); in testOnDataActivity() 472 t.start(); in testOnCellInfoChanged() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | AntiTrimmerTextWatcher.java | 42 public void onTextChanged(CharSequence s, int start, int before, int count) { in onTextChanged() argument 48 public void beforeTextChanged(CharSequence s, int start, int count, int after) { in beforeTextChanged() argument
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | AnimationTestCtsActivity.java | 52 long start = System.nanoTime(); in waitUntilVisible() local 53 while (!mIsVisible && (System.nanoTime() - start) < VISIBLE_TIMEOUT) { in waitUntilVisible()
|
/cts/hostsidetests/dexmetadata/host/src/com/android/cts/dexmetadata/ |
D | BaseInstallMultiple.java | 86 final int start = result.lastIndexOf("["); in run() local 90 if (start != -1 && end != -1 && start < end) { in run() 91 sessionId = Integer.parseInt(result.substring(start + 1, end)); in run()
|
/cts/tests/fragment/src/android/fragment/cts/ |
D | PostponedTransitionTest.java | 799 private void assertForwardTransition(TransitionFragment start, TransitionFragment end) in assertForwardTransition() argument 801 start.waitForTransition(); in assertForwardTransition() 803 assertEquals(0, start.enterTransition.targets.size()); in assertForwardTransition() 806 assertEquals(0, start.reenterTransition.targets.size()); in assertForwardTransition() 809 assertEquals(0, start.returnTransition.targets.size()); in assertForwardTransition() 812 assertEquals(1, start.exitTransition.targets.size()); in assertForwardTransition() 815 assertEquals(0, start.sharedElementEnter.targets.size()); in assertForwardTransition() 818 assertEquals(0, start.sharedElementReturn.targets.size()); in assertForwardTransition() 826 assertNoTargets(start); in assertForwardTransition() 829 clearTargets(start); in assertForwardTransition() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | TimerProgressBar.java | 86 public void start(long duration, long stepSize) { in start() method in TimerProgressBar 87 start(duration, stepSize, null); in start() 97 public void start(long duration, long stepSize, TimerExpiredCallback callback) { in start() method in TimerProgressBar
|
/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()
|