Searched refs:word1 (Results 1 – 6 of 6) sorted by relevance
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | BinaryDictionaryTests.java | 198 final String word1, final int probability) { in addBigramWords() argument 199 binaryDictionary.addNgramEntry(new NgramContext(new WordInfo(word0)), word1, probability, in addBigramWords() 204 final String word1, final String word2, final int probability) { in addTrigramEntry() argument 206 new NgramContext(new WordInfo(word1), new WordInfo(word0)), word2, in addTrigramEntry() 211 final String word0, final String word1) { in isValidBigram() argument 212 return binaryDictionary.isValidNgram(new NgramContext(new WordInfo(word0)), word1); in isValidBigram() 216 final String word0, final String word1) { in getBigramProbability() argument 217 return binaryDictionary.getNgramProbability(new NgramContext(new WordInfo(word0)), word1); in getBigramProbability() 221 final String word0, final String word1, final String word2) { in getTrigramProbability() argument 223 new NgramContext(new WordInfo(word1), new WordInfo(word0)), word2); in getTrigramProbability() [all …]
|
/packages/modules/Bluetooth/system/stack/test/hci/ |
D | stack_hci_test.cc | 58 ASSERT_EQ(0xffff, preamble.raw.word1); in TEST_F() 70 preamble.raw.word1 = 0x4567; in TEST_F() 75 ASSERT_EQ(0x4567, preamble.raw.word1); in TEST_F() 85 preamble.raw.word1 = 0x4567; in TEST_F() 90 ASSERT_EQ(0x4567, preamble.raw.word1); in TEST_F() 101 preamble.raw.word1 = 0x0; in TEST_F() 106 ASSERT_EQ(0x0000, preamble.raw.word1); in TEST_F() 117 preamble.raw.word1 = 0x0; in TEST_F()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | Ver4DictEncoder.java | 92 for (final WeightedString word1 : word0Property.getBigrams()) { in writeDictionary() 95 if (!binaryDict.addNgramEntry(ngramContext, word1.mWord, in writeDictionary() 96 word1.getProbability(), 0 /* timestamp */)) { in writeDictionary() 98 + ngramContext + " -> " + word1.mWord); in writeDictionary()
|
D | BinaryDictDecoderEncoderTests.java | 374 final String word1 = expectedWords.get(expectedBigrams.keyAt(i)); in checkWordMap() local 376 if (expBigrams.get(word1) == null) { in checkWordMap() 377 expBigrams.put(word1, new HashSet<String>()); in checkWordMap() 379 expBigrams.get(word1).add(expectedWords.get(w2)); in checkWordMap() 385 final String word1 = resultWords.get(entry.getKey()); in checkWordMap() local 389 if (actBigrams.get(word1) == null) { in checkWordMap() 390 actBigrams.put(word1, new HashSet<String>()); in checkWordMap() 392 actBigrams.get(word1).add(word2); in checkWordMap() 649 final String word1 = words.get(word1Index); 650 bigramSet.add(new Pair<>(words.get(i), word1)); [all …]
|
D | FusionDictionary.java | 304 public void setBigram(final String word0, final String word1, in setBigram() argument 308 final PtNode ptNode1 = findWordInTree(mRootNodeArray, word1); in setBigram() 310 add(getCodePoints(word1), new ProbabilityInfo(0), false /* isNotAWord */, in setBigram() 317 ptNode0.addBigram(word1, probabilityInfo); in setBigram()
|
/packages/modules/Bluetooth/system/stack/include/ |
D | hcidefs.h | 865 uint16_t word1; member 873 *data++ = ((raw.word1) & 0xff); in Serialize() 874 *data++ = (((raw.word1 >> 8)) & 0xff); in Serialize()
|