- IdlingPolicies - Class in com.google.android.apps.common.testing.ui.espresso
-
Allows users fine grain control over idling policies.
- IdlingPolicy - Class in com.google.android.apps.common.testing.ui.espresso
-
Allows users to control idling idleTimeouts in Espresso.
- IdlingResource - Interface in com.google.android.apps.common.testing.ui.espresso
-
Represents a resource of an application under test which can cause asynchronous background work
to happen during test execution (e.g.
- IdlingResource.ResourceCallback - Interface in com.google.android.apps.common.testing.ui.espresso
-
Registered by an
IdlingResource
to notify Espresso of a transition to idle.
- IdlingResourceRegistry - Class in com.google.android.apps.common.testing.ui.espresso.base
-
- IdlingResourceRegistry(Looper) - Constructor for class com.google.android.apps.common.testing.ui.espresso.base.IdlingResourceRegistry
-
- IdlingResourceTimeoutException - Exception in com.google.android.apps.common.testing.ui.espresso
-
Indicates that an
IdlingResource
, which has been registered with the framework, has not
idled within the allowed time.
- IdlingResourceTimeoutException(List<String>) - Constructor for exception com.google.android.apps.common.testing.ui.espresso.IdlingResourceTimeoutException
-
- inAdapterView(<any>) - Method in class com.google.android.apps.common.testing.ui.espresso.DataInteraction
-
Selects a particular adapter view to operate on, by default we operate on any adapter view
on the screen.
- includeViewHierarchy(boolean) - Method in class com.google.android.apps.common.testing.ui.espresso.AmbiguousViewMatcherException.Builder
-
- includeViewHierarchy(boolean) - Method in class com.google.android.apps.common.testing.ui.espresso.NoMatchingViewException.Builder
-
- increment() - Method in class com.google.android.apps.common.testing.ui.espresso.contrib.CountingIdlingResource
-
Increments the count of in-flight transactions to the resource being monitored.
- initialize(Object...) - Static method in class com.google.android.apps.common.testing.ui.espresso.GraphHolder
-
- InjectEventSecurityException - Exception in com.google.android.apps.common.testing.ui.espresso
-
An checked Exception
indicating that event injection failed with a
SecurityException
.
- InjectEventSecurityException(String) - Constructor for exception com.google.android.apps.common.testing.ui.espresso.InjectEventSecurityException
-
- InjectEventSecurityException(Throwable) - Constructor for exception com.google.android.apps.common.testing.ui.espresso.InjectEventSecurityException
-
- InjectEventSecurityException(String, Throwable) - Constructor for exception com.google.android.apps.common.testing.ui.espresso.InjectEventSecurityException
-
- injectKeyEvent(KeyEvent) - Method in interface com.google.android.apps.common.testing.ui.espresso.UiController
-
Injects a key event into the application.
- injectMotionEvent(MotionEvent) - Method in interface com.google.android.apps.common.testing.ui.espresso.UiController
-
Injects a motion event into the application.
- injectString(String) - Method in interface com.google.android.apps.common.testing.ui.espresso.UiController
-
Types a string into the application using series of KeyEvent
s.
- inRoot(<any>) - Method in class com.google.android.apps.common.testing.ui.espresso.DataInteraction
-
Causes this data interaction to work within the Root specified by the given root matcher.
- inRoot(<any>) - Method in class com.google.android.apps.common.testing.ui.espresso.ViewInteraction
-
Makes this ViewInteraction scoped to the root selected by the given root matcher.
- isAssignableFrom(Class<? extends View>) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
Returns a matcher that matches Views which are an instance of or subclass of the provided
class.
- isChecked() - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
Returns a matcher that accepts if and only if the view is a CompoundButton (or subtype of) and
is in checked state.
- isClickable() - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
Returns a matcher that matches View
s that are clickable.
- isCompletelyDisplayed() - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
Returns a matcher which only accepts a view whose height and width fit perfectly within
the currently displayed region of this view.
- isDataRenderedWithinAdapterView(AdapterView<? extends Adapter>, AdapterViewProtocol.AdaptedData) - Method in interface com.google.android.apps.common.testing.ui.espresso.action.AdapterViewProtocol
-
Indicates whether or not there now exists a descendant view within adapterView that
is rendering this data.
- isDescendantOfA(<any>) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
Returns a matcher that matches View
s based on the given ancestor type.
- isDialog() - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.RootMatchers
-
Matches
Root
s that are dialogs (i.e.
- isDisplayed() - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
Returns a matcher that matches View
s that are currently displayed on the screen to the
user.
- isDisplayingAtLeast(int) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
Returns a matcher which accepts a view so long as a given percentage of that view's area is
not obscured by any other view and is thus visible to the user.
- isEnabled() - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.PreferenceMatchers
-
- isEnabled() - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
Returns a matcher that matches View
s that are enabled.
- isFocusable() - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.RootMatchers
-
Matches
Root
s that can take window focus.
- isFocusable() - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
Returns a matcher that matches View
s that are focusable.
- isIdleNow() - Method in class com.google.android.apps.common.testing.ui.espresso.contrib.CountingIdlingResource
-
- isIdleNow() - Method in interface com.google.android.apps.common.testing.ui.espresso.IdlingResource
-
Returns true
if resource is currently idle.
- isNotChecked() - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
Returns a matcher that accepts if and only if the view is a CompoundButton (or subtype of) and
is not in checked state.
- isRoot() - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
Returns a matcher that matches root View
.
- isTouchable() - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.RootMatchers
-
Matches
Root
s that can receive touch events.
- perform(UiController, View) - Method in class com.google.android.apps.common.testing.ui.espresso.action.AdapterDataLoaderAction
-
- perform(UiController, View) - Method in class com.google.android.apps.common.testing.ui.espresso.action.ClearTextAction
-
- perform(UiController, View) - Method in class com.google.android.apps.common.testing.ui.espresso.action.CloseKeyboardAction
-
- perform(UiController, View) - Method in class com.google.android.apps.common.testing.ui.espresso.action.EditorAction
-
- perform(UiController, View) - Method in class com.google.android.apps.common.testing.ui.espresso.action.GeneralClickAction
-
- perform(UiController, View) - Method in class com.google.android.apps.common.testing.ui.espresso.action.GeneralSwipeAction
-
- perform(UiController, View) - Method in class com.google.android.apps.common.testing.ui.espresso.action.KeyEventAction
-
- perform(UiController, View) - Method in class com.google.android.apps.common.testing.ui.espresso.action.ScrollToAction
-
- perform(UiController, View) - Method in class com.google.android.apps.common.testing.ui.espresso.action.TypeTextAction
-
- perform(ViewAction...) - Method in class com.google.android.apps.common.testing.ui.espresso.DataInteraction
-
Performs an action on the view after we force the data to be loaded.
- perform(UiController, View) - Method in interface com.google.android.apps.common.testing.ui.espresso.ViewAction
-
Performs this action on the given view.
- perform(ViewAction...) - Method in class com.google.android.apps.common.testing.ui.espresso.ViewInteraction
-
Performs the given action(s) on the view selected by the current view matcher.
- PerformException - Exception in com.google.android.apps.common.testing.ui.espresso
-
Indicates that an exception occurred while performing a ViewAction on the UI thread.
- PerformException.Builder - Class in com.google.android.apps.common.testing.ui.espresso
-
- PerformException.Builder() - Constructor for class com.google.android.apps.common.testing.ui.espresso.PerformException.Builder
-
- PrecisionDescriber - Interface in com.google.android.apps.common.testing.ui.espresso.action
-
Interface to implement size of click area.
- PreferenceMatchers - Class in com.google.android.apps.common.testing.ui.espresso.matcher
-
A collection of hamcrest matchers that match Preference
s.
- Press - Enum in com.google.android.apps.common.testing.ui.espresso.action
-
Returns different touch target sizes.
- pressBack() - Static method in class com.google.android.apps.common.testing.ui.espresso.action.ViewActions
-
Returns an action that clicks the back button.
- pressBack() - Static method in class com.google.android.apps.common.testing.ui.espresso.Espresso
-
Press on the back button.
- pressImeActionButton() - Static method in class com.google.android.apps.common.testing.ui.espresso.action.ViewActions
-
Returns an action that presses the current action button (next, done, search, etc) on the IME
(Input Method Editor).
- pressKey(int) - Static method in class com.google.android.apps.common.testing.ui.espresso.action.ViewActions
-
Returns an action that presses the key specified by the keyCode (eg.
- pressKey(EspressoKey) - Static method in class com.google.android.apps.common.testing.ui.espresso.action.ViewActions
-
Returns an action that presses the specified key with the specified modifiers.
- pressMenuKey() - Static method in class com.google.android.apps.common.testing.ui.espresso.action.ViewActions
-
Returns an action that presses the hardware menu key.
- provideCompatAsyncTaskMonitor(ThreadPoolExecutorExtractor) - Method in class com.google.android.apps.common.testing.ui.espresso.base.BaseLayerModule
-
- provideEventInjector() - Method in class com.google.android.apps.common.testing.ui.espresso.base.BaseLayerModule
-
- provideKnownRoots(RootsOracle) - Method in class com.google.android.apps.common.testing.ui.espresso.base.BaseLayerModule
-
- provideLifecycleMonitor() - Method in class com.google.android.apps.common.testing.ui.espresso.base.BaseLayerModule
-
- provideMainLooper() - Method in class com.google.android.apps.common.testing.ui.espresso.base.BaseLayerModule
-
- provideMainThreadExecutor(Looper) - Method in class com.google.android.apps.common.testing.ui.espresso.base.BaseLayerModule
-
- provideSdkAsyncTaskMonitor(ThreadPoolExecutorExtractor) - Method in class com.google.android.apps.common.testing.ui.espresso.base.BaseLayerModule
-
- provideTargetContext() - Method in class com.google.android.apps.common.testing.ui.espresso.base.BaseLayerModule
-
- provideUiController(UiControllerImpl) - Method in class com.google.android.apps.common.testing.ui.espresso.base.BaseLayerModule
-
- scrollTo() - Static method in class com.google.android.apps.common.testing.ui.espresso.action.ViewActions
-
Returns an action that scrolls to the view.
View preconditions:
must be a descendant of ScrollView
must have visibility set to View.VISIBLE
- ScrollToAction - Class in com.google.android.apps.common.testing.ui.espresso.action
-
Enables scrolling to the given view.
- ScrollToAction() - Constructor for class com.google.android.apps.common.testing.ui.espresso.action.ScrollToAction
-
- selectedDescendantsMatch(<any>, <any>) - Static method in class com.google.android.apps.common.testing.ui.espresso.assertion.ViewAssertions
-
Returns a generic
ViewAssertion
that asserts that the descendant views selected by the
selector match the specified matcher.
- sendSwipe(UiController, float[], float[], float[]) - Method in interface com.google.android.apps.common.testing.ui.espresso.action.Swiper
-
Swipes from startCoordinates
to endCoordinates
using the given
uiController
to send MotionEvent
s.
- sendTap(UiController, float[], float[]) - Method in interface com.google.android.apps.common.testing.ui.espresso.action.Tapper
-
Sends a MotionEvent to the given UiController.
- setFailureHandler(FailureHandler) - Static method in class com.google.android.apps.common.testing.ui.espresso.Espresso
-
- setIdlingResourceTimeout(long, TimeUnit) - Static method in class com.google.android.apps.common.testing.ui.espresso.IdlingPolicies
-
Updates the IdlingPolicy used by IdlingResourceRegistry to determine when IdlingResources
timeout.
- setMasterPolicyTimeout(long, TimeUnit) - Static method in class com.google.android.apps.common.testing.ui.espresso.IdlingPolicies
-
Updates the IdlingPolicy used in UiController.loopUntil to detect AppNotIdleExceptions.
- standardProtocol() - Static method in class com.google.android.apps.common.testing.ui.espresso.action.AdapterViewProtocols
-
Creates an implementation of AdapterViewProtocol that can work with AdapterViews that do not
break method contracts on AdapterView.
- supportsInputMethods() - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
Returns a matcher that matches views that support input methods.
- Swipe - Enum in com.google.android.apps.common.testing.ui.espresso.action
-
Executes different swipe types to given positions.
- swipeLeft() - Static method in class com.google.android.apps.common.testing.ui.espresso.action.ViewActions
-
Returns an action that performs a swipe right-to-left across the vertical center of the
view.
View constraints:
must be displayed on screen
- Swiper - Interface in com.google.android.apps.common.testing.ui.espresso.action
-
Interface to implement different swipe types.
- Swiper.Status - Enum in com.google.android.apps.common.testing.ui.espresso.action
-
The result of the swipe.
- swipeRight() - Static method in class com.google.android.apps.common.testing.ui.espresso.action.ViewActions
-
Returns an action that performs a swipe left-to-right across the vertical center of the
view.
View constraints:
must be displayed on screen
- valueOf(String) - Static method in enum com.google.android.apps.common.testing.ui.espresso.action.GeneralLocation
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.android.apps.common.testing.ui.espresso.action.Press
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.android.apps.common.testing.ui.espresso.action.Swipe
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.android.apps.common.testing.ui.espresso.action.Swiper.Status
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.android.apps.common.testing.ui.espresso.action.Tap
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.android.apps.common.testing.ui.espresso.action.Tapper.Status
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers.Visibility
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.google.android.apps.common.testing.ui.espresso.action.GeneralLocation
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.google.android.apps.common.testing.ui.espresso.action.Press
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.google.android.apps.common.testing.ui.espresso.action.Swipe
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.google.android.apps.common.testing.ui.espresso.action.Swiper.Status
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.google.android.apps.common.testing.ui.espresso.action.Tap
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.google.android.apps.common.testing.ui.espresso.action.Tapper.Status
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers.Visibility
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- ViewAction - Interface in com.google.android.apps.common.testing.ui.espresso
-
Responsible for performing an interaction on the given View element.
- ViewActions - Class in com.google.android.apps.common.testing.ui.espresso.action
-
- ViewAssertion - Interface in com.google.android.apps.common.testing.ui.espresso
-
Responsible for performing assertions on a View element.
- ViewAssertions - Class in com.google.android.apps.common.testing.ui.espresso.assertion
-
- ViewFinder - Interface in com.google.android.apps.common.testing.ui.espresso
-
Uses matchers to locate particular views within the view hierarchy.
- ViewFinderImpl - Class in com.google.android.apps.common.testing.ui.espresso.base
-
- ViewInteraction - Class in com.google.android.apps.common.testing.ui.espresso
-
Provides the primary interface for test authors to perform actions or asserts on views.
- ViewMatchers - Class in com.google.android.apps.common.testing.ui.espresso.matcher
-
A collection of hamcrest matchers that match View
s.
- ViewMatchers.Visibility - Enum in com.google.android.apps.common.testing.ui.espresso.matcher
-
Enumerates the possible list of values for View.getVisibility().
- withActionDescription(String) - Method in class com.google.android.apps.common.testing.ui.espresso.PerformException.Builder
-
- withAdapterViews(List<View>) - Method in class com.google.android.apps.common.testing.ui.espresso.NoMatchingViewException.Builder
-
- withAdapterViewWarning(<any>) - Method in class com.google.android.apps.common.testing.ui.espresso.NoMatchingViewException.Builder
-
- withAltPressed(boolean) - Method in class com.google.android.apps.common.testing.ui.espresso.action.EspressoKey.Builder
-
Sets the ALT_ON meta state of the resulting key.
- withCause(Throwable) - Method in class com.google.android.apps.common.testing.ui.espresso.PerformException.Builder
-
- withChild(<any>) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
A matcher that returns true if and only if the view's child is accepted by the provided
matcher.
- withClassName(<any>) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
Returns a matcher that matches Views with class name matching the given matcher.
- withContentDescription(String) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
Returns an Matcher
that matches View
s based on content description property
value.
- withContentDescription(<any>) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
Returns an Matcher
that matches View
s based on content description property
value.
- withCtrlPressed(boolean) - Method in class com.google.android.apps.common.testing.ui.espresso.action.EspressoKey.Builder
-
On Honeycomb and above, sets the CTRL_ON meta state of the resulting key.
- withData(Object) - Method in class com.google.android.apps.common.testing.ui.espresso.action.AdapterViewProtocol.AdaptedData.Builder
-
- withDecorView(<any>) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.RootMatchers
-
Matches
Root
s with decor views that match the given view matcher.
- withDecorView(View) - Method in class com.google.android.apps.common.testing.ui.espresso.Root.Builder
-
- withEffectiveVisibility(ViewMatchers.Visibility) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
Returns a matcher that matches View
s that have "effective" visibility set to the given
value.
- withId(int) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
Sugar for withId(is(int)).
- withId(<any>) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
Returns a matcher that matches View
s based on resource ids.
- withKey(String) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.PreferenceMatchers
-
- withKey(<any>) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.PreferenceMatchers
-
- withKeyCode(int) - Method in class com.google.android.apps.common.testing.ui.espresso.action.EspressoKey.Builder
-
- withOpaqueToken(Object) - Method in class com.google.android.apps.common.testing.ui.espresso.action.AdapterViewProtocol.AdaptedData.Builder
-
- withOtherAmbiguousViews(View...) - Method in class com.google.android.apps.common.testing.ui.espresso.AmbiguousViewMatcherException.Builder
-
- withParent(<any>) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
A matcher that accepts a view if and only if the view's parent is accepted by the provided
matcher.
- withRootView(View) - Method in class com.google.android.apps.common.testing.ui.espresso.AmbiguousViewMatcherException.Builder
-
- withRootView(View) - Method in class com.google.android.apps.common.testing.ui.espresso.NoMatchingViewException.Builder
-
- withShiftPressed(boolean) - Method in class com.google.android.apps.common.testing.ui.espresso.action.EspressoKey.Builder
-
Sets the SHIFT_ON meta state of the resulting key.
- withSummary(int) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.PreferenceMatchers
-
- withSummaryText(String) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.PreferenceMatchers
-
- withSummaryText(<any>) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.PreferenceMatchers
-
- withTagKey(int) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
Returns a matcher that matches View
based on tag keys.
- withTagKey(int, <any>) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
Returns a matcher that matches View
s based on tag keys.
- withTagValue(<any>) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
Returns a matcher that matches View
s based on tag property values.
- withText(String) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
Returns a matcher that matches TextView
based on it's text property value.
- withText(<any>) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
Returns a matcher that matches TextView
s based on text property value.
- withText(int) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers
-
Returns a matcher that matches a descendant of TextView
that is displaying the string
associated with the given resource id.
- withTitle(int) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.PreferenceMatchers
-
- withTitleText(String) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.PreferenceMatchers
-
- withTitleText(<any>) - Static method in class com.google.android.apps.common.testing.ui.espresso.matcher.PreferenceMatchers
-
- withView1(View) - Method in class com.google.android.apps.common.testing.ui.espresso.AmbiguousViewMatcherException.Builder
-
- withView2(View) - Method in class com.google.android.apps.common.testing.ui.espresso.AmbiguousViewMatcherException.Builder
-
- withViewDescription(String) - Method in class com.google.android.apps.common.testing.ui.espresso.PerformException.Builder
-
- withViewMatcher(<any>) - Method in class com.google.android.apps.common.testing.ui.espresso.AmbiguousViewMatcherException.Builder
-
- withViewMatcher(<any>) - Method in class com.google.android.apps.common.testing.ui.espresso.NoMatchingViewException.Builder
-
- withWindowLayoutParams(WindowManager.LayoutParams) - Method in class com.google.android.apps.common.testing.ui.espresso.Root.Builder
-