# android.support.test.espresso.util

# android.support.test.espresso.util

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

## Classes

|-------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ActivityLifecycles](https://developer.android.com/reference/android/support/test/espresso/util/ActivityLifecycles)                       | Helper methods to understand ActivityLifecycle of the app.                                                                                                                |
| [EspressoOptional](https://developer.android.com/reference/android/support/test/espresso/util/EspressoOptional)\<T\>                      | This class is a wrapper around[Optional](https://developer.android.com/reference/com/google/common/base/Optional)in order to avoid having public references to Guava API. |
| [HumanReadables](https://developer.android.com/reference/android/support/test/espresso/util/HumanReadables)                               | Text converters for various Android objects.                                                                                                                              |
| [TreeIterables](https://developer.android.com/reference/android/support/test/espresso/util/TreeIterables)                                 | Utility methods for iterating over tree structured items.                                                                                                                 |
| [TreeIterables.ViewAndDistance](https://developer.android.com/reference/android/support/test/espresso/util/TreeIterables.ViewAndDistance) | Represents the distance a given view is from the root view.                                                                                                               |

-

  ## Classes

  - [ActivityLifecycles](https://developer.android.com/reference/android/support/test/espresso/util/ActivityLifecycles)
  - [EspressoOptional](https://developer.android.com/reference/android/support/test/espresso/util/EspressoOptional)
  - [HumanReadables](https://developer.android.com/reference/android/support/test/espresso/util/HumanReadables)
  - [TreeIterables](https://developer.android.com/reference/android/support/test/espresso/util/TreeIterables)
  - [TreeIterables.ViewAndDistance](https://developer.android.com/reference/android/support/test/espresso/util/TreeIterables.ViewAndDistance)