/frameworks/support/room/compiler/src/test/kotlin/android/arch/persistence/room/processor/ |
D | ShortcutMethodProcessorTest.kt | 67 """) { shortcut, _ -> in <lambda>() method 68 assertThat(shortcut.name, `is`("foo")) in <lambda>() 69 assertThat(shortcut.parameters.size, `is`(0)) in <lambda>() 70 assertThat(shortcut.returnCount, `is`(false)) in <lambda>() 82 """) { shortcut, _ -> in <lambda>() method 83 assertThat(shortcut.name, `is`("foo")) in <lambda>() 84 assertThat(shortcut.parameters.size, `is`(1)) in <lambda>() 85 val param = shortcut.parameters.first() in <lambda>() 88 assertThat(shortcut.entities.size, `is`(1)) in <lambda>() 89 assertThat(shortcut.entities["user"]?.typeName, `is`(USER_TYPE_NAME)) in <lambda>() [all …]
|
D | UpdateMethodProcessorTest.kt | 50 """) { shortcut, _ -> in <lambda>() method 51 assertThat(shortcut.onConflictStrategy, `is`(OnConflictStrategy.REPLACE)) in <lambda>()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest3.java | 45 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/ |
D | ShortcutBitmapSaver.java | 84 public final ShortcutInfo shortcut; field in ShortcutBitmapSaver.PendingItem 92 private PendingItem(ShortcutInfo shortcut, byte[] bytes) { in PendingItem() argument 93 this.shortcut = shortcut; in PendingItem() 102 + " shortcut=" + shortcut.toInsecureString() in toString() 135 public String getBitmapPathMayWaitLocked(ShortcutInfo shortcut) { in getBitmapPathMayWaitLocked() argument 137 if (success && shortcut.hasIconFile()) { in getBitmapPathMayWaitLocked() 138 return shortcut.getBitmapPath(); in getBitmapPathMayWaitLocked() 144 public void removeIcon(ShortcutInfo shortcut) { in removeIcon() argument 147 shortcut.setIconResourceId(0); in removeIcon() 148 shortcut.setIconResName(null); in removeIcon() [all …]
|
D | ShortcutPackage.java | 178 private void ensureNotImmutable(@Nullable ShortcutInfo shortcut) { in ensureNotImmutable() argument 179 if (shortcut != null && shortcut.isImmutable()) { in ensureNotImmutable() 181 "Manifest shortcut ID=" + shortcut.getId() in ensureNotImmutable() 203 final ShortcutInfo shortcut = mShortcuts.remove(id); in deleteShortcutInner() local 204 if (shortcut != null) { in deleteShortcutInner() 205 mShortcutUser.mService.removeIconLocked(shortcut); in deleteShortcutInner() 206 shortcut.clearFlags(ShortcutInfo.FLAG_DYNAMIC | ShortcutInfo.FLAG_PINNED in deleteShortcutInner() 209 return shortcut; in deleteShortcutInner() 381 final ShortcutInfo shortcut = mShortcuts.get(shortcutId); in enableWithId() local 382 if (shortcut != null) { in enableWithId() [all …]
|
D | ShortcutService.java | 1231 void removeIconLocked(ShortcutInfo shortcut) { in removeIconLocked() argument 1232 mShortcutBitmapSaver.removeIcon(shortcut); in removeIconLocked() 1330 FileOutputStreamWithPath openIconFileForWrite(@UserIdInt int userId, ShortcutInfo shortcut) in openIconFileForWrite() argument 1333 shortcut.getPackage()); in openIconFileForWrite() 1355 void saveIconAndFixUpShortcutLocked(ShortcutInfo shortcut) { in saveIconAndFixUpShortcutLocked() argument 1356 if (shortcut.hasIconFile() || shortcut.hasIconResource()) { in saveIconAndFixUpShortcutLocked() 1363 removeIconLocked(shortcut); in saveIconAndFixUpShortcutLocked() 1365 final Icon icon = shortcut.getIcon(); in saveIconAndFixUpShortcutLocked() 1374 injectValidateIconResPackage(shortcut, icon); in saveIconAndFixUpShortcutLocked() 1376 shortcut.setIconResourceId(icon.getResId()); in saveIconAndFixUpShortcutLocked() [all …]
|
D | ShortcutLauncher.java | 159 public boolean hasPinned(ShortcutInfo shortcut) { in hasPinned() argument 161 getPinnedShortcutIds(shortcut.getPackage(), shortcut.getUserId()); in hasPinned() 162 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/support/compat/java/android/support/v4/content/pm/ |
D | ShortcutManagerCompat.java | 89 @NonNull ShortcutInfoCompat shortcut, @Nullable final IntentSender callback) { in requestPinShortcut() argument 92 shortcut.toShortcutInfo(), callback); in requestPinShortcut() 98 Intent intent = shortcut.addToIntent(new Intent(ACTION_INSTALL_SHORTCUT)); in requestPinShortcut() 132 @NonNull ShortcutInfoCompat shortcut) { in createShortcutResultIntent() argument 136 .createShortcutResultIntent(shortcut.toShortcutInfo()); in createShortcutResultIntent() 141 return shortcut.addToIntent(result); in createShortcutResultIntent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | LockscreenFragment.java | 96 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 …]
|
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 | 755 public int getShortcutIconResId(@NonNull ShortcutInfo shortcut) { in getShortcutIconResId() argument 756 return shortcut.getIconResourceId(); in getShortcutIconResId() 778 @NonNull ShortcutInfo shortcut) { in getShortcutIconFd() 779 return getShortcutIconFd(shortcut.getPackage(), shortcut.getId(), in getShortcutIconFd() 780 shortcut.getUserId()); in getShortcutIconFd() 818 public Drawable getShortcutIconDrawable(@NonNull ShortcutInfo shortcut, int density) { in getShortcutIconDrawable() argument 819 if (shortcut.hasIconFile()) { in getShortcutIconDrawable() 820 final ParcelFileDescriptor pfd = getShortcutIconFd(shortcut); in getShortcutIconDrawable() 828 if (shortcut.hasAdaptiveBitmap()) { in getShortcutIconDrawable() 841 } else if (shortcut.hasIconResource()) { in getShortcutIconDrawable() [all …]
|
D | ShortcutManager.java | 681 public boolean requestPinShortcut(@NonNull ShortcutInfo shortcut, in requestPinShortcut() argument 684 return mService.requestPinShortcut(mContext.getPackageName(), shortcut, in requestPinShortcut() 708 public Intent createShortcutResultIntent(@NonNull ShortcutInfo shortcut) { in createShortcutResultIntent() argument 710 return mService.createShortcutResultIntent(mContext.getPackageName(), shortcut, in createShortcutResultIntent()
|
D | IShortcutService.aidl | 46 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/com/example/android/supportv7/widget/ |
D | ListPopupWindowActivity.java | 74 private TextView shortcut; in onCreate() 99 viewHolder.shortcut = in onCreate() 100 (TextView) convertView.findViewById(R.id.shortcut); in onCreate() 106 viewHolder.shortcut.setVisibility(View.GONE); in onCreate()
|
/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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/shortcut/ |
D | ShortcutKeyServiceProxy.java | 17 package com.android.systemui.shortcut;
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | MenuItemImpl.java | 351 char shortcut = getShortcut(); in getShortcutLabel() local 352 if (shortcut == 0) { in getShortcutLabel() 357 switch (shortcut) { in getShortcutLabel() 372 sb.append(shortcut); in getShortcutLabel()
|
D | IconMenuItemView.java | 163 void setCaptionMode(boolean shortcut) { in setCaptionMode() argument 172 mShortcutCaptionMode = shortcut && (mItemData.shouldShowShortcut()); in setCaptionMode()
|
D | ActionMenu.java | 169 final char shortcut = qwerty ? item.getAlphabeticShortcut() : in findItemWithShortcut() local 175 if ((keyCode == shortcut) && is_modifiers_exact_match) { in findItemWithShortcut()
|
D | IconMenuView.java | 641 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/android/support/v7/view/menu/ |
D | MenuItemImpl.java | 365 char shortcut = getShortcut(); in getShortcutLabel() local 366 if (shortcut == 0) { in getShortcutLabel() 371 switch (shortcut) { in getShortcutLabel() 386 sb.append(shortcut); in getShortcutLabel()
|
/frameworks/base/services/tests/servicestests/assets/shortcut/ |
D | dumpsys_expected.txt | 2 "shortcut": [
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/view/ |
D | SupportMenuInflaterTest.java | 59 mMenuInflater.inflate(R.menu.shortcut, mMenu); in testInflateFromXml()
|