Home
last modified time | relevance | path

Searched refs:getShortcutId (Results 1 – 25 of 37) 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.java74 assertEquals(SHORTCUT_ID, conversationInfo.getShortcutId()); in testBuild()
101 assertEquals(SHORTCUT_ID, conversationInfo.getShortcutId()); in testBuildEmpty()
150 assertEquals(SHORTCUT_ID, destination.getShortcutId()); in testBuildFromAnotherConversationInfo()
DDataManagerTest.java272 when(mNotification.getShortcutId()).thenReturn(TEST_SHORTCUT_ID); in setUp()
324 assertEquals("sc_1", conversations.get(0).getShortcutId()); in testAccessConversationFromTheSameProfileGroup()
330 assertEquals("sc_2", conversations.get(1).getShortcutId()); in testAccessConversationFromTheSameProfileGroup()
349 assertEquals("sc_1", conversations.get(0).getShortcutId()); in testAccessConversationForUnlockedUsersOnly()
409 assertEquals(conversationInfo.getShortcutId(), TEST_SHORTCUT_ID); in testReportAppTargetEvent_directSharing_createConversation()
453 assertEquals(TEST_SHORTCUT_ID, conversations.get(0).getShortcutId()); in testContactsChanged()
508 when(mNotification.getShortcutId()).thenReturn(shortcutId); in testUncacheShortcutsWhenNotificationsDismissed()
895 assertEquals(TEST_SHORTCUT_ID, conversations.get(0).getShortcutId()); in testShortcutAddedOrUpdated()
921 assertEquals("sc2", conversations.get(0).getShortcutId()); in testShortcutsDeleted()
1123 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()
786 String shortcutId = notification.getShortcutId(); in getPackageIfConversationExists()
849 if (hasActiveNotifications(cached.first, userId, cached.second.getShortcutId())) { in cleanupCachedShortcuts()
861 Collections.singletonList(toUncache.second.getShortcutId()), in cleanupCachedShortcuts()
1151 String shortcutId = sbn.getNotification().getShortcutId(); in onNotificationPosted()
1189 String shortcutId = sbn.getNotification().getShortcutId(); in onNotificationRemoved()
1320 modifiedConv.getShortcutId(), modifiedConv); in updateConversationStoreThenNotifyListeners()
DUsageStatsQueryHelper.java92 addEventByShortcutId(packageData, e.getShortcutId(), in querySince()
/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/services/core/java/com/android/server/notification/
DNotificationChannelExtractor.java50 record.getSbn().getShortcutId(), true, false); in process()
DBubbleExtractor.java148 String shortcutId = metadata.getShortcutId(); in canPresentAsBubble()
DShortcutHelper.java242 ? r.getNotification().getBubbleMetadata().getShortcutId() in maybeListenForShortcutChangesForBubbles()
/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.java401 key.getPackageName(), key.getUserId(), key.getShortcutId()); in getTileFromPersistentStorage()
451 sbn.getShortcutId(), sbn.getUser().getIdentifier(), sbn.getPackageName()); in updateWidgetsWithNotificationChangedInBackground()
802 + optionsKey.getShortcutId()); in onAppWidgetOptionsChanged()
879 key.getShortcutId(), newListener, in registerConversationListenerIfNeeded()
956 if (DEBUG) Log.d(TAG, "Uncaching shortcut for PeopleTile: " + key.getShortcutId()); in uncacheConversationShortcut()
958 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/packages/EasterEgg/src/com/android/egg/neko/
DCat.java250 ShortcutInfo shortcut = new ShortcutInfo.Builder(context, getShortcutId())
283 .setShortcutId(getShortcutId())
291 .setKey(getShortcutId())
435 public String getShortcutId() {
DNekoService.java129 noman.notify(cat.getShortcutId(), CAT_NOTIFICATION, builder.build()); in notifyCat()
/frameworks/base/core/java/android/service/notification/
DStatusBarNotification.java487 public String getShortcutId() { in getShortcutId() method in StatusBarNotification
488 return getNotification().getShortcutId(); in getShortcutId()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationChannelExtractorTest.java97 any(), anyInt(), eq("a"), eq(r.getSbn().getShortcutId()), in testInvalidShortcutFlagEnabled_looksUpCorrectChannel()
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()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/widget/
DPeopleSpaceWidgetManagerTest.java1130 assertThat(tile.getId()).isEqualTo(key.getShortcutId()); in testGetPeopleTileFromPersistentStorageExistingConversation()
1451 assertThat(key1.getShortcutId()).isEqualTo(SHORTCUT_ID); in testRemapWidgetFiles()
1457 assertThat(key4.getShortcutId()).isEqualTo(OTHER_SHORTCUT_ID); in testRemapWidgetFiles()
1463 assertThat(key8.getShortcutId()).isNull(); in testRemapWidgetFiles()
1469 assertThat(key11.getShortcutId()).isNull(); in testRemapWidgetFiles()
1484 assertThat(key1.getShortcutId()).isEqualTo(THIRD_SHORTCUT_ID); in testRemapWidgetFiles_crossMapping()
1490 assertThat(key2.getShortcutId()).isEqualTo(OTHER_SHORTCUT_ID); in testRemapWidgetFiles_crossMapping()
1496 assertThat(key4.getShortcutId()).isEqualTo(SHORTCUT_ID); in testRemapWidgetFiles_crossMapping()
1598 ShortcutInfo shortcutInfo = new ShortcutInfo.Builder(mMockContext, key.getShortcutId()) in getConversationWithShortcutId()
/frameworks/base/services/people/java/com/android/server/people/
DPeopleService.java368 public String getShortcutId() { in getShortcutId() method in PeopleService.ListenerKey
376 && key.getShortcutId().equals(mShortcutId); in equals()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubble.java290 String getShortcutId() { in getShortcutId() method in Bubble
472 mMetadataShortcutId = entry.getBubbleMetadata().getShortcutId(); in setEntry()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/
DNotificationInterruptStateProviderImpl.java150 || (entry.getBubbleMetadata().getShortcutId() == null in shouldBubbleUp()

12