aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2014-04-28 08:13:06 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-04-28 08:13:06 +0000
commit0a77444375579152ff8d117fbf0ce6aede51b834 (patch)
tree1d56449a45dd4852601c04eb5d7470fc2d2bdf22 /native/jni/src
parentdff715382079159f1285bfa7a6ab45b58805670a (diff)
parent9e15b4551eaff96c3cde6e99132a1aab3900f923 (diff)
downloadlatinime-0a77444375579152ff8d117fbf0ce6aede51b834.tar.gz
latinime-0a77444375579152ff8d117fbf0ce6aede51b834.tar.xz
latinime-0a77444375579152ff8d117fbf0ce6aede51b834.zip
Merge "Small clean up on MAX_LOCALE_STRING_LENGTH"
Diffstat (limited to 'native/jni/src')
-rw-r--r--native/jni/src/defines.h3
-rw-r--r--native/jni/src/suggest/core/layout/proximity_info.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/native/jni/src/defines.h b/native/jni/src/defines.h
index 3becc79e8..2fe2bd8fa 100644
--- a/native/jni/src/defines.h
+++ b/native/jni/src/defines.h
@@ -330,9 +330,6 @@ static inline void prof_out(void) {
#define MAX_PROBABILITY 255
#define MAX_BIGRAM_ENCODED_PROBABILITY 15
-// Assuming locale strings such as en_US, sr-Latn etc.
-#define MAX_LOCALE_STRING_LENGTH 10
-
// Max value for length, distance and probability which are used in weighting
// TODO: Remove
#define MAX_VALUE_FOR_WEIGHTING 10000000
diff --git a/native/jni/src/suggest/core/layout/proximity_info.h b/native/jni/src/suggest/core/layout/proximity_info.h
index 56711d1ff..d4e453736 100644
--- a/native/jni/src/suggest/core/layout/proximity_info.h
+++ b/native/jni/src/suggest/core/layout/proximity_info.h
@@ -103,6 +103,8 @@ class ProximityInfo {
const int KEYBOARD_HEIGHT;
const float KEYBOARD_HYPOTENUSE;
const bool HAS_TOUCH_POSITION_CORRECTION_DATA;
+ // Assuming locale strings such as en_US, sr-Latn etc.
+ static const int MAX_LOCALE_STRING_LENGTH = 10;
char mLocaleStr[MAX_LOCALE_STRING_LENGTH];
int *mProximityCharsArray;
int mKeyXCoordinates[MAX_KEY_COUNT_IN_A_KEYBOARD];