Home
last modified time | relevance | path

Searched refs:enrollmentId (Results 1 – 25 of 52) sorted by relevance

123

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DAppManifestConfigHelper.java71 public static boolean isAllowedAttributionAccess(String appPackageName, String enrollmentId) { in isAllowedAttributionAccess() argument
76 enrollmentId, in isAllowedAttributionAccess()
77 config -> config.isAllowedAttributionAccess(enrollmentId)); in isAllowedAttributionAccess()
90 String appPackageName, String enrollmentId) { in isAllowedCustomAudiencesAccess() argument
95 enrollmentId, in isAllowedCustomAudiencesAccess()
96 config -> config.isAllowedCustomAudiencesAccess(enrollmentId)); in isAllowedCustomAudiencesAccess()
109 String appPackageName, String enrollmentId) { in isAllowedProtectedSignalsAccess() argument
114 enrollmentId, in isAllowedProtectedSignalsAccess()
115 config -> config.isAllowedProtectedSignalsAccess(enrollmentId)); in isAllowedProtectedSignalsAccess()
127 public static boolean isAllowedAdSelectionAccess(String appPackageName, String enrollmentId) { in isAllowedAdSelectionAccess() argument
[all …]
DAppManifestConfig.java110 public @Result int isAllowedAttributionAccess(@NonNull String enrollmentId) { in isAllowedAttributionAccess() argument
111 return isAllowedAccess(TAG_ATTRIBUTION, mAttributionConfig, enrollmentId); in isAllowedAttributionAccess()
133 public @Result int isAllowedCustomAudiencesAccess(@NonNull String enrollmentId) { in isAllowedCustomAudiencesAccess() argument
134 return isAllowedAccess(TAG_CUSTOM_AUDIENCES, mCustomAudiencesConfig, enrollmentId); in isAllowedCustomAudiencesAccess()
156 public @Result int isAllowedProtectedSignalsAccess(@NonNull String enrollmentId) { in isAllowedProtectedSignalsAccess() argument
157 return isAllowedAccess(TAG_PROTECTED_SIGNALS, mProtectedSignalsConfig, enrollmentId); in isAllowedProtectedSignalsAccess()
179 public @Result int isAllowedAdSelectionAccess(@NonNull String enrollmentId) { in isAllowedAdSelectionAccess() argument
180 return isAllowedAccess(TAG_AD_SELECTION, mAdSelectionConfig, enrollmentId); in isAllowedAdSelectionAccess()
201 public @Result int isAllowedTopicsAccess(@NonNull String enrollmentId) { in isAllowedTopicsAccess() argument
202 return isAllowedAccess(TAG_TOPICS, mTopicsConfig, enrollmentId); in isAllowedTopicsAccess()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/migration/
DMeasurementDbMigratorV15Test.java185 private void populateEnrollment(String enrollmentId, String attributionUrl) { in populateEnrollment() argument
189 values.put(EnrollmentTables.EnrollmentDataContract.ENROLLMENT_ID, enrollmentId); in populateEnrollment()
221 private ContentValues buildSourceV14(String sourceId, String enrollmentId) { in buildSourceV14() argument
226 if (enrollmentId != null) { in buildSourceV14()
227 source.put(MeasurementTables.SourceContract.ENROLLMENT_ID, enrollmentId); in buildSourceV14()
232 private ContentValues buildTriggerV14(String triggerId, String enrollmentId) { in buildTriggerV14() argument
237 if (enrollmentId != null) { in buildTriggerV14()
238 trigger.put(MeasurementTables.TriggerContract.ENROLLMENT_ID, enrollmentId); in buildTriggerV14()
243 private ContentValues buildDebugReportV14(String reportId, String enrollmentId) { in buildDebugReportV14() argument
248 if (enrollmentId != null) { in buildDebugReportV14()
[all …]
DMeasurementDbMigratorV14Test.java518 private void populateEnrollment(String enrollmentId, String attributionUrl) { in populateEnrollment() argument
522 values.put(EnrollmentTables.EnrollmentDataContract.ENROLLMENT_ID, enrollmentId); in populateEnrollment()
573 private ContentValues buildSourceV13(String sourceId, String enrollmentId) { in buildSourceV13() argument
578 if (enrollmentId != null) { in buildSourceV13()
579 source.put(MeasurementTables.SourceContract.ENROLLMENT_ID, enrollmentId); in buildSourceV13()
584 private ContentValues buildTriggerV13(String triggerId, String enrollmentId) { in buildTriggerV13() argument
589 if (enrollmentId != null) { in buildTriggerV13()
590 trigger.put(MeasurementTables.TriggerContract.ENROLLMENT_ID, enrollmentId); in buildTriggerV13()
595 private ContentValues buildEventReportV13(String reportId, String enrollmentId) { in buildEventReportV13() argument
600 if (enrollmentId != null) { in buildEventReportV13()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/encryptionkey/
DEncryptionKeyDao.java76 public List<EncryptionKey> getEncryptionKeyFromEnrollmentId(String enrollmentId) in getEncryptionKeyFromEnrollmentId() argument
86 new String[] {enrollmentId}, // The values for the WHERE clause in getEncryptionKeyFromEnrollmentId() argument
92 sLogger.i("No EncryptionKey in DB with enrollment id: %s.", enrollmentId); in getEncryptionKeyFromEnrollmentId()
96 sLogger.i("Found %s keys for enrollment id %s.", cursor.getCount(), enrollmentId); in getEncryptionKeyFromEnrollmentId()
106 sLogger.e(e, "Failed to find EncryptionKey in DB with enrollment id: " + enrollmentId); in getEncryptionKeyFromEnrollmentId()
117 String enrollmentId, EncryptionKey.KeyType keyType) throws SQLException { in getEncryptionKeyFromEnrollmentIdAndKeyType() argument
129 new String[] {enrollmentId, keyType.toString()}, in getEncryptionKeyFromEnrollmentIdAndKeyType() argument
135 sLogger.i("No EncryptionKey in DB with enrollment id: %s.", enrollmentId); in getEncryptionKeyFromEnrollmentIdAndKeyType()
141 cursor.getCount(), keyType, enrollmentId); in getEncryptionKeyFromEnrollmentIdAndKeyType()
151 sLogger.e(e, "Failed to find EncryptionKey in DB with enrollment id:" + enrollmentId); in getEncryptionKeyFromEnrollmentIdAndKeyType()
[all …]
DIEncryptionKeyDao.java35 List<EncryptionKey> getEncryptionKeyFromEnrollmentId(String enrollmentId); in getEncryptionKeyFromEnrollmentId() argument
46 String enrollmentId, EncryptionKey.KeyType keyType); in getEncryptionKeyFromEnrollmentIdAndKeyType() argument
57 String enrollmentId, int keyCommitmentId); in getEncryptionKeyFromEnrollmentIdAndKeyCommitmentId() argument
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/migration/
DMeasurementDbMigratorV15.java97 String enrollmentId = in getEnrollmentToReportingOrigin() local
114 uri -> enrollmentIdToReportingUrl.putIfAbsent(enrollmentId, uri)); in getEnrollmentToReportingOrigin()
140 String enrollmentId = cursor.getString(cursor.getColumnIndex(ENROLLMENT_ID_COLUMN)); in insertRegistrationOriginOrDelete() local
141 Uri reportingUri = enrollmentIdToReportingUrl.get(enrollmentId); in insertRegistrationOriginOrDelete()
145 .d("Reporting origin not found for enrollment id - " + enrollmentId); in insertRegistrationOriginOrDelete()
DMeasurementDbMigratorV14.java120 String enrollmentId = in getEnrollmentToReportingOrigin() local
137 uri -> enrollmentIdToReportingUrl.putIfAbsent(enrollmentId, uri)); in getEnrollmentToReportingOrigin()
164 String enrollmentId = cursor.getString(cursor.getColumnIndex(ENROLLMENT_ID_COLUMN)); in insertRegistrationOriginOrDelete() local
165 Uri reportingUri = enrollmentIdToReportingUrl.get(enrollmentId); in insertRegistrationOriginOrDelete()
169 .d("Reporting origin not found for enrollment id - " + enrollmentId); in insertRegistrationOriginOrDelete()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/reporting/
DDebugKeyAccessor.java369 @NonNull String enrollmentId) { in arePlatformAndDebugAdIdEqual() argument
372 AdIdEncryption.encryptAdIdAndEnrollmentSha256(platformAdId, enrollmentId); in arePlatformAndDebugAdIdEqual()
412 String enrollmentId, in logPlatformAdIdAndDebugAdIdMatch() argument
424 .setAdTechEnrollmentId(enrollmentId) in logPlatformAdIdAndDebugAdIdMatch()
427 .setNumUniqueAdIds(getNumUniqueAdIdsUsed(enrollmentId)) in logPlatformAdIdAndDebugAdIdMatch()
465 private boolean isEnrollmentIdWithinUniqueAdIdLimit(String enrollmentId) in isEnrollmentIdWithinUniqueAdIdLimit() argument
467 long numUnique = mMeasurementDao.countDistinctDebugAdIdsUsedByEnrollment(enrollmentId); in isEnrollmentIdWithinUniqueAdIdLimit()
471 private long getNumUniqueAdIdsUsed(String enrollmentId) throws DatastoreException { in getNumUniqueAdIdsUsed() argument
472 return mMeasurementDao.countDistinctDebugAdIdsUsedByEnrollment(enrollmentId); in getNumUniqueAdIdsUsed()
DDebugReport.java43 @NonNull String enrollmentId, in DebugReport() argument
51 mEnrollmentId = enrollmentId; in DebugReport()
175 public Builder setEnrollmentId(String enrollmentId) { in setEnrollmentId() argument
176 mEnrollmentId = enrollmentId; in setEnrollmentId()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/shell/common/
DIsAllowedCustomAudiencesAccessCommand.java52 String enrollmentId = args[2]; in run() local
55 AppManifestConfigHelper.isAllowedCustomAudiencesAccess(pkgName, enrollmentId); in run()
60 pkgName, enrollmentId, isValid)); in run()
DIsAllowedAttributionAccessCommand.java52 String enrollmentId = args[2]; in run() local
54 boolean isValid = AppManifestConfigHelper.isAllowedAttributionAccess(pkgName, enrollmentId); in run()
58 "isAllowedAttributionAccess(%s, %s: %b)", pkgName, enrollmentId, isValid)); in run()
DIsAllowedAdSelectionAccessCommand.java53 String enrollmentId = args[2]; in run() local
55 boolean isValid = AppManifestConfigHelper.isAllowedAdSelectionAccess(pkgName, enrollmentId); in run()
59 "isAllowedAdSelectionAccess(%s, %s: %b)", pkgName, enrollmentId, isValid)); in run()
DIsAllowedProtectedSignalsAccessCommand.java53 String enrollmentId = args[2]; in run() local
56 AppManifestConfigHelper.isAllowedProtectedSignalsAccess(pkgName, enrollmentId); in run()
61 pkgName, enrollmentId, isValid)); in run()
DIsAllowedTopicsAccessCommand.java51 String enrollmentId = args[2]; in run() local
61 usesSdkSandbox, pkgName, enrollmentId); in run()
66 pkgName, usesSdkSandbox, enrollmentId, isValid)); in run()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/
DIMeasurementDao.java188 String enrollmentId, in countDistinctDestPerPubXEnrollmentInUnexpiredSourceInWindow() argument
202 String enrollmentId, in countDistinctDestinationsPerPubXEnrollmentInUnexpiredSource() argument
229 String enrollmentId, in countSourcesPerPublisherXEnrollmentExcludingRegOrigin() argument
726 void insertIgnoredSourceForEnrollment(@NonNull String sourceId, @NonNull String enrollmentId) in insertIgnoredSourceForEnrollment() argument
750 long countDistinctDebugAdIdsUsedByEnrollment(@NonNull String enrollmentId) in countDistinctDebugAdIdsUsedByEnrollment() argument
797 String enrollmentId, in fetchSourceIdsForLruDestinationXEnrollmentXPublisher() argument
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/stats/
DSignatureVerificationLogger.java42 void setFailedSignatureBuyerEnrollmentId(String enrollmentId); in setFailedSignatureBuyerEnrollmentId() argument
45 void setFailedSignatureSellerEnrollmentId(String enrollmentId); in setFailedSignatureSellerEnrollmentId() argument
DSignatureVerificationLoggerImpl.java194 public void setFailedSignatureBuyerEnrollmentId(String enrollmentId) { in setFailedSignatureBuyerEnrollmentId() argument
195 mFailedSignatureBuyerEnrollmentId = enrollmentId; in setFailedSignatureBuyerEnrollmentId()
199 public void setFailedSignatureSellerEnrollmentId(String enrollmentId) { in setFailedSignatureSellerEnrollmentId() argument
200 mFailedSignatureSellerEnrollmentId = enrollmentId; in setFailedSignatureSellerEnrollmentId()
DSignatureVerificationLoggerNoOp.java43 public void setFailedSignatureBuyerEnrollmentId(String enrollmentId) {} in setFailedSignatureBuyerEnrollmentId() argument
46 public void setFailedSignatureSellerEnrollmentId(String enrollmentId) {} in setFailedSignatureSellerEnrollmentId() argument
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/util/
DAdIdEncryption.java41 @Nullable String adIdValue, @NonNull String enrollmentId) { in encryptAdIdAndEnrollmentSha256() argument
49 String original = adIdValue + enrollmentId; in encryptAdIdAndEnrollmentSha256()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/download/
DEnrollmentDataDownloadManager.java253 String enrollmentId = data[0]; in processDownloadedFile() local
254 LogUtil.d("Adding enrollmentId - %s", enrollmentId); in processDownloadedFile()
257 .setEnrollmentId(enrollmentId) in processDownloadedFile()
319 String enrollmentId = rbEnrollment.getEnrollmentId(); in processDownloadedProtoFile() local
320 LogUtil.d("Adding enrollmentId - %s", enrollmentId); in processDownloadedProtoFile()
323 .setEnrollmentId(enrollmentId) in processDownloadedProtoFile()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/enrollment/
DIEnrollmentDao.java40 EnrollmentData getEnrollmentData(String enrollmentId); in getEnrollmentData() argument
153 boolean delete(String enrollmentId); in delete() argument
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/registration/
DAsyncTriggerFetcher.java118 String enrollmentId, in parseTrigger() argument
125 builder.setEnrollmentId(enrollmentId); in parseTrigger()
294 && !blockedEnrollmentsString.contains(enrollmentId) in parseTrigger()
303 if (allowedEnrollmentsString.contains(enrollmentId) in parseTrigger()
371 enrollmentId, in parseTrigger()
472 Optional<String> enrollmentId = Optional.empty(); in fetchTrigger() local
480 enrollmentId = getEnrollmentId(asyncRegistration); in fetchTrigger()
487 asyncRegistration, odpHeader.get(), enrollmentId.isPresent()); in fetchTrigger()
533 if (enrollmentId.isEmpty()) { in fetchTrigger()
544 return parseTrigger(asyncRegistration, enrollmentId.get(), headers, asyncFetchStatus); in fetchTrigger()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/shared/migration/
DSharedDbMigratorV4.java68 String enrollmentId = in migrateEnrolledAPIsEnrolledSite() local
90 new String[] {enrollmentId}); in migrateEnrolledAPIsEnrolledSite()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DE2EInteropMockTest.java251 String enrollmentId = in insertSourceOrAssertUnparsable() local
276 .parseSource(asyncRegistration, enrollmentId, headers, status); in insertSourceOrAssertUnparsable()
297 String enrollmentId = in insertTriggerOrAssertUnparsable() local
319 .parseTrigger(asyncRegistration, enrollmentId, headers, status); in insertTriggerOrAssertUnparsable()

123