/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | Ver4DictDecoder.java | 72 final WordProperty wordProperty = result.mWordProperty; in readDictionaryBinary() local 73 if (wordProperty == null) { in readDictionaryBinary() 80 wordProperties.add(wordProperty); in readDictionaryBinary() 85 for (final WordProperty wordProperty : wordProperties) { in readDictionaryBinary() 86 fusionDict.add(wordProperty.mWord, wordProperty.mProbabilityInfo, in readDictionaryBinary() 87 wordProperty.mIsNotAWord, in readDictionaryBinary() 88 wordProperty.mIsPossiblyOffensive); in readDictionaryBinary() 92 for (final WordProperty wordProperty : wordProperties) { in readDictionaryBinary() 93 if (!wordProperty.mHasNgrams) { in readDictionaryBinary() 96 final String word0 = wordProperty.mWord; in readDictionaryBinary() [all …]
|
/packages/inputmethods/LatinIME/native/dicttoolkit/src/offdevice_intermediate_dict/ |
D | offdevice_intermediate_dict.cpp | 24 bool OffdeviceIntermediateDict::addWord(const WordProperty &wordProperty) { in addWord() argument 25 const CodePointArrayView codePoints = wordProperty.getCodePoints(); in addWord() 29 return addWordInner(codePoints, wordProperty, mRootPtNodeArray); in addWord() 33 const WordProperty &wordProperty, OffdeviceIntermediateDictPtNodeArray &ptNodeArray) { in addWordInner() argument 49 return addWordInner(codePoints.skip(i), wordProperty, in addWordInner() 63 std::make_shared<OffdeviceIntermediateDictPtNode>(wordProperty, *ptNode)); in addWordInner() 70 ? std::make_shared<OffdeviceIntermediateDictPtNode>(codePoints, wordProperty) in addWordInner() 82 return addWordInner(codePoints.skip(i), wordProperty, childrenPtNodeArray); in addWordInner() 87 std::make_shared<OffdeviceIntermediateDictPtNode>(codePoints, wordProperty)); in addWordInner()
|
D | offdevice_intermediate_dict_pt_node.h | 39 const WordProperty &wordProperty) in OffdeviceIntermediateDictPtNode() argument 41 mWortProperty(new WordProperty(wordProperty)) {} in OffdeviceIntermediateDictPtNode() 51 OffdeviceIntermediateDictPtNode(const WordProperty &wordProperty, in OffdeviceIntermediateDictPtNode() argument 55 mWortProperty(new WordProperty(wordProperty)) {} in OffdeviceIntermediateDictPtNode()
|
D | offdevice_intermediate_dict.h | 37 bool addWord(const WordProperty &wordProperty); 48 bool addWordInner(const CodePointArrayView codePoints, const WordProperty &wordProperty,
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | CombinedFormatUtils.java | 57 public static String formatWordProperty(final WordProperty wordProperty) { in formatWordProperty() argument 59 builder.append(" " + WORD_TAG + "=" + wordProperty.mWord); in formatWordProperty() 61 builder.append(formatProbabilityInfo(wordProperty.mProbabilityInfo)); in formatWordProperty() 62 if (wordProperty.mIsBeginningOfSentence) { in formatWordProperty() 65 if (wordProperty.mIsNotAWord) { in formatWordProperty() 68 if (wordProperty.mIsPossiblyOffensive) { in formatWordProperty() 72 if (wordProperty.mHasNgrams) { in formatWordProperty() 73 for (final NgramProperty ngramProperty : wordProperty.mNgrams) { in formatWordProperty()
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
D | Info.java | 46 for (final WordProperty wordProperty : dict) { in showInfo() 48 if (wordProperty.mHasNgrams) { in showInfo() 49 bigramCount += wordProperty.mNgrams.size(); in showInfo() 51 if (null != wordProperty.mShortcutTargets) { in showInfo() 52 shortcutCount += wordProperty.mShortcutTargets.size(); in showInfo() 53 for (WeightedString shortcutTarget : wordProperty.mShortcutTargets) { in showInfo()
|
D | CombinedInputOutput.java | 222 for (final WordProperty wordProperty : dict) { in writeDictionaryCombined() 224 wordPropertiesInDict.add(wordProperty); in writeDictionaryCombined() 227 for (final WordProperty wordProperty : wordPropertiesInDict) { in writeDictionaryCombined() 228 destination.write(CombinedFormatUtils.formatWordProperty(wordProperty)); in writeDictionaryCombined()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | BinaryDictionaryTests.java | 720 final WordProperty wordProperty = binaryDictionary.getWordProperty(word, in testGetWordProperties() local 722 assertEquals(word, wordProperty.mWord); in testGetWordProperties() 723 assertTrue(wordProperty.isValid()); in testGetWordProperties() 724 assertEquals(isNotAWord, wordProperty.mIsNotAWord); in testGetWordProperties() 725 assertEquals(isPossiblyOffensive, wordProperty.mIsPossiblyOffensive); in testGetWordProperties() 726 assertEquals(false, wordProperty.mHasNgrams); in testGetWordProperties() 727 assertEquals(unigramProbability, wordProperty.mProbabilityInfo.mProbability); in testGetWordProperties() 759 final WordProperty wordProperty = binaryDictionary.getWordProperty(word0, in testGetWordProperties() local 761 assertEquals(bigramWord1s.size(), wordProperty.mNgrams.size()); in testGetWordProperties() 763 for (final WeightedString bigramTarget : wordProperty.getBigrams()) { in testGetWordProperties() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
D | jni_data_utils.cpp | 27 const WordProperty &wordProperty, jintArray outCodePoints, jbooleanArray outFlags, in outputWordProperty() argument 32 const CodePointArrayView codePoints = wordProperty.getCodePoints(); in outputWordProperty() 36 const UnigramProperty &unigramProperty = wordProperty.getUnigramProperty(); in outputWordProperty() 37 const std::vector<NgramProperty> &ngrams = wordProperty.getNgramProperties(); in outputWordProperty()
|
D | jni_data_utils.h | 144 static void outputWordProperty(JNIEnv *const env, const WordProperty &wordProperty,
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | ExpandableBinaryDictionary.java | 711 final WordProperty wordProperty = result.mWordProperty; in dumpAllWordsForDebug() local 712 if (wordProperty == null) { in dumpAllWordsForDebug() 716 Log.d(tag, wordProperty.toString()); in dumpAllWordsForDebug() 743 final WordProperty wordProperty = nextWordPropertyResult.mWordProperty; in getWordPropertiesForSyncing() local 744 if (wordProperty == null) { in getWordPropertiesForSyncing() 747 wordPropertyList.add(wordProperty); in getWordPropertiesForSyncing()
|
D | BinaryDictionary.java | 424 public GetNextWordPropertyResult(final WordProperty wordProperty, final int nextToken) { in GetNextWordPropertyResult() argument 425 mWordProperty = wordProperty; in GetNextWordPropertyResult()
|
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/makedict/ |
D | FusionDictionaryTest.java | 91 for (WordProperty wordProperty : dict) { in dumpDict() 92 System.out.println("Word " + dumpWord(wordProperty.mWord)); in dumpDict()
|
/packages/inputmethods/LatinIME/native/jni/ |
D | com_android_inputmethod_latin_BinaryDictionary.cpp | 352 const WordProperty wordProperty = dictionary->getWordProperty( in latinime_BinaryDictionary_getWordProperty() local 354 JniDataUtils::outputWordProperty(env, wordProperty, outCodePoints, outFlags, outProbabilityInfo, in latinime_BinaryDictionary_getWordProperty() 572 const WordProperty wordProperty = dictionary->getWordProperty( in latinime_BinaryDictionary_migrateNative() local 588 &wordProperty.getUnigramProperty())) { in latinime_BinaryDictionary_migrateNative() 597 const WordProperty wordProperty = dictionary->getWordProperty( in latinime_BinaryDictionary_migrateNative() local 607 for (const NgramProperty &ngramProperty : wordProperty.getNgramProperties()) { in latinime_BinaryDictionary_migrateNative()
|