summaryrefslogtreecommitdiffstats
path: root/core/java/android/view/accessibility
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2013-10-02 09:43:25 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-02 09:43:25 -0700
commit87c9f89412f67f3a0dbaacf6585dbed3dc388442 (patch)
treec3b2f2c33ba453d2331663eed2378e9521e7fa7d /core/java/android/view/accessibility
parentb6ab3b982b98a34e6af59adbfb7e85db7da7392c (diff)
parente3ba7f24dacfc8ef16e2f297fe3eec3c0719bfd1 (diff)
downloadframeworks_base-87c9f89412f67f3a0dbaacf6585dbed3dc388442.zip
frameworks_base-87c9f89412f67f3a0dbaacf6585dbed3dc388442.tar.gz
frameworks_base-87c9f89412f67f3a0dbaacf6585dbed3dc388442.tar.bz2
am e3ba7f24: am c379752a: am 3320ef95: Merge "Add findFocus API for AccessibilityNodeProvider" into klp-dev
* commit 'e3ba7f24dacfc8ef16e2f297fe3eec3c0719bfd1': Add findFocus API for AccessibilityNodeProvider
Diffstat (limited to 'core/java/android/view/accessibility')
-rw-r--r--core/java/android/view/accessibility/AccessibilityNodeProvider.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/java/android/view/accessibility/AccessibilityNodeProvider.java b/core/java/android/view/accessibility/AccessibilityNodeProvider.java
index 688cbdf..718c32f 100644
--- a/core/java/android/view/accessibility/AccessibilityNodeProvider.java
+++ b/core/java/android/view/accessibility/AccessibilityNodeProvider.java
@@ -132,4 +132,19 @@ public abstract class AccessibilityNodeProvider {
int virtualViewId) {
return null;
}
+
+ /**
+ * Find the virtual view, i.e. a descendant of the host View, that has the
+ * specified focus type.
+ *
+ * @param focus The focus to find. One of
+ * {@link AccessibilityNodeInfo#FOCUS_INPUT} or
+ * {@link AccessibilityNodeInfo#FOCUS_ACCESSIBILITY}.
+ * @return The node info of the focused view or null.
+ * @see AccessibilityNodeInfo#FOCUS_INPUT
+ * @see AccessibilityNodeInfo#FOCUS_ACCESSIBILITY
+ */
+ public AccessibilityNodeInfo findFocus(int focus) {
+ return null;
+ }
}