Searched refs:consentSwitch (Results 1 – 5 of 5) sorted by relevance
93 UiObject consentSwitch = in flipConsent() local95 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 …]
139 UiObject2 consentSwitch = ApkTestUtil.getConsentSwitch(mDevice); in consentTest() local143 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() local153 if (consentSwitch.isChecked()) { in setConsentToFalse()154 performSwitchClick(dialogsOn, consentSwitch); in setConsentToFalse()
82 UiObject2 consentSwitch = ApkTestUtil.getConsentSwitch(mDevice); in topicBlockUnblockResetTest() local83 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()
73 UiObject2 consentSwitch = scrollToFindElement(device, By.clazz("android.widget.Switch")); in getConsentSwitch() local76 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()
83 UiObject2 consentSwitch = ApkTestUtil.getConsentSwitch(mDevice); in topicBlockUnblockTest() local84 if (!consentSwitch.isChecked()) { in topicBlockUnblockTest()85 consentSwitch.click(); in topicBlockUnblockTest()