diff options
Diffstat (limited to 'core/java/android/view/ViewConfiguration.java')
| -rw-r--r-- | core/java/android/view/ViewConfiguration.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/core/java/android/view/ViewConfiguration.java b/core/java/android/view/ViewConfiguration.java index 5919150dbfae..f3a5050001ea 100644 --- a/core/java/android/view/ViewConfiguration.java +++ b/core/java/android/view/ViewConfiguration.java @@ -176,6 +176,14 @@ public class ViewConfiguration { private static final int TOUCH_EXPLORATION_TAP_SLOP = 80; /** + * Delay before dispatching a recurring accessibility event in milliseconds. + * This delay guarantees that a recurring event will be send at most once + * during the {@link #SEND_RECURRING_ACCESSIBILITY_EVENTS_INTERVAL_MILLIS} time + * frame. + */ + private static final long SEND_RECURRING_ACCESSIBILITY_EVENTS_INTERVAL_MILLIS = 400; + + /** * The maximum size of View's drawing cache, expressed in bytes. This size * should be at least equal to the size of the screen in ARGB888 format. */ @@ -498,6 +506,19 @@ public class ViewConfiguration { } /** + * Interval for dispatching a recurring accessibility event in milliseconds. + * This interval guarantees that a recurring event will be send at most once + * during the {@link #getSendRecurringAccessibilityEventsInterval()} time frame. + * + * @return The delay in milliseconds. + * + * @hide + */ + public static long getSendRecurringAccessibilityEventsInterval() { + return SEND_RECURRING_ACCESSIBILITY_EVENTS_INTERVAL_MILLIS; + } + + /** * @return Distance a touch must be outside the bounds of a window for it * to be counted as outside the window for purposes of dismissing that * window. |
