Home
last modified time | relevance | path

Searched refs:ApkTestUtil (Results 1 – 16 of 16) sorted by relevance

/packages/modules/AdServices/adservices/apk/tests/util/java/com/android/adservices/ui/util/
DSettingsTestUtil.java20 import static com.android.adservices.ui.util.ApkTestUtil.getConsentSwitch;
47 ApkTestUtil.launchSettingView(device, LAUNCH_TIMEOUT); in settingsRemoveMainToggleAndMeasurementEntryTestUtil()
50 UiObject2 appButton = ApkTestUtil.scrollTo(device, R.string.settingsUI_apps_ga_title); in settingsRemoveMainToggleAndMeasurementEntryTestUtil()
53 UiObject2 topicsButton = ApkTestUtil.scrollTo(device, R.string.settingsUI_topics_ga_title); in settingsRemoveMainToggleAndMeasurementEntryTestUtil()
57 ApkTestUtil.scrollToAndClick(device, R.string.settingsUI_measurement_view_title); in settingsRemoveMainToggleAndMeasurementEntryTestUtil()
61 ApkTestUtil.getElement(device, R.string.settingsUI_measurement_switch_title); in settingsRemoveMainToggleAndMeasurementEntryTestUtil()
70 ApkTestUtil.launchSettingView(device, LAUNCH_TIMEOUT); in settingsRemoveMainToggleAndMeasurementEntryTestRvcUxUtil()
73 ApkTestUtil.scrollTo(device, R.string.settingsUI_measurement_view_title); in settingsRemoveMainToggleAndMeasurementEntryTestRvcUxUtil()
77 ApkTestUtil.scrollToAndClick(device, R.string.settingsUI_measurement_view_title); in settingsRemoveMainToggleAndMeasurementEntryTestRvcUxUtil()
81 ApkTestUtil.getElement(device, R.string.settingsUI_measurement_switch_title); in settingsRemoveMainToggleAndMeasurementEntryTestRvcUxUtil()
[all …]
DBlockedTopicsSettingsTestUtil.java64 ApkTestUtil.scrollToAndClick(device, R.string.settingsUI_topics_ga_title); in enterGaTopicsConsentView()
75 ApkTestUtil.getElement(device, R.string.settingsUI_dialog_block_topic_message); in blockATopicWithDialog()
78 ApkTestUtil.getString(R.string.settingsUI_dialog_block_topic_message)) in blockATopicWithDialog()
82 ApkTestUtil.getElement( in blockATopicWithDialog()
86 ApkTestUtil.getString(R.string.settingsUI_dialog_block_topic_positive_text)) in blockATopicWithDialog()
98 ApkTestUtil.getElement(device, R.string.settingsUI_unblock_topic_title, 0); in unblockATopicWithDialog()
106 ApkTestUtil.getElement(device, R.string.settingsUI_dialog_unblock_topic_message); in unblockATopicWithDialog()
109 ApkTestUtil.getString(R.string.settingsUI_dialog_unblock_topic_message)) in unblockATopicWithDialog()
113 ApkTestUtil.getElement( in unblockATopicWithDialog()
117 ApkTestUtil.getString( in unblockATopicWithDialog()
[all …]
DNotificationActivityTestUtil.java110 ApkTestUtil.getElement(device, R.string.notificationUI_more_button_text); in clickMoreToBottom()
122 moreButton = ApkTestUtil.getElement(device, R.string.notificationUI_more_button_text); in clickMoreToBottom()
DAdServicesUiTestCase.java78 ApkTestUtil.takeScreenshot(mDevice, getClass().getSimpleName() + "_" + getTestName() + "_"); in teardown()
DApkTestUtil.java50 public class ApkTestUtil { class
/packages/modules/AdServices/adservices/apk/tests/settings/src/com/android/adservices/ui/settings/
DDialogFragmentTest.java53 import com.android.adservices.ui.util.ApkTestUtil;
178 ApkTestUtil.takeScreenshot(sDevice, getClass().getSimpleName() + "_" + getTestName() + "_"); in teardown()
186 ApkTestUtil.scrollToAndClick(sDevice, R.string.settingsUI_topics_ga_title); in blockTopicDialogTest()
188 ApkTestUtil.getElement(sDevice, R.string.settingsUI_block_topic_title, 0); in blockTopicDialogTest()
194 ApkTestUtil.getElement(sDevice, R.string.settingsUI_dialog_block_topic_message); in blockTopicDialogTest()
196 ApkTestUtil.getElement( in blockTopicDialogTest()
204 blockTopicText = ApkTestUtil.getElement(sDevice, R.string.settingsUI_block_topic_title, 0); in blockTopicDialogTest()
210 ApkTestUtil.getElement(sDevice, R.string.settingsUI_dialog_block_topic_message); in blockTopicDialogTest()
212 ApkTestUtil.getElement(sDevice, R.string.settingsUI_dialog_negative_text); in blockTopicDialogTest()
225 ApkTestUtil.scrollToAndClick(sDevice, R.string.settingsUI_topics_ga_title); in unblockTopicDialogTest()
[all …]
DAppConsentSettingsUiAutomatorTest.java39 import com.android.adservices.ui.util.ApkTestUtil;
86 ApkTestUtil.takeScreenshot(sDevice, getClass().getSimpleName() + "_" + mTestName + "_"); in teardown()
186 UiObject2 mainSwitch = ApkTestUtil.getConsentSwitch(sDevice); in setPpApiConsentToGiven()
231 ApkTestUtil.scrollToAndClick(sDevice, R.string.settingsUI_apps_title); in appConsentTest()
237 assertThat(ApkTestUtil.getElement(sDevice, R.string.settingsUI_block_app_title)) in appConsentTest()
242 assertThat(ApkTestUtil.getElement(sDevice, R.string.settingsUI_block_app_title, 0)) in appConsentTest()
244 assertThat(ApkTestUtil.getElement(sDevice, R.string.settingsUI_blocked_apps_title, 0)) in appConsentTest()
246 assertThat(ApkTestUtil.getElement(sDevice, R.string.settingsUI_apps_view_no_apps_text, 0)) in appConsentTest()
251 ApkTestUtil.scrollToAndClick(sDevice, R.string.settingsUI_blocked_apps_title); in unblockAppConsent()
252 ApkTestUtil.scrollToAndClick(sDevice, R.string.settingsUI_unblock_app_title); in unblockAppConsent()
[all …]
DBlockedTopicsSettingsUiAutomatorTest.java34 import com.android.adservices.ui.util.ApkTestUtil;
73 ApkTestUtil.launchSettingView(mDevice, LAUNCHER_LAUNCH_TIMEOUT); in topicBlockUnblockResetTest()
82 UiObject2 consentSwitch = ApkTestUtil.getConsentSwitch(mDevice); in topicBlockUnblockResetTest()
100 ApkTestUtil.getElement(mDevice, R.string.settingsUI_block_topic_title, 0); in topicBlockUnblockResetTest()
107 ApkTestUtil.getElement(mDevice, R.string.settingsUI_topics_view_no_topics_ga_text); in topicBlockUnblockResetTest()
111 ApkTestUtil.scrollToAndClick(mDevice, R.string.settingsUI_view_blocked_topics_title); in topicBlockUnblockResetTest()
118 ApkTestUtil.getElement(mDevice, R.string.settingsUI_no_blocked_topics_ga_text); in topicBlockUnblockResetTest()
129 ApkTestUtil.scrollTo(mDevice, R.string.settingsUI_reset_topics_ga_title); in topicBlockUnblockResetTest()
133 consentSwitch = ApkTestUtil.scrollTo(mDevice, R.string.settingsUI_topics_switch_title); in topicBlockUnblockResetTest()
DConsentSettingsUiAutomatorTest.java31 import com.android.adservices.ui.util.ApkTestUtil;
137 ApkTestUtil.launchSettingViewGivenUx(mDevice, LAUNCH_TIMEOUT, "BETA_UX"); in consentTest()
139 UiObject2 consentSwitch = ApkTestUtil.getConsentSwitch(mDevice); in consentTest()
152 UiObject2 consentSwitch = ApkTestUtil.getConsentSwitch(mDevice); in setConsentToFalse()
162 ApkTestUtil.getElement(mDevice, R.string.settingsUI_dialog_opt_out_title); in performSwitchClick()
164 ApkTestUtil.getElement( in performSwitchClick()
/packages/modules/AdServices/adservices/apk/tests/notification/src/com/android/adservices/ui/notifications/
DNotificationActivityGAV2UiAutomatorTest.java21 import static com.android.adservices.ui.util.ApkTestUtil.getString;
35 import com.android.adservices.ui.util.ApkTestUtil;
74 ApkTestUtil.getElement( in moreButtonTest()
79 ApkTestUtil.getElement( in moreButtonTest()
91 ApkTestUtil.getElement(mDevice, R.string.notificationUI_left_control_button_text); in euAcceptFlowTest()
94 ApkTestUtil.getElement(mDevice, R.string.notificationUI_right_control_button_text); in euAcceptFlowTest()
103 ApkTestUtil.getElement(mDevice, R.string.notificationUI_header_ga_title_eu_v2); in euAcceptFlowTest()
109 ApkTestUtil.getElement( in euAcceptFlowTest()
113 ApkTestUtil.getElement( in euAcceptFlowTest()
128 title2 = ApkTestUtil.getElement(mDevice, R.string.notificationUI_header_ga_title_eu_v2); in euAcceptFlowTest()
[all …]
DNotificationActivityGAV2UxSelectorUiAutomatorTest.java23 import static com.android.adservices.ui.util.ApkTestUtil.getString;
37 import com.android.adservices.ui.util.ApkTestUtil;
77 ApkTestUtil.getElement( in euAcceptFlowTest()
82 ApkTestUtil.getElement( in euAcceptFlowTest()
97 ApkTestUtil.getElement(mDevice, R.string.notificationUI_header_ga_title_eu_v2); in euAcceptFlowTest()
102 ApkTestUtil.getElement( in euAcceptFlowTest()
106 ApkTestUtil.getElement( in euAcceptFlowTest()
113 ApkTestUtil.getElement( in euAcceptFlowTest()
117 ApkTestUtil.getElement( in euAcceptFlowTest()
132 title2 = ApkTestUtil.getElement(mDevice, R.string.notificationUI_header_ga_title_eu_v2); in euAcceptFlowTest()
[all …]
DNotificationActivityRvcUxSelectorUiAutomatorTest.java23 import static com.android.adservices.ui.util.ApkTestUtil.getString;
36 import com.android.adservices.ui.util.ApkTestUtil;
71 ApkTestUtil.getElement(mDevice, R.string.notificationUI_u18_notification_title); in acceptFlowTest()
77 ApkTestUtil.getElement( in acceptFlowTest()
81 ApkTestUtil.getElement( in acceptFlowTest()
92 ApkTestUtil.getElement(mDevice, R.string.notificationUI_u18_notification_title); in acceptFlowTest()
102 ApkTestUtil.getElement( in clickSettingsTest()
105 ApkTestUtil.getElement( in clickSettingsTest()
117 UiObject2 topicTitle = ApkTestUtil.getElement(mDevice, R.string.settingsUI_topics_ga_title); in clickSettingsTest()
120 ApkTestUtil.getElement(mDevice, R.string.settingsUI_u18_measurement_view_title); in clickSettingsTest()
DNotificationActivityU18UxSelectorUiAutomatorTest.java23 import static com.android.adservices.ui.util.ApkTestUtil.getString;
37 import com.android.adservices.ui.util.ApkTestUtil;
68 ApkTestUtil.getElement(mDevice, R.string.notificationUI_u18_notification_title); in acceptFlowTest()
74 ApkTestUtil.getElement( in acceptFlowTest()
78 ApkTestUtil.getElement( in acceptFlowTest()
89 ApkTestUtil.getElement(mDevice, R.string.notificationUI_u18_notification_title); in acceptFlowTest()
100 ApkTestUtil.getElement( in clickSettingsTest()
103 ApkTestUtil.getElement( in clickSettingsTest()
115 UiObject2 topicTitle = ApkTestUtil.getElement(mDevice, R.string.settingsUI_topics_ga_title); in clickSettingsTest()
118 ApkTestUtil.getElement(mDevice, R.string.settingsUI_u18_measurement_view_title); in clickSettingsTest()
DConsentNotificationTriggerTest.java40 import static com.android.adservices.ui.util.ApkTestUtil.getPageElement;
86 import com.android.adservices.ui.util.ApkTestUtil;
151 ApkTestUtil.takeScreenshot(sDevice, getClass().getSimpleName() + "_" + getTestName() + "_"); in tearDown()
846 ApkTestUtil.scrollToAndClick(sDevice, R.string.settingsUI_apps_ga_title); in testPasSettingsUpdatedAfterNotificationDisplayed()
849 ApkTestUtil.getElement(sDevice, R.string.settingsUI_apps_view_ga_subtitle); in testPasSettingsUpdatedAfterNotificationDisplayed()
866 ApkTestUtil.getElement(sDevice, R.string.settingsUI_pas_apps_view_body_text); in testPasSettingsUpdatedAfterNotificationDisplayed()
895 assertWithMessage("Button with text %s ", ApkTestUtil.getString(resId)) in assertNotNull()
/packages/modules/AdServices/adservices/apk/tests/settingsgauxselector/src/com/android/adservices/ui/settingsga/
DBlockedTopicsSettingsUxSelectorUiAutomatorTest.java38 import com.android.adservices.ui.util.ApkTestUtil;
78 ApkTestUtil.launchSettingView(mDevice, LAUNCHER_LAUNCH_TIMEOUT); in topicBlockUnblockTest()
83 UiObject2 consentSwitch = ApkTestUtil.getConsentSwitch(mDevice); in topicBlockUnblockTest()
100 ApkTestUtil.getElement(mDevice, R.string.settingsUI_block_topic_title, 0); in topicBlockUnblockTest()
106 ApkTestUtil.scrollTo(mDevice, R.string.settingsUI_topics_view_no_topics_ga_text); in topicBlockUnblockTest()
108 ApkTestUtil.getElement(mDevice, R.string.settingsUI_topics_view_no_topics_ga_text); in topicBlockUnblockTest()
112 ApkTestUtil.scrollToAndClick(mDevice, R.string.settingsUI_view_blocked_topics_title); in topicBlockUnblockTest()
119 ApkTestUtil.getElement(mDevice, R.string.settingsUI_no_blocked_topics_ga_text); in topicBlockUnblockTest()
/packages/modules/AdServices/adservices/apk/tests/settingsgaota/src/com/android/adservices/ui/
DOTAResourcesManagerTest.java42 import com.android.adservices.ui.util.ApkTestUtil;
81 Assume.assumeTrue(ApkTestUtil.isDeviceSupported()); in setUp()