Home
last modified time | relevance | path

Searched refs:consentApiType (Results 1 – 9 of 9) sorted by relevance

/packages/modules/AdServices/adservices/framework/java/android/app/adservices/consent/
DConsentParcel.java106 public static ConsentParcel createRevokedConsent(@ConsentApiType int consentApiType) { in createRevokedConsent() argument
108 .setConsentApiType(consentApiType) in createRevokedConsent()
114 public static ConsentParcel createGivenConsent(@ConsentApiType int consentApiType) { in createGivenConsent() argument
116 .setConsentApiType(consentApiType) in createGivenConsent()
129 public @NonNull Builder setConsentApiType(@ConsentApiType int consentApiType) { in setConsentApiType() argument
130 mConsentApiType = consentApiType; in setConsentApiType()
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/consent/
DConsentManager.java138 public ConsentParcel getConsent(@ConsentParcel.ConsentApiType int consentApiType) { in getConsent() argument
139 LogUtil.d("ConsentManager.getConsent() is invoked for consentApiType = " + consentApiType); in getConsent()
144 .setConsentApiType(consentApiType) in getConsent()
145 .setIsGiven(mDatastore.get(getConsentApiTypeKey(consentApiType))) in getConsent()
149 return ConsentParcel.createRevokedConsent(consentApiType); in getConsent()
446 String getConsentApiTypeKey(@ConsentParcel.ConsentApiType int consentApiType) { in getConsentApiTypeKey() argument
447 return CONSENT_API_TYPE_PREFIX + consentApiType; in getConsentApiTypeKey()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DAdServicesStorageManager.java127 int consentApiType = apiType.toConsentApiType(); in getConsent() local
128 ConsentParcel consentParcel = mAdServicesManager.getConsent(consentApiType); in getConsent()
DConsentManager.java1751 @ConsentParcel.ConsentApiType int consentApiType,
1756 adServicesManager.setConsent(ConsentParcel.createGivenConsent(consentApiType));
1758 adServicesManager.setConsent(ConsentParcel.createRevokedConsent(consentApiType));
1765 @ConsentParcel.ConsentApiType int consentApiType) {
1767 return adServicesManager.getConsent(consentApiType).isIsGiven();
/packages/modules/AdServices/adservices/framework/java/android/app/adservices/
DIAdServicesManager.aidl31 ConsentParcel getConsent(in int consentApiType); in getConsent() argument
DAdServicesManager.java93 public ConsentParcel getConsent(@ConsentParcel.ConsentApiType int consentApiType) { in getConsent() argument
95 return mService.getConsent(consentApiType); in getConsent()
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/
DAdServicesManagerService.java234 public ConsentParcel getConsent(@ConsentParcel.ConsentApiType int consentApiType) { in getConsent() argument
236 ConsentParcel.createRevokedConsent(consentApiType), in getConsent()
239 .getConsent(consentApiType)); in getConsent()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DConsentManagerV2Test.java3517 @ConsentParcel.ConsentApiType int consentApiType) in getSpiedConsentManagerForConsentPerApiTesting() argument
3526 ? ConsentParcel.createGivenConsent(consentApiType) in getSpiedConsentManagerForConsentPerApiTesting()
3527 : ConsentParcel.createRevokedConsent(consentApiType); in getSpiedConsentManagerForConsentPerApiTesting()
3528 doReturn(consentParcel).when(mMockIAdServicesManager).getConsent(consentApiType); in getSpiedConsentManagerForConsentPerApiTesting()
DConsentManagerTest.java3801 @ConsentParcel.ConsentApiType int consentApiType) in getSpiedConsentManagerForConsentPerApiTesting() argument
3814 ? ConsentParcel.createGivenConsent(consentApiType) in getSpiedConsentManagerForConsentPerApiTesting()
3815 : ConsentParcel.createRevokedConsent(consentApiType); in getSpiedConsentManagerForConsentPerApiTesting()
3816 doReturn(consentParcel).when(mMockIAdServicesManager).getConsent(consentApiType); in getSpiedConsentManagerForConsentPerApiTesting()