Home
last modified time | relevance | path

Searched refs:getShortcutId (Results 1 – 25 of 39) sorted by relevance

12

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
H A DConversationStoreTest.java86 assertEquals(SHORTCUT_ID, out.getShortcutId()); in testAddConversation()
124 conversationInfo -> shortcutIds.add(conversationInfo.getShortcutId())); in testForAllConversations()
137 assertEquals(SHORTCUT_ID, out.getShortcutId()); in testGetConversationByLocusId()
150 assertEquals(SHORTCUT_ID, out.getShortcutId()); in testGetConversationByContactUri()
163 assertEquals(SHORTCUT_ID, out.getShortcutId()); in testGetConversationByPhoneNumber()
177 assertEquals(SHORTCUT_ID, out.getShortcutId()); in testGetConversationByNotificationChannelId()
H A DConversationInfoTest.java77 assertEquals(SHORTCUT_ID, conversationInfo.getShortcutId()); in testBuild()
105 assertEquals(SHORTCUT_ID, conversationInfo.getShortcutId()); in testBuildEmpty()
156 assertEquals(SHORTCUT_ID, destination.getShortcutId()); in testBuildFromAnotherConversationInfo()
202 assertEquals(SHORTCUT_ID, destination.getShortcutId()); in testBuildFromAnotherConversation_identicalConversation()
254 assertEquals(SHORTCUT_ID, conversationInfoFromBackup.getShortcutId()); in testBuildFromBackupPayload()
308 assertEquals(SHORTCUT_ID, conversationInfoFromBackup.getShortcutId()); in testBuildFromProtoPayload()
H A DDataManagerTest.java272 when(mNotification.getShortcutId()).thenReturn(TEST_SHORTCUT_ID); in setUp()
325 assertEquals("sc_1", conversations.get(0).getShortcutId()); in testAccessConversationFromTheSameProfileGroup()
331 assertEquals("sc_2", conversations.get(1).getShortcutId()); in testAccessConversationFromTheSameProfileGroup()
350 assertEquals("sc_1", conversations.get(0).getShortcutId()); in testAccessConversationForUnlockedUsersOnly()
410 assertEquals(conversationInfo.getShortcutId(), TEST_SHORTCUT_ID); in testReportAppTargetEvent_directSharing_createConversation()
510 when(mNotification.getShortcutId()).thenReturn(shortcutId); in testUncacheShortcutsWhenNotificationsDismissed()
983 assertEquals("sc2", conversations.get(0).getShortcutId()); in testShortcutsDeleted()
1185 when(mNotification.getShortcutId()).thenReturn(shortcutId); in testDoNotUncacheShortcutWithActiveNotifications()
1207 when(mNotification.getShortcutId()).thenReturn(shortcutId); in testUncacheOldestCachedShortcut()
1635 when(mNotification.getShortcutId()).thenReturn("1");
[all …]
/aosp14/frameworks/base/services/people/java/com/android/server/people/data/
H A DConversationStore.java262 mConversationInfoMap.put(conversationInfo.getShortcutId(), conversationInfo); in updateConversationsInMemory()
266 mLocusIdToShortcutIdMap.put(locusId, conversationInfo.getShortcutId()); in updateConversationsInMemory()
271 mContactUriToShortcutIdMap.put(contactUri, conversationInfo.getShortcutId()); in updateConversationsInMemory()
276 mPhoneNumberToShortcutIdMap.put(phoneNumber, conversationInfo.getShortcutId()); in updateConversationsInMemory()
281 mNotifChannelIdToShortcutIdMap.put(notifChannelId, conversationInfo.getShortcutId()); in updateConversationsInMemory()
H A DDataManager.java314 String shortcutId = conversationInfo.getShortcutId(); in getRecentConversations()
357 String shortcutId = conversationInfo.getShortcutId(); in pruneOldRecentConversations()
799 String shortcutId = notification.getShortcutId(); in getPackageIfConversationExists()
872 if (hasActiveNotifications(cached.first, userId, cached.second.getShortcutId())) { in cleanupCachedShortcuts()
884 Collections.singletonList(toUncache.second.getShortcutId()), in cleanupCachedShortcuts()
1181 String shortcutId = sbn.getNotification().getShortcutId(); in onNotificationPosted()
1221 String shortcutId = sbn.getNotification().getShortcutId(); in onNotificationRemoved()
1353 modifiedConv.getShortcutId(), modifiedConv); in updateConversationStoreThenNotifyListeners()
H A DUsageStatsQueryHelper.java92 addEventByShortcutId(packageData, e.getShortcutId(), in querySince()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/
H A DBubbleTest.java190 assertThat(bubbleInfo.getShortcutId()).isNotNull(); in testBubbleAsBubbleBarBubble_withShortcut()
191 assertThat(bubbleInfo.getShortcutId()).isEqualTo(bubble.getShortcutId()); in testBubbleAsBubbleBarBubble_withShortcut()
206 assertThat(bubbleInfo.getShortcutId()).isNull(); in testBubbleAsBubbleBarBubble_withoutShortcut()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/
H A DSharedPreferencesHelperTest.java55 widgetEditor.putString(PeopleSpaceUtils.SHORTCUT_ID, peopleTileKey.getShortcutId()); in setStorageForTile()
70 assertThat(actual.getShortcutId()).isEqualTo(SHORTCUT_ID_1); in testGetPeopleTileKey()
/aosp14/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationChannelExtractor.java50 record.getSbn().getShortcutId(), true, false); in process()
H A DBubbleExtractor.java157 String shortcutId = metadata.getShortcutId(); in canPresentAsBubble()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
H A DSharedPreferencesHelper.java39 setPeopleTileKey(sp, key.getShortcutId(), key.getUserId(), key.getPackageName()); in setPeopleTileKey()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/
H A DAppWidgetOptionsHelper.java37 options.putString(SHORTCUT_ID, key.getShortcutId()); in setPeopleTileKey()
H A DPeopleTileKey.java61 public String getShortcutId() { in getShortcutId() method in PeopleTileKey
H A DPeopleSpaceWidgetManager.java402 key.getPackageName(), key.getUserId(), key.getShortcutId()); in getTileFromPersistentStorage()
456 sbn.getShortcutId(), sbn.getUser().getIdentifier(), sbn.getPackageName()); in updateWidgetsWithNotificationChangedInBackground()
803 + optionsKey.getShortcutId()); in onAppWidgetOptionsChanged()
880 key.getShortcutId(), newListener, in registerConversationListenerIfNeeded()
957 if (DEBUG) Log.d(TAG, "Uncaching shortcut for PeopleTile: " + key.getShortcutId()); in uncacheConversationShortcut()
959 Collections.singletonList(key.getShortcutId()), in uncacheConversationShortcut()
/aosp14/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
H A DCat.java250 ShortcutInfo shortcut = new ShortcutInfo.Builder(context, getShortcutId())
283 .setShortcutId(getShortcutId())
291 .setKey(getShortcutId())
435 public String getShortcutId() {
H A DNekoService.java129 noman.notify(cat.getShortcutId(), CAT_NOTIFICATION, builder.build()); in notifyCat()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A DNotificationChannelHelper.java46 final String conversationId = entry.getSbn().getShortcutId(); in createConversationChannelIfNeeded()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/
H A DBubbleInfo.java79 public String getShortcutId() { in getShortcutId() method in BubbleInfo
/aosp14/frameworks/base/core/java/android/service/notification/
H A DStatusBarNotification.java524 public String getShortcutId() { in getShortcutId() method in StatusBarNotification
525 return getNotification().getShortcutId(); in getShortcutId()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/widget/
H A DPeopleSpaceWidgetManagerTest.java1148 assertThat(tile.getId()).isEqualTo(key.getShortcutId()); in testGetPeopleTileFromPersistentStorageExistingConversation()
1465 assertThat(key1.getShortcutId()).isEqualTo(SHORTCUT_ID); in testRemapWidgetFiles()
1471 assertThat(key4.getShortcutId()).isEqualTo(OTHER_SHORTCUT_ID); in testRemapWidgetFiles()
1477 assertThat(key8.getShortcutId()).isNull(); in testRemapWidgetFiles()
1483 assertThat(key11.getShortcutId()).isNull(); in testRemapWidgetFiles()
1498 assertThat(key1.getShortcutId()).isEqualTo(THIRD_SHORTCUT_ID); in testRemapWidgetFiles_crossMapping()
1504 assertThat(key2.getShortcutId()).isEqualTo(OTHER_SHORTCUT_ID); in testRemapWidgetFiles_crossMapping()
1510 assertThat(key4.getShortcutId()).isEqualTo(SHORTCUT_ID); in testRemapWidgetFiles_crossMapping()
1612 ShortcutInfo shortcutInfo = new ShortcutInfo.Builder(mMockContext, key.getShortcutId()) in getConversationWithShortcutId()
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DNotificationChannelExtractorTest.java97 any(), anyInt(), eq("a"), eq(r.getSbn().getShortcutId()), in testInvalidShortcutFlagEnabled_looksUpCorrectChannel()
H A DShortcutHelperTest.java102 when(mBubbleMetadata.getShortcutId()).thenReturn(SHORTCUT_ID); in setUp()
166 when(mBubbleMetadata.getShortcutId()).thenReturn(null); in testBubbleNoLongerHasShortcutId_listenerRemoved()
H A DBubbleExtractorTest.java139 when(mBubbleMetadata.getShortcutId()).thenReturn(null); in setUpIntentBubble()
150 when(mBubbleMetadata.getShortcutId()).thenReturn(SHORTCUT_ID); in setUpShortcutBubble()
/aosp14/frameworks/base/services/people/java/com/android/server/people/
H A DPeopleService.java369 public String getShortcutId() { in getShortcutId() method in PeopleService.ListenerKey
378 && key.getShortcutId().equals(mShortcutId); in equals()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
H A DBubble.java299 getShortcutId(), in asBubbleBarBubble()
399 String getShortcutId() { in getShortcutId() method in Bubble
589 mMetadataShortcutId = entry.getBubbleMetadata().getShortcutId(); in setEntry()

12