/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ |
ShortcutFilter.java | 17 package com.android.launcher3.shortcuts; 27 * Sorts and filters shortcuts. 35 * Sorts shortcuts in rank order, with manifest shortcuts coming before dynamic shortcuts. 52 * Filters the shortcuts so that only MAX_SHORTCUTS or fewer shortcuts are retained. 53 * We want the filter to include both static and dynamic shortcuts, so we always 54 * include NUM_DYNAMIC dynamic shortcuts, if at least that many are present. 56 * @return a subset of shortcuts, in sorted order, with size <= MAX_SHORTCUTS [all...] |
ShortcutCache.java | 17 package com.android.launcher3.shortcuts; 29 * loads for pinned shortcuts and on long-press for dynamic shortcuts), and caches them 37 private static final int CACHE_SIZE = 30; // Max number shortcuts we cache. 40 // We always keep pinned shortcuts in the cache. 49 * Removes shortcuts from the cache when shortcuts change for a given package. 51 * Returns a map of ids to their evicted shortcuts. 55 public void removeShortcuts(List<ShortcutInfoCompat> shortcuts) { 56 for (ShortcutInfoCompat shortcut : shortcuts) { [all...] |
ShortcutKey.java | 1 package com.android.launcher3.shortcuts;
|
DeepShortcutManager.java | 17 package com.android.launcher3.shortcuts; 40 * Performs operations related to deep shortcuts, such as querying for them, pinning them, etc. 68 public void onShortcutsChanged(List<ShortcutInfoCompat> shortcuts) { 69 // mShortcutCache.removeShortcuts(shortcuts); 73 * Queries for the shortcuts with the package name and provided ids. 75 * This method is intended to get the full details for shortcuts when they are added or updated, 84 * Gets all the manifest and dynamic shortcuts associated with the given package and user, 85 * to be displayed in the shortcuts container on long press. 94 * Removes the given shortcut from the current list of pinned shortcuts. 116 * Adds the given shortcut to the current list of pinned shortcuts [all...] |
DeepShortcutTextView.java | 17 package com.android.launcher3.shortcuts;
|
ShortcutInfoCompat.java | 17 package com.android.launcher3.shortcuts; 33 * Wrapper class for {@link android.content.pm.ShortcutInfo}, representing deep shortcuts into apps.
|
ShortcutDragPreviewProvider.java | 17 package com.android.launcher3.shortcuts;
|
DeepShortcutView.java | 17 package com.android.launcher3.shortcuts; 36 import com.android.launcher3.shortcuts.DeepShortcutsContainer.UnbadgedShortcutInfo;
|
DeepShortcutsContainer.java | 17 package com.android.launcher3.shortcuts; 73 * A container for shortcuts to deep links within apps. 155 // Load the shortcuts on a background thread and update the container as it animates. 164 final List<ShortcutInfoCompat> shortcuts = ShortcutFilter.sortAndFilterShortcuts( 168 Collections.reverse(shortcuts); 170 for (int i = 0; i < shortcuts.size(); i++) { 171 final ShortcutInfoCompat shortcut = shortcuts.get(i); 205 // All children except the arrow are shortcuts. 225 // Animate shortcuts 496 // Either the original icon or one of the shortcuts was dragged [all...] |
/packages/apps/Launcher3/tests/src/com/android/launcher3/shortcuts/ |
ShortcutFilterTest.java | 17 package com.android.launcher3.shortcuts; 29 import static com.android.launcher3.shortcuts.ShortcutFilter.MAX_SHORTCUTS; 30 import static com.android.launcher3.shortcuts.ShortcutFilter.NUM_DYNAMIC; 36 * Tests the sorting and filtering of shortcuts in {@link ShortcutFilter}. 60 List<ShortcutInfoCompat> shortcuts, int expectedStatic, int expectedDynamic) { 61 Collections.shuffle(shortcuts); 62 List<ShortcutInfoCompat> filteredShortcuts = ShortcutFilter.sortAndFilterShortcuts(shortcuts); 79 private void assertIsSorted(List<ShortcutInfoCompat> shortcuts) { 83 for (ShortcutInfoCompat shortcut : shortcuts) { 86 assertFalse("Static shortcuts should come before all dynamic shortcuts." 100 List<ShortcutInfoCompat> shortcuts = new ArrayList<>(); local [all...] |
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/ |
unigram_property.h | 59 const HistoricalInfo historicalInfo, const std::vector<ShortcutProperty> &&shortcuts) 63 mHistoricalInfo(historicalInfo), mShortcuts(std::move(shortcuts)) {} 65 // Without shortcuts, in contexts which do not support the Blacklisted flag (v2, v4<403) 77 const HistoricalInfo historicalInfo, const std::vector<ShortcutProperty> &&shortcuts) 81 mHistoricalInfo(historicalInfo), mShortcuts(std::move(shortcuts)) {} 83 // Without shortcuts, in contexts which DO support the Blacklisted flag (v403)
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
CombinedInputOutput.java | 103 ArrayList<WeightedString> shortcuts = new ArrayList<>(); local 109 dict.add(word, probabilityInfo, shortcuts.isEmpty() ? null : shortcuts, 115 if (!shortcuts.isEmpty()) shortcuts = new ArrayList<>(); 166 shortcuts.add(new WeightedString(shortcut, shortcutFreq)); 203 dict.add(word, probabilityInfo, shortcuts.isEmpty() ? null : shortcuts, isNotAWord,
|
/frameworks/base/core/java/android/content/pm/ |
IOnAppsChangedListener.aidl | 33 void onShortcutChanged(in UserHandle user, String packageName, in ParceledListSlice shortcuts);
|
IShortcutService.aidl | 42 boolean updateShortcuts(String packageName, in ParceledListSlice shortcuts, int userId);
|
LauncherApps.java | 168 * Indicates that one or more shortcuts of any kind (dynamic, pinned, or manifest) 174 * @param packageName The name of the package that has the shortcuts. 175 * @param shortcuts All shortcuts from the package (dynamic, manifest and/or pinned). 183 @NonNull List<ShortcutInfo> shortcuts, @NonNull UserHandle user) { 192 * Include dynamic shortcuts in the result. 201 * Include pinned shortcuts in the result. 210 * Include manifest shortcuts in the result. 233 * in memory in order to show shortcuts without a delay. 274 * If non-zero, returns only shortcuts that have been added or update 593 final List<ShortcutInfo> shortcuts = getShortcuts(q, user); local 963 List<ShortcutInfo> shortcuts; field in class:LauncherApps.CallbackMessageHandler.CallbackInfo [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
LauncherAppsCompat.java | 28 import com.android.launcher3.shortcuts.ShortcutInfoCompat; 42 void onShortcutsChanged(String packageName, List<ShortcutInfoCompat> shortcuts,
|
LauncherAppsCompatVL.java | 31 import com.android.launcher3.shortcuts.ShortcutInfoCompat; 154 public void onShortcutsChanged(String packageName, List<ShortcutInfo> shortcuts, 156 List<ShortcutInfoCompat> shortcutInfoCompats = new ArrayList<>(shortcuts.size()); 157 for (ShortcutInfo shortcutInfo : shortcuts) {
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
ShortcutMenuAccessibilityDelegate.java | 28 import com.android.launcher3.shortcuts.DeepShortcutView; 33 * Extension of {@link LauncherAccessibilityDelegate} with actions specific to shortcuts in 34 * deep shortcuts menu.
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
ItemInfoMatcher.java | 25 import com.android.launcher3.shortcuts.ShortcutKey;
|
ManagedProfileHeuristic.java | 32 import com.android.launcher3.shortcuts.ShortcutInfoCompat; 41 * Handles addition of app shortcuts for managed profiles. 54 * Duration (in milliseconds) for which app shortcuts will be added to work folder. 120 // Do not add shortcuts on the homescreen for the first time. This prevents the launcher 133 * Adds and binds shortcuts marked to be added to the work folder. 154 // FolderInfo could already be bound. We need to add shortcuts on the UI thread. 170 // Add all shortcuts before adding it to the UI, as an empty folder might get deleted. 186 public void onShortcutsChanged(String packageName, List<ShortcutInfoCompat> shortcuts, 193 * Add work folder shortcuts to the DB.
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
PersonalDictionaryLookup.java | 54 * It can be used directly to validate words or expand shortcuts, and it can be used by instances 206 * Shortcuts that apply to any locale are keyed by {@link #ANY_LOCALE}. 312 * Note that this method returns expanded words, not shortcuts. Shortcuts are handled 342 * Returns the set of shortcuts defined for the given locale and more general locales. 350 * @return set of shortcuts that apply to the given locale. 358 final Set<String> shortcuts = new HashSet<>(); local 363 shortcuts.addAll(countryShortcuts.keySet()); 372 shortcuts.addAll(languageShortcuts.keySet()); 378 shortcuts.addAll(globalShortcuts.keySet()) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
LauncherAppState.java | 31 import com.android.launcher3.shortcuts.DeepShortcutManager; 32 import com.android.launcher3.shortcuts.ShortcutCache;
|
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
ShortcutManagerLauncherCallbackTest.java | 70 String packageName, List<ShortcutInfo> shortcuts, UserHandle user) { 72 for (ShortcutInfo si : shortcuts) { 79 Log.i(TAG, "package=" + packageName + " shortcuts=" + sb.toString()); 82 lastShortcuts.addAll(shortcuts); 197 "Manifest shortcuts didn't show up"); 209 "Manifest shortcuts didn't show up"); 218 // Pin some shortcuts. 250 "Manifest shortcuts didn't show up");
|
/development/samples/ShortcutDemo/common/src/com/example/android/pm/shortcutdemo/ |
ShortcutAdapter.java | 87 public void setShortcuts(List<ShortcutInfo> shortcuts) { 88 mShortcuts = shortcuts;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/ |
patricia_trie_policy.cpp | 349 // suggestion process (where it should be used for shortcuts). 459 std::vector<UnigramProperty::ShortcutProperty> shortcuts; local 473 shortcuts.emplace_back( 480 ptNodeParams.getProbability(), HistoricalInfo(), std::move(shortcuts));
|