Loading native/jni/Android.mk +3 −3 Original line number Diff line number Diff line Loading @@ -47,8 +47,6 @@ LATIN_IME_JNI_SRC_FILES := \ LATIN_IME_CORE_SRC_FILES := \ suggest/core/suggest.cpp \ $(addprefix obsolete/, \ correction.cpp) \ $(addprefix suggest/core/dicnode/, \ dic_node.cpp \ dic_node_utils.cpp \ Loading Loading @@ -76,7 +74,9 @@ LATIN_IME_CORE_SRC_FILES := \ typing_suggest_policy.cpp \ typing_traversal.cpp \ typing_weighting.cpp) \ utils/char_utils.cpp $(addprefix utils/, \ char_utils.cpp \ ranking_algorithm.cpp) LOCAL_SRC_FILES := \ $(LATIN_IME_JNI_SRC_FILES) \ Loading native/jni/com_android_inputmethod_latin_BinaryDictionary.cpp +4 −3 Original line number Diff line number Diff line Loading @@ -22,15 +22,16 @@ #include <cstring> // for memset() #include <fcntl.h> #include <sys/mman.h> #include <unistd.h> #include "defines.h" #include "jni.h" #include "jni_common.h" #include "obsolete/correction.h" #include "suggest/core/dictionary/binary_dictionary_format_utils.h" #include "suggest/core/dictionary/binary_dictionary_info.h" #include "suggest/core/dictionary/dictionary.h" #include "suggest/core/suggest_options.h" #include "utils/autocorrection_threshold_utils.h" namespace latinime { Loading Loading @@ -201,7 +202,7 @@ static jfloat latinime_BinaryDictionary_calcNormalizedScore(JNIEnv *env, jclass int afterCodePoints[afterLength]; env->GetIntArrayRegion(before, 0, beforeLength, beforeCodePoints); env->GetIntArrayRegion(after, 0, afterLength, afterCodePoints); return Correction::RankingAlgorithm::calcNormalizedScore(beforeCodePoints, beforeLength, return AutocorrectionThresholdUtils::calcNormalizedScore(beforeCodePoints, beforeLength, afterCodePoints, afterLength, score); } Loading @@ -213,7 +214,7 @@ static jint latinime_BinaryDictionary_editDistance(JNIEnv *env, jclass clazz, ji int afterCodePoints[afterLength]; env->GetIntArrayRegion(before, 0, beforeLength, beforeCodePoints); env->GetIntArrayRegion(after, 0, afterLength, afterCodePoints); return Correction::RankingAlgorithm::editDistance(beforeCodePoints, beforeLength, return AutocorrectionThresholdUtils::editDistance(beforeCodePoints, beforeLength, afterCodePoints, afterLength); } Loading Loading
native/jni/Android.mk +3 −3 Original line number Diff line number Diff line Loading @@ -47,8 +47,6 @@ LATIN_IME_JNI_SRC_FILES := \ LATIN_IME_CORE_SRC_FILES := \ suggest/core/suggest.cpp \ $(addprefix obsolete/, \ correction.cpp) \ $(addprefix suggest/core/dicnode/, \ dic_node.cpp \ dic_node_utils.cpp \ Loading Loading @@ -76,7 +74,9 @@ LATIN_IME_CORE_SRC_FILES := \ typing_suggest_policy.cpp \ typing_traversal.cpp \ typing_weighting.cpp) \ utils/char_utils.cpp $(addprefix utils/, \ char_utils.cpp \ ranking_algorithm.cpp) LOCAL_SRC_FILES := \ $(LATIN_IME_JNI_SRC_FILES) \ Loading
native/jni/com_android_inputmethod_latin_BinaryDictionary.cpp +4 −3 Original line number Diff line number Diff line Loading @@ -22,15 +22,16 @@ #include <cstring> // for memset() #include <fcntl.h> #include <sys/mman.h> #include <unistd.h> #include "defines.h" #include "jni.h" #include "jni_common.h" #include "obsolete/correction.h" #include "suggest/core/dictionary/binary_dictionary_format_utils.h" #include "suggest/core/dictionary/binary_dictionary_info.h" #include "suggest/core/dictionary/dictionary.h" #include "suggest/core/suggest_options.h" #include "utils/autocorrection_threshold_utils.h" namespace latinime { Loading Loading @@ -201,7 +202,7 @@ static jfloat latinime_BinaryDictionary_calcNormalizedScore(JNIEnv *env, jclass int afterCodePoints[afterLength]; env->GetIntArrayRegion(before, 0, beforeLength, beforeCodePoints); env->GetIntArrayRegion(after, 0, afterLength, afterCodePoints); return Correction::RankingAlgorithm::calcNormalizedScore(beforeCodePoints, beforeLength, return AutocorrectionThresholdUtils::calcNormalizedScore(beforeCodePoints, beforeLength, afterCodePoints, afterLength, score); } Loading @@ -213,7 +214,7 @@ static jint latinime_BinaryDictionary_editDistance(JNIEnv *env, jclass clazz, ji int afterCodePoints[afterLength]; env->GetIntArrayRegion(before, 0, beforeLength, beforeCodePoints); env->GetIntArrayRegion(after, 0, afterLength, afterCodePoints); return Correction::RankingAlgorithm::editDistance(beforeCodePoints, beforeLength, return AutocorrectionThresholdUtils::editDistance(beforeCodePoints, beforeLength, afterCodePoints, afterLength); } Loading