/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/ |
D | dictionary.cpp | 37 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 …]
|
D | dictionary.h | 41 class Dictionary { 65 Dictionary(JNIEnv *env, DictionaryStructureWithBufferPolicy::StructurePolicyPtr 120 DISALLOW_IMPLICIT_CONSTRUCTORS(Dictionary);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | DictionaryFacilitatorImpl.java | 80 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 …]
|
D | DictionaryCollection.java | 34 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()
|
D | DictionaryFacilitator.java | 48 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};
|
D | DictionaryFactory.java | 50 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()
|
D | Dictionary.java | 33 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 {
|
D | SuggestedWords.java | 273 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()
|
D | PunctuationSuggestions.java | 120 Dictionary.DICTIONARY_HARDCODED, in newHardCodedWordInfo()
|
D | ReadOnlyBinaryDictionary.java | 32 public final class ReadOnlyBinaryDictionary extends Dictionary {
|
D | DictionaryStats.java | 78 if (mDictType.equals(Dictionary.TYPE_MAIN)) { in toString()
|
D | Suggest.java | 173 Dictionary sourceDictionaryOfRemovedWord = null; in getSuggestedWordsForNonBatchInput() 253 null == sourceDictionaryOfRemovedWord ? Dictionary.DICTIONARY_USER_TYPED in getSuggestedWordsForNonBatchInput()
|
/packages/inputmethods/LatinIME/native/jni/ |
D | com_android_inputmethod_latin_BinaryDictionary.cpp | 65 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 …]
|
D | com_android_inputmethod_latin_DicTraverseSession.cpp | 28 class Dictionary; 41 Dictionary *dict = reinterpret_cast<Dictionary *>(dictionary); in latinime_initDicTraverseSession()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/result/ |
D | suggestions_output_utils.cpp | 151 (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/ |
D | dic_traverse_session.h | 31 class Dictionary; variable 64 void init(const Dictionary *dictionary, const NgramContext *const ngramContext, 172 const Dictionary *mDictionary;
|
D | dic_traverse_session.cpp | 32 void DicTraverseSession::init(const Dictionary *const dictionary, in init()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | BinaryDictionaryTests.java | 185 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/ |
D | Ver4DictEncoder.java | 21 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/ |
D | UserHistoryDictionary.java | 24 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/ |
D | WordProperty.java | 21 import com.android.inputmethod.latin.Dictionary; 194 return getProbability() != Dictionary.NOT_A_PROBABILITY; in isValid()
|
/packages/inputmethods/LeanbackIME/ |
D | proguard.cfg | 11 -keep public class Dictionary
|
/packages/apps/Car/LatinIME/ |
D | proguard.flags | 21 -keep class com.android.inputmethod.latin.Dictionary
|
/packages/inputmethods/LatinIME/java/ |
D | proguard.flags | 21 -keep class com.android.inputmethod.latin.Dictionary
|
/packages/apps/DocumentsUI/ |
D | proguard.flags | 25 # To prevent class not found exception in org.brotli.dec.Dictionary
|