/packages/apps/Launcher3/src/com/android/launcher3/model/data/ |
D | WorkspaceItemInfo.java | 123 public WorkspaceItemInfo(ShortcutInfo shortcutInfo, Context context) { in WorkspaceItemInfo() argument 124 user = shortcutInfo.getUserHandle(); in WorkspaceItemInfo() 131 updateFromDeepShortcutInfo(shortcutInfo, context); in WorkspaceItemInfo() 176 public void updateFromDeepShortcutInfo(@NonNull final ShortcutInfo shortcutInfo, in updateFromDeepShortcutInfo() argument 179 intent = ShortcutKey.makeIntent(shortcutInfo); in updateFromDeepShortcutInfo() 180 title = shortcutInfo.getShortLabel(); in updateFromDeepShortcutInfo() 182 CharSequence label = shortcutInfo.getLongLabel(); in updateFromDeepShortcutInfo() 184 label = shortcutInfo.getShortLabel(); in updateFromDeepShortcutInfo() 187 if (shortcutInfo.isEnabled()) { in updateFromDeepShortcutInfo() 191 + " package=" + shortcutInfo.getPackage() in updateFromDeepShortcutInfo() [all …]
|
/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/model/ |
D | ItemInstallQueue.java | 243 @Nullable ShortcutInfo shortcutInfo; field in ItemInstallQueue.PendingInstallShortcutInfo 263 shortcutInfo = info; in PendingInstallShortcutInfo() 317 WorkspaceItemInfo itemInfo = new WorkspaceItemInfo(shortcutInfo, context); in getItemInfo() 319 .getShortcutIcon(itemInfo, shortcutInfo); in getItemInfo() 320 return Pair.create(itemInfo, shortcutInfo); in getItemInfo() 348 boolean shortcutInfoMatches = shortcutInfo == null in equals() 349 ? other.shortcutInfo == null in equals() 350 : other.shortcutInfo != null in equals() 351 && shortcutInfo.getId().equals(other.shortcutInfo.getId()) in equals() 352 && shortcutInfo.getPackage().equals(other.shortcutInfo.getPackage()); in equals()
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/shortcuts/ |
D | ShortcutToChooserTargetConverter.java | 74 ShortcutInfo shortcutInfo = matchingShortcuts.get(i).getShortcutInfo(); in convertToChooserTarget() local 83 int rankIndex = scoreList.indexOf(shortcutInfo.getRank()); in convertToChooserTarget() 88 extras.putString(Intent.EXTRA_SHORTCUT_ID, shortcutInfo.getId()); in convertToChooserTarget() 91 shortcutInfo.getLabel(), in convertToChooserTarget() 101 directShareShortcutInfoCache.put(chooserTarget, shortcutInfo); in convertToChooserTarget()
|
D | ShortcutLoader.kt | 234 val shortcutInfo = appTarget.shortcutInfo in <lambda>() constant 237 if (shortcutInfo != null && className != null && pm.isPackageEnabled(packageName)) { in <lambda>() 239 ShareShortcutInfo(shortcutInfo, ComponentName(packageName, className)) in <lambda>()
|
/packages/apps/Launcher3/src/com/android/launcher3/icons/ |
D | ShortcutCachingLogic.java | 86 public long getLastUpdatedTime(@Nullable ShortcutInfo shortcutInfo, in getLastUpdatedTime() argument 88 if (shortcutInfo == null) { in getLastUpdatedTime() 91 return Math.max(shortcutInfo.getLastChangedTimestamp(), info.lastUpdateTime); in getLastUpdatedTime() 103 public static Drawable getIcon(Context context, ShortcutInfo shortcutInfo, int density) { in getIcon() argument 109 .getShortcutIconDrawable(shortcutInfo, density); in getIcon()
|
D | IconCache.java | 288 public BitmapInfo getShortcutInfoBadge(ShortcutInfo shortcutInfo) { in getShortcutInfoBadge() argument 289 return getShortcutInfoBadgeItem(shortcutInfo).bitmap; in getShortcutInfoBadge() 293 protected ItemInfoWithIcon getShortcutInfoBadgeItem(ShortcutInfo shortcutInfo) { in getShortcutInfoBadgeItem() argument 295 String pkg = shortcutInfo.getPackage(); in getShortcutInfoBadgeItem() 296 String override = shortcutInfo.getExtras() == null ? null in getShortcutInfoBadgeItem() 297 : shortcutInfo.getExtras().getString(EXTRA_SHORTCUT_BADGE_OVERRIDE_PACKAGE); in getShortcutInfoBadgeItem() 300 .isTrustedPackage(pkg, shortcutInfo.getUserHandle())) { in getShortcutInfoBadgeItem() 304 ComponentName cn = shortcutInfo.getActivity(); in getShortcutInfoBadgeItem() 308 appInfo.user = shortcutInfo.getUserHandle(); in getShortcutInfoBadgeItem() 317 PackageItemInfo pkgInfo = new PackageItemInfo(pkg, shortcutInfo.getUserHandle()); in getShortcutInfoBadgeItem()
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/ |
D | TestHelpers.kt | 47 internal fun createAppTarget(shortcutInfo: ShortcutInfo) = in createAppTarget() 49 AppTargetId(shortcutInfo.id), in createAppTarget() 50 shortcutInfo, in createAppTarget() 51 shortcutInfo.activity?.className ?: error("missing activity info") in createAppTarget()
|
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ |
D | ShortcutKey.java | 45 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/modules/IntentResolver/java/src/com/android/intentresolver/chooser/ |
D | SelectableTargetInfo.java | 112 @Nullable ShortcutInfo shortcutInfo, in newSelectableTargetInfo() argument 124 shortcutInfo, in newSelectableTargetInfo() 149 @Nullable ShortcutInfo shortcutInfo, in newSelectableTargetInfo() argument 162 shortcutInfo, in newSelectableTargetInfo() 177 @Nullable ShortcutInfo shortcutInfo, in SelectableTargetInfo() argument 184 mShortcutInfo = shortcutInfo; in SelectableTargetInfo() 192 mIsPinned = (shortcutInfo != null) && shortcutInfo.isPinned(); in SelectableTargetInfo()
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/chooser/ |
D | TargetInfoTest.kt | 100 val shortcutInfo = createShortcutInfo("id", ResolverDataProvider.createComponentName(3), 3) in testNewSelectableTargetInfo() constant 116 shortcutInfo, in testNewSelectableTargetInfo() 124 assertThat(targetInfo.directShareShortcutId).isEqualTo(shortcutInfo.id) in testNewSelectableTargetInfo() 125 assertThat(targetInfo.directShareShortcutInfo).isSameInstanceAs(shortcutInfo) in testNewSelectableTargetInfo() 140 val shortcutInfo = createShortcutInfo("id", ResolverDataProvider.createComponentName(2), 3) in test_SelectableTargetInfo_componentName_no_source_info() constant 166 shortcutInfo, in test_SelectableTargetInfo_componentName_no_source_info() 193 val shortcutInfo = createShortcutInfo("id", ResolverDataProvider.createComponentName(3), 3) in testSelectableTargetInfo_noSourceIntentMatchingProposedRefinement() constant 209 shortcutInfo, in testSelectableTargetInfo_noSourceIntentMatchingProposedRefinement()
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/ |
D | ShortcutSelectionLogic.java | 109 ShortcutInfo shortcutInfo = isShortcutResult ? directShareToShortcutInfos.get(target) in addServiceResults() local 111 if ((shortcutInfo != null) && shortcutInfo.isPinned()) { in addServiceResults() 133 shortcutInfo, in addServiceResults()
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | AddItemActivity.java | 280 PinShortcutRequestActivityInfo shortcutInfo = in setupShortcut() local 282 mWidgetCell.getWidgetView().setTag(new PendingAddShortcutInfo(shortcutInfo)); in setupShortcut() 284 () -> new WidgetItem(shortcutInfo, mApp.getIconCache(), getPackageManager())); in setupShortcut() 342 ShortcutInfo shortcutInfo = mRequest.getShortcutInfo(); in onPlaceAutomaticallyClick() local 343 ItemInstallQueue.INSTANCE.get(this).queueItem(shortcutInfo); in onPlaceAutomaticallyClick() 346 CharSequence label = shortcutInfo.getLongLabel(); in onPlaceAutomaticallyClick() 348 label = shortcutInfo.getShortLabel(); in onPlaceAutomaticallyClick()
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/icons/ |
D | LoadDirectShareIconTask.java | 96 @Nullable ShortcutInfo shortcutInfo) { in getChooserTargetIconDrawable() argument 102 } else if (shortcutInfo != null) { in getChooserTargetIconDrawable() 105 directShareIcon = launcherApps.getShortcutIconDrawable(shortcutInfo, 0); in getChooserTargetIconDrawable()
|
/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/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/Settings/src/com/android/settings/accessibility/ |
D | LaunchAccessibilityActivityPreferenceFragment.java | 156 AccessibilityShortcutInfo shortcutInfo = infos.get(i); in getAccessibilityShortcutInfo() local 157 ActivityInfo activityInfo = shortcutInfo.getActivityInfo(); in getAccessibilityShortcutInfo() 160 return shortcutInfo; in getAccessibilityShortcutInfo()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | ImageActionsApi.java | 128 public void shareImage(RectF rectF, ShortcutInfo shortcutInfo, AppTarget appTarget) { in shareImage() argument 129 ImageActionUtils.shareImage(mContext, mBitmapSupplier, rectF, shortcutInfo, appTarget, TAG); in shareImage()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/ |
D | AppEventProducer.java | 207 ShortcutInfo shortcutInfo = null; in toAppTarget() local 226 shortcutInfo = opt.get(); in toAppTarget() 252 if (shortcutInfo != null) { in toAppTarget() 253 return new AppTarget.Builder(new AppTargetId(id), shortcutInfo).build(); in toAppTarget()
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/shortcuts/ |
D | ShortcutToChooserTargetConverterTest.kt | 51 val appTargets = shortcuts.map { createAppTarget(it.shortcutInfo) } in <lambda>() 159 val si = shortcuts[expectedOrder[i]].shortcutInfo in <lambda>()
|
/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/Settings/tests/robotests/src/com/android/settings/notification/app/ |
D | AppConversationListPreferenceControllerTest.java | 181 ShortcutInfo shortcutInfo = new ShortcutInfo.Builder(mContext, shortcutId).setLongLabel( in conversationChannel() local 188 ccw.setShortcutInfo(shortcutInfo); in conversationChannel()
|