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

/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...]
H A DBaseShortcutManagerTest.java287 void injectValidateIconResPackage(ShortcutInfo shortcut, Icon icon) { argument
1211 * Make a shortcut with an ID.
1226 * Make a shortcut with an ID and timestamp.
1237 * Make a shortcut with an ID, a timestamp and an activity component
1249 * Make a shortcut with an ID and icon.
1311 * Make a shortcut with details.
1340 * Make a shortcut with details.
1363 * Make a shortcut with details.
/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/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;
50 * Dispatches shortcut to System UI components
70 * Registers a shortcut key to window manager.
71 * @param shortcutCode packed representation of shortcut key code and meta information
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/
H A DListPopupWindowActivity.java74 private TextView shortcut;
99 viewHolder.shortcut =
100 (TextView) convertView.findViewById(R.id.shortcut);
106 viewHolder.shortcut.setVisibility(View.GONE);
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/
H A DListPopupWindowActivity.java74 private TextView shortcut;
99 viewHolder.shortcut =
100 (TextView) convertView.findViewById(R.id.shortcut);
106 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
H A DSettings.java5802 * The size of the core thread pool for shortcut refreshing in GlobalSearch.
5808 * The maximum size of the thread pool for shortcut refreshing in GlobalSearch.
9336 * Optional shortcut character associated with this bookmark.
9339 public static final String SHORTCUT = "shortcut";
9353 * particular shortcut key.
9356 * @param shortcut The shortcut key.
9359 * matching the given shortcut.
9361 public static Intent getIntentForShortcut(ContentResolver cr, char shortcut) argument
9367 new String[] { String.valueOf((int) shortcut) }, ORDERIN
9402 add(ContentResolver cr, Intent intent, String title, String folder, char shortcut, int ordering) argument
[all...]
/frameworks/base/core/java/android/content/pm/
H A DLauncherApps.java171 * <p>Only the applications that are allowed to access the shortcut information,
229 * This allows quicker access to shortcut information in order to
232 * <p>Typically, launcher applications cache all or most shortcut information
236 * restarts, it can fetch shortcut information with this flag.
238 * shortcut, fetching a shortcut's non-key information only if that shortcut has been
484 * Returns whether the caller can access the shortcut information.
486 * <p>Only the default launcher can access the shortcut information.
491 * this permission, it does <b>not</b> have to purge pinned shortcut informatio
579 getShortcutIconResId(@onNull ShortcutInfo shortcut) argument
601 getShortcutIconFd( @onNull ShortcutInfo shortcut) argument
642 getShortcutIconDrawable(@onNull ShortcutInfo shortcut, int density) argument
690 getShortcutBadgedIconDrawable(ShortcutInfo shortcut, int density) argument
736 startShortcut(@onNull ShortcutInfo shortcut, @Nullable Rect sourceBounds, @Nullable Bundle startActivityOptions) argument
[all...]
/frameworks/base/services/core/java/com/android/server/pm/
H A DShortcutPackage.java69 private static final String TAG_SHORTCUT = "shortcut";
174 private void ensureNotImmutable(@Nullable ShortcutInfo shortcut) { argument
175 if (shortcut != null && shortcut.isImmutable()) {
177 "Manifest shortcut ID=" + shortcut.getId()
199 final ShortcutInfo shortcut = mShortcuts.remove(id);
200 if (shortcut != null) {
201 mShortcutUser.mService.removeIcon(getPackageUserId(), shortcut);
202 shortcut
[all...]
H A DShortcutService.java188 private static final String KEY_SHORTCUT = "shortcut";
645 Slog.e(TAG, "Bad shortcut manager settings", e);
1193 void removeIcon(@UserIdInt int userId, ShortcutInfo shortcut) { argument
1196 shortcut.setIconResourceId(0);
1197 shortcut.setIconResName(null);
1198 shortcut.clearFlags(ShortcutInfo.FLAG_HAS_ICON_FILE | ShortcutInfo.FLAG_HAS_ICON_RES);
1278 * Build the cached bitmap filename for a shortcut icon.
1283 FileOutputStreamWithPath openIconFileForWrite(@UserIdInt int userId, ShortcutInfo shortcut) argument
1286 shortcut.getPackage());
1308 void saveIconAndFixUpShortcut(@UserIdInt int userId, ShortcutInfo shortcut) { argument
1386 injectValidateIconResPackage(ShortcutInfo shortcut, Icon icon) argument
1585 fixUpIncomingShortcutInfo(@onNull ShortcutInfo shortcut, boolean forUpdate) argument
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
H A DMenuItemImpl.java266 * @return The active shortcut (based on QWERTY-mode of the menu).
273 * @return The label to show for the shortcut. This includes the chording
279 char shortcut = getShortcut();
280 if (shortcut == 0) {
285 switch (shortcut) {
300 sb.append(shortcut);
310 * a shortcut defined)
313 // Show shortcuts if the menu is supposed to show shortcuts AND this item has a shortcut
H A DActionMenu.java169 final char shortcut = qwerty ? item.getAlphabeticShortcut() :
171 if (keyCode == shortcut) {
H A DIconMenuItemView.java142 * shortcut+title being shown. Instead, re-set the shortcut caption
152 void setCaptionMode(boolean shortcut) { argument
161 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 DListMenuItemView.java98 mShortcutView = (TextView) findViewById(com.android.internal.R.id.shortcut);
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
H A DMenuItemImpl.java286 * @return The active shortcut (based on QWERTY-mode of the menu).
293 * @return The label to show for the shortcut. This includes the chording key (for example
299 char shortcut = getShortcut();
300 if (shortcut == 0) {
305 switch (shortcut) {
320 sb.append(shortcut);
330 * a shortcut defined)
333 // Show shortcuts if the menu is supposed to show shortcuts AND this item has a shortcut
H A DListMenuItemView.java100 mShortcutView = (TextView) findViewById(R.id.shortcut);
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DSystemUIApplication.java58 com.android.systemui.shortcut.ShortcutKeyDispatcher.class,

Completed in 473 milliseconds