diff options
author | 2013-07-05 02:25:08 -0700 | |
---|---|---|
committer | 2013-07-05 02:25:08 -0700 | |
commit | c85efa92bffaceced43d1f9143a9d005473402a5 (patch) | |
tree | 21781b33587def705b6825d0676342ae68daf221 /java/src/com/android/inputmethod/research/Statistics.java | |
parent | c29acb5b697767d2cf181fcf12c215480e5c6408 (diff) | |
parent | 72c2feb57369527b5f0d2b89505f94503978b928 (diff) | |
download | latinime-c85efa92bffaceced43d1f9143a9d005473402a5.tar.gz latinime-c85efa92bffaceced43d1f9143a9d005473402a5.tar.xz latinime-c85efa92bffaceced43d1f9143a9d005473402a5.zip |
am 72c2feb5: Use TimeUnit instead of DateUtils for readability
* commit '72c2feb57369527b5f0d2b89505f94503978b928':
Use TimeUnit instead of DateUtils for readability
Diffstat (limited to 'java/src/com/android/inputmethod/research/Statistics.java')
-rw-r--r-- | java/src/com/android/inputmethod/research/Statistics.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/research/Statistics.java b/java/src/com/android/inputmethod/research/Statistics.java index e573ca012..fd323a104 100644 --- a/java/src/com/android/inputmethod/research/Statistics.java +++ b/java/src/com/android/inputmethod/research/Statistics.java @@ -21,6 +21,8 @@ import android.util.Log; import com.android.inputmethod.latin.Constants; import com.android.inputmethod.latin.define.ProductionFlag; +import java.util.concurrent.TimeUnit; + public class Statistics { private static final String TAG = Statistics.class.getSimpleName(); private static final boolean DEBUG = false @@ -102,8 +104,8 @@ public class Statistics { // To account for the interruptions when the user's attention is directed elsewhere, times // longer than MIN_TYPING_INTERMISSION are not counted when estimating this statistic. - public static final int MIN_TYPING_INTERMISSION = 2 * 1000; // in milliseconds - public static final int MIN_DELETION_INTERMISSION = 10 * 1000; // in milliseconds + public static final long MIN_TYPING_INTERMISSION = TimeUnit.SECONDS.toMillis(2); + public static final long MIN_DELETION_INTERMISSION = TimeUnit.SECONDS.toMillis(10); // The last time that a tap was performed private long mLastTapTime; |