diff options
author | Chet Haase <chet@google.com> | 2011-11-10 13:44:34 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-11-10 13:44:34 -0800 |
commit | 41ffab86d92622679d4d2ad8307806e8099f8170 (patch) | |
tree | 8c5a1e9ac9c6293e4806d58c7852f6457b682945 /services | |
parent | bc853c0344b2bbe6f94f425cd0fb1d2642c0fa2f (diff) | |
parent | 532147b308580ec6360dba4c19c41bf4708bfd93 (diff) | |
download | frameworks_base-41ffab86d92622679d4d2ad8307806e8099f8170.zip frameworks_base-41ffab86d92622679d4d2ad8307806e8099f8170.tar.gz frameworks_base-41ffab86d92622679d4d2ad8307806e8099f8170.tar.bz2 |
Merge "increase the rate at which we dispatch events." into ics-mr1
Diffstat (limited to 'services')
-rw-r--r-- | services/java/com/android/server/wm/InputManager.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/services/java/com/android/server/wm/InputManager.java b/services/java/com/android/server/wm/InputManager.java index df7e0e1..a4f0a0c 100644 --- a/services/java/com/android/server/wm/InputManager.java +++ b/services/java/com/android/server/wm/InputManager.java @@ -675,7 +675,13 @@ public class InputManager implements Watchdog.Monitor { } catch (NumberFormatException e) { } if (result < 1) { - result = 55; + // This number equates to the refresh rate * 1.5. The rate should be at least + // equal to the screen refresh rate. We increase the rate by 50% to compensate for + // the discontinuity between the actual rate that events come in at (they do + // not necessarily come in constantly and are not handled synchronously). + // Ideally, we would use Display.getRefreshRate(), but as this does not necessarily + // return a sensible result, we use '60' as our default assumed refresh rate. + result = 90; } return result; } |