/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/enrollment/ |
D | EnrollmentDataTest.java | 76 EnrollmentData enrollmentData = createEnrollmentData(); in testCreation() local 78 assertEquals(ENROLLMENT_ID, enrollmentData.getEnrollmentId()); in testCreation() 79 assertThat(enrollmentData.getEnrolledAPIs()).containsExactlyElementsIn(ENROLLED_API_ENUMS); in testCreation() 80 assertEquals(ENROLLED_API_NAMES, enrollmentData.getEnrolledAPIsString()); in testCreation() 81 assertThat(enrollmentData.getSdkNames()).containsExactlyElementsIn(SDK_NAMES); in testCreation() 82 assertThat(enrollmentData.getAttributionSourceRegistrationUrl()) in testCreation() 84 assertThat(enrollmentData.getAttributionTriggerRegistrationUrl()) in testCreation() 86 assertThat(enrollmentData.getAttributionReportingUrl()) in testCreation() 88 assertThat(enrollmentData.getRemarketingResponseBasedRegistrationUrl()) in testCreation() 90 assertEquals(ENCRYPTION_KEY_URL, enrollmentData.getEncryptionKeyUrl()); in testCreation() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/encryptionkey/ |
D | EncryptionKeyFetcher.java | 108 @NonNull EnrollmentData enrollmentData, in fetchEncryptionKeys() argument 112 String encryptionKeyUrl = constructEncryptionKeyUrl(enrollmentData); in fetchEncryptionKeys() 114 logEncryptionKeyFetchedStats(FetchStatus.NULL_ENDPOINT, enrollmentData, null); in fetchEncryptionKeys() 119 FetchStatus.INVALID_ENDPOINT, enrollmentData, encryptionKeyUrl); in fetchEncryptionKeys() 129 FetchStatus.INVALID_ENDPOINT, enrollmentData, encryptionKeyUrl); in fetchEncryptionKeys() 138 FetchStatus.IO_EXCEPTION, enrollmentData, encryptionKeyUrl); in fetchEncryptionKeys() 160 FetchStatus.KEY_NOT_MODIFIED, enrollmentData, encryptionKeyUrl); in fetchEncryptionKeys() 166 FetchStatus.BAD_REQUEST_EXCEPTION, enrollmentData, encryptionKeyUrl); in fetchEncryptionKeys() 170 getJsonResponse(urlConnection, enrollmentData, encryptionKeyUrl); in fetchEncryptionKeys() 174 return parseEncryptionKeyJSONResponse(enrollmentData, encryptionKeyUrl, jsonResponse); in fetchEncryptionKeys() [all …]
|
D | EncryptionKeyJobHandler.java | 52 for (EnrollmentData enrollmentData : enrollmentDataList) { in fetchAndUpdateEncryptionKeys() 55 enrollmentData.getEnrollmentId()); in fetchAndUpdateEncryptionKeys() 67 /* enrollmentData */ enrollmentData, in fetchAndUpdateEncryptionKeys() 94 EnrollmentData enrollmentData = in fetchAndUpdateEncryptionKeys() local 98 if (enrollmentData == null) { in fetchAndUpdateEncryptionKeys() 107 /* enrollmentData */ enrollmentData, in fetchAndUpdateEncryptionKeys()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/util/ |
D | Enrollment.java | 63 EnrollmentData enrollmentData = in getValidEnrollmentId() local 65 if (enrollmentData == null) { in getValidEnrollmentId() 73 if (flags.isEnrollmentBlocklisted(enrollmentData.getEnrollmentId())) { in getValidEnrollmentId() 78 registrationUri, enrollmentData.getEnrollmentId()); in getValidEnrollmentId() 82 packageName, enrollmentData.getEnrollmentId())) { in getValidEnrollmentId() 88 registrationUri, enrollmentData.getEnrollmentId()); in getValidEnrollmentId() 91 return Optional.of(enrollmentData.getEnrollmentId()); in getValidEnrollmentId()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/enrollment/ |
D | EnrollmentData.java | 67 EnrollmentData enrollmentData = (EnrollmentData) obj; in equals() local 68 return Objects.equals(mEnrollmentId, enrollmentData.mEnrollmentId) in equals() 69 && Objects.equals(mEnrolledSite, enrollmentData.mEnrolledSite) in equals() 70 && Objects.equals(mEnrolledAPIsString, enrollmentData.mEnrolledAPIsString) in equals() 71 && Objects.equals(mEnrolledAPIs, enrollmentData.mEnrolledAPIs) in equals() 72 && Objects.equals(mSdkNames, enrollmentData.mSdkNames) in equals() 75 enrollmentData.mAttributionSourceRegistrationUrl) in equals() 78 enrollmentData.mAttributionTriggerRegistrationUrl) in equals() 79 && Objects.equals(mAttributionReportingUrl, enrollmentData.mAttributionReportingUrl) in equals() 82 enrollmentData.mRemarketingResponseBasedRegistrationUrl) in equals() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/encryptionkey/ |
D | EncryptionKeyFetcherTest.java | 200 EnrollmentData enrollmentData = constructEnrollmentData().setEncryptionKeyUrl(SITE).build(); in testFirstTimeFetchEncryptionKeysSucceed() local 202 mSpyFetcher.fetchEncryptionKeys(null, enrollmentData, true); in testFirstTimeFetchEncryptionKeysSucceed() 224 EnrollmentData enrollmentData = constructEnrollmentData().setEncryptionKeyUrl(null).build(); in testFirstTimeFetchEncryptionKeysNullEncryptionKeyUrl() local 226 mSpyFetcher.fetchEncryptionKeys(null, enrollmentData, true); in testFirstTimeFetchEncryptionKeysNullEncryptionKeyUrl() 246 EnrollmentData enrollmentData = in testFirstTimeFetchEncryptionKeysEmptyEncryptionKeyUrl() local 249 mSpyFetcher.fetchEncryptionKeys(null, enrollmentData, true); in testFirstTimeFetchEncryptionKeysEmptyEncryptionKeyUrl() 269 EnrollmentData enrollmentData = in testFirstTimeFetchEncryptionKeysSingleWhiteSpaceEncryptionKeyUrl() local 272 mSpyFetcher.fetchEncryptionKeys(null, enrollmentData, true); in testFirstTimeFetchEncryptionKeysSingleWhiteSpaceEncryptionKeyUrl() 292 EnrollmentData enrollmentData = constructEnrollmentData().setEncryptionKeyUrl(SITE).build(); in testFirstTimeFetchEncryptionKeysBadConnection() local 294 mSpyFetcher.fetchEncryptionKeys(null, enrollmentData, true); in testFirstTimeFetchEncryptionKeysBadConnection() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/ |
D | FledgeAuthorizationFilter.java | 230 EnrollmentData enrollmentData = getEnrollmentData(adTechIdentifier, apiType); in assertAdTechAllowed() local 232 if (enrollmentData == null) { in assertAdTechAllowed() 253 if (!isAllowedAccess(appPackageName, apiType, enrollmentData)) { in assertAdTechAllowed() 274 if (FlagsFactory.getFlags().isEnrollmentBlocklisted(enrollmentData.getEnrollmentId())) { in assertAdTechAllowed() 337 EnrollmentData enrollmentData) { in isAllowedAccess() argument 340 appPackageName, enrollmentData.getEnrollmentId()); in isAllowedAccess() 343 appPackageName, enrollmentData.getEnrollmentId()); in isAllowedAccess() 346 appPackageName, enrollmentData.getEnrollmentId()); in isAllowedAccess() 406 EnrollmentData enrollmentData = enrollmentResult.second; in getAndAssertAdTechFromUriAllowed() local 408 boolean isAllowedAccess = isAllowedAccess(appPackageName, apiType, enrollmentData); in getAndAssertAdTechFromUriAllowed() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/signature/ |
D | ProtectedAudienceSignatureManager.java | 161 EnrollmentData enrollmentData = in fetchPublicKeyForAdTech() local 164 if (enrollmentData == null || enrollmentData.getEnrollmentId() == null) { in fetchPublicKeyForAdTech() 171 sLogger.v("Fetching signature keys for %s", enrollmentData.getEnrollmentId()); in fetchPublicKeyForAdTech() 174 enrollmentData.getEnrollmentId(), EncryptionKey.KeyType.SIGNING); in fetchPublicKeyForAdTech() 266 EnrollmentData enrollmentData = in resolveEnrollmentIdFromAdTechIdentifier() local 268 if (Objects.isNull(enrollmentData) || Objects.isNull(enrollmentData.getEnrollmentId())) { in resolveEnrollmentIdFromAdTechIdentifier() 271 return enrollmentData.getEnrollmentId(); in resolveEnrollmentIdFromAdTechIdentifier()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/download/ |
D | EnrollmentDataDownloadManager.java | 216 for (EnrollmentData enrollmentData : enrollmentDataList) { in fetchEncryptionKeysForNewEnrollment() 219 enrollmentData.getEnrollmentId()); in fetchEncryptionKeysForNewEnrollment() 223 mEncryptionKeyFetcher.fetchEncryptionKeys(null, enrollmentData, true); in fetchEncryptionKeysForNewEnrollment() 255 EnrollmentData enrollmentData = in processDownloadedFile() local 279 newEnrollments.add(enrollmentData); in processDownloadedFile() 291 for (EnrollmentData enrollmentData : newEnrollments) { in processDownloadedFile() 292 enrollmentDao.insert(enrollmentData); in processDownloadedFile() 321 EnrollmentData enrollmentData = in processDownloadedProtoFile() local 330 newEnrollments.add(enrollmentData); in processDownloadedProtoFile() 340 for (EnrollmentData enrollmentData : newEnrollments) { in processDownloadedProtoFile() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/enrollment/ |
D | EnrollmentDao.java | 666 EnrollmentData enrollmentData = in getEnrollmentDataForFledgeByMatchingAdTechIdentifier() local 669 return getEnrollmentDataWithMatchingAdTechIdentifier(enrollmentData); in getEnrollmentDataForFledgeByMatchingAdTechIdentifier() 884 EnrollmentData enrollmentData = in getEnrollmentDataForPASByMatchingAdTechIdentifier() local 888 return getEnrollmentDataWithMatchingAdTechIdentifier(enrollmentData); in getEnrollmentDataForPASByMatchingAdTechIdentifier() 1225 public boolean insert(EnrollmentData enrollmentData) { in insert() argument 1241 insertToDb(enrollmentData, db); in insert() 1256 private void insertToDb(EnrollmentData enrollmentData, SQLiteDatabase db) throws SQLException { in insertToDb() argument 1260 enrollmentData.getEnrollmentId()); in insertToDb() 1264 enrollmentData.getEnrolledAPIsString()); in insertToDb() 1267 String.join(" ", enrollmentData.getSdkNames())); in insertToDb() [all …]
|
D | IEnrollmentDao.java | 145 boolean insert(EnrollmentData enrollmentData); in insert() argument
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/ |
D | EncryptionManager.java | 122 EnrollmentData enrollmentData = mEnrollmentDao.getEnrollmentDataFromSdkName(sdkName); in fetchPublicKeyFor() local 123 if (enrollmentData != null && enrollmentData.getEnrollmentId() != null) { in fetchPublicKeyFor() 124 sLogger.v("Fetching EncryptionKeys for %s", enrollmentData.getEnrollmentId()); in fetchPublicKeyFor() 127 enrollmentData.getEnrollmentId(), EncryptionKey.KeyType.ENCRYPTION); in fetchPublicKeyFor()
|
D | TopicsServiceImpl.java | 362 EnrollmentData enrollmentData = in canCallerInvokeTopicsService() local 367 if (enrollmentData == null) { in canCallerInvokeTopicsService() 371 } else if (enrollmentData.getEnrollmentId() == null) { in canCallerInvokeTopicsService() 379 enrollmentData.getEnrollmentId())) { in canCallerInvokeTopicsService() 383 } else if (mFlags.isEnrollmentBlocklisted(enrollmentData.getEnrollmentId())) { in canCallerInvokeTopicsService()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/shared/migration/ |
D | SharedDbMigratorV4Test.java | 107 ContentValues enrollmentData = in createFakeDataV3() local 109 enrollmentRows.add(enrollmentData); in createFakeDataV3() 119 ContentValues enrollmentData = in createFakeDataV4() local 121 enrollmentRows.add(enrollmentData); in createFakeDataV4()
|
D | SharedDbMigratorV2Test.java | 83 ContentValues enrollmentData = in createFakeDataV1() local 85 enrollmentRows.add(enrollmentData); in createFakeDataV1()
|
D | SharedDbMigratorV3Test.java | 88 ContentValues enrollmentData = in createFakeDataV2() local 90 enrollmentRows.add(enrollmentData); in createFakeDataV2()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/ |
D | E2EMockTest.java | 739 EnrollmentData enrollmentData = mEnrollmentDao.getEnrollmentData(enrollmentId); in updateEnrollment() local 740 if (enrollmentData != null) { in updateEnrollment() 743 new HashSet<>(enrollmentData.getAttributionSourceRegistrationUrl()); in updateEnrollment() 745 enrollmentData.getAttributionTriggerRegistrationUrl()); in updateEnrollment() 757 EnrollmentData enrollmentData = new EnrollmentData.Builder() in insertEnrollment() local 763 Assert.assertTrue(mEnrollmentDao.insert(enrollmentData)); in insertEnrollment()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/enrollment/ |
D | EnrollmentDaoTest.java | 470 for (EnrollmentData enrollmentData : PreEnrolledAdTechForTest.getList()) { in initEnrollmentDao_ForEnrollmentSeedFlagOn_PerformsSeed() 471 EnrollmentData e = enrollmentDao.getEnrollmentData(enrollmentData.getEnrollmentId()); in initEnrollmentDao_ForEnrollmentSeedFlagOn_PerformsSeed() 472 assertEquals(enrollmentData, e); in initEnrollmentDao_ForEnrollmentSeedFlagOn_PerformsSeed() 480 for (EnrollmentData enrollmentData : PreEnrolledAdTechForTest.getList()) { in initEnrollmentDao_ForEnrollmentSeedFlagOff_SkipsSeed() 481 EnrollmentData e = mEnrollmentDao.getEnrollmentData(enrollmentData.getEnrollmentId()); in initEnrollmentDao_ForEnrollmentSeedFlagOff_SkipsSeed() 1088 EnrollmentData enrollmentData = in getEnrollmentDataFromMeasurementUrl_ForSiteMatchAndInvalidPublicSuffix_isNoMatch() local 1101 mEnrollmentDao.insert(enrollmentData); in getEnrollmentDataFromMeasurementUrl_ForSiteMatchAndInvalidPublicSuffix_isNoMatch() 1426 EnrollmentData enrollmentData = mock(EnrollmentData.class); in testInsert_throwsSQLException_logsCEL() local 1435 assertThat(mEnrollmentDao.insert(enrollmentData)).isFalse(); in testInsert_throwsSQLException_logsCEL() 1686 EnrollmentData enrollmentData = in getEnrollmentDataForAPIByUrl_enrollmentApiBasedSchema() local [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/shared/ |
D | SharedDbHelper.java | 285 EnrollmentData enrollmentData = in tryGetSiteFromEnrollmentRow() local 287 Uri uri = Uri.parse(enrollmentData.getAttributionReportingUrl().get(0)); in tryGetSiteFromEnrollmentRow()
|