Expose getPreferKeepClearForFocusDelay as TestApi

This allows tests to check the behavior of automatically reporting the
focused View as a keep clear area.

Test: atest KeepClearRectsTests
Bug: 218494300
Change-Id: I602406572a540c4b5f77164efab28376faec2701
This commit is contained in:
Robert Horvath
2022-02-16 15:30:15 +01:00
parent 22c3bb0c72
commit 6830bbd35b
2 changed files with 2 additions and 0 deletions

View File

@@ -2876,6 +2876,7 @@ package android.view {
method public static int getHoverTooltipHideTimeout();
method public static int getHoverTooltipShowTimeout();
method public static int getLongPressTooltipHideTimeout();
method public int getPreferKeepClearForFocusDelay();
}
public class ViewDebug {

View File

@@ -1104,6 +1104,7 @@ public class ViewConfiguration {
* clear, or -1 if Views should not set themselves as preferred to keep clear.
* @hide
*/
@TestApi
public int getPreferKeepClearForFocusDelay() {
return mPreferKeepClearForFocusDelay;
}