Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
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()
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()
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()
454 assertEquals(TEST_SHORTCUT_ID, conversations.get(0).getShortcutId()); in testContactsChanged()
510 when(mNotification.getShortcutId()).thenReturn(shortcutId); in testUncacheShortcutsWhenNotificationsDismissed()
957 assertEquals(TEST_SHORTCUT_ID, conversations.get(0).getShortcutId()); in testShortcutAddedOrUpdated()
983 assertEquals("sc2", conversations.get(0).getShortcutId()); in testShortcutsDeleted()
1185 when(mNotification.getShortcutId()).thenReturn(shortcutId); in testDoNotUncacheShortcutWithActiveNotifications()
[all …]
/frameworks/base/services/people/java/com/android/server/people/data/
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()
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()
DUsageStatsQueryHelper.java92 addEventByShortcutId(packageData, e.getShortcutId(), in querySince()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/
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()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/
DSharedPreferencesHelperTest.java55 widgetEditor.putString(PeopleSpaceUtils.SHORTCUT_ID, peopleTileKey.getShortcutId()); in setStorageForTile()
70 assertThat(actual.getShortcutId()).isEqualTo(SHORTCUT_ID_1); in testGetPeopleTileKey()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/
DAppWidgetOptionsHelper.java37 options.putString(SHORTCUT_ID, key.getShortcutId()); in setPeopleTileKey()
DPeopleTileKey.java61 public String getShortcutId() { in getShortcutId() method in PeopleTileKey
DPeopleSpaceWidgetManager.java435 key.getPackageName(), key.getUserId(), key.getShortcutId()); in getTileFromPersistentStorage()
489 sbn.getShortcutId(), sbn.getUser().getIdentifier(), sbn.getPackageName()); in updateWidgetsWithNotificationChangedInBackground()
836 + optionsKey.getShortcutId()); in onAppWidgetOptionsChanged()
913 key.getShortcutId(), newListener, in registerConversationListenerIfNeeded()
990 if (DEBUG) Log.d(TAG, "Uncaching shortcut for PeopleTile: " + key.getShortcutId()); in uncacheConversationShortcut()
992 Collections.singletonList(key.getShortcutId()), in uncacheConversationShortcut()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
DSharedPreferencesHelper.java39 setPeopleTileKey(sp, key.getShortcutId(), key.getUserId(), key.getPackageName()); in setPeopleTileKey()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationChannelHelper.java46 final String conversationId = entry.getSbn().getShortcutId(); in createConversationChannelIfNeeded()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationChannelExtractor.java76 record.getSbn().getShortcutId(), true, false); in process()
DBubbleExtractor.java157 String shortcutId = metadata.getShortcutId(); in canPresentAsBubble()
DShortcutHelper.java242 ? r.getNotification().getBubbleMetadata().getShortcutId() in maybeListenForShortcutChangesForBubbles()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/
DBubbleInfo.java83 public String getShortcutId() { in getShortcutId() method in BubbleInfo
/frameworks/base/core/java/android/service/notification/
DStatusBarNotification.java526 public String getShortcutId() { in getShortcutId() method in StatusBarNotification
527 return getNotification().getShortcutId(); in getShortcutId()
/frameworks/base/services/people/java/com/android/server/people/
DPeopleService.java382 public String getShortcutId() { in getShortcutId() method in PeopleService.ListenerKey
391 && key.getShortcutId().equals(mShortcutId); in equals()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DShortcutHelperTest.java102 when(mBubbleMetadata.getShortcutId()).thenReturn(SHORTCUT_ID); in setUp()
166 when(mBubbleMetadata.getShortcutId()).thenReturn(null); in testBubbleNoLongerHasShortcutId_listenerRemoved()
DBubbleExtractorTest.java139 when(mBubbleMetadata.getShortcutId()).thenReturn(null); in setUpIntentBubble()
150 when(mBubbleMetadata.getShortcutId()).thenReturn(SHORTCUT_ID); in setUpShortcutBubble()
DNotificationChannelExtractorTest.java125 any(), anyInt(), eq("a"), eq(r.getSbn().getShortcutId()), in testInvalidShortcutFlagEnabled_looksUpCorrectNonChannel()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubble.java303 getShortcutId(), in asBubbleBarBubble()
415 String getShortcutId() { in getShortcutId() method in Bubble
636 mMetadataShortcutId = entry.getBubbleMetadata().getShortcutId(); in setEntry()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/widget/
DPeopleSpaceWidgetManagerTest.java1161 assertThat(tile.getId()).isEqualTo(key.getShortcutId()); in testGetPeopleTileFromPersistentStorageExistingConversation()
1478 assertThat(key1.getShortcutId()).isEqualTo(SHORTCUT_ID); in testRemapWidgetFiles()
1484 assertThat(key4.getShortcutId()).isEqualTo(OTHER_SHORTCUT_ID); in testRemapWidgetFiles()
1490 assertThat(key8.getShortcutId()).isNull(); in testRemapWidgetFiles()
1496 assertThat(key11.getShortcutId()).isNull(); in testRemapWidgetFiles()
1511 assertThat(key1.getShortcutId()).isEqualTo(THIRD_SHORTCUT_ID); in testRemapWidgetFiles_crossMapping()
1517 assertThat(key2.getShortcutId()).isEqualTo(OTHER_SHORTCUT_ID); in testRemapWidgetFiles_crossMapping()
1523 assertThat(key4.getShortcutId()).isEqualTo(SHORTCUT_ID); in testRemapWidgetFiles_crossMapping()
1668 ShortcutInfo shortcutInfo = new ShortcutInfo.Builder(mMockContext, key.getShortcutId()) in getConversationWithShortcutId()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoService.java129 noman.notify(cat.getShortcutId(), CAT_NOTIFICATION, builder.build()); in notifyCat()

12