diff options
author | Jeff Brown <jeffbrown@google.com> | 2011-05-25 14:46:53 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-05-25 14:46:53 -0700 |
commit | 3c2fb0242b0ec21101959dfa08aad3162a523634 (patch) | |
tree | 5f338cb0714dbe36988431320f8919576d91009a /include | |
parent | 13412d31650366f41b1f3d9f429cb0a01dd575ef (diff) | |
parent | 8148cc3e47e50c916066e2fed562618b5827188f (diff) | |
download | frameworks_base-3c2fb0242b0ec21101959dfa08aad3162a523634.zip frameworks_base-3c2fb0242b0ec21101959dfa08aad3162a523634.tar.gz frameworks_base-3c2fb0242b0ec21101959dfa08aad3162a523634.tar.bz2 |
am 8148cc3e: am 86ea1f5f: Initial checkin of spot presentation for touchpad gestures. (DO NOT MERGE)
* commit '8148cc3e47e50c916066e2fed562618b5827188f':
Initial checkin of spot presentation for touchpad gestures. (DO NOT MERGE)
Diffstat (limited to 'include')
-rw-r--r-- | include/ui/Input.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ui/Input.h b/include/ui/Input.h index 1ef36d0..fb6152e 100644 --- a/include/ui/Input.h +++ b/include/ui/Input.h @@ -608,6 +608,11 @@ private: // Oldest sample to consider when calculating the velocity. static const nsecs_t MAX_AGE = 200 * 1000000; // 200 ms + // When the total duration of the window of samples being averaged is less + // than the window size, the resulting velocity is scaled to reduce the impact + // of overestimation in short traces. + static const nsecs_t MIN_WINDOW = 100 * 1000000; // 100 ms + // The minimum duration between samples when estimating velocity. static const nsecs_t MIN_DURATION = 10 * 1000000; // 10 ms |