Home
last modified time | relevance | path

Searched refs:ux (Results 1 – 25 of 88) sorted by relevance

1234

/packages/modules/AdServices/adservices/tests/cts/ui/libs/src/com/android/adservices/tests/ui/libs/
DAdservicesWorkflows.java73 UiConstants.UX ux, in testNotificationActivityFlow() argument
79 context, device, NOTIFICATION_PACKAGE, isEuDevice, ux, isV2, isGoSettings, isOptin); in testNotificationActivityFlow()
87 UiConstants.UX ux, in testNotificationActivityFlow() argument
97 switch (ux) { in testNotificationActivityFlow()
118 context, device, true, isEuDevice, ux, isV2, isGoSettings, isOptin); in testNotificationActivityFlow()
124 UiConstants.UX ux, in testSettingsPageFlow() argument
130 context, device, SETTINGS_PACKAGE, ux, isOptin, flipConsent, assertOptIn); in testSettingsPageFlow()
137 UiConstants.UX ux, in testSettingsPageFlow() argument
142 switch (ux) { in testSettingsPageFlow()
159 context, device, ux, isOptin, flipConsent, assertOptIn); in testSettingsPageFlow()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ui/ux/collection/
DPrivacySandboxUxCollection.java17 package com.android.adservices.service.ui.ux.collection;
28 import com.android.adservices.service.ui.ux.base.PrivacySandboxUx;
29 import com.android.adservices.service.ui.ux.impl.BetaUx;
30 import com.android.adservices.service.ui.ux.impl.GaUx;
31 import com.android.adservices.service.ui.ux.impl.RvcUx;
32 import com.android.adservices.service.ui.ux.impl.U18Ux;
33 import com.android.adservices.service.ui.ux.impl.UnsupportedUx;
56 int priority, PrivacySandboxUx ux, PrivacySandboxEnrollmentChannelCollection[] ecc) { in PrivacySandboxUxCollection() argument
58 mUx = ux; in PrivacySandboxUxCollection()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ui/data/
DUxStatesDao.java28 import com.android.adservices.service.ui.ux.collection.PrivacySandboxUxCollection;
87 public void setUx(@NonNull PrivacySandboxUxCollection ux) { in setUx() argument
90 mDatastore.put(uxCollection.toString(), ux.equals(uxCollection)); in setUx()
99 @NonNull PrivacySandboxUxCollection ux) { in getEnrollmentChannel()
101 ux.getEnrollmentChannelCollection()) { in getEnrollmentChannel()
114 @NonNull PrivacySandboxUxCollection ux, in setEnrollmentChannel()
118 ux.getEnrollmentChannelCollection()) { in setEnrollmentChannel()
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/
DUxUtil.java29 import com.android.adservices.service.ui.ux.collection.PrivacySandboxUxCollection;
49 PrivacySandboxUxCollection ux = getUx(context); in isUxStatesReady() local
51 && ux != null in isUxStatesReady()
52 && ux != PrivacySandboxUxCollection.UNSUPPORTED_UX; in isUxStatesReady()
59 .filter(ux -> ux.toString().equals(FlagsFactory.getFlags().getDebugUx())) in getUx()
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/
DAppSearchConsentManagerTest.java54 import com.android.adservices.service.ui.ux.collection.PrivacySandboxUxCollection;
665 for (PrivacySandboxUxCollection ux : PrivacySandboxUxCollection.values()) { in setUxTest()
666 mAppSearchConsentManager.setUx(ux); in setUxTest()
667 verify(mAppSearchConsentWorker).setUx(ux); in setUxTest()
673 for (PrivacySandboxUxCollection ux : PrivacySandboxUxCollection.values()) { in getEnrollmentChannelTest()
674 mAppSearchConsentManager.getEnrollmentChannel(ux); in getEnrollmentChannelTest()
675 verify(mAppSearchConsentWorker).getEnrollmentChannel(ux); in getEnrollmentChannelTest()
681 for (PrivacySandboxUxCollection ux : PrivacySandboxUxCollection.values()) { in setEnrollmentChannelTest()
683 ux.getEnrollmentChannelCollection()) { in setEnrollmentChannelTest()
684 mAppSearchConsentManager.setEnrollmentChannel(ux, channel); in setEnrollmentChannelTest()
[all …]
DAppSearchConsentStorageManagerTest.java54 import com.android.adservices.service.ui.ux.collection.PrivacySandboxUxCollection;
675 for (PrivacySandboxUxCollection ux : PrivacySandboxUxCollection.values()) { in setUxTest()
676 mAppSearchConsentStorageManager.setUx(ux); in setUxTest()
677 verify(mAppSearchConsentWorker).setUx(ux); in setUxTest()
683 for (PrivacySandboxUxCollection ux : PrivacySandboxUxCollection.values()) { in getEnrollmentChannelTest()
684 mAppSearchConsentStorageManager.getEnrollmentChannel(ux); in getEnrollmentChannelTest()
685 verify(mAppSearchConsentWorker).getEnrollmentChannel(ux); in getEnrollmentChannelTest()
691 for (PrivacySandboxUxCollection ux : PrivacySandboxUxCollection.values()) { in setEnrollmentChannelTest()
693 ux.getEnrollmentChannelCollection()) { in setEnrollmentChannelTest()
694 mAppSearchConsentStorageManager.setEnrollmentChannel(ux, channel); in setEnrollmentChannelTest()
[all …]
DAppSearchConsentWorkerTest.java57 import com.android.adservices.service.ui.ux.collection.PrivacySandboxUxCollection;
1262 for (PrivacySandboxUxCollection ux : PrivacySandboxUxCollection.values()) { in getUxTest_allUxs()
1263 ExtendedMockito.doReturn(ux) in getUxTest_allUxs()
1266 assertThat(appSearchConsentWorker.getUx()).isEqualTo(ux); in getUxTest_allUxs()
1273 for (PrivacySandboxUxCollection ux : PrivacySandboxUxCollection.values()) { in setUxTest_allUxsFailure()
1277 RuntimeException e = assertThrows(RuntimeException.class, () -> worker.setUx(ux)); in setUxTest_allUxsFailure()
1287 for (PrivacySandboxUxCollection ux : PrivacySandboxUxCollection.values()) { in setUxTest_allUxsSuccess()
1296 appSearchConsentWorker.setUx(ux); in setUxTest_allUxsSuccess()
1297 verify(dao).setUx(ux.toString()); in setUxTest_allUxsSuccess()
1305 for (PrivacySandboxUxCollection ux : PrivacySandboxUxCollection.values()) { in getEnrollmentChannelTest_allUxsAllEnrollmentChannels()
[all …]
DAppSearchUxStatesDaoTest.java31 import com.android.adservices.service.ui.ux.collection.PrivacySandboxUxCollection;
369 for (PrivacySandboxUxCollection ux : PrivacySandboxUxCollection.values()) { in getUxTest_allUxs()
370 Mockito.when(dao.getUx()).thenReturn(ux.toString()); in getUxTest_allUxs()
380 assertThat(result).isEqualTo(ux); in getUxTest_allUxs()
403 for (PrivacySandboxUxCollection ux : PrivacySandboxUxCollection.values()) { in getEnrollmentChannelTest_allUxsAllChannels()
405 ux.getEnrollmentChannelCollection()) { in getEnrollmentChannelTest_allUxsAllChannels()
418 ux, in getEnrollmentChannelTest_allUxsAllChannels()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/
DAppSearchUxStatesDao.java29 import com.android.adservices.service.ui.ux.collection.PrivacySandboxUxCollection;
82 @NonNull String ux, in AppSearchUxStatesDao() argument
94 this.mUx = ux; in AppSearchUxStatesDao()
231 public void setUx(@NonNull String ux) { in setUx() argument
232 mUx = ux; in setUx()
404 .filter(ux -> ux.toString().equals(dao.getUx())) in readUx()
414 @NonNull PrivacySandboxUxCollection ux, in readEnrollmentChannel() argument
421 return Stream.of(ux.getEnrollmentChannelCollection()) in readEnrollmentChannel()
DAppSearchConsentManager.java43 import com.android.adservices.service.ui.ux.collection.PrivacySandboxUxCollection;
609 public void setUx(PrivacySandboxUxCollection ux) { in setUx() argument
610 mAppSearchConsentWorker.setUx(ux); in setUx()
615 PrivacySandboxUxCollection ux) { in getEnrollmentChannel() argument
616 return mAppSearchConsentWorker.getEnrollmentChannel(ux); in getEnrollmentChannel()
621 PrivacySandboxUxCollection ux, in setEnrollmentChannel() argument
623 mAppSearchConsentWorker.setEnrollmentChannel(ux, enrollmentChannel); in setEnrollmentChannel()
DAppSearchConsentStorageManager.java44 import com.android.adservices.service.ui.ux.collection.PrivacySandboxUxCollection;
193 PrivacySandboxUxCollection ux) { in getEnrollmentChannel() argument
194 return mAppSearchConsentWorker.getEnrollmentChannel(ux); in getEnrollmentChannel()
534 PrivacySandboxUxCollection ux, in setEnrollmentChannel() argument
536 mAppSearchConsentWorker.setEnrollmentChannel(ux, enrollmentChannel); in setEnrollmentChannel()
559 public void setUx(PrivacySandboxUxCollection ux) { in setUx() argument
560 mAppSearchConsentWorker.setUx(ux); in setUx()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DAdServicesStorageManager.java36 import com.android.adservices.service.ui.ux.collection.PrivacySandboxUxCollection;
149 PrivacySandboxUxCollection ux) { in getEnrollmentChannel() argument
151 return Stream.of(ux.getEnrollmentChannelCollection()) in getEnrollmentChannel()
335 PrivacySandboxUxCollection ux, PrivacySandboxEnrollmentChannelCollection channel) { in setEnrollmentChannel() argument
359 public void setUx(PrivacySandboxUxCollection ux) { in setUx() argument
360 mAdServicesManager.setUx(ux.toString()); in setUx()
476 .filter(ux -> uxString.equals(ux.toString())) in convertUxString()
DAppConsentStorageManager.java29 import com.android.adservices.service.ui.ux.collection.PrivacySandboxUxCollection;
170 PrivacySandboxUxCollection ux) { in getEnrollmentChannel() argument
171 return mUxStatesDao.getEnrollmentChannel(ux); in getEnrollmentChannel()
211 public void setUx(PrivacySandboxUxCollection ux) { in setUx() argument
212 mUxStatesDao.setUx(ux); in setUx()
383 PrivacySandboxUxCollection ux, PrivacySandboxEnrollmentChannelCollection channel) { in setEnrollmentChannel() argument
384 mUxStatesDao.setEnrollmentChannel(ux, channel); in setEnrollmentChannel()
DIConsentStorage.java23 import com.android.adservices.service.ui.ux.collection.PrivacySandboxUxCollection;
118 @NonNull PrivacySandboxUxCollection ux) throws IOException; in getEnrollmentChannel()
241 @NonNull PrivacySandboxUxCollection ux, in setEnrollmentChannel()
255 void setUx(PrivacySandboxUxCollection ux) throws IOException; in setUx() argument
DConsentManager.java32 import static com.android.adservices.service.ui.ux.collection.PrivacySandboxUxCollection.U18_UX;
79 import com.android.adservices.service.ui.ux.collection.PrivacySandboxUxCollection;
2356 .filter(ux -> uxString.equals(ux.toString()))
2372 PrivacySandboxUxCollection ux = mUxStatesDao.getUx();
2378 if (ux == PrivacySandboxUxCollection.UNSUPPORTED_UX) {
2382 ux = PrivacySandboxUxCollection.U18_UX;
2386 ux = PrivacySandboxUxCollection.RVC_UX;
2389 return ux;
2395 public void setUx(PrivacySandboxUxCollection ux) {
2397 ConsentManagerV2.getInstance().setUx(ux);
[all …]
DConsentCompositeStorage.java25 import static com.android.adservices.service.ui.ux.collection.PrivacySandboxUxCollection.U18_UX;
38 import com.android.adservices.service.ui.ux.collection.PrivacySandboxUxCollection;
283 PrivacySandboxUxCollection ux) { in getEnrollmentChannel() argument
286 return storage.getEnrollmentChannel(ux); in getEnrollmentChannel()
364 public void setUx(PrivacySandboxUxCollection ux) { in setUx() argument
367 storage.setUx(ux); in setUx()
739 PrivacySandboxUxCollection ux, PrivacySandboxEnrollmentChannelCollection channel) { in setEnrollmentChannel() argument
742 storage.setEnrollmentChannel(ux, channel); in setEnrollmentChannel()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/stats/
DUIStats.java113 public void setUx(int ux) { in setUx() argument
114 mUx = ux; in setUx()
180 public @NonNull UIStats.Builder setUx(int ux) { in setUx() argument
181 mBuilding.mUx = ux; in setUx()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DAppConsentStorageManagerTest.java49 import com.android.adservices.service.ui.ux.collection.PrivacySandboxUxCollection;
200 for (PrivacySandboxUxCollection ux : PrivacySandboxUxCollection.values()) { in testGetEnrollmentChannel()
202 ux.getEnrollmentChannelCollection()) { in testGetEnrollmentChannel()
203 doReturn(channel).when(mUxStatesDaoMock).getEnrollmentChannel(ux); in testGetEnrollmentChannel()
204 expect.that(mAppConsentStorageManager.getEnrollmentChannel(ux)).isEqualTo(channel); in testGetEnrollmentChannel()
205 mAppConsentStorageManager.setEnrollmentChannel(ux, channel); in testGetEnrollmentChannel()
276 for (PrivacySandboxUxCollection ux : PrivacySandboxUxCollection.values()) { in testGetSetUx()
277 doReturn(ux).when(mUxStatesDaoMock).getUx(); in testGetSetUx()
278 expect.that(mAppConsentStorageManager.getUx()).isEqualTo(ux); in testGetSetUx()
280 mAppConsentStorageManager.setUx(ux); in testGetSetUx()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/data/
DUxStatesManagerTest.java41 import com.android.adservices.service.ui.ux.collection.PrivacySandboxUxCollection;
170 ux -> { in getUxTest_processStable()
171 doReturn(ux).when(mMockConsentManager).getUx(); in getUxTest_processStable()
175 assertThat(mUxStatesManager.getUx()).isEqualTo(ux); in getUxTest_processStable()
179 assertThat(mUxStatesManager.getUx()).isEqualTo(ux); in getUxTest_processStable()
189 ux -> { in getEnrollmentChannelTest_processStable()
191 ux.getEnrollmentChannelCollection()) { in getEnrollmentChannelTest_processStable()
192 doReturn(ux).when(mMockConsentManager).getUx(); in getEnrollmentChannelTest_processStable()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ui/util/
DUxEngineUtil.java31 import com.android.adservices.service.ui.ux.collection.PrivacySandboxUxCollection;
79 PrivacySandboxUxCollection ux, Context context, Flags flags) { in startBackgroundTasksUponConsent() argument
81 switch (ux) { in startBackgroundTasksUponConsent()
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/ui/
DNotificationLandingPage.java73 UiConstants.UX ux = UiConstants.UX.GA_UX; in testNotificationLandingPage() local
75 ux = UiConstants.UX.RVC_UX; in testNotificationLandingPage()
80 sContext, sDevice, true, ux, true, false, true); in testNotificationLandingPage()
DUiSettingsMainPage.java74 UiConstants.UX ux = UiConstants.UX.GA_UX; in testSettingsPage() local
76 ux = UiConstants.UX.RVC_UX; in testSettingsPage()
83 ux, in testSettingsPage()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ui/enrollment/base/
DPrivacySandboxEnrollmentChannel.java25 import com.android.adservices.service.ui.ux.collection.PrivacySandboxUxCollection;
36 PrivacySandboxUxCollection ux, in isEligible() argument
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ui/ux/impl/
DRvcUx.java16 package com.android.adservices.service.ui.ux.impl;
28 import com.android.adservices.service.ui.ux.base.PrivacySandboxUx;
DUnsupportedUx.java16 package com.android.adservices.service.ui.ux.impl;
28 import com.android.adservices.service.ui.ux.base.PrivacySandboxUx;

1234