Home
last modified time | relevance | path

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

/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/app/adservices/consent/
DConsentParcelTest.java35 ConsentParcel consentParcel = in testConsentParcel() local
37 assertThat(consentParcel.getConsentApiType()).isEqualTo(ALL_API); in testConsentParcel()
38 assertThat(consentParcel.isIsGiven()).isTrue(); in testConsentParcel()
40 consentParcel = in testConsentParcel()
42 assertThat(consentParcel.getConsentApiType()).isEqualTo(TOPICS); in testConsentParcel()
43 assertThat(consentParcel.isIsGiven()).isFalse(); in testConsentParcel()
45 consentParcel = in testConsentParcel()
47 assertThat(consentParcel.getConsentApiType()).isEqualTo(FLEDGE); in testConsentParcel()
48 assertThat(consentParcel.isIsGiven()).isFalse(); in testConsentParcel()
50 consentParcel = in testConsentParcel()
[all …]
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/consent/
DConsentManager.java156 public void setConsent(ConsentParcel consentParcel) throws IOException { in setConsent() argument
160 getConsentApiTypeKey(consentParcel.getConsentApiType()), in setConsent()
161 consentParcel.isIsGiven()); in setConsent()
162 if (consentParcel.getConsentApiType() == ConsentParcel.ALL_API) { in setConsent()
165 getConsentApiTypeKey(ConsentParcel.TOPICS), consentParcel.isIsGiven()); in setConsent()
167 getConsentApiTypeKey(ConsentParcel.FLEDGE), consentParcel.isIsGiven()); in setConsent()
169 getConsentApiTypeKey(ConsentParcel.MEASUREMENT), consentParcel.isIsGiven()); in setConsent()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DAdServicesStorageManager.java128 ConsentParcel consentParcel = mAdServicesManager.getConsent(consentApiType); in getConsent() local
129 if (consentParcel == null) { in getConsent()
132 return AdServicesApiConsent.getConsent(consentParcel.isIsGiven()); in getConsent()
289 ConsentParcel consentParcel = in setConsent() local
294 mAdServicesManager.setConsent(consentParcel); in setConsent()
DConsentManager.java1741 ConsentParcel consentParcel =
1746 adServicesManager.setConsent(consentParcel);
/packages/modules/AdServices/adservices/framework/java/android/app/adservices/
DAdServicesManager.java103 public void setConsent(@NonNull ConsentParcel consentParcel) { in setConsent() argument
104 Objects.requireNonNull(consentParcel); in setConsent()
106 mService.setConsent(consentParcel); in setConsent()
DIAdServicesManager.aidl36 void setConsent(in ConsentParcel consentParcel); in setConsent() argument
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/
DAdServicesManagerService.java249 public void setConsent(ConsentParcel consentParcel) { in setConsent() argument
252 Objects.requireNonNull(consentParcel); in setConsent()
259 .setConsent(consentParcel); in setConsent()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DConsentManagerV2Test.java3497 ConsentParcel consentParcel = in getSpiedConsentManagerForMigrationTesting() local
3501 doReturn(consentParcel).when(mMockIAdServicesManager).getConsent(ConsentParcel.ALL_API); in getSpiedConsentManagerForMigrationTesting()
3524 ConsentParcel consentParcel = in getSpiedConsentManagerForConsentPerApiTesting() local
3528 doReturn(consentParcel).when(mMockIAdServicesManager).getConsent(consentApiType); in getSpiedConsentManagerForConsentPerApiTesting()
DConsentManagerTest.java3783 ConsentParcel consentParcel = in getSpiedConsentManagerForMigrationTesting() local
3787 doReturn(consentParcel).when(mMockIAdServicesManager).getConsent(ConsentParcel.ALL_API); in getSpiedConsentManagerForMigrationTesting()
3812 ConsentParcel consentParcel = in getSpiedConsentManagerForConsentPerApiTesting() local
3816 doReturn(consentParcel).when(mMockIAdServicesManager).getConsent(consentApiType); in getSpiedConsentManagerForConsentPerApiTesting()