Home
last modified time | relevance | path

Searched refs:shortcutInfo (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/icons/
DLauncherIcons.java119 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/
DWorkspaceItemInfo.java129 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 …]
DInstallShortcutReceiver.java319 @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 …]
DWorkspace.java2958 for (WorkspaceItemInfo shortcutInfo : folderInfo.contents) { in getFirstMatchForAppClose()
2959 if (packageAndUserAndApp.evaluate(shortcutInfo, view)) { in getFirstMatchForAppClose()
/packages/apps/Dialer/java/com/android/dialer/shortcuts/
DPinnedShortcuts.java98 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()
DDialerShortcut.java82 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()
DIconFactory.java72 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()
DShortcutInfoFactory.java69 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/
DShortcutKey.java32 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/
DShortcutIntentBuilder.java287 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/
DCustomShortcutConfigActivity.java51 ShortcutInfo shortcutInfo = in createShortcutResultIntent() local
54 return sm.createShortcutResultIntent(shortcutInfo); in createShortcutResultIntent()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DAddItemActivity.java195 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/
DDynamicShortcutsTests.java355 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/
DDeepShortcutManager.java126 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/
DDeepShortcutManager.java86 public Drawable getShortcutIconDrawable(ShortcutInfo shortcutInfo, int density) { in getShortcutIconDrawable() argument
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DQuickContactActivity.java2249 final ShortcutInfo shortcutInfo = shortcuts.getQuickContactShortcutInfo( in createLauncherShortcutWithContact() local
2251 if (shortcutInfo != null) { in createLauncherShortcutWithContact()
2252 shortcutManager.requestPinShortcut(shortcutInfo, null); in createLauncherShortcutWithContact()