Home
last modified time | relevance | path

Searched refs:WordProperty (Results 1 – 25 of 31) sorted by relevance

12

/packages/inputmethods/LatinIME/native/dicttoolkit/tests/offdevice_intermediate_dict/
Doffdevice_intermediate_dict_test.cpp39 const WordProperty getDummpWordProperty(const std::vector<int> &&codePoints) { in getDummpWordProperty()
40 return WordProperty(std::move(codePoints), UnigramProperty(), std::vector<NgramProperty>()); in getDummpWordProperty()
48 const WordProperty wordProperty0 = getDummpWordProperty(getCodePointVector("abcd")); in TEST()
52 const WordProperty wordProperty1 = getDummpWordProperty(getCodePointVector("efgh")); in TEST()
56 const WordProperty wordProperty2 = getDummpWordProperty(getCodePointVector("ab")); in TEST()
60 const WordProperty wordProperty3 = getDummpWordProperty(getCodePointVector("abcdefg")); in TEST()
64 const WordProperty wordProperty4 = getDummpWordProperty(getCodePointVector("efef")); in TEST()
68 const WordProperty wordProperty5 = getDummpWordProperty(getCodePointVector("ef")); in TEST()
72 const WordProperty wordProperty6 = getDummpWordProperty(getCodePointVector("abcd")); in TEST()
/packages/inputmethods/LatinIME/native/dicttoolkit/src/offdevice_intermediate_dict/
Doffdevice_intermediate_dict_pt_node.h39 const WordProperty &wordProperty) in OffdeviceIntermediateDictPtNode()
41 mWortProperty(new WordProperty(wordProperty)) {} in OffdeviceIntermediateDictPtNode()
48 mWortProperty(new WordProperty(*ptNode.mWortProperty)) {} in OffdeviceIntermediateDictPtNode()
51 OffdeviceIntermediateDictPtNode(const WordProperty &wordProperty, in OffdeviceIntermediateDictPtNode()
55 mWortProperty(new WordProperty(wordProperty)) {} in OffdeviceIntermediateDictPtNode()
57 const WordProperty *getWordProperty() const { in getWordProperty()
74 const std::unique_ptr<WordProperty> mWortProperty;
Doffdevice_intermediate_dict.h37 bool addWord(const WordProperty &wordProperty);
39 const WordProperty *getWordProperty(const CodePointArrayView codePoints) const;
48 bool addWordInner(const CodePointArrayView codePoints, const WordProperty &wordProperty,
Doffdevice_intermediate_dict.cpp24 bool OffdeviceIntermediateDict::addWord(const WordProperty &wordProperty) { in addWord()
33 const WordProperty &wordProperty, OffdeviceIntermediateDictPtNodeArray &ptNodeArray) { in addWordInner()
91 const WordProperty *OffdeviceIntermediateDict::getWordProperty( in getWordProperty()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DWordProperty.java37 public final class WordProperty implements Comparable<WordProperty> { class
51 public WordProperty(final String word, final ProbabilityInfo probabilityInfo, in WordProperty() method in WordProperty
81 public WordProperty(final int[] codePoints, final boolean isNotAWord, in WordProperty() method in WordProperty
136 private static int computeHashCode(WordProperty word) { in computeHashCode()
153 public int compareTo(final WordProperty w) { in compareTo()
168 if (!(o instanceof WordProperty)) return false; in equals()
169 WordProperty w = (WordProperty)o; in equals()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/
Dword_property.h30 class WordProperty {
33 WordProperty() in WordProperty() function
36 WordProperty(const std::vector<int> &&codePoints, const UnigramProperty &unigramProperty, in WordProperty() function
55 DISALLOW_ASSIGNMENT_OPERATOR(WordProperty);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DExpandableBinaryDictionary.java30 import com.android.inputmethod.latin.makedict.WordProperty;
78 private static final WordProperty[] DEFAULT_WORD_PROPERTIES_FOR_SYNC =
79 new WordProperty[0] /* default */;
711 final WordProperty wordProperty = result.mWordProperty; in dumpAllWordsForDebug()
726 public WordProperty[] getWordPropertiesForSyncing() { in getWordPropertiesForSyncing()
728 final AsyncResultHolder<WordProperty[]> result = in getWordPropertiesForSyncing()
733 final ArrayList<WordProperty> wordPropertyList = new ArrayList<>(); in getWordPropertiesForSyncing()
743 final WordProperty wordProperty = nextWordPropertyResult.mWordProperty; in getWordPropertiesForSyncing()
750 result.set(wordPropertyList.toArray(new WordProperty[wordPropertyList.size()])); in getWordPropertiesForSyncing()
DBinaryDictionary.java34 import com.android.inputmethod.latin.makedict.WordProperty;
391 public WordProperty getWordProperty(final String word, final boolean isBeginningOfSentence) { in getWordProperty()
411 return new WordProperty(codePoints, in getWordProperty()
421 public WordProperty mWordProperty;
424 public GetNextWordPropertyResult(final WordProperty wordProperty, final int nextToken) { in GetNextWordPropertyResult()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DVer4DictDecoder.java68 final ArrayList<WordProperty> wordProperties = new ArrayList<>(); in readDictionaryBinary()
72 final WordProperty wordProperty = result.mWordProperty; in readDictionaryBinary()
85 for (final WordProperty wordProperty : wordProperties) { in readDictionaryBinary()
92 for (final WordProperty wordProperty : wordProperties) { in readDictionaryBinary()
DFusionDictionary.java33 public final class FusionDictionary implements Iterable<WordProperty> {
570 public static final class DictionaryIterator implements Iterator<WordProperty> {
600 public WordProperty next() { in next()
617 return new WordProperty(mCurrentString.toString(), in next()
643 public Iterator<WordProperty> iterator() { in iterator()
DVer4DictEncoder.java76 for (final WordProperty wordProperty : dict) { in writeDictionary()
89 for (final WordProperty word0Property : dict) { in writeDictionary()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DCombinedInputOutput.java25 import com.android.inputmethod.latin.makedict.WordProperty;
200 final TreeSet<WordProperty> wordPropertiesInDict = new TreeSet<>(); in writeDictionaryCombined()
201 for (final WordProperty wordProperty : dict) { in writeDictionaryCombined()
206 for (final WordProperty wordProperty : wordPropertiesInDict) { in writeDictionaryCombined()
DDiff.java22 import com.android.inputmethod.latin.makedict.WordProperty;
110 for (final WordProperty word0Property : dict0) { in diffWords()
141 for (final WordProperty word1Property : dict1) { in diffWords()
DInfo.java23 import com.android.inputmethod.latin.makedict.WordProperty;
46 for (final WordProperty wordProperty : dict) { in showInfo()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DBinaryDictionaryTests.java37 import com.android.inputmethod.latin.makedict.WordProperty;
723 final WordProperty invalidWordProperty = binaryDictionary.getWordProperty("dummyWord", in testGetWordProperties()
746 final WordProperty wordProperty = binaryDictionary.getWordProperty(word, in testGetWordProperties()
785 final WordProperty wordProperty = binaryDictionary.getWordProperty(word0, in testGetWordProperties()
808 final WordProperty invalidWordProperty = binaryDictionary.getWordProperty("dummyWord", in testIterateAllWords()
859 final WordProperty wordProperty = result.mWordProperty; in testIterateAllWords()
887 WordProperty wordProperty = binaryDictionary.getWordProperty("ddd", false); in testPossiblyOffensiveAttributeMaintained()
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/makedict/
DFusionDictionaryTest.java23 import com.android.inputmethod.latin.makedict.WordProperty;
91 for (WordProperty wordProperty : dict) { in dumpDict()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DCombinedFormatUtils.java22 import com.android.inputmethod.latin.makedict.WordProperty;
57 public static String formatWordProperty(final WordProperty wordProperty) { in formatWordProperty()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dpatricia_trie_policy.cpp426 const WordProperty PatriciaTriePolicy::getWordProperty( in getWordProperty()
431 return WordProperty(); in getWordProperty()
481 return WordProperty(wordCodePoints.toVector(), unigramProperty, ngrams); in getWordProperty()
Dpatricia_trie_policy.h144 const WordProperty getWordProperty(const CodePointArrayView wordCodePoints) const;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp504 const WordProperty Ver4PatriciaTriePolicy::getWordProperty( in getWordProperty()
509 return WordProperty(); in getWordProperty()
569 return WordProperty(wordCodePoints.toVector(), unigramProperty, ngrams); in getWordProperty()
Dver4_patricia_trie_policy.h112 const WordProperty getWordProperty(const CodePointArrayView wordCodePoints) const;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_policy.cpp549 const WordProperty Ver4PatriciaTriePolicy::getWordProperty( in getWordProperty()
555 return WordProperty(); in getWordProperty()
620 return WordProperty(wordCodePoints.toVector(), unigramProperty, ngrams); in getWordProperty()
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp352 const WordProperty wordProperty = dictionary->getWordProperty( in latinime_BinaryDictionary_getWordProperty()
572 const WordProperty wordProperty = dictionary->getWordProperty( in latinime_BinaryDictionary_migrateNative()
597 const WordProperty wordProperty = dictionary->getWordProperty( in latinime_BinaryDictionary_migrateNative()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/interface/
Ddictionary_structure_with_buffer_policy.h107 virtual const WordProperty getWordProperty(const CodePointArrayView wordCodePoints) const = 0;
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
Ddictionary.h107 const WordProperty getWordProperty(const CodePointArrayView codePoints);

12