Searched refs:toPpApiDatastoreKey (Results 1 – 11 of 11) sorted by relevance
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/ |
D | AdServicesApiType.java | 63 public String toPpApiDatastoreKey() { in toPpApiDatastoreKey() method in AdServicesApiType 97 if (apiType.toPpApiDatastoreKey().equals(ppApiDatastoreKey)) { in fromPpApiDatastoreKey()
|
D | ConsentManager.java | 406 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 …]
|
D | ConsentManagerV2.java | 412 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()
|
D | AppConsentStorageManager.java | 136 Objects.requireNonNullElse(mDatastore.get(apiType.toPpApiDatastoreKey()), false)); in getConsent() 333 mDatastore.put(apiType.toPpApiDatastoreKey(), isGiven); in setConsent()
|
D | AdExtDataConsentMigrationUtils.java | 189 AdServicesApiType.MEASUREMENTS.toPpApiDatastoreKey(), in migrateAdExtData()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/ |
D | AppSearchConsentStorageManagerTest.java | 110 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()
|
D | AppSearchConsentManagerTest.java | 73 private static final String API_TYPE = AdServicesApiType.TOPICS.toPpApiDatastoreKey();
|
D | AppSearchConsentWorkerTest.java | 86 private static final String API_TYPE = AdServicesApiType.TOPICS.toPpApiDatastoreKey();
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/consent/ |
D | AdExtDataConsentMigrationUtilsTest.java | 233 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/ |
D | ConsentManagerV2Test.java | 2914 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()
|
D | ConsentManagerTest.java | 2985 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()
|