# HumanReadables

Summary:[Methods](https://developer.android.com/reference/android/support/test/espresso/util/HumanReadables#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/test/espresso/util/HumanReadables#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/test/espresso/util/HumanReadables#)  

# HumanReadables

| 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).

`
public

final

class
HumanReadables
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object.html)`


``


`

|---|---------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||
| ↳ | android.support.test.espresso.util.HumanReadables |

<br />

*** ** * ** ***

Text converters for various Android objects.

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                       ### Public methods                                                                                                                                                                                                                                                                                                                                                                                                                        ||
|-----------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` static `[String](https://developer.android.com/reference/java/lang/String.html) | ` `[describe](https://developer.android.com/reference/android/support/test/espresso/util/HumanReadables#describe(android.database.Cursor))`(`[Cursor](https://developer.android.com/reference/android/database/Cursor.html)` c) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ` static `[String](https://developer.android.com/reference/java/lang/String.html) | ` `[describe](https://developer.android.com/reference/android/support/test/espresso/util/HumanReadables#describe(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` v) ` Transforms an arbitrary view into a string with (hopefully) enough debug info.                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ` static `[String](https://developer.android.com/reference/java/lang/String.html) | ` `[getViewHierarchyErrorMessage](https://developer.android.com/reference/android/support/test/espresso/util/HumanReadables#getViewHierarchyErrorMessage(android.view.View, java.util.List<android.view.View>, java.lang.String, java.lang.String))`(`[View](https://developer.android.com/reference/android/view/View.html)` rootView, `[List](https://developer.android.com/reference/java/util/List.html)`<`[View](https://developer.android.com/reference/android/view/View.html)`> problemViews, `[String](https://developer.android.com/reference/java/lang/String.html)` errorHeader, `[String](https://developer.android.com/reference/java/lang/String.html)` problemViewSuffix) ` Prints out an error message feature the view hierarchy starting at the rootView. |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/test/espresso/util/HumanReadables#)From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)` ` |-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object.html)          | ` clone() `                                                                                | | ` boolean`                                                                          | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` void`                                                                             | ` finalize() `                                                                             | | ` final `[Class](https://developer.android.com/reference/java/lang/Class.html)`<?>` | ` getClass() `                                                                             | | ` int`                                                                              | ` hashCode() `                                                                             | | ` final void`                                                                       | ` notify() `                                                                               | | ` final void`                                                                       | ` notifyAll() `                                                                            | | ` `[String](https://developer.android.com/reference/java/lang/String.html)          | ` toString() `                                                                             | | ` final void`                                                                       | ` wait(long arg0, int arg1) `                                                              | | ` final void`                                                                       | ` wait(long arg0) `                                                                        | | ` final void`                                                                       | ` wait() `                                                                                 | ||

## Public methods

### describe

```
String describe (Cursor c)
```

<br />

<br />

|      Parameters      ||
|-----|-----------------|
| `c` | `Cursor` <br /> |

|                                     Returns                                     ||
|-------------------------------------------------------------------------|--------|
| [String](https://developer.android.com/reference/java/lang/String.html) | <br /> |

### describe

```
String describe (View v)
```

Transforms an arbitrary view into a string with (hopefully) enough debug info.

<br />

|            Parameters             ||
|-----|------------------------------|
| `v` | `View`: nullable view <br /> |

|                                                     Returns                                                     ||
|-------------------------------------------------------------------------|----------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String.html) | a string for human consumption. <br /> |

### getViewHierarchyErrorMessage

```
String getViewHierarchyErrorMessage (View rootView, 
                List<View> problemViews, 
                String errorHeader, 
                String problemViewSuffix)
```

Prints out an error message feature the view hierarchy starting at the rootView.

<br />

|                                                                                   Parameters                                                                                   ||
|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|
| `rootView`          | `View`: the root of the hierarchy tree to print out. <br />                                                                                               |
| `problemViews`      | `List`: list of the views that you would like to point out are causing the error message or null, if you want to skip this feature. <br />                |
| `errorHeader`       | `String`: the header of the error message (should contain the description of why the error is happening). <br />                                          |
| `problemViewSuffix` | `String`: the message to append to the view description in the tree printout. Required if problemViews is supplied. Otherwise, null is acceptable. <br /> |

|                                                     Returns                                                     ||
|-------------------------------------------------------------------------|----------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String.html) | a string for human consumption. <br /> |

-

  ## 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)