Fix build failure by adding an input
Change-Id: I0f8f7549423deb6d18df4cca949b210c9ec494a5main
parent
b9c57e6540
commit
7ff4da9489
|
@ -92,7 +92,8 @@ public class BinaryDictionary extends Dictionary {
|
||||||
mDicTypeId = dicTypeId;
|
mDicTypeId = dicTypeId;
|
||||||
}
|
}
|
||||||
|
|
||||||
private native int openNative(ByteBuffer bb, int typedLetterMultiplier, int fullWordMultiplier);
|
private native int openNative(ByteBuffer bb, int typedLetterMultiplier,
|
||||||
|
int fullWordMultiplier);
|
||||||
private native void closeNative(int dict);
|
private native void closeNative(int dict);
|
||||||
private native boolean isValidWordNative(int nativeData, char[] word, int wordLength);
|
private native boolean isValidWordNative(int nativeData, char[] word, int wordLength);
|
||||||
private native int getSuggestionsNative(int dict, int[] inputCodes, int codesSize,
|
private native int getSuggestionsNative(int dict, int[] inputCodes, int codesSize,
|
||||||
|
@ -146,7 +147,7 @@ public class BinaryDictionary extends Dictionary {
|
||||||
}
|
}
|
||||||
if (len > 0) {
|
if (len > 0) {
|
||||||
callback.addWord(mOutputChars_bigrams, start, len, mFrequencies_bigrams[j],
|
callback.addWord(mOutputChars_bigrams, start, len, mFrequencies_bigrams[j],
|
||||||
DataType.BIGRAM);
|
mDicTypeId, DataType.BIGRAM);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -196,7 +197,8 @@ public class BinaryDictionary extends Dictionary {
|
||||||
len++;
|
len++;
|
||||||
}
|
}
|
||||||
if (len > 0) {
|
if (len > 0) {
|
||||||
callback.addWord(mOutputChars, start, len, mFrequencies[j], mDicTypeId, DataType.UNIGRAM);
|
callback.addWord(mOutputChars, start, len, mFrequencies[j], mDicTypeId,
|
||||||
|
DataType.UNIGRAM);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue