/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ |
D | ConsentManagerTest.java | 333 boolean isGiven = true; in testConsentIsGivenAfterEnabling_PpApiOnly() 336 getSpiedConsentManagerForMigrationTesting(isGiven, consentSourceOfTruth); in testConsentIsGivenAfterEnabling_PpApiOnly() 340 assertThat(spyConsentManager.getConsent().isGiven()).isTrue(); in testConsentIsGivenAfterEnabling_PpApiOnly() 344 /* isGiven */ isGiven, in testConsentIsGivenAfterEnabling_PpApiOnly() 354 boolean isGiven = true; in testConsentIsGivenAfterEnabling_SystemServerOnly() 357 getSpiedConsentManagerForMigrationTesting(isGiven, consentSourceOfTruth); in testConsentIsGivenAfterEnabling_SystemServerOnly() 361 assertThat(spyConsentManager.getConsent().isGiven()).isTrue(); in testConsentIsGivenAfterEnabling_SystemServerOnly() 365 /* isGiven */ isGiven, in testConsentIsGivenAfterEnabling_SystemServerOnly() 375 boolean isGiven = true; in testConsentIsGivenAfterEnabling_PPAPIAndSystemServer() 378 getSpiedConsentManagerForMigrationTesting(isGiven, consentSourceOfTruth); in testConsentIsGivenAfterEnabling_PPAPIAndSystemServer() [all …]
|
D | ConsentManagerV2Test.java | 355 boolean isGiven = true; in testConsentIsGivenAfterEnabling_PpApiOnly() 358 getSpiedConsentManagerForMigrationTesting(isGiven, consentSourceOfTruth); in testConsentIsGivenAfterEnabling_PpApiOnly() 362 assertThat(spyConsentManager.getConsent().isGiven()).isTrue(); in testConsentIsGivenAfterEnabling_PpApiOnly() 365 /* isGiven */ isGiven, in testConsentIsGivenAfterEnabling_PpApiOnly() 375 boolean isGiven = true; in testConsentIsGivenAfterEnabling_SystemServerOnly() 378 getSpiedConsentManagerForMigrationTesting(isGiven, consentSourceOfTruth); in testConsentIsGivenAfterEnabling_SystemServerOnly() 382 assertThat(spyConsentManager.getConsent().isGiven()).isTrue(); in testConsentIsGivenAfterEnabling_SystemServerOnly() 385 /* isGiven */ isGiven, in testConsentIsGivenAfterEnabling_SystemServerOnly() 395 boolean isGiven = true; in testConsentIsGivenAfterEnabling_PPAPIAndSystemServer() 398 getSpiedConsentManagerForMigrationTesting(isGiven, consentSourceOfTruth); in testConsentIsGivenAfterEnabling_PPAPIAndSystemServer() [all …]
|
D | AdServicesStorageManagerTest.java | 161 expect.that(mAdServicesStorageManager.getConsent(AdServicesApiType.ALL_API).isGiven()) in testIsFledgeConsentRevokedForAppAfterSetFledgeUseWithFullApiConsent() 207 expect.that(mAdServicesStorageManager.getConsent(AdServicesApiType.ALL_API).isGiven()) in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxDisabled() 248 expect.that(mAdServicesStorageManager.getConsent(AdServicesApiType.FLEDGE).isGiven()) in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxEnabled() 287 expect.that(mAdServicesStorageManager.getConsent(AdServicesApiType.ALL_API).isGiven()) in testIsFledgeConsentRevokedForNotFoundAppGaUxDisabledThrows() 303 expect.that(mAdServicesStorageManager.getConsent(AdServicesApiType.FLEDGE).isGiven()) in testIsFledgeConsentRevokedForNotFoundAppGaUxEnabledThrows()
|
D | AppConsentForRStorageManagerTest.java | 142 assertThat(apiConsent.isGiven()).isTrue(); in testGetMeasurementConsent() 144 assertThat(apiConsent.isGiven()).isFalse(); in testGetMeasurementConsent()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/ |
D | AdServicesApiConsent.java | 41 public static AdServicesApiConsent getConsent(Boolean isGiven) { in getConsent() argument 42 if (isGiven == null) { in getConsent() 45 return new AdServicesApiConsent(isGiven); in getConsent() 48 public boolean isGiven() { in isGiven() method in AdServicesApiConsent
|
D | ConsentManager.java | 461 if (getConsent(AdServicesApiType.TOPICS).isGiven() in areAllApisDisabled() 462 || getConsent(AdServicesApiType.MEASUREMENTS).isGiven() in areAllApisDisabled() 463 || getConsent(AdServicesApiType.FLEDGE).isGiven()) { in areAllApisDisabled() 893 if (!consent.isGiven()) { 954 if (!consent.isGiven()) { 1672 void setConsentToPpApi(boolean isGiven) throws IOException { 1673 mDatastore.put(ConsentConstants.CONSENT_KEY, isGiven); 1677 void setConsentPerApiToPpApi(AdServicesApiType apiType, boolean isGiven) throws IOException { 1678 mDatastore.put(apiType.toPpApiDatastoreKey(), isGiven); 1706 if (getConsent(AdServicesApiType.TOPICS).isGiven() [all …]
|
D | ConsentManagerV2.java | 463 if (getConsent(AdServicesApiType.TOPICS).isGiven() in areAllApisDisabled() 464 || getConsent(AdServicesApiType.MEASUREMENTS).isGiven() in areAllApisDisabled() 465 || getConsent(AdServicesApiType.FLEDGE).isGiven()) { in areAllApisDisabled() 695 if (!consent.isGiven()) { in isFledgeConsentRevokedForApp() 722 if (!consent.isGiven()) { in isFledgeConsentRevokedForAppAfterSettingFledgeUse() 1097 void setConsentToSourceOfTruth(boolean isGiven) { in setConsentToSourceOfTruth() argument 1098 mConsentCompositeStorage.setConsent(AdServicesApiType.ALL_API, isGiven); in setConsentToSourceOfTruth() 1103 return mConsentCompositeStorage.getConsent(AdServicesApiType.ALL_API).isGiven(); in getConsentFromSourceOfTruth() 1108 return mConsentCompositeStorage.getConsent(apiType).isGiven(); in getPerApiConsentFromSourceOfTruth() 1112 void setPerApiConsentToSourceOfTruth(boolean isGiven, AdServicesApiType apiType) { in setPerApiConsentToSourceOfTruth() argument [all …]
|
D | AppConsentForRStorageManager.java | 180 public void setConsent(AdServicesApiType apiType, boolean isGiven) throws IOException { in setConsent() argument 182 super.setConsent(apiType, isGiven); in setConsent() 192 mAdExtDataManager.setMsmtConsent(isGiven); in setConsent()
|
D | ConsentCompositeStorage.java | 605 public void setConsent(AdServicesApiType apiType, boolean isGiven) { in setConsent() argument 606 setConsentToApiType(apiType, isGiven); in setConsent() 613 private void setConsentToApiType(AdServicesApiType apiType, boolean isGiven) { in setConsentToApiType() argument 616 storage.setConsent(apiType, isGiven); in setConsentToApiType() 644 getConsent(AdServicesApiType.TOPICS).isGiven() in setAggregatedConsent() 645 && getConsent(AdServicesApiType.MEASUREMENTS).isGiven() in setAggregatedConsent() 646 && getConsent(AdServicesApiType.FLEDGE).isGiven()); in setAggregatedConsent()
|
D | AppConsentStorageManager.java | 332 public void setConsent(AdServicesApiType apiType, boolean isGiven) throws IOException { in setConsent() argument 333 mDatastore.put(apiType.toPpApiDatastoreKey(), isGiven); in setConsent() local
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ui/enrollment/impl/ |
D | PasReconsentNotificationChannel.java | 56 consentManager.getConsent(AdServicesApiType.FLEDGE).isGiven() in isEligible() 57 || consentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven(); in isEligible() 66 if (!(consentManager.getConsent(AdServicesApiType.FLEDGE).isGiven() in enroll() 67 || consentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven())) { in enroll()
|
D | PasFirstConsentNotificationChannel.java | 49 (consentManager.getConsent(AdServicesApiType.FLEDGE).isGiven() in isEligible() 50 || consentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven()); in isEligible()
|
D | ReconsentNotificationChannel.java | 42 && (consentManager.getConsent().isGiven() in isEligible()
|
D | RvcPostOTAChannel.java | 51 if (consentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven()) { in enroll()
|
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/enrollment/ |
D | ReconsentNotificationChannelTest.java | 108 doReturn(false).when(mAdServicesApiConsent).isGiven(); in isEligibleTest_nonManualOptOutBetaUser() 123 doReturn(false).when(mAdServicesApiConsent).isGiven(); in isEligibleTest_manualOptOutBetaUser() 138 doReturn(false).when(mAdServicesApiConsent).isGiven(); in isEligibleTest_unknownOptOutBetaUser() 151 doReturn(true).when(mAdServicesApiConsent).isGiven(); in isEligibleTest_nonManualOptInBetaUser() 166 doReturn(true).when(mAdServicesApiConsent).isGiven(); in isEligibleTest_manualOptInBetaUser() 181 doReturn(true).when(mAdServicesApiConsent).isGiven(); in isEligibleTest_unknownOptInBetaUser()
|
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/viewmodels/ |
D | MainViewModel.java | 125 return mConsentManager.getConsent().isGiven(); in getConsentFromConsentManager() 129 return mConsentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven(); in getMeasurementConsentFromConsentManager() 133 return mConsentManager.getConsent(AdServicesApiType.TOPICS).isGiven(); in getTopicsConsentFromConsentManager() 137 return mConsentManager.getConsent(AdServicesApiType.FLEDGE).isGiven(); in getAppsConsentFromConsentManager()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/download/ |
D | MobileDataDownloadFactory.java | 293 .isGiven(); in getTopicsManifestPopulator() 295 return ConsentManager.getInstance().getConsent().isGiven(); in getTopicsManifestPopulator() 376 && (instance.getConsent(AdServicesApiType.MEASUREMENTS).isGiven() 377 || instance.getConsent(AdServicesApiType.TOPICS).isGiven() 378 || instance.getConsent(AdServicesApiType.FLEDGE).isGiven())) { 382 return instance.getConsent().isGiven(); 417 return ConsentManager.getInstance().getConsent().isGiven(); 467 return ConsentManager.getInstance().getConsent().isGiven();
|
/packages/modules/AdServices/adservices/framework/java/android/app/adservices/consent/ |
D | ConsentParcel.java | 135 public @NonNull Builder setIsGiven(Boolean isGiven) { in setIsGiven() argument 137 mIsGiven = isGiven != null ? isGiven : false; in setIsGiven()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/devapi/ |
D | AdSelectionOverrider.java | 414 if (!userConsent.isGiven()) { in callAddOverride() 433 if (!userConsent.isGiven()) { in callRemoveOverride() 449 if (!userConsent.isGiven()) { 467 if (!userConsent.isGiven()) { 484 if (!userConsent.isGiven()) { 500 if (!userConsent.isGiven()) {
|
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/util/ |
D | UxEngineUtilTest.java | 271 doReturn(true).when(mAdServicesApiConsent).isGiven(); in getEligibleEnrollmentChannelTest_gaUxManaulOptInBetaUser() 287 doReturn(true).when(mAdServicesApiConsent).isGiven(); in getEligibleEnrollmentChannelTest_gaUxNoManaulOptInBetaUser() 303 doReturn(true).when(mAdServicesApiConsent).isGiven(); in getEligibleEnrollmentChannelTest_gaUxUnknownOptInBetaUser() 317 doReturn(false).when(mAdServicesApiConsent).isGiven(); in getEligibleEnrollmentChannelTest_gaUxManaulOptOutBetaUser() 333 doReturn(false).when(mAdServicesApiConsent).isGiven(); in getEligibleEnrollmentChannelTest_gaUxNoManaulOptOutBetaUser() 349 doReturn(false).when(mAdServicesApiConsent).isGiven(); in getEligibleEnrollmentChannelTest_gaUxUnknownOptOutBetaUser()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ui/util/ |
D | UxEngineUtil.java | 83 if (ConsentManager.getInstance().getConsent().isGiven()) { in startBackgroundTasksUponConsent() 91 .isGiven()) { in startBackgroundTasksUponConsent()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/extdata/ |
D | AdServicesExtDataStorageServiceManager.java | 289 public boolean setMsmtConsent(boolean isGiven) { in setMsmtConsent() argument 292 .setMsmtConsent(isGiven ? BOOLEAN_TRUE : BOOLEAN_FALSE) in setMsmtConsent() 330 public boolean setNotificationDisplayed(boolean isGiven) { in setNotificationDisplayed() argument 333 .setNotificationDisplayed(isGiven ? BOOLEAN_TRUE : BOOLEAN_FALSE) in setNotificationDisplayed()
|
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/notifications/ |
D | ConsentNotificationTrigger.java | 251 && consentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven(); in isOtaRvcMsmtEnabledUser() 406 return consentManager.getConsent(AdServicesApiType.FLEDGE).isGiven() in isFledgeOrMsmtEnabled() 407 || consentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven(); in isFledgeOrMsmtEnabled()
|
/packages/modules/AdServices/adservices/apk/unittest/src/com/android/adservices/topics/ |
D | TopicsServiceTest.java | 96 doReturn(true).when(mMockAdServicesApiConsent).isGiven(); in testBindableTopicsService_killswitchOff() 158 doReturn(true).when(mMockAdServicesApiConsent).isGiven(); in testBindableTopicsService_killswitchOffGaUxFeatureFlagOn()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/access/ |
D | UserConsentAccessResolver.java | 49 boolean consented = userConsent.isGiven(); in getAccessInfo()
|