Home
last modified time | relevance | path

Searched refs:obj1 (Results 1 – 25 of 32) sorted by relevance

12

/packages/modules/AdServices/shared/testing-libraries/side-less/java/com/android/adservices/shared/testing/
DEqualsTester.java40 public void expectObjectsAreEqual(Object obj1, Object obj2) { in expectObjectsAreEqual() argument
41 Objects.requireNonNull(obj1, "1st arg cannot be null"); in expectObjectsAreEqual()
44 if (!obj1.equals(obj2)) { in expectObjectsAreEqual()
45 mExpect.withMessage("1st obj (%s) is not equal to 2nd (%s)", obj1, obj2).fail(); in expectObjectsAreEqual()
47 if (!obj2.equals(obj1)) { in expectObjectsAreEqual()
48 mExpect.withMessage("2nd obj (%s) is not equal to 1st (%s)", obj2, obj1).fail(); in expectObjectsAreEqual()
50 int hashCode1 = obj1.hashCode(); in expectObjectsAreEqual()
56 hashCode1, obj1, hashCode2, obj2) in expectObjectsAreEqual()
69 public void expectObjectsAreNotEqual(Object obj1, @Nullable Object obj2) { in expectObjectsAreNotEqual() argument
70 Objects.requireNonNull(obj1, "1st arg cannot be null"); in expectObjectsAreNotEqual()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/customaudience/
DJoinCustomAudienceRequestTest.java30 JoinCustomAudienceRequest obj1 = in testJoinCustomAudienceRequestWithSameValuesAreEqual() local
37 assertThat(obj1).isEqualTo(obj2); in testJoinCustomAudienceRequestWithSameValuesAreEqual()
42 JoinCustomAudienceRequest obj1 = in testJoinCustomAudienceRequestWithDifferentValuesAreNotEqual() local
49 assertThat(obj1).isNotEqualTo(obj2); in testJoinCustomAudienceRequestWithDifferentValuesAreNotEqual()
54 JoinCustomAudienceRequest obj1 = in testEqualJoinCustomAudienceRequestHaveSameHashCodes() local
61 CommonFixture.assertHaveSameHashCode(obj1, obj2); in testEqualJoinCustomAudienceRequestHaveSameHashCodes()
66 JoinCustomAudienceRequest obj1 = in testNotEqualJoinCustomAudienceRequestHaveDifferentHashCodes() local
73 CommonFixture.assertDifferentHashCode(obj1, obj2); in testNotEqualJoinCustomAudienceRequestHaveDifferentHashCodes()
DLeaveCustomAudienceRequestTest.java30 LeaveCustomAudienceRequest obj1 = in testLeaveCustomAudienceRequestWithSameValuesAreEqual() local
37 assertThat(obj1).isEqualTo(obj2); in testLeaveCustomAudienceRequestWithSameValuesAreEqual()
42 LeaveCustomAudienceRequest obj1 = in testLeaveCustomAudienceRequestWithDifferentValuesAreNotEqual() local
49 assertThat(obj1).isNotEqualTo(obj2); in testLeaveCustomAudienceRequestWithDifferentValuesAreNotEqual()
54 LeaveCustomAudienceRequest obj1 = in testEqualLeaveCustomAudienceRequestHaveSameHashCodes() local
61 CommonFixture.assertHaveSameHashCode(obj1, obj2); in testEqualLeaveCustomAudienceRequestHaveSameHashCodes()
66 LeaveCustomAudienceRequest obj1 = in testNotEqualLeaveCustomAudienceRequestHaveDifferentHashCodes() local
76 CommonFixture.assertDifferentHashCode(obj1, obj2, obj3); in testNotEqualLeaveCustomAudienceRequestHaveDifferentHashCodes()
/packages/modules/AdServices/adservices/tests/unittest/service-core/protectedaudience/src/com/android/adservices/data/adselection/
DDBBuyerDecisionLogicTest.java48 DBBuyerDecisionLogic obj1 = in testBuyerDecisionLogicsWithSameValuesAreEqual() local
60 assertThat(obj1).isEqualTo(obj2); in testBuyerDecisionLogicsWithSameValuesAreEqual()
65 DBBuyerDecisionLogic obj1 = in testBuyerDecisionLogicsWithDifferentValuesAreNotEqual() local
77 assertThat(obj1).isNotEqualTo(obj2); in testBuyerDecisionLogicsWithDifferentValuesAreNotEqual()
82 DBBuyerDecisionLogic obj1 = in testEqualBuyerDecisionLogicObjectsHaveSameHashCode() local
93 CommonFixture.assertHaveSameHashCode(obj1, obj2); in testEqualBuyerDecisionLogicObjectsHaveSameHashCode()
98 DBBuyerDecisionLogic obj1 = in testNotEqualBuyerDecisionLogicObjectsHaveDifferentHashCode() local
114 CommonFixture.assertDifferentHashCode(obj1, obj2, obj3); in testNotEqualBuyerDecisionLogicObjectsHaveDifferentHashCode()
DCustomAudienceSignalsTest.java74 CustomAudienceSignals obj1 = in testEqualCustomAudienceSignalsHaveSameHashCode() local
85 CommonFixture.assertHaveSameHashCode(obj1, obj2); in testEqualCustomAudienceSignalsHaveSameHashCode()
90 CustomAudienceSignals obj1 = in testNotEqualCustomAudienceSignalsHaveDifferentHashCodes() local
101 CommonFixture.assertDifferentHashCode(obj1, obj2); in testNotEqualCustomAudienceSignalsHaveDifferentHashCodes()
DDBAdSelectionEntryTest.java133 DBAdSelectionEntry obj1 = in testEqualDBAdSelectionEntryObjectsHaveSameHashCode() local
159 CommonFixture.assertHaveSameHashCode(obj1, obj2); in testEqualDBAdSelectionEntryObjectsHaveSameHashCode()
164 DBAdSelectionEntry obj1 = in testNotEqualDBAdSelectionEntryObjectsHaveDifferentHashCodes() local
201 CommonFixture.assertDifferentHashCode(obj1, obj2, obj3); in testNotEqualDBAdSelectionEntryObjectsHaveDifferentHashCodes()
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/adselection/
DPersistAdSelectionResultResponseTest.java168 PersistAdSelectionResultResponse obj1 = in testPersistAdSelectionResultResponseWithSameValuesAreEqual() local
181 et.expectObjectsAreEqual(obj1, obj2); in testPersistAdSelectionResultResponseWithSameValuesAreEqual()
186 PersistAdSelectionResultResponse obj1 = in testPersistAdSelectionResultResponse_withWinningSellerWithSameValues_areEqual() local
201 et.expectObjectsAreEqual(obj1, obj2); in testPersistAdSelectionResultResponse_withWinningSellerWithSameValues_areEqual()
206 PersistAdSelectionResultResponse obj1 = in testPersistAdSelectionResultResponse_withComponentAdUrisWithSameValues_areEqual() local
221 et.expectObjectsAreEqual(obj1, obj2); in testPersistAdSelectionResultResponse_withComponentAdUrisWithSameValues_areEqual()
226 PersistAdSelectionResultResponse obj1 = in testPersistAdSelectionResultResponseWithDifferentValuesAreNotEqual() local
245 et.expectObjectsAreNotEqual(obj1, obj2); in testPersistAdSelectionResultResponseWithDifferentValuesAreNotEqual()
246 et.expectObjectsAreNotEqual(obj1, obj3); in testPersistAdSelectionResultResponseWithDifferentValuesAreNotEqual()
253 PersistAdSelectionResultResponse obj1 = in testPersistAdSelectionResultResponseWithDifferentValuesAreNotEqualForComponentAdUris() local
[all …]
DAdSelectionResponseTest.java147 AdSelectionResponse obj1 = in testAdSelectionResponseWithSameValuesAreEqual() local
160 et.expectObjectsAreEqual(obj1, obj2); in testAdSelectionResponseWithSameValuesAreEqual()
165 AdSelectionResponse obj1 = in testAdSelectionResponse_withWinningSeller_areEqual() local
180 et.expectObjectsAreEqual(obj1, obj2); in testAdSelectionResponse_withWinningSeller_areEqual()
185 AdSelectionResponse obj1 = in testAdSelectionResponseWithDifferentValuesAreNotEqual() local
205 et.expectObjectsAreNotEqual(obj1, obj2); in testAdSelectionResponseWithDifferentValuesAreNotEqual()
206 et.expectObjectsAreNotEqual(obj1, obj3); in testAdSelectionResponseWithDifferentValuesAreNotEqual()
212 AdSelectionResponse obj1 = in testAdSelectionResponse_withDifferentWinningSeller_areNotEqual() local
227 et.expectObjectsAreNotEqual(obj1, obj2); in testAdSelectionResponse_withDifferentWinningSeller_areNotEqual()
DGetAdSelectionDataInputTest.java116 GetAdSelectionDataInput obj1 = in testGetAdSelectionDataInputWithSameValuesAreEqual() local
133 et.expectObjectsAreEqual(obj1, obj2); in testGetAdSelectionDataInputWithSameValuesAreEqual()
138 GetAdSelectionDataInput obj1 = in testGetAdSelectionDataInputWithDifferentPackageNameValuesAreNotEqual() local
155 et.expectObjectsAreNotEqual(obj1, obj2); in testGetAdSelectionDataInputWithDifferentPackageNameValuesAreNotEqual()
160 GetAdSelectionDataInput obj1 = in testGetAdSelectionDataInputWithDifferentCoordinatorValuesAreNotEqual() local
175 et.expectObjectsAreNotEqual(obj1, obj2); in testGetAdSelectionDataInputWithDifferentCoordinatorValuesAreNotEqual()
192 GetAdSelectionDataInput obj1 = in testNotEqualGetAdSelectionDataInputsHaveDifferentHashCodes() local
217 CommonFixture.assertDifferentHashCode(obj1, obj2, obj3, obj4); in testNotEqualGetAdSelectionDataInputsHaveDifferentHashCodes()
DSignedContextualAdsTest.java173 SignedContextualAds obj1 = in testContextualAdsEqual() local
179 et.expectObjectsAreEqual(obj1, obj2); in testContextualAdsEqual()
184 SignedContextualAds obj1 = SignedContextualAdsFixture.aSignedContextualAds(); in testContextualAdsDifferent() local
195 et.expectObjectsAreNotEqual(obj1, obj2); in testContextualAdsDifferent()
196 et.expectObjectsAreNotEqual(obj1, obj3); in testContextualAdsDifferent()
202 SignedContextualAds obj1 = in testSignedContextualAdsDescribeContents() local
204 assertThat(obj1.describeContents()).isEqualTo(0); in testSignedContextualAdsDescribeContents()
DAdSelectionFromOutcomesInputTest.java101 AdSelectionFromOutcomesInput obj1 = createAdSelectionFromOutcomesInput(config); in testEqualInputs() local
105 et.expectObjectsAreEqual(obj1, obj2); in testEqualInputs()
119 AdSelectionFromOutcomesInput obj1 = createAdSelectionFromOutcomesInput(config1); in testNotEqualInputsHaveDifferentHashCode() local
124 et.expectObjectsAreNotEqual(obj1, obj2); in testNotEqualInputsHaveDifferentHashCode()
125 et.expectObjectsAreNotEqual(obj1, obj3); in testNotEqualInputsHaveDifferentHashCode()
DPersistAdSelectionResultInputTest.java118 PersistAdSelectionResultInput obj1 = in testPersistAdSelectionResultInputWithSameValuesAreEqual() local
135 et.expectObjectsAreEqual(obj1, obj2); in testPersistAdSelectionResultInputWithSameValuesAreEqual()
140 PersistAdSelectionResultInput obj1 = in testPersistAdSelectionResultInputWithDifferentValuesAreNotEqual() local
157 et.expectObjectsAreNotEqual(obj1, obj2); in testPersistAdSelectionResultInputWithDifferentValuesAreNotEqual()
175 PersistAdSelectionResultInput obj1 = in testNotEqualPersistAdSelectionResultInputsHaveDifferentHashCodes() local
204 CommonFixture.assertDifferentHashCode(obj1, obj2, obj3, obj4); in testNotEqualPersistAdSelectionResultInputsHaveDifferentHashCodes()
DGetAdSelectionDataResponseTest.java151 GetAdSelectionDataResponse obj1 = in testGetAdSelectionDataResponseWithSameValuesAreEqual() local
164 et.expectObjectsAreEqual(obj1, obj2); in testGetAdSelectionDataResponseWithSameValuesAreEqual()
169 GetAdSelectionDataResponse obj1 = in testGetAdSelectionDataResponseWithDifferentValuesAreNotEqual() local
188 et.expectObjectsAreNotEqual(obj1, obj2); in testGetAdSelectionDataResponseWithDifferentValuesAreNotEqual()
189 et.expectObjectsAreNotEqual(obj1, obj3); in testGetAdSelectionDataResponseWithDifferentValuesAreNotEqual()
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/
DAdSelectionOutcomeTest.java175 AdSelectionOutcome obj1 = in testAdSelectionOutcomeWithSameValuesAreEqual() local
195 et.expectObjectsAreEqual(obj1, obj2); in testAdSelectionOutcomeWithSameValuesAreEqual()
196 et.expectObjectsAreNotEqual(obj1, obj3); in testAdSelectionOutcomeWithSameValuesAreEqual()
202 AdSelectionOutcome obj1 = in testAdSelectionOutcomeWithComponentAdsSameValuesAreEqual() local
224 et.expectObjectsAreEqual(obj1, obj2); in testAdSelectionOutcomeWithComponentAdsSameValuesAreEqual()
225 et.expectObjectsAreNotEqual(obj1, obj3); in testAdSelectionOutcomeWithComponentAdsSameValuesAreEqual()
231 AdSelectionOutcome obj1 = in testAdSelectionOutcome_withWinningSellerAndSameValues_areEqual() local
253 et.expectObjectsAreEqual(obj1, obj2); in testAdSelectionOutcome_withWinningSellerAndSameValues_areEqual()
254 et.expectObjectsAreNotEqual(obj1, obj3); in testAdSelectionOutcome_withWinningSellerAndSameValues_areEqual()
DSignedContextualAdsTest.java175 SignedContextualAds obj1 = in testContextualAdsEqual() local
181 et.expectObjectsAreEqual(obj1, obj2); in testContextualAdsEqual()
186 SignedContextualAds obj1 = SignedContextualAdsFixture.aSignedContextualAds(); in testContextualAdsAreNotEqual() local
197 et.expectObjectsAreNotEqual(obj1, obj2); in testContextualAdsAreNotEqual()
199 et.expectObjectsAreNotEqual(obj1, obj3); in testContextualAdsAreNotEqual()
204 SignedContextualAds obj1 = in testSignedContextualAdsDescribeContents() local
206 assertThat(obj1.describeContents()).isEqualTo(0); in testSignedContextualAdsDescribeContents()
DAdSelectionFromOutcomesConfigTest.java112 AdSelectionFromOutcomesConfig obj1 = in testEqualInputsHaveSameHashCode() local
118 et.expectObjectsAreEqual(obj1, obj2); in testEqualInputsHaveSameHashCode()
126 et.expectObjectsAreNotEqual(obj1, obj3); in testEqualInputsHaveSameHashCode()
127 et.expectObjectsAreNotEqual(obj1, obj4); in testEqualInputsHaveSameHashCode()
DAdSelectionConfigTest.java195 AdSelectionConfig obj1 = AdSelectionConfigFixture.anAdSelectionConfig(); in testEqualConfigsHaveSameHashCode() local
199 et.expectObjectsAreEqual(obj1, obj2); in testEqualConfigsHaveSameHashCode()
204 AdSelectionConfig obj1 = AdSelectionConfigFixture.anAdSelectionConfig(); in testNotEqualConfigsHaveDifferentHashCode() local
212 et.expectObjectsAreNotEqual(obj1, obj2); in testNotEqualConfigsHaveDifferentHashCode()
214 et.expectObjectsAreNotEqual(obj1, obj3); in testNotEqualConfigsHaveDifferentHashCode()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DPersistableBundlable.java78 … private static boolean isPersistableBundleEquals(PersistableBundle obj1, PersistableBundle obj2) { in isPersistableBundleEquals() argument
79 if (obj1 == obj2) { in isPersistableBundleEquals()
82 if (obj1 == null || obj2 == null || obj1.size() != obj2.size()) { in isPersistableBundleEquals()
85 Set<String> keys = obj1.keySet(); in isPersistableBundleEquals()
87 Object val1 = obj1.get(key); in isPersistableBundleEquals()
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/
DInternetAddressesTest.cpp47 const T obj1; member
52 output << obj1 << " " << relation << " " << obj2; in toString()
61 EXPECT_TRUE(expectation.obj1 == expectation.obj2); in testGamutOfOperators()
62 EXPECT_TRUE(expectation.obj1 <= expectation.obj2); in testGamutOfOperators()
63 EXPECT_TRUE(expectation.obj1 >= expectation.obj2); in testGamutOfOperators()
64 EXPECT_FALSE(expectation.obj1 != expectation.obj2); in testGamutOfOperators()
65 EXPECT_FALSE(expectation.obj1 < expectation.obj2); in testGamutOfOperators()
66 EXPECT_FALSE(expectation.obj1 > expectation.obj2); in testGamutOfOperators()
70 EXPECT_TRUE(expectation.obj1 < expectation.obj2); in testGamutOfOperators()
71 EXPECT_TRUE(expectation.obj1 <= expectation.obj2); in testGamutOfOperators()
[all …]
DThreadUtilTest.cpp100 NoopRun* obj1 = new NoopRun(); in TEST() local
101 obj1->setExpectedName(""); in TEST()
114 threadLaunch(obj1); in TEST()
/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/
DEqualsTesterTest.java66 ObjectsWithSameHashCode obj1 = new ObjectsWithSameHashCode(); in testExpectObjectsAreEqual_notEqualButWithSameHashcode() local
69 mEt.expectObjectsAreEqual(obj1, obj2); in testExpectObjectsAreEqual_notEqualButWithSameHashcode()
102 ObjectsWithSameHashCode obj1 = new ObjectsWithSameHashCode(); in testExpectObjectsAreNotEqual_notEqualButWithSameHashcode() local
105 mEt.expectObjectsAreNotEqual(obj1, obj2); in testExpectObjectsAreNotEqual_notEqualButWithSameHashcode()
/packages/apps/SecureElement/src/com/android/se/security/gpac/
DPKG_REF_DO.java51 public static boolean equals(PKG_REF_DO obj1, PKG_REF_DO obj2) { in equals() argument
52 if (obj1 == null) { in equals()
55 return obj1.equals(obj2); in equals()
DHash_REF_DO.java70 public static boolean equals(Hash_REF_DO obj1, Hash_REF_DO obj2) { in equals() argument
71 if (obj1 == null) { in equals()
74 return obj1.equals(obj2); in equals()
DAID_REF_DO.java72 public static boolean equals(AID_REF_DO obj1, AID_REF_DO obj2) { in equals() argument
73 if (obj1 == null) { in equals()
76 return obj1.equals(obj2); in equals()
/packages/apps/Settings/src/com/android/settings/nfc/
DDefaultPaymentSettings.java123 public int compare(NfcPaymentCandidateInfo obj1, NfcPaymentCandidateInfo obj2) { in compare() argument
124 if (obj1.loadLabel() == obj2.loadLabel()) { in compare()
127 if (obj1.loadLabel() == null) { in compare()
133 return obj1.loadLabel().toString().compareTo(obj2.loadLabel().toString()); in compare()

12