Searched refs:shortcuts (Results 1 – 21 of 21) sorted by relevance
145 final ArrayList<WeightedString> shortcuts = new ArrayList<>(); in addUnigrams() local148 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() argument277 addUnigrams(words.size(), dict, words, shortcuts); in runReadAndWrite() local279 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 …]
173 private void writeShortcuts(final ArrayList<WeightedString> shortcuts) { in writeShortcuts() argument174 if (null == shortcuts || shortcuts.isEmpty()) return; in writeShortcuts()178 final Iterator<WeightedString> shortcutIterator = shortcuts.iterator(); in writeShortcuts()
102 ArrayList<WeightedString> shortcuts = new ArrayList<>(); in readDictionaryCombined() local108 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()
80 public UnigramHandler(final HashMap<String, ArrayList<WeightedString>> shortcuts) { in UnigramHandler() argument82 mShortcutsMap = shortcuts; in UnigramHandler()288 final BufferedInputStream shortcuts, final BufferedInputStream bigrams) in readDictionaryXml() argument298 if (null != shortcuts) parser.parse(shortcuts, shortcutAndWhitelistHandler); in readDictionaryXml()
318 final BufferedInputStream shortcuts = getBufferedFileInputStream(shortcutXmlFilename); in readXmlFile()321 return XmlDictInputOutput.readDictionaryXml(unigrams, shortcuts, bigrams); in readXmlFile()
287 const std::vector<UnigramProperty::ShortcutProperty> shortcuts; in addNgramEntry() local291 NOT_A_TIMESTAMP /* timestamp */, 0 /* level */, 0 /* count */, &shortcuts); in addNgramEntry()486 std::vector<UnigramProperty::ShortcutProperty> shortcuts; in getWordProperty() local499 shortcuts.emplace_back(&target, shortcutProbability); in getWordProperty()505 historicalInfo->getCount(), &shortcuts); in getWordProperty()
299 const std::vector<UnigramProperty::ShortcutProperty> shortcuts; in addNgramEntry() local303 NOT_A_TIMESTAMP /* timestamp */, 0 /* level */, 0 /* count */, &shortcuts); in addNgramEntry()498 std::vector<UnigramProperty::ShortcutProperty> shortcuts; in getWordProperty() local511 shortcuts.emplace_back(&target, shortcutProbability); in getWordProperty()517 historicalInfo->getCount(), &shortcuts); in getWordProperty()
359 std::vector<UnigramProperty::ShortcutProperty> shortcuts; in latinime_BinaryDictionary_addUnigramEntry() local363 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() local480 shortcuts.emplace_back(&shortcutTargetCodePoints, shortcutProbability); in latinime_BinaryDictionary_addMultipleDictionaryEntries()485 &shortcuts); in latinime_BinaryDictionary_addMultipleDictionaryEntries()
144 final Map<InputMethodInfo, List<InputMethodSubtype>> shortcuts = in updateShortcutIME() local148 for (final InputMethodInfo imi : shortcuts.keySet()) { in updateShortcutIME()149 final List<InputMethodSubtype> subtypes = shortcuts.get(imi); in updateShortcutIME()
414 std::vector<UnigramProperty::ShortcutProperty> shortcuts; in getWordProperty() local430 shortcuts.emplace_back(&shortcutTarget, shortcutProbability); in getWordProperty()435 NOT_A_TIMESTAMP /* timestamp */, 0 /* level */, 0 /* count */, &shortcuts); in getWordProperty()
57 const int count, const std::vector<ShortcutProperty> *const shortcuts) in UnigramProperty() argument60 mTimestamp(timestamp), mLevel(level), mCount(count), mShortcuts(*shortcuts) {} in UnigramProperty()
1405 final ArrayList<ContentValues> shortcuts = new ArrayList<ContentValues>(); in migrateLauncher2Shortcuts() local1530 shortcuts.add(values); in migrateLauncher2Shortcuts()1565 allItems.addAll(shortcuts); in migrateLauncher2Shortcuts()
4235 public void bindItems(final ArrayList<ItemInfo> shortcuts, final int start, final int end, in bindItems() argument4239 bindItems(shortcuts, start, end, forceAnimateIcons); in bindItems()4253 final ItemInfo item = shortcuts.get(i); in bindItems()
4884 void updateShortcuts(ArrayList<ShortcutInfo> shortcuts) {4885 final HashSet<ShortcutInfo> updates = new HashSet<ShortcutInfo>(shortcuts);
194 public void bindItems(ArrayList<ItemInfo> shortcuts, int start, int end, in bindItems() argument
3813 ArrayList<ItemInfo> shortcuts;3814 shortcuts = LauncherModel.getWorkspaceShortcutItemInfosWithIntent(3816 for (ItemInfo info : shortcuts) {
3456 public void bindItems(final ArrayList<ItemInfo> shortcuts, final int start, final int end) { in bindItems() argument3459 bindItems(shortcuts, start, end); in bindItems()3471 final ItemInfo item = shortcuts.get(i); in bindItems()
161 public void bindItems(ArrayList<ItemInfo> shortcuts, int start, int end); in bindItems() argument
1dictionary=main:en_us,locale=en_US,description=English (US),date ...
1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...