Home
last modified time | relevance | path

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

123

/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupPopulator.java31 import com.android.launcher3.shortcuts.DeepShortcutManager;
32 import com.android.launcher3.shortcuts.DeepShortcutView;
80 List<ShortcutInfo> shortcuts, @Nullable String shortcutIdToRemoveFirst) { in sortAndFilterShortcuts() argument
83 Iterator<ShortcutInfo> shortcutIterator = shortcuts.iterator(); in sortAndFilterShortcuts()
92 Collections.sort(shortcuts, SHORTCUT_RANK_COMPARATOR); in sortAndFilterShortcuts()
93 if (shortcuts.size() <= MAX_SHORTCUTS) { in sortAndFilterShortcuts()
94 return shortcuts; in sortAndFilterShortcuts()
101 int size = shortcuts.size(); in sortAndFilterShortcuts()
103 ShortcutInfo shortcut = shortcuts.get(i); in sortAndFilterShortcuts()
143 List<ShortcutInfo> shortcuts = DeepShortcutManager.getInstance(launcher) in createUpdateRunnable() field in PopupPopulator
[all …]
DSystemShortcutFactory.java47 protected SystemShortcutFactory(SystemShortcut... shortcuts) { in SystemShortcutFactory() argument
48 mAllShortcuts = shortcuts; in SystemShortcutFactory()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/popup/
DPopupPopulatorTest.java82 List<ShortcutInfo> shortcuts, int expectedStatic, int expectedDynamic) { in filterShortcutsAndAssertNumStaticAndDynamic() argument
83 … filterShortcutsAndAssertNumStaticAndDynamic(shortcuts, expectedStatic, expectedDynamic, null); in filterShortcutsAndAssertNumStaticAndDynamic()
86 private void filterShortcutsAndAssertNumStaticAndDynamic(List<ShortcutInfo> shortcuts, in filterShortcutsAndAssertNumStaticAndDynamic() argument
88 Collections.shuffle(shortcuts); in filterShortcutsAndAssertNumStaticAndDynamic()
90 shortcuts, shortcutIdToRemove); in filterShortcutsAndAssertNumStaticAndDynamic()
107 private void assertIsSorted(List<ShortcutInfo> shortcuts) { in assertIsSorted() argument
111 for (ShortcutInfo shortcut : shortcuts) { in assertIsSorted()
128 List<ShortcutInfo> shortcuts = new ArrayList<>(); in createShortcutsList() local
130 shortcuts.add(createInfo(true, i)); in createShortcutsList()
133 shortcuts.add(createInfo(false, i)); in createShortcutsList()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/events/
DShortcutEventTracker.kt33 private val shortcuts: MutableSet<String> = ArraySet(5) constant
37 shortcuts.add(uidm.getShortcutId(R.string.category_alarm, R.string.action_create))
38 shortcuts.add(uidm.getShortcutId(R.string.category_timer, R.string.action_create))
39 shortcuts.add(uidm.getShortcutId(R.string.category_stopwatch, R.string.action_pause))
40 shortcuts.add(uidm.getShortcutId(R.string.category_stopwatch, R.string.action_start))
41 shortcuts.add(uidm.getShortcutId(R.string.category_screensaver, R.string.action_show))
50 if (shortcuts.contains(shortcutId)) { in sendEvent()
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/apps/Launcher3/src/com/android/launcher3/model/
DShortcutsChangedTask.java27 import com.android.launcher3.shortcuts.DeepShortcutManager;
28 import com.android.launcher3.shortcuts.ShortcutKey;
46 public ShortcutsChangedTask(String packageName, List<ShortcutInfo> shortcuts, in ShortcutsChangedTask() argument
49 mShortcuts = shortcuts; in ShortcutsChangedTask()
77 List<ShortcutInfo> shortcuts = deepShortcutManager.queryForFullDetails( in execute() local
79 for (ShortcutInfo fullDetails : shortcuts) { in execute()
DUserLockStateChangedTask.java30 import com.android.launcher3.shortcuts.DeepShortcutManager;
31 import com.android.launcher3.shortcuts.ShortcutKey;
59 DeepShortcutManager.QueryResult shortcuts = in execute() local
61 if (shortcuts.wasSuccess()) { in execute()
62 for (ShortcutInfo shortcut : shortcuts) { in execute()
DBgDataModel.java39 import com.android.launcher3.shortcuts.DeepShortcutManager;
40 import com.android.launcher3.shortcuts.ShortcutKey;
376 String packageName, UserHandle user, List<ShortcutInfo> shortcuts) { in updateDeepShortcutCounts() argument
389 for (ShortcutInfo shortcut : shortcuts) { in updateDeepShortcutCounts()
408 void bindItems(List<ItemInfo> shortcuts, boolean forceAnimateIcons); in bindItems() argument
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/shortcut/
DCreateShortcutPreferenceController.java101 final List<ResolveInfo> shortcuts = queryShortcuts(); in updateState() local
103 if (shortcuts.isEmpty()) { in updateState()
109 for (ResolveInfo info : shortcuts) { in updateState()
188 final List<ResolveInfo> shortcuts = new ArrayList<>(); in queryShortcuts() local
205 shortcuts.add(info); in queryShortcuts()
207 Collections.sort(shortcuts, SHORTCUT_COMPARATOR); in queryShortcuts()
208 return shortcuts; in queryShortcuts()
/packages/apps/Settings/src/com/android/settings/shortcut/
DCreateShortcutPreferenceController.java101 final List<ResolveInfo> shortcuts = queryShortcuts(); in updateState() local
103 if (shortcuts.isEmpty()) { in updateState()
109 for (ResolveInfo info : shortcuts) { in updateState()
173 final List<ResolveInfo> shortcuts = new ArrayList<>(); in queryShortcuts() local
190 shortcuts.add(info); in queryShortcuts()
192 Collections.sort(shortcuts, SHORTCUT_COMPARATOR); in queryShortcuts()
193 return shortcuts; in queryShortcuts()
/packages/apps/Contacts/src/com/android/contacts/
DDynamicShortcuts.java157 final List<ShortcutInfo> shortcuts = getStrequentShortcuts(); in refresh()
158 mShortcutManager.setDynamicShortcuts(shortcuts); in refresh()
160 Log.d(TAG, "set dynamic shortcuts " + shortcuts); in refresh()
494 final DynamicShortcuts shortcuts = new DynamicShortcuts(context); in initialize()
496 if (!shortcuts.hasRequiredPermissions()) { in initialize()
499 LocalBroadcastManager.getInstance(shortcuts.mContext).registerReceiver( in initialize()
508 new ShortcutUpdateTask(shortcuts).execute(); in initialize()
557 public ShortcutUpdateTask(DynamicShortcuts shortcuts) { in ShortcutUpdateTask() argument
558 mDynamicShortcuts = shortcuts; in ShortcutUpdateTask()
/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_shortcuts_overrides/com/android/launcher3/shortcuts/
DDeepShortcutManager.java17 package com.android.launcher3.shortcuts;
153 private static List<String> extractIds(List<ShortcutInfo> shortcuts) { in extractIds() argument
154 List<String> shortcutIds = new ArrayList<>(shortcuts.size()); in extractIds()
155 for (ShortcutInfo shortcut : shortcuts) { in extractIds()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/
DTaskOverlayFactory.java55 final ArrayList<TaskSystemShortcut> shortcuts = new ArrayList<>(); in getEnabledShortcuts() local
61 shortcuts.add(menuOption); in getEnabledShortcuts()
64 return shortcuts; in getEnabledShortcuts()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherModel.java55 import com.android.launcher3.shortcuts.DeepShortcutManager;
246 public void onShortcutsChanged(String packageName, List<ShortcutInfo> shortcuts, in onShortcutsChanged() argument
248 enqueueModelUpdateTask(new ShortcutsChangedTask(packageName, shortcuts, user, true)); in onShortcutsChanged()
251 public void updatePinnedShortcuts(String packageName, List<ShortcutInfo> shortcuts, in updatePinnedShortcuts() argument
253 enqueueModelUpdateTask(new ShortcutsChangedTask(packageName, shortcuts, user, false)); in updatePinnedShortcuts()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DTaskView.java717 final List<TaskSystemShortcut> shortcuts = in onInitializeAccessibilityNodeInfo() local
719 final int count = shortcuts.size(); in onInitializeAccessibilityNodeInfo()
721 final TaskSystemShortcut menuOption = shortcuts.get(i); in onInitializeAccessibilityNodeInfo()
756 final List<TaskSystemShortcut> shortcuts = in performAccessibilityAction() local
758 final int count = shortcuts.size(); in performAccessibilityAction()
760 final TaskSystemShortcut menuOption = shortcuts.get(i); in performAccessibilityAction()
DTaskMenuView.java201 final List<TaskSystemShortcut> shortcuts = in addMenuOptions() local
203 final int count = shortcuts.size(); in addMenuOptions()
205 final TaskSystemShortcut menuOption = shortcuts.get(i); in addMenuOptions()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DCombinedInputOutput.java103 ArrayList<WeightedString> shortcuts = new ArrayList<>(); in readDictionaryCombined() local
114 if (!shortcuts.isEmpty()) shortcuts = new ArrayList<>(); in readDictionaryCombined()
/packages/apps/Launcher3/robolectric_tests/resources/
Dcache_data_updated_task_data.txt7 # App shortcuts
17 # Custom shortcuts
/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/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/java/src/com/android/inputmethod/latin/
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/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/compat/
DLauncherAppsCompatVL.java189 @NonNull List<ShortcutInfo> shortcuts, in onShortcutsChanged() argument
191 mCallback.onShortcutsChanged(packageName, shortcuts, user); in onShortcutsChanged()

123