Home
last modified time | relevance | path

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

123

/cts/tests/tests/text/src/android/text/cts/
DSpannableStringTest.java135 SpannableString first = new SpannableString("t\nest data"); in testSubsequence_copiesSpans() local
140 first.setSpan(quoteSpan, 0, 2, Spanned.SPAN_PARAGRAPH); in testSubsequence_copiesSpans()
141 first.setSpan(localeSpan, 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testSubsequence_copiesSpans()
142 first.setSpan(underlineSpan, 0, first.length(), Spanned.SPAN_PRIORITY); in testSubsequence_copiesSpans()
144 Spanned second = (Spanned) first.subSequence(2,4); in testSubsequence_copiesSpans()
166 SpannableString first = new SpannableString("t\nest data"); in testCopyConstructor_copiesAllSpans() local
167 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_copiesAllSpans()
168 first.setSpan(new LocaleSpan(Locale.US), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testCopyConstructor_copiesAllSpans()
169 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); in testCopyConstructor_copiesAllSpans()
170 Object[] firstSpans = first.getSpans(0, first.length(), Object.class); in testCopyConstructor_copiesAllSpans()
[all …]
DSpannableStringBuilderTest.java592 Object first = new SubscriptSpan(); in testGetSpans_returnsSpansInInsertionOrderWhenTheLaterCoversTheFirst() local
595 builder.setSpan(first, 2, 4, flags); in testGetSpans_returnsSpansInInsertionOrderWhenTheLaterCoversTheFirst()
602 assertEquals(first, spans[0]); in testGetSpans_returnsSpansInInsertionOrderWhenTheLaterCoversTheFirst()
610 Object first = new SubscriptSpan(); in testGetSpans_returnsSpansSortedFirstByPriorityThenByInsertionOrder() local
618 builder.setSpan(first, 2, 4, flags); in testGetSpans_returnsSpansSortedFirstByPriorityThenByInsertionOrder()
629 assertEquals(first, spans[2]); in testGetSpans_returnsSpansSortedFirstByPriorityThenByInsertionOrder()
637 Object first = new SubscriptSpan(); in testGetSpans_returnsSpansInInsertionOrderAfterRemoveSpanCalls() local
643 builder.setSpan(first, 2, 4, flags); in testGetSpans_returnsSpansInInsertionOrderAfterRemoveSpanCalls()
646 builder.removeSpan(first); in testGetSpans_returnsSpansInInsertionOrderAfterRemoveSpanCalls()
662 Object first = new SubscriptSpan(); in testGetSpans_sortsByPriorityEvenWhenSortParamIsFalse() local
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEndToEndTest.java382 private boolean equalsAccessiblityEvent(AccessibilityEvent first, AccessibilityEvent second) { in equalsAccessiblityEvent() argument
383 return first.getEventType() == second.getEventType() in equalsAccessiblityEvent()
384 && first.isChecked() == second.isChecked() in equalsAccessiblityEvent()
385 && first.getCurrentItemIndex() == second.getCurrentItemIndex() in equalsAccessiblityEvent()
386 && first.isEnabled() == second.isEnabled() in equalsAccessiblityEvent()
387 && first.getFromIndex() == second.getFromIndex() in equalsAccessiblityEvent()
388 && first.getItemCount() == second.getItemCount() in equalsAccessiblityEvent()
389 && first.isPassword() == second.isPassword() in equalsAccessiblityEvent()
390 && first.getRemovedCount() == second.getRemovedCount() in equalsAccessiblityEvent()
391 && first.isScrollable()== second.isScrollable() in equalsAccessiblityEvent()
[all …]
/cts/tests/tests/net/src/android/net/http/cts/
DHttpResponseCacheTest.java66 HttpResponseCache first = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testSecondEquivalentInstallDoesNothing() local
68 assertSame(first, another); in testSecondEquivalentInstallDoesNothing()
72 HttpResponseCache first = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testInstallClosesPreviouslyInstalled() local
73 initializeCache(first); in testInstallClosesPreviouslyInstalled()
76 initializeCache(first); in testInstallClosesPreviouslyInstalled()
78 assertNotSame(first, another); in testInstallClosesPreviouslyInstalled()
80 first.flush(); in testInstallClosesPreviouslyInstalled()
/cts/tests/camera/src/android/hardware/camera2/cts/
DSurfaceViewPreviewTest.java251 frameDurationStats.first / 1e6, frameDurationStats.second / 1e6)); in preparePerformanceTestByCamera()
271 whilePreparingFrameDurationStats.first / 1e6, in preparePerformanceTestByCamera()
279 frameDurationStats.first / 1e6, in preparePerformanceTestByCamera()
282 frameDurationStats.first * (1 + PREPARE_PEAK_RATE_BOUNDS))); in preparePerformanceTestByCamera()
287 frameDurationStats.first / 1e6, in preparePerformanceTestByCamera()
288 whilePreparingFrameDurationStats.first / 1e6), in preparePerformanceTestByCamera()
289 (whilePreparingFrameDurationStats.first <= in preparePerformanceTestByCamera()
290 frameDurationStats.first * (1 + PREPARE_FRAME_RATE_BOUNDS))); in preparePerformanceTestByCamera()
309 preparedFrameDurationStats.first / 1e6, in preparePerformanceTestByCamera()
317 frameDurationStats.first / 1e6, preparedFrameDurationStats.second / 1e6), in preparePerformanceTestByCamera()
[all …]
DDngCreatorTest.java161 dngCreator.writeImage(outputStream, resultPair.first); in testSingleImageBasic()
261 dngCreator.setThumbnail(resultPair.first.get(1)); in testSingleImageThumbnail()
263 dngCreator.writeImage(outputStream, resultPair.first.get(0)); in testSingleImageThumbnail()
349 Image raw = data.imagePair.first.get(0); in testRaw16JpegConsistency()
350 Image jpeg = data.imagePair.first.get(1); in testRaw16JpegConsistency()
438 Image raw = data.imagePair.first.get(0); in testDngRenderingByBitmapFactor()
439 Image jpeg = data.imagePair.first.get(1); in testDngRenderingByBitmapFactor()
511 Image raw = data.imagePair.first.get(0); in captureRawJpegImagePair()
615 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/tests/tests/text/src/android/text/style/cts/
DLeadingMarginSpan_StandardTest.java45 int first = 4; in testGetLeadingMargin() local
48 Standard standard = new LeadingMarginSpan.Standard(first, rest); in testGetLeadingMargin()
49 assertEquals(first, standard.getLeadingMargin(true)); in testGetLeadingMargin()
/cts/tests/tests/graphics/src/android/graphics/cts/
DSumPathEffectTest.java48 PathEffect first = new CornerPathEffect(40); in testSumPathEffect() local
52 paint.setPathEffect(first); in testSumPathEffect()
61 SumPathEffect sumPathEffect = new SumPathEffect(second, first); in testSumPathEffect()
/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/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/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/tests/tests/mediastress/preconditions/src/android/mediastress/cts/preconditions/
DMediaPreparer.java154 int first; in getMaxVideoPlaybackResolution() local
157 first = Integer.parseInt(matcher.group(1)); in getMaxVideoPlaybackResolution()
165 int height = Math.min(first, second); in getMaxVideoPlaybackResolution()
166 int width = Math.max(first, second); in getMaxVideoPlaybackResolution()
/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/sustainedperf/src/android/SustainedPerformance/cts/
DSustainedPerformanceHostTest.java113 boolean first = true; in analyzeResults()
122 if (first) { in analyzeResults()
123 first = false; in analyzeResults()
/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.java39 protected void onApplyThemeResource(Theme theme, int resid, boolean first) { in onApplyThemeResource() argument
41 super.onApplyThemeResource(theme, resid, first); in onApplyThemeResource()
/cts/tests/tests/media/src/android/media/cts/
DDecodeAccuracyTest.java175 + difference.bestMatchBorderCrop.first + ", " in validateResult()
180 ? " at (" + difference.greatestPixelDifferenceCoordinates.first + ", " in validateResult()
/cts/tests/tests/simpleperf/
DAndroid.mk50 LOCAL_MULTILIB := first
/cts/tests/tests/widget/src/android/widget/cts/util/
DTestUtils.java94 canvas.translate(offsets.first, offsets.second); in getCombinedBackgroundBitmap()
96 canvas.translate(-offsets.first, -offsets.second); in getCombinedBackgroundBitmap()
/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/view/src/android/view/cts/util/
DDrawingUtils.java64 goldenCanvas.drawRect(colorRectangle.first, goldenPaint); in assertAllPixelsOfColor()

123