summaryrefslogtreecommitdiff
path: root/core/java/android/view/ViewParent.java
diff options
context:
space:
mode:
authorVadim Tryshev <vadimt@google.com>2017-01-05 18:54:11 -0800
committerVadim Tryshev <vadimt@google.com>2017-01-06 11:42:15 -0800
commit311a5b54979afee7e07bf31600182584fde15b4f (patch)
treea5dad41fa2d221988ca8112ea0ac87cadd0797d0 /core/java/android/view/ViewParent.java
parentf1941775b6e0d4a47ce1cf895a0ea7b41bbaaaeb (diff)
Using official names for clusters and sections.
Per the bug, “clusters” and “sections” are already the official names, and for a general name for both, we use “keyboard navigation groups”. Bug: 33708251 Test: N/A. Change-Id: Ieb1d2e8a1ad758f902b0a925fbe5d187e0f7ea06
Diffstat (limited to 'core/java/android/view/ViewParent.java')
-rw-r--r--core/java/android/view/ViewParent.java19
1 files changed, 10 insertions, 9 deletions
diff --git a/core/java/android/view/ViewParent.java b/core/java/android/view/ViewParent.java
index c5414e925e0e..c9277ca0bfa1 100644
--- a/core/java/android/view/ViewParent.java
+++ b/core/java/android/view/ViewParent.java
@@ -18,7 +18,7 @@ package android.view;
import android.graphics.Rect;
import android.os.Bundle;
-import android.view.View.FocusGroupType;
+import android.view.View.KeyboardNavigationGroupType;
import android.view.accessibility.AccessibilityEvent;
/**
@@ -148,19 +148,20 @@ public interface ViewParent {
public View focusSearch(View v, int direction);
/**
- * Find the nearest keyboard navigation cluster in the specified direction.
- * This does not actually give focus to that cluster.
+ * Find the nearest keyboard navigation group in the specified direction. The group type can be
+ * either a cluster or a section.
+ * This does not actually give focus to that group.
*
- * @param focusGroupType Type of the focus group
- * @param currentCluster The starting point of the search. Null means the current cluster is not
- * found yet
+ * @param groupType Type of the keyboard navigation group
+ * @param currentGroup The starting point of the search. Null means the current group is not
+ * found yet
* @param direction Direction to look
*
- * @return The nearest keyboard navigation cluster in the specified direction, or null if none
+ * @return The nearest keyboard navigation group in the specified direction, or null if none
* can be found
*/
- View keyboardNavigationClusterSearch(
- @FocusGroupType int focusGroupType, View currentCluster, int direction);
+ View keyboardNavigationGroupSearch(
+ @KeyboardNavigationGroupType int groupType, View currentGroup, int direction);
/**
* Change the z order of the child so it's on top of all other children.