/frameworks/base/services/core/java/com/android/server/notification/ |
D | ShortcutHelper.java | 111 for (String shortcutId : shortcutIds) { 114 if (shortcuts.get(i).getId().equals(shortcutId)) { 120 bubbleKeysToRemove.add(shortcutBubbles.get(shortcutId)); 121 shortcutBubbles.remove(shortcutId); 183 ShortcutInfo getValidShortcutInfo(String shortcutId, String packageName, UserHandle user) { in getValidShortcutInfo() argument 189 if (shortcutId == null || packageName == null || user == null) { in getValidShortcutInfo() 194 query.setShortcutIds(Arrays.asList(shortcutId)); in getValidShortcutInfo() 231 final String shortcutId = r.getNotification().getBubbleMetadata() != null in maybeListenForShortcutChangesForBubbles() local 235 && !TextUtils.isEmpty(shortcutId) in maybeListenForShortcutChangesForBubbles() 237 && r.getShortcutInfo().getId().equals(shortcutId)) { in maybeListenForShortcutChangesForBubbles() [all …]
|
D | BubbleExtractor.java | 147 String shortcutId = metadata.getShortcutId(); in canPresentAsBubble() local 152 if (notificationShortcutId != null && shortcutId != null) { in canPresentAsBubble() 154 shortcutValid = shortcutId.equals(notificationShortcutId); in canPresentAsBubble() 155 } else if (shortcutId != null) { in canPresentAsBubble() 157 mShortcutHelper.getValidShortcutInfo(shortcutId, pkg, r.getUser()) != null; in canPresentAsBubble() 162 "couldn't find valid shortcut for bubble with shortcutId: " + shortcutId); in canPresentAsBubble() local
|
/frameworks/base/services/people/java/com/android/server/people/data/ |
D | PackageData.java | 133 public ConversationInfo getConversationInfo(@NonNull String shortcutId) { in getConversationInfo() argument 134 return getConversationStore().getConversation(shortcutId); in getConversationInfo() 143 public EventHistory getEventHistory(@NonNull String shortcutId) { in getEventHistory() argument 146 ConversationInfo conversationInfo = mConversationStore.getConversation(shortcutId); in getEventHistory() 152 CATEGORY_SHORTCUT_BASED, shortcutId); in getEventHistory() 217 void deleteDataForConversation(String shortcutId) { in deleteDataForConversation() argument 218 ConversationInfo conversationInfo = mConversationStore.deleteConversation(shortcutId); in deleteDataForConversation() 222 mEventStore.deleteEventHistory(CATEGORY_SHORTCUT_BASED, shortcutId); in deleteDataForConversation()
|
D | DataManager.java | 192 @NonNull String shortcutId) { in getShortcut() argument 194 Collections.singletonList(shortcutId)); in getShortcut() 230 String shortcutId = appTarget.getShortcutInfo().getId(); in reportShareTargetEvent() local 232 if (ChooserActivity.CHOOSER_TARGET.equals(shortcutId)) { in reportShareTargetEvent() 235 if (packageData.getConversationStore().getConversation(shortcutId) == null) { in reportShareTargetEvent() 239 EventStore.CATEGORY_SHORTCUT_BASED, shortcutId); in reportShareTargetEvent() 511 String shortcutId = notification.getShortcutId(); in getPackageIfConversationExists() local 512 if (shortcutId == null) { in getPackageIfConversationExists() 521 packageData.getConversationStore().getConversation(shortcutId); in getPackageIfConversationExists() 791 String shortcutId = sbn.getNotification().getShortcutId(); in onNotificationPosted() local [all …]
|
D | ConversationStore.java | 131 synchronized ConversationInfo deleteConversation(@NonNull String shortcutId) { in deleteConversation() argument 132 ConversationInfo conversationInfo = mConversationInfoMap.remove(shortcutId); in deleteConversation() 167 synchronized ConversationInfo getConversation(@Nullable String shortcutId) { in getConversation() argument 168 return shortcutId != null ? mConversationInfoMap.get(shortcutId) : null; in getConversation()
|
D | UsageStatsQueryHelper.java | 200 private void addEventByShortcutId(PackageData packageData, String shortcutId, Event event) { in addEventByShortcutId() argument 201 if (packageData.getConversationStore().getConversation(shortcutId) == null) { in addEventByShortcutId() 205 EventStore.CATEGORY_SHORTCUT_BASED, shortcutId); in addEventByShortcutId()
|
D | ConversationInfo.java | 434 Builder setShortcutId(@NonNull String shortcutId) { in setShortcutId() argument 435 mShortcutId = shortcutId; in setShortcutId()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/ |
D | BubbleExperimentConfig.java | 148 String shortcutId = entry.getSbn().getNotification().getShortcutId(); in adjustForExperiments() local 163 if (useShortcutInfo && shortcutId != null) { in adjustForExperiments() 166 entry.getSbn().getUser(), shortcutId); in adjustForExperiments() 168 metadata = createForShortcut(shortcutId); in adjustForExperiments() 251 static Notification.BubbleMetadata createForShortcut(String shortcutId) { in createForShortcut() argument 252 return new Notification.BubbleMetadata.Builder(shortcutId) in createForShortcut() 258 String shortcutId) { in getShortcutInfo() argument 265 if (shortcutId != null) { in getShortcutInfo() 266 query.setShortcutIds(Arrays.asList(shortcutId)); in getShortcutInfo()
|
D | BubbleDataRepository.kt | 165 ?.firstOrNull { shortcutInfo -> entity.shortcutId == shortcutInfo.id } in <lambda>()
|
/frameworks/base/core/java/android/content/pm/ |
D | ShortcutServiceInternal.java | 63 @NonNull String packageName, @NonNull String shortcutId, int userId, in createShortcutIntents() argument 72 @NonNull String packageName, @NonNull String shortcutId, int userId); in getShortcutIconResId() argument 76 @NonNull String packageName, @NonNull String shortcutId, int userId); in getShortcutIconFd() argument 111 @NonNull String packageName, @NonNull String shortcutId, int userId); in getShortcutIconUri() argument 114 @NonNull String packageName, @NonNull String shortcutId, int userId, in isSharingShortcut() argument
|
D | LauncherApps.java | 1198 public int getShortcutIconResId(@NonNull String packageName, @NonNull String shortcutId, in getShortcutIconResId() argument 1202 q.setShortcutIds(Arrays.asList(shortcutId)); in getShortcutIconResId() 1222 @NonNull String packageName, @NonNull String shortcutId, @NonNull UserHandle user) { in getShortcutIconFd() argument 1223 return getShortcutIconFd(packageName, shortcutId, user.getIdentifier()); in getShortcutIconFd() 1227 @NonNull String packageName, @NonNull String shortcutId, int userId) { in getShortcutIconFd() argument 1230 packageName, shortcutId, userId); in getShortcutIconFd() 1245 @NonNull String shortcutId, int userId) { in getUriShortcutIconFd() argument 1246 String uri = getShortcutIconUri(packageName, shortcutId, userId); in getUriShortcutIconFd() 1259 @NonNull String shortcutId, int userId) { in getShortcutIconUri() argument 1262 uri = mService.getShortcutIconUri(mContext.getPackageName(), packageName, shortcutId, in getShortcutIconUri() [all …]
|
D | IShortcutService.aidl | 59 void reportShortcutUsed(String packageName, String shortcutId, int userId); in reportShortcutUsed() argument
|
D | ShortcutManager.java | 509 public void reportShortcutUsed(String shortcutId) { in reportShortcutUsed() argument 511 mService.reportShortcutUsed(mContext.getPackageName(), shortcutId, in reportShortcutUsed() local
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutRequestPinProcessor.java | 455 final String shortcutId = original.getId(); in directPinShortcut() local 478 final ShortcutInfo current = ps.findShortcutById(shortcutId); in directPinShortcut() 497 Slog.d(TAG, "Temporarily adding " + shortcutId + " as dynamic"); in directPinShortcut() 510 Slog.d(TAG, "Pinning " + shortcutId); in directPinShortcut() 514 launcher.addPinnedShortcut(appPackageName, appUserId, shortcutId, in directPinShortcut() 519 Slog.d(TAG, "Removing " + shortcutId + " as dynamic"); in directPinShortcut() 521 ps.deleteDynamicWithId(shortcutId, /*ignoreInvisible=*/ false); in directPinShortcut() 526 changedShortcuts = Collections.singletonList(ps.findShortcutById(shortcutId)); in directPinShortcut()
|
D | ShortcutService.java | 2456 @NonNull String packageName, @NonNull String shortcutId, int userId, in isSharingShortcut() argument 2471 if (matchedTargets.get(i).getShortcutInfo().getId().equals(shortcutId)) { in isSharingShortcut() 2535 public void reportShortcutUsed(String packageName, String shortcutId, int userId) { in reportShortcutUsed() argument 2538 Objects.requireNonNull(shortcutId); in reportShortcutUsed() 2542 shortcutId, packageName, userId)); in reportShortcutUsed() 2550 if (ps.findShortcutById(shortcutId) == null) { in reportShortcutUsed() 2552 packageName, shortcutId)); in reportShortcutUsed() 2559 mUsageStatsManagerInternal.reportShortcutUsage(packageName, shortcutId, userId); in reportShortcutUsed() 2958 @NonNull String packageName, @NonNull String shortcutId, int userId) { in isPinnedByCaller() argument 2960 Preconditions.checkStringNotEmpty(shortcutId, "shortcutId"); in isPinnedByCaller() [all …]
|
D | ShortcutPackage.java | 458 public ShortcutInfo deleteDynamicWithId(@NonNull String shortcutId, boolean ignoreInvisible) { in deleteDynamicWithId() argument 460 shortcutId, /* disable =*/ false, /* overrideImmutable=*/ false, ignoreInvisible, in deleteDynamicWithId() 471 private ShortcutInfo disableDynamicWithId(@NonNull String shortcutId, boolean ignoreInvisible, in disableDynamicWithId() argument 473 return deleteOrDisableWithId(shortcutId, /* disable =*/ true, /* overrideImmutable=*/ false, in disableDynamicWithId() 483 public ShortcutInfo deleteLongLivedWithId(@NonNull String shortcutId, boolean ignoreInvisible) { in deleteLongLivedWithId() argument 484 final ShortcutInfo shortcut = mShortcuts.get(shortcutId); in deleteLongLivedWithId() 489 shortcutId, /* disable =*/ false, /* overrideImmutable=*/ false, ignoreInvisible, in deleteLongLivedWithId() 500 public ShortcutInfo disableWithId(@NonNull String shortcutId, String disabledMessage, in disableWithId() argument 503 final ShortcutInfo deleted = deleteOrDisableWithId(shortcutId, /* disable =*/ true, in disableWithId() 507 final ShortcutInfo disabled = mShortcuts.get(shortcutId); in disableWithId() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | BaseShortcutManagerTest.java | 1729 protected ShortcutInfo getPackageShortcut(String packageName, String shortcutId, int userId) { in getPackageShortcut() argument 1730 return mService.getPackageShortcutForTest(packageName, shortcutId, userId); in getPackageShortcut() 1733 protected void assertShortcutExists(String packageName, String shortcutId, int userId) { in assertShortcutExists() argument 1734 assertTrue(getPackageShortcut(packageName, shortcutId, userId) != null); in assertShortcutExists() 1737 protected void assertShortcutNotExists(String packageName, String shortcutId, int userId) { in assertShortcutNotExists() argument 1738 assertTrue(getPackageShortcut(packageName, shortcutId, userId) == null); in assertShortcutNotExists() 1742 @NonNull String packageName, @NonNull String shortcutId, int userId) { in launchShortcutAndGetIntentsInner() argument 1757 @NonNull String packageName, @NonNull String shortcutId, int userId) { in launchShortcutAndGetIntents() argument 1760 mLauncherApps.startShortcut(packageName, shortcutId, null, null, in launchShortcutAndGetIntents() 1762 }, packageName, shortcutId, userId in launchShortcutAndGetIntents() field in BaseShortcutManagerTest [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/storage/ |
D | BubbleVolatileRepository.kt | 82 launcherApps.cacheShortcuts(key.pkg, bubbles.map { it.shortcutId }, in <lambda>() 89 launcherApps.uncacheShortcuts(key.pkg, bubbles.map { it.shortcutId }, in <lambda>()
|
D | BubbleEntity.kt | 24 val shortcutId: String, constant in com.android.systemui.bubbles.storage.BubbleEntity
|
D | BubbleXmlHelper.kt | 68 serializer.attribute(null, ATTR_SHORTCUT_ID, bubble.shortcutId) in writeXmlEntry()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/ |
D | ConversationStoreTest.java | 317 private static ConversationInfo buildConversationInfo(String shortcutId) { in buildConversationInfo() argument 318 return buildConversationInfo(shortcutId, null, null, null, null); in buildConversationInfo() 322 String shortcutId, LocusId locusId, Uri contactUri, String phoneNumber, in buildConversationInfo() argument 325 .setShortcutId(shortcutId) in buildConversationInfo()
|
/frameworks/base/services/people/java/com/android/server/people/prediction/ |
D | ShareTargetPredictor.java | 152 String shortcutId = shortcutInfo.getId(); in getDirectShareTargets() local 153 conversationInfo = packageData.getConversationInfo(shortcutId); in getDirectShareTargets() 155 eventHistory = packageData.getEventHistory(shortcutId); in getDirectShareTargets()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/people/prediction/ |
D | ShareTargetPredictorTest.java | 386 String packageName, String className, String shortcutId, int rank) { in buildShareShortcut() argument 387 ShortcutInfo shortcutInfo = buildShortcut(packageName, shortcutId, rank); in buildShareShortcut() 392 private static ShortcutInfo buildShortcut(String packageName, String shortcutId, int rank) { in buildShortcut() argument 397 ShortcutInfo.Builder builder = new ShortcutInfo.Builder(mockContext, shortcutId) in buildShortcut() 398 .setShortLabel(shortcutId) in buildShortcut()
|
/frameworks/base/services/core/java/android/app/usage/ |
D | UsageStatsManagerInternal.java | 106 public abstract void reportShortcutUsage(String packageName, String shortcutId, in reportShortcutUsage() argument
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
D | Cat.java | 229 public static Cat fromShortcutId(Context context, String shortcutId) { 230 if (shortcutId.startsWith(SHORTCUT_ID_PREFIX)) { 231 return new Cat(context, Long.parseLong(shortcutId.replace(SHORTCUT_ID_PREFIX, "")));
|