Home
last modified time | relevance | path

Searched refs:first (Results 1 – 25 of 68) sorted by relevance

123

/cts/tests/tests/text/src/android/text/cts/
DSpannableStringTest.java155 SpannableString first = new SpannableString("t\nest data"); in testSubsequence_copiesSpans() local
160 first.setSpan(quoteSpan, 0, 2, Spanned.SPAN_PARAGRAPH); in testSubsequence_copiesSpans()
161 first.setSpan(localeSpan, 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testSubsequence_copiesSpans()
162 first.setSpan(underlineSpan, 0, first.length(), Spanned.SPAN_PRIORITY); in testSubsequence_copiesSpans()
164 Spanned second = (Spanned) first.subSequence(2,4); in testSubsequence_copiesSpans()
185 SpannableString first = new SpannableString("t\nest data"); in testCopyConstructor_copiesAllSpans() local
186 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_copiesAllSpans()
187 first.setSpan(new LocaleSpan(Locale.US), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testCopyConstructor_copiesAllSpans()
188 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); in testCopyConstructor_copiesAllSpans()
189 Object[] firstSpans = first.getSpans(0, first.length(), Object.class); in testCopyConstructor_copiesAllSpans()
[all …]
DSpannableStringBuilderTest.java708 Object first = new SubscriptSpan(); in testGetSpans_returnsSpansInInsertionOrderWhenTheLaterCoversTheFirst() local
711 builder.setSpan(first, 2, 4, flags); in testGetSpans_returnsSpansInInsertionOrderWhenTheLaterCoversTheFirst()
718 assertEquals(first, spans[0]); in testGetSpans_returnsSpansInInsertionOrderWhenTheLaterCoversTheFirst()
726 Object first = new SubscriptSpan(); in testGetSpans_returnsSpansSortedFirstByPriorityThenByInsertionOrder() local
734 builder.setSpan(first, 2, 4, flags); in testGetSpans_returnsSpansSortedFirstByPriorityThenByInsertionOrder()
745 assertEquals(first, spans[2]); in testGetSpans_returnsSpansSortedFirstByPriorityThenByInsertionOrder()
753 Object first = new SubscriptSpan(); in testGetSpans_returnsSpansInInsertionOrderAfterRemoveSpanCalls() local
759 builder.setSpan(first, 2, 4, flags); in testGetSpans_returnsSpansInInsertionOrderAfterRemoveSpanCalls()
762 builder.removeSpan(first); in testGetSpans_returnsSpansInInsertionOrderAfterRemoveSpanCalls()
778 Object first = new SubscriptSpan(); in testGetSpans_sortsByPriorityEvenWhenSortParamIsFalse() local
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEndToEndTest.java437 private boolean equalsAccessiblityEvent(AccessibilityEvent first, AccessibilityEvent second) { in equalsAccessiblityEvent() argument
438 return first.getEventType() == second.getEventType() in equalsAccessiblityEvent()
439 && first.isChecked() == second.isChecked() in equalsAccessiblityEvent()
440 && first.getCurrentItemIndex() == second.getCurrentItemIndex() in equalsAccessiblityEvent()
441 && first.isEnabled() == second.isEnabled() in equalsAccessiblityEvent()
442 && first.getFromIndex() == second.getFromIndex() in equalsAccessiblityEvent()
443 && first.getItemCount() == second.getItemCount() in equalsAccessiblityEvent()
444 && first.isPassword() == second.isPassword() in equalsAccessiblityEvent()
445 && first.getRemovedCount() == second.getRemovedCount() in equalsAccessiblityEvent()
446 && first.isScrollable()== second.isScrollable() in equalsAccessiblityEvent()
[all …]
/cts/tests/tests/net/src/android/net/http/cts/
DHttpResponseCacheTest.java68 HttpResponseCache first = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testSecondEquivalentInstallDoesNothing() local
70 assertSame(first, another); in testSecondEquivalentInstallDoesNothing()
74 HttpResponseCache first = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testInstallClosesPreviouslyInstalled() local
75 initializeCache(first); in testInstallClosesPreviouslyInstalled()
78 initializeCache(first); in testInstallClosesPreviouslyInstalled()
80 assertNotSame(first, another); in testInstallClosesPreviouslyInstalled()
82 first.flush(); in testInstallClosesPreviouslyInstalled()
/cts/tests/tests/text/src/android/text/style/cts/
DLeadingMarginSpan_StandardTest.java53 int first = 4; in testGetLeadingMargin() local
56 Standard standard = new LeadingMarginSpan.Standard(first, rest); in testGetLeadingMargin()
57 assertEquals(first, standard.getLeadingMargin(true)); in testGetLeadingMargin()
/cts/tools/dex-tools/src/dex/reader/
DTypeFormatter.java93 boolean first = true; in format()
95 if (!first) { in format()
99 first = false; in format()
/cts/tests/tests/graphics/src/android/graphics/cts/
DSumPathEffectTest.java55 PathEffect first = new CornerPathEffect(40); in testSumPathEffect() local
59 paint.setPathEffect(first); in testSumPathEffect()
68 SumPathEffect sumPathEffect = new SumPathEffect(second, first); in testSumPathEffect()
/cts/tests/camera/src/android/hardware/camera2/cts/
DSurfaceViewPreviewTest.java253 frameDurationStats.first / 1e6, frameDurationStats.second / 1e6)); in preparePerformanceTestByCamera()
273 whilePreparingFrameDurationStats.first / 1e6, in preparePerformanceTestByCamera()
281 frameDurationStats.first / 1e6, in preparePerformanceTestByCamera()
284 frameDurationStats.first * (1 + PREPARE_PEAK_RATE_BOUNDS))); in preparePerformanceTestByCamera()
289 frameDurationStats.first / 1e6, in preparePerformanceTestByCamera()
290 whilePreparingFrameDurationStats.first / 1e6), in preparePerformanceTestByCamera()
291 (whilePreparingFrameDurationStats.first <= in preparePerformanceTestByCamera()
292 frameDurationStats.first * (1 + PREPARE_FRAME_RATE_BOUNDS))); in preparePerformanceTestByCamera()
311 preparedFrameDurationStats.first / 1e6, in preparePerformanceTestByCamera()
319 frameDurationStats.first / 1e6, preparedFrameDurationStats.second / 1e6), in preparePerformanceTestByCamera()
[all …]
DDngCreatorTest.java164 dngCreator.writeImage(outputStream, resultPair.first); in testSingleImageBasic()
273 dngCreator.setThumbnail(resultPair.first.get(1)); in testSingleImageThumbnail()
275 dngCreator.writeImage(outputStream, resultPair.first.get(0)); in testSingleImageThumbnail()
385 Image raw = data.imagePair.first.get(0); in testRaw16JpegConsistency()
386 Image jpeg = data.imagePair.first.get(1); in testRaw16JpegConsistency()
474 Image raw = data.imagePair.first.get(0); in testDngRenderingByBitmapFactor()
475 Image jpeg = data.imagePair.first.get(1); in testDngRenderingByBitmapFactor()
547 Image raw = data.imagePair.first.get(0); in captureRawJpegImagePair()
651 return new Pair<Image, CaptureResult>(res.first.get(0), res.second); in captureSingleRawShot()
DCaptureResultTest.java212 TotalCaptureResult totalResult = resultPair.first; in testPartialResult()
321 validateTimestamps("Result 1", result.first, in testResultTimestamps()
332 validateTimestamps("Result 2 Preview", result2.first, in testResultTimestamps()
334 validateTimestamps("Result 2 Jpeg", result2.first, in testResultTimestamps()
354 validateTimestamps("Result 3", result3.first, in testResultTimestamps()
358 validateTimestamps("Result 4", result4.first, in testResultTimestamps()
/cts/suite/audio_quality/lib/src/task/
DTaskSave.cpp89 fileName.appendPath(it->first); in handleFile()
128 details.appendFormat(" %s: %f\n", it->first.string(), it->second.getDouble()); in handleReport()
130 details.appendFormat(" %s: %lld\n", it->first.string(), it->second.getInt64()); in handleReport()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DAssertHelpers.java215 boolean first = true; in formatCollection()
217 String val = ((first) ? ", " : "") + ((elem != null) ? elem.toString() : "null"); in formatCollection()
218 first = false; in formatCollection()
/cts/tests/tests/media/res/raw/
Dplaylist2.m3u3 # first track
/cts/suite/audio_quality/lib/src/
DReport.cpp96 printf(" <test title=\"%s\" result=\"pass\" >", it->first.string()); in writeResult()
98 printf(" <test title=\"%s\" result=\"fail\" >", it->first.string()); in writeResult()
/cts/tests/app/app/src/android/app/stubs/
DAppStubActivity.java137 boolean first){ in onApplyThemeResource() argument
138 super.onApplyThemeResource(theme,resid,first); in onApplyThemeResource()
/cts/tools/dasm/src/java_cup/runtime/
Dlr_parser.java390 int first, last, probe; in get_action() local
408 first = 0; in get_action()
410 while (first <= last) in get_action()
412 probe = (first+last)/2; in get_action()
416 first = probe+1; in get_action()
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/
DAndroid.mk37 include $(call first-makefiles-under,$(LOCAL_PATH))
/cts/hostsidetests/media/
DAndroid.mk35 include $(call first-makefiles-under,$(LOCAL_PATH))
/cts/hostsidetests/sustainedperf/src/android/SustainedPerformance/cts/
DSustainedPerformanceHostTest.java116 boolean first = true; in analyzeResults()
125 if (first) { in analyzeResults()
126 first = false; in analyzeResults()
/cts/suite/audio_quality/test/
DAndroid.mk41 LOCAL_MULTILIB := first
/cts/hostsidetests/sample/src/android/sample/cts/
DSampleHostResultTest.java159 private static void assertFilesAreEqual(File first, File second) throws Exception { in assertFilesAreEqual() argument
161 first.getAbsolutePath(), second.getAbsolutePath()); in assertFilesAreEqual()
/cts/tests/tests/view/src/android/view/cts/
DContextThemeWrapperTest.java52 protected void onApplyThemeResource(Theme theme, int resid, boolean first) { in onApplyThemeResource() argument
54 super.onApplyThemeResource(theme, resid, first); in onApplyThemeResource()
/cts/tests/tests/net/src/android/net/cts/
DUriTest.java205 Uri first = uri; in testPathOperations() local
220 assertEquals(2, first.getPathSegments().size()); in testPathOperations()
221 assertEquals("b", first.getLastPathSegment()); in testPathOperations()
224 first.getPathSegments().get(2); in testPathOperations()
/cts/tests/tests/media/src/android/media/cts/
DDecodeAccuracyTest.java250 + difference.bestMatchBorderCrop.first + ", " in validateResult()
255 ? " at (" + difference.greatestPixelDifferenceCoordinates.first + ", " in validateResult()
/cts/tests/tests/view/src/android/view/cts/util/
DDrawingUtils.java65 goldenCanvas.drawRect(colorRectangle.first, goldenPaint); in assertAllPixelsOfColor()

123