Home
last modified time | relevance | path

Searched refs:id2 (Results 1 – 10 of 10) sorted by relevance

/cts/tests/tests/content/src/android/content/cts/
DLocusIdTest.java58 final LocusId id2 = new LocusId(ID); in testEquals() local
59 assertThat(id1).isEqualTo(id2); in testEquals()
60 assertThat(id2).isEqualTo(id1); in testEquals()
70 final LocusId id2 = new LocusId(ID); in testHashcode() local
71 assertThat(id1.hashCode()).isEqualTo(id2.hashCode()); in testHashcode()
72 assertThat(id2.hashCode()).isEqualTo(id1.hashCode()); in testHashcode()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DLuhnChecksumValidatorTest.java101 AutofillId id2 = new AutofillId(2); in nullAutofillValuesCauseFailure() local
104 LuhnChecksumValidator validator = new LuhnChecksumValidator(id1, id2, id3); in nullAutofillValuesCauseFailure()
109 when(finder.findByAutofillId(id2)).thenReturn(null); in nullAutofillValuesCauseFailure()
129 AutofillId id2 = new AutofillId(2); in multipleFieldNumber() local
131 LuhnChecksumValidator validator = new LuhnChecksumValidator(id1, id2); in multipleFieldNumber()
136 when(finder.findByAutofillId(id2)).thenReturn("3"); in multipleFieldNumber()
139 when(finder.findByAutofillId(id2)).thenReturn("2"); in multipleFieldNumber()
DCharSequenceTransformationTest.java73 AutofillId id2 = new AutofillId(2); in testBadSubst() local
81 b.addField(id2, Pattern.compile("."), "2=$1"); in testBadSubst()
94 when(finder.findByAutofillId(id2)).thenReturn("b"); in testBadSubst()
107 AutofillId id2 = new AutofillId(2); in testUnknownField() local
116 b.addField(id2, Pattern.compile(".*"), "2"); in testUnknownField()
124 when(finder.findByAutofillId(id2)).thenReturn("2"); in testUnknownField()
229 AutofillId id2 = new AutofillId(2); in testFieldsAreAppliedInOrder() local
234 .addField(id2, Pattern.compile("b"), "B") in testFieldsAreAppliedInOrder()
241 when(finder.findByAutofillId(id2)).thenReturn("b"); in testFieldsAreAppliedInOrder()
DDuplicateIdActivityTest.java111 final AutofillId id2 = view2.getAutofillId(); in testDoNotRestoreDuplicateAutofillIds() local
114 Log.v(TAG, "view2=" + id2); in testDoNotRestoreDuplicateAutofillIds()
120 assertThat(id1).isNotEqualTo(id2); in testDoNotRestoreDuplicateAutofillIds()
163 || recreatedId1.equalsIgnoreSession(id2)); in testDoNotRestoreDuplicateAutofillIds()
165 || recreatedId2.equalsIgnoreSession(id2)); in testDoNotRestoreDuplicateAutofillIds()
DHelper.java1421 public static void assertEqualsIgnoreSession(@NonNull AutofillId id1, @NonNull AutofillId id2) { in assertEqualsIgnoreSession() argument
1423 assertWithMessage("id2 is null").that(id2).isNotNull(); in assertEqualsIgnoreSession()
1424 assertWithMessage("%s is not equal to %s", id1, id2).that(id1.equalsIgnoreSession(id2)) in assertEqualsIgnoreSession()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DConditionProviderVerifierActivity.java385 private String id2 = null; // has zen policy field in ConditionProviderVerifierActivity.UpdateAutomaticZenRuleWithZenPolicyTest
397 id2 = mNm.addAutomaticZenRule(createRuleWithZenPolicy( in setUp()
415 AutomaticZenRule updated2 = mNm.getAutomaticZenRule(id2); in test()
423 boolean success2 = mNm.updateAutomaticZenRule(id2, updated2); in test()
428 updated2.equals(mNm.getAutomaticZenRule(id2)); in test()
438 + " actual=" + mNm.getAutomaticZenRule(id2)); in test()
459 if (id2 != null) { in tearDown()
460 mNm.removeAutomaticZenRule(id2); in tearDown()
518 private String id2 = null; field in ConditionProviderVerifierActivity.GetAutomaticZenRuleTest
534 id2 = mNm.addAutomaticZenRule(ruleToCreate2); in setUp()
[all …]
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerUsageTest.java89 final String id2 = generateRandomId("id2"); in testReportShortcutUsed() local
98 makeShortcut(id2) in testReportShortcutUsed()
/cts/tests/app/app/src/android/app/stubs/
DLocalActivityManagerTestHelper.java118 final String id2 = "id_dispatch_destroy2"; in testDispatchDestroy() local
135 mLocalActivityManager.startActivity(id2, intent); in testDispatchDestroy()
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DMmsPartTest.java101 long id2 = insertAndVerifyMmsPartReturningId("testMmsPart_deletedPartIdsAreNotReused_2"); in testMmsPart_deletedPartIdsAreNotReused() local
103 assertThat(id2).isGreaterThan(id1); in testMmsPart_deletedPartIdsAreNotReused()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTest.java209 int id2 = host1.allocateAppWidgetId(); in testGetAppWidgetIdsForHost() local
210 assertTrue(Arrays.equals(host1.getAppWidgetIds(), new int[]{id1, id2})); in testGetAppWidgetIdsForHost()
214 assertTrue(Arrays.equals(host1.getAppWidgetIds(), new int[]{id1, id2})); in testGetAppWidgetIdsForHost()