/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest3.java | 48 private ShortcutInfo shortcut(String id, ComponentName activity, int rank) { in shortcut() method in ShortcutManagerTest3 52 private ShortcutInfo shortcut(String id, ComponentName activity) { in shortcut() method in ShortcutManagerTest3 56 private ShortcutInfo shortcut(String id, Set<String> categories) { in shortcut() method in ShortcutManagerTest3 82 shortcut("s1", A1) in testSetDynamicShortcuts_noManifestShortcuts() 89 shortcut("s5", A1), in testSetDynamicShortcuts_noManifestShortcuts() 90 shortcut("s4", A1), in testSetDynamicShortcuts_noManifestShortcuts() 91 shortcut("s3", A1) in testSetDynamicShortcuts_noManifestShortcuts() 98 shortcut("s5", A1), in testSetDynamicShortcuts_noManifestShortcuts() 99 shortcut("s4", A1, 5), in testSetDynamicShortcuts_noManifestShortcuts() 100 shortcut("s3", A1, 3), in testSetDynamicShortcuts_noManifestShortcuts() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutBitmapSaver.java | 86 public final ShortcutInfo shortcut; field in ShortcutBitmapSaver.PendingItem 94 private PendingItem(ShortcutInfo shortcut, byte[] bytes) { in PendingItem() argument 95 this.shortcut = shortcut; in PendingItem() 104 + " shortcut=" + shortcut.toInsecureString() in toString() 137 public String getBitmapPathMayWaitLocked(ShortcutInfo shortcut) { in getBitmapPathMayWaitLocked() argument 139 if (success && shortcut.hasIconFile()) { in getBitmapPathMayWaitLocked() 140 return shortcut.getBitmapPath(); in getBitmapPathMayWaitLocked() 146 public void removeIcon(ShortcutInfo shortcut) { in removeIcon() argument 149 shortcut.setIconResourceId(0); in removeIcon() 150 shortcut.setIconResName(null); in removeIcon() [all …]
|
D | ShortcutPackage.java | 221 private void ensureNotImmutable(@Nullable ShortcutInfo shortcut, boolean ignoreInvisible) { in ensureNotImmutable() argument 222 if (shortcut != null && shortcut.isImmutable() in ensureNotImmutable() 223 && (!ignoreInvisible || shortcut.isVisibleToPublisher())) { in ensureNotImmutable() 225 "Manifest shortcut ID=" + shortcut.getId() in ensureNotImmutable() 252 final ShortcutInfo shortcut = mShortcuts.remove(id); in forceDeleteShortcutInner() local 253 if (shortcut != null) { in forceDeleteShortcutInner() 254 mShortcutUser.mService.removeIconLocked(shortcut); in forceDeleteShortcutInner() 255 shortcut.clearFlags(ShortcutInfo.FLAG_DYNAMIC | ShortcutInfo.FLAG_PINNED in forceDeleteShortcutInner() 258 return shortcut; in forceDeleteShortcutInner() 447 final ShortcutInfo shortcut = mShortcuts.get(shortcutId); in enableWithId() local [all …]
|
D | ShortcutService.java | 1276 void removeIconLocked(ShortcutInfo shortcut) { in removeIconLocked() argument 1277 mShortcutBitmapSaver.removeIcon(shortcut); in removeIconLocked() 1376 FileOutputStreamWithPath openIconFileForWrite(@UserIdInt int userId, ShortcutInfo shortcut) in openIconFileForWrite() argument 1379 shortcut.getPackage()); in openIconFileForWrite() 1401 void saveIconAndFixUpShortcutLocked(ShortcutInfo shortcut) { in saveIconAndFixUpShortcutLocked() argument 1402 if (shortcut.hasIconFile() || shortcut.hasIconResource()) { in saveIconAndFixUpShortcutLocked() 1409 removeIconLocked(shortcut); in saveIconAndFixUpShortcutLocked() 1411 final Icon icon = shortcut.getIcon(); in saveIconAndFixUpShortcutLocked() 1420 injectValidateIconResPackage(shortcut, icon); in saveIconAndFixUpShortcutLocked() 1422 shortcut.setIconResourceId(icon.getResId()); in saveIconAndFixUpShortcutLocked() [all …]
|
D | ShortcutLauncher.java | 177 public boolean hasPinned(ShortcutInfo shortcut) { in hasPinned() argument 179 getPinnedShortcutIds(shortcut.getPackage(), shortcut.getUserId()); in hasPinned() 180 return (pinned != null) && pinned.contains(shortcut.getId()); in hasPinned()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | ShortcutManager.java | 81 ShortcutInfo shortcut = null; in getIntent() local 90 shortcut = shortcutMap.get(shortcutChar); in getIntent() 94 if (shortcut == null) { in getIntent() 97 shortcut = shortcutMap.get(shortcutChar); in getIntent() 101 return (shortcut != null) ? shortcut.intent : null; in getIntent() 175 ShortcutInfo shortcut = new ShortcutInfo(title, intent); in loadShortcuts() local 177 mShiftShortcuts.put(shortcutChar, shortcut); in loadShortcuts() 179 mShortcuts.put(shortcutChar, shortcut); in loadShortcuts()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | LockscreenFragment.java | 88 Preference shortcut = findPreference(buttonSetting); in setupGroup() local 93 setSummary(shortcut, v); in setupGroup() 112 private void setSummary(Preference shortcut, String value) { in setSummary() argument 114 shortcut.setSummary(R.string.lockscreen_none); in setSummary() 119 shortcut.setSummary(info != null ? info.label : null); in setSummary() 122 shortcut.setSummary(info != null ? info.loadLabel(getContext().getPackageManager()) in setSummary() 125 shortcut.setSummary(R.string.lockscreen_none); in setSummary() 166 public StaticShortcut(Context context, Shortcut shortcut) { in StaticShortcut() argument 168 mShortcut = shortcut; in StaticShortcut() 330 Shortcut shortcut = getShortcutInfo(mContext, buttonStr); in create() local [all …]
|
D | ShortcutPicker.java | 77 shortcuts.forEach(shortcut -> { in onCreatePreferences() 78 ShortcutPreference shortcutPref = new ShortcutPreference(context, shortcut, in onCreatePreferences() 172 public ShortcutPreference(Context context, Shortcut shortcut, CharSequence appLabel) { in ShortcutPreference() argument 174 mShortcut = shortcut; in ShortcutPreference() 175 setTitle(shortcut.label); in ShortcutPreference()
|
D | ShortcutParser.java | 140 for (Shortcut shortcut : new ShortcutParser(context, in create() 142 if (shortcut.id.equals(sp[2])) { in create() 143 return shortcut; in create()
|
/frameworks/base/core/java/android/content/pm/ |
D | LauncherApps.java | 942 public int getShortcutIconResId(@NonNull ShortcutInfo shortcut) { in getShortcutIconResId() argument 943 return shortcut.getIconResourceId(); in getShortcutIconResId() 965 @NonNull ShortcutInfo shortcut) { in getShortcutIconFd() 966 return getShortcutIconFd(shortcut.getPackage(), shortcut.getId(), in getShortcutIconFd() 967 shortcut.getUserId()); in getShortcutIconFd() 1005 public Drawable getShortcutIconDrawable(@NonNull ShortcutInfo shortcut, int density) { in getShortcutIconDrawable() argument 1006 if (shortcut.hasIconFile()) { in getShortcutIconDrawable() 1007 final ParcelFileDescriptor pfd = getShortcutIconFd(shortcut); in getShortcutIconDrawable() 1015 if (shortcut.hasAdaptiveBitmap()) { in getShortcutIconDrawable() 1028 } else if (shortcut.hasIconResource()) { in getShortcutIconDrawable() [all …]
|
D | IShortcutService.aidl | 47 boolean requestPinShortcut(String packageName, in ShortcutInfo shortcut, in requestPinShortcut() argument 50 Intent createShortcutResultIntent(String packageName, in ShortcutInfo shortcut, int userId); in createShortcutResultIntent() argument
|
D | ShortcutManager.java | 502 public boolean requestPinShortcut(@NonNull ShortcutInfo shortcut, in requestPinShortcut() argument 505 return mService.requestPinShortcut(mContext.getPackageName(), shortcut, in requestPinShortcut() 529 public Intent createShortcutResultIntent(@NonNull ShortcutInfo shortcut) { in createShortcutResultIntent() argument 531 return mService.createShortcutResultIntent(mContext.getPackageName(), shortcut, in createShortcutResultIntent()
|
/frameworks/base/core/java/android/provider/ |
D | UserDictionary.java | 162 int frequency, String shortcut, Locale locale) { in addWord() argument 179 values.put(SHORTCUT, shortcut); in addWord()
|
D | Settings.java | 15028 public static Intent getIntentForShortcut(ContentResolver cr, char shortcut) in getIntentForShortcut() argument 15034 new String[] { String.valueOf((int) shortcut) }, ORDERING); in getIntentForShortcut() 15074 char shortcut, in add() argument 15079 if (shortcut != 0) { in add() 15081 new String[] { String.valueOf((int) shortcut) }); in add() 15088 if (shortcut != 0) values.put(SHORTCUT, (int) shortcut); in add()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/shortcut/ |
D | ShortcutKeyServiceProxy.java | 17 package com.android.systemui.shortcut;
|
D | ShortcutKeyDispatcher.java | 17 package com.android.systemui.shortcut;
|
/frameworks/base/packages/SystemUI/ |
D | README.md | 70 This is generally used a shortcut to directly trigger CommandQueue rather than 134 Shows UI for keyboard shortcuts (triggered by keyboard shortcut). 140 ### [com.android.systemui.shortcut.ShortcutKeyDispatcher](/packages/SystemUI/src/com/android/system… 142 Dispatches shortcut to System UI components.
|
/frameworks/base/services/tests/servicestests/assets/shortcut/ |
D | dumpsys_expected.txt | 2 "shortcut": [
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | IconMenuItemView.java | 164 void setCaptionMode(boolean shortcut) { in setCaptionMode() argument 173 mShortcutCaptionMode = shortcut && (mItemData.shouldShowShortcut()); in setCaptionMode()
|
D | MenuItemImpl.java | 335 char shortcut = getShortcut(); in getShortcutLabel() local 336 if (shortcut == 0) { in getShortcutLabel() 364 switch (shortcut) { in getShortcutLabel() 382 sb.append(shortcut); in getShortcutLabel()
|
D | ActionMenu.java | 171 final char shortcut = qwerty ? item.getAlphabeticShortcut() : in findItemWithShortcut() local 177 if ((keyCode == shortcut) && is_modifiers_exact_match) { in findItemWithShortcut()
|
D | IconMenuView.java | 647 private void setChildrenCaptionMode(boolean shortcut) { in setChildrenCaptionMode() argument 650 mLastChildrenCaptionMode = shortcut; in setChildrenCaptionMode() 653 ((IconMenuItemView) getChildAt(i)).setCaptionMode(shortcut); in setChildrenCaptionMode()
|
D | ListMenuItemView.java | 112 mShortcutView = findViewById(com.android.internal.R.id.shortcut); in onFinishInflate()
|
/frameworks/base/core/proto/android/app/ |
D | settings_enums.proto | 251 // ACTION: Create a Settings shortcut item. 720 // OPEN: Settings > Accessibility > Accessibility shortcut 2100 // OPEN: Settings > Create shortcut(widget)
|
/frameworks/base/proto/src/metrics_constants/ |
D | metrics_constants.proto | 314 // OPEN: Settings > Accessibility > Accessibility shortcut 1591 // ACTION: Double tap camera shortcut 1596 // ACTION: Double twist camera shortcut 1875 // Tuner: Change do not disturb volume buttons shortcut. 2052 // Logs that the user docks window via shortcut key. 3750 // ACTION: Create a Settings shortcut item. 6223 // OPEN: Settings > Create shortcut(widget) 6572 // FIELD: There is a shortcut for the phone number 6584 // ACTION: The second tap on emergency shortcut to make a phone call 6590 // FIELD: The time in milliseconds of second tap on shortcut since first tap
|