Home
last modified time | relevance | path

Searched refs:shortcuts (Results 1 – 21 of 21) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictDecoderEncoderTests.java145 final ArrayList<WeightedString> shortcuts = new ArrayList<>(); in addUnigrams() local
148 shortcuts.add(new WeightedString(shortcut, UNIGRAM_FREQ)); in addUnigrams()
152 (shortcutMap == null) ? null : shortcuts, false /* isNotAWord */); in addUnigrams()
266 final SparseArray<List<Integer>> bigrams, final HashMap<String, List<String>> shortcuts, in runReadAndWrite() argument
277 addUnigrams(words.size(), dict, words, shortcuts); in runReadAndWrite() local
279 checkDictionary(dict, words, bigrams, shortcuts); in runReadAndWrite()
282 final long read = timeReadingAndCheckDict(file, words, bigrams, shortcuts, bufferType); in runReadAndWrite()
602 final HashMap<String, List<String>> shortcuts = sShortcuts;
607 addUnigrams(words.size(), dict, words, shortcuts);
621 if (shortcuts.containsKey(word)) {
[all …]
DVer2DictEncoder.java173 private void writeShortcuts(final ArrayList<WeightedString> shortcuts) { in writeShortcuts() argument
174 if (null == shortcuts || shortcuts.isEmpty()) return; in writeShortcuts()
178 final Iterator<WeightedString> shortcutIterator = shortcuts.iterator(); in writeShortcuts()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DCombinedInputOutput.java102 ArrayList<WeightedString> shortcuts = new ArrayList<>(); in readDictionaryCombined() local
108 dict.add(word, probabilityInfo, shortcuts.isEmpty() ? null : shortcuts, in readDictionaryCombined()
114 if (!shortcuts.isEmpty()) shortcuts = new ArrayList<>(); in readDictionaryCombined()
155 shortcuts.add(new WeightedString(shortcut, shortcutFreq)); in readDictionaryCombined()
192 dict.add(word, probabilityInfo, shortcuts.isEmpty() ? null : shortcuts, isNotAWord); in readDictionaryCombined()
DXmlDictInputOutput.java80 public UnigramHandler(final HashMap<String, ArrayList<WeightedString>> shortcuts) { in UnigramHandler() argument
82 mShortcutsMap = shortcuts; in UnigramHandler()
288 final BufferedInputStream shortcuts, final BufferedInputStream bigrams) in readDictionaryXml() argument
298 if (null != shortcuts) parser.parse(shortcuts, shortcutAndWhitelistHandler); in readDictionaryXml()
DDictionaryMaker.java318 final BufferedInputStream shortcuts = getBufferedFileInputStream(shortcutXmlFilename); in readXmlFile()
321 return XmlDictInputOutput.readDictionaryXml(unigrams, shortcuts, bigrams); in readXmlFile()
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/backward/v402/
Dver4_patricia_trie_policy.cpp287 const std::vector<UnigramProperty::ShortcutProperty> shortcuts; in addNgramEntry() local
291 NOT_A_TIMESTAMP /* timestamp */, 0 /* level */, 0 /* count */, &shortcuts); in addNgramEntry()
486 std::vector<UnigramProperty::ShortcutProperty> shortcuts; in getWordProperty() local
499 shortcuts.emplace_back(&target, shortcutProbability); in getWordProperty()
505 historicalInfo->getCount(), &shortcuts); in getWordProperty()
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp299 const std::vector<UnigramProperty::ShortcutProperty> shortcuts; in addNgramEntry() local
303 NOT_A_TIMESTAMP /* timestamp */, 0 /* level */, 0 /* count */, &shortcuts); in addNgramEntry()
498 std::vector<UnigramProperty::ShortcutProperty> shortcuts; in getWordProperty() local
511 shortcuts.emplace_back(&target, shortcutProbability); in getWordProperty()
517 historicalInfo->getCount(), &shortcuts); in getWordProperty()
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp359 std::vector<UnigramProperty::ShortcutProperty> shortcuts; in latinime_BinaryDictionary_addUnigramEntry() local
363 shortcuts.emplace_back(&shortcutTargetCodePoints, shortcutProbability); in latinime_BinaryDictionary_addUnigramEntry()
367 isBlacklisted, probability, timestamp, 0 /* level */, 1 /* count */, &shortcuts); in latinime_BinaryDictionary_addUnigramEntry()
474 std::vector<UnigramProperty::ShortcutProperty> shortcuts; in latinime_BinaryDictionary_addMultipleDictionaryEntries() local
480 shortcuts.emplace_back(&shortcutTargetCodePoints, shortcutProbability); in latinime_BinaryDictionary_addMultipleDictionaryEntries()
485 &shortcuts); in latinime_BinaryDictionary_addMultipleDictionaryEntries()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DSubtypeSwitcher.java144 final Map<InputMethodInfo, List<InputMethodSubtype>> shortcuts = in updateShortcutIME() local
148 for (final InputMethodInfo imi : shortcuts.keySet()) { in updateShortcutIME()
149 final List<InputMethodSubtype> subtypes = shortcuts.get(imi); in updateShortcutIME()
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v2/
Dpatricia_trie_policy.cpp414 std::vector<UnigramProperty::ShortcutProperty> shortcuts; in getWordProperty() local
430 shortcuts.emplace_back(&shortcutTarget, shortcutProbability); in getWordProperty()
435 NOT_A_TIMESTAMP /* timestamp */, 0 /* level */, 0 /* count */, &shortcuts); in getWordProperty()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/property/
Dunigram_property.h57 const int count, const std::vector<ShortcutProperty> *const shortcuts) in UnigramProperty() argument
60 mTimestamp(timestamp), mLevel(level), mCount(count), mShortcuts(*shortcuts) {} in UnigramProperty()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherProvider.java1405 final ArrayList<ContentValues> shortcuts = new ArrayList<ContentValues>(); in migrateLauncher2Shortcuts() local
1530 shortcuts.add(values); in migrateLauncher2Shortcuts()
1565 allItems.addAll(shortcuts); in migrateLauncher2Shortcuts()
DLauncher.java4235 public void bindItems(final ArrayList<ItemInfo> shortcuts, final int start, final int end, in bindItems() argument
4239 bindItems(shortcuts, start, end, forceAnimateIcons); in bindItems()
4253 final ItemInfo item = shortcuts.get(i); in bindItems()
DWorkspace.java4884 void updateShortcuts(ArrayList<ShortcutInfo> shortcuts) {
4885 final HashSet<ShortcutInfo> updates = new HashSet<ShortcutInfo>(shortcuts);
DLauncherModel.java194 public void bindItems(ArrayList<ItemInfo> shortcuts, int start, int end, in bindItems() argument
/packages/apps/Launcher2/src/com/android/launcher2/
DWorkspace.java3813 ArrayList<ItemInfo> shortcuts;
3814 shortcuts = LauncherModel.getWorkspaceShortcutItemInfosWithIntent(
3816 for (ItemInfo info : shortcuts) {
DLauncher.java3456 public void bindItems(final ArrayList<ItemInfo> shortcuts, final int start, final int end) { in bindItems() argument
3459 bindItems(shortcuts, start, end); in bindItems()
3471 final ItemInfo item = shortcuts.get(i); in bindItems()
DLauncherModel.java161 public void bindItems(ArrayList<ItemInfo> shortcuts, int start, int end); in bindItems() argument
/packages/inputmethods/LatinIME/dictionaries/
Den_US_wordlist.combined.gz1dictionary=main:en_us,locale=en_US,description=English (US),date ...
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Den_wordlist.combined.gz