/packages/apps/Launcher3/src/com/android/launcher3/popup/ |
D | PopupPopulator.java | 31 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 …]
|
D | SystemShortcutFactory.java | 47 protected SystemShortcutFactory(SystemShortcut... shortcuts) { in SystemShortcutFactory() argument 48 mAllShortcuts = shortcuts; in SystemShortcutFactory()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/popup/ |
D | PopupPopulatorTest.java | 82 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/ |
D | ShortcutEventTracker.kt | 33 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()
|
D | ShortcutEventTracker.java | 35 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/ |
D | ShortcutsChangedTask.java | 27 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()
|
D | UserLockStateChangedTask.java | 30 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()
|
D | BgDataModel.java | 39 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/ |
D | CreateShortcutPreferenceController.java | 101 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/ |
D | CreateShortcutPreferenceController.java | 101 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/ |
D | DynamicShortcuts.java | 157 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/ |
D | ShortcutInfoFactory.java | 17 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/ |
D | unigram_property.h | 59 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/ |
D | DeepShortcutManager.java | 17 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/ |
D | TaskOverlayFactory.java | 55 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/ |
D | LauncherModel.java | 55 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/ |
D | TaskView.java | 717 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()
|
D | TaskMenuView.java | 201 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/ |
D | CombinedInputOutput.java | 103 ArrayList<WeightedString> shortcuts = new ArrayList<>(); in readDictionaryCombined() local 114 if (!shortcuts.isEmpty()) shortcuts = new ArrayList<>(); in readDictionaryCombined()
|
/packages/apps/Launcher3/robolectric_tests/resources/ |
D | cache_data_updated_task_data.txt | 7 # App shortcuts 17 # Custom shortcuts
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/ |
D | patricia_trie_policy.cpp | 459 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/ |
D | ver4_patricia_trie_policy.cpp | 544 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/ |
D | RichInputMethodManager.java | 555 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/ |
D | ver4_patricia_trie_policy.cpp | 600 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/ |
D | LauncherAppsCompatVL.java | 189 @NonNull List<ShortcutInfo> shortcuts, in onShortcutsChanged() argument 191 mCallback.onShortcutsChanged(packageName, shortcuts, user); in onShortcutsChanged()
|