Home
last modified time | relevance | path

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

12345678910>>...20

/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.java154 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 …]
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.cpp112 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/
DContactsProvider2_AccountRemovalTest.java82 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 …]
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/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/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/tests/tests/widget/src/android/widget/cts/
DEditTextTest.java146 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/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/tests/telephony/current/src/android/telephony/cts/
DPhoneStateListenerTest.java168 t.start(); in testOnServiceStateChanged()
206 t.start(); in testOnUnRegisterFollowedByRegister()
267 t.start(); in testOnSignalStrengthChanged()
305 t.start(); in testOnSignalStrengthsChanged()
355 t.start(); in testOnMessageWaitingIndicatorChanged()
398 t.start(); in testOnPreciseCallStateChanged()
446 t.start(); in testOnCallDisconnectCauseChanged()
489 t.start(); in testOnImsCallDisconnectCauseChanged()
527 t.start(); in testOnPhoneStateListenerExecutorWithSrvccChanged()
570 t.start(); in testOnRadioPowerStateChanged()
[all …]
/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/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()
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapFactoryTest.java132 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/mediastress/src/android/mediastress/cts/
DCodecTest.java106 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/
DMediaPlayerTest.java153 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/hostsidetests/dexmetadata/host/src/com/android/cts/dexmetadata/
DBaseInstallMultiple.java86 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()

12345678910>>...20