Home
last modified time | relevance | path

Searched refs:DEFAULT_CONSENT (Results 1 – 6 of 6) sorted by relevance

/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/consent/
DConsentManager.java69 @VisibleForTesting static final String DEFAULT_CONSENT = "DEFAULT_CONSENT"; field in ConsentManager
271 setValueWithLock(DEFAULT_CONSENT, defaultConsent, /* callerName */ "recordDefaultConsent"); in recordDefaultConsent()
357 return getValueWithLock(DEFAULT_CONSENT); in getDefaultConsent()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DConsentConstants.java29 public static final String DEFAULT_CONSENT = "DEFAULT_CONSENT"; field in ConsentConstants
DAppConsentStorageManager.java451 return Objects.requireNonNullElse(mDatastore.get(ConsentConstants.DEFAULT_CONSENT), false); in getDefaultConsent()
480 mDatastore.put(ConsentConstants.DEFAULT_CONSENT, defaultConsent); in recordDefaultConsent()
DConsentManager.java1231 () -> mDatastore.get(ConsentConstants.DEFAULT_CONSENT),
1233 () -> mAppSearchConsentManager.getConsent(ConsentConstants.DEFAULT_CONSENT),
1335 () -> mDatastore.put(ConsentConstants.DEFAULT_CONSENT, defaultConsent),
1339 ConsentConstants.DEFAULT_CONSENT, defaultConsent),
2127 appSearchConsentManager.getConsent(ConsentConstants.DEFAULT_CONSENT);
2128 datastore.put(ConsentConstants.DEFAULT_CONSENT, defaultConsent);
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/
DAppSearchConsentStorageManager.java621 return mAppSearchConsentWorker.getConsent(ConsentConstants.DEFAULT_CONSENT); in getDefaultConsent()
646 mAppSearchConsentWorker.setConsent(ConsentConstants.DEFAULT_CONSENT, defaultConsent); in recordDefaultConsent()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DConsentManagerTest.java21 import static com.android.adservices.service.consent.ConsentConstants.DEFAULT_CONSENT;
3329 when(mAppSearchConsentManagerMock.getConsent(eq(ConsentConstants.DEFAULT_CONSENT))) in testGetDefaultConsent_AppSearchOnly()
3332 verify(mAppSearchConsentManagerMock).getConsent(eq(ConsentConstants.DEFAULT_CONSENT)); in testGetDefaultConsent_AppSearchOnly()
3457 .setConsent(eq(ConsentConstants.DEFAULT_CONSENT), eq(true)); in testRecordDefaultConsent_AppSearchOnly()
4430 assertThat(mConsentDatastore.get(DEFAULT_CONSENT)).isNull(); in testDefaultConsentRecorded_SystemServerOnly()
4455 assertThat(mConsentDatastore.get(DEFAULT_CONSENT)).isTrue(); in testDefaultConsentRecorded_PpApiAndSystemServer()