/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/ |
D | UxEngineTest.java | 401 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/ |
D | AdServicesStates.java | 56 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/ |
D | BetaUxTest.java | 69 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()
|
D | GaUxTest.java | 69 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/ |
D | AdServicesExtDataParams.java | 131 @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/ |
D | AdServicesExtDataStorageServiceManager.java | 135 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/ |
D | AppSearchUxStatesDao.java | 79 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()
|
D | AppSearchConsentManager.java | 584 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()
|
D | AppSearchConsentStorageManager.java | 242 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/ |
D | AppConsentForRStorageManager.java | 127 public boolean isAdultAccount() { in isAdultAccount() method in AppConsentForRStorageManager 174 public void setAdultAccount(boolean isAdultAccount) { in setAdultAccount() argument 175 mAdExtDataManager.setIsAdultAccount(isAdultAccount); in setAdultAccount()
|
D | AdServicesStorageManager.java | 213 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()
|
D | AdExtDataConsentMigrationUtils.java | 215 boolean isAdultAccount = isAdultAccountRawValue == BOOLEAN_TRUE; in migrateAdExtData() 217 () -> appSearchConsentManager.setAdultAccount(isAdultAccount), in migrateAdExtData() 218 () -> adServicesManager.setAdultAccount(isAdultAccount)); in migrateAdExtData()
|
D | IConsentStorage.java | 142 boolean isAdultAccount() throws IOException; in isAdultAccount() method 183 void setAdultAccount(boolean isAdultAccount) throws IOException; in setAdultAccount() argument
|
D | AppConsentStorageManager.java | 229 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()
|
D | AdExtDataConsentMigrationUtilsV2.java | 195 boolean isAdultAccount = isAdultAccountRawValue == BOOLEAN_TRUE; in migrateAdExtDataV2() 196 transferStorage.setAdultAccount(isAdultAccount); in migrateAdExtDataV2()
|
D | ConsentCompositeStorage.java | 414 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()
|
D | ConsentManager.java | 2290 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/ |
D | IAdServicesManager.aidl | 242 boolean isAdultAccount(); in isAdultAccount() method 244 void setAdultAccount(boolean isAdultAccount); in setAdultAccount() argument
|
D | AdServicesManager.java | 612 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/ |
D | UxEngineUtilTest.java | 151 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/ |
D | AppSearchConsentStorageManagerTest.java | 633 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/ |
D | UxStatesManager.java | 99 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/ |
D | ConsentCompositeStorageTest.java | 85 consentCompositeStorage.isAdultAccount(); in testAllReadMethods() 126 Mockito.verify(consentStorage).isAdultAccount(); in verifyReadMethods()
|
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/consent/ |
D | ConsentManager.java | 503 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/ |
D | UxStatesManagerTest.java | 269 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()
|