/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/enrollment/ |
D | EnrollmentDaoTest.java | 83 private EnrollmentDao mEnrollmentDao; field in EnrollmentDaoTest 263 mEnrollmentDao = in setup() 272 mEnrollmentDao.unSeed(); in setup() 323 mEnrollmentDao.insert(ENROLLMENT_DATA1); in testDelete() 331 EnrollmentData e = mEnrollmentDao.getEnrollmentData("1"); in testDelete() 334 mEnrollmentDao.delete("1"); in testDelete() 342 EnrollmentData e2 = mEnrollmentDao.getEnrollmentData("1"); in testDelete() 349 mEnrollmentDao.insert(ENROLLMENT_DATA1); in testDeleteAll() 364 assertTrue(mEnrollmentDao.deleteAll()); in testDeleteAll() 381 assertFalse(mEnrollmentDao.isSeeded()); in testDeleteAll() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/util/ |
D | EnrollmentTest.java | 55 @Mock private EnrollmentDao mEnrollmentDao; field in EnrollmentTest 60 when(mEnrollmentDao.getEnrollmentDataFromMeasurementUrl(eq(REGISTRATION_URI))) in testMaybeGetEnrollmentId_success() 68 REGISTRATION_URI, PACKAGE_NAME, mEnrollmentDao, sContext, mFlags)); in testMaybeGetEnrollmentId_success() 74 when(mEnrollmentDao.getEnrollmentDataFromMeasurementUrl(eq(REGISTRATION_URI))) in testMaybeGetEnrollmentId_enrollmentDataNull() 82 REGISTRATION_URI, PACKAGE_NAME, mEnrollmentDao, sContext, mFlags)); in testMaybeGetEnrollmentId_enrollmentDataNull() 87 when(mEnrollmentDao.getEnrollmentDataFromMeasurementUrl(eq(REGISTRATION_URI))) in testMaybeGetEnrollmentId_blockedByEnrollmentBlockList() 96 REGISTRATION_URI, PACKAGE_NAME, mEnrollmentDao, sContext, mFlags)); in testMaybeGetEnrollmentId_blockedByEnrollmentBlockList() 101 when(mEnrollmentDao.getEnrollmentDataFromMeasurementUrl(eq(REGISTRATION_URI))) in testMaybeGetEnrollmentId_packageManifestCheckFailure() 110 REGISTRATION_URI, PACKAGE_NAME, mEnrollmentDao, sContext, mFlags)); in testMaybeGetEnrollmentId_packageManifestCheckFailure() 125 Uri.parse(localhost), PACKAGE_NAME, mEnrollmentDao, sContext, mFlags)); in testMaybeGetEnrollmentId_localhost_success() local [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/ |
D | FledgeAuthorizationFilter.java | 60 @NonNull private final EnrollmentDao mEnrollmentDao; field in FledgeAuthorizationFilter 83 mEnrollmentDao = enrollmentDao; in FledgeAuthorizationFilter() 229 int enrollmentRecordsCount = mEnrollmentDao.getEnrollmentRecordCountForLogging(); in assertAdTechAllowed() 297 return mEnrollmentDao.getEnrollmentDataForFledgeByAdTechIdentifier(adTechIdentifier); in getEnrollmentData() 299 return mEnrollmentDao.getEnrollmentDataForPASByAdTechIdentifier(adTechIdentifier); in getEnrollmentData() 302 mEnrollmentDao.getEnrollmentDataForFledgeByAdTechIdentifier(adTechIdentifier); in getEnrollmentData() 304 return mEnrollmentDao.getEnrollmentDataForPASByAdTechIdentifier(adTechIdentifier); in getEnrollmentData() 315 return mEnrollmentDao.getEnrollmentDataForFledgeByMatchingAdTechIdentifier( in getAdTechIdentifierEnrollmentDataPair() 318 return mEnrollmentDao.getEnrollmentDataForPASByMatchingAdTechIdentifier(uriForAdTech); in getAdTechIdentifierEnrollmentDataPair() 321 mEnrollmentDao.getEnrollmentDataForFledgeByMatchingAdTechIdentifier( in getAdTechIdentifierEnrollmentDataPair() [all …]
|
D | FledgeMaintenanceTasksWorker.java | 53 @NonNull private final EnrollmentDao mEnrollmentDao; field in FledgeMaintenanceTasksWorker 85 mEnrollmentDao = enrollmentDao; in FledgeMaintenanceTasksWorker() 98 mEnrollmentDao = EnrollmentDao.getInstance(); in FledgeMaintenanceTasksWorker() 213 mFrequencyCapDao.deleteAllDisallowedBuyerHistogramData(mEnrollmentDao); in clearInvalidFrequencyCapHistogramData()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/encryptionkey/ |
D | EncryptionKeyJobHandlerTest.java | 59 @Mock private EnrollmentDao mEnrollmentDao; field in EncryptionKeyJobHandlerTest 159 mEncryptionKeyDao, mEnrollmentDao, mEncryptionKeyFetcher); in setUp() 172 when(mEnrollmentDao.getAllEnrollmentData()).thenReturn(List.of(ENROLLMENT_DATA)); in testNoEncryptionKey_fetchEncryptionKeys() 188 when(mEnrollmentDao.getEnrollmentData(any())).thenReturn(null); in testHasEncryptionKey_noEnrollmentForEncryptionKey_deleteEncryptionKey() 198 when(mEnrollmentDao.getEnrollmentData(any())).thenReturn(ENROLLMENT_DATA); in testHasEncryptionKey_dontUpdateNewKey() 213 when(mEnrollmentDao.getEnrollmentData(any())).thenReturn(ENROLLMENT_DATA); in testHasEncryptionKey_updateNewEncryptionKey() 229 when(mEnrollmentDao.getEnrollmentData(any())).thenReturn(ENROLLMENT_DATA); in testHasEncryptionKey_updateNewSigningKey() 246 when(mEnrollmentDao.getEnrollmentData(any())).thenReturn(ENROLLMENT_DATA); in testHasEncryptionKey_updateBothNewEncryptionAndSigningKey() 263 when(mEnrollmentDao.getAllEnrollmentData()).thenReturn(List.of(ENROLLMENT_DATA)); in testHasEncryptionKey_insertEncryptionKeyForPreviouslyNotFetchedEnrollment() 264 when(mEnrollmentDao.getEnrollmentData(ENROLLMENT_DATA.getEnrollmentId())) in testHasEncryptionKey_insertEncryptionKeyForPreviouslyNotFetchedEnrollment() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/ |
D | EncryptionManagerTest.java | 119 @Mock private EnrollmentDao mEnrollmentDao; field in EncryptionManagerTest 130 new HpkeEncrypter(), mEnrollmentDao, mEncryptionKeyDao, mFlags); in setup() 139 when(mEnrollmentDao.getEnrollmentDataFromSdkName(SDK_NAME)).thenReturn(ENROLLMENT_DATA); in testEncryption_success() 174 when(mEnrollmentDao.getEnrollmentDataFromSdkName(SDK_NAME)).thenReturn(ENROLLMENT_DATA); in testEncryption_verifyLatestKeys() 211 when(mEnrollmentDao.getEnrollmentDataFromSdkName(SDK_NAME)).thenReturn(ENROLLMENT_DATA); in testEncryption_missingKeys() 230 when(mEnrollmentDao.getEnrollmentDataFromSdkName(SDK_NAME)).thenReturn(ENROLLMENT_DATA); in testEncryption_incompatibleKeys() 249 when(mEnrollmentDao.getEnrollmentDataFromSdkName(SDK_NAME)).thenReturn(null); in testEncryption_missingEnrollmentData() 265 when(mEnrollmentDao.getEnrollmentDataFromSdkName(SDK_NAME)) in testEncryption_missingEnrollmentId() 338 when(mEnrollmentDao.getEnrollmentDataFromSdkName(SDK_NAME)).thenReturn(ENROLLMENT_DATA); in testEncryption_keyDecodingFailure() 373 when(mEnrollmentDao.getEnrollmentDataFromSdkName(SDK_NAME)).thenReturn(ENROLLMENT_DATA); in testEncryption_keyWithSmallerLength() [all …]
|
D | TopicsServiceImplTest.java | 172 @Mock private EnrollmentDao mEnrollmentDao; field in TopicsServiceImplTest 264 when(mEnrollmentDao.getEnrollmentDataFromSdkName(SOME_SDK_NAME)) in setup() 511 when(mEnrollmentDao.getEnrollmentDataFromSdkName(SOME_SDK_NAME)) in checkSdkHasEnrollmentIdNull() 532 when(mEnrollmentDao.getEnrollmentDataFromSdkName(SOME_SDK_NAME)) in checkSdkEnrollmentInBlocklist_blocked() 556 when(mEnrollmentDao.getEnrollmentDataFromSdkName(SOME_SDK_NAME)) in checkSdkEnrollmentIdIsDisallowed() 1050 mEnrollmentDao, in invokeGetTopicsAndVerifyError() 1154 mEnrollmentDao, in createTestTopicsServiceImplInstance() 1168 mEnrollmentDao, in createTopicsServiceImplInstance_SandboxContext() 1182 mEnrollmentDao, in createTestTopicsServiceImplInstance_spyTopicsWorker()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/encryptionkey/ |
D | EncryptionKeyJobHandler.java | 33 private final EnrollmentDao mEnrollmentDao; field in EncryptionKeyJobHandler 41 mEnrollmentDao = enrollmentDao; in EncryptionKeyJobHandler() 50 List<EnrollmentData> enrollmentDataList = mEnrollmentDao.getAllEnrollmentData(); in fetchAndUpdateEncryptionKeys() 95 mEnrollmentDao.getEnrollmentData(encryptionKey.getEnrollmentId()); in fetchAndUpdateEncryptionKeys()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/signals/ |
D | SignalsMaintenanceTasksWorker.java | 46 @NonNull private final EnrollmentDao mEnrollmentDao; field in SignalsMaintenanceTasksWorker 70 mEnrollmentDao = enrollmentDao; in SignalsMaintenanceTasksWorker() 81 mEnrollmentDao = EnrollmentDao.getInstance(); in SignalsMaintenanceTasksWorker() 137 mProtectedSignalsDao.deleteDisallowedBuyerSignals(mEnrollmentDao); in clearInvalidSignals() 194 Set<AdTechIdentifier> enrolledAdTechs = mEnrollmentDao.getAllFledgeEnrolledAdTechs(); in getBuyersWithRevokedConsent()
|
D | PeriodicEncodingJobWorker.java | 94 private final EnrollmentDao mEnrollmentDao; field in PeriodicEncodingJobWorker 128 mEnrollmentDao = enrollmentDao; in PeriodicEncodingJobWorker() 264 new EncodingExecutionLogHelperImpl(mAdServicesLogger, mClock, mEnrollmentDao); in pickLoggerAndRunEncodingPerBuyer()
|
D | ProtectedSignalsServiceImpl.java | 104 @NonNull private final EnrollmentDao mEnrollmentDao; field in ProtectedSignalsServiceImpl 188 mEnrollmentDao = enrollmentDao; in ProtectedSignalsServiceImpl() 307 mEnrollmentDao.getEnrollmentDataForPASByAdTechIdentifier(buyer); in doUpdateSignals()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/stats/pas/ |
D | EncodingExecutionLogHelperImpl.java | 39 @NonNull private final EnrollmentDao mEnrollmentDao; field in EncodingExecutionLogHelperImpl 57 mEnrollmentDao = enrollmentDao; in EncodingExecutionLogHelperImpl() 74 EnrollmentData data = mEnrollmentDao.getEnrollmentDataForPASByAdTechIdentifier(adtech); in setAdtech()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/signature/ |
D | ProtectedAudienceSignatureManager.java | 73 @NonNull private final EnrollmentDao mEnrollmentDao; field in ProtectedAudienceSignatureManager 88 mEnrollmentDao = enrollmentDao; in ProtectedAudienceSignatureManager() 162 mEnrollmentDao.getEnrollmentDataForFledgeByAdTechIdentifier(adTech); in fetchPublicKeyForAdTech() 267 mEnrollmentDao.getEnrollmentDataForFledgeByAdTechIdentifier(adTechIdentifier); in resolveEnrollmentIdFromAdTechIdentifier()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | AdSelectionServiceImplTest.java | 310 private EnrollmentDao mEnrollmentDao; field in AdSelectionServiceImplTest 376 mEnrollmentDao = EnrollmentDao.getInstance(); in setUp() 521 mEnrollmentDao, in testReportImpressionSuccessWithRegisterAdBeaconDisabled() 649 mEnrollmentDao, in testReportImpressionSuccessCallbackThrowsErrorAuctionServerEnabled() 777 mEnrollmentDao, in testReportImpressionFailureCallbackThrowsErrorAuctionServerEnabled() 898 mEnrollmentDao, in testReportImpressionSuccessCallbackThrowsErrorAuctionServerDisabled() 1026 mEnrollmentDao, in testReportImpressionFailureCallbackThrowsErrorAuctionServerDisabled() 1146 mEnrollmentDao, in testReportImpressionSuccessfullyReportsAdCost() 1282 mEnrollmentDao, in testReportImpressionSuccessfullyReportsDataVersionHeader() 1419 mEnrollmentDao, in testReportImpressionSuccessfullyReportsSellerDataVersionHeader() [all …]
|
D | FrequencyCapFilteringE2ETest.java | 204 private EnrollmentDao mEnrollmentDao; field in FrequencyCapFilteringE2ETest 254 mEnrollmentDao = EnrollmentDao.getInstance(); in setup() 296 mEnrollmentDao, in setup() 464 mEnrollmentDao, in testUpdateHistogramDisabledFeatureFlagNotifiesError() 532 mEnrollmentDao, in testUpdateHistogramExceedingRateLimitNotifiesError() 797 mEnrollmentDao, in testUpdateHistogramBeyondMaxTotalEventCountDoesNotFilterAds() 918 mEnrollmentDao, in testUpdateHistogramBeyondMaxPerBuyerEventCountDoesNotFilterAds()
|
D | AdSelectionFailureE2ETest.java | 234 private EnrollmentDao mEnrollmentDao; field in AdSelectionFailureE2ETest 287 mEnrollmentDao = new EnrollmentDao(mSpyContext, dbHelper, mFlags); in setUp() 290 mSpyContext.getPackageManager(), mEnrollmentDao, mAdServicesLogger); in setUp() 429 mEnrollmentDao, in testRunAdSelection_webViewNotInstalled_failsGracefully() 520 mEnrollmentDao, in testReportImpression_webViewNotInstalled_failsGracefully()
|
D | AdSelectionE2ETest.java | 644 private EnrollmentDao mEnrollmentDao; field in AdSelectionE2ETest 685 mEnrollmentDao = EnrollmentDao.getInstance(); in setUp() 744 mEnrollmentDao, in setUp() 1000 mEnrollmentDao, in testRunAdSelectionSuccess_preV3BiddingLogicWithAdCostCpcBillingEnabled() 1132 mEnrollmentDao, in testRunAdSelectionSuccess_preV3BiddingLogicWithDataVersionHeaderFlagEnabled() 1283 mEnrollmentDao, in testRunAdSelectionSuccess_preV3BiddingLogicWithDataVersionHeaderFlagDisabled() 1430 mEnrollmentDao, in testRunAdSelectionSuccess_preV3BiddingLogicWinnerWithoutBuyerDataVersionHeader() 1558 mEnrollmentDao, in testRunAdSelectionSuccess_preV3BiddingLogicWithAdCostCpcBillingDisabled() 1782 mEnrollmentDao, in testRunAdSelectionSuccess_prebuiltFeatureDisabled_failure() 1886 mEnrollmentDao, in testRunAdSelectionSuccess_flagToPreV3_preV3BiddingLogic() [all …]
|
D | AdSelectionFromOutcomesE2ETest.java | 234 private EnrollmentDao mEnrollmentDao; field in AdSelectionFromOutcomesE2ETest 288 mEnrollmentDao = EnrollmentDao.getInstance(); in setUp() 326 mEnrollmentDao, in setUp() 491 mEnrollmentDao, in testSelectAdsFromOutcomesPickHighestSuccessDifferentTables() 574 mEnrollmentDao, in testSelectAdsFromOutcomesPickHighestSuccessUnifiedTables()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/ |
D | EncryptionManager.java | 65 private EnrollmentDao mEnrollmentDao; field in EncryptionManager 75 mEnrollmentDao = enrollmentDao; in EncryptionManager() 122 EnrollmentData enrollmentData = mEnrollmentDao.getEnrollmentDataFromSdkName(sdkName); in fetchPublicKeyFor()
|
D | TopicsServiceImpl.java | 106 private final EnrollmentDao mEnrollmentDao; field in TopicsServiceImpl 126 mEnrollmentDao = enrollmentDao; in TopicsServiceImpl() 363 mEnrollmentDao.getEnrollmentDataFromSdkName(topicsParam.getSdkName()); in canCallerInvokeTopicsService() 401 mEnrollmentDao.getEnrollmentRecordCountForLogging(), in canCallerInvokeTopicsService()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/ |
D | SignalsEncodingE2ETest.java | 174 private EnrollmentDao mEnrollmentDao; field in SignalsEncodingE2ETest 195 mEnrollmentDao = in setup() 233 mEnrollmentDao, in setup() 272 mEnrollmentDao); in setup() 296 mEnrollmentDao, in setup() 667 mEnrollmentDao, in testPeriodicEncodingUpdatesEncoders_Success() 705 mEnrollmentDao, in testPeriodicEncodingUpdatesEncoders_Success()
|
D | SignalsIntakeE2ETest.java | 155 private EnrollmentDao mEnrollmentDao; field in SignalsIntakeE2ETest 171 mEnrollmentDao = in setup() 176 mEnrollmentDao.insert( in setup() 218 mEnrollmentDao, in setup() 266 mEnrollmentDao); in setupService()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/ |
D | BackgroundFetchRunner.java | 57 private final EnrollmentDao mEnrollmentDao; field in BackgroundFetchRunner 78 mEnrollmentDao = enrollmentDao; in BackgroundFetchRunner() 137 mEnrollmentDao, mFlags); in deleteDisallowedBuyerCustomAudiences()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/ |
D | E2EMockTest.java | 135 EnrollmentDao mEnrollmentDao; field in E2EMockTest 186 mEnrollmentDao = in E2EMockTest() 207 mEnrollmentDao, in E2EMockTest() 215 mEnrollmentDao, in E2EMockTest() 739 EnrollmentData enrollmentData = mEnrollmentDao.getEnrollmentData(enrollmentId); in updateEnrollment() 741 mEnrollmentDao.delete(enrollmentId); in updateEnrollment() 763 Assert.assertTrue(mEnrollmentDao.insert(enrollmentData)); in insertEnrollment()
|
D | E2EInteropMockTest.java | 255 mEnrollmentDao, in insertSourceOrAssertUnparsable() 301 mEnrollmentDao, in insertTriggerOrAssertUnparsable()
|