Home
last modified time | relevance | path

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

12345

/cts/tests/tests/slice/src/android/slice/cts/
DSliceSpecTest.java34 SliceSpec first = new SliceSpec("first", 1); in testDifferentTypes() local
37 assertFalse(first.canRender(second)); in testDifferentTypes()
38 assertFalse(second.canRender(first)); in testDifferentTypes()
40 verify(first); in testDifferentTypes()
46 SliceSpec first = new SliceSpec("namespace", 2); in testRenderDifference() local
49 assertTrue(first.canRender(second)); in testRenderDifference()
50 assertFalse(second.canRender(first)); in testRenderDifference()
/cts/tests/tests/text/src/android/text/cts/
DSpannableStringTest.java157 SpannableString first = new SpannableString("t\nest data"); in testSubsequence_copiesSpans() local
162 first.setSpan(quoteSpan, 0, 2, Spanned.SPAN_PARAGRAPH); in testSubsequence_copiesSpans()
163 first.setSpan(localeSpan, 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testSubsequence_copiesSpans()
164 first.setSpan(underlineSpan, 0, first.length(), Spanned.SPAN_PRIORITY); in testSubsequence_copiesSpans()
166 Spanned second = (Spanned) first.subSequence(2,4); in testSubsequence_copiesSpans()
187 SpannableString first = new SpannableString("t\nest data"); in testCopyConstructor_copiesAllSpans() local
188 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_copiesAllSpans()
189 first.setSpan(new LocaleSpan(Locale.US), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testCopyConstructor_copiesAllSpans()
190 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); in testCopyConstructor_copiesAllSpans()
191 Object[] firstSpans = first.getSpans(0, first.length(), Object.class); in testCopyConstructor_copiesAllSpans()
[all …]
DSpannableStringBuilderTest.java709 Object first = new SubscriptSpan(); in testGetSpans_returnsSpansInInsertionOrderWhenTheLaterCoversTheFirst() local
712 builder.setSpan(first, 2, 4, flags); in testGetSpans_returnsSpansInInsertionOrderWhenTheLaterCoversTheFirst()
719 assertEquals(first, spans[0]); in testGetSpans_returnsSpansInInsertionOrderWhenTheLaterCoversTheFirst()
727 Object first = new SubscriptSpan(); in testGetSpans_returnsSpansSortedFirstByPriorityThenByInsertionOrder() local
735 builder.setSpan(first, 2, 4, flags); in testGetSpans_returnsSpansSortedFirstByPriorityThenByInsertionOrder()
746 assertEquals(first, spans[2]); in testGetSpans_returnsSpansSortedFirstByPriorityThenByInsertionOrder()
754 Object first = new SubscriptSpan(); in testGetSpans_returnsSpansInInsertionOrderAfterRemoveSpanCalls() local
760 builder.setSpan(first, 2, 4, flags); in testGetSpans_returnsSpansInInsertionOrderAfterRemoveSpanCalls()
763 builder.removeSpan(first); in testGetSpans_returnsSpansInInsertionOrderAfterRemoveSpanCalls()
/cts/tests/tests/net/src/android/net/http/cts/
DHttpResponseCacheTest.java69 HttpResponseCache first = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testSecondEquivalentInstallDoesNothing() local
71 assertSame(first, another); in testSecondEquivalentInstallDoesNothing()
75 HttpResponseCache first = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testInstallClosesPreviouslyInstalled() local
76 initializeCache(first); in testInstallClosesPreviouslyInstalled()
79 initializeCache(first); in testInstallClosesPreviouslyInstalled()
81 assertNotSame(first, another); in testInstallClosesPreviouslyInstalled()
83 first.flush(); in testInstallClosesPreviouslyInstalled()
/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontTest.java129 int weight = style.first.intValue(); in testBuilder_buffer()
150 int weight = style.first.intValue(); in testBuilder_buffer_ttc()
172 int weight = style.first.intValue(); in testBuilder_buffer_vf()
196 int weight = style.first.intValue(); in testBuilder_buffer_override()
213 int weight = style.first.intValue(); in testBuilder_buffer_override()
245 int weight = style.first.intValue(); in testBuilder_file()
271 int weight = style.first.intValue(); in testBuilder_file_ttc()
298 int weight = style.first.intValue(); in testBuilder_file_vf()
327 int weight = style.first.intValue(); in testBuilder_file_override()
348 int weight = style.first.intValue(); in testBuilder_file_override()
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEndToEndTest.java1078 private boolean equalsAccessiblityEvent(AccessibilityEvent first, AccessibilityEvent second) { in equalsAccessiblityEvent() argument
1079 return first.getEventType() == second.getEventType() in equalsAccessiblityEvent()
1080 && first.isChecked() == second.isChecked() in equalsAccessiblityEvent()
1081 && first.getCurrentItemIndex() == second.getCurrentItemIndex() in equalsAccessiblityEvent()
1082 && first.isEnabled() == second.isEnabled() in equalsAccessiblityEvent()
1083 && first.getFromIndex() == second.getFromIndex() in equalsAccessiblityEvent()
1084 && first.getItemCount() == second.getItemCount() in equalsAccessiblityEvent()
1085 && first.isPassword() == second.isPassword() in equalsAccessiblityEvent()
1086 && first.getRemovedCount() == second.getRemovedCount() in equalsAccessiblityEvent()
1087 && first.isScrollable()== second.isScrollable() in equalsAccessiblityEvent()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/
DCustomDescriptionTest.java114 update.setTextViewText(R.id.first, "batch updated"); in testSanitizationBeforeBatchUpdates()
164 .addChild(R.id.first, trans) in testSanitizationBeforeTransformations()
203 .addChild(R.id.first, trans1) in validTransformation()
227 .addChild(R.id.first, trans1) in validTransformationWithOneTemplateUpdate()
254 update1.setContentDescription(R.id.first, "First am I"); // valid in validTransformationWithMultipleTemplateUpdates()
256 update2.setViewVisibility(R.id.first, View.GONE); // invalid in validTransformationWithMultipleTemplateUpdates()
265 .addChild(R.id.first, trans1) in validTransformationWithMultipleTemplateUpdates()
369 .addChild(R.id.first, line1Transformation) in multipleBatchUpdatesTest()
417 .addChild(R.id.first, line1Transformation) in testBatchUpdatesApplyUpdateFirstThenTransformations()
473 .addChild(R.id.first, trans) in applyImageTransformationToTextView()
[all …]
/cts/tests/tests/text/src/android/text/style/cts/
DLeadingMarginSpan_StandardTest.java54 int first = 4; in testGetLeadingMargin() local
57 Standard standard = new LeadingMarginSpan.Standard(first, rest); in testGetLeadingMargin()
58 assertEquals(first, standard.getLeadingMargin(true)); in testGetLeadingMargin()
/cts/tests/tests/view/src/android/view/cts/
DSystemGestureExclusionRectsTest.java127 final Rect first = list.get(0); in animatingView() local
129 assertTrue("left edge " + first.left + " >= previous " + prev.left, in animatingView()
130 first.left >= prev.left); in animatingView()
132 assertTrue("rect had expected width", sizeRange.contains(first.width())); in animatingView()
133 assertTrue("rect had expected height", sizeRange.contains(first.height())); in animatingView()
134 prev = first; in animatingView()
/cts/tests/tests/graphics/src/android/graphics/cts/
DSumPathEffectTest.java56 PathEffect first = new CornerPathEffect(40); in testSumPathEffect() local
60 paint.setPathEffect(first); in testSumPathEffect()
69 SumPathEffect sumPathEffect = new SumPathEffect(second, first); in testSumPathEffect()
DTypefaceCustomFallbackBuilderTest.java53 final int weight = style.first.intValue(); in createFullFamilyTypeface()
71 final int weight = style.first.intValue(); in testSingleFont_path()
86 final int weight = style.first.intValue(); in testSingleFont_ttc()
102 final int weight = style.first.intValue(); in testSingleFont_vf()
125 final int weight = style.first.intValue(); in testFamily_selectStyle()
138 final int weight = familyStyle.first.intValue(); in testFamily_selectStyleByBuilder()
150 .setStyle(new FontStyle(testStyle.first.intValue(), in testFamily_selectStyleByBuilder()
/cts/tests/camera/src/android/hardware/camera2/cts/
DSurfaceViewPreviewTest.java262 frameDurationStats.first / 1e6, frameDurationStats.second / 1e6)); in preparePerformanceTestByCamera()
282 whilePreparingFrameDurationStats.first / 1e6, in preparePerformanceTestByCamera()
290 frameDurationStats.first / 1e6, in preparePerformanceTestByCamera()
293 frameDurationStats.first * (1 + PREPARE_PEAK_RATE_BOUNDS))); in preparePerformanceTestByCamera()
298 frameDurationStats.first / 1e6, in preparePerformanceTestByCamera()
299 whilePreparingFrameDurationStats.first / 1e6), in preparePerformanceTestByCamera()
300 (whilePreparingFrameDurationStats.first <= in preparePerformanceTestByCamera()
301 frameDurationStats.first * (1 + PREPARE_FRAME_RATE_BOUNDS))); in preparePerformanceTestByCamera()
320 preparedFrameDurationStats.first / 1e6, in preparePerformanceTestByCamera()
328 frameDurationStats.first / 1e6, preparedFrameDurationStats.second / 1e6), in preparePerformanceTestByCamera()
[all …]
DDngCreatorTest.java163 dngCreator.writeImage(outputStream, resultPair.first); in testSingleImageBasic()
271 dngCreator.setThumbnail(resultPair.first.get(1)); in testSingleImageThumbnail()
273 dngCreator.writeImage(outputStream, resultPair.first.get(0)); in testSingleImageThumbnail()
383 Image raw = data.imagePair.first.get(0); in testRaw16JpegConsistency()
384 Image jpeg = data.imagePair.first.get(1); in testRaw16JpegConsistency()
472 Image raw = data.imagePair.first.get(0); in testDngRenderingByBitmapFactor()
473 Image jpeg = data.imagePair.first.get(1); in testDngRenderingByBitmapFactor()
545 Image raw = data.imagePair.first.get(0); in captureRawJpegImagePair()
649 return new Pair<Image, CaptureResult>(res.first.get(0), res.second); in captureSingleRawShot()
/cts/suite/audio_quality/lib/src/task/
DTaskSave.cpp90 fileName.appendPath(it->first); in handleFile()
129 details.appendFormat(" %s: %f\n", it->first.string(), it->second.getDouble()); in handleReport()
131 details.appendFormat(" %s: %" PRId64 "\n", it->first.string(), in handleReport()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DAssertHelpers.java215 boolean first = true; in formatCollection()
217 String val = (first ? "" : ", ") + elem; in formatCollection()
218 first = false; in formatCollection()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DGestureUtils.java93 public static Path path(PointF first, PointF... rest) { in path() argument
95 path.moveTo(first.x, first.y); in path()
/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/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/media/res/raw/
Dplaylist2.m3u3 # first track
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeEventStream.java219 boolean first = true; in dumpBundle()
221 if (first) { in dumpBundle()
222 first = false; in dumpBundle()
/cts/hostsidetests/sustainedperf/src/android/SustainedPerformance/cts/
DSustainedPerformanceHostTest.java118 boolean first = true; in analyzeResults()
127 if (first) { in analyzeResults()
128 first = false; in analyzeResults()
/cts/tests/signature/tests/src/android/signature/cts/tests/
DLineSpliteratorTestBase.java107 Spliterator<Integer> first = queue.remove(0); in testSplit() local
108 assertFalse(first.tryAdvance(FAIL_CONSUMER)); in testSplit()
/cts/tests/tests/neuralnetworks/benchmark/src/com/android/nn/benchmark/cts/
DNNAccuracyTest.java105 inferenceResults.first, in testTFLite()
123 inferenceResults.first, in testNNAPI()
/cts/tests/tests/os/src/android/os/cts/
DFileObserverTest.java270 directories.add(pair.first); in verifyMultipleFiles()
278 new File(pair.first, TEST_FILE), pair.second); in verifyMultipleFiles()
286 directories.add(new File(pair.first, TEST_DIR)); in verifyMultipleFiles()
294 new File(pair.first, TEST_DIR), pair.second); in verifyMultipleFiles()

12345