shadows/framework/src/main/java/org/robolectric/android/AccessibilityUtil.java
public static List<AccessibilityViewCheckResult> checkViewIfCheckingEnabled(View view) {
    AccessibilityChecks classChecksAnnotation = getAnnotation();
    if (!isAccessibilityCheckingEnabled(classChecksAnnotation)) {
      return Collections.emptyList();
    }

    return checkView(view);
  }
public static List<AccessibilityViewCheckResult> checkViewIfCheckingEnabled(View view) {
    AccessibilityChecks classChecksAnnotation = getAnnotation();
    if (!isAccessibilityCheckingEnabled(classChecksAnnotation)) {
      return Collections.emptyList();
    }

    return checkView(view);
  }
public static List < AccessibilityViewCheckResult > checkViewIfCheckingEnabled ( View view ) { AccessibilityChecks classChecksAnnotation = getAnnotation ( ) ; if ( ! isAccessibilityCheckingEnabled ( classChecksAnnotation ) ) { return Collections . emptyList ( ) ; } return checkView ( view ) ; }
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}.

@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 } .