diff options
author | 2013-08-15 02:03:07 -0700 | |
---|---|---|
committer | 2013-08-15 02:03:07 -0700 | |
commit | f180c9a250d9d5a96b4fdadc1aed6d2c5961d920 (patch) | |
tree | 2b892f9b0366ef89de34fbc735d9ee8cc35c3ad4 /java/src | |
parent | 8ad360228532643fbbbbce0b614db4f80753d9d9 (diff) | |
parent | e7870a2c0d817e6548eb00c80278b9f7b86c1a5b (diff) | |
download | latinime-f180c9a250d9d5a96b4fdadc1aed6d2c5961d920.tar.gz latinime-f180c9a250d9d5a96b4fdadc1aed6d2c5961d920.tar.xz latinime-f180c9a250d9d5a96b4fdadc1aed6d2c5961d920.zip |
am e7870a2c: Add an initial JNI interface to dicttool.
* commit 'e7870a2c0d817e6548eb00c80278b9f7b86c1a5b':
Add an initial JNI interface to dicttool.
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java b/java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java index a54661058..a33cddb49 100644 --- a/java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java +++ b/java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java @@ -23,6 +23,7 @@ import com.android.inputmethod.latin.makedict.FusionDictionary.CharGroup; import com.android.inputmethod.latin.makedict.FusionDictionary.DictionaryOptions; import com.android.inputmethod.latin.makedict.FusionDictionary.Node; import com.android.inputmethod.latin.makedict.FusionDictionary.WeightedString; +import com.android.inputmethod.latin.utils.JniUtils; import java.io.ByteArrayOutputStream; import java.io.File; @@ -48,6 +49,13 @@ public final class BinaryDictInputOutput { private static final boolean DBG = MakedictLog.DBG; + static { + JniUtils.loadNativeLibrary(); + } + + // TODO: implement something sensical instead of just a phony method + private static native int doNothing(); + // Arbitrary limit to how much passes we consider address size compression should // terminate in. At the time of this writing, our largest dictionary completes // compression in five passes. |