/packages/apps/Launcher3/tests/src/com/android/launcher3/popup/ |
D | PopupPopulatorTest.java | 22 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/ |
D | PopupPopulator.java | 38 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/ |
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/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
D | CombinedInputOutput.java | 103 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/ |
D | ShortcutsChangedTask.java | 28 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()
|
D | UserLockStateChangedTask.java | 29 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()
|
D | BgDataModel.java | 33 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/ |
D | DynamicShortcuts.java | 152 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/ |
D | PersonalDictionaryLookup.java | 358 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()
|
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/apps/Launcher3/src/com/android/launcher3/shortcuts/ |
D | DeepShortcutManager.java | 17 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()
|
D | ShortcutCache.java | 17 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/ |
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/com/android/launcher3/compat/ |
D | LauncherAppsCompatVL.java | 35 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()
|
D | LauncherAppsCompat.java | 34 import com.android.launcher3.shortcuts.ShortcutInfoCompat; 50 void onShortcutsChanged(String packageName, List<ShortcutInfoCompat> shortcuts, in onShortcutsChanged() argument
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherModel.java | 71 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()
|
D | InstallShortcutReceiver.java | 41 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/ |
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/apps/Launcher3/tests/res/raw/ |
D | cache_data_updated_task_data.txt | 7 # App shortcuts 17 # Custom shortcuts
|
/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/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/util/ |
D | ManagedProfileHeuristic.java | 38 import com.android.launcher3.shortcuts.ShortcutInfoCompat; 206 public void onShortcutsChanged(String packageName, List<ShortcutInfoCompat> shortcuts, in onShortcutsChanged() argument
|
/packages/inputmethods/LatinIME/native/jni/ |
D | com_android_inputmethod_latin_BinaryDictionary.cpp | 370 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/ |
D | Android.mk | 68 $(BASE_DIR)/dialer/shortcuts/res \ 119 $(BASE_DIR)/dialer/shortcuts/AndroidManifest.xml \ 186 --extra-packages com.android.dialer.shortcuts \
|