tomtom. ivi. platform. tools. api. testing. multidisplay
Scope which provides necessary data and useful routines for writing multi-display tests. It provides:
The context for onDisplay invocation.
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.
Prevents contraptions like:
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.
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 primary display.
Returns a TypeSafeMatcher for Root which matches the root which belongs to display with the given displayId.