Package-level declarations
Types
Scope which provides necessary data and useful routines for writing multi-display tests. It provides:
Represents a display ID.
The context for onDisplay invocation.
Functions
Creates an OnDisplayContext for the primary display.
Creates an OnDisplayContext for a secondary display. The display ID of the secondary display is provided by displayIdProvider.
Force to finish passenger activity. Passenger activity will be destroyed before any other activities lifecycle status changes.
Launches debug menu activity on secondary display using debug menu on primary screen.
Launches passenger's activity on secondary display using debug menu.
Move focus to ivi activity on primary display.
Move focus to ivi activity on secondary display.
Obtains the list of all available secondary displays. Throws IllegalStateException if there are no secondary displays available.
Activates Activity on the display specified in context and introduces a scope for actions and assertions. Lambda action is supplied with ActiveDisplayScope as a receiver. In this lambda it is important to always use ActiveDisplayScope.rootMatcher when obtaining a ViewInteraction.
Prevents contraptions like:
Returns a TypeSafeMatcher for Root which matches the root which belongs to any non primary display. Convenient to use if you have primary and one secondary display only.
Returns a TypeSafeMatcher for Root which matches the root which belongs to the given type-safe activityClass.
Returns a TypeSafeMatcher for Root which matches the root which belongs to the given arbitrary string activityClassName, which must contain a fully qualified class name, such as com.example.application.internal.TestActivity
.
Returns a TypeSafeMatcher for Root which matches the root which belongs to primary display.