Home
last modified time | relevance | path

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

12

/packages/apps/Settings/tests/app/src/com/android/settings/password/
DSetupChooseLockPasswordAppTest.java26 import static android.support.test.espresso.matcher.ViewMatchers.withId;
61 onView(withId(R.id.cancel_button)) in testSkipDialogIsShown()
65 onView(withId(android.R.id.button1)).check(matches(isDisplayed())).perform(click()); in testSkipDialogIsShown()
73 onView(withId(R.id.clear_button)).check(matches( in clearNotVisible_when_activityLaunchedInitially()
80 onView(withId(R.id.password_entry)).perform(ViewActions.typeText("1234")) in clearNotEnabled_when_nothingEntered()
82 onView(withId(R.id.clear_button)).check(matches(isDisplayed())) in clearNotEnabled_when_nothingEntered()
89 onView(withId(R.id.password_entry)).perform(ViewActions.typeText("1234")) in clearEnabled_when_somethingEnteredToConfirm()
93 onView(withId(R.id.clear_button)).check(matches(isDisplayed())); in clearEnabled_when_somethingEnteredToConfirm()
DChooseLockPasswordTest.java25 import static android.support.test.espresso.matcher.ViewMatchers.withId;
59 onView(withId(R.id.clear_button)).check(matches( in clearNotVisible_when_activityLaunchedInitially()
66 onView(withId(R.id.password_entry)).perform(ViewActions.typeText("1234")) in clearNotEnabled_when_nothingEntered()
68 onView(withId(R.id.clear_button)).check(matches(isDisplayed())) in clearNotEnabled_when_nothingEntered()
75 onView(withId(R.id.password_entry)).perform(ViewActions.typeText("1234")) in clearEnabled_when_somethingEnteredToConfirm()
79 onView(withId(R.id.clear_button)).check(matches(isDisplayed())); in clearEnabled_when_somethingEnteredToConfirm()
DConfirmLockPasswordTest.java23 import static android.support.test.espresso.matcher.ViewMatchers.withId;
55 onView(withId(R.id.password_entry)).perform(typeText("1234")) in enterWrongPin_shouldShowErrorMessage()
57 onView(withId(R.id.errorText)).check(matches(withText(R.string.lockpassword_invalid_pin))); in enterWrongPin_shouldShowErrorMessage()
65 onView(withId(R.id.password_entry)).perform(typeText("1234")) in enterWrongPin_darkTheme_shouldShowErrorMessage()
67 onView(withId(R.id.errorText)).check(matches(withText(R.string.lockpassword_invalid_pin))); in enterWrongPin_darkTheme_shouldShowErrorMessage()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/
DProvisioningActivityTest.java31 import static android.support.test.espresso.matcher.ViewMatchers.withId;
312 onView(withId(android.R.id.button1)) in testErrorNoFactoryReset()
333 onView(withId(android.R.id.button1)) in testErrorFactoryReset()
353 onView(withId(android.R.id.button2)) in testCancelProfileOwner()
367 onView(withId(android.R.id.button1)) in testCancelProfileOwner()
434 onView(withId(android.R.id.button2)) in testCancelDeviceOwner()
448 onView(withId(android.R.id.button1)) in testCancelDeviceOwner()
498 onView(withId(R.id.setup_wizard_layout)); in launchActivityAndWait()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DUiBot.java25 import static android.support.test.espresso.matcher.ViewMatchers.withId;
70 withId(R.id.toolbar));
172 onView(withId(id)).perform(click()); in clickToolbarItem()
223 onView(withId(android.R.id.button1)).check(matches(hasFocus())); in assertDialogOkButtonFocused()
230 onView(withId(android.R.id.button1)).perform(click()); in clickDialogOkButton()
237 onView(withId(android.R.id.button2)).perform(click()); in clickDialogCancelButton()
DSortHeaderBot.java24 import static android.support.test.espresso.matcher.ViewMatchers.withId;
97 private static final Matcher<View> MATCHER = withId(R.id.dropdown_sort_widget);
99 withId(R.id.sort_dimen_dropdown),
102 withId(R.id.sort_arrow),
142 private static final Matcher<View> MATCHER = withId(R.id.table_header);
DSearchBot.java24 import static android.support.test.espresso.matcher.ViewMatchers.withId;
53 withId(R.id.option_menu_search),
61 withId(R.id.option_menu_search),
DSidebarBot.java22 import static android.support.test.espresso.matcher.ViewMatchers.withId;
99 onView(withId(R.id.drawer_layout)).perform(swipeRight()); in closeDrawer()
101 onView(withId(R.id.drawer_layout)).perform(swipeLeft()); in closeDrawer()
DBreadBot.java23 import static android.support.test.espresso.matcher.ViewMatchers.withId;
61 private static final Matcher<View> DROPDOWN_BREADCRUMB = withId(
64 private static final Matcher<View> HORIZONTAL_BREADCRUMB = withId(
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
DEncryptDeviceActivityTest.java25 import static android.support.test.espresso.matcher.ViewMatchers.withId;
128 onView(withId(R.id.encrypt_main_text)) in testProfileOwner()
135 onView(withId(R.id.encrypt_button)).perform(click()); in testProfileOwner()
151 onView(withId(R.id.encrypt_main_text)) in testDeviceOwner()
158 onView(withId(R.id.encrypt_button)).perform(click()); in testDeviceOwner()
/packages/apps/Settings/tests/app/src/com/android/settings/fingerprint/
DFingerprintEnrollFinishTest.java24 import static android.support.test.espresso.matcher.ViewMatchers.withId;
59 onView(withId(R.id.add_another_button)).perform(click()); in clickAddAnother_shouldLaunchEnrolling()
74 onView(withId(R.id.add_another_button)).perform(click()); in clickAddAnother_shouldPropagateResults()
82 onView(withId(R.id.next_button)).perform(click()); in clickNext_shouldFinish()
/packages/apps/Settings/tests/app/src/com/android/settings/notification/
DSoundSettingsIntegrationTest.java22 import static android.support.test.espresso.matcher.ViewMatchers.withId;
55 onView(withId(R.id.dashboard_container)) in soundPreferenceShowsCorrectSummaryOnSilentMode()
66 onView(withId(R.id.dashboard_container)).perform(RecyclerViewActions in soundPreferenceShowsCorrectSummaryOnVibrateMode()
78 onView(withId(R.id.dashboard_container)) in soundPreferenceShowsCorrectSummaryOnMaxVolume()
DAppNotificationSettingsTest.java35 import static android.support.test.espresso.matcher.ViewMatchers.withId;
58 onView(allOf(withId(android.R.id.button1), in launchNotificationSetting_shouldNotHaveAppInfoLink()
/packages/services/Telephony/tests/src/com/android/phone/
DRoamingDialogFragmentTest.java39 import static android.support.test.espresso.matcher.ViewMatchers.withId;
94 onView(withId(android.R.id.button1)).perform(click()); in dataRoamingEnabledWhenPositiveButtonClicked()
108 onView(withId(android.R.id.button2)).perform(click()); in dialogDismissedOnNegativeButtonClicked()
121 onView(withId(android.R.id.button2)).perform(click()); in dataRoamingStaysDisabledWhenDialogCanceled()
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/
DSortModel.java455 .withId(SORT_DIMENSION_ID_TITLE) in createModel()
467 .withId(SORT_DIMENSION_ID_SUMMARY) in createModel()
477 .withId(SORT_DIMENSION_ID_SIZE) in createModel()
488 .withId(SORT_DIMENSION_ID_FILE_TYPE) in createModel()
498 .withId(SORT_DIMENSION_ID_DATE) in createModel()
/packages/apps/Settings/tests/unit/src/com/android/settings/dashboard/
DPreferenceThemeTest.java38 import static android.support.test.espresso.matcher.ViewMatchers.withId;
68 onView(allOf(withId(R.id.icon_frame), withEffectiveVisibility(Visibility.VISIBLE))) in startSetupWizardLockScreen_preferenceIconSpaceNotReserved()
70 onView(withId(R.id.icon_container)).check(doesNotExist()); in startSetupWizardLockScreen_preferenceIconSpaceNotReserved()
/packages/apps/Settings/tests/app/src/com/android/settings/
DEncryptionInterstitialTest.java21 import static android.support.test.espresso.matcher.ViewMatchers.withId;
68 onView(withId(R.id.encrypt_require_password)).perform(click()); in clickYes_shouldRequirePassword()
82 onView(withId(R.id.encrypt_dont_require_password)).perform(click()); in clickNo_shouldNotRequirePassword()
/packages/apps/Settings/tests/unit/src/com/android/settings/
DRegulatoryInfoDisplayActivityTest.java42 import static android.support.test.espresso.matcher.ViewMatchers.withId;
96 onView(withId(R.id.regulatoryInfo)) in launchRegulatoryInfo_shouldNotCrash()
119 onView(withId(R.id.regulatoryInfo)) in launchRegulatoryInfo_withInfoImage_shouldDisplay()
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/preferences/
DEmergencyContactsPreferenceTest.java21 import static android.support.test.espresso.matcher.ViewMatchers.withId;
99 onView(withId(R.id.delete_contact)).perform(new RelaxedClick()); in testWidgetClick_positiveButton()
111 onView(withId(R.id.delete_contact)).perform(new RelaxedClick()); in testWidgetClick_negativeButton()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/terms/
DTermsActivityTest.java23 import static android.support.test.espresso.matcher.ViewMatchers.withId;
106 onView(withId(R.id.disclaimer_content)).check(isNotDisplayed()); in expanderTest()
128 onView(withId(R.id.disclaimer_content)).check(matches(withText("item1\nitem2\n"))); in expanderTest()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sorting/
DSortModelTest.java44 .withId(1)
53 .withId(2)
60 .withId(3)
/packages/apps/Settings/tests/app/src/com/android/settings/search/
DSearchFragmentEspressoTest.java31 import static android.support.test.espresso.matcher.ViewMatchers.withId;
48 onView(allOf(hasFocus(), withId(R.id.search_view))) in test_OpenKeyboardOnSearchLaunch()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/
DManagedProfileTest.java38 import static android.support.test.espresso.matcher.ViewMatchers.withId;
92 return onView(withId(R.id.next_button)); in testManagedProfile()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/
DWifiSettingsUiTest.java25 import static android.support.test.espresso.matcher.ViewMatchers.withId;
359 onView(withId(resourceId(ID, PASSWORD_LAYOUT))).check(matches(isDisplayed())); in wrongPasswordSavedNetwork()
360 onView(withId(resourceId(ID, PASSWORD))).check(matches(isDisplayed())); in wrongPasswordSavedNetwork()
/packages/apps/Email/tests/src/com/android/email/mail/store/
DImapStoreUnitTests.java635 private void expectLogin(MockTransport mockTransport, boolean startTls, boolean withId, in expectLogin() argument
640 expectCapability(mockTransport, withId, withUidPlus); in expectLogin()
648 expectCapability(mockTransport, withId, withUidPlus); in expectLogin()
652 if (withId) { in expectLogin()
667 private void expectCapability(MockTransport mockTransport, boolean withId, in expectCapability() argument
670 capabilityList += withId ? " iD" : ""; in expectCapability()

12