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

androidx.test.annotation

Annotations

Beta Signifies that a public API (public class, method or field) is subject to incompatible changes, or even removal, in a future release. 
UiThreadTest Methods annotated with this annotation will be executed on the application's UI thread (or main thread).