Home
last modified time | relevance | path

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

123

/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DConsentManagerTest.java333 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 …]
DConsentManagerV2Test.java355 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 …]
DAdServicesStorageManagerTest.java161 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()
DAppConsentForRStorageManagerTest.java142 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/
DAdServicesApiConsent.java41 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
DConsentManager.java461 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 …]
DConsentManagerV2.java463 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 …]
DAppConsentForRStorageManager.java180 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()
DConsentCompositeStorage.java605 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()
DAppConsentStorageManager.java332 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/
DPasReconsentNotificationChannel.java56 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()
DPasFirstConsentNotificationChannel.java49 (consentManager.getConsent(AdServicesApiType.FLEDGE).isGiven() in isEligible()
50 || consentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven()); in isEligible()
DReconsentNotificationChannel.java42 && (consentManager.getConsent().isGiven() in isEligible()
DRvcPostOTAChannel.java51 if (consentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven()) { in enroll()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/enrollment/
DReconsentNotificationChannelTest.java108 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/
DMainViewModel.java125 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/
DMobileDataDownloadFactory.java293 .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/
DConsentParcel.java135 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/
DAdSelectionOverrider.java414 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/
DUxEngineUtilTest.java271 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/
DUxEngineUtil.java83 if (ConsentManager.getInstance().getConsent().isGiven()) { in startBackgroundTasksUponConsent()
91 .isGiven()) { in startBackgroundTasksUponConsent()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/extdata/
DAdServicesExtDataStorageServiceManager.java289 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/
DConsentNotificationTrigger.java251 && 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/
DTopicsServiceTest.java96 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/
DUserConsentAccessResolver.java49 boolean consented = userConsent.isGiven(); in getAccessInfo()

123