/frameworks/base/services/core/java/com/android/server/notification/ |
D | ShortcutHelper.java | 114 for (String shortcutId : shortcutIds) { 117 if (shortcuts.get(i).getId().equals(shortcutId)) { 123 bubbleKeysToRemove.add(shortcutBubbles.get(shortcutId)); 124 shortcutBubbles.remove(shortcutId); 192 ShortcutInfo getValidShortcutInfo(String shortcutId, String packageName, UserHandle user) { in getValidShortcutInfo() argument 199 if (shortcutId == null || packageName == null || user == null) { in getValidShortcutInfo() 204 query.setShortcutIds(Arrays.asList(shortcutId)); in getValidShortcutInfo() 241 final String shortcutId = r.getNotification().getBubbleMetadata() != null in maybeListenForShortcutChangesForBubbles() local 245 && !TextUtils.isEmpty(shortcutId) in maybeListenForShortcutChangesForBubbles() 247 && r.getShortcutInfo().getId().equals(shortcutId)) { in maybeListenForShortcutChangesForBubbles() [all …]
|
D | BubbleExtractor.java | 157 String shortcutId = metadata.getShortcutId(); in canPresentAsBubble() local 162 if (notificationShortcutId != null && shortcutId != null) { in canPresentAsBubble() 164 shortcutValid = shortcutId.equals(notificationShortcutId); in canPresentAsBubble() 165 } else if (shortcutId != null) { in canPresentAsBubble() 167 mShortcutHelper.getValidShortcutInfo(shortcutId, pkg, r.getUser()) != null; in canPresentAsBubble() 172 "couldn't find valid shortcut for bubble with shortcutId: " + shortcutId); in canPresentAsBubble() local
|
/frameworks/base/core/java/android/app/people/ |
D | IPeopleManager.aidl | 36 ConversationChannel getConversation(in String packageName, int userId, in String shortcutId); in getConversation() argument 48 void removeRecentConversation(in String packageName, int userId, in String shortcutId); in removeRecentConversation() argument 54 boolean isConversation(in String packageName, int userId, in String shortcutId); in isConversation() argument 60 long getLastInteraction(in String packageName, int userId, in String shortcutId); in getLastInteraction() argument 66 …void registerConversationListener(in String packageName, int userId, in String shortcutId, in ICon… in registerConversationListener() argument
|
D | PeopleManager.java | 99 public boolean isConversation(@NonNull String packageName, @NonNull String shortcutId) { in isConversation() argument 101 Preconditions.checkStringNotEmpty(shortcutId); in isConversation() 103 return mService.isConversation(packageName, mContext.getUserId(), shortcutId); in isConversation() 222 public void registerConversationListener(String packageName, int userId, String shortcutId, in registerConversationListener() argument 226 requireNonNull(shortcutId, "Shortcut ID cannot be null"); in registerConversationListener() 232 packageName, userId, shortcutId, proxy); in registerConversationListener()
|
/frameworks/base/core/java/android/content/pm/ |
D | ShortcutServiceInternal.java | 78 @NonNull String packageName, @NonNull String shortcutId, int userId, in createShortcutIntents() argument 86 @NonNull String packageName, @NonNull String shortcutId, int userId, in createShortcutIntentsAsync() argument 95 @NonNull String packageName, @NonNull String shortcutId, int userId); in getShortcutIconResId() argument 101 @NonNull String callingPackage, @NonNull String packageName, @NonNull String shortcutId, in getShortcutStartingThemeResName() argument 106 @NonNull String packageName, @NonNull String shortcutId, int userId); in getShortcutIconFd() argument 112 @NonNull String packageName, @NonNull String shortcutId, int userId, in getShortcutIconFdAsync() argument 153 @NonNull String packageName, @NonNull String shortcutId, int userId); in getShortcutIconUri() argument 161 @NonNull String shortcutId, int userId, @NonNull AndroidFuture<String> cb); in getShortcutIconUriAsync() argument 164 @NonNull String packageName, @NonNull String shortcutId, int userId, in isSharingShortcut() argument
|
D | LauncherApps.java | 1107 @NonNull final String shortcutId, @Nullable final Bundle opts, in getShortcutIntent() argument 1111 Log.i(TAG, "GetShortcutIntent " + packageName + "/" + shortcutId + " " + user); in getShortcutIntent() 1116 mContext.getPackageName(), packageName, shortcutId, null /* opts */, user); in getShortcutIntent() 1638 public int getShortcutIconResId(@NonNull String packageName, @NonNull String shortcutId, in getShortcutIconResId() argument 1642 q.setShortcutIds(Arrays.asList(shortcutId)); in getShortcutIconResId() 1662 @NonNull String packageName, @NonNull String shortcutId, @NonNull UserHandle user) { in getShortcutIconFd() argument 1663 return getShortcutIconFd(packageName, shortcutId, user.getIdentifier()); in getShortcutIconFd() 1667 @NonNull String packageName, @NonNull String shortcutId, int userId) { in getShortcutIconFd() argument 1670 packageName, shortcutId, userId); in getShortcutIconFd() 1685 @NonNull String shortcutId, int userId) { in getUriShortcutIconFd() argument [all …]
|
/frameworks/base/services/people/java/com/android/server/people/data/ |
D | DataManager.java | 219 @NonNull String shortcutId) { in getShortcut() argument 221 Collections.singletonList(shortcutId)); in getShortcut() 244 public ConversationChannel getConversation(String packageName, int userId, String shortcutId) { in getConversation() argument 250 ConversationInfo conversationInfo = packageData.getConversationInfo(shortcutId); in getConversation() 251 return getConversationChannel(packageName, userId, shortcutId, conversationInfo); in getConversation() 257 ConversationInfo getConversationInfo(String packageName, int userId, String shortcutId) { in getConversationInfo() argument 263 return packageData.getConversationInfo(shortcutId); in getConversationInfo() 271 String shortcutId, ConversationInfo conversationInfo) { in getConversationChannel() argument 272 ShortcutInfo shortcutInfo = getShortcut(packageName, userId, shortcutId); in getConversationChannel() 274 shortcutInfo, conversationInfo, packageName, userId, shortcutId); in getConversationChannel() [all …]
|
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 | ConversationStore.java | 134 ConversationInfo deleteConversation(@NonNull String shortcutId) { in deleteConversation() argument 137 conversationInfo = mConversationInfoMap.remove(shortcutId); in deleteConversation() 177 synchronized ConversationInfo getConversation(@Nullable String shortcutId) { in getConversation() argument 178 return shortcutId != null ? mConversationInfoMap.get(shortcutId) : null; in getConversation()
|
D | UsageStatsQueryHelper.java | 207 private void addEventByShortcutId(PackageData packageData, String shortcutId, Event event) { in addEventByShortcutId() argument 209 packageData.getConversationStore().getConversation(shortcutId); in addEventByShortcutId() 214 EventStore.CATEGORY_SHORTCUT_BASED, shortcutId); in addEventByShortcutId()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/ |
D | BubbleDataRepositoryTest.kt | 44 shortcutId = "shortcut-1", 56 shortcutId = "alice and bob", 67 shortcutId = "shortcut-2", 81 shortcutId = "shortcut-1", 93 shortcutId = "alice and bob", 104 shortcutId = "shortcut-2", 115 shortcutId = "alice",
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/ |
D | SharedPreferencesHelper.java | 43 public static void setPeopleTileKey(SharedPreferences sp, String shortcutId, int userId, in setPeopleTileKey() argument 46 editor.putString(SHORTCUT_ID, shortcutId); in setPeopleTileKey() 54 String shortcutId = sp.getString(SHORTCUT_ID, null); in getPeopleTileKey() local 57 return new PeopleTileKey(shortcutId, userId, packageName); in getPeopleTileKey()
|
D | PeopleProvider.java | 67 String shortcutId = extras.getString( in call() local 73 if (shortcutId.isEmpty()) { in call() 91 RemoteViews view = mPeopleSpaceWidgetManager.getPreview(shortcutId, userHandle, packageName, in call() 94 if (DEBUG) Log.d(TAG, "No preview available for shortcutId: " + shortcutId); in call()
|
/frameworks/base/services/people/java/com/android/server/people/ |
D | PeopleService.java | 185 String packageName, int userId, String shortcutId) { 187 return getDataManager().getConversation(packageName, userId, shortcutId); 199 public void removeRecentConversation(String packageName, int userId, String shortcutId) { 201 getDataManager().removeRecentConversation(packageName, userId, shortcutId, 213 public boolean isConversation(String packageName, int userId, String shortcutId) { 216 return getDataManager().isConversation(packageName, userId, shortcutId); 227 public long getLastInteraction(String packageName, int userId, String shortcutId) { 229 return getDataManager().getLastInteraction(packageName, userId, shortcutId); 271 String packageName, int userId, String shortcutId, IConversationListener listener) { 274 new ListenerKey(packageName, userId, shortcutId), listener); [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutRequestPinProcessor.java | 458 final String shortcutId = original.getId(); in directPinShortcut() local 481 final ShortcutInfo current = ps.findShortcutById(shortcutId); in directPinShortcut() 500 Slog.d(TAG, "Temporarily adding " + shortcutId + " as dynamic"); in directPinShortcut() 513 Slog.d(TAG, "Pinning " + shortcutId); in directPinShortcut() 517 launcher.addPinnedShortcut(appPackageName, appUserId, shortcutId, in directPinShortcut() 522 Slog.d(TAG, "Removing " + shortcutId + " as dynamic"); in directPinShortcut() 524 ps.deleteDynamicWithId(shortcutId, /*ignoreInvisible=*/ false, in directPinShortcut() 530 changedShortcuts = Collections.singletonList(ps.findShortcutById(shortcutId)); in directPinShortcut()
|
D | ShortcutService.java | 2614 @NonNull String packageName, @NonNull String shortcutId, int userId, 2629 if (matchedTargets.get(i).getShortcutInfo().getId().equals(shortcutId)) { 2692 public void reportShortcutUsed(String packageName, String shortcutId, int userId) { 2694 Objects.requireNonNull(shortcutId); 2697 shortcutId, packageName, userId)); 2703 if (ps.findShortcutById(shortcutId) == null) { 2705 packageName, shortcutId)); 2709 ps.reportShortcutUsed(mUsageStatsManagerInternal, shortcutId); 3143 @NonNull String packageName, @NonNull String shortcutId, int userId) { 3145 Preconditions.checkStringNotEmpty(shortcutId, "shortcutId"); [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/ |
D | AppWidgetOptionsHelper.java | 47 String shortcutId = options.getString(SHORTCUT_ID, EMPTY_STRING); in getPeopleTileKeyFromBundle() local 48 return new PeopleTileKey(shortcutId, userId, pkg); in getPeopleTileKeyFromBundle()
|
D | PeopleSpaceWidgetPinnedReceiver.java | 74 String shortcutId = intent.getStringExtra(Intent.EXTRA_SHORTCUT_ID); in onReceive() local 77 PeopleTileKey key = new PeopleTileKey(shortcutId, userId, packageName); in onReceive()
|
D | PeopleTileKey.java | 39 public PeopleTileKey(String shortcutId, int userId, String packageName) { in PeopleTileKey() argument 40 mShortcutId = shortcutId; in PeopleTileKey()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/bubbles/ |
D | BubbleInfoTest.kt | 54 assertThat(bubbleInfo.shortcutId).isEqualTo(bubbleInfoFromParcel.shortcutId) in bubbleInfo()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | BaseShortcutManagerTest.java | 1847 protected ShortcutInfo getPackageShortcut(String packageName, String shortcutId, int userId) { in getPackageShortcut() argument 1848 return mService.getPackageShortcutForTest(packageName, shortcutId, userId); in getPackageShortcut() 1851 protected void updatePackageShortcut(String packageName, String shortcutId, int userId, in updatePackageShortcut() argument 1853 mService.updatePackageShortcutForTest(packageName, shortcutId, userId, cb); in updatePackageShortcut() 1856 protected void assertShortcutExists(String packageName, String shortcutId, int userId) { in assertShortcutExists() argument 1857 assertTrue(getPackageShortcut(packageName, shortcutId, userId) != null); in assertShortcutExists() 1860 protected void assertShortcutNotExists(String packageName, String shortcutId, int userId) { in assertShortcutNotExists() argument 1861 assertTrue(getPackageShortcut(packageName, shortcutId, userId) == null); in assertShortcutNotExists() 1865 @NonNull String packageName, @NonNull String shortcutId, int userId) { in launchShortcutAndGetIntentsInner() argument 1880 @NonNull String packageName, @NonNull String shortcutId, int userId) { in launchShortcutAndGetIntents() argument [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/ |
D | MultiInstanceHelper.kt | 110 fun getShortcutComponent(packageName: String, shortcutId: String, in getShortcutComponent() 114 query.setShortcutIds(Arrays.asList(shortcutId)) in getShortcutComponent()
|
/frameworks/base/core/tests/coretests/src/android/app/people/ |
D | PeopleManagerTest.java | 102 private ConversationChannel getConversation(String shortcutId) { in getConversation() argument 104 shortcutId).setLongLabel( in getConversation()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/storage/ |
D | BubbleEntity.kt | 24 val shortcutId: String, constant in com.android.wm.shell.bubbles.storage.BubbleEntity
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/ |
D | BubbleInfo.java | 52 public BubbleInfo(String key, int flags, @Nullable String shortcutId, @Nullable Icon icon, in BubbleInfo() argument 57 mShortcutId = shortcutId; in BubbleInfo()
|