OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:BinaryDictionary
(Results
1 - 18
of
18
) sorted by null
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
Ver4DictDecoder.java
20
import com.android.inputmethod.latin.
BinaryDictionary
;
49
final
BinaryDictionary
binaryDictionary
= new
BinaryDictionary
(
53
final DictionaryHeader header =
binaryDictionary
.getHeader();
54
binaryDictionary
.close();
65
final
BinaryDictionary
binaryDictionary
= new
BinaryDictionary
(
75
final
BinaryDictionary
.GetNextWordPropertyResult result
[
all
...]
Ver4DictEncoder.java
20
import com.android.inputmethod.latin.
BinaryDictionary
;
47
// and we can remove it. Then we'll be able to just call
BinaryDictionary
directly.
65
final
BinaryDictionary
binaryDict = new
BinaryDictionary
(mDictPlacedDir.getAbsolutePath(),
Ver2DictDecoder.java
20
import com.android.inputmethod.latin.
BinaryDictionary
;
171
final
BinaryDictionary
binaryDictionary
= new
BinaryDictionary
(
175
final DictionaryHeader header =
binaryDictionary
.getHeader();
176
binaryDictionary
.close();
259
final
BinaryDictionary
binaryDictionary
= new
BinaryDictionary
(
269
final
BinaryDictionary
.GetNextWordPropertyResult result
[
all
...]
BinaryDictDecoderEncoderTests.java
25
import com.android.inputmethod.latin.
BinaryDictionary
;
613
final
BinaryDictionary
binaryDictionary
= new
BinaryDictionary
(file.getAbsolutePath(),
617
final WordProperty wordProperty =
binaryDictionary
.getWordProperty(word,
650
final
BinaryDictionary
binaryDictionary
= new
BinaryDictionary
(file.getAbsolutePath(),
668
final
BinaryDictionary
.GetNextWordPropertyResult result =
669
binaryDictionary
.getNextWordProperty(token)
[
all
...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
ProbabilityInfo.java
20
import com.android.inputmethod.latin.
BinaryDictionary
;
51
this(probability,
BinaryDictionary
.NOT_A_VALID_TIMESTAMP, 0, 0);
63
return mTimestamp !=
BinaryDictionary
.NOT_A_VALID_TIMESTAMP;
WordProperty.java
20
import com.android.inputmethod.latin.
BinaryDictionary
;
64
probabilityInfo[
BinaryDictionary
.FORMAT_WORD_PROPERTY_PROBABILITY_INDEX],
65
probabilityInfo[
BinaryDictionary
.FORMAT_WORD_PROPERTY_TIMESTAMP_INDEX],
66
probabilityInfo[
BinaryDictionary
.FORMAT_WORD_PROPERTY_LEVEL_INDEX],
67
probabilityInfo[
BinaryDictionary
.FORMAT_WORD_PROPERTY_COUNT_INDEX]);
71
// This represents invalid word when the probability is
BinaryDictionary
.NOT_A_PROBABILITY.
160
return getProbability() !=
BinaryDictionary
.NOT_A_PROBABILITY;
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
BinaryDictionaryTests.java
99
BinaryDictionary
binaryDictionary
= new
BinaryDictionary
(dictFile.getAbsolutePath(),
102
assertTrue("
binaryDictionary
must be valid for existing valid dictionary file.",
103
binaryDictionary
.isValidDictionary());
104
binaryDictionary
.close();
105
assertFalse("
binaryDictionary
must be invalid after closing.",
106
binaryDictionary
.isValidDictionary());
108
binaryDictionary
= new
BinaryDictionary
(dictFile.getAbsolutePath(), 0 /* offset */
[
all
...]
BinaryDictionaryDecayingTests.java
71
private void addUnigramWord(final
BinaryDictionary
binaryDictionary
, final String word,
73
binaryDictionary
.addUnigramEntry(word, probability, "" /* shortcutTarget */,
74
BinaryDictionary
.NOT_A_PROBABILITY /* shortcutProbability */,
79
private void addBigramWords(final
BinaryDictionary
binaryDictionary
, final String word0,
81
binaryDictionary
.addNgramEntry(new PrevWordsInfo(new WordInfo(word0)), word1, probability,
85
private static boolean isValidBigram(final
BinaryDictionary
binaryDictionary
,
87
return
binaryDictionary
.isValidNgram(new PrevWordsInfo(new WordInfo(word0)), word1)
[
all
...]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
BinaryDictionaryUtilsTests.java
22
import com.android.inputmethod.latin.
BinaryDictionary
;
85
BinaryDictionary
binaryDictionary
= new
BinaryDictionary
(dictFile1.getAbsolutePath(),
88
assertTrue(
binaryDictionary
.isValidDictionary());
89
assertTrue(
binaryDictionary
.getFormatVersion() == formatVersion);
90
binaryDictionary
.close();
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
ReadOnlyBinaryDictionary.java
39
private final
BinaryDictionary
mBinaryDictionary;
44
mBinaryDictionary = new
BinaryDictionary
(filename, offset, length, useFullEditDistance,
ContactsBinaryDictionary.java
141
BinaryDictionary
.NOT_A_VALID_TIMESTAMP);
241
false /* isBlacklisted */,
BinaryDictionary
.NOT_A_VALID_TIMESTAMP);
245
BinaryDictionary
.NOT_A_VALID_TIMESTAMP);
UserBinaryDictionary.java
260
false /* isBlacklisted */,
BinaryDictionary
.NOT_A_VALID_TIMESTAMP);
265
false /* isBlacklisted */,
BinaryDictionary
.NOT_A_VALID_TIMESTAMP);
ExpandableBinaryDictionary.java
81
private
BinaryDictionary
mBinaryDictionary;
254
mBinaryDictionary = new
BinaryDictionary
(
260
mBinaryDictionary = new
BinaryDictionary
(
542
final
BinaryDictionary
oldBinaryDictionary = mBinaryDictionary;
686
final
BinaryDictionary
.GetNextWordPropertyResult result =
BinaryDictionary.java
49
public final class
BinaryDictionary
extends Dictionary {
50
private static final String TAG =
BinaryDictionary
.class.getSimpleName();
117
public
BinaryDictionary
(final String filename, final long offset, final long length,
138
public
BinaryDictionary
(final String filename, final boolean useFullEditDistance,
227
Log.e(TAG, "
BinaryDictionary
(" + mDictFilePath + ") is corrupted.");
631
// TODO: Manage
BinaryDictionary
instances without using WeakReference or something.
DictionaryFacilitator.java
631
BinaryDictionary
.NOT_A_VALID_TIMESTAMP,
634
bigramProbabilityForPhrases,
BinaryDictionary
.NOT_A_VALID_TIMESTAMP);
641
BinaryDictionary
.NOT_A_VALID_TIMESTAMP,
644
bigramProbabilityForWords,
BinaryDictionary
.NOT_A_VALID_TIMESTAMP);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
BinaryDictionaryUtils.java
20
import com.android.inputmethod.latin.
BinaryDictionary
;
57
final
BinaryDictionary
binaryDictionary
= new
BinaryDictionary
(
61
final DictionaryHeader header =
binaryDictionary
.getHeader();
62
binaryDictionary
.close();
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/personalization/
PersonalizationDictionaryTests.java
28
import com.android.inputmethod.latin.
BinaryDictionary
;
111
final
BinaryDictionary
binaryDictionary
= new
BinaryDictionary
(dictFile.getAbsolutePath(),
115
assertTrue(
binaryDictionary
.isValidDictionary());
/packages/inputmethods/LatinIME/tools/dicttool/
Android.mk
42
# Dependencies for Dicttool. Most of these files are needed by
BinaryDictionary
.java. Note that
48
latin/
BinaryDictionary
.java \
Completed in 407 milliseconds