Here are the examples of the java api class com.google.android.apps.common.testing.accessibility.framework.AccessibilityViewCheckResult taken from open source projects.
1. AccessibilityValidator#processResults()
Project: Accessibility-Test-Framework-for-Android
File: AccessibilityValidator.java
File: AccessibilityValidator.java
/** * Reports the given results to the user using logcat and/or exceptions depending on the options * set for this {@code AccessibilityValidator}. Results of type {@code INFO} and {@code WARNING} * will be logged to logcat, and results of type {@code ERROR} will be logged to logcat or * a single {@link AccessibilityViewCheckException} will be thrown containing all {@code ERROR} * results, depending on the value of {@link #throwExceptionForErrors}. */ // TODO(sjrush): Determine a more robust reporting mechanism instead of using logcat. private void processResults(Iterable<AccessibilityViewCheckResult> results) { List<AccessibilityViewCheckResult> infos = AccessibilityCheckResultUtils.getResultsForType(results, AccessibilityCheckResultType.INFO); List<AccessibilityViewCheckResult> warnings = AccessibilityCheckResultUtils.getResultsForType(results, AccessibilityCheckResultType.WARNING); List<AccessibilityViewCheckResult> errors = AccessibilityCheckResultUtils.getResultsForType(results, AccessibilityCheckResultType.ERROR); for (AccessibilityViewCheckResult result : infos) { Log.i(TAG, resultDescriptor.describeResult(result)); } for (AccessibilityViewCheckResult result : warnings) { Log.w(TAG, resultDescriptor.describeResult(result)); } if (!errors.isEmpty() && throwExceptionForErrors) { throw new AccessibilityViewCheckException(errors, resultDescriptor); } else { for (AccessibilityViewCheckResult result : errors) { Log.e(TAG, resultDescriptor.describeResult(result)); } } }