/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 | 164 anim.start(); in testListenerCallbackWithStartDelay() 222 delayedAnim.start(); in testSetCurrentPlayTime() 248 a1.start(); in testPauseListener() 275 anim.start(); in testSetCurrentPlayTimeAfterStart() 329 anim.start(); in testReverseRightAfterStart() 372 a1.start(); in testUpdateListeners() 415 a1.start(); in testValuesSetterAndGetter() 452 a1.start(); in testSetObjectValues() 519 animator.start(); in testGetAnimatedFraction() 571 float start = 0.0f; in testOfFloat() local [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | SystemClockTest.java | 40 long start = SystemClock.currentThreadTimeMillis(); in testCurrentThreadTimeMillis() local 43 assertFalse(end - 100 >= start); in testCurrentThreadTimeMillis() 50 long start = SystemClock.elapsedRealtime(); in testElapsedRealtime() local 53 assertTrue(end - 100 >= start); in testElapsedRealtime() 61 long start = SystemClock.currentThreadTimeMillis(); in testSetCurrentTimeMillis() local 62 boolean actual = SystemClock.setCurrentTimeMillis(start + 10000); in testSetCurrentTimeMillis() 71 long start = SystemClock.currentThreadTimeMillis(); in testSleep_currentThreadTimeMillis() local 74 assertFalse(end - 100 >= start); in testSleep_currentThreadTimeMillis() 79 long start = SystemClock.elapsedRealtime(); in testSleep_elapsedRealtime() local 82 assertTrue(end - 100 >= start); in testSleep_elapsedRealtime() [all …]
|
/cts/tests/tests/text/src/android/text/cts/ |
D | PaintRunFlagTest.kt | 44 private fun assertSame_measureText_Result(text: String, start: Int, end: Int, paint: Paint) { in assertSame_measureText_Result() 51 val measureTextStringNoFlag = paint.measureText(text, start, end) in assertSame_measureText_Result() 52 val measureTextCharSequenceNoFlag = paint.measureText(SpannedString(text), start, end) in assertSame_measureText_Result() 53 val measureTextCharArrayNoFlag = paint.measureText(charArray, start, end - start) in assertSame_measureText_Result() 58 val measureTextStringLeft = paint.measureText(text, start, end) in assertSame_measureText_Result() 59 val measureTextCharSequenceLeft = paint.measureText(SpannedString(text), start, end) in assertSame_measureText_Result() 60 val measureTextCharArrayLeft = paint.measureText(charArray, start, end - start) in assertSame_measureText_Result() 65 val measureTextStringRight = paint.measureText(text, start, end) in assertSame_measureText_Result() 66 val measureTextCharSequenceRight = paint.measureText(SpannedString(text), start, end) in assertSame_measureText_Result() 67 val measureTextCharArrayRight = paint.measureText(charArray, start, end - start) in assertSame_measureText_Result() [all …]
|
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 | TextRunAdvancesTest.java | 153 final int start = 0; in testGetRunCharacterAdvance_startOutOfBounds() local 158 paint.getRunCharacterAdvance(text, start, end, contextStart, contextEnd, true, in testGetRunCharacterAdvance_startOutOfBounds() 167 final int start = 1; in testGetRunCharacterAdvance_endOutOfBounds() local 172 paint.getRunCharacterAdvance(text, start, end, contextStart, contextEnd, true, in testGetRunCharacterAdvance_endOutOfBounds() 181 final int start = 3; in testGetRunCharacterAdvance_startLargerThanEnd() local 186 paint.getRunCharacterAdvance(text, start, end, contextStart, contextEnd, true, in testGetRunCharacterAdvance_startLargerThanEnd() 195 final int start = 2; in testGetRunCharacterAdvance_offsetOutOfBounds() local 200 paint.getRunCharacterAdvance(text, start, end, contextStart, contextEnd, true, in testGetRunCharacterAdvance_offsetOutOfBounds() 210 final int start = 1; in testGetRunCharacterAdvance_advancesNoEnoughSpace() local 215 paint.getRunCharacterAdvance(text, start, end, contextStart, contextEnd, true, in testGetRunCharacterAdvance_advancesNoEnoughSpace()
|
D | HtmlTest.java | 72 final int start = -1; in verifySingleTagOnWhileString() local 75 Object[] spans = spanned.getSpans(start, end, Object.class); in verifySingleTagOnWhileString() 92 final int start = 0; in verifyBadHtml() local 96 Object[] spans = spanned.getSpans(start, end, Object.class); in verifyBadHtml() 351 final int start = 0; in testBlockquote() local 355 s.setSpan(new QuoteSpan(), start, end, Spannable.SPAN_PARAGRAPH); in testBlockquote() 361 s.setSpan(new QuoteSpan(), start, end, Spannable.SPAN_PARAGRAPH); in testBlockquote() 383 final int start = 6; in testMarkup() local 386 int end = s.length() - start; in testMarkup() 387 s.setSpan(new StyleSpan(Typeface.BOLD), start, end, SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup() [all …]
|
/cts/tests/surfacecontrol/jni/ |
D | android_view_surfacecontrol_cts_ChoreographerNativeTest.cpp | 145 auto start = now(); in android_view_surfacecontrol_cts_ChoreographerNativeTest_testPostVsyncCallbackWithoutDelayEventuallyRunsCallback() local 151 verifyCallback(env, cb1, 1, start, NOMINAL_VSYNC_PERIOD * 3); in android_view_surfacecontrol_cts_ChoreographerNativeTest_testPostVsyncCallbackWithoutDelayEventuallyRunsCallback() 152 verifyCallback(env, cb2, 1, start, NOMINAL_VSYNC_PERIOD * 3); in android_view_surfacecontrol_cts_ChoreographerNativeTest_testPostVsyncCallbackWithoutDelayEventuallyRunsCallback() 161 start = now(); in android_view_surfacecontrol_cts_ChoreographerNativeTest_testPostVsyncCallbackWithoutDelayEventuallyRunsCallback() 163 verifyCallback(env, cb1, 2, start, NOMINAL_VSYNC_PERIOD * 3); in android_view_surfacecontrol_cts_ChoreographerNativeTest_testPostVsyncCallbackWithoutDelayEventuallyRunsCallback() 164 verifyCallback(env, cb2, 1, start, ZERO); in android_view_surfacecontrol_cts_ChoreographerNativeTest_testPostVsyncCallbackWithoutDelayEventuallyRunsCallback() 171 auto start = now(); in android_view_surfacecontrol_cts_ChoreographerNativeTest_testFrameCallbackDataVsyncIdValid() local 176 verifyCallback(env, cb1, 1, start, NOMINAL_VSYNC_PERIOD * 3); in android_view_surfacecontrol_cts_ChoreographerNativeTest_testFrameCallbackDataVsyncIdValid() 193 auto start = now(); in android_view_surfacecontrol_cts_ChoreographerNativeTest_testFrameCallbackDataDeadlineInFuture() local 198 verifyCallback(env, cb1, 1, start, NOMINAL_VSYNC_PERIOD * 3); in android_view_surfacecontrol_cts_ChoreographerNativeTest_testFrameCallbackDataDeadlineInFuture() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/ |
D | BufferDebug.java | 87 private static void writeRow(StringBuilder str, byte[] buf, int start, int len, int max) { in writeRow() argument 91 f.format("%10d 0x%08x ", start, start); in writeRow() 94 int end = start + len; in writeRow() 97 if (start + WIDTH > max) { in writeRow() 103 for (int i = start; i < end; i++) { in writeRow() 105 if (i == start + HALF_WIDTH - 1) { in writeRow() 117 for (int i = start; i < end; i++) { in writeRow() 124 if (i == start + HALF_WIDTH - 1) { in writeRow()
|
/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 | 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/security/src/android/security/cts/CVE_2021_0600/ |
D | PocActivity.java | 56 int start = 0; in onCreate() local 57 while ((Character.isWhitespace(seq.charAt(start))) && start < end) { in onCreate() 58 ++start; in onCreate() 60 while ((Character.isWhitespace(seq.charAt(end))) && end > start) { in onCreate() 65 assumeFalse(getString(R.string.cve_2021_0600_errorCreateCharSeq), start > end); in onCreate() 69 seq.subSequence(start, end + 1)); in onCreate()
|
/cts/tests/media/jni/ |
D | NativeMediaCommon.cpp | 171 auto start = 0u; in deSerializeMediaFormat() local 176 keyStr = fmtMsg.substr(start, end - start); in deSerializeMediaFormat() 177 start = end + limiter.length(); in deSerializeMediaFormat() 178 end = fmtMsg.find(limiter, start); in deSerializeMediaFormat() 185 valueTypeStr = fmtMsg.substr(start, end - start); in deSerializeMediaFormat() 186 start = end + limiter.length(); in deSerializeMediaFormat() 187 end = fmtMsg.find(limiter, start); in deSerializeMediaFormat() 195 valueStr = fmtMsg.substr(start, end - start); in deSerializeMediaFormat() 196 start = end + limiter.length(); in deSerializeMediaFormat() 197 end = fmtMsg.find(limiter, start); in deSerializeMediaFormat()
|
/cts/tests/tests/graphics/src/android/graphics/cts/utils/ |
D | MathUtils.java | 28 public static float lerp(float start, float stop, float amount) { in lerp() argument 29 return start + (stop - start) * amount; in lerp()
|
D | LeakTest.java | 62 Debug.MemoryInfo start, Debug.MemoryInfo end) { in isMaybeLeaking() argument 64 assertNotEquals(0, start.getTotalPss()); in isMaybeLeaking() 66 if (end.getTotalPss() - start.getTotalPss() > (byteLimit * .75)) { in isMaybeLeaking() 69 return end.getTotalPss() - start.getTotalPss() > byteLimit; in isMaybeLeaking()
|
/cts/tests/tests/uidmigration/ |
D | system-app-test.sh | 26 adb shell start || true 63 adb shell start 94 adb shell start 115 adb shell start 131 adb shell start 148 adb shell start 154 adb shell start
|
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/ |
D | ActivityEmbeddingFinishTests.java | 125 .preventSplitActivities().setFinishPrimaryWithSecondary(FINISH_NEVER).start(); in testFinishPrimaryWithSecondary_ActivitiesStacked_FinishNever() 141 .preventSplitActivities().setFinishPrimaryWithSecondary(FINISH_ADJACENT).start(); in testFinishPrimaryWithSecondary_ActivitiesStacked_FinishAdjacent() 157 .preventSplitActivities().setFinishPrimaryWithSecondary(FINISH_ALWAYS).start(); in testFinishPrimaryWithSecondary_ActivitiesStacked_FinishAlways() 172 .setFinishPrimaryWithSecondary(FINISH_NEVER).start(); in testFinishPrimaryWithSecondary_ActivitiesSplit_FinishNever() 188 .setFinishPrimaryWithSecondary(FINISH_ADJACENT).start(); in testFinishPrimaryWithSecondary_ActivitiesSplit_FinishAdjacent() 203 .setFinishPrimaryWithSecondary(FINISH_ALWAYS).start(); in testFinishPrimaryWithSecondary_ActivitiesSplit_FinishAlways() 218 .preventSplitActivities().setFinishSecondaryWithPrimary(FINISH_NEVER).start(); in testFinishSecondaryWithPrimary_ActivitiesStacked_FinishNever() 234 .preventSplitActivities().setFinishSecondaryWithPrimary(FINISH_ADJACENT).start(); in testFinishSecondaryWithPrimary_ActivitiesStacked_FinishAdjacent() 250 .preventSplitActivities().setFinishSecondaryWithPrimary(FINISH_ALWAYS).start(); in testFinishSecondaryWithPrimary_ActivitiesStacked_FinishAlways() 265 .setFinishSecondaryWithPrimary(FINISH_NEVER).start(); in testFinishSecondaryWithPrimary_ActivitiesSplit_FinishNever() [all …]
|
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/ |
D | ContactsProvider2_AccountRemovalTest.java | 105 long start = System.currentTimeMillis(); in testAccountRemoval_hasDeleteLogsForContacts() local 107 assertContactsInDeleteLogEventually(start, acc2Ids); in testAccountRemoval_hasDeleteLogsForContacts() 109 start = System.currentTimeMillis(); in testAccountRemoval_hasDeleteLogsForContacts() 111 assertContactsInDeleteLogEventually(start, acc1Ids); in testAccountRemoval_hasDeleteLogsForContacts() 240 long start = System.currentTimeMillis(); in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated() local 244 assertWithinTimeoutLimit(start, in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated() 254 long start = System.currentTimeMillis(); in testAccountRemovalWithMergedContact_hasDeleteLogsForContacts() local 256 assertContactsInDeleteLogEventually(start, idList); in testAccountRemovalWithMergedContact_hasDeleteLogsForContacts() 279 private long assertMerged(long start, long rawContactId, long rawContactId2) { in assertMerged() argument 282 assertWithinTimeoutLimit(start, in assertMerged() [all …]
|
/cts/tests/sample/src/android/sample/cts/ |
D | SampleDeviceReportLogTest.java | 106 int start; in countHelper() local 109 start = COUNT_START; in countHelper() 111 for (int i = start; i <= end;) { in countHelper() 115 start = COUNT_END; in countHelper() 117 for (int i = start; i >= end;) { in countHelper() 124 reportLog.addValue(START_TAG, 1.0 * start, ResultType.NEUTRAL, ResultUnit.NONE); in countHelper()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | InputConnectionSplitter.java | 108 public boolean setComposingRegion(int start, int end) { in setComposingRegion() argument 109 mForNotify.setComposingRegion(start, end); in setComposingRegion() 110 return super.setComposingRegion(start, end); in setComposingRegion() 114 public boolean setComposingRegion(int start, int end, TextAttribute textAttribute) { in setComposingRegion() argument 115 mForNotify.setComposingRegion(start, end, textAttribute); in setComposingRegion() 116 return super.setComposingRegion(start, end, textAttribute); in setComposingRegion() 151 public boolean setSelection(int start, int end) { in setSelection() argument 152 mForNotify.setSelection(start, end); in setSelection() 153 return super.setSelection(start, end); in setSelection()
|
/cts/hostsidetests/media/app/MediaExtractorTest/jni/ |
D | MediaExtractorDeviceSideTestNative.cpp | 31 off_t start; in Java_android_media_cts_MediaExtractorDeviceSideTest_extractUsingNdkMediaExtractor() local 33 int fd = AAsset_openFileDescriptor(asset, &start, &length); in Java_android_media_cts_MediaExtractorDeviceSideTest_extractUsingNdkMediaExtractor() 37 AMediaExtractor_setDataSourceFd(mediaExtractor, fd, start, length); in Java_android_media_cts_MediaExtractorDeviceSideTest_extractUsingNdkMediaExtractor()
|
/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/appenumeration/src/android/appenumeration/cts/ |
D | InstallMultiple.java | 85 final int start = result.lastIndexOf("["); in createSession() local 89 if (start != -1 && end != -1 && start < end) { in createSession() 90 sessionId = Integer.parseInt(result.substring(start + 1, end)); in createSession()
|
/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()
|