Home
last modified time | relevance | path

Searched refs:consentSwitch (Results 1 – 5 of 5) sorted by relevance

/packages/modules/AdServices/adservices/tests/cts/ui/libs/src/com/android/adservices/tests/ui/libs/pages/
DSettingsPages.java93 UiObject consentSwitch = in flipConsent() local
95 consentSwitch.waitForExists(PRIMITIVE_UI_OBJECTS_LAUNCH_TIMEOUT); in flipConsent()
96 assertThat(consentSwitch.exists()).isTrue(); in flipConsent()
101 boolean consentStatus = consentSwitch.isChecked(); in flipConsent()
103 consentSwitch.clickTopLeft(); in flipConsent()
105 assertThat(consentSwitch.isChecked()).isEqualTo(!consentStatus); in flipConsent()
108 consentSwitch.clickTopLeft(); in flipConsent()
111 assertThat(consentSwitch.isChecked()).isTrue(); in flipConsent()
113 assertThat(consentSwitch.isChecked()).isTrue(); in flipConsent()
116 consentSwitch.clickTopLeft(); in flipConsent()
[all …]
/packages/modules/AdServices/adservices/apk/tests/settings/src/com/android/adservices/ui/settings/
DConsentSettingsUiAutomatorTest.java139 UiObject2 consentSwitch = ApkTestUtil.getConsentSwitch(mDevice); in consentTest() local
143 performSwitchClick(dialogsOn, consentSwitch); in consentTest()
144 assertThat(consentSwitch.isChecked()).isTrue(); in consentTest()
147 performSwitchClick(dialogsOn, consentSwitch); in consentTest()
148 assertThat(consentSwitch.isChecked()).isFalse(); in consentTest()
152 UiObject2 consentSwitch = ApkTestUtil.getConsentSwitch(mDevice); in setConsentToFalse() local
153 if (consentSwitch.isChecked()) { in setConsentToFalse()
154 performSwitchClick(dialogsOn, consentSwitch); in setConsentToFalse()
DBlockedTopicsSettingsUiAutomatorTest.java82 UiObject2 consentSwitch = ApkTestUtil.getConsentSwitch(mDevice); in topicBlockUnblockResetTest() local
83 if (consentSwitch.isChecked()) { in topicBlockUnblockResetTest()
84 consentSwitch.click(); in topicBlockUnblockResetTest()
86 consentSwitch.click(); in topicBlockUnblockResetTest()
133 consentSwitch = ApkTestUtil.scrollTo(mDevice, R.string.settingsUI_topics_switch_title); in topicBlockUnblockResetTest()
137 consentSwitch.click(); in topicBlockUnblockResetTest()
138 assertThat(consentSwitch.isChecked()).isFalse(); in topicBlockUnblockResetTest()
/packages/modules/AdServices/adservices/apk/tests/util/java/com/android/adservices/ui/util/
DApkTestUtil.java73 UiObject2 consentSwitch = scrollToFindElement(device, By.clazz("android.widget.Switch")); in getConsentSwitch() local
76 if (device.getDisplayHeight() - consentSwitch.getVisibleBounds().centerY() < 100) { in getConsentSwitch()
78 consentSwitch.getVisibleBounds().centerX(), in getConsentSwitch()
80 consentSwitch.getVisibleBounds().centerX(), in getConsentSwitch()
85 return consentSwitch; in getConsentSwitch()
/packages/modules/AdServices/adservices/apk/tests/settingsgauxselector/src/com/android/adservices/ui/settingsga/
DBlockedTopicsSettingsUxSelectorUiAutomatorTest.java83 UiObject2 consentSwitch = ApkTestUtil.getConsentSwitch(mDevice); in topicBlockUnblockTest() local
84 if (!consentSwitch.isChecked()) { in topicBlockUnblockTest()
85 consentSwitch.click(); in topicBlockUnblockTest()