/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
D | ver4_patricia_trie_policy.cpp | 74 isTerminal = ptNodeParams.getProbability() != NOT_A_PROBABILITY; in createAndGetAllChildDicNodes() 133 if (probability != NOT_A_PROBABILITY) { in getWordAttributesInContext() 137 return getWordAttributes(getProbability(ptNodeParams.getProbability(), NOT_A_PROBABILITY), in getWordAttributesInContext() 151 if (unigramProbability == NOT_A_PROBABILITY) { in getProbability() 152 return NOT_A_PROBABILITY; in getProbability() 154 if (bigramConditionalProbability == NOT_A_PROBABILITY) { in getProbability() 163 return NOT_A_PROBABILITY; in getProbabilityOfWord() 168 return NOT_A_PROBABILITY; in getProbabilityOfWord() 171 return getProbability(ptNodeParams.getProbability(), NOT_A_PROBABILITY); in getProbabilityOfWord() 174 return NOT_A_PROBABILITY; in getProbabilityOfWord() [all …]
|
D | ver4_patricia_trie_node_reader.cpp | 67 int probability = NOT_A_PROBABILITY; in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/ |
D | patricia_trie_policy.cpp | 90 *outUnigramProbability = NOT_A_PROBABILITY; in getCodePointsAndProbabilityAndReturnCodePointCount() 309 if (bigramProbability != NOT_A_PROBABILITY) { in getWordAttributesInContext() 313 return getWordAttributes(getProbability(ptNodeParams.getProbability(), NOT_A_PROBABILITY), in getWordAttributesInContext() 329 if (unigramProbability == NOT_A_PROBABILITY) { in getProbability() 330 return NOT_A_PROBABILITY; in getProbability() 331 } else if (bigramProbability == NOT_A_PROBABILITY) { in getProbability() 342 return NOT_A_PROBABILITY; in getProbabilityOfWord() 350 return NOT_A_PROBABILITY; in getProbabilityOfWord() 359 && bigramsIt.getProbability() != NOT_A_PROBABILITY) { in getProbabilityOfWord() 363 return NOT_A_PROBABILITY; in getProbabilityOfWord() [all …]
|
D | ver2_patricia_trie_node_reader.cpp | 35 int probability = NOT_A_PROBABILITY; in fetchPtNodeParamsInBufferFromPtNodePos()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | multi_bigram_map.cpp | 41 return structurePolicy->getProbability(unigramProbability, NOT_A_PROBABILITY); in getBigramProbability() 66 int bigramProbability = NOT_A_PROBABILITY; in getBigramProbability() 94 if (bigramProbability != NOT_A_PROBABILITY) { in readBigramProbabilityFromBinaryDictionary() 97 return structurePolicy->getProbability(unigramProbability, NOT_A_PROBABILITY); in readBigramProbabilityFromBinaryDictionary()
|
D | forgetting_curve_utils.cpp | 50 if (newProbability != NOT_A_PROBABILITY && originalHistoricalInfo->getLevel() == 0) { in createUpdatedHistoricalInfo() 201 mTables[tableId][level][timeStepCount] = NOT_A_PROBABILITY; in ProbabilityTable() 230 return NOT_A_PROBABILITY; in getBaseProbabilityForLevel()
|
D | binary_dictionary_bigrams_iterator.h | 30 mBigramPos(NOT_A_DICT_POS), mProbability(NOT_A_PROBABILITY), mHasNext(false) {} in BinaryDictionaryBigramsIterator() 35 mBigramPos(NOT_A_DICT_POS), mProbability(NOT_A_PROBABILITY), in BinaryDictionaryBigramsIterator()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
D | ver4_patricia_trie_policy.cpp | 120 return NOT_A_PROBABILITY; in getProbabilityOfWord() 126 return NOT_A_PROBABILITY; in getProbabilityOfWord() 150 int probability = NOT_A_PROBABILITY; in iterateNgramEntries() 156 NOT_A_PROBABILITY : 0; in iterateNgramEntries() 387 NOT_A_PROBABILITY, HistoricalInfo(historicalInfo.getTimestamp(), 0 /* level */, in updateEntriesForWordWithNgramContext() 406 true /* isNotAWord */, false /* isPossiblyOffensive */, NOT_A_PROBABILITY, in updateEntriesForWordWithNgramContext() 553 int shortcutProbability = NOT_A_PROBABILITY; in getWordProperty()
|
D | ver4_patricia_trie_node_reader.cpp | 86 terminalIdFieldPos, terminalId, NOT_A_PROBABILITY, childrenPosFieldPos, childrenPos, in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
|
/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/java/src/com/android/inputmethod/latin/ |
D | Dictionary.java | 34 public static final int NOT_A_PROBABILITY = -1; field in Dictionary 125 return NOT_A_PROBABILITY; in getFrequency() 133 return NOT_A_PROBABILITY; in getMaxFrequencyOfExactMatches()
|
D | BinaryDictionary.java | 353 return getFrequency(word) != NOT_A_PROBABILITY; in isInDictionary() 359 return NOT_A_PROBABILITY; in getFrequency() 368 return NOT_A_PROBABILITY; in getMaxFrequencyOfExactMatches() 376 return getNgramProbability(ngramContext, word) != NOT_A_PROBABILITY; in isValidNgram() 381 return NOT_A_PROBABILITY; in getNgramProbability()
|
D | ReadOnlyBinaryDictionary.java | 103 return NOT_A_PROBABILITY; in getFrequency() 115 return NOT_A_PROBABILITY; in getMaxFrequencyOfExactMatches()
|
D | DictionaryFacilitatorImpl.java | 577 Dictionary.NOT_A_PROBABILITY; in addWordToUserHistory() 682 return Dictionary.NOT_A_PROBABILITY; in getFrequency() 684 int maxFreq = Dictionary.NOT_A_PROBABILITY; in getFrequency()
|
D | ExpandableBinaryDictionary.java | 500 return NOT_A_PROBABILITY; in getMaxFrequencyOfExactMatches() 511 return NOT_A_PROBABILITY; in getMaxFrequencyOfExactMatches()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/ |
D | dictionary.cpp | 73 && ngramProbability == NOT_A_PROBABILITY) { in onVisitEntry() 84 if (wordAttributes.getProbability() == NOT_A_PROBABILITY) { in onVisitEntry() 118 if (wordId == NOT_A_WORD_ID) return NOT_A_PROBABILITY; in getNgramProbability()
|
D | dictionary_utils.cpp | 58 int maxProbability = NOT_A_PROBABILITY; in getMaxProbabilityOfExactMatches()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/ |
D | dynamic_language_model_probability_utils.h | 40 return std::min(std::max(probability, NOT_A_PROBABILITY), MAX_PROBABILITY); in backoff() 47 return NOT_A_PROBABILITY; in getDecayedProbability()
|
D | probability_entry.h | 39 : mFlags(Ver4DictConstants::FLAG_NOT_A_VALID_ENTRY), mProbability(NOT_A_PROBABILITY), in ProbabilityEntry() 48 : mFlags(flags), mProbability(NOT_A_PROBABILITY), mHistoricalInfo(*historicalInfo) {} in ProbabilityEntry()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/ |
D | bigram_dict_content.cpp | 41 return BigramEntry(false /* hasNext */, NOT_A_PROBABILITY, in getBigramEntryAndAdvancePosition() 47 int probability = NOT_A_PROBABILITY; in getBigramEntryAndAdvancePosition()
|
D | probability_entry.h | 43 : mFlags(0), mProbability(NOT_A_PROBABILITY), mHistoricalInfo() {} in ProbabilityEntry()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/bigram/ |
D | ver4_bigram_list_policy.cpp | 79 const BigramEntry newBigramEntry(false /* hasNext */, NOT_A_PROBABILITY, in addNewEntry() 112 const BigramEntry newBigramEntry(false /* hasNext */, NOT_A_PROBABILITY, in addNewEntry()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/ |
D | word_attributes.h | 26 : mProbability(NOT_A_PROBABILITY), mIsBlacklisted(false), mIsNotAWord(false), in WordAttributes()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/bigram/ |
D | bigram_list_policy.h | 41 *outProbability = NOT_A_PROBABILITY; in getNextBigram()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/ |
D | dic_node_utils.cpp | 77 if (wordAttributes.getProbability() == NOT_A_PROBABILITY in getBigramNodeImprobability()
|