Home
last modified time | relevance | path

Searched refs:isEntryPointEnabled (Results 1 – 25 of 27) sorted by relevance

12

/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/
DUxEngineTest.java162 verify(mConsentManager, never()).isEntryPointEnabled(); in startTest_uxDisabled()
190 doReturn(false).when(mConsentManager).isEntryPointEnabled(); in startTest_entryPointDisabled()
198 verify(mConsentManager).isEntryPointEnabled(); in startTest_entryPointDisabled()
228 doReturn(entryPointEnabled).when(mConsentManager).isEntryPointEnabled(); in startTest_u18FeatureDisabled()
237 verify(mConsentManager).isEntryPointEnabled(); in startTest_u18FeatureDisabled()
266 doReturn(entryPointEnabled).when(mConsentManager).isEntryPointEnabled(); in startTest_isNotU18Account()
277 verify(mConsentManager).isEntryPointEnabled(); in startTest_isNotU18Account()
307 doReturn(entryPointEnabled).when(mConsentManager).isEntryPointEnabled(); in startTest_u18UxEligible()
317 verify(mConsentManager).isEntryPointEnabled(); in startTest_u18UxEligible()
357 doReturn(entryPointEnabled).when(mConsentManager).isEntryPointEnabled(); in startTest_rvcSelected()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/
DAppSearchUxStatesDao.java77 boolean isEntryPointEnabled, in AppSearchUxStatesDao() argument
89 this.mIsEntryPointEnabled = isEntryPointEnabled; in AppSearchUxStatesDao()
176 public boolean isEntryPointEnabled() { in isEntryPointEnabled() method in AppSearchUxStatesDao
181 public void setEntryPointEnabled(boolean isEntryPointEnabled) { in setEntryPointEnabled() argument
182 mIsEntryPointEnabled = isEntryPointEnabled; in setEntryPointEnabled()
363 return dao.isEntryPointEnabled(); in readIsEntryPointEnabled()
DAppSearchConsentManager.java574 public void setEntryPointEnabled(boolean isEntryPointEnabled) { in setEntryPointEnabled() argument
575 mAppSearchConsentWorker.setEntryPointEnabled(isEntryPointEnabled); in setEntryPointEnabled()
579 public Boolean isEntryPointEnabled() { in isEntryPointEnabled() method in AppSearchConsentManager
580 return mAppSearchConsentWorker.isEntryPointEnabled(); in isEntryPointEnabled()
DAppSearchConsentStorageManager.java277 public boolean isEntryPointEnabled() { in isEntryPointEnabled() method in AppSearchConsentStorageManager
278 return mAppSearchConsentWorker.isEntryPointEnabled(); in isEntryPointEnabled()
541 public void setEntryPointEnabled(boolean isEntryPointEnabled) { in setEntryPointEnabled() argument
542 mAppSearchConsentWorker.setEntryPointEnabled(isEntryPointEnabled); in setEntryPointEnabled()
DAppSearchConsentWorker.java631 boolean isEntryPointEnabled() { in isEntryPointEnabled() method in AppSearchConsentWorker
642 void setEntryPointEnabled(boolean isEntryPointEnabled) { in setEntryPointEnabled() argument
655 dao.setEntryPointEnabled(isEntryPointEnabled); in setEntryPointEnabled()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DAdServicesStorageManager.java231 public boolean isEntryPointEnabled() { in isEntryPointEnabled() method in AdServicesStorageManager
232 return mAdServicesManager.isEntryPointEnabled(); in isEntryPointEnabled()
341 public void setEntryPointEnabled(boolean isEntryPointEnabled) { in setEntryPointEnabled() argument
342 mAdServicesManager.setEntryPointEnabled(isEntryPointEnabled); in setEntryPointEnabled()
DIConsentStorage.java159 boolean isEntryPointEnabled() throws IOException; in isEntryPointEnabled() method
246 void setEntryPointEnabled(boolean isEntryPointEnabled) throws IOException; in setEntryPointEnabled() argument
DAppConsentStorageManager.java263 public boolean isEntryPointEnabled() { in isEntryPointEnabled() method in AppConsentStorageManager
270 public void setEntryPointEnabled(boolean isEntryPointEnabled) throws IOException { in setEntryPointEnabled() argument
271 mDatastore.put(ConsentConstants.IS_ENTRY_POINT_ENABLED, isEntryPointEnabled); in setEntryPointEnabled()
DConsentCompositeStorage.java475 public boolean isEntryPointEnabled() { in isEntryPointEnabled() method in ConsentCompositeStorage
478 return storage.isEntryPointEnabled(); in isEntryPointEnabled()
493 public void setEntryPointEnabled(boolean isEntryPointEnabled) { in setEntryPointEnabled() argument
496 storage.setEntryPointEnabled(isEntryPointEnabled); in setEntryPointEnabled()
DConsentManager.java2261 public Boolean isEntryPointEnabled() {
2263 return ConsentManagerV2.getInstance().isEntryPointEnabled();
2268 () -> mAdServicesManager.isEntryPointEnabled(),
2269 () -> mAppSearchConsentManager.isEntryPointEnabled(),
2275 public void setEntryPointEnabled(boolean isEntryPointEnabled) {
2277 ConsentManagerV2.getInstance().setEntryPointEnabled(isEntryPointEnabled);
2281 () -> mDatastore.put(ConsentConstants.IS_ENTRY_POINT_ENABLED, isEntryPointEnabled),
2282 () -> mAdServicesManager.setEntryPointEnabled(isEntryPointEnabled),
2283 () -> mAppSearchConsentManager.setEntryPointEnabled(isEntryPointEnabled),
2285 () -> mDatastore.put(ConsentConstants.IS_ENTRY_POINT_ENABLED, isEntryPointEnabled),
DConsentManagerV2.java1314 public boolean isEntryPointEnabled() { in isEntryPointEnabled() method in ConsentManagerV2
1315 return mConsentCompositeStorage.isEntryPointEnabled(); in isEntryPointEnabled()
1319 public void setEntryPointEnabled(boolean isEntryPointEnabled) { in setEntryPointEnabled() argument
1320 mConsentCompositeStorage.setEntryPointEnabled(isEntryPointEnabled); in setEntryPointEnabled()
/packages/modules/AdServices/adservices/framework/java/android/app/adservices/
DIAdServicesManager.aidl236 boolean isEntryPointEnabled(); in isEntryPointEnabled() method
239 void setEntryPointEnabled(boolean isEntryPointEnabled); in setEntryPointEnabled() argument
DAdServicesManager.java592 public boolean isEntryPointEnabled() { in isEntryPointEnabled() method in AdServicesManager
594 return mService.isEntryPointEnabled(); in isEntryPointEnabled()
602 public void setEntryPointEnabled(boolean isEntryPointEnabled) { in setEntryPointEnabled() argument
604 mService.setEntryPointEnabled(isEntryPointEnabled); in setEntryPointEnabled()
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/
DAppSearchConsentStorageManagerTest.java611 private void setEntryPointEnabledTest(boolean isEntryPointEnabled) { in setEntryPointEnabledTest() argument
612 mAppSearchConsentStorageManager.setEntryPointEnabled(isEntryPointEnabled); in setEntryPointEnabledTest()
613 verify(mAppSearchConsentWorker).setEntryPointEnabled(isEntryPointEnabled); in setEntryPointEnabledTest()
618 when(mAppSearchConsentWorker.isEntryPointEnabled()).thenReturn(false); in isEntryPointEnabledTest_defaultFalseBit()
619 expect.that(mAppSearchConsentStorageManager.isEntryPointEnabled()).isFalse(); in isEntryPointEnabledTest_defaultFalseBit()
620 verify(mAppSearchConsentWorker).isEntryPointEnabled(); in isEntryPointEnabledTest_defaultFalseBit()
DAppSearchConsentWorkerTest.java1074 private void isEntryPointEnabledTest(boolean isEntryPointEnabled) { in isEntryPointEnabledTest() argument
1075 ExtendedMockito.doReturn(isEntryPointEnabled) in isEntryPointEnabledTest()
1082 assertThat(appSearchConsentWorker.isEntryPointEnabled()).isEqualTo(isEntryPointEnabled); in isEntryPointEnabledTest()
1118 private void setEntryPointEnabledTest(boolean isEntryPointEnabled) { in setEntryPointEnabledTest() argument
1125 () -> worker.setEntryPointEnabled(isEntryPointEnabled)); in setEntryPointEnabledTest()
DAppSearchConsentManagerTest.java614 when(mAppSearchConsentWorker.isEntryPointEnabled()).thenReturn(false); in isEntryPointEnabledTest_defaultFalseBit()
615 assertThat(mAppSearchConsentManager.isEntryPointEnabled()).isFalse(); in isEntryPointEnabledTest_defaultFalseBit()
616 verify(mAppSearchConsentWorker).isEntryPointEnabled(); in isEntryPointEnabledTest_defaultFalseBit()
DAppSearchUxStatesDaoTest.java163 Mockito.when(dao.isEntryPointEnabled()).thenReturn(false); in isEntryPointEnabledTest_trueBit()
178 Mockito.when(dao2.isEntryPointEnabled()).thenReturn(true); in isEntryPointEnabledTest_trueBit()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DConsentCompositeStorageTest.java87 consentCompositeStorage.isEntryPointEnabled(); in testAllReadMethods()
128 Mockito.verify(consentStorage).isEntryPointEnabled(); in verifyReadMethods()
DConsentManagerV2Test.java3964 assertThat(spyConsentManager.isEntryPointEnabled()).isTrue(); in isEntryPointEnabledTest_ppapiAndAdExtDataServiceOnly()
3966 assertThat(spyConsentManager.isEntryPointEnabled()).isFalse(); in isEntryPointEnabledTest_ppapiAndAdExtDataServiceOnly()
3976 assertThat(spyConsentManager.isEntryPointEnabled()).isFalse(); in isEntryPointEnabledTest_SystemServerOnly()
3978 verify(mMockIAdServicesManager).isEntryPointEnabled(); in isEntryPointEnabledTest_SystemServerOnly()
3980 doReturn(true).when(mMockIAdServicesManager).isEntryPointEnabled(); in isEntryPointEnabledTest_SystemServerOnly()
3983 assertThat(spyConsentManager.isEntryPointEnabled()).isTrue(); in isEntryPointEnabledTest_SystemServerOnly()
3985 verify(mMockIAdServicesManager, times(2)).isEntryPointEnabled(); in isEntryPointEnabledTest_SystemServerOnly()
3996 Boolean isEntryPointEnabled = spyConsentManager.isEntryPointEnabled(); in isEntryPointEnabledTest_PpApiAndSystemServer() local
3998 assertThat(isEntryPointEnabled).isFalse(); in isEntryPointEnabledTest_PpApiAndSystemServer()
4000 verify(mMockIAdServicesManager).isEntryPointEnabled(); in isEntryPointEnabledTest_PpApiAndSystemServer()
[all …]
DConsentManagerTest.java4239 assertThat(spyConsentManager.isEntryPointEnabled()).isTrue(); in isEntryPointEnabledTest_ppapiAndAdExtDataServiceOnly()
4241 assertThat(spyConsentManager.isEntryPointEnabled()).isFalse(); in isEntryPointEnabledTest_ppapiAndAdExtDataServiceOnly()
4251 assertThat(spyConsentManager.isEntryPointEnabled()).isFalse(); in isEntryPointEnabledTest_SystemServerOnly()
4253 verify(mMockIAdServicesManager).isEntryPointEnabled(); in isEntryPointEnabledTest_SystemServerOnly()
4255 doReturn(true).when(mMockIAdServicesManager).isEntryPointEnabled(); in isEntryPointEnabledTest_SystemServerOnly()
4258 assertThat(spyConsentManager.isEntryPointEnabled()).isTrue(); in isEntryPointEnabledTest_SystemServerOnly()
4260 verify(mMockIAdServicesManager, times(2)).isEntryPointEnabled(); in isEntryPointEnabledTest_SystemServerOnly()
4271 Boolean isEntryPointEnabled = spyConsentManager.isEntryPointEnabled(); in isEntryPointEnabledTest_PpApiAndSystemServer() local
4273 assertThat(isEntryPointEnabled).isFalse(); in isEntryPointEnabledTest_PpApiAndSystemServer()
4275 verify(mMockIAdServicesManager).isEntryPointEnabled(); in isEntryPointEnabledTest_PpApiAndSystemServer()
[all …]
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/consent/
DConsentManager.java488 public boolean isEntryPointEnabled() { in isEntryPointEnabled() method in ConsentManager
493 public void setEntryPointEnabled(boolean isEntryPointEnabled) { in setEntryPointEnabled() argument
496 isEntryPointEnabled, /* callerName */ in setEntryPointEnabled()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ui/ux/impl/
DUnsupportedUx.java42 || !consentManager.isEntryPointEnabled(); in isEligible()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/ux/
DUnsupportedUxTest.java76 doReturn(false).when(mConsentManager).isEntryPointEnabled(); in isEligibleTest_adultUserWithGaFlagOff()
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/
DAdServicesManagerService.java1224 public boolean isEntryPointEnabled() { in isEntryPointEnabled() method in AdServicesManagerService
1227 userId).isEntryPointEnabled()); in isEntryPointEnabled()
1232 public void setEntryPointEnabled(boolean isEntryPointEnabled) { in setEntryPointEnabled() argument
1241 .setEntryPointEnabled(isEntryPointEnabled); in setEntryPointEnabled()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/util/
DUxEngineUtilTest.java103 doReturn(true).when(mConsentManager).isEntryPointEnabled(); in setup()
142 doReturn(false).when(mConsentManager).isEntryPointEnabled(); in getEligibleUxCollectionTest_entryPointDisabled()

12