Home
last modified time | relevance | path

Searched refs:mShortcutTargets (Results 1 – 14 of 14) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DFusionDictionary.java85 ArrayList<WeightedString> mShortcutTargets; field in FusionDictionary.PtNode
109 mShortcutTargets = shortcutTargets; in PtNode()
122 mShortcutTargets = shortcutTargets; in PtNode()
162 if (null == mShortcutTargets) return null; in getShortcutTargets()
164 new ArrayList<>(mShortcutTargets); in getShortcutTargets()
203 if (mShortcutTargets != null) { in getShortcut()
204 final int size = mShortcutTargets.size(); in getShortcut()
206 WeightedString shortcut = mShortcutTargets.get(i); in getShortcut()
244 if (mShortcutTargets == null) { in update()
245 mShortcutTargets = shortcutTargets; in update()
[all …]
DVer4DictEncoder.java77 if (null == wordProperty.mShortcutTargets || wordProperty.mShortcutTargets.isEmpty()) { in writeDictionary()
85 for (final WeightedString shortcutTarget : wordProperty.mShortcutTargets) { in writeDictionary()
DBinaryDictDecoderEncoderTests.java622 assertEquals(shortcuts.get(word).size(), wordProperty.mShortcutTargets.size());
625 for (final WeightedString shortcutTarget : wordProperty.mShortcutTargets) {
675 assertEquals(shortcuts.get(word0).size(), wordProperty.mShortcutTargets.size());
677 assertNotNull(wordProperty.mShortcutTargets);
678 for (final WeightedString shortcutTarget : wordProperty.mShortcutTargets) {
DBinaryDictEncoderUtils.java133 size += getShortcutListSize(ptNode.mShortcutTargets); in getPtNodeMaximumSize()
384 nodeSize += getShortcutListSize(ptNode.mShortcutTargets); in computeActualPtNodeArraySize()
616 node.mShortcutTargets != null && !node.mShortcutTargets.isEmpty(), in makePtNodeFlags()
DPtNodeInfo.java31 public final ArrayList<WeightedString> mShortcutTargets; field in PtNodeInfo
44 mShortcutTargets = shortcutTargets; in PtNodeInfo()
DVer4DictDecoder.java92 fusionDict.addBlacklistEntry(wordProperty.mWord, wordProperty.mShortcutTargets, in readDictionaryBinary()
96 wordProperty.mShortcutTargets, wordProperty.mIsNotAWord); in readDictionaryBinary()
DVer2DictDecoder.java286 fusionDict.addBlacklistEntry(wordProperty.mWord, wordProperty.mShortcutTargets, in readDictionaryBinary()
290 wordProperty.mShortcutTargets, wordProperty.mIsNotAWord); in readDictionaryBinary()
DVer2DictEncoder.java237 writeShortcuts(ptNode.mShortcutTargets); in writePtNode()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DWordProperty.java35 public final ArrayList<WeightedString> mShortcutTargets; field in WordProperty
53 mShortcutTargets = shortcutTargets; in WordProperty()
80 mShortcutTargets = new ArrayList<>(); in WordProperty()
100 mShortcutTargets.add( in WordProperty()
113 word.mShortcutTargets.hashCode(), in computeHashCode()
145 && mShortcutTargets.equals(w.mShortcutTargets) && mBigrams.equals(w.mBigrams) in equals()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DBinaryDictionaryTests.java1031 assertTrue(wordProperty.mShortcutTargets.isEmpty()); in testGetWordProperties()
1198 assertEquals(1, wordProperty.mShortcutTargets.size()); in testAddShortcuts()
1199 assertEquals("zzz", wordProperty.mShortcutTargets.get(0).mWord); in testAddShortcuts()
1200 assertEquals(shortcutProbability, wordProperty.mShortcutTargets.get(0).getProbability()); in testAddShortcuts()
1207 assertEquals(1, wordProperty.mShortcutTargets.size()); in testAddShortcuts()
1208 assertEquals("zzz", wordProperty.mShortcutTargets.get(0).mWord); in testAddShortcuts()
1210 wordProperty.mShortcutTargets.get(0).getProbability()); in testAddShortcuts()
1219 assertEquals(2, wordProperty.mShortcutTargets.size()); in testAddShortcuts()
1220 for (WeightedString shortcutTarget : wordProperty.mShortcutTargets) { in testAddShortcuts()
1231 assertEquals(2, wordProperty.mShortcutTargets.size()); in testAddShortcuts()
[all …]
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DInfo.java51 if (null != wordProperty.mShortcutTargets) { in showInfo()
52 shortcutCount += wordProperty.mShortcutTargets.size(); in showInfo()
53 for (WeightedString shortcutTarget : wordProperty.mShortcutTargets) { in showInfo()
DXmlDictInputOutput.java356 if (null != wordProperty.mShortcutTargets) { in writeDictionaryXml()
358 for (WeightedString target : wordProperty.mShortcutTargets) { in writeDictionaryXml()
DDiff.java140 "Shortcut", word0Property.mShortcutTargets, in diffWords()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DCombinedFormatUtils.java70 if (wordProperty.mShortcutTargets != null) { in formatWordProperty()
71 for (final WeightedString shortcutTarget : wordProperty.mShortcutTargets) { in formatWordProperty()