Home
last modified time | relevance | path

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

123

/packages/apps/Launcher3/tests/src/com/android/launcher3/popup/
DPopupPopulatorTest.java22 import com.android.launcher3.shortcuts.ShortcutInfoCompat;
80 List<ShortcutInfoCompat> shortcuts, int expectedStatic, int expectedDynamic) { in filterShortcutsAndAssertNumStaticAndDynamic() argument
81 … filterShortcutsAndAssertNumStaticAndDynamic(shortcuts, expectedStatic, expectedDynamic, null); in filterShortcutsAndAssertNumStaticAndDynamic()
84 private void filterShortcutsAndAssertNumStaticAndDynamic(List<ShortcutInfoCompat> shortcuts, in filterShortcutsAndAssertNumStaticAndDynamic() argument
86 Collections.shuffle(shortcuts); in filterShortcutsAndAssertNumStaticAndDynamic()
88 shortcuts, shortcutIdToRemove); in filterShortcutsAndAssertNumStaticAndDynamic()
105 private void assertIsSorted(List<ShortcutInfoCompat> shortcuts) { in assertIsSorted() argument
109 for (ShortcutInfoCompat shortcut : shortcuts) { in assertIsSorted()
126 List<ShortcutInfoCompat> shortcuts = new ArrayList<>(); in createShortcutsList() local
128 shortcuts.add(new Shortcut(true, i)); in createShortcutsList()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupPopulator.java38 import com.android.launcher3.shortcuts.DeepShortcutManager;
39 import com.android.launcher3.shortcuts.DeepShortcutView;
40 import com.android.launcher3.shortcuts.ShortcutInfoCompat;
137 List<ShortcutInfoCompat> shortcuts, @Nullable String shortcutIdToRemoveFirst) { in sortAndFilterShortcuts() argument
140 Iterator<ShortcutInfoCompat> shortcutIterator = shortcuts.iterator(); in sortAndFilterShortcuts()
149 Collections.sort(shortcuts, SHORTCUT_RANK_COMPARATOR); in sortAndFilterShortcuts()
150 if (shortcuts.size() <= MAX_ITEMS) { in sortAndFilterShortcuts()
151 return shortcuts; in sortAndFilterShortcuts()
158 int size = shortcuts.size(); in sortAndFilterShortcuts()
160 ShortcutInfoCompat shortcut = shortcuts.get(i); in sortAndFilterShortcuts()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/events/
DShortcutEventTracker.java35 private final Set<String> shortcuts = new ArraySet<>(5); field in ShortcutEventTracker
40 shortcuts.add(uidm.getShortcutId(R.string.category_alarm, R.string.action_create)); in ShortcutEventTracker()
41 shortcuts.add(uidm.getShortcutId(R.string.category_timer, R.string.action_create)); in ShortcutEventTracker()
42 shortcuts.add(uidm.getShortcutId(R.string.category_stopwatch, R.string.action_pause)); in ShortcutEventTracker()
43 shortcuts.add(uidm.getShortcutId(R.string.category_stopwatch, R.string.action_start)); in ShortcutEventTracker()
44 shortcuts.add(uidm.getShortcutId(R.string.category_screensaver, R.string.action_show)); in ShortcutEventTracker()
50 if (shortcuts.contains(shortcutId)) { in sendEvent()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DCombinedInputOutput.java103 ArrayList<WeightedString> shortcuts = new ArrayList<>(); in readDictionaryCombined() local
109 dict.add(word, probabilityInfo, shortcuts.isEmpty() ? null : shortcuts, in readDictionaryCombined()
115 if (!shortcuts.isEmpty()) shortcuts = new ArrayList<>(); in readDictionaryCombined()
166 shortcuts.add(new WeightedString(shortcut, shortcutFreq)); in readDictionaryCombined()
203 dict.add(word, probabilityInfo, shortcuts.isEmpty() ? null : shortcuts, isNotAWord, in readDictionaryCombined()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DShortcutsChangedTask.java28 import com.android.launcher3.shortcuts.DeepShortcutManager;
29 import com.android.launcher3.shortcuts.ShortcutInfoCompat;
45 public ShortcutsChangedTask(String packageName, List<ShortcutInfoCompat> shortcuts, in ShortcutsChangedTask() argument
48 mShortcuts = shortcuts; in ShortcutsChangedTask()
75 List<ShortcutInfoCompat> shortcuts = deepShortcutManager.queryForFullDetails( in execute() local
77 for (ShortcutInfoCompat fullDetails : shortcuts) { in execute()
DUserLockStateChangedTask.java29 import com.android.launcher3.shortcuts.DeepShortcutManager;
30 import com.android.launcher3.shortcuts.ShortcutInfoCompat;
31 import com.android.launcher3.shortcuts.ShortcutKey;
58 List<ShortcutInfoCompat> shortcuts = in execute() local
61 for (ShortcutInfoCompat shortcut : shortcuts) { in execute()
DBgDataModel.java33 import com.android.launcher3.shortcuts.DeepShortcutManager;
34 import com.android.launcher3.shortcuts.ShortcutInfoCompat;
35 import com.android.launcher3.shortcuts.ShortcutKey;
351 String packageName, UserHandle user, List<ShortcutInfoCompat> shortcuts) { in updateDeepShortcutMap() argument
364 for (ShortcutInfoCompat shortcut : shortcuts) { in updateDeepShortcutMap()
/packages/apps/Contacts/src/com/android/contacts/
DDynamicShortcuts.java152 final List<ShortcutInfo> shortcuts = getStrequentShortcuts(); in refresh()
153 mShortcutManager.setDynamicShortcuts(shortcuts); in refresh()
155 Log.d(TAG, "set dynamic shortcuts " + shortcuts); in refresh()
507 final DynamicShortcuts shortcuts = new DynamicShortcuts(context); in initialize()
509 if (!shortcuts.hasRequiredPermissions()) { in initialize()
512 LocalBroadcastManager.getInstance(shortcuts.mContext).registerReceiver( in initialize()
521 new ShortcutUpdateTask(shortcuts).execute(); in initialize()
570 public ShortcutUpdateTask(DynamicShortcuts shortcuts) { in ShortcutUpdateTask() argument
571 mDynamicShortcuts = shortcuts; in ShortcutUpdateTask()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DPersonalDictionaryLookup.java358 final Set<String> shortcuts = new HashSet<>(); in getShortcutsForLocale() local
363 shortcuts.addAll(countryShortcuts.keySet()); in getShortcutsForLocale()
372 shortcuts.addAll(languageShortcuts.keySet()); in getShortcutsForLocale()
378 shortcuts.addAll(globalShortcuts.keySet()); in getShortcutsForLocale()
381 return shortcuts; in getShortcutsForLocale()
633 for (HashMap<String, String> shortcuts : shortcutsPerLocale.values()) { in loadPersonalDictionary()
634 numShortcuts += shortcuts.size(); in loadPersonalDictionary()
DRichInputMethodManager.java555 final Map<InputMethodInfo, List<InputMethodSubtype>> shortcuts = in updateShortcutIme() local
559 for (final InputMethodInfo imi : shortcuts.keySet()) { in updateShortcutIme()
560 final List<InputMethodSubtype> subtypes = shortcuts.get(imi); in updateShortcutIme()
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
DDeepShortcutManager.java17 package com.android.launcher3.shortcuts;
76 public void onShortcutsChanged(List<ShortcutInfoCompat> shortcuts) { in onShortcutsChanged() argument
189 private List<String> extractIds(List<ShortcutInfoCompat> shortcuts) { in extractIds() argument
190 List<String> shortcutIds = new ArrayList<>(shortcuts.size()); in extractIds()
191 for (ShortcutInfoCompat shortcut : shortcuts) { in extractIds()
DShortcutCache.java17 package com.android.launcher3.shortcuts;
55 public void removeShortcuts(List<ShortcutInfoCompat> shortcuts) { in removeShortcuts() argument
56 for (ShortcutInfoCompat shortcut : shortcuts) { in removeShortcuts()
/packages/apps/Dialer/java/com/android/dialer/shortcuts/
DShortcutInfoFactory.java17 package com.android.dialer.shortcuts;
61 List<ShortcutInfo> shortcuts = new ArrayList<>(shortcutsById.size()); in buildShortcutInfos() local
79 shortcuts.add(shortcutInfo.build()); in buildShortcutInfos()
81 return shortcuts; in buildShortcutInfos()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/
Dunigram_property.h59 const HistoricalInfo historicalInfo, const std::vector<ShortcutProperty> &&shortcuts) in UnigramProperty() argument
63 mHistoricalInfo(historicalInfo), mShortcuts(std::move(shortcuts)) {} in UnigramProperty()
77 const HistoricalInfo historicalInfo, const std::vector<ShortcutProperty> &&shortcuts) in UnigramProperty() argument
81 mHistoricalInfo(historicalInfo), mShortcuts(std::move(shortcuts)) {} in UnigramProperty()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DLauncherAppsCompatVL.java35 import com.android.launcher3.shortcuts.ShortcutInfoCompat;
169 public void onShortcutsChanged(String packageName, List<ShortcutInfo> shortcuts, in onShortcutsChanged() argument
171 List<ShortcutInfoCompat> shortcutInfoCompats = new ArrayList<>(shortcuts.size()); in onShortcutsChanged()
172 for (ShortcutInfo shortcutInfo : shortcuts) { in onShortcutsChanged()
DLauncherAppsCompat.java34 import com.android.launcher3.shortcuts.ShortcutInfoCompat;
50 void onShortcutsChanged(String packageName, List<ShortcutInfoCompat> shortcuts, in onShortcutsChanged() argument
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherModel.java71 import com.android.launcher3.shortcuts.DeepShortcutManager;
72 import com.android.launcher3.shortcuts.ShortcutInfoCompat;
73 import com.android.launcher3.shortcuts.ShortcutKey;
185 public void bindItems(ArrayList<ItemInfo> shortcuts, int start, int end, in bindItems() argument
440 public void onShortcutsChanged(String packageName, List<ShortcutInfoCompat> shortcuts, in onShortcutsChanged() argument
442 enqueueModelUpdateTask(new ShortcutsChangedTask(packageName, shortcuts, user, true)); in onShortcutsChanged()
445 public void updatePinnedShortcuts(String packageName, List<ShortcutInfoCompat> shortcuts, in updatePinnedShortcuts() argument
447 enqueueModelUpdateTask(new ShortcutsChangedTask(packageName, shortcuts, user, false)); in updatePinnedShortcuts()
1792 List<ShortcutInfoCompat> shortcuts = in loadDeepShortcuts() local
1794 sBgDataModel.updateDeepShortcutMap(null, user, shortcuts); in loadDeepShortcuts()
DInstallShortcutReceiver.java41 import com.android.launcher3.shortcuts.DeepShortcutManager;
42 import com.android.launcher3.shortcuts.ShortcutInfoCompat;
43 import com.android.launcher3.shortcuts.ShortcutKey;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dpatricia_trie_policy.cpp459 std::vector<UnigramProperty::ShortcutProperty> shortcuts; in getWordProperty() local
473 shortcuts.emplace_back( in getWordProperty()
480 ptNodeParams.getProbability(), HistoricalInfo(), std::move(shortcuts)); in getWordProperty()
/packages/apps/Launcher3/tests/res/raw/
Dcache_data_updated_task_data.txt7 # App shortcuts
17 # Custom shortcuts
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp544 std::vector<UnigramProperty::ShortcutProperty> shortcuts; in getWordProperty() local
556 shortcuts.emplace_back( in getWordProperty()
568 *historicalInfo, std::move(shortcuts)); in getWordProperty()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_policy.cpp600 std::vector<UnigramProperty::ShortcutProperty> shortcuts; in getWordProperty() local
612 shortcuts.emplace_back( in getWordProperty()
619 ptNodeParams.getProbability(), *historicalInfo, std::move(shortcuts)); in getWordProperty()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DManagedProfileHeuristic.java38 import com.android.launcher3.shortcuts.ShortcutInfoCompat;
206 public void onShortcutsChanged(String packageName, List<ShortcutInfoCompat> shortcuts, in onShortcutsChanged() argument
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp370 std::vector<UnigramProperty::ShortcutProperty> shortcuts; in latinime_BinaryDictionary_addUnigramEntry() local
375 shortcuts.emplace_back(std::move(shortcutTargetCodePoints), shortcutProbability); in latinime_BinaryDictionary_addUnigramEntry()
381 1 /* count */), std::move(shortcuts)); in latinime_BinaryDictionary_addUnigramEntry()
/packages/apps/Dialer/
DAndroid.mk68 $(BASE_DIR)/dialer/shortcuts/res \
119 $(BASE_DIR)/dialer/shortcuts/AndroidManifest.xml \
186 --extra-packages com.android.dialer.shortcuts \

123