Merge "Added TestApi for default focus highlight" into pi-dev

am: 87f9818319

Change-Id: I039252a404149a979617d71b2c08f679e025d692
This commit is contained in:
Evan Rosky
2018-03-23 23:01:19 +00:00
committed by android-build-merger
2 changed files with 10 additions and 0 deletions

View File

@@ -1066,6 +1066,7 @@ package android.view {
public class View implements android.view.accessibility.AccessibilityEventSource android.graphics.drawable.Drawable.Callback android.view.KeyEvent.Callback {
method public android.view.View getTooltipView();
method public static boolean isDefaultFocusHighlightEnabled();
method public boolean isDefaultFocusHighlightNeeded(android.graphics.drawable.Drawable, android.graphics.drawable.Drawable);
method public boolean restoreFocusInCluster(int);
method public boolean restoreFocusNotInCluster();

View File

@@ -27592,6 +27592,15 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
}
/**
* @return {@code true} if the default focus highlight is enabled, {@code false} otherwies.
* @hide
*/
@TestApi
public static boolean isDefaultFocusHighlightEnabled() {
return sUseDefaultFocusHighlight;
}
/**
* Allows this view to handle {@link KeyEvent}s which weren't handled by normal dispatch. This
* occurs after the normal view hierarchy dispatch, but before the window callback. By default,
* this will dispatch into all the listeners registered via