Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/model/data/
DWorkspaceItemInfo.java119 public WorkspaceItemInfo(ShortcutInfo shortcutInfo, Context context) { in WorkspaceItemInfo() argument
120 user = shortcutInfo.getUserHandle(); in WorkspaceItemInfo()
122 updateFromDeepShortcutInfo(shortcutInfo, context); in WorkspaceItemInfo()
159 public void updateFromDeepShortcutInfo(ShortcutInfo shortcutInfo, Context context) { in updateFromDeepShortcutInfo() argument
161 intent = ShortcutKey.makeIntent(shortcutInfo); in updateFromDeepShortcutInfo()
162 title = shortcutInfo.getShortLabel(); in updateFromDeepShortcutInfo()
164 CharSequence label = shortcutInfo.getLongLabel(); in updateFromDeepShortcutInfo()
166 label = shortcutInfo.getShortLabel(); in updateFromDeepShortcutInfo()
169 if (shortcutInfo.isEnabled()) { in updateFromDeepShortcutInfo()
174 disabledMessage = shortcutInfo.getDisabledMessage(); in updateFromDeepShortcutInfo()
[all …]
/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/model/
DItemInstallQueue.java237 @Nullable ShortcutInfo shortcutInfo; field in ItemInstallQueue.PendingInstallShortcutInfo
257 shortcutInfo = info; in PendingInstallShortcutInfo()
306 WorkspaceItemInfo itemInfo = new WorkspaceItemInfo(shortcutInfo, context); in getItemInfo()
308 .getShortcutIcon(itemInfo, shortcutInfo); in getItemInfo()
309 return Pair.create(itemInfo, shortcutInfo); in getItemInfo()
337 boolean shortcutInfoMatches = shortcutInfo == null in equals()
338 ? other.shortcutInfo == null in equals()
339 : other.shortcutInfo != null in equals()
340 && shortcutInfo.getId().equals(other.shortcutInfo.getId()) in equals()
341 && shortcutInfo.getPackage().equals(other.shortcutInfo.getPackage()); in equals()
/packages/apps/Launcher3/src/com/android/launcher3/icons/
DShortcutCachingLogic.java80 public long getLastUpdatedTime(ShortcutInfo shortcutInfo, PackageInfo info) { in getLastUpdatedTime() argument
81 if (shortcutInfo == null || !FeatureFlags.ENABLE_DEEP_SHORTCUT_ICON_CACHE.get()) { in getLastUpdatedTime()
84 return Math.max(shortcutInfo.getLastChangedTimestamp(), info.lastUpdateTime); in getLastUpdatedTime()
96 public static Drawable getIcon(Context context, ShortcutInfo shortcutInfo, int density) { in getIcon() argument
102 .getShortcutIconDrawable(shortcutInfo, density); in getIcon()
DIconCache.java249 public BitmapInfo getShortcutInfoBadge(ShortcutInfo shortcutInfo) { in getShortcutInfoBadge() argument
250 ComponentName cn = shortcutInfo.getActivity(); in getShortcutInfoBadge()
254 appInfo.user = shortcutInfo.getUserHandle(); in getShortcutInfoBadge()
262 PackageItemInfo pkgInfo = new PackageItemInfo(shortcutInfo.getPackage()); in getShortcutInfoBadge()
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
DShortcutKey.java45 public static ShortcutKey fromInfo(ShortcutInfo shortcutInfo) { in fromInfo() argument
46 return new ShortcutKey(shortcutInfo.getPackage(), shortcutInfo.getUserHandle(), in fromInfo()
47 shortcutInfo.getId()); in fromInfo()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DAddItemActivity.java242 PinShortcutRequestActivityInfo shortcutInfo = in setupShortcut() local
244 mWidgetCell.getWidgetView().setTag(new PendingAddShortcutInfo(shortcutInfo)); in setupShortcut()
246 () -> new WidgetItem(shortcutInfo, mApp.getIconCache(), getPackageManager())); in setupShortcut()
302 ShortcutInfo shortcutInfo = mRequest.getShortcutInfo(); in onPlaceAutomaticallyClick() local
303 ItemInstallQueue.INSTANCE.get(this).queueItem(shortcutInfo); in onPlaceAutomaticallyClick()
306 CharSequence label = shortcutInfo.getLongLabel(); in onPlaceAutomaticallyClick()
308 label = shortcutInfo.getShortLabel(); in onPlaceAutomaticallyClick()
/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/Settings/src/com/android/settings/accessibility/
DLaunchAccessibilityActivityPreferenceFragment.java118 AccessibilityShortcutInfo shortcutInfo = infos.get(i); in getAccessibilityShortcutInfo() local
119 ActivityInfo activityInfo = shortcutInfo.getActivityInfo(); in getAccessibilityShortcutInfo()
122 return shortcutInfo; in getAccessibilityShortcutInfo()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/
DAppEventProducer.java180 ShortcutInfo shortcutInfo = null; in toAppTarget() local
199 shortcutInfo = opt.get(); in toAppTarget()
225 if (shortcutInfo != null) { in toAppTarget()
226 return new AppTarget.Builder(new AppTargetId(id), shortcutInfo).build(); in toAppTarget()
/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/quickstep/src/com/android/quickstep/
DImageActionsApi.java123 public void shareImage(RectF rectF, ShortcutInfo shortcutInfo, AppTarget appTarget) { in shareImage() argument
124 ImageActionUtils.shareImage(mContext, mBitmapSupplier, rectF, shortcutInfo, appTarget, TAG); in shareImage()
/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/quickstep/src/com/android/quickstep/util/
DImageActionUtils.java90 ShortcutInfo shortcutInfo, AppTarget appTarget, String tag) { in shareImage() argument
107 .putExtra(Intent.EXTRA_SHORTCUT_ID, shortcutInfo.getId()) in shareImage()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationBackend.java634 public void requestPinShortcut(Context context, ShortcutInfo shortcutInfo) { in requestPinShortcut() argument
636 sm.requestPinShortcut(shortcutInfo, null); in requestPinShortcut()
/packages/apps/Launcher3/src/com/android/launcher3/
DWorkspace.java2973 for (WorkspaceItemInfo shortcutInfo : folderInfo.contents) {
2974 if (preferredItem.evaluate(shortcutInfo, view)) {
2991 for (WorkspaceItemInfo shortcutInfo : folderInfo.contents) {
2992 if (packageAndUserAndApp.evaluate(shortcutInfo, view)) {
/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()