/cts/tests/tests/text/src/android/text/cts/ |
D | SpannableStringTest.java | 157 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 …]
|
D | SpannableStringBuilderTest.java | 709 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/slice/src/android/slice/cts/ |
D | SliceSpecTest.java | 34 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/net/src/android/net/http/cts/ |
D | HttpResponseCacheTest.java | 69 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/media/jni/ |
D | NativeMediaCommon.cpp | 56 bool hasRefCSD = AMediaFormat_getBuffer(refFormat, name, &refCsd.first, &refCsd.second); in isCSDIdentical() 57 bool hasTestCSD = AMediaFormat_getBuffer(testFormat, name, &testCsd.first, &testCsd.second); in isCSDIdentical() 68 if (memcmp(refCsd.first, testCsd.first, refCsd.second)) { in isCSDIdentical()
|
/cts/tests/tests/graphics/src/android/graphics/fonts/ |
D | FontTest.java | 129 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/ |
D | AccessibilityEndToEndTest.java | 1078 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/ |
D | CustomDescriptionTest.java | 114 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/camera/src/android/hardware/camera2/cts/ |
D | SurfaceViewPreviewTest.java | 266 frameDurationStats.first / 1e6, frameDurationStats.second / 1e6)); in preparePerformanceTestByCamera() 286 whilePreparingFrameDurationStats.first / 1e6, in preparePerformanceTestByCamera() 294 frameDurationStats.first / 1e6, in preparePerformanceTestByCamera() 297 frameDurationStats.first * (1 + PREPARE_PEAK_RATE_BOUNDS))); in preparePerformanceTestByCamera() 302 frameDurationStats.first / 1e6, in preparePerformanceTestByCamera() 303 whilePreparingFrameDurationStats.first / 1e6), in preparePerformanceTestByCamera() 304 (whilePreparingFrameDurationStats.first <= in preparePerformanceTestByCamera() 305 frameDurationStats.first * (1 + PREPARE_FRAME_RATE_BOUNDS))); in preparePerformanceTestByCamera() 324 preparedFrameDurationStats.first / 1e6, in preparePerformanceTestByCamera() 332 frameDurationStats.first / 1e6, preparedFrameDurationStats.second / 1e6), in preparePerformanceTestByCamera() [all …]
|
D | DngCreatorTest.java | 163 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/tests/tests/text/src/android/text/style/cts/ |
D | LeadingMarginSpan_StandardTest.java | 54 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/graphics/src/android/graphics/cts/ |
D | SumPathEffectTest.java | 56 PathEffect first = new CornerPathEffect(40); in testSumPathEffect() local 60 paint.setPathEffect(first); in testSumPathEffect() 69 SumPathEffect sumPathEffect = new SumPathEffect(second, first); in testSumPathEffect()
|
D | TypefaceCustomFallbackBuilderTest.java | 53 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/tests/view/src/android/view/cts/ |
D | SystemGestureExclusionRectsTest.java | 127 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/suite/audio_quality/lib/src/task/ |
D | TaskSave.cpp | 90 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/tests/telecom/src/android/telecom/cts/ |
D | AdhocConferenceTest.java | 82 Conference conference = verifyAdhocConferenceCall().first; in testStartConferenceFailed() 113 Conference conference = verifyAdhocConferenceCall().first; in testAddNewIncomingConferenceFailed() 135 MockConference conference = (MockConference) resultPair.first; in testConferenceCallAddConferenceParticipants()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/ |
D | AssertHelpers.java | 215 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/ |
D | GestureUtils.java | 93 public static Path path(PointF first, PointF... rest) { in path() argument 95 path.moveTo(first.x, first.y); in path()
|
/cts/tests/tests/role/src/android/app/role/cts/ |
D | RoleManagerTest.java | 234 assertThat(result.first).isEqualTo(Activity.RESULT_CANCELED); in requestRoleAndDenyWithDontAskAgainReturnsCanceled() 250 assertThat(result.first).isEqualTo(Activity.RESULT_CANCELED); in requestRoleAndDenyWithDontAskAgainThenDeniedAutomatically() 305 assertThat(result.first).isEqualTo(Activity.RESULT_CANCELED); in requestAssistantRoleThenDeniedAutomatically() 328 assertThat(result.first).isEqualTo(expectedResult); in respondToRoleRequest() 396 assertThat(result.first).isEqualTo(Activity.RESULT_CANCELED); in targetCurrentSdkAndChangeDefaultDialerThenIsCanceled() 408 assertThat(result.first).isEqualTo(Activity.RESULT_CANCELED); in targetCurrentSdkAndChangeDefaultSmsThenIsCanceled() 490 assertThat(result.first).isEqualTo(Activity.RESULT_OK); in assertRoleIsHeld() 563 assertThat(result.first).isEqualTo(ROLE_NAME); in assertOnRoleHoldersChangedListenerIsNotified()
|
/cts/suite/audio_quality/lib/src/ |
D | Report.cpp | 96 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/ |
D | AppStubActivity.java | 137 boolean first){ in onApplyThemeResource() argument 138 super.onApplyThemeResource(theme,resid,first); in onApplyThemeResource()
|
/cts/hostsidetests/sustainedperf/src/android/SustainedPerformance/cts/ |
D | SustainedPerformanceHostTest.java | 118 boolean first = true; in analyzeResults() 127 if (first) { in analyzeResults() 128 first = false; in analyzeResults()
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | ImeEventStream.java | 219 boolean first = true; in dumpBundle() 221 if (first) { in dumpBundle() 222 first = false; in dumpBundle()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | FileObserverTest.java | 270 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()
|
/cts/tests/tests/display/src/android/display/cts/ |
D | BrightnessTest.java | 252 assertTrue(curve.first.length > 0); in testGetDefaultCurve() 253 assertEquals(curve.first.length, curve.second.length); in testGetDefaultCurve() 254 assertInRange(curve.first, 0, Float.MAX_VALUE); in testGetDefaultCurve() 256 assertEquals(0.0, curve.first[0], 0.1); in testGetDefaultCurve() 257 assertMonotonic(curve.first, true /*strictly increasing*/, "lux"); in testGetDefaultCurve()
|