Home
last modified time | relevance | path

Searched refs:shortcut (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest3.java48 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/
DShortcutBitmapSaver.java86 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 …]
DShortcutPackage.java221 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 …]
DShortcutService.java1276 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 …]
DShortcutLauncher.java177 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/
DShortcutManager.java81 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/
DLockscreenFragment.java88 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 …]
DShortcutPicker.java77 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()
DShortcutParser.java140 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/
DLauncherApps.java942 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 …]
DIShortcutService.aidl47 boolean requestPinShortcut(String packageName, in ShortcutInfo shortcut, in requestPinShortcut() argument
50 Intent createShortcutResultIntent(String packageName, in ShortcutInfo shortcut, int userId); in createShortcutResultIntent() argument
DShortcutManager.java502 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/
DUserDictionary.java162 int frequency, String shortcut, Locale locale) { in addWord() argument
179 values.put(SHORTCUT, shortcut); in addWord()
DSettings.java15028 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/
DShortcutKeyServiceProxy.java17 package com.android.systemui.shortcut;
DShortcutKeyDispatcher.java17 package com.android.systemui.shortcut;
/frameworks/base/packages/SystemUI/
DREADME.md70 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/
Ddumpsys_expected.txt2 "shortcut": [
/frameworks/base/core/java/com/android/internal/view/menu/
DIconMenuItemView.java164 void setCaptionMode(boolean shortcut) { in setCaptionMode() argument
173 mShortcutCaptionMode = shortcut && (mItemData.shouldShowShortcut()); in setCaptionMode()
DMenuItemImpl.java335 char shortcut = getShortcut(); in getShortcutLabel() local
336 if (shortcut == 0) { in getShortcutLabel()
364 switch (shortcut) { in getShortcutLabel()
382 sb.append(shortcut); in getShortcutLabel()
DActionMenu.java171 final char shortcut = qwerty ? item.getAlphabeticShortcut() : in findItemWithShortcut() local
177 if ((keyCode == shortcut) && is_modifiers_exact_match) { in findItemWithShortcut()
DIconMenuView.java647 private void setChildrenCaptionMode(boolean shortcut) { in setChildrenCaptionMode() argument
650 mLastChildrenCaptionMode = shortcut; in setChildrenCaptionMode()
653 ((IconMenuItemView) getChildAt(i)).setCaptionMode(shortcut); in setChildrenCaptionMode()
DListMenuItemView.java112 mShortcutView = findViewById(com.android.internal.R.id.shortcut); in onFinishInflate()
/frameworks/base/core/proto/android/app/
Dsettings_enums.proto251 // ACTION: Create a Settings shortcut item.
720 // OPEN: Settings > Accessibility > Accessibility shortcut
2100 // OPEN: Settings > Create shortcut(widget)
/frameworks/base/proto/src/metrics_constants/
Dmetrics_constants.proto314 // 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

12