Home
last modified time | relevance | path

Searched refs:isAdultAccount (Results 1 – 25 of 41) sorted by relevance

12

/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/
DUxEngineTest.java401 boolean isAdultAccount = true; in startTest_gaUxFeatureDisabled()
406 .setAdultAccount(isAdultAccount) in startTest_gaUxFeatureDisabled()
414 doReturn(isAdultAccount).when(mConsentManager).isAdultAccount(); in startTest_gaUxFeatureDisabled()
447 boolean isAdultAccount = false; in startTest_gaUxNotAdultAccount()
452 .setAdultAccount(isAdultAccount) in startTest_gaUxNotAdultAccount()
460 doReturn(isAdultAccount).when(mConsentManager).isAdultAccount(); in startTest_gaUxNotAdultAccount()
479 verify(mConsentManager).isAdultAccount(); in startTest_gaUxNotAdultAccount()
491 boolean isAdultAccount = true; in startTest_gaUxEligible()
496 .setAdultAccount(isAdultAccount) in startTest_gaUxEligible()
504 doReturn(isAdultAccount).when(mConsentManager).isAdultAccount(); in startTest_gaUxEligible()
[all …]
/packages/modules/AdServices/adservices/framework/java/android/adservices/common/
DAdServicesStates.java56 boolean isAdultAccount, in AdServicesStates() argument
61 mIsAdultAccount = isAdultAccount; in AdServicesStates()
126 public boolean isAdultAccount() { in isAdultAccount() method in AdServicesStates
160 public @NonNull Builder setAdultAccount(boolean isAdultAccount) { in setAdultAccount() argument
161 mIsAdultAccount = isAdultAccount; in setAdultAccount()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/ux/
DBetaUxTest.java69 doReturn(true).when(mConsentManager).isAdultAccount(); in isEligibleTest_adultUserWithGaFlagOn()
77 doReturn(true).when(mConsentManager).isAdultAccount(); in isEligibleTest_adultUserWithGaFlagOff()
85 doReturn(false).when(mConsentManager).isAdultAccount(); in isEligibleTest_nonAdultUserWithGaFlagOn()
93 doReturn(false).when(mConsentManager).isAdultAccount(); in isEligibleTest_nonAdultUserWithGaFlagOff()
DGaUxTest.java69 doReturn(true).when(mConsentManager).isAdultAccount(); in isEligibleTest_adultUserWithGaFlagOn()
77 doReturn(true).when(mConsentManager).isAdultAccount(); in isEligibleTest_adultUserWithGaFlagOff()
85 doReturn(false).when(mConsentManager).isAdultAccount(); in isEligibleTest_nonAdultUserWithGaFlagOn()
93 doReturn(false).when(mConsentManager).isAdultAccount(); in isEligibleTest_nonAdultUserWithGaFlagOff()
/packages/modules/AdServices/adservices/framework/java/android/adservices/extdata/
DAdServicesExtDataParams.java131 @TriStateBoolean int isAdultAccount, in AdServicesExtDataParams() argument
137 mIsAdultAccount = isAdultAccount; in AdServicesExtDataParams()
276 @TriStateBoolean int isAdultAccount) { in setIsAdultAccount()
277 mIsAdultAccount = isAdultAccount; in setIsAdultAccount()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/extdata/
DAdServicesExtDataStorageServiceManager.java135 AtomicInteger isAdultAccount = new AtomicInteger(); in getAdServicesExtData() local
146 isAdultAccount.set(result.getIsAdultAccount()); in getAdServicesExtData()
181 isAdultAccount.get(), in getAdServicesExtData()
369 public boolean setIsAdultAccount(boolean isAdultAccount) { in setIsAdultAccount() argument
372 .setIsAdultAccount(isAdultAccount ? BOOLEAN_TRUE : BOOLEAN_FALSE) in setIsAdultAccount()
432 int isAdultAccount, in constructParams() argument
439 .setIsAdultAccount(isAdultAccount) in constructParams()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/
DAppSearchUxStatesDao.java79 boolean isAdultAccount, in AppSearchUxStatesDao() argument
91 this.mIsAdultAccount = isAdultAccount; in AppSearchUxStatesDao()
196 public boolean isAdultAccount() { in isAdultAccount() method in AppSearchUxStatesDao
201 public void setAdultAccount(boolean isAdultAccount) { in setAdultAccount() argument
202 mIsAdultAccount = isAdultAccount; in setAdultAccount()
376 return dao.isAdultAccount(); in readIsAdultAccount()
DAppSearchConsentManager.java584 public void setAdultAccount(boolean isAdultAccount) { in setAdultAccount() argument
585 mAppSearchConsentWorker.setAdultAccount(isAdultAccount); in setAdultAccount()
589 public Boolean isAdultAccount() { in isAdultAccount() method in AppSearchConsentManager
590 return mAppSearchConsentWorker.isAdultAccount(); in isAdultAccount()
DAppSearchConsentStorageManager.java242 public boolean isAdultAccount() { in isAdultAccount() method in AppSearchConsentStorageManager
243 return mAppSearchConsentWorker.isAdultAccount(); in isAdultAccount()
445 public void setAdultAccount(boolean isAdultAccount) { in setAdultAccount() argument
446 mAppSearchConsentWorker.setAdultAccount(isAdultAccount); in setAdultAccount()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DAppConsentForRStorageManager.java127 public boolean isAdultAccount() { in isAdultAccount() method in AppConsentForRStorageManager
174 public void setAdultAccount(boolean isAdultAccount) { in setAdultAccount() argument
175 mAdExtDataManager.setIsAdultAccount(isAdultAccount); in setAdultAccount()
DAdServicesStorageManager.java213 public boolean isAdultAccount() { in isAdultAccount() method in AdServicesStorageManager
214 return mAdServicesManager.isAdultAccount(); in isAdultAccount()
282 public void setAdultAccount(boolean isAdultAccount) { in setAdultAccount() argument
283 mAdServicesManager.setAdultAccount(isAdultAccount); in setAdultAccount()
DAdExtDataConsentMigrationUtils.java215 boolean isAdultAccount = isAdultAccountRawValue == BOOLEAN_TRUE; in migrateAdExtData()
217 () -> appSearchConsentManager.setAdultAccount(isAdultAccount), in migrateAdExtData()
218 () -> adServicesManager.setAdultAccount(isAdultAccount)); in migrateAdExtData()
DIConsentStorage.java142 boolean isAdultAccount() throws IOException; in isAdultAccount() method
183 void setAdultAccount(boolean isAdultAccount) throws IOException; in setAdultAccount() argument
DAppConsentStorageManager.java229 public boolean isAdultAccount() { in isAdultAccount() method in AppConsentStorageManager
235 public void setAdultAccount(boolean isAdultAccount) throws IOException { in setAdultAccount() argument
236 mDatastore.put(ConsentConstants.IS_ADULT_ACCOUNT, isAdultAccount); in setAdultAccount()
DAdExtDataConsentMigrationUtilsV2.java195 boolean isAdultAccount = isAdultAccountRawValue == BOOLEAN_TRUE; in migrateAdExtDataV2()
196 transferStorage.setAdultAccount(isAdultAccount); in migrateAdExtDataV2()
DConsentCompositeStorage.java414 public boolean isAdultAccount() { in isAdultAccount() method in ConsentCompositeStorage
417 return storage.isAdultAccount(); in isAdultAccount()
432 public void setAdultAccount(boolean isAdultAccount) { in setAdultAccount() argument
435 storage.setAdultAccount(isAdultAccount); in setAdultAccount()
DConsentManager.java2290 public Boolean isAdultAccount() {
2292 return ConsentManagerV2.getInstance().isAdultAccount();
2297 () -> mAdServicesManager.isAdultAccount(),
2298 () -> mAppSearchConsentManager.isAdultAccount(),
2304 public void setAdultAccount(boolean isAdultAccount) {
2306 ConsentManagerV2.getInstance().setAdultAccount(isAdultAccount);
2310 () -> mDatastore.put(ConsentConstants.IS_ADULT_ACCOUNT, isAdultAccount),
2311 () -> mAdServicesManager.setAdultAccount(isAdultAccount),
2312 () -> mAppSearchConsentManager.setAdultAccount(isAdultAccount),
2313 () -> mAdExtDataManager.setIsAdultAccount(isAdultAccount),
/packages/modules/AdServices/adservices/framework/java/android/app/adservices/
DIAdServicesManager.aidl242 boolean isAdultAccount(); in isAdultAccount() method
244 void setAdultAccount(boolean isAdultAccount); in setAdultAccount() argument
DAdServicesManager.java612 public boolean isAdultAccount() { in isAdultAccount() method in AdServicesManager
614 return mService.isAdultAccount(); in isAdultAccount()
622 public void setAdultAccount(boolean isAdultAccount) { in setAdultAccount() argument
624 mService.setAdultAccount(isAdultAccount); in setAdultAccount()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/util/
DUxEngineUtilTest.java151 doReturn(true).when(mConsentManager).isAdultAccount(); in getEligibleUxCollectionTest_adultUserGaFlagOn()
160 doReturn(true).when(mConsentManager).isAdultAccount(); in getEligibleUxCollectionTest_adultUserGaFlagOff()
188 doReturn(true).when(mConsentManager).isAdultAccount(); in getEligibleUxCollectionTest_gaAndU18Eligible()
200 doReturn(true).when(mConsentManager).isAdultAccount(); in getEligibleUxCollectionTest_betaAndU18Eligible()
210 doReturn(false).when(mConsentManager).isAdultAccount(); in getEligibleUxCollectionTest_nonAdultAndNonU18()
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/
DAppSearchConsentStorageManagerTest.java633 private void setAdultAccountTest(boolean isAdultAccount) { in setAdultAccountTest() argument
634 mAppSearchConsentStorageManager.setAdultAccount(isAdultAccount); in setAdultAccountTest()
635 verify(mAppSearchConsentWorker).setAdultAccount(isAdultAccount); in setAdultAccountTest()
640 when(mAppSearchConsentWorker.isAdultAccount()).thenReturn(false); in isAdultAccountTest_defaultFalseBit()
641 expect.that(mAppSearchConsentStorageManager.isAdultAccount()).isFalse(); in isAdultAccountTest_defaultFalseBit()
642 verify(mAppSearchConsentWorker).isAdultAccount(); in isAdultAccountTest_defaultFalseBit()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ui/data/
DUxStatesManager.java99 mConsentManager.setAdultAccount(adServicesStates.isAdultAccount()); in persistAdServicesStates()
159 !mConsentManager.isU18Account() && !mConsentManager.isAdultAccount(); in isEnrolledUser()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DConsentCompositeStorageTest.java85 consentCompositeStorage.isAdultAccount(); in testAllReadMethods()
126 Mockito.verify(consentStorage).isAdultAccount(); in verifyReadMethods()
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/consent/
DConsentManager.java503 public boolean isAdultAccount() { in isAdultAccount() method in ConsentManager
508 public void setAdultAccount(boolean isAdultAccount) { in setAdultAccount() argument
509 setValueWithLock(IS_ADULT_ACCOUNT, isAdultAccount, /* callerName */ "setAdultAccount"); in setAdultAccount()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/data/
DUxStatesManagerTest.java269 doReturn(false).when(mMockConsentManager).isAdultAccount(); in isEnrolledUserTest_supervisedAccount()
294 doReturn(false).when(mMockConsentManager).isAdultAccount(); in isEnrolledUserTest_supervisedAccount_initial()
317 doReturn(false).when(mMockConsentManager).isAdultAccount(); in isEnrolledUserTest_supervisedAccountFlagDisabled()

12