/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 | 233 private void ensureNotImmutable(@Nullable ShortcutInfo shortcut, boolean ignoreInvisible) { in ensureNotImmutable() argument 234 if (shortcut != null && shortcut.isImmutable() in ensureNotImmutable() 235 && (!ignoreInvisible || shortcut.isVisibleToPublisher())) { in ensureNotImmutable() 237 "Manifest shortcut ID=" + shortcut.getId() in ensureNotImmutable() 286 final ShortcutInfo shortcut = mShortcuts.remove(id); in forceDeleteShortcutInner() local 287 if (shortcut != null) { in forceDeleteShortcutInner() 288 mShortcutUser.mService.removeIconLocked(shortcut); in forceDeleteShortcutInner() 289 shortcut.clearFlags(ShortcutInfo.FLAG_DYNAMIC | ShortcutInfo.FLAG_PINNED in forceDeleteShortcutInner() 292 return shortcut; in forceDeleteShortcutInner() 374 final ShortcutInfo shortcut = activityShortcuts.get(maxShortcuts - 1); in pushDynamicShortcut() local [all …]
|
D | ShortcutService.java | 1303 void removeIconLocked(ShortcutInfo shortcut) { in removeIconLocked() argument 1304 mShortcutBitmapSaver.removeIcon(shortcut); in removeIconLocked() 1403 FileOutputStreamWithPath openIconFileForWrite(@UserIdInt int userId, ShortcutInfo shortcut) in openIconFileForWrite() argument 1406 shortcut.getPackage()); in openIconFileForWrite() 1428 void saveIconAndFixUpShortcutLocked(ShortcutInfo shortcut) { in saveIconAndFixUpShortcutLocked() argument 1429 if (shortcut.hasIconFile() || shortcut.hasIconResource() || shortcut.hasIconUri()) { in saveIconAndFixUpShortcutLocked() 1436 removeIconLocked(shortcut); in saveIconAndFixUpShortcutLocked() 1438 final Icon icon = shortcut.getIcon(); in saveIconAndFixUpShortcutLocked() 1447 injectValidateIconResPackage(shortcut, icon); in saveIconAndFixUpShortcutLocked() 1449 shortcut.setIconResourceId(icon.getResId()); in saveIconAndFixUpShortcutLocked() [all …]
|
D | ShortcutLauncher.java | 186 public boolean hasPinned(ShortcutInfo shortcut) { in hasPinned() argument 188 getPinnedShortcutIds(shortcut.getPackage(), shortcut.getUserId()); in hasPinned() 189 return (pinned != null) && pinned.contains(shortcut.getId()); in hasPinned()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/ |
D | DataManagerTest.java | 294 ShortcutInfo shortcut = buildShortcutInfo(TEST_PKG_NAME, USER_ID_PRIMARY, TEST_SHORTCUT_ID, in testReportAppTargetEvent_directSharing() local 296 mDataManager.addOrUpdateConversationInfo(shortcut); in testReportAppTargetEvent_directSharing() 298 AppTarget appTarget = new AppTarget.Builder(new AppTargetId(TEST_SHORTCUT_ID), shortcut) in testReportAppTargetEvent_directSharing() 316 ShortcutInfo shortcut = buildShortcutInfo(TEST_PKG_NAME, USER_ID_PRIMARY, TEST_SHORTCUT_ID, in testReportAppTargetEvent_directSharing_createConversation() local 318 AppTarget appTarget = new AppTarget.Builder(new AppTargetId(TEST_SHORTCUT_ID), shortcut) in testReportAppTargetEvent_directSharing_createConversation() 364 ShortcutInfo shortcut = buildShortcutInfo(TEST_PKG_NAME, USER_ID_PRIMARY, TEST_SHORTCUT_ID, in testContactsChanged() local 366 mDataManager.addOrUpdateConversationInfo(shortcut); in testContactsChanged() 388 ShortcutInfo shortcut = buildShortcutInfo(TEST_PKG_NAME, USER_ID_PRIMARY, TEST_SHORTCUT_ID, in testNotificationPosted() local 390 mDataManager.addOrUpdateConversationInfo(shortcut); in testNotificationPosted() 406 ShortcutInfo shortcut = buildShortcutInfo(TEST_PKG_NAME, USER_ID_PRIMARY, TEST_SHORTCUT_ID, in testNotificationOpened() local [all …]
|
/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/core/java/android/content/pm/ |
D | LauncherApps.java | 1190 public int getShortcutIconResId(@NonNull ShortcutInfo shortcut) { in getShortcutIconResId() argument 1191 return shortcut.getIconResourceId(); in getShortcutIconResId() 1213 @NonNull ShortcutInfo shortcut) { in getShortcutIconFd() 1214 return getShortcutIconFd(shortcut.getPackage(), shortcut.getId(), in getShortcutIconFd() 1215 shortcut.getUserId()); in getShortcutIconFd() 1240 public ParcelFileDescriptor getUriShortcutIconFd(@NonNull ShortcutInfo shortcut) { in getUriShortcutIconFd() argument 1241 return getUriShortcutIconFd(shortcut.getPackage(), shortcut.getId(), shortcut.getUserId()); in getUriShortcutIconFd() 1287 public Drawable getShortcutIconDrawable(@NonNull ShortcutInfo shortcut, int density) { in getShortcutIconDrawable() argument 1288 if (shortcut.hasIconFile()) { in getShortcutIconDrawable() 1289 final ParcelFileDescriptor pfd = getShortcutIconFd(shortcut); in getShortcutIconDrawable() [all …]
|
D | IShortcutService.aidl | 41 boolean requestPinShortcut(String packageName, in ShortcutInfo shortcut, in requestPinShortcut() argument 44 Intent createShortcutResultIntent(String packageName, in ShortcutInfo shortcut, int userId); in createShortcutResultIntent() argument 80 void pushDynamicShortcut(String packageName, in ShortcutInfo shortcut, int userId); in pushDynamicShortcut() argument
|
D | ShortcutManager.java | 586 public boolean requestPinShortcut(@NonNull ShortcutInfo shortcut, in requestPinShortcut() argument 589 return mService.requestPinShortcut(mContext.getPackageName(), shortcut, in requestPinShortcut() 613 public Intent createShortcutResultIntent(@NonNull ShortcutInfo shortcut) { in createShortcutResultIntent() argument 615 return mService.createShortcutResultIntent(mContext.getPackageName(), shortcut, in createShortcutResultIntent() 766 public void pushDynamicShortcut(@NonNull ShortcutInfo shortcut) { in pushDynamicShortcut() argument 768 mService.pushDynamicShortcut(mContext.getPackageName(), shortcut, injectMyUserId()); in pushDynamicShortcut() local
|
/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/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/icon/ |
D | IconManagerTest.kt | 60 @Mock private lateinit var shortcut: ShortcutInfo variable in com.android.systemui.statusbar.notification.icon.IconManagerTest 84 `when`(shortcut.icon).thenReturn(shortcutIc) in setUp() 85 `when`(launcherApps.getShortcutIcon(shortcut)).thenReturn(shortcutIc) in setUp() 201 builder.setShortcutInfo(shortcut) in notificationEntry()
|
/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/bubbles/ |
D | BubbleTaskView.java | 73 public void startShortcutActivity(@NonNull ShortcutInfo shortcut, in startShortcutActivity() argument 75 mTaskEmbedder.startShortcutActivity(shortcut, options, sourceBounds); in startShortcutActivity()
|
/frameworks/base/packages/SystemUI/ |
D | README.md | 64 This is generally used a shortcut to directly trigger CommandQueue rather than 117 Shows UI for keyboard shortcuts (triggered by keyboard shortcut). 123 ### [com.android.systemui.shortcut.ShortcutKeyDispatcher](/packages/SystemUI/src/com/android/system… 125 Dispatches shortcut to System UI components.
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/icon/ |
D | IconManager.kt | 258 val shortcut = entry.ranking.shortcutInfo in <lambda>() constant 259 if (shortcut != null) { in <lambda>() 260 ic = launcherApps.getShortcutIcon(shortcut) in <lambda>()
|
/frameworks/base/core/proto/android/server/ |
D | peopleservice.proto | 37 // The conversation's shortcut id. 49 // Integer representation of shortcut bit flags.
|
/frameworks/base/services/tests/servicestests/assets/shortcut/ |
D | dumpsys_expected.txt | 2 "shortcut": [
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
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 | IconMenuItemView.java | 164 void setCaptionMode(boolean shortcut) { in setCaptionMode() argument 173 mShortcutCaptionMode = shortcut && (mItemData.shouldShowShortcut()); in setCaptionMode()
|
D | ActionMenu.java | 171 final char shortcut = qwerty ? item.getAlphabeticShortcut() : in findItemWithShortcut() local 177 if ((keyCode == shortcut) && is_modifiers_exact_match) { in findItemWithShortcut()
|
/frameworks/base/core/java/android/window/ |
D | TaskEmbedder.java | 424 public void startShortcutActivity(@NonNull ShortcutInfo shortcut, in startShortcutActivity() argument 429 service.startShortcut(shortcut, sourceBounds, options.toBundle()); in startShortcutActivity()
|
/frameworks/base/core/proto/android/stats/accessibility/ |
D | accessibility_enums.proto | 21 // The entry point of the accessibility shortcut.
|