Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/com/android/internal/accessibility/dialog/
DAccessibilityActivityTarget.java36 @NonNull AccessibilityShortcutInfo shortcutInfo) { in AccessibilityActivityTarget() argument
41 shortcutInfo.getComponentName().flattenToString()), in AccessibilityActivityTarget()
42 shortcutInfo.getComponentName().flattenToString(), in AccessibilityActivityTarget()
43 shortcutInfo.getActivityInfo().applicationInfo.uid, in AccessibilityActivityTarget()
44 shortcutInfo.getActivityInfo().loadLabel(context.getPackageManager()), in AccessibilityActivityTarget()
45 shortcutInfo.getActivityInfo().loadIcon(context.getPackageManager()), in AccessibilityActivityTarget()
/frameworks/base/services/core/java/com/android/server/notification/
DShortcutHelper.java175 ShortcutInfo shortcutInfo, ShortcutServiceInternal mShortcutServiceInternal, in isConversationShortcut() argument
177 if (shortcutInfo == null || !shortcutInfo.isLongLived() || !shortcutInfo.isEnabled()) { in isConversationShortcut()
223 void cacheShortcut(ShortcutInfo shortcutInfo, UserHandle user) { in cacheShortcut() argument
224 if (shortcutInfo.isLongLived() && !shortcutInfo.isCached()) { in cacheShortcut()
226 shortcutInfo.getPackage(), Collections.singletonList(shortcutInfo.getId()), in cacheShortcut()
227 shortcutInfo.getUserId(), ShortcutInfo.FLAG_CACHED_NOTIFICATIONS); in cacheShortcut()
/frameworks/base/core/java/com/android/internal/app/chooser/
DSelectableTargetInfo.java78 @Nullable ShortcutInfo shortcutInfo) { in SelectableTargetInfo() argument
85 mShortcutInfo = shortcutInfo; in SelectableTargetInfo()
86 mIsPinned = shortcutInfo != null && shortcutInfo.isPinned(); in SelectableTargetInfo()
154 ShortcutInfo shortcutInfo; in loadIcon() local
157 shortcutInfo = mShortcutInfo; in loadIcon()
160 boolean shouldLoadIcon = icon == null && shortcutInfo != null; in loadIcon()
162 icon = getChooserTargetIconDrawable(mChooserTarget, shortcutInfo); in loadIcon()
172 @Nullable ShortcutInfo shortcutInfo) { in getChooserTargetIconDrawable() argument
179 } else if (shortcutInfo != null) { in getChooserTargetIconDrawable()
182 directShareIcon = launcherApps.getShortcutIconDrawable(shortcutInfo, 0); in getChooserTargetIconDrawable()
/frameworks/base/core/java/android/content/pm/
DAppSearchShortcutInfo.java334 public static AppSearchShortcutInfo instance(@NonNull final ShortcutInfo shortcutInfo) { in instance() argument
335 Objects.requireNonNull(shortcutInfo); in instance()
336 return new Builder(shortcutInfo.getPackage(), shortcutInfo.getId()) in instance()
337 .setActivity(shortcutInfo.getActivity()) in instance()
338 .setShortLabel(shortcutInfo.getShortLabel()) in instance()
339 .setLongLabel(shortcutInfo.getLongLabel()) in instance()
340 .setDisabledMessage(shortcutInfo.getDisabledMessage()) in instance()
341 .setCategories(shortcutInfo.getCategories()) in instance()
342 .setIntents(shortcutInfo.getIntents()) in instance()
343 .setExtras(shortcutInfo.getExtras()) in instance()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/
DPeopleSpaceWidgetPinnedReceiver.java48 public static PendingIntent getPendingIntent(Context context, ShortcutInfo shortcutInfo) { in getPendingIntent() argument
51 intent.putExtra(Intent.EXTRA_SHORTCUT_ID, shortcutInfo.getId()); in getPendingIntent()
52 intent.putExtra(Intent.EXTRA_USER_ID, shortcutInfo.getUserId()); in getPendingIntent()
53 intent.putExtra(Intent.EXTRA_PACKAGE_NAME, shortcutInfo.getPackage()); in getPendingIntent()
/frameworks/base/core/java/android/app/people/
DConversationChannel.java58 public ConversationChannel(ShortcutInfo shortcutInfo, int uid, in ConversationChannel() argument
62 mShortcutInfo = shortcutInfo; in ConversationChannel()
70 public ConversationChannel(ShortcutInfo shortcutInfo, int uid, in ConversationChannel() argument
75 mShortcutInfo = shortcutInfo; in ConversationChannel()
/frameworks/base/services/people/java/com/android/server/people/prediction/
DShareTargetPredictor.java177 ShortcutInfo shortcutInfo = shareShortcut.getShortcutInfo(); in getDirectShareTargets() local
179 new AppTargetId(shortcutInfo.getId()), in getDirectShareTargets()
180 shortcutInfo) in getDirectShareTargets()
182 .setRank(shortcutInfo.getRank()) in getDirectShareTargets()
184 String packageName = shortcutInfo.getPackage(); in getDirectShareTargets()
185 int userId = shortcutInfo.getUserId(); in getDirectShareTargets()
191 String shortcutId = shortcutInfo.getId(); in getDirectShareTargets()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/
DBubbleViewInfoTest.kt179 assertThat(info.shortcutInfo).isNotNull() in <lambda>()
207 assertThat(info.shortcutInfo).isNotNull() in <lambda>()
223 whenever(mockIconFactory.getBubbleDrawable(eq(context), eq(bubble.shortcutInfo), any())) in <lambda>()
239 assertThat(info?.shortcutInfo).isNotNull() in <lambda>()
248 val shortcutInfo = ShortcutInfo.Builder(mContext, "mockShortcutId").build() in <lambda>() constant
251 shortcutInfo, in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/notetask/shortcut/
DCreateNoteTaskShortcutActivity.kt49 val shortcutInfo = roleManager.createNoteShortcutInfoAsUser(context = this, user) in onCreate() constant
50 val shortcutIntent = shortcutManager.createShortcutResultIntent(shortcutInfo) in onCreate()
/frameworks/base/core/java/android/app/search/
DSearchTarget.java172 @Nullable ShortcutInfo shortcutInfo, in SearchTarget() argument
185 mShortcutInfo = shortcutInfo; in SearchTarget()
412 public Builder setShortcutInfo(@NonNull ShortcutInfo shortcutInfo) { in setShortcutInfo() argument
413 mShortcutInfo = Objects.requireNonNull(shortcutInfo); in setShortcutInfo()
414 if (mPackageName != null && !mPackageName.equals(shortcutInfo.getPackage())) { in setShortcutInfo()
418 mPackageName = shortcutInfo.getPackage(); in setShortcutInfo()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/shortcut/
DCreateBubbleShortcutActivity.kt43 val shortcutInfo = BubbleShortcutHelper.createShortcut(this, icon) in createShortcut() constant
45 val shortcutIntent = shortcutManager?.createShortcutResultIntent(shortcutInfo) in createShortcut()
/frameworks/base/services/people/java/com/android/server/people/data/
DDataManager.java272 ShortcutInfo shortcutInfo = getShortcut(packageName, userId, shortcutId); in getConversationChannel() local
274 shortcutInfo, conversationInfo, packageName, userId, shortcutId); in getConversationChannel()
278 private ConversationChannel getConversationChannel(ShortcutInfo shortcutInfo, in getConversationChannel() argument
283 if (shortcutInfo == null) { in getConversationChannel()
299 return new ConversationChannel(shortcutInfo, uid, parentChannel, in getConversationChannel()
891 void addOrUpdateConversationInfo(@NonNull ShortcutInfo shortcutInfo) { in addOrUpdateConversationInfo() argument
892 UserData userData = getUnlockedUserData(shortcutInfo.getUserId()); in addOrUpdateConversationInfo()
896 PackageData packageData = userData.getOrCreatePackageData(shortcutInfo.getPackage()); in addOrUpdateConversationInfo()
899 conversationStore.getConversation(shortcutInfo.getId()); in addOrUpdateConversationInfo()
907 builder.setShortcutId(shortcutInfo.getId()); in addOrUpdateConversationInfo()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleDataRepository.kt250 ?.firstOrNull { shortcutInfo -> entity.shortcutId == shortcutInfo.id } in <lambda>() method
251 ?.let { shortcutInfo -> in <lambda>() method
254 shortcutInfo, in <lambda>()
DBubble.java203 public Bubble(@NonNull final String key, @NonNull final ShortcutInfo shortcutInfo, in Bubble() argument
208 Objects.requireNonNull(shortcutInfo); in Bubble()
209 mMetadataShortcutId = shortcutInfo.getId(); in Bubble()
210 mShortcutInfo = shortcutInfo; in Bubble()
216 mUser = shortcutInfo.getUserHandle(); in Bubble()
217 mPackageName = shortcutInfo.getPackage(); in Bubble()
218 mIcon = shortcutInfo.getIcon(); in Bubble()
571 mShortcutInfo = info.shortcutInfo; in setViewInfo()
DBubbleViewInfoTask.java161 ShortcutInfo shortcutInfo; field in BubbleViewInfoTask.BubbleViewInfo
256 info.shortcutInfo = b.getShortcutInfo(); in populateCommonInfo()
286 bubbleDrawable = iconFactory.getBubbleDrawable(c, info.shortcutInfo, in populateCommonInfo()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DBubbleIconFactory.java53 @Nullable final ShortcutInfo shortcutInfo, @Nullable final Icon ic) { in getBubbleDrawable() argument
54 if (shortcutInfo != null) { in getBubbleDrawable()
57 return launcherApps.getShortcutIconDrawable(shortcutInfo, density); in getBubbleDrawable()
/frameworks/base/core/java/android/app/prediction/
DAppTarget.java67 public AppTarget(@NonNull AppTargetId id, @NonNull ShortcutInfo shortcutInfo, in AppTarget() argument
70 mShortcutInfo = Objects.requireNonNull(shortcutInfo); in AppTarget()
79 ShortcutInfo shortcutInfo, String className, int rank) { in AppTarget() argument
81 mShortcutInfo = shortcutInfo; in AppTarget()
/frameworks/base/core/tests/coretests/src/android/app/people/
DPeopleManagerTest.java103 ShortcutInfo shortcutInfo = new ShortcutInfo.Builder(mContext, in getConversation() local
109 return new ConversationChannel(shortcutInfo, 0, in getConversation()
/frameworks/base/core/java/android/service/notification/
DConversationChannelWrapper.java109 public void setShortcutInfo(ShortcutInfo shortcutInfo) { in setShortcutInfo() argument
110 mShortcutInfo = shortcutInfo; in setShortcutInfo()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/
DBubbleEducationControllerTest.kt116 val shortcutInfo = ShortcutInfo.Builder(mContext, "fakeId").build() in createFakeBubble() constant
119 shortcutInfo, in createFakeBubble()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/
DSplitScreenController.java611 void startShortcutAndTaskWithLegacyTransition(@NonNull ShortcutInfo shortcutInfo, in startShortcutAndTaskWithLegacyTransition() argument
618 final String packageName1 = shortcutInfo.getPackage(); in startShortcutAndTaskWithLegacyTransition()
620 final int userId1 = shortcutInfo.getUserId(); in startShortcutAndTaskWithLegacyTransition()
623 if (mMultiInstanceHelpher.supportsMultiInstanceSplit(shortcutInfo.getActivity())) { in startShortcutAndTaskWithLegacyTransition()
637 mStageCoordinator.startShortcutAndTaskWithLegacyTransition(shortcutInfo, in startShortcutAndTaskWithLegacyTransition()
642 void startShortcutAndTask(@NonNull ShortcutInfo shortcutInfo, @Nullable Bundle options1, in startShortcutAndTask() argument
648 final String packageName1 = shortcutInfo.getPackage(); in startShortcutAndTask()
652 final int userId1 = shortcutInfo.getUserId(); in startShortcutAndTask()
655 if (mMultiInstanceHelpher.supportsMultiInstanceSplit(shortcutInfo.getActivity())) { in startShortcutAndTask()
671 mStageCoordinator.startShortcutAndTask(shortcutInfo, activityOptions.toBundle(), taskId, in startShortcutAndTask()
[all …]
DISplitScreen.aidl107 oneway void startShortcutAndTask(in ShortcutInfo shortcutInfo, in Bundle options1, int taskId, in startShortcutAndTask() argument
128 oneway void startShortcutAndTaskWithLegacyTransition(in ShortcutInfo shortcutInfo, in startShortcutAndTaskWithLegacyTransition() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DConversationNotifications.kt63 entry.ranking.conversationShortcutInfo?.let { shortcutInfo -> in <lambda>() method
65 messagingStyle.shortcutIcon = launcherApps.getShortcutIcon(shortcutInfo) in <lambda>()
66 shortcutInfo.label?.let { label -> messagingStyle.conversationTitle = label } in <lambda>()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
DConversationIconFactory.java89 public Drawable getBaseIconDrawable(ShortcutInfo shortcutInfo) { in getBaseIconDrawable() argument
90 return mLauncherApps.getShortcutIconDrawable(shortcutInfo, mFillResIconDpi); in getBaseIconDrawable()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/
DRankingBuilder.java210 public RankingBuilder setShortcutInfo(ShortcutInfo shortcutInfo) { in setShortcutInfo() argument
211 mShortcutInfo = shortcutInfo; in setShortcutInfo()

12