/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 …]
|
D | Ver4DictEncoder.java | 76 for (final WordProperty wordProperty : dict) { in writeDictionary() 77 if (!binaryDict.addUnigramEntry(wordProperty.mWord, wordProperty.getProbability(), in writeDictionary() 78 wordProperty.mIsBeginningOfSentence, wordProperty.mIsNotAWord, in writeDictionary() 79 wordProperty.mIsPossiblyOffensive, 0 /* timestamp */)) { in writeDictionary() 80 MakedictLog.e("Cannot add unigram entry for " + wordProperty.mWord); in writeDictionary()
|
D | BinaryDictDecoderEncoderTests.java | 619 final WordProperty wordProperty = binaryDictionary.getWordProperty(word, 621 assertEquals(word, wordProperty.mWord); 622 assertEquals(UNIGRAM_FREQ, wordProperty.getProbability()); 660 final WordProperty wordProperty = result.mWordProperty; 661 final String word0 = wordProperty.mWord; 662 assertEquals(UNIGRAM_FREQ, wordProperty.mProbabilityInfo.mProbability); 664 if (wordProperty.mHasNgrams) { 665 for (final WeightedString bigramTarget : wordProperty.getBigrams()) {
|
/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/tests/src/com/android/inputmethod/latin/ |
D | BinaryDictionaryTests.java | 746 final WordProperty wordProperty = binaryDictionary.getWordProperty(word, in testGetWordProperties() local 748 assertEquals(word, wordProperty.mWord); in testGetWordProperties() 749 assertTrue(wordProperty.isValid()); in testGetWordProperties() 750 assertEquals(isNotAWord, wordProperty.mIsNotAWord); in testGetWordProperties() 751 assertEquals(isPossiblyOffensive, wordProperty.mIsPossiblyOffensive); in testGetWordProperties() 752 assertEquals(false, wordProperty.mHasNgrams); in testGetWordProperties() 753 assertEquals(unigramProbability, wordProperty.mProbabilityInfo.mProbability); in testGetWordProperties() 785 final WordProperty wordProperty = binaryDictionary.getWordProperty(word0, in testGetWordProperties() local 787 assertEquals(bigramWord1s.size(), wordProperty.mNgrams.size()); in testGetWordProperties() 789 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/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
D | CombinedInputOutput.java | 201 for (final WordProperty wordProperty : dict) { in writeDictionaryCombined() 203 wordPropertiesInDict.add(wordProperty); in writeDictionaryCombined() 206 for (final WordProperty wordProperty : wordPropertiesInDict) { in writeDictionaryCombined() 207 destination.write(CombinedFormatUtils.formatWordProperty(wordProperty)); in writeDictionaryCombined()
|
D | Info.java | 46 for (final WordProperty wordProperty : dict) { in showInfo() 48 if (wordProperty.mHasNgrams) { in showInfo() 49 bigramCount += wordProperty.mNgrams.size(); in showInfo()
|
/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/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()
|
/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()
|