Android 12 Developer Preview is here! Try it out, and give us your feedback!

androidx.test.platform.ui

Interfaces

UiController Provides base-level UI operations (such as injection of MotionEvents) that can be used to build user actions such as clicks, scrolls, swipes, etc. 

Exceptions

InjectEventSecurityException An checked Exception indicating that event injection failed with a SecurityException