Package org.robolectric.shadows
Class ShadowUiAutomation
java.lang.Object
org.robolectric.shadows.ShadowUiAutomation
Shadow for
UiAutomation
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
injectInputEvent
(InputEvent event) Injects a motion event into the appropriate window, seeUiAutomation.injectInputEvent(InputEvent, boolean)
.protected boolean
injectInputEvent
(InputEvent event, boolean sync) protected void
setAnimationScale
(float scale) static void
setAnimationScaleCompat
(float scale) Sets the animation scale, seeUiAutomation.setAnimationScale(float)
.protected boolean
setRotation
(int rotation) protected Bitmap
protected void
-
Constructor Details
-
ShadowUiAutomation
public ShadowUiAutomation()
-
-
Method Details
-
setAnimationScaleCompat
public static void setAnimationScaleCompat(float scale) Sets the animation scale, seeUiAutomation.setAnimationScale(float)
. Provides backwards compatible access to SDKs < T. -
setAnimationScale
-
setRotation
-
throwIfNotConnectedLocked
-
takeScreenshot
- Throws:
Exception
-
injectInputEvent
Injects a motion event into the appropriate window, seeUiAutomation.injectInputEvent(InputEvent, boolean)
. This can be used through theUiAutomation
API, this method is provided for backwards compatibility with SDK < 18. -
injectInputEvent
-