Home
last modified time | relevance | path

Searched refs:shortcutInfo (Results 1 – 25 of 33) 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().loadLabel(context.getPackageManager()), in AccessibilityActivityTarget()
44 shortcutInfo.getActivityInfo().loadIcon(context.getPackageManager()), in AccessibilityActivityTarget()
/frameworks/base/core/java/android/content/pm/
DAppSearchShortcutInfo.java322 public static AppSearchShortcutInfo instance(@NonNull final ShortcutInfo shortcutInfo) { in instance() argument
323 Objects.requireNonNull(shortcutInfo); in instance()
324 return new Builder(shortcutInfo.getPackage(), shortcutInfo.getId()) in instance()
325 .setActivity(shortcutInfo.getActivity()) in instance()
326 .setShortLabel(shortcutInfo.getShortLabel()) in instance()
327 .setShortLabelResId(shortcutInfo.getShortLabelResourceId()) in instance()
328 .setShortLabelResName(shortcutInfo.getTitleResName()) in instance()
329 .setLongLabel(shortcutInfo.getLongLabel()) in instance()
330 .setLongLabelResId(shortcutInfo.getLongLabelResourceId()) in instance()
331 .setLongLabelResName(shortcutInfo.getTextResName()) in instance()
[all …]
DShortcutManager.java694 public ShareShortcutInfo(@NonNull ShortcutInfo shortcutInfo, in ShareShortcutInfo() argument
696 if (shortcutInfo == null) { in ShareShortcutInfo()
703 mShortcutInfo = shortcutInfo; in ShareShortcutInfo()
/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/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()
DPeopleSpaceWidgetManager.java970 public boolean requestPinAppWidget(ShortcutInfo shortcutInfo, Bundle options) { in requestPinAppWidget() argument
971 if (DEBUG) Log.d(TAG, "Requesting pin widget, shortcutId: " + shortcutInfo.getId()); in requestPinAppWidget()
973 RemoteViews widgetPreview = getPreview(shortcutInfo.getId(), in requestPinAppWidget()
974 shortcutInfo.getUserHandle(), shortcutInfo.getPackage(), options); in requestPinAppWidget()
976 Log.w(TAG, "Skipping pinning widget: no tile for shortcutId: " + shortcutInfo.getId()); in requestPinAppWidget()
983 PeopleSpaceWidgetPinnedReceiver.getPendingIntent(mContext, shortcutInfo); in requestPinAppWidget()
/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.java171 ShortcutInfo shortcutInfo = shareShortcut.getShortcutInfo(); in getDirectShareTargets() local
173 new AppTargetId(shortcutInfo.getId()), in getDirectShareTargets()
174 shortcutInfo) in getDirectShareTargets()
176 .setRank(shortcutInfo.getRank()) in getDirectShareTargets()
178 String packageName = shortcutInfo.getPackage(); in getDirectShareTargets()
179 int userId = shortcutInfo.getUserId(); in getDirectShareTargets()
185 String shortcutId = shortcutInfo.getId(); in getDirectShareTargets()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleDataRepository.kt173 ?.firstOrNull { shortcutInfo -> entity.shortcutId == shortcutInfo.id } in <lambda>() method
174 ?.let { shortcutInfo -> in <lambda>() method
177 shortcutInfo, in <lambda>()
DBubbleIconFactory.java59 @Nullable final ShortcutInfo shortcutInfo, @Nullable final Icon ic) { in getBubbleDrawable() argument
60 if (shortcutInfo != null) { in getBubbleDrawable()
64 return launcherApps.getShortcutIconDrawable(shortcutInfo, density); in getBubbleDrawable()
DBubble.java170 public Bubble(@NonNull final String key, @NonNull final ShortcutInfo shortcutInfo, in Bubble() argument
174 Objects.requireNonNull(shortcutInfo); in Bubble()
175 mMetadataShortcutId = shortcutInfo.getId(); in Bubble()
176 mShortcutInfo = shortcutInfo; in Bubble()
181 mUser = shortcutInfo.getUserHandle(); in Bubble()
182 mPackageName = shortcutInfo.getPackage(); in Bubble()
183 mIcon = shortcutInfo.getIcon(); in Bubble()
407 mShortcutInfo = info.shortcutInfo; in setViewInfo()
DBubbleViewInfoTask.java126 ShortcutInfo shortcutInfo; field in BubbleViewInfoTask.BubbleViewInfo
154 info.shortcutInfo = b.getShortcutInfo(); in populate()
182 Drawable bubbleDrawable = iconFactory.getBubbleDrawable(c, info.shortcutInfo, in populate()
/frameworks/base/core/java/android/app/search/
DSearchTarget.java172 @Nullable ShortcutInfo shortcutInfo, in SearchTarget() argument
185 mShortcutInfo = shortcutInfo; in SearchTarget()
422 public Builder setShortcutInfo(@NonNull ShortcutInfo shortcutInfo) { in setShortcutInfo() argument
423 mShortcutInfo = Objects.requireNonNull(shortcutInfo); in setShortcutInfo()
424 if (mPackageName != null && !mPackageName.equals(shortcutInfo.getPackage())) { in setShortcutInfo()
428 mPackageName = shortcutInfo.getPackage(); in setShortcutInfo()
/frameworks/base/services/people/java/com/android/server/people/data/
DDataManager.java272 ShortcutInfo shortcutInfo = getShortcut(packageName, userId, shortcutId); in getConversationChannel() local
273 return getConversationChannel(shortcutInfo, conversationInfo); in getConversationChannel()
277 private ConversationChannel getConversationChannel(ShortcutInfo shortcutInfo, in getConversationChannel() argument
282 if (shortcutInfo == null) { in getConversationChannel()
286 String packageName = shortcutInfo.getPackage(); in getConversationChannel()
287 String shortcutId = shortcutInfo.getId(); in getConversationChannel()
288 int userId = shortcutInfo.getUserId(); in getConversationChannel()
299 return new ConversationChannel(shortcutInfo, uid, parentChannel, in getConversationChannel()
868 void addOrUpdateConversationInfo(@NonNull ShortcutInfo shortcutInfo) { in addOrUpdateConversationInfo() argument
869 UserData userData = getUnlockedUserData(shortcutInfo.getUserId()); in addOrUpdateConversationInfo()
[all …]
/frameworks/base/core/java/com/android/internal/app/chooser/
DSelectableTargetInfo.java73 @Nullable ShortcutInfo shortcutInfo) { in SelectableTargetInfo() argument
94 mDisplayIcon = getChooserTargetIconDrawable(chooserTarget, shortcutInfo); in SelectableTargetInfo()
142 @Nullable ShortcutInfo shortcutInfo) { in getChooserTargetIconDrawable() argument
149 } else if (shortcutInfo != null) { in getChooserTargetIconDrawable()
152 directShareIcon = launcherApps.getShortcutIconDrawable(shortcutInfo, 0); in getChooserTargetIconDrawable()
/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/java/android/service/notification/
DConversationChannelWrapper.java109 public void setShortcutInfo(ShortcutInfo shortcutInfo) { in setShortcutInfo() argument
110 mShortcutInfo = shortcutInfo; in setShortcutInfo()
/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()
DPeopleSpaceTileTest.java265 ShortcutInfo shortcutInfo = new ShortcutInfo.Builder(mContext, "123").setLongLabel( in testCreateFromConversationChannel() local
267 ConversationChannel convo = new ConversationChannel(shortcutInfo, 0, null, null, in testCreateFromConversationChannel()
282 convo = new ConversationChannel(shortcutInfo, 0, notificationChannel, null, in testCreateFromConversationChannel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DConversationNotifications.kt56 entry.ranking.conversationShortcutInfo?.let { shortcutInfo -> in <lambda>() method
57 messagingStyle.shortcutIcon = launcherApps.getShortcutIcon(shortcutInfo) in <lambda>()
58 shortcutInfo.label?.let { label -> in <lambda>()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
DConversationIconFactory.java90 public Drawable getBaseIconDrawable(ShortcutInfo shortcutInfo) { in getBaseIconDrawable() argument
91 return mLauncherApps.getShortcutIconDrawable(shortcutInfo, mFillResIconDpi); in getBaseIconDrawable()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DRankingBuilder.java202 public RankingBuilder setShortcutInfo(ShortcutInfo shortcutInfo) { in setShortcutInfo() argument
203 mShortcutInfo = shortcutInfo; in setShortcutInfo()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutRequestPinProcessor.java378 private void validateExistingShortcut(ShortcutInfo shortcutInfo) { in validateExistingShortcut() argument
382 Preconditions.checkArgument(shortcutInfo.isEnabled(), in validateExistingShortcut()
383 "Shortcut ID=" + shortcutInfo + " already exists but disabled."); in validateExistingShortcut() local
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNotificationEntryBuilder.java321 public NotificationEntryBuilder setShortcutInfo(ShortcutInfo shortcutInfo) { in setShortcutInfo() argument
322 mRankingBuilder.setShortcutInfo(shortcutInfo); in setShortcutInfo()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/
DPeopleServiceTest.java263 ShortcutInfo shortcutInfo = new ShortcutInfo.Builder(mContext, in getConversation() local
269 return new ConversationChannel(shortcutInfo, 0, in getConversation()

12