Home
last modified time | relevance | path

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

1234567

/cts/tests/tests/util/src/android/util/cts/
DSparseArrayTest.java202 SparseArray<String> first = new SparseArray<>(); in testSet() local
203 first.put(0, "0"); in testSet()
204 first.put(1, "1"); in testSet()
205 first.put(2, "2"); in testSet()
212 assertThat(first.size()).isEqualTo(second.size()); in testSet()
213 assertThat(first.get(0)).isEqualTo(second.get(0)); in testSet()
214 assertThat(first.get(1)).isEqualTo(second.get(1)); in testSet()
215 assertThat(first.get(2)).isEqualTo(second.get(2)); in testSet()
216 assertThat(first.get(3, "-1")).isEqualTo(second.get(3, "-1")); in testSet()
218 testContentEquals(first, second, SparseArray::contentEquals); in testSet()
[all …]
/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 …]
DTextShaperTest.java79 assertThat(glyphs.get(0).first).isEqualTo(singleStyleResult); in shapeText_noStyle()
99 assertThat(result.get(0).first.getOffsetX()).isEqualTo(0f); in shapeText_multiStyle()
100 assertThat(result.get(1).first.getOffsetX()).isGreaterThan(0f); in shapeText_multiStyle()
102 assertThat(result.get(0).first.getOffsetY()).isEqualTo(0f); in shapeText_multiStyle()
103 assertThat(result.get(1).first.getOffsetY()).isEqualTo(0f); in shapeText_multiStyle()
110 assertThat(result.get(0).first.getFont(0)).isNotEqualTo(result.get(1).first.getFont(0)); in shapeText_multiStyle()
/cts/tests/mediapc/src/android/mediapc/cts/
DMultiTranscoderPerfTest.java107 if (mDecoderPair.first.equals(MediaFormat.MIMETYPE_VIDEO_VP9) in test720p()
108 || mEncoderPair.first.equals(MediaFormat.MIMETYPE_VIDEO_VP9)) { in test720p()
111 assertTrue("DecodeMime: " + mDecoderPair.first + ", Decoder " + mDecoderPair.second + in test720p()
112 ", EncodeMime: " + mEncoderPair.first + ", Encoder: " + mEncoderPair.second + in test720p()
118 transcodeList.add(new Transcode(mEncoderPair.first, mTestFiles.get(mDecoderPair.first), in test720p()
130 decodeList.add(new DecodeToSurface(mDecoderPair.first, in test720p()
131 mTestFiles.get(mDecoderPair.first), mDecoderPair.second, surface, mIsAsync)); in test720p()
DMultiDecoderPairPerfTest.java101 testList.add(new Decode(mFirstPair.first, mTestFiles.get(mFirstPair.first), in test720p()
105 testList.add(new Decode(mSecondPair.first, mTestFiles.get(mSecondPair.first), in test720p()
/cts/tests/tests/apache-http/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/view/receivecontent/src/android/view/cts/receivecontent/
DContentInfoTest.java72 assertThat(split.first.getClip().getItemCount()).isEqualTo(1); in testPartition_multipleItems()
74 assertThat(split.first.getClip().getItemAt(0).getUri()).isEqualTo(sampleUri); in testPartition_multipleItems()
75 assertThat(split.first.getClip().getDescription()).isNotSameInstanceAs( in testPartition_multipleItems()
79 assertThat(split.first.getSource()).isEqualTo(SOURCE_CLIPBOARD); in testPartition_multipleItems()
80 assertThat(split.first.getLinkUri()).isNotNull(); in testPartition_multipleItems()
81 assertThat(split.first.getExtras()).isNotNull(); in testPartition_multipleItems()
88 assertThat(split.first).isNull(); in testPartition_multipleItems()
93 assertThat(split.first).isSameInstanceAs(payload); in testPartition_multipleItems()
108 assertThat(split.first).isNull(); in testPartition_singleItem()
112 assertThat(split.first).isSameInstanceAs(payload); in testPartition_singleItem()
/cts/tests/media/jni/
DNativeMediaCommon.cpp62 bool hasRefCSD = AMediaFormat_getBuffer(refFormat, name, &refCsd.first, &refCsd.second); in isCSDIdentical()
63 bool hasTestCSD = AMediaFormat_getBuffer(testFormat, name, &testCsd.first, &testCsd.second); in isCSDIdentical()
74 if (memcmp(refCsd.first, testCsd.first, refCsd.second)) { in isCSDIdentical()
/cts/tests/bugreport/src/android/bugreport/cts/
DBugreportManagerTest.java96 String bugreport = brFiles.first; in testTelephonyBugreport()
109 String bugreport = brFiles.first; in testFullBugreport()
123 String bugreport = brFiles.first; in testInteractiveBugreport()
142 String bugreport = brFiles.first; in testWifiBugreport()
155 String bugreport = brFiles.first; in testRemoteBugreport()
168 String bugreport = brFiles.first; in testWearBugreport()
/cts/tests/tests/telecom/src/android/telecom/cts/
DAdhocConferenceTest.java83 Conference conference = verifyAdhocConferenceCall().first; in testStartConferenceFailed()
103 MockConference conference = (MockConference) resultPair.first; in testAddNewIncomingConference_onAnswer()
126 MockConference conference = (MockConference) resultPair.first; in testAddNewIncomingConference_onReject()
143 Conference conference = verifyAdhocConferenceCall().first; in testAddNewIncomingConferenceFailed()
165 MockConference conference = (MockConference) resultPair.first; in testConferenceCallAddConferenceParticipants()
/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/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEndToEndTest.java1096 private boolean equalsAccessiblityEvent(AccessibilityEvent first, AccessibilityEvent second) { in equalsAccessiblityEvent() argument
1097 return first.getEventType() == second.getEventType() in equalsAccessiblityEvent()
1098 && first.isChecked() == second.isChecked() in equalsAccessiblityEvent()
1099 && first.getCurrentItemIndex() == second.getCurrentItemIndex() in equalsAccessiblityEvent()
1100 && first.isEnabled() == second.isEnabled() in equalsAccessiblityEvent()
1101 && first.getFromIndex() == second.getFromIndex() in equalsAccessiblityEvent()
1102 && first.getItemCount() == second.getItemCount() in equalsAccessiblityEvent()
1103 && first.isPassword() == second.isPassword() in equalsAccessiblityEvent()
1104 && first.getRemovedCount() == second.getRemovedCount() in equalsAccessiblityEvent()
1105 && first.isScrollable()== second.isScrollable() in equalsAccessiblityEvent()
[all …]
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpsLoggingTest.kt231 assertThat(selfNoted.map { it.first.attributionTag to it.first.op }) in nativeNoteOp()
240 assertThat(selfNoted.map { it.first.attributionTag }).containsExactly(TEST_ATTRIBUTION_TAG) in nativeNoteOp()
450 assertThat(noted[0].first.op).isEqualTo(OPSTR_FINE_LOCATION) in nativeNoteOp()
451 assertThat(noted[0].first.attributionTag).isEqualTo(TEST_ATTRIBUTION_TAG) in nativeNoteOp()
540 assertThat(noted.map { it.first.op }).containsAnyOf(OPSTR_COARSE_LOCATION, in nativeNoteOp()
542 assertThat(noted[0].first.attributionTag).isEqualTo(TEST_ATTRIBUTION_TAG) in nativeNoteOp()
580 assertThat(noted.map { it.first.op }) in nativeNoteOp()
582 assertThat(noted[0].first.attributionTag).isEqualTo(TEST_ATTRIBUTION_TAG) in nativeNoteOp()
690 assertThat(noted[0].first.op).isEqualTo(OPSTR_FINE_LOCATION) in nativeNoteOp()
691 assertThat(noted[0].first.attributionTag).isEqualTo(TEST_ATTRIBUTION_TAG) in nativeNoteOp()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/saveui/
DCustomDescriptionTest.java119 update.setTextViewText(R.id.first, "batch updated"); in testSanitizationBeforeBatchUpdates()
169 .addChild(R.id.first, trans) in testSanitizationBeforeTransformations()
208 .addChild(R.id.first, trans1) in validTransformation()
232 .addChild(R.id.first, trans1) in validTransformationWithOneTemplateUpdate()
259 update1.setContentDescription(R.id.first, "First am I"); // valid in validTransformationWithMultipleTemplateUpdates()
261 update2.setViewVisibility(R.id.first, View.GONE); // invalid in validTransformationWithMultipleTemplateUpdates()
270 .addChild(R.id.first, trans1) in validTransformationWithMultipleTemplateUpdates()
374 .addChild(R.id.first, line1Transformation) in multipleBatchUpdatesTest()
422 .addChild(R.id.first, line1Transformation) in testBatchUpdatesApplyUpdateFirstThenTransformations()
478 .addChild(R.id.first, trans) in applyImageTransformationToTextView()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DSumPathEffectTest.java56 PathEffect first = new CornerPathEffect(40); in testSumPathEffect() local
60 paint.setPathEffect(first); in testSumPathEffect()
70 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/tests/appop/AppThatUsesAppOps/src/android/app/appops/cts/appthatusesappops/
DAppOpsUserService.kt140 assertThat(noted.map { it.first.attributionTag to it.first.op }) in noteSyncOpFromNativeCode()
153 assertThat(noted.map { it.first.op }).containsExactly(OPSTR_COARSE_LOCATION) in noteSyncOpFromNativeCode()
169 assertThat(noted.map { it.first.attributionTag }) in noteSyncOpFromNativeCode()
181 assertThat(noted.map { it.first.op }).containsExactly(OPSTR_FINE_LOCATION) in noteSyncOpFromNativeCode()
241 assertThat(noted.map { it.first.op }).containsExactly(OPSTR_COARSE_LOCATION) in noteSyncOpFromNativeCode()
253 assertThat(noted.map { it.first.op }).containsExactly( in noteSyncOpFromNativeCode()
/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontTest.java155 int weight = style.first.intValue(); in testBuilder_buffer()
176 int weight = style.first.intValue(); in testBuilder_buffer_ttc()
198 int weight = style.first.intValue(); in testBuilder_buffer_vf()
222 int weight = style.first.intValue(); in testBuilder_buffer_override()
239 int weight = style.first.intValue(); in testBuilder_buffer_override()
271 int weight = style.first.intValue(); in testBuilder_file()
297 int weight = style.first.intValue(); in testBuilder_file_ttc()
324 int weight = style.first.intValue(); in testBuilder_file_vf()
353 int weight = style.first.intValue(); in testBuilder_file_override()
374 int weight = style.first.intValue(); in testBuilder_file_override()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DVibrationEffectTest.java388 VibrationEffect.Composition first = VibrationEffect.startComposition(); in testStartComposition() local
390 assertNotEquals(first, other); in testStartComposition()
544 VibrationEffect.WaveformBuilder first = VibrationEffect.startWaveform(); in testStartWaveform() local
546 assertNotEquals(first, other); in testStartWaveform()
616 VibrationEffect first = VibrationEffect.startWaveform() in testStartWaveformNotEqualsDifferentTypesOfStep() local
622 assertNotEquals(first, second); in testStartWaveformNotEqualsDifferentTypesOfStep()
627 VibrationEffect first = VibrationEffect.startWaveform() in testStartWaveformNotEqualsDifferentRepeatIndex() local
633 assertNotEquals(first, second); in testStartWaveformNotEqualsDifferentRepeatIndex()
638 VibrationEffect first = VibrationEffect.startWaveform() in testStartWaveformNotEqualsDifferentAmplitudes() local
644 assertNotEquals(first, second); in testStartWaveformNotEqualsDifferentAmplitudes()
[all …]
/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/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/app/app/src/android/app/stubs/
DAppStubActivity.java137 boolean first){ in onApplyThemeResource() argument
138 super.onApplyThemeResource(theme,resid,first); in onApplyThemeResource()
/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()

1234567