Searched refs:shortcuts (Results 1 - 25 of 59) sorted by relevance

123

/packages/apps/DeskClock/src/com/android/deskclock/events/
H A DShortcutEventTracker.java35 private final Set<String> shortcuts = new ArraySet<>(5); field in class:ShortcutEventTracker
40 shortcuts.add(uidm.getShortcutId(R.string.category_alarm, R.string.action_create));
41 shortcuts.add(uidm.getShortcutId(R.string.category_timer, R.string.action_create));
42 shortcuts.add(uidm.getShortcutId(R.string.category_stopwatch, R.string.action_pause));
43 shortcuts.add(uidm.getShortcutId(R.string.category_stopwatch, R.string.action_start));
44 shortcuts.add(uidm.getShortcutId(R.string.category_screensaver, R.string.action_show));
50 if (shortcuts.contains(shortcutId)) {
/packages/apps/Launcher3/tests/src/com/android/launcher3/popup/
H A DPopupPopulatorTest.java22 import com.android.launcher3.shortcuts.ShortcutInfoCompat;
38 * Tests the sorting and filtering of shortcuts in {@link PopupPopulator}.
63 // Successfully remove one of the shortcuts
68 // Successfully keep all shortcuts when id doesn't exist
80 List<ShortcutInfoCompat> shortcuts, int expectedStatic, int expectedDynamic) {
81 filterShortcutsAndAssertNumStaticAndDynamic(shortcuts, expectedStatic, expectedDynamic, null);
84 private void filterShortcutsAndAssertNumStaticAndDynamic(List<ShortcutInfoCompat> shortcuts, argument
86 Collections.shuffle(shortcuts);
88 shortcuts, shortcutIdToRemove);
105 private void assertIsSorted(List<ShortcutInfoCompat> shortcuts) { argument
79 filterShortcutsAndAssertNumStaticAndDynamic( List<ShortcutInfoCompat> shortcuts, int expectedStatic, int expectedDynamic) argument
[all...]
/packages/apps/Dialer/java/com/android/dialer/shortcuts/
H A DShortcuts.java17 package com.android.dialer.shortcuts;
23 /** Checks if dynamic shortcuts should be enabled. */
26 /** Key for boolean config value which determines whether or not to enable dynamic shortcuts. */
H A DShortcutInfoFactory.java17 package com.android.dialer.shortcuts;
61 List<ShortcutInfo> shortcuts = new ArrayList<>(shortcutsById.size());
64 intent.setClassName(context, "com.android.dialer.shortcuts.CallContactActivity");
66 intent.setAction("com.android.dialer.shortcuts.CALL_CONTACT");
79 shortcuts.add(shortcutInfo.build());
81 return shortcuts;
H A DShortcutsJobScheduler.java17 package com.android.dialer.shortcuts;
28 * <p>A {@link ConfigProvider} value controls whether the jobs which creates shortcuts should be
39 LogUtil.i("ShortcutsJobScheduler.scheduleAllJobs", "enabling shortcuts");
43 LogUtil.i("ShortcutsJobScheduler.scheduleAllJobs", "disabling shortcuts");
H A DRefreshShortcutsTask.java17 package com.android.dialer.shortcuts;
30 /** {@link AsyncTask} used by the periodic job service to refresh dynamic and pinned shortcuts. */
48 // Dynamic shortcuts are refreshed from the UI but icons can become stale, so update them
H A DDialerShortcut.java17 package com.android.dialer.shortcuts;
37 /** Marker value indicates that shortcut has no setRank. Used by pinned shortcuts. */
58 * Rank for dynamic shortcuts. This value should be positive or {@link #NO_RANK}.
60 * <p>For floating shortcuts (pinned shortcuts with no corresponding dynamic shortcut), setRank
65 /** The short label for the shortcut. Used when pinning shortcuts, for example. */
73 * The long label for the shortcut. Used for shortcuts displayed when pressing and holding the app
87 * The id used to identify launcher shortcuts. Used for updating/deleting shortcuts.
180 * Sets the rank for the shortcut, used for ordering dynamic shortcuts
[all...]
H A DShortcutRefresher.java17 package com.android.dialer.shortcuts;
33 /** Refreshes launcher shortcuts from UI components using provided list of contacts. */
38 /** Asynchronously updates launcher shortcuts using the provided list of contacts. */
77 // Only dynamic shortcuts are maintained from UI components. Pinned shortcuts are maintained
H A DCallContactActivity.java17 package com.android.dialer.shortcuts;
47 if ("com.android.dialer.shortcuts.CALL_CONTACT".equals(getIntent().getAction())) {
53 LogUtil.i("CallContactActivity.onCreate", "dynamic shortcuts disabled");
/packages/apps/Launcher3/src/com/android/launcher3/model/
H A DShortcutsChangedTask.java28 import com.android.launcher3.shortcuts.DeepShortcutManager;
29 import com.android.launcher3.shortcuts.ShortcutInfoCompat;
45 public ShortcutsChangedTask(String packageName, List<ShortcutInfoCompat> shortcuts, argument
48 mShortcuts = shortcuts;
74 // Update the workspace to reflect the changes to updated shortcuts residing on it.
75 List<ShortcutInfoCompat> shortcuts = deepShortcutManager.queryForFullDetails(
77 for (ShortcutInfoCompat fullDetails : shortcuts) {
99 // the corresponding shortcuts weren't passed in onShortcutsChanged(). This
H A DUserLockStateChangedTask.java29 import com.android.launcher3.shortcuts.DeepShortcutManager;
30 import com.android.launcher3.shortcuts.ShortcutInfoCompat;
31 import com.android.launcher3.shortcuts.ShortcutKey;
58 List<ShortcutInfoCompat> shortcuts =
61 for (ShortcutInfoCompat shortcut : shortcuts) {
72 // Update the workspace to reflect the changes to updated shortcuts residing on it.
H A DBgDataModel.java33 import com.android.launcher3.shortcuts.DeepShortcutManager;
34 import com.android.launcher3.shortcuts.ShortcutInfoCompat;
35 import com.android.launcher3.shortcuts.ShortcutKey;
64 * Map of all the ItemInfos (shortcuts, folders, and widgets) created by
70 * List of all the folders and shortcuts directly on the home screen (no widgets
71 * or shortcuts within folders).
96 * Maps all launcher activities to the id's of their shortcuts (if they have any).
143 writer.println(prefix + "shortcuts");
348 * Clear all the deep shortcuts for the given package, and re-add the new shortcuts
350 updateDeepShortcutMap( String packageName, UserHandle user, List<ShortcutInfoCompat> shortcuts) argument
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
H A DShortcutCache.java17 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) { argument
56 for (ShortcutInfoCompat shortcut : shortcuts) {
[all...]
H A DShortcutKey.java1 package com.android.launcher3.shortcuts;
H A DDeepShortcutManager.java17 package com.android.launcher3.shortcuts;
40 * Performs operations related to deep shortcuts, such as querying for them, pinning them, etc.
76 public void onShortcutsChanged(List<ShortcutInfoCompat> shortcuts) { argument
77 // mShortcutCache.removeShortcuts(shortcuts);
81 * Queries for the shortcuts with the package name and provided ids.
83 * This method is intended to get the full details for shortcuts when they are added or updated,
92 * Gets all the manifest and dynamic shortcuts associated with the given package and user,
93 * to be displayed in the shortcuts container on long press.
102 * Removes the given shortcut from the current list of pinned shortcuts.
124 * Adds the given shortcut to the current list of pinned shortcuts
189 extractIds(List<ShortcutInfoCompat> shortcuts) argument
[all...]
H A DDeepShortcutTextView.java17 package com.android.launcher3.shortcuts;
H A DShortcutInfoCompat.java17 package com.android.launcher3.shortcuts;
31 * Wrapper class for {@link android.content.pm.ShortcutInfo}, representing deep shortcuts into apps.
/packages/apps/Launcher3/src/com/android/launcher3/popup/
H A DPopupPopulator.java38 import com.android.launcher3.shortcuts.DeepShortcutManager;
39 import com.android.launcher3.shortcuts.DeepShortcutView;
40 import com.android.launcher3.shortcuts.ShortcutInfoCompat;
93 // The system shortcuts are always last.
112 * Sorts shortcuts in rank order, with manifest shortcuts coming before dynamic shortcuts.
129 * Filters the shortcuts so that only MAX_ITEMS or fewer shortcuts are retained.
130 * We want the filter to include both static and dynamic shortcuts, s
136 sortAndFilterShortcuts( List<ShortcutInfoCompat> shortcuts, @Nullable String shortcutIdToRemoveFirst) argument
[all...]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/
H A Dunigram_property.h59 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)
57 UnigramProperty(const bool representsBeginningOfSentence, const bool isNotAWord, const bool isPossiblyOffensive, const int probability, const HistoricalInfo historicalInfo, const std::vector<ShortcutProperty> &&shortcuts) argument
75 UnigramProperty(const bool representsBeginningOfSentence, const bool isNotAWord, const bool isBlacklisted, const bool isPossiblyOffensive, const int probability, const HistoricalInfo historicalInfo, const std::vector<ShortcutProperty> &&shortcuts) argument
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
H A DCombinedInputOutput.java103 ArrayList<WeightedString> shortcuts = new ArrayList<>();
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,
/packages/apps/Launcher3/src/com/android/launcher3/compat/
H A DLauncherAppsCompatVL.java35 import com.android.launcher3.shortcuts.ShortcutInfoCompat;
169 public void onShortcutsChanged(String packageName, List<ShortcutInfo> shortcuts, argument
171 List<ShortcutInfoCompat> shortcutInfoCompats = new ArrayList<>(shortcuts.size());
172 for (ShortcutInfo shortcutInfo : shortcuts) {
H A DLauncherAppsCompat.java34 import com.android.launcher3.shortcuts.ShortcutInfoCompat;
50 void onShortcutsChanged(String packageName, List<ShortcutInfoCompat> shortcuts, argument
/packages/apps/Launcher3/src/com/android/launcher3/util/
H A DPackageUserKey.java7 import com.android.launcher3.shortcuts.DeepShortcutManager;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DPersonalDictionaryLookup.java54 * It can be used directly to validate words or expand shortcuts, and it can be used by instances
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<>();
363 shortcuts.addAll(countryShortcuts.keySet());
372 shortcuts.addAll(languageShortcuts.keySet());
378 shortcuts.addAll(globalShortcuts.keySet());
381 return shortcuts;
466 // Exit as early as possible. Most users don't use shortcuts
[all...]
/packages/apps/Contacts/src/com/android/contacts/
H A DDynamicShortcuts.java66 * This class creates and updates the dynamic shortcuts displayed on the Nexus launcher for the
69 * Currently it adds shortcuts for the top 3 contacts in the {@link Contacts#CONTENT_STREQUENT_URI}
72 * schedule a Job to keep the shortcuts up-to-date so no further interactions should be necessary.
78 // Must be the same as shortcutId in res/xml/shortcuts.xml
92 // Because pinned shortcuts persist across app upgrades these values should not be changed
152 final List<ShortcutInfo> shortcuts = getStrequentShortcuts();
153 mShortcutManager.setDynamicShortcuts(shortcuts);
155 Log.d(TAG, "set dynamic shortcuts " + shortcuts);
507 final DynamicShortcuts shortcuts
570 ShortcutUpdateTask(DynamicShortcuts shortcuts) argument
[all...]

Completed in 1712 milliseconds

123