/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/ |
D | UxEngineTest.java | 241 verify(mConsentManager, never()).isU18Account(); in startTest_u18FeatureDisabled() 256 boolean isU18Account = false; in startTest_isNotU18Account() 261 .setU18Account(isU18Account) in startTest_isNotU18Account() 267 doReturn(isU18Account).when(mConsentManager).isU18Account(); in startTest_isNotU18Account() 281 verify(mConsentManager).isU18Account(); in startTest_isNotU18Account() 295 boolean isU18Account = true; in startTest_u18UxEligible() 301 .setU18Account(isU18Account) in startTest_u18UxEligible() 308 doReturn(isU18Account).when(mConsentManager).isU18Account(); in startTest_u18UxEligible() 321 verify(mConsentManager).isU18Account(); in startTest_u18UxEligible() 400 boolean isU18Account = false; in startTest_gaUxFeatureDisabled() [all …]
|
/packages/modules/AdServices/adservices/framework/java/android/adservices/common/ |
D | AdServicesStates.java | 55 boolean isU18Account, in AdServicesStates() argument 60 mIsU18Account = isU18Account; in AdServicesStates() 115 public boolean isU18Account() { in isU18Account() method in AdServicesStates 154 public @NonNull Builder setU18Account(boolean isU18Account) { in setU18Account() argument 155 mIsU18Account = isU18Account; in setU18Account()
|
/packages/modules/AdServices/adservices/framework/java/android/adservices/extdata/ |
D | AdServicesExtDataParams.java | 130 @TriStateBoolean int isU18Account, in AdServicesExtDataParams() argument 136 mIsU18Account = isU18Account; in AdServicesExtDataParams() 268 public AdServicesExtDataParams.Builder setIsU18Account(@TriStateBoolean int isU18Account) { in setIsU18Account() argument 269 mIsU18Account = isU18Account; in setIsU18Account()
|
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/data/ |
D | UxStatesManagerTest.java | 122 doReturn(true).when(mMockConsentManager).isU18Account(); in persistAdServicesStatesTest_u18User() 229 doReturn(true).when(mMockConsentManager).isU18Account(); in isEnrolledUserTest_betaNoticeDisplayed() 241 doReturn(true).when(mMockConsentManager).isU18Account(); in isEnrolledUserTest_U18NoticeDisplayed() 255 doReturn(true).when(mMockConsentManager).isU18Account(); in isEnrolledUserTest_noNoticeDisplayed() 270 doReturn(false).when(mMockConsentManager).isU18Account(); in isEnrolledUserTest_supervisedAccount() 295 doReturn(false).when(mMockConsentManager).isU18Account(); in isEnrolledUserTest_supervisedAccount_initial() 318 doReturn(false).when(mMockConsentManager).isU18Account(); in isEnrolledUserTest_supervisedAccountFlagDisabled()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/extdata/ |
D | AdServicesExtDataStorageServiceManager.java | 134 AtomicInteger isU18Account = new AtomicInteger(); in getAdServicesExtData() local 145 isU18Account.set(result.getIsU18Account()); in getAdServicesExtData() 180 isU18Account.get(), in getAdServicesExtData() 351 public boolean setIsU18Account(boolean isU18Account) { in setIsU18Account() argument 354 .setIsU18Account(isU18Account ? BOOLEAN_TRUE : BOOLEAN_FALSE) in setIsU18Account() 431 int isU18Account, in constructParams() argument 438 .setIsU18Account(isU18Account) in constructParams()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ui/data/ |
D | UxStatesManager.java | 96 if (mConsentManager.isU18Account() == null || !mConsentManager.isU18Account()) { in persistAdServicesStates() 97 mConsentManager.setU18Account(adServicesStates.isU18Account()); in persistAdServicesStates() 159 !mConsentManager.isU18Account() && !mConsentManager.isAdultAccount(); in isEnrolledUser()
|
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/ux/ |
D | U18UxTest.java | 69 doReturn(true).when(mConsentManager).isU18Account(); in isEligibleTest_u18UserWithU18FlagOn() 77 doReturn(true).when(mConsentManager).isU18Account(); in isEligibleTest_u18UserWithU18FlagOff() 85 doReturn(false).when(mConsentManager).isU18Account(); in isEligibleTest_nonU18UserWithU18FlagOn()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/ |
D | AppSearchUxStatesDao.java | 78 boolean isU18Account, in AppSearchUxStatesDao() argument 90 this.mIsU18Account = isU18Account; in AppSearchUxStatesDao() 186 public boolean isU18Account() { in isU18Account() method in AppSearchUxStatesDao 191 public void setU18Account(boolean isU18Account) { in setU18Account() argument 192 mIsU18Account = isU18Account; in setU18Account() 350 return dao.isU18Account(); in readIsU18Account()
|
D | AppSearchConsentManager.java | 564 public void setU18Account(boolean isU18Account) { in setU18Account() argument 565 mAppSearchConsentWorker.setU18Account(isU18Account); in setU18Account() 569 public Boolean isU18Account() { in isU18Account() method in AppSearchConsentManager 570 return mAppSearchConsentWorker.isU18Account(); in isU18Account()
|
D | AppSearchConsentStorageManager.java | 283 public boolean isU18Account() { in isU18Account() method in AppSearchConsentStorageManager 284 return mAppSearchConsentWorker.isU18Account(); in isU18Account() 547 public void setU18Account(boolean isU18Account) { in setU18Account() argument 548 mAppSearchConsentWorker.setU18Account(isU18Account); in setU18Account()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/ |
D | AppConsentForRStorageManager.java | 143 public boolean isU18Account() { in isU18Account() method in AppConsentForRStorageManager 220 public void setU18Account(boolean isU18Account) { in setU18Account() argument 221 mAdExtDataManager.setIsU18Account(isU18Account); in setU18Account()
|
D | AdServicesStorageManager.java | 237 public boolean isU18Account() { in isU18Account() method in AdServicesStorageManager 238 return mAdServicesManager.isU18Account(); in isU18Account() 347 public void setU18Account(boolean isU18Account) { in setU18Account() argument 348 mAdServicesManager.setU18Account(isU18Account); in setU18Account()
|
D | AdExtDataConsentMigrationUtils.java | 206 boolean isU18Account = isU18AccountRawValue == BOOLEAN_TRUE; in migrateAdExtData() 208 () -> appSearchConsentManager.setU18Account(isU18Account), in migrateAdExtData() 209 () -> adServicesManager.setU18Account(isU18Account)); in migrateAdExtData()
|
D | IConsentStorage.java | 162 boolean isU18Account() throws IOException; in isU18Account() method 249 void setU18Account(boolean isU18Account) throws IOException; in setU18Account() argument
|
D | AppConsentStorageManager.java | 276 public boolean isU18Account() { in isU18Account() method in AppConsentStorageManager 282 public void setU18Account(boolean isU18Account) throws IOException { in setU18Account() argument 283 mDatastore.put(ConsentConstants.IS_U18_ACCOUNT, isU18Account); in setU18Account()
|
D | AdExtDataConsentMigrationUtilsV2.java | 188 boolean isU18Account = isU18AccountRawValue == BOOLEAN_TRUE; in migrateAdExtDataV2() 189 transferStorage.setU18Account(isU18Account); in migrateAdExtDataV2()
|
D | ConsentCompositeStorage.java | 509 public boolean isU18Account() { in isU18Account() method in ConsentCompositeStorage 512 return storage.isU18Account(); in isU18Account() 527 public void setU18Account(boolean isU18Account) { in setU18Account() argument 530 storage.setU18Account(isU18Account); in setU18Account()
|
D | ConsentManager.java | 2233 public Boolean isU18Account() { 2235 return ConsentManagerV2.getInstance().isU18Account(); 2240 () -> mAdServicesManager.isU18Account(), 2241 () -> mAppSearchConsentManager.isU18Account(), 2247 public void setU18Account(boolean isU18Account) { 2249 ConsentManagerV2.getInstance().setU18Account(isU18Account); 2253 () -> mDatastore.put(ConsentConstants.IS_U18_ACCOUNT, isU18Account), 2254 () -> mAdServicesManager.setU18Account(isU18Account), 2255 () -> mAppSearchConsentManager.setU18Account(isU18Account), 2256 () -> mAdExtDataManager.setIsU18Account(isU18Account),
|
/packages/modules/AdServices/adservices/framework/java/android/app/adservices/ |
D | IAdServicesManager.aidl | 230 boolean isU18Account(); in isU18Account() method 233 void setU18Account(boolean isU18Account); in setU18Account() argument
|
D | AdServicesManager.java | 572 public boolean isU18Account() { in isU18Account() method in AdServicesManager 574 return mService.isU18Account(); in isU18Account() 582 public void setU18Account(boolean isU18Account) { in setU18Account() argument 584 mService.setU18Account(isU18Account); in setU18Account()
|
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/util/ |
D | UxEngineUtilTest.java | 169 doReturn(true).when(mConsentManager).isU18Account(); in getEligibleUxCollectionTest_u18UserU18FlagOn() 178 doReturn(true).when(mConsentManager).isU18Account(); in getEligibleUxCollectionTest_u18UserU18FlagOff() 189 doReturn(true).when(mConsentManager).isU18Account(); in getEligibleUxCollectionTest_gaAndU18Eligible() 201 doReturn(true).when(mConsentManager).isU18Account(); in getEligibleUxCollectionTest_betaAndU18Eligible() 211 doReturn(false).when(mConsentManager).isU18Account(); in getEligibleUxCollectionTest_nonAdultAndNonU18()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/ |
D | AppSearchConsentStorageManagerTest.java | 589 private void setU18AccountTest(boolean isU18Account) { in setU18AccountTest() argument 590 mAppSearchConsentStorageManager.setU18Account(isU18Account); in setU18AccountTest() 591 verify(mAppSearchConsentWorker).setU18Account(isU18Account); in setU18AccountTest() 596 when(mAppSearchConsentWorker.isU18Account()).thenReturn(false); in isU18AccountTest_defaultFalseBit() 597 expect.that(mAppSearchConsentStorageManager.isU18Account()).isFalse(); in isU18AccountTest_defaultFalseBit() 598 verify(mAppSearchConsentWorker).isU18Account(); in isU18AccountTest_defaultFalseBit()
|
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ |
D | ConsentCompositeStorageTest.java | 88 consentCompositeStorage.isU18Account(); in testAllReadMethods() 129 Mockito.verify(consentStorage).isU18Account(); in verifyReadMethods()
|
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/consent/ |
D | ConsentManager.java | 476 public boolean isU18Account() { in isU18Account() method in ConsentManager 481 public void setU18Account(boolean isU18Account) { in setU18Account() argument 482 setValueWithLock(IS_U18_ACCOUNT, isU18Account, /* callerName */ "setU18Account"); in setU18Account()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ui/ux/impl/ |
D | U18Ux.java | 39 return uxStatesManager.getFlag(KEY_U18_UX_ENABLED) && consentManager.isU18Account(); in isEligible()
|