aboutsummaryrefslogtreecommitdiffstats
path: root/tools/make-keyboard-text/res
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-02-11 23:06:53 +0900
committerTadashi G. Takaoka <takaoka@google.com>2014-02-13 17:11:00 +0900
commit0fe4d00068fb9ea85bfab083aa595082dd24e59c (patch)
tree90dd31f4ce108a5ec3d101167d52809cf92ba942 /tools/make-keyboard-text/res
parent8dd47029f129cf7077c091170a8f7eeb88dd0ccf (diff)
downloadlatinime-0fe4d00068fb9ea85bfab083aa595082dd24e59c.tar.gz
latinime-0fe4d00068fb9ea85bfab083aa595082dd24e59c.tar.xz
latinime-0fe4d00068fb9ea85bfab083aa595082dd24e59c.zip
Optimize KeyboardTextsTable
This change counts all occurrences of each string resource and sort those in descending order of the occurrence. Change-Id: I726402157feb0d436a54bd0a7252acd17fd711f9
Diffstat (limited to 'tools/make-keyboard-text/res')
-rw-r--r--tools/make-keyboard-text/res/com/android/inputmethod/keyboard/internal/KeyboardTextsTable.tmpl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/make-keyboard-text/res/com/android/inputmethod/keyboard/internal/KeyboardTextsTable.tmpl b/tools/make-keyboard-text/res/com/android/inputmethod/keyboard/internal/KeyboardTextsTable.tmpl
index eadeb1e31..f56cfd91b 100644
--- a/tools/make-keyboard-text/res/com/android/inputmethod/keyboard/internal/KeyboardTextsTable.tmpl
+++ b/tools/make-keyboard-text/res/com/android/inputmethod/keyboard/internal/KeyboardTextsTable.tmpl
@@ -63,6 +63,7 @@ public final class KeyboardTextsTable {
}
private static final String[] NAMES = {
+ // /* index:histogram */ "name",
/* @NAMES@ */
};