The second Android 11 Developer Preview is now available, test it out and share 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