Home
last modified time | relevance | path

Searched refs:id1 (Results 1 – 14 of 14) sorted by relevance

/cts/tests/tests/content/src/android/content/cts/
DLocusIdTest.java57 final LocusId id1 = new LocusId(ID); in testEquals() local
59 assertThat(id1).isEqualTo(id2); in testEquals()
60 assertThat(id2).isEqualTo(id1); in testEquals()
63 assertThat(id1).isNotEqualTo(id3); in testEquals()
64 assertThat(id3).isNotEqualTo(id1); in testEquals()
69 final LocusId id1 = new LocusId(ID); in testHashcode() local
71 assertThat(id1.hashCode()).isEqualTo(id2.hashCode()); in testHashcode()
72 assertThat(id2.hashCode()).isEqualTo(id1.hashCode()); in testHashcode()
75 assertThat(id1.hashCode()).isNotEqualTo(id3.hashCode()); in testHashcode()
76 assertThat(id3.hashCode()).isNotEqualTo(id1.hashCode()); in testHashcode()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerUsageTest.java94 final String id1 = generateRandomId("id1"); in testReportShortcutUsed() local
103 makeShortcut(id1), in testReportShortcutUsed()
109 makeShortcut(id1), in testReportShortcutUsed()
124 runWithCallerWithStrictMode(mPackageContext1, () -> getManager().reportShortcutUsed(id1)); in testReportShortcutUsed()
128 checkEventReported(start2, end2, mPackageContext1, id1, "Events weren't populated"); in testReportShortcutUsed()
145 final String id1 = generateRandomId("id1"); in testShortcutInvocationEventIsVisible() local
149 list(makeShortcut(id1), makeShortcut(id2))))); in testShortcutInvocationEventIsVisible()
153 runWithCallerWithStrictMode(mPackageContext1, () -> getManager().reportShortcutUsed(id1)); in testShortcutInvocationEventIsVisible()
157 checkEventReported(start, end, mPackageContext1, id1, in testShortcutInvocationEventIsVisible()
162 final String id1 = generateRandomId("id1"); in testShortcutInvocationEventIsNotVisible() local
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/
DCharSequenceTransformationTest.java72 AutofillId id1 = new AutofillId(1); in testBadSubst() local
77 CharSequenceTransformation.Builder b = new CharSequenceTransformation.Builder(id1, in testBadSubst()
93 when(finder.findByAutofillId(id1)).thenReturn("a"); in testBadSubst()
106 AutofillId id1 = new AutofillId(1); in testUnknownField() local
110 CharSequenceTransformation.Builder b = new CharSequenceTransformation.Builder(id1, in testUnknownField()
123 when(finder.findByAutofillId(id1)).thenReturn("1"); in testUnknownField()
207 AutofillId id1 = new AutofillId(1); in testMismatch() local
208 CharSequenceTransformation.Builder b = new CharSequenceTransformation.Builder(id1, in testMismatch()
216 when(finder.findByAutofillId(id1)).thenReturn("I'm Batman!"); in testMismatch()
226 AutofillId id1 = new AutofillId(1); in testFieldsAreAppliedInOrder() local
[all …]
DLuhnChecksumValidatorTest.java100 AutofillId id1 = new AutofillId(1); in nullAutofillValuesCauseFailure() local
104 LuhnChecksumValidator validator = new LuhnChecksumValidator(id1, id2, id3); in nullAutofillValuesCauseFailure()
108 when(finder.findByAutofillId(id1)).thenReturn("7992739871"); in nullAutofillValuesCauseFailure()
128 AutofillId id1 = new AutofillId(1); in multipleFieldNumber() local
131 LuhnChecksumValidator validator = new LuhnChecksumValidator(id1, id2); in multipleFieldNumber()
135 when(finder.findByAutofillId(id1)).thenReturn("7992739871"); in multipleFieldNumber()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DDuplicateIdActivityTest.java116 final AutofillId id1 = view1.getAutofillId(); in testDoNotRestoreDuplicateAutofillIds() local
119 Log.v(TAG, "view1=" + id1); in testDoNotRestoreDuplicateAutofillIds()
126 assertThat(id1).isNotEqualTo(id2); in testDoNotRestoreDuplicateAutofillIds()
168 final boolean view1WasRestored = (recreatedId1.equalsIgnoreSession(id1) in testDoNotRestoreDuplicateAutofillIds()
170 final boolean view2WasRestored = (recreatedId2.equalsIgnoreSession(id1) in testDoNotRestoreDuplicateAutofillIds()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DConditionProviderVerifierActivity.java353 private String id1 = null; // no zen policy field in ConditionProviderVerifierActivity.UpdateAutomaticZenRuleWithZenPolicyTest
364 id1 = mNm.addAutomaticZenRule(createRule("BeforeUpdate1", in setUp()
378 AutomaticZenRule updated1 = mNm.getAutomaticZenRule(id1); in test()
391 boolean success1 = mNm.updateAutomaticZenRule(id1, updated1); in test()
395 updated1.equals(mNm.getAutomaticZenRule(id1)); in test()
403 + " actual=" + mNm.getAutomaticZenRule(id1)); in test()
424 if (id1 != null) { in tearDown()
425 mNm.removeAutomaticZenRule(id1); in tearDown()
486 private String id1 = null; field in ConditionProviderVerifierActivity.GetAutomaticZenRuleTest
502 id1 = mNm.addAutomaticZenRule(ruleToCreate1); in setUp()
[all …]
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DMmsPartTest.java97 long id1 = insertAndVerifyMmsPartReturningId("testMmsPart_deletedPartIdsAreNotReused_1"); in testMmsPart_deletedPartIdsAreNotReused() local
99 deletePartById(id1); in testMmsPart_deletedPartIdsAreNotReused()
103 assertThat(id2).isGreaterThan(id1); in testMmsPart_deletedPartIdsAreNotReused()
/cts/tests/tests/nativehardware/jni/
DAHardwareBufferTest.cpp519 uint64_t id1 = 0; in TEST() local
530 EXPECT_EQ(0, AHardwareBuffer_getId(buffer1, &id1)); in TEST()
531 EXPECT_NE(id1, 0ULL); in TEST()
541 EXPECT_NE(id1, id2); in TEST()
/cts/tests/app/app/src/android/app/stubs/
DLocalActivityManagerTestHelper.java117 final String id1 = "id_dispatch_destroy1"; in testDispatchDestroy() local
121 mLocalActivityManager.startActivity(id1, intent); in testDispatchDestroy()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTest.java208 int id1 = host1.allocateAppWidgetId(); in testGetAppWidgetIdsForHost() local
209 assertTrue(Arrays.equals(host1.getAppWidgetIds(), new int[]{id1})); in testGetAppWidgetIdsForHost()
213 assertTrue(Arrays.equals(host1.getAppWidgetIds(), new int[]{id1, id2})); in testGetAppWidgetIdsForHost()
217 assertTrue(Arrays.equals(host1.getAppWidgetIds(), new int[]{id1, id2})); in testGetAppWidgetIdsForHost()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DHelper.java1499 public static void assertEqualsIgnoreSession(@NonNull AutofillId id1, @NonNull AutofillId id2) { in assertEqualsIgnoreSession() argument
1500 assertWithMessage("id1 is null").that(id1).isNotNull(); in assertEqualsIgnoreSession()
1502 assertWithMessage("%s is not equal to %s", id1, id2).that(id1.equalsIgnoreSession(id2)) in assertEqualsIgnoreSession()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCameraDeviceTest.java2776 private void testTwoCameraDevicesAudioRestriction(String id0, String id1) throws Exception { in testTwoCameraDevicesAudioRestriction() argument
2792 cam1 = CameraTestUtils.openCamera(mCameraManager, id1, cam1Cb, mHandler); in testTwoCameraDevicesAudioRestriction()
2794 Log.i(TAG, "Camera " + id1 + "cannot be opened along with camera " + id0 + in testTwoCameraDevicesAudioRestriction()
2805 id1 + " from the same process"); in testTwoCameraDevicesAudioRestriction()
/cts/tests/app/src/android/app/cts/
DNotificationManagerTest.java1076 String id1 = mNotificationManager.addAutomaticZenRule(rule1); in testConsolidatedNotificationPolicyMultiRules() local
1082 mNotificationManager.setAutomaticZenRuleState(id1, onCondition1); in testConsolidatedNotificationPolicyMultiRules()
1087 mRuleIds.add(id1); in testConsolidatedNotificationPolicyMultiRules()
/cts/tests/tests/media/assets/hls_variant/1676816/
D04.ts7440 ��>�?�ET"�夵�p[lp�h9N�!?�2�G��4�p$��n�z��kiP4�������_�2�id1f�I+h;�h8N���pͯ�/�'dz�ɤ3�Ln�…