shadows/framework/src/main/java/org/robolectric/android/AccessibilityUtil.java
@Deprecated
  public static boolean passesAccessibilityChecksIfEnabled(View view) {
    setThrowExceptionForErrors(false);
    List<AccessibilityViewCheckResult> results = checkViewIfCheckingEnabled(view);
    List<AccessibilityViewCheckResult> errors = AccessibilityCheckResultUtils.getResultsForType(
        results, AccessibilityCheckResultType.ERROR);
    return (errors.size() == 0);
  }
@Deprecated
  public static boolean passesAccessibilityChecksIfEnabled(View view) {
    setThrowExceptionForErrors(false);
    List<AccessibilityViewCheckResult> results = checkViewIfCheckingEnabled(view);
    List<AccessibilityViewCheckResult> errors = AccessibilityCheckResultUtils.getResultsForType(
        results, AccessibilityCheckResultType.ERROR);
    return (errors.size() == 0);
  }
@ Deprecated public static boolean passesAccessibilityChecksIfEnabled ( View view ) { setThrowExceptionForErrors ( false ) ; List < AccessibilityViewCheckResult > results = checkViewIfCheckingEnabled ( view ) ; List < AccessibilityViewCheckResult > errors = AccessibilityCheckResultUtils . getResultsForType ( results , AccessibilityCheckResultType . ERROR ) ; return ( errors . size ( ) == 0 ) ; }
Check a hierarchy of {@code View}s for accessibility. Only performs checks if (in decreasing
priority order) accessibility checking is enabled using an {@link AccessibilityChecks}
annotation, if the system property {@code robolectric.accessibility.enablechecks} is set to
{@code true}, or if the environment variable {@code robolectric.accessibility.enablechecks}
is set to {@code true}.

Implicitly calls {code setThrowExceptionForErrors(false)} to disable exception throwing. This
method is deprecated, both because of this side effect and because the other methods offer
more control over execution.

@param view The {@code View} to examine

@return A list of results from the check. If there are no results or checking is disabled,
the list is empty.
Check a hierarchy of { @code View } s for accessibility . Only performs checks if ( in decreasing priority order ) accessibility checking is enabled using an { @link AccessibilityChecks } annotation if the system property { @code robolectric . accessibility . enablechecks } is set to { @code true } or if the environment variable { @code robolectric . accessibility . enablechecks } is set to { @code true } .