Home
last modified time | relevance | path

Searched refs:Dictionary (Results 1 – 25 of 36) sorted by relevance

12

/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
Ddictionary.cpp37 const int Dictionary::HEADER_ATTRIBUTE_BUFFER_SIZE = 32;
39 Dictionary::Dictionary(JNIEnv *env, DictionaryStructureWithBufferPolicy::StructurePolicyPtr in Dictionary() function in latinime::Dictionary
47 void Dictionary::getSuggestions(ProximityInfo *proximityInfo, DicTraverseSession *traverseSession, in getSuggestions()
60 Dictionary::NgramListenerForPrediction::NgramListenerForPrediction( in NgramListenerForPrediction()
67 void Dictionary::NgramListenerForPrediction::onVisitEntry(const int ngramProbability, in onVisitEntry()
91 void Dictionary::getPredictions(const NgramContext *const ngramContext, in getPredictions()
103 int Dictionary::getProbability(const CodePointArrayView codePoints) const { in getProbability()
107 int Dictionary::getMaxProbabilityOfExactMatches(const CodePointArrayView codePoints) const { in getMaxProbabilityOfExactMatches()
113 int Dictionary::getNgramProbability(const NgramContext *const ngramContext, in getNgramProbability()
129 bool Dictionary::addUnigramEntry(const CodePointArrayView codePoints, in addUnigramEntry()
[all …]
Ddictionary.h41 class Dictionary {
65 Dictionary(JNIEnv *env, DictionaryStructureWithBufferPolicy::StructurePolicyPtr
120 DISALLOW_IMPLICIT_CONSTRUCTORS(Dictionary);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DDictionaryFacilitatorImpl.java80 DICT_TYPE_TO_CLASS.put(Dictionary.TYPE_USER_HISTORY, UserHistoryDictionary.class); in DICT_TYPE_TO_CLASS.put()
81 DICT_TYPE_TO_CLASS.put(Dictionary.TYPE_USER, UserBinaryDictionary.class); in DICT_TYPE_TO_CLASS.put()
82 DICT_TYPE_TO_CLASS.put(Dictionary.TYPE_CONTACTS, ContactsBinaryDictionary.class); in DICT_TYPE_TO_CLASS.put()
137 @Nullable private Dictionary mMainDict;
154 @Nullable final Dictionary mainDict, in DictionaryGroup()
172 public void setMainDict(final Dictionary mainDict) { in setMainDict()
174 final Dictionary oldDict = mMainDict; in setMainDict()
181 public Dictionary getDict(final String dictType) { in getDict()
182 if (Dictionary.TYPE_MAIN.equals(dictType)) { in getDict()
193 if (Dictionary.TYPE_MAIN.equals(dictType)) { in hasDict()
[all …]
DDictionaryCollection.java34 public final class DictionaryCollection extends Dictionary {
36 protected final CopyOnWriteArrayList<Dictionary> mDictionaries;
44 final Dictionary... dictionaries) { in DictionaryCollection()
55 final Collection<Dictionary> dictionaries) { in DictionaryCollection()
67 final CopyOnWriteArrayList<Dictionary> dictionaries = mDictionaries; in getSuggestions()
119 for (final Dictionary dict : mDictionaries) in close()
124 public void addDictionary(final Dictionary newDict) { in addDictionary()
133 public void removeDictionary(final Dictionary dict) { in removeDictionary()
DDictionaryFacilitator.java48 Dictionary.TYPE_MAIN,
49 Dictionary.TYPE_CONTACTS,
50 Dictionary.TYPE_USER_HISTORY,
51 Dictionary.TYPE_USER};
54 Dictionary.TYPE_CONTACTS,
55 Dictionary.TYPE_USER_HISTORY,
56 Dictionary.TYPE_USER};
DDictionaryFactory.java50 return new DictionaryCollection(Dictionary.TYPE_MAIN, locale, in createMainDictionaryFromManager()
54 final LinkedList<Dictionary> dictList = new LinkedList<>(); in createMainDictionaryFromManager()
61 false /* useFullEditDistance */, locale, Dictionary.TYPE_MAIN); in createMainDictionaryFromManager()
75 return new DictionaryCollection(Dictionary.TYPE_MAIN, locale, dictList); in createMainDictionaryFromManager()
147 false /* useFullEditDistance */, locale, Dictionary.TYPE_MAIN); in createReadOnlyBinaryDictionary()
DDictionary.java33 public abstract class Dictionary { class
80 public Dictionary(final String dictType, final Locale locale) { in Dictionary() method in Dictionary
196 static class PhonyDictionary extends Dictionary {
DSuggestedWords.java273 public final Dictionary mSourceDict;
296 final Dictionary sourceDict, final int indexOfTouchPointOfSecondWord, in SuggestedWordInfo()
320 mSourceDict = Dictionary.DICTIONARY_APPLICATION_DEFINED; in SuggestedWordInfo()
368 public Dictionary getSourceDictionary() { in getSourceDictionary()
DPunctuationSuggestions.java120 Dictionary.DICTIONARY_HARDCODED, in newHardCodedWordInfo()
DReadOnlyBinaryDictionary.java32 public final class ReadOnlyBinaryDictionary extends Dictionary {
DDictionaryStats.java78 if (mDictType.equals(Dictionary.TYPE_MAIN)) { in toString()
DSuggest.java173 Dictionary sourceDictionaryOfRemovedWord = null; in getSuggestedWordsForNonBatchInput()
253 null == sourceDictionaryOfRemovedWord ? Dictionary.DICTIONARY_USER_TYPED in getSuggestedWordsForNonBatchInput()
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp65 Dictionary *const dictionary = in latinime_BinaryDictionary_open()
66 new Dictionary(env, std::move(dictionaryStructureWithBufferPolicy)); in latinime_BinaryDictionary_open()
94 Dictionary *const dictionary = in latinime_BinaryDictionary_createOnMemory()
95 new Dictionary(env, std::move(dictionaryStructureWithBufferPolicy)); in latinime_BinaryDictionary_createOnMemory()
101 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); in latinime_BinaryDictionary_flush()
112 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); in latinime_BinaryDictionary_needsToRunGC()
119 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); in latinime_BinaryDictionary_flushWithGC()
129 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); in latinime_BinaryDictionary_close()
137 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); in latinime_BinaryDictionary_getHeaderInfo()
171 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); in latinime_BinaryDictionary_getFormatVersion()
[all …]
Dcom_android_inputmethod_latin_DicTraverseSession.cpp28 class Dictionary;
41 Dictionary *dict = reinterpret_cast<Dictionary *>(dictionary); in latinime_initDicTraverseSession()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/result/
Dsuggestions_output_utils.cpp151 (wordAttributes.isPossiblyOffensive() ? Dictionary::KIND_FLAG_POSSIBLY_OFFENSIVE : 0) in outputSuggestionsOfDicNode()
152 | ((isExactMatch && boostExactMatches) ? Dictionary::KIND_FLAG_EXACT_MATCH : 0) in outputSuggestionsOfDicNode()
154 Dictionary::KIND_FLAG_EXACT_MATCH_WITH_INTENTIONAL_OMISSION : 0) in outputSuggestionsOfDicNode()
156 Dictionary::KIND_FLAG_APPROPRIATE_FOR_AUTOCORRECTION : 0); in outputSuggestionsOfDicNode()
182 finalScore, Dictionary::KIND_CORRECTION | outputTypeFlags, in outputSuggestionsOfDicNode()
263 kind = Dictionary::KIND_WHITELIST; in outputShortcuts()
269 kind = Dictionary::KIND_SHORTCUT; in outputShortcuts()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/session/
Ddic_traverse_session.h31 class Dictionary; variable
64 void init(const Dictionary *dictionary, const NgramContext *const ngramContext,
172 const Dictionary *mDictionary;
Ddic_traverse_session.cpp32 void DicTraverseSession::init(const Dictionary *const dictionary, in init()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DBinaryDictionaryTests.java185 assertEquals(Dictionary.NOT_A_PROBABILITY, binaryDictionary.getFrequency(invalidLongWord)); in testAddTooLongWord()
308 assertEquals(Dictionary.NOT_A_PROBABILITY, in testAddBigramWords()
310 assertEquals(Dictionary.NOT_A_PROBABILITY, in testAddBigramWords()
312 assertEquals(Dictionary.NOT_A_PROBABILITY, in testAddBigramWords()
324 assertEquals(Dictionary.NOT_A_PROBABILITY, in testAddBigramWords()
371 assertEquals(bigramProbability != Dictionary.NOT_A_PROBABILITY, in testRandomlyAddBigramWords()
420 assertEquals(Dictionary.NOT_A_PROBABILITY, binaryDictionary.getFrequency("aaa")); in testFlushDictionary()
421 assertEquals(Dictionary.NOT_A_PROBABILITY, binaryDictionary.getFrequency("abcd")); in testFlushDictionary()
517 assertEquals(bigramProbability != Dictionary.NOT_A_PROBABILITY, in testAddBigramWordsAndFlashWithGC()
606 probability = Dictionary.NOT_A_PROBABILITY; in testRandomOperationsAndFlashWithGC()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DVer4DictEncoder.java21 import com.android.inputmethod.latin.Dictionary;
70 Dictionary.TYPE_USER /* Dictionary type. Does not matter for us */, in writeDictionary()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
DUserHistoryDictionary.java24 import com.android.inputmethod.latin.Dictionary;
49 …erHistoryDictName(NAME, locale, null /* dictFile */, account), locale, Dictionary.TYPE_USER_HISTOR… in UserHistoryDictionary()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DWordProperty.java21 import com.android.inputmethod.latin.Dictionary;
194 return getProbability() != Dictionary.NOT_A_PROBABILITY; in isValid()
/packages/inputmethods/LeanbackIME/
Dproguard.cfg11 -keep public class Dictionary
/packages/apps/Car/LatinIME/
Dproguard.flags21 -keep class com.android.inputmethod.latin.Dictionary
/packages/inputmethods/LatinIME/java/
Dproguard.flags21 -keep class com.android.inputmethod.latin.Dictionary
/packages/apps/DocumentsUI/
Dproguard.flags25 # To prevent class not found exception in org.brotli.dec.Dictionary

12