Searched refs:shortcut (Results 1 - 25 of 30) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DShortcutManagerTest3.java29 * Tests related to shortcut rank auto-adjustment.
45 private ShortcutInfo shortcut(String id, ComponentName activity, int rank) { method in class:ShortcutManagerTest3
49 private ShortcutInfo shortcut(String id, ComponentName activity) { method in class:ShortcutManagerTest3
75 shortcut("s1", A1)
82 shortcut("s5", A1),
83 shortcut("s4", A1),
84 shortcut("s3", A1)
91 shortcut("s5", A1),
92 shortcut("s4", A1, 5),
93 shortcut("s
[all...]
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/processor/
H A DShortcutMethodProcessorTest.kt45 * Base test class for shortcut methods.
68 """) { shortcut, _ ->
69 assertThat(shortcut.name, `is`("foo"))
70 assertThat(shortcut.parameters.size, `is`(0))
71 assertThat(shortcut.returnCount, `is`(false))
83 """) { shortcut, _ ->
84 assertThat(shortcut.name, `is`("foo"))
85 assertThat(shortcut.parameters.size, `is`(1))
86 val param = shortcut.parameters.first()
89 assertThat(shortcut
[all...]
H A DUpdateMethodProcessorTest.kt50 """) { shortcut, _ ->
51 assertThat(shortcut.onConflictStrategy, `is`(OnConflictStrategy.REPLACE))
/frameworks/base/services/core/java/com/android/server/pm/
H A DShortcutBitmapSaver.java49 * Class to save shortcut bitmaps on a worker thread.
85 /** Hosting shortcut. */
86 public final ShortcutInfo shortcut; field in class:ShortcutBitmapSaver.PendingItem
94 private PendingItem(ShortcutInfo shortcut, byte[] bytes) { argument
95 this.shortcut = shortcut;
104 + " shortcut=" + shortcut.toInsecureString()
134 * Wait for all pending saves to finish, and then return the given shortcut's bitmap path.
137 public String getBitmapPathMayWaitLocked(ShortcutInfo shortcut) { argument
146 removeIcon(ShortcutInfo shortcut) argument
157 saveBitmapLocked(ShortcutInfo shortcut, int maxDimension, CompressFormat format, int quality) argument
[all...]
H A DShortcutPackage.java70 private static final String TAG_SHORTCUT = "shortcut";
202 private void ensureNotImmutable(@Nullable ShortcutInfo shortcut, boolean ignoreInvisible) { argument
203 if (shortcut != null && shortcut.isImmutable()
204 && (!ignoreInvisible || shortcut.isVisibleToPublisher())) {
206 "Manifest shortcut ID=" + shortcut.getId()
230 * Delete a shortcut by ID. This will *always* remove it even if it's immutable or invisible.
233 final ShortcutInfo shortcut = mShortcuts.remove(id);
234 if (shortcut !
436 updateInvisibleShortcutForPinRequestWith(@onNull ShortcutInfo shortcut) argument
[all...]
H A DShortcutService.java200 private static final String KEY_SHORTCUT = "shortcut";
693 Slog.e(TAG, "Bad shortcut manager settings", e);
1268 void removeIconLocked(ShortcutInfo shortcut) { argument
1269 mShortcutBitmapSaver.removeIcon(shortcut);
1364 * Build the cached bitmap filename for a shortcut icon.
1368 FileOutputStreamWithPath openIconFileForWrite(@UserIdInt int userId, ShortcutInfo shortcut) argument
1371 shortcut.getPackage());
1393 void saveIconAndFixUpShortcutLocked(ShortcutInfo shortcut) { argument
1394 if (shortcut.hasIconFile() || shortcut
1445 injectValidateIconResPackage(ShortcutInfo shortcut, Icon icon) argument
1642 fixUpIncomingShortcutInfo(@onNull ShortcutInfo shortcut, boolean forUpdate, boolean forPinRequest) argument
1675 fixUpIncomingShortcutInfo(@onNull ShortcutInfo shortcut, boolean forUpdate) argument
1679 validateShortcutForPinRequest(@onNull ShortcutInfo shortcut) argument
1911 requestPinShortcut(String packageName, ShortcutInfo shortcut, IntentSender resultIntent, int userId) argument
1919 createShortcutResultIntent(String packageName, ShortcutInfo shortcut, int userId) argument
1942 requestPinItem(String packageName, int userId, ShortcutInfo shortcut, AppWidgetProviderInfo appWidget, Bundle extras, IntentSender resultIntent) argument
[all...]
H A DShortcutLauncher.java139 // This logic here is to make sure a launcher cannot pin a shortcut that is floating
141 // In this case, technically the shortcut doesn't exist to this launcher, so it can't
166 * Return the pinned shortcut IDs for the publisher package.
175 * Return true if the given shortcut is pinned by this launcher.<code></code>
177 public boolean hasPinned(ShortcutInfo shortcut) { argument
179 getPinnedShortcutIds(shortcut.getPackage(), shortcut.getUserId());
180 return (pinned != null) && pinned.contains(shortcut.getId());
184 * Additionally pin a shortcut. c.f. {@link #pinShortcuts(int, String, List, boolean)}
/frameworks/support/compat/src/main/java/androidx/core/content/pm/
H A DShortcutManagerCompat.java73 * Request to create a pinned shortcut.
74 * <p>On API <= 25 it creates a legacy shortcut with the provided icon, label and intent. For
80 * @param shortcut new shortcut to pin
81 * @param callback if not null, this intent will be sent when the shortcut is pinned
90 @NonNull ShortcutInfoCompat shortcut, @Nullable final IntentSender callback) {
93 shortcut.toShortcutInfo(), callback);
99 Intent intent = shortcut.addToIntent(new Intent(ACTION_INSTALL_SHORTCUT));
122 * Returns an Intent which can be used by the launcher to pin shortcut.
126 * @param shortcut ne
89 requestPinShortcut(@onNull final Context context, @NonNull ShortcutInfoCompat shortcut, @Nullable final IntentSender callback) argument
132 createShortcutResultIntent(@onNull Context context, @NonNull ShortcutInfoCompat shortcut) argument
[all...]
/frameworks/base/services/core/java/com/android/server/policy/
H A DShortcutManager.java41 * <li> Returning a shortcut-matching intent to clients
51 private static final String ATTRIBUTE_SHORTCUT = "shortcut";
66 * Gets the shortcut intent for a given keycode+modifier. Make sure you
68 * if 'Sym+A' should invoke a shortcut on 'A', you should strip the
77 * to invoke the shortcut.
78 * @return The intent that matches the shortcut, or null if not found.
81 ShortcutInfo shortcut = null;
90 shortcut = shortcutMap.get(shortcutChar);
94 if (shortcut == null) {
97 shortcut
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
H A DLockscreenFragment.java69 private static final String KEY_SHORTCUT = "shortcut";
96 Preference shortcut = findPreference(buttonSetting);
101 setSummary(shortcut, v);
120 private void setSummary(Preference shortcut, String value) { argument
122 shortcut.setSummary(R.string.lockscreen_none);
127 shortcut.setSummary(info != null ? info.label : null);
130 shortcut.setSummary(info != null ? info.loadLabel(getContext().getPackageManager())
133 shortcut.setSummary(R.string.lockscreen_none);
174 public StaticShortcut(Context context, Shortcut shortcut) { argument
176 mShortcut = shortcut;
357 ShortcutButton(Context context, Shortcut shortcut) argument
[all...]
H A DShortcutPicker.java77 shortcuts.forEach(shortcut -> {
78 ShortcutPreference shortcutPref = new ShortcutPreference(context, shortcut,
172 public ShortcutPreference(Context context, Shortcut shortcut, CharSequence appLabel) { argument
174 mShortcut = shortcut;
175 setTitle(shortcut.label);
H A DShortcutParser.java41 private static final String SHORTCUT = "shortcut";
140 for (Shortcut shortcut : new ShortcutParser(context,
142 if (shortcut.id.equals(sp[2])) {
143 return shortcut;
/frameworks/base/core/java/android/content/pm/
H A DIShortcutService.aidl46 boolean requestPinShortcut(String packageName, in ShortcutInfo shortcut,
49 Intent createShortcutResultIntent(String packageName, in ShortcutInfo shortcut, int userId);
H A DLauncherApps.java91 * a pinned shortcut.
262 * <p>Only the applications that are allowed to access the shortcut information,
354 * This allows quicker access to shortcut information in order to
357 * <p>Typically, launcher applications cache all or most shortcut information
361 * restarts, it can fetch shortcut information with this flag.
363 * shortcut, fetching a shortcut's non-key information only if that shortcut has been
628 * <p>Callers must be allowed to access the shortcut information, as defined in {@link
743 * Returns whether the caller can access the shortcut informatio
865 getShortcutIconResId(@onNull ShortcutInfo shortcut) argument
887 getShortcutIconFd( @onNull ShortcutInfo shortcut) argument
928 getShortcutIconDrawable(@onNull ShortcutInfo shortcut, int density) argument
1003 getShortcutBadgedIconDrawable(ShortcutInfo shortcut, int density) argument
1051 startShortcut(@onNull ShortcutInfo shortcut, @Nullable Rect sourceBounds, @Nullable Bundle startActivityOptions) argument
[all...]
H A DShortcutManager.java43 * app. When a user selects a shortcut in the currently-active launcher, your app opens an activity
48 * example, an email app may publish the "compose new email" shortcut, which allows the app to
62 * This section describes in-depth details about each shortcut type's usage and availability.
64 * <p class="note"><b>Important security note:</b> All shortcut information is stored in
79 * shortcut is removed from the launcher only in the following situations:
82 * <li>The publisher app associated with the shortcut is uninstalled.
104 * <p>Within each shortcut type (static and dynamic), shortcuts are sorted in order of increasing
115 * shortcut (static or dynamic). For example, if there are 3 dynamic shortcuts with ranks 0, 1 and
116 * 2, adding another dynamic shortcut with a rank of 1 represents a request to place this shortcut
718 requestPinShortcut(@onNull ShortcutInfo shortcut, @Nullable IntentSender resultIntent) argument
745 createShortcutResultIntent(@onNull ShortcutInfo shortcut) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/shortcut/
H A DShortcutKeyServiceProxy.java17 package com.android.systemui.shortcut;
26 * post them onto shortcut handlers.
H A DShortcutKeyDispatcher.java17 package com.android.systemui.shortcut;
46 * Dispatches shortcut to System UI components
65 * Registers a shortcut key to window manager.
66 * @param shortcutCode packed representation of shortcut key code and meta information
/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/
H A DListPopupWindowActivity.java76 private TextView shortcut;
101 viewHolder.shortcut =
102 (TextView) convertView.findViewById(R.id.shortcut);
108 viewHolder.shortcut.setVisibility(View.GONE);
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/
H A DListPopupWindowActivity.java76 private TextView shortcut;
101 viewHolder.shortcut =
102 (TextView) convertView.findViewById(R.id.shortcut);
108 viewHolder.shortcut.setVisibility(View.GONE);
/frameworks/base/core/java/android/provider/
H A DUserDictionary.java97 * An optional shortcut for this word. When the shortcut is typed, supporting IMEs should
100 public static final String SHORTCUT = "shortcut";
156 * @param shortcut optional shortcut spelling for this word. When the shortcut
162 int frequency, String shortcut, Locale locale) {
179 values.put(SHORTCUT, shortcut);
161 addWord(Context context, String word, int frequency, String shortcut, Locale locale) argument
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/view/
H A DSupportMenuInflaterTest.java60 mMenuInflater.inflate(R.menu.shortcut, mMenu);
/frameworks/base/core/java/com/android/internal/view/menu/
H A DActionMenu.java169 final char shortcut = qwerty ? item.getAlphabeticShortcut() :
175 if ((keyCode == shortcut) && is_modifiers_exact_match) {
H A DIconMenuItemView.java153 * shortcut+title being shown. Instead, re-set the shortcut caption
163 void setCaptionMode(boolean shortcut) { argument
172 mShortcutCaptionMode = shortcut && (mItemData.shouldShowShortcut());
H A DIconMenuView.java98 * Longpress on MENU (while this is shown) switches to shortcut caption
106 * mode between each's title and its shortcut. This is the last caption mode
585 * Sets the shortcut caption mode for IconMenuView. This mode will
586 * continuously cycle between a child's shortcut and its title.
588 * @param cycleShortcutAndNormal Whether to go into cycling shortcut mode,
596 * to shortcut
635 * Iterates children and sets the desired shortcut mode. Only
639 * @param shortcut Whether to show shortcut or the title.
641 private void setChildrenCaptionMode(boolean shortcut) { argument
[all...]
H A DMenuItemImpl.java319 * @return The active shortcut (based on QWERTY-mode of the menu).
326 * @return The label to show for the shortcut. This includes the chording
332 char shortcut = getShortcut();
333 if (shortcut == 0) {
361 switch (shortcut) {
379 sb.append(shortcut);
395 * a shortcut defined)
398 // Show shortcuts if the menu is supposed to show shortcuts AND this item has a shortcut

Completed in 389 milliseconds

12