Home
last modified time | relevance | path

Searched refs:info1 (Results 1 – 17 of 17) sorted by relevance

/cts/tests/tests/content/src/android/content/pm/cts/
DApplicationInfo_DisplayNameComparatorTest.java51 ApplicationInfo info1 = new ApplicationInfo(); in testCompare() local
53 info1.packageName = PACKAGE_NAME; in testCompare()
55 assertEquals(0, mDisplayNameComparator.compare(info1, info2)); in testCompare()
57 info1 = mContext.getPackageManager().getApplicationInfo(PACKAGE_NAME, in testCompare()
60 assertTrue((mDisplayNameComparator.compare(info1, info2) < 0)); in testCompare()
62 info1 = new ApplicationInfo(); in testCompare()
63 info1.packageName = PACKAGE_NAME + ".1"; in testCompare()
66 assertTrue((mDisplayNameComparator.compare(info1, info2) > 0)); in testCompare()
/cts/tests/tests/drm/src/android/drm/cts/
DDrmSupportInfoTest.java67 DrmSupportInfo info1 = new DrmSupportInfo(); in checkEqualsOnDefaultInfoObjects() local
69 assertTrue(info1.equals(info2)); in checkEqualsOnDefaultInfoObjects()
73 DrmSupportInfo info1 = new DrmSupportInfo(); in checkEqualsOnNondefaultInfoObjects() local
76 info1.addMimeType("Hello"); in checkEqualsOnNondefaultInfoObjects()
78 assertFalse(info1.equals(info2)); in checkEqualsOnNondefaultInfoObjects()
80 assertTrue(info1.equals(info3)); in checkEqualsOnNondefaultInfoObjects()
81 info1.setDescription("World"); in checkEqualsOnNondefaultInfoObjects()
83 assertFalse(info1.equals(info3)); in checkEqualsOnNondefaultInfoObjects()
85 assertTrue(info1.equals(info3)); in checkEqualsOnNondefaultInfoObjects()
86 info1.addFileSuffix("txt"); in checkEqualsOnNondefaultInfoObjects()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/
DSavedDatasetsInfoTest.java66 SavedDatasetsInfo info1 = new SavedDatasetsInfo(TYPE_PASSWORDS, 5); in testEquals_true() local
69 assertThat(info1).isEqualTo(info2); in testEquals_true()
74 SavedDatasetsInfo info1 = new SavedDatasetsInfo(TYPE_PASSWORDS, 5); in testEquals_differentType_false() local
77 assertThat(info1).isNotEqualTo(info2); in testEquals_differentType_false()
82 SavedDatasetsInfo info1 = new SavedDatasetsInfo(TYPE_PASSWORDS, 5); in testEquals_differentCount_false() local
85 assertThat(info1).isNotEqualTo(info2); in testEquals_differentCount_false()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvInputInfoTest.java40 public static boolean compareTvInputInfos(Context context, TvInputInfo info1, in compareTvInputInfos() argument
42 return TextUtils.equals(info1.getId(), info2.getId()) in compareTvInputInfos()
43 && TextUtils.equals(info1.getParentId(), info2.getParentId()) in compareTvInputInfos()
44 && TextUtils.equals(info1.getServiceInfo().packageName, in compareTvInputInfos()
46 && TextUtils.equals(info1.getServiceInfo().name, info2.getServiceInfo().name) in compareTvInputInfos()
47 && TextUtils.equals(info1.createSetupIntent().toString(), in compareTvInputInfos()
49 && info1.getType() == info2.getType() in compareTvInputInfos()
50 && info1.getTunerCount() == info2.getTunerCount() in compareTvInputInfos()
51 && info1.canRecord() == info2.canRecord() in compareTvInputInfos()
52 && info1.canPauseRecording() == info2.canPauseRecording() in compareTvInputInfos()
[all …]
/cts/tests/tests/wifi/src/android/net/wifi/sharedconnectivity/cts/app/
DNetworkProviderInfoTest.java83 NetworkProviderInfo info1 = buildNetworkProviderInfoBuilder().build(); in equalsOperation() local
85 assertThat(info1).isEqualTo(info2); in equalsOperation()
89 assertThat(builder.build()).isNotEqualTo(info1); in equalsOperation()
92 assertThat(builder.build()).isNotEqualTo(info1); in equalsOperation()
95 assertThat(builder.build()).isNotEqualTo(info1); in equalsOperation()
99 assertThat(builder.build()).isNotEqualTo(info1); in equalsOperation()
104 assertThat(builder.build()).isNotEqualTo(info1); in equalsOperation()
109 assertThat(builder.build()).isNotEqualTo(info1); in equalsOperation()
128 NetworkProviderInfo info1 = buildNetworkProviderInfoBuilder().build(); in hashCodeCalculation() local
131 assertThat(info1.hashCode()).isEqualTo(info2.hashCode()); in hashCodeCalculation()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiInfoTest.java251 WifiInfo info1 = builder.build(); in testWifiInfoBuilder() local
253 assertThat(info1.getSSID()).isEqualTo("\"" + TEST_SSID + "\""); in testWifiInfoBuilder()
254 assertThat(info1.getBSSID()).isEqualTo(TEST_BSSID); in testWifiInfoBuilder()
255 assertThat(info1.getRssi()).isEqualTo(TEST_RSSI); in testWifiInfoBuilder()
256 assertThat(info1.getNetworkId()).isEqualTo(TEST_NETWORK_ID); in testWifiInfoBuilder()
258 assertThat(info1.getSubscriptionId()) in testWifiInfoBuilder()
260 assertFalse(info1.isOemPaid()); in testWifiInfoBuilder()
261 assertFalse(info1.isOemPrivate()); in testWifiInfoBuilder()
262 assertFalse(info1.isCarrierMerged()); in testWifiInfoBuilder()
264 assertFalse(info1.isApTidToLinkMappingNegotiationSupported()); in testWifiInfoBuilder()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DHeaderViewListAdapterTest.java119 ListView.FixedViewInfo info1 = lv.new FixedViewInfo(); in testRemoveHeader() local
120 info1.view = lv1; in testRemoveHeader()
123 header.add(info1); in testRemoveHeader()
140 ListView.FixedViewInfo info1 = lv.new FixedViewInfo(); in testRemoveFooter() local
141 info1.view = lv1; in testRemoveFooter()
144 footer.add(info1); in testRemoveFooter()
165 ListView.FixedViewInfo info1 = lv.new FixedViewInfo(); in testGetCount() local
166 info1.data = data1; in testGetCount()
169 header.add(info1); in testGetCount()
236 ListView.FixedViewInfo info1 = lv.new FixedViewInfo(); in testGetItem() local
[all …]
/cts/tests/credentials/src/android/credentials/cts/unittests/service/
DCallingAppInfoTest.java75 final CallingAppInfo info1 = new CallingAppInfo(mPackageName, mSigningInfo); in testWriteToParcel_success() local
77 final CallingAppInfo info2 = TestUtils.cloneParcelable(info1); in testWriteToParcel_success()
79 assertThat(info2.getPackageName()).isEqualTo(info1.getPackageName()); in testWriteToParcel_success()
80 TestUtils.assertEquals(info2.getSigningInfo(), info1.getSigningInfo()); in testWriteToParcel_success()
/cts/tests/tests/car/src/android/car/cts/
DCarRemoteDeviceManagerTest.java183 private static boolean signingInfoEquals(SigningInfo info1, SigningInfo info2) { in signingInfoEquals() argument
184 if (info1 == info2) { in signingInfoEquals()
187 if (info1 == null || info2 == null) { in signingInfoEquals()
190 Signature[] signatures1 = info1.getSigningCertificateHistory(); in signingInfoEquals()
191 Signature[] signatures2 = info1.getSigningCertificateHistory(); in signingInfoEquals()
/cts/tests/tests/content/src/android/content/cts/
DContentProviderTest.java117 ProviderInfo info1 = new ProviderInfo(); in testAttachInfo() local
118 info1.readPermission = "android.permission.READ_SMS"; in testAttachInfo()
119 info1.writePermission = null; // Guarded by an app op not a permission. in testAttachInfo()
120 mockContentProvider.attachInfo(sContext, info1); in testAttachInfo()
122 assertEquals(info1.readPermission, mockContentProvider.getReadPermission()); in testAttachInfo()
123 assertEquals(info1.writePermission, mockContentProvider.getWritePermission()); in testAttachInfo()
130 assertEquals(info1.readPermission, mockContentProvider.getReadPermission()); in testAttachInfo()
131 assertEquals(info1.writePermission, mockContentProvider.getWritePermission()); in testAttachInfo()
144 mockContentProvider.attachInfo(sContext, info1); in testAttachInfo()
146 assertEquals(info1.readPermission, mockContentProvider.getReadPermission()); in testAttachInfo()
[all …]
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/
DTestGetWindowLayoutInfoActivity.java135 private void assertEqualWindowLayoutInfo(SidecarWindowLayoutInfo info1, in assertEqualWindowLayoutInfo() argument
138 if (info1.displayFeatures == null && info2.displayFeatures == null) { in assertEqualWindowLayoutInfo()
143 info1); in assertEqualWindowLayoutInfo()
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/
DWebViewActivity.java198 VirtualViewFillInfo info1 = null; in notifyViewReady() local
200 info1 = new VirtualViewFillInfo.Builder() in notifyViewReady()
211 viewInfo.put(65536, info1); in notifyViewReady()
/cts/tests/media/src/android/mediav2/cts/
DCodecUnitTest.java2169 MediaCodec.BufferInfo info1 = new MediaCodec.BufferInfo(); in testQueueInputBuffersWithNullInfo() local
2170 info1.set(0, buffer.capacity() / 2, 0, 0); in testQueueInputBuffersWithNullInfo()
2171 infos.add(info1); in testQueueInputBuffersWithNullInfo()
2236 MediaCodec.BufferInfo info1 = new MediaCodec.BufferInfo(); in testQueueInputBuffersWithBadSize() local
2237 info1.set(0, buffer.capacity() / 2, 0, MediaCodec.BUFFER_FLAG_KEY_FRAME); in testQueueInputBuffersWithBadSize()
2238 infos.add(info1); in testQueueInputBuffersWithBadSize()
2279 MediaCodec.BufferInfo info1 = new MediaCodec.BufferInfo(); in testQueueInputBuffersWithBadBuffInfo() local
2280 info1.set(0, buffer.capacity() / 2, 0, MediaCodec.BUFFER_FLAG_END_OF_STREAM); in testQueueInputBuffersWithBadBuffInfo()
2281 infos.add(info1); in testQueueInputBuffersWithBadBuffInfo()
2535 MediaCodec.BufferInfo info1 = new MediaCodec.BufferInfo(); in testSetMultiFrameLinearBlockWithNullInfo() local
[all …]
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DCursorAnchorInfoTest.java648 CursorAnchorInfo info1 = builder.build(); in testTextAppearanceInfoWithEmptyEditText() local
651 assertEquals(textAppearanceInfo, info1.getTextAppearanceInfo()); in testTextAppearanceInfoWithEmptyEditText()
/cts/tests/app/src/android/app/cts/
DActivityManagerTest.java723 final ActivityManager.ProcessErrorStateInfo info1 = t1.uid == app1Info.uid ? t1 : t0; local
729 verifyProcessErrorStateInfo(info1,
/cts/tests/tests/tv/src/android/media/tv/tuner/cts/
DTunerTest.java2991 FrontendInfo info1 = mTuner.getFrontendInfoById(ids.get(targetFrontendId)); in testMaxNumberOfFrontends() local
2992 FrontendSettings feSettings1 = createFrontendSettings(info1); in testMaxNumberOfFrontends()
2993 int type1 = info1.getType(); in testMaxNumberOfFrontends()
/cts/tests/tests/tv/tuner/src/android/media/tv/tuner/cts/
DTunerTest.java2990 FrontendInfo info1 = mTuner.getFrontendInfoById(ids.get(targetFrontendId)); in testMaxNumberOfFrontends() local
2991 FrontendSettings feSettings1 = createFrontendSettings(info1); in testMaxNumberOfFrontends()
2992 int type1 = info1.getType(); in testMaxNumberOfFrontends()