Home
last modified time | relevance | path

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

12345678

/cts/tests/media/jni/
DNativeMediaFormatUnitTest.cpp125 delete it.first; in ~NativeMediaFormatUnitTest()
128 delete[] it.first->buffer; in ~NativeMediaFormatUnitTest()
129 delete it.first; in ~NativeMediaFormatUnitTest()
148 } else if (val != it.first + offset) { in validateFormatInt32()
149 ALOGE("MediaFormat Value for Key %s is not %d but %d", it.second, it.first + offset, in validateFormatInt32()
157 if (strstr(toString, std::to_string(it.first + offset).c_str()) == nullptr) { in validateFormatInt32()
159 std::to_string(it.first + offset).c_str()); in validateFormatInt32()
186 } else if (val != it.first + offset) { in validateFormatInt64()
188 it.first + offset, val); in validateFormatInt64()
195 if (strstr(toString, std::to_string(it.first + offset).c_str()) == nullptr) { in validateFormatInt64()
[all …]
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/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/mediapc/src/android/mediapc/cts/
DMultiDecoderPairPerfTest.java108 isSecureSupportedCodec(mFirstPair.second, mFirstPair.first) || in test720p()
109 isSecureSupportedCodec(mSecondPair.second, mSecondPair.first)); in test720p()
111 boolean hasVP9 = mFirstPair.first.equals(MediaFormat.MIMETYPE_VIDEO_VP9) || in test720p()
112 mSecondPair.first.equals(MediaFormat.MIMETYPE_VIDEO_VP9); in test720p()
132 boolean isFirstSecure = isSecureSupportedCodec(mFirstPair.second, mFirstPair.first); in test1080p()
133 boolean isSecondSecure = isSecureSupportedCodec(mSecondPair.second, mSecondPair.first); in test1080p()
153 boolean isFirstSecure = isSecureSupportedCodec(mFirstPair.second, mFirstPair.first); in testCodec()
154 boolean isSecondSecure = isSecureSupportedCodec(mSecondPair.second, mSecondPair.first); in testCodec()
168 isSecureSupportedCodec(mFirstPair.second, mFirstPair.first) ? 1 : 3; in testCodec()
175 String testFile = isSecure ? m1080pWidevineTestFiles.get(mFirstPair.first) : in testCodec()
[all …]
DMultiTranscoderPerfTest.java116 boolean hasVP9 = mDecoderPair.first.equals(MediaFormat.MIMETYPE_VIDEO_VP9) in test720p()
117 || mEncoderPair.first.equals(MediaFormat.MIMETYPE_VIDEO_VP9); in test720p()
153 .add(new Transcode(mEncoderPair.first, mTestFiles.get(mDecoderPair.first), in testCodec()
164 decodeList.add(new DecodeToSurface(mDecoderPair.first, in testCodec()
165 mTestFiles.get(mDecoderPair.first), mDecoderPair.second, surface, in testCodec()
189 r5_1__H_1_5 = pce.addR5_1__H_1_5_720p(mDecoderPair.first, mEncoderPair.first, height); in testCodec()
190 r5_1__H_1_6 = pce.addR5_1__H_1_6_720p(mDecoderPair.first, mEncoderPair.first, height); in testCodec()
DMultiEncoderPairPerfTest.java104 boolean hasVP9 = mFirstPair.first.equals(MediaFormat.MIMETYPE_VIDEO_VP9) || in test720p()
105 mSecondPair.first.equals(MediaFormat.MIMETYPE_VIDEO_VP9); in test720p()
139 new Encode(mFirstPair.first, mFirstPair.second, mIsAsync, height, width, 30, in testCodec()
144 new Encode(mSecondPair.first, mSecondPair.second, mIsAsync, height, width, in testCodec()
/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/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/
DActivityEmbeddingFinishTests.java132 waitAndAssertResumed(activityPair.first); in testFinishPrimaryWithSecondary_ActivitiesStacked_FinishNever()
148 waitAndAssertResumed(activityPair.first); in testFinishPrimaryWithSecondary_ActivitiesStacked_FinishAdjacent()
164 waitAndAssertFinishing(activityPair.first); in testFinishPrimaryWithSecondary_ActivitiesStacked_FinishAlways()
178 activityPair.first.resetBoundsChangeCounter(); in testFinishPrimaryWithSecondary_ActivitiesSplit_FinishNever()
180 assertTrue(activityPair.first.waitForBoundsChange()); in testFinishPrimaryWithSecondary_ActivitiesSplit_FinishNever()
181 verifyFillsTask(activityPair.first); in testFinishPrimaryWithSecondary_ActivitiesSplit_FinishNever()
197 waitAndAssertFinishing(activityPair.first); in testFinishPrimaryWithSecondary_ActivitiesSplit_FinishAdjacent()
212 waitAndAssertFinishing(activityPair.first); in testFinishPrimaryWithSecondary_ActivitiesSplit_FinishAlways()
226 activityPair.first.finish(); in testFinishSecondaryWithPrimary_ActivitiesStacked_FinishNever()
242 activityPair.first.finish(); in testFinishSecondaryWithPrimary_ActivitiesStacked_FinishAdjacent()
[all …]
DActivityEmbeddingCrossUidTests.java83 activityActivityPair -> primaryActivity.equals(activityActivityPair.first); in testCrossUidActivityEmbeddingIsNotAllowed()
107 activityActivityPair -> primaryActivity.equals(activityActivityPair.first); in testCrossUidActivityEmbeddingIsNotAllowedWithoutPermission()
148 activityActivityPair -> primaryActivity.equals(activityActivityPair.first); in testUntrustedCrossUidActivityEmbeddingIsAllowedWithOptIn()
172 activityActivityPair -> primaryActivity.equals(activityActivityPair.first); in testUntrustedCrossUidActivityEmbedding_notAllowedForNonEmbeddable()
/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/inputmethod/mocka11yime/common/src/com/android/cts/mocka11yime/
DMockA11yImeBundleUtils.java33 boolean first = true; in dumpBundle()
35 if (first) { in dumpBundle()
36 first = false; in dumpBundle()
/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/tests/telephony/current/src/android/telephony/cts/
DTelephonyRegistryManagerTest.java100 assertEquals(TelephonyManager.CALL_STATE_IDLE, result.first.longValue()); in testNotifyCallStateChangedForAllSubscriptions()
131 assertEquals(TelephonyManager.CALL_STATE_IDLE, result.first.longValue()); in testNotifyCallStateChanged()
315 assertEquals(privilegedPackageNames, carrierPrivilegesResult.first); in testCarrierPrivilegesCallback()
320 assertEquals("com.carrier.package1", carrierServiceResult.first); in testCarrierPrivilegesCallback()
337 assertEquals(newPrivilegedPackageNames, carrierPrivilegesResult.first); in testCarrierPrivilegesCallback()
349 assertEquals(newPrivilegedPackageNames, carrierPrivilegesResult.first); in testCarrierPrivilegesCallback()
353 assertEquals("com.carrier.package1", carrierServiceResult.first); in testCarrierPrivilegesCallback()
363 0, initialCarrierPrivilegesState.first, in testCarrierPrivilegesCallback()
365 trm.notifyCarrierServiceChanged(0, initialCarrierServiceState.first, in testCarrierPrivilegesCallback()
371 assertEquals(initialCarrierPrivilegesState.first, carrierPrivilegesResult.first); in testCarrierPrivilegesCallback()
[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/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/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()
/cts/tests/tests/telecom/src/android/telecom/cts/
DAdhocConferenceTest.java86 Conference conference = verifyAdhocConferenceCall().first; in testStartConferenceFailed()
106 MockConference conference = (MockConference) resultPair.first; in testAddNewIncomingConference_onAnswer()
129 MockConference conference = (MockConference) resultPair.first; in testAddNewIncomingConference_onReject()
146 Conference conference = verifyAdhocConferenceCall().first; in testAddNewIncomingConferenceFailed()
168 MockConference conference = (MockConference) resultPair.first; in testConferenceCallAddConferenceParticipants()
/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/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/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/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEndToEndTest.java1203 private boolean equalsAccessiblityEvent(AccessibilityEvent first, AccessibilityEvent second) { in equalsAccessiblityEvent() argument
1204 return first.getEventType() == second.getEventType() in equalsAccessiblityEvent()
1205 && first.isChecked() == second.isChecked() in equalsAccessiblityEvent()
1206 && first.getCurrentItemIndex() == second.getCurrentItemIndex() in equalsAccessiblityEvent()
1207 && first.isEnabled() == second.isEnabled() in equalsAccessiblityEvent()
1208 && first.getFromIndex() == second.getFromIndex() in equalsAccessiblityEvent()
1209 && first.getItemCount() == second.getItemCount() in equalsAccessiblityEvent()
1210 && first.isPassword() == second.isPassword() in equalsAccessiblityEvent()
1211 && first.getRemovedCount() == second.getRemovedCount() in equalsAccessiblityEvent()
1212 && first.isScrollable()== second.isScrollable() in equalsAccessiblityEvent()
[all …]
/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/view/src/android/view/cts/
DSystemGestureExclusionRectsTest.java129 final Rect first = list.get(0); in animatingView() local
131 assertTrue("left edge " + first.left + " >= previous " + prev.left, in animatingView()
132 first.left >= prev.left); in animatingView()
134 assertTrue("rect had expected width", sizeRange.contains(first.width())); in animatingView()
135 assertTrue("rect had expected height", sizeRange.contains(first.height())); in animatingView()
136 prev = first; in animatingView()

12345678