Home
last modified time | relevance | path

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

12

/frameworks/support/room/compiler/src/test/kotlin/androidx/room/processor/
DShortcutMethodProcessorTest.kt68 """) { shortcut, _ -> in <lambda>() method
69 assertThat(shortcut.name, `is`("foo")) in <lambda>()
70 assertThat(shortcut.parameters.size, `is`(0)) in <lambda>()
71 assertThat(shortcut.returnCount, `is`(false)) in <lambda>()
83 """) { shortcut, _ -> in <lambda>() method
84 assertThat(shortcut.name, `is`("foo")) in <lambda>()
85 assertThat(shortcut.parameters.size, `is`(1)) in <lambda>()
86 val param = shortcut.parameters.first() in <lambda>()
89 assertThat(shortcut.entities.size, `is`(1)) in <lambda>()
90 assertThat(shortcut.entities["user"]?.typeName, `is`(USER_TYPE_NAME)) in <lambda>()
[all …]
DUpdateMethodProcessorTest.kt50 """) { shortcut, _ -> in <lambda>() method
51 assertThat(shortcut.onConflictStrategy, `is`(OnConflictStrategy.REPLACE)) in <lambda>()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest3.java45 private ShortcutInfo shortcut(String id, ComponentName activity, int rank) { in shortcut() method in ShortcutManagerTest3
49 private ShortcutInfo shortcut(String id, ComponentName activity) { in shortcut() method in ShortcutManagerTest3
75 shortcut("s1", A1) in testSetDynamicShortcuts_noManifestShortcuts()
82 shortcut("s5", A1), in testSetDynamicShortcuts_noManifestShortcuts()
83 shortcut("s4", A1), in testSetDynamicShortcuts_noManifestShortcuts()
84 shortcut("s3", A1) in testSetDynamicShortcuts_noManifestShortcuts()
91 shortcut("s5", A1), in testSetDynamicShortcuts_noManifestShortcuts()
92 shortcut("s4", A1, 5), in testSetDynamicShortcuts_noManifestShortcuts()
93 shortcut("s3", A1, 3), in testSetDynamicShortcuts_noManifestShortcuts()
94 shortcut("s2", A1) 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.java202 private void ensureNotImmutable(@Nullable ShortcutInfo shortcut, boolean ignoreInvisible) { in ensureNotImmutable() argument
203 if (shortcut != null && shortcut.isImmutable() in ensureNotImmutable()
204 && (!ignoreInvisible || shortcut.isVisibleToPublisher())) { in ensureNotImmutable()
206 "Manifest shortcut ID=" + shortcut.getId() in ensureNotImmutable()
233 final ShortcutInfo shortcut = mShortcuts.remove(id); in forceDeleteShortcutInner() local
234 if (shortcut != null) { in forceDeleteShortcutInner()
235 mShortcutUser.mService.removeIconLocked(shortcut); in forceDeleteShortcutInner()
236 shortcut.clearFlags(ShortcutInfo.FLAG_DYNAMIC | ShortcutInfo.FLAG_PINNED in forceDeleteShortcutInner()
239 return shortcut; in forceDeleteShortcutInner()
428 final ShortcutInfo shortcut = mShortcuts.get(shortcutId); in enableWithId() local
[all …]
DShortcutService.java1268 void removeIconLocked(ShortcutInfo shortcut) { in removeIconLocked() argument
1269 mShortcutBitmapSaver.removeIcon(shortcut); in removeIconLocked()
1368 FileOutputStreamWithPath openIconFileForWrite(@UserIdInt int userId, ShortcutInfo shortcut) in openIconFileForWrite() argument
1371 shortcut.getPackage()); in openIconFileForWrite()
1393 void saveIconAndFixUpShortcutLocked(ShortcutInfo shortcut) { in saveIconAndFixUpShortcutLocked() argument
1394 if (shortcut.hasIconFile() || shortcut.hasIconResource()) { in saveIconAndFixUpShortcutLocked()
1401 removeIconLocked(shortcut); in saveIconAndFixUpShortcutLocked()
1403 final Icon icon = shortcut.getIcon(); in saveIconAndFixUpShortcutLocked()
1412 injectValidateIconResPackage(shortcut, icon); in saveIconAndFixUpShortcutLocked()
1414 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/support/compat/src/main/java/androidx/core/content/pm/
DShortcutManagerCompat.java90 @NonNull ShortcutInfoCompat shortcut, @Nullable final IntentSender callback) { in requestPinShortcut() argument
93 shortcut.toShortcutInfo(), callback); in requestPinShortcut()
99 Intent intent = shortcut.addToIntent(new Intent(ACTION_INSTALL_SHORTCUT)); in requestPinShortcut()
133 @NonNull ShortcutInfoCompat shortcut) { in createShortcutResultIntent() argument
137 .createShortcutResultIntent(shortcut.toShortcutInfo()); in createShortcutResultIntent()
142 return shortcut.addToIntent(result); in createShortcutResultIntent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DLockscreenFragment.java96 Preference shortcut = findPreference(buttonSetting); in setupGroup() local
101 setSummary(shortcut, v); in setupGroup()
120 private void setSummary(Preference shortcut, String value) { in setSummary() argument
122 shortcut.setSummary(R.string.lockscreen_none); in setSummary()
127 shortcut.setSummary(info != null ? info.label : null); in setSummary()
130 shortcut.setSummary(info != null ? info.loadLabel(getContext().getPackageManager()) in setSummary()
133 shortcut.setSummary(R.string.lockscreen_none); in setSummary()
174 public StaticShortcut(Context context, Shortcut shortcut) { in StaticShortcut() argument
176 mShortcut = shortcut; in StaticShortcut()
338 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.java865 public int getShortcutIconResId(@NonNull ShortcutInfo shortcut) { in getShortcutIconResId() argument
866 return shortcut.getIconResourceId(); in getShortcutIconResId()
888 @NonNull ShortcutInfo shortcut) { in getShortcutIconFd()
889 return getShortcutIconFd(shortcut.getPackage(), shortcut.getId(), in getShortcutIconFd()
890 shortcut.getUserId()); in getShortcutIconFd()
928 public Drawable getShortcutIconDrawable(@NonNull ShortcutInfo shortcut, int density) { in getShortcutIconDrawable() argument
929 if (shortcut.hasIconFile()) { in getShortcutIconDrawable()
930 final ParcelFileDescriptor pfd = getShortcutIconFd(shortcut); in getShortcutIconDrawable()
938 if (shortcut.hasAdaptiveBitmap()) { in getShortcutIconDrawable()
951 } else if (shortcut.hasIconResource()) { in getShortcutIconDrawable()
[all …]
DShortcutManager.java718 public boolean requestPinShortcut(@NonNull ShortcutInfo shortcut, in requestPinShortcut() argument
721 return mService.requestPinShortcut(mContext.getPackageName(), shortcut, in requestPinShortcut()
745 public Intent createShortcutResultIntent(@NonNull ShortcutInfo shortcut) { in createShortcutResultIntent() argument
747 return mService.createShortcutResultIntent(mContext.getPackageName(), shortcut, in createShortcutResultIntent()
DIShortcutService.aidl46 boolean requestPinShortcut(String packageName, in ShortcutInfo shortcut, in requestPinShortcut() argument
49 Intent createShortcutResultIntent(String packageName, in ShortcutInfo shortcut, int userId); in createShortcutResultIntent() argument
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/
DListPopupWindowActivity.java76 private TextView shortcut; in onCreate()
101 viewHolder.shortcut = in onCreate()
102 (TextView) convertView.findViewById(R.id.shortcut); in onCreate()
108 viewHolder.shortcut.setVisibility(View.GONE); in onCreate()
/frameworks/base/core/java/android/provider/
DUserDictionary.java162 int frequency, String shortcut, Locale locale) { in addWord() argument
179 values.put(SHORTCUT, shortcut); in addWord()
/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/packages/SystemUI/src/com/android/systemui/shortcut/
DShortcutKeyServiceProxy.java17 package com.android.systemui.shortcut;
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuItemImpl.java332 char shortcut = getShortcut(); in getShortcutLabel() local
333 if (shortcut == 0) { in getShortcutLabel()
361 switch (shortcut) { in getShortcutLabel()
379 sb.append(shortcut); in getShortcutLabel()
DIconMenuItemView.java163 void setCaptionMode(boolean shortcut) { in setCaptionMode() argument
172 mShortcutCaptionMode = shortcut && (mItemData.shouldShowShortcut()); in setCaptionMode()
DActionMenu.java169 final char shortcut = qwerty ? item.getAlphabeticShortcut() : in findItemWithShortcut() local
175 if ((keyCode == shortcut) && is_modifiers_exact_match) { in findItemWithShortcut()
DIconMenuView.java641 private void setChildrenCaptionMode(boolean shortcut) { in setChildrenCaptionMode() argument
644 mLastChildrenCaptionMode = shortcut; in setChildrenCaptionMode()
647 ((IconMenuItemView) getChildAt(i)).setCaptionMode(shortcut); in setChildrenCaptionMode()
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/view/menu/
DMenuItemImpl.java352 char shortcut = getShortcut(); in getShortcutLabel() local
353 if (shortcut == 0) { in getShortcutLabel()
379 switch (shortcut) { in getShortcutLabel()
394 sb.append(shortcut); in getShortcutLabel()
/frameworks/base/services/tests/servicestests/assets/shortcut/
Ddumpsys_expected.txt2 "shortcut": [

12