summaryrefslogtreecommitdiffstats
path: root/services/java
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@android.com>2011-05-26 19:17:02 -0700
committerJeff Brown <jeffbrown@android.com>2011-05-31 15:00:59 -0700
commit214eaf48878bba00cbd5831871bcbd82632b6e34 (patch)
treee981793f6a27d6aa789d92fe49ea346433452ae0 /services/java
parent4e3f7206eb0af14d3da4c03bdf9918161774e726 (diff)
downloadframeworks_base-214eaf48878bba00cbd5831871bcbd82632b6e34.zip
frameworks_base-214eaf48878bba00cbd5831871bcbd82632b6e34.tar.gz
frameworks_base-214eaf48878bba00cbd5831871bcbd82632b6e34.tar.bz2
Use ViewConfiguration to seed input system configuration.
Fix bug where the pointer presentation would be updated on any input reader timeout rather than only when a pointer gesture is in progress. Bug: 4124987 Change-Id: Ie9bba4a0b3228d55e45e65fa2ede5cd6ba887a08
Diffstat (limited to 'services/java')
-rw-r--r--services/java/com/android/server/wm/InputManager.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/services/java/com/android/server/wm/InputManager.java b/services/java/com/android/server/wm/InputManager.java
index becd44a..ab781f4 100644
--- a/services/java/com/android/server/wm/InputManager.java
+++ b/services/java/com/android/server/wm/InputManager.java
@@ -496,6 +496,26 @@ public class InputManager {
}
@SuppressWarnings("unused")
+ public int getTapTimeout() {
+ return ViewConfiguration.getTapTimeout();
+ }
+
+ @SuppressWarnings("unused")
+ public int getDoubleTapTimeout() {
+ return ViewConfiguration.getDoubleTapTimeout();
+ }
+
+ @SuppressWarnings("unused")
+ public int getLongPressTimeout() {
+ return ViewConfiguration.getLongPressTimeout();
+ }
+
+ @SuppressWarnings("unused")
+ public int getTouchSlop() {
+ return ViewConfiguration.get(mContext).getScaledTouchSlop();
+ }
+
+ @SuppressWarnings("unused")
public int getMaxEventsPerSecond() {
int result = 0;
try {