/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 | 44 protected SystemShortcutFactory(SystemShortcut... shortcuts) { in SystemShortcutFactory() argument 45 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.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 | 28 import com.android.launcher3.shortcuts.DeepShortcutManager; 29 import com.android.launcher3.shortcuts.ShortcutKey; 47 public ShortcutsChangedTask(String packageName, List<ShortcutInfo> shortcuts, in ShortcutsChangedTask() argument 50 mShortcuts = shortcuts; in ShortcutsChangedTask() 78 List<ShortcutInfo> shortcuts = deepShortcutManager.queryForFullDetails( in execute() local 80 for (ShortcutInfo fullDetails : shortcuts) { in execute()
|
D | UserLockStateChangedTask.java | 31 import com.android.launcher3.shortcuts.DeepShortcutManager; 32 import com.android.launcher3.shortcuts.ShortcutKey; 61 List<ShortcutInfo> shortcuts = in execute() local 64 for (ShortcutInfo shortcut : shortcuts) { in execute()
|
D | BgDataModel.java | 37 import com.android.launcher3.shortcuts.DeepShortcutManager; 38 import com.android.launcher3.shortcuts.ShortcutKey; 369 String packageName, UserHandle user, List<ShortcutInfo> shortcuts) { in updateDeepShortcutCounts() argument 382 for (ShortcutInfo shortcut : shortcuts) { in updateDeepShortcutCounts()
|
/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; 178 private List<String> extractIds(List<ShortcutInfo> shortcuts) { in extractIds() argument 179 List<String> shortcutIds = new ArrayList<>(shortcuts.size()); in extractIds() 180 for (ShortcutInfo shortcut : shortcuts) { in extractIds()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/ |
D | TaskOverlayFactory.java | 54 final ArrayList<TaskSystemShortcut> shortcuts = new ArrayList<>(); in getEnabledShortcuts() local 60 shortcuts.add(menuOption); in getEnabledShortcuts() 63 return shortcuts; in getEnabledShortcuts()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherModel.java | 51 import com.android.launcher3.shortcuts.DeepShortcutManager; 142 public void bindItems(List<ItemInfo> shortcuts, boolean forceAnimateIcons); in bindItems() argument 259 public void onShortcutsChanged(String packageName, List<ShortcutInfo> shortcuts, in onShortcutsChanged() argument 261 enqueueModelUpdateTask(new ShortcutsChangedTask(packageName, shortcuts, user, true)); in onShortcutsChanged() 264 public void updatePinnedShortcuts(String packageName, List<ShortcutInfo> shortcuts, in updatePinnedShortcuts() argument 266 enqueueModelUpdateTask(new ShortcutsChangedTask(packageName, shortcuts, user, false)); in updatePinnedShortcuts()
|
/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/quickstep/recents_ui_overrides/src/com/android/quickstep/views/ |
D | TaskView.java | 727 final List<TaskSystemShortcut> shortcuts = in onInitializeAccessibilityNodeInfo() local 729 final int count = shortcuts.size(); in onInitializeAccessibilityNodeInfo() 731 final TaskSystemShortcut menuOption = shortcuts.get(i); in onInitializeAccessibilityNodeInfo() 766 final List<TaskSystemShortcut> shortcuts = in performAccessibilityAction() local 768 final int count = shortcuts.size(); in performAccessibilityAction() 770 final TaskSystemShortcut menuOption = shortcuts.get(i); in performAccessibilityAction()
|
D | TaskMenuView.java | 199 final List<TaskSystemShortcut> shortcuts = in addMenuOptions() local 201 final int count = shortcuts.size(); in addMenuOptions() 203 final TaskSystemShortcut menuOption = shortcuts.get(i); in addMenuOptions()
|
/packages/apps/Launcher3/go/src/com/android/launcher3/shortcuts/ |
D | DeepShortcutManager.java | 17 package com.android.launcher3.shortcuts; 59 public void onShortcutsChanged(List<ShortcutInfo> shortcuts) { in onShortcutsChanged() argument
|
/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/apps/Launcher3/src/com/android/launcher3/compat/ |
D | LauncherAppsCompatVL.java | 180 @NonNull List<ShortcutInfo> shortcuts, in onShortcutsChanged() argument 182 mCallback.onShortcutsChanged(packageName, shortcuts, user); in onShortcutsChanged()
|
/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/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()
|