/packages/apps/Launcher3/src/com/android/launcher3/icons/ |
D | LauncherIcons.java | 119 public BitmapInfo createShortcutIcon(ShortcutInfo shortcutInfo) { in createShortcutIcon() argument 120 return createShortcutIcon(shortcutInfo, true /* badged */); in createShortcutIcon() 123 public BitmapInfo createShortcutIcon(ShortcutInfo shortcutInfo, boolean badged) { in createShortcutIcon() argument 124 return createShortcutIcon(shortcutInfo, badged, null); in createShortcutIcon() 127 public BitmapInfo createShortcutIcon(ShortcutInfo shortcutInfo, in createShortcutIcon() argument 130 .getShortcutIconDrawable(shortcutInfo, mFillResIconDpi); in createShortcutIcon() 158 final ItemInfoWithIcon badge = getShortcutInfoBadge(shortcutInfo, cache); in createShortcutIcon() 168 public ItemInfoWithIcon getShortcutInfoBadge(ShortcutInfo shortcutInfo, IconCache cache) { in getShortcutInfoBadge() argument 169 ComponentName cn = shortcutInfo.getActivity(); in getShortcutInfoBadge() 170 String badgePkg = getBadgePackage(shortcutInfo); in getShortcutInfoBadge() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | WorkspaceItemInfo.java | 129 public WorkspaceItemInfo(ShortcutInfo shortcutInfo, Context context) { in WorkspaceItemInfo() argument 130 user = shortcutInfo.getUserHandle(); in WorkspaceItemInfo() 132 updateFromDeepShortcutInfo(shortcutInfo, context); in WorkspaceItemInfo() 178 public void updateFromDeepShortcutInfo(ShortcutInfo shortcutInfo, Context context) { in updateFromDeepShortcutInfo() argument 180 intent = ShortcutKey.makeIntent(shortcutInfo); in updateFromDeepShortcutInfo() 181 title = shortcutInfo.getShortLabel(); in updateFromDeepShortcutInfo() 183 CharSequence label = shortcutInfo.getLongLabel(); in updateFromDeepShortcutInfo() 185 label = shortcutInfo.getShortLabel(); in updateFromDeepShortcutInfo() 188 if (shortcutInfo.isEnabled()) { in updateFromDeepShortcutInfo() 193 disabledMessage = shortcutInfo.getDisabledMessage(); in updateFromDeepShortcutInfo() [all …]
|
D | InstallShortcutReceiver.java | 319 @Nullable final ShortcutInfo shortcutInfo; field in InstallShortcutReceiver.PendingInstallShortcutInfo 333 shortcutInfo = null; in PendingInstallShortcutInfo() 349 shortcutInfo = null; in PendingInstallShortcutInfo() 370 shortcutInfo = null; in PendingInstallShortcutInfo() 386 shortcutInfo = info; in PendingInstallShortcutInfo() 403 shortcutInfo = null; in PendingInstallShortcutInfo() 417 if (shortcutInfo != null) { in encodeToString() 491 } else if (shortcutInfo != null) { in getItemInfo() 492 WorkspaceItemInfo itemInfo = new WorkspaceItemInfo(shortcutInfo, mContext); in getItemInfo() 494 itemInfo.applyFrom(li.createShortcutIcon(shortcutInfo)); in getItemInfo() [all …]
|
D | Workspace.java | 2958 for (WorkspaceItemInfo shortcutInfo : folderInfo.contents) { in getFirstMatchForAppClose() 2959 if (packageAndUserAndApp.evaluate(shortcutInfo, view)) { in getFirstMatchForAppClose()
|
/packages/apps/Dialer/java/com/android/dialer/shortcuts/ |
D | PinnedShortcuts.java | 98 for (ShortcutInfo shortcutInfo : shortcutManager.getPinnedShortcuts()) { in refresh() 99 if (shortcutInfo.isDeclaredInManifest()) { in refresh() 103 if (shortcutInfo.isDynamic()) { in refresh() 111 if (shortcutInfo.getIntent() != null) { in refresh() 112 action = shortcutInfo.getIntent().getAction(); in refresh() 118 String lookupKey = DialerShortcut.getLookupKeyFromShortcutInfo(shortcutInfo); in refresh() 119 Uri lookupUri = DialerShortcut.getLookupUriFromShortcutInfo(shortcutInfo); in refresh() 126 delta.shortcutIdsToDisable.add(shortcutInfo.getId()); in refresh() 141 if (shortcut.needsUpdate(shortcutInfo)) { in refresh() 143 delta.shortcutsToUpdateById.put(shortcutInfo.getId(), shortcut); in refresh()
|
D | DialerShortcut.java | 82 static String getDisplayNameFromShortcutInfo(ShortcutInfo shortcutInfo) { in getDisplayNameFromShortcutInfo() argument 83 return shortcutInfo.getShortLabel().toString(); in getDisplayNameFromShortcutInfo() 104 static String getLookupKeyFromShortcutInfo(@NonNull ShortcutInfo shortcutInfo) { in getLookupKeyFromShortcutInfo() argument 105 return shortcutInfo.getId(); // Lookup keys are used for shortcut IDs. in getLookupKeyFromShortcutInfo() 117 static Uri getLookupUriFromShortcutInfo(@NonNull ShortcutInfo shortcutInfo) { in getLookupUriFromShortcutInfo() argument 119 shortcutInfo.getIntent().getLongExtra(ShortcutInfoFactory.EXTRA_CONTACT_ID, -1); in getLookupUriFromShortcutInfo() 121 throw new IllegalStateException("No contact ID found for shortcut: " + shortcutInfo.getId()); in getLookupUriFromShortcutInfo() 123 String lookupKey = getLookupKeyFromShortcutInfo(shortcutInfo); in getLookupUriFromShortcutInfo()
|
D | IconFactory.java | 72 public Icon create(@NonNull ShortcutInfo shortcutInfo) { in create() argument 75 DialerShortcut.getLookupUriFromShortcutInfo(shortcutInfo), in create() 76 DialerShortcut.getDisplayNameFromShortcutInfo(shortcutInfo), in create() 77 DialerShortcut.getLookupKeyFromShortcutInfo(shortcutInfo)); in create()
|
D | ShortcutInfoFactory.java | 69 ShortcutInfo.Builder shortcutInfo = in buildShortcutInfos() local 77 shortcutInfo.setRank(shortcut.getRank()); in buildShortcutInfos() 79 shortcuts.add(shortcutInfo.build()); in buildShortcutInfos()
|
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ |
D | ShortcutKey.java | 32 public static ShortcutKey fromInfo(ShortcutInfo shortcutInfo) { in fromInfo() argument 33 return new ShortcutKey(shortcutInfo.getPackage(), shortcutInfo.getUserHandle(), in fromInfo() 34 shortcutInfo.getId()); in fromInfo()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ShortcutIntentBuilder.java | 287 final ShortcutInfo shortcutInfo = dynamicShortcuts.getQuickContactShortcutInfo( in createContactShortcutIntent() local 289 if (shortcutInfo != null) { in createContactShortcutIntent() 290 intent = sm.createShortcutResultIntent(shortcutInfo); in createContactShortcutIntent() 349 final ShortcutInfo shortcutInfo = dynamicShortcuts.getActionShortcutInfo( in createPhoneNumberShortcutIntent() local 351 if (shortcutInfo != null) { in createPhoneNumberShortcutIntent() 352 intent = sm.createShortcutResultIntent(shortcutInfo); in createPhoneNumberShortcutIntent()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/testcomponent/ |
D | CustomShortcutConfigActivity.java | 51 ShortcutInfo shortcutInfo = in createShortcutResultIntent() local 54 return sm.createShortcutResultIntent(shortcutInfo); in createShortcutResultIntent()
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | AddItemActivity.java | 195 PinShortcutRequestActivityInfo shortcutInfo = in setupShortcut() local 197 mWidgetCell.getWidgetView().setTag(new PendingAddShortcutInfo(shortcutInfo)); in setupShortcut() 199 () -> new WidgetItem(shortcutInfo, mApp.getIconCache(), getPackageManager())); in setupShortcut()
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
D | DynamicShortcutsTests.java | 355 private ShortcutInfo makeDynamic(ShortcutInfo shortcutInfo) throws Exception { 358 addFlagsMethod.invoke(shortcutInfo, 1); 359 return shortcutInfo;
|
/packages/apps/Launcher3/src_shortcuts_overrides/com/android/launcher3/shortcuts/ |
D | DeepShortcutManager.java | 126 public Drawable getShortcutIconDrawable(ShortcutInfo shortcutInfo, int density) { in getShortcutIconDrawable() argument 128 return mLauncherApps.getShortcutIconDrawable(shortcutInfo, density); in getShortcutIconDrawable()
|
/packages/apps/Launcher3/go/src/com/android/launcher3/shortcuts/ |
D | DeepShortcutManager.java | 86 public Drawable getShortcutIconDrawable(ShortcutInfo shortcutInfo, int density) { in getShortcutIconDrawable() argument
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
D | QuickContactActivity.java | 2249 final ShortcutInfo shortcutInfo = shortcuts.getQuickContactShortcutInfo( in createLauncherShortcutWithContact() local 2251 if (shortcutInfo != null) { in createLauncherShortcutWithContact() 2252 shortcutManager.requestPinShortcut(shortcutInfo, null); in createLauncherShortcutWithContact()
|