Home
last modified time | relevance | path

Searched refs:toPpApiDatastoreKey (Results 1 – 11 of 11) sorted by relevance

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DAdServicesApiType.java63 public String toPpApiDatastoreKey() { in toPpApiDatastoreKey() method in AdServicesApiType
97 if (apiType.toPpApiDatastoreKey().equals(ppApiDatastoreKey)) { in fromPpApiDatastoreKey()
DConsentManager.java406 apiType.toPpApiDatastoreKey()); in enable()
523 mDatastore.get(apiType.toPpApiDatastoreKey())), in getConsent()
531 mAppSearchConsentManager.getConsent(apiType.toPpApiDatastoreKey())), in getConsent()
1678 mDatastore.put(apiType.toPpApiDatastoreKey(), isGiven);
1688 return Boolean.TRUE.equals(mDatastore.get(apiType.toPpApiDatastoreKey()));
1977 () -> mAppSearchConsentManager.getConsent(apiType.toPpApiDatastoreKey()),
1995 () -> mAppSearchConsentManager.setConsent(apiType.toPpApiDatastoreKey(), isGiven),
2145 appSearchConsentManager.getConsent(AdServicesApiType.TOPICS.toPpApiDatastoreKey());
2146 datastore.put(AdServicesApiType.TOPICS.toPpApiDatastoreKey(), topicsConsented);
2150 appSearchConsentManager.getConsent(AdServicesApiType.FLEDGE.toPpApiDatastoreKey());
[all …]
DConsentManagerV2.java412 apiType.toPpApiDatastoreKey()); in enable()
1253 datastore.put(apiType.toPpApiDatastoreKey(), consented); in migrateAppSearchConsents()
1255 consentMap.put(apiType.toPpApiDatastoreKey(), consented); in migrateAppSearchConsents()
1259 consentMap.get(AdServicesApiType.MEASUREMENTS.toPpApiDatastoreKey())) in migrateAppSearchConsents()
1260 .setTopicsConsent(consentMap.get(AdServicesApiType.TOPICS.toPpApiDatastoreKey())) in migrateAppSearchConsents()
1261 .setFledgeConsent(consentMap.get(AdServicesApiType.FLEDGE.toPpApiDatastoreKey())) in migrateAppSearchConsents()
DAppConsentStorageManager.java136 Objects.requireNonNullElse(mDatastore.get(apiType.toPpApiDatastoreKey()), false)); in getConsent()
333 mDatastore.put(apiType.toPpApiDatastoreKey(), isGiven); in setConsent()
DAdExtDataConsentMigrationUtils.java189 AdServicesApiType.MEASUREMENTS.toPpApiDatastoreKey(), in migrateAdExtData()
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/
DAppSearchConsentStorageManagerTest.java110 when(mAppSearchConsentWorker.getConsent(API_TYPE.toPpApiDatastoreKey())).thenReturn(false); in testGetConsent()
113 when(mAppSearchConsentWorker.getConsent(API_TYPE.toPpApiDatastoreKey())).thenReturn(true); in testGetConsent()
120 verify(mAppSearchConsentWorker).setConsent(API_TYPE.toPpApiDatastoreKey(), true); in testSetConsent()
123 verify(mAppSearchConsentWorker).setConsent(API_TYPE.toPpApiDatastoreKey(), false); in testSetConsent()
DAppSearchConsentManagerTest.java73 private static final String API_TYPE = AdServicesApiType.TOPICS.toPpApiDatastoreKey();
DAppSearchConsentWorkerTest.java86 private static final String API_TYPE = AdServicesApiType.TOPICS.toPpApiDatastoreKey();
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/consent/
DAdExtDataConsentMigrationUtilsTest.java233 AdServicesApiType.MEASUREMENTS.toPpApiDatastoreKey(), in testHandleConsentMigrationFromAdExtDataIfNeeded_onSWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared()
296 AdServicesApiType.MEASUREMENTS.toPpApiDatastoreKey(), in testHandleConsentMigrationFromAdExtDataIfNeeded_onSWithMigrationEligibleWithPartialDataWithFailedSharedPrefUpdate_migrationSuccessWithAdExtDataCleared()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DConsentManagerV2Test.java2914 assertThat(mConsentDatastore.get(AdServicesApiType.TOPICS.toPpApiDatastoreKey())).isTrue(); in testHandleConsentMigrationFromAppSearchIfNeeded()
2915 assertThat(mConsentDatastore.get(AdServicesApiType.FLEDGE.toPpApiDatastoreKey())).isTrue(); in testHandleConsentMigrationFromAppSearchIfNeeded()
2916 assertThat(mConsentDatastore.get(AdServicesApiType.MEASUREMENTS.toPpApiDatastoreKey())) in testHandleConsentMigrationFromAppSearchIfNeeded()
3281 .put(eq(AdServicesApiType.ALL_API.toPpApiDatastoreKey()), eq(true)); in testAllThreeConsentsPerApiAreGivenAggregatedConsentIsSet_PpApiOnly()
DConsentManagerTest.java2985 assertThat(mConsentDatastore.get(AdServicesApiType.TOPICS.toPpApiDatastoreKey())).isTrue(); in testHandleConsentMigrationFromAppSearchIfNeeded()
2986 assertThat(mConsentDatastore.get(AdServicesApiType.FLEDGE.toPpApiDatastoreKey())).isTrue(); in testHandleConsentMigrationFromAppSearchIfNeeded()
2987 assertThat(mConsentDatastore.get(AdServicesApiType.MEASUREMENTS.toPpApiDatastoreKey())) in testHandleConsentMigrationFromAppSearchIfNeeded()
3243 .setConsent(eq(apiType.toPpApiDatastoreKey()), eq(isGiven)); in testConsentPerApiIsGivenAfterEnabling_AppSearchOnly()