Searched refs:conversationInfo (Results 1 – 10 of 10) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/ |
D | ConversationInfoTest.java | 43 ConversationInfo conversationInfo = new ConversationInfo.Builder() in testBuild() local 60 assertEquals(SHORTCUT_ID, conversationInfo.getShortcutId()); in testBuild() 61 assertEquals(LOCUS_ID, conversationInfo.getLocusId()); in testBuild() 62 assertEquals(CONTACT_URI, conversationInfo.getContactUri()); in testBuild() 63 assertEquals(PHONE_NUMBER, conversationInfo.getContactPhoneNumber()); in testBuild() 64 assertEquals(NOTIFICATION_CHANNEL_ID, conversationInfo.getNotificationChannelId()); in testBuild() 65 assertTrue(conversationInfo.isShortcutLongLived()); in testBuild() 66 assertTrue(conversationInfo.isShortcutCachedForNotification()); in testBuild() 67 assertTrue(conversationInfo.isImportant()); in testBuild() 68 assertTrue(conversationInfo.isNotificationSilenced()); in testBuild() [all …]
|
D | DataManagerTest.java | 331 ConversationInfo conversationInfo = mDataManager.getPackage(TEST_PKG_NAME, USER_ID_PRIMARY) in testReportAppTargetEvent_directSharing_createConversation() local 334 assertNotNull(conversationInfo); in testReportAppTargetEvent_directSharing_createConversation() 335 assertEquals(conversationInfo.getShortcutId(), TEST_SHORTCUT_ID); in testReportAppTargetEvent_directSharing_createConversation() 500 ConversationInfo conversationInfo = mDataManager.getPackage(TEST_PKG_NAME, USER_ID_PRIMARY) in testNotificationChannelCreated() local 503 assertEquals(NOTIFICATION_CHANNEL_ID, conversationInfo.getNotificationChannelId()); in testNotificationChannelCreated() 504 assertFalse(conversationInfo.isImportant()); in testNotificationChannelCreated() 505 assertFalse(conversationInfo.isNotificationSilenced()); in testNotificationChannelCreated() 506 assertFalse(conversationInfo.isDemoted()); in testNotificationChannelCreated() 525 ConversationInfo conversationInfo = mDataManager.getPackage(TEST_PKG_NAME, USER_ID_PRIMARY) in testNotificationChannelModified() local 528 assertEquals(NOTIFICATION_CHANNEL_ID, conversationInfo.getNotificationChannelId()); in testNotificationChannelModified() [all …]
|
D | PackageDataTest.java | 65 ConversationInfo conversationInfo = new ConversationInfo.Builder() in setUp() local 72 mPackageData.getConversationStore().addOrUpdate(conversationInfo); in setUp() 171 ConversationInfo conversationInfo = new ConversationInfo.Builder() in testPruneOrphanEvents() local 178 mPackageData.getConversationStore().addOrUpdate(conversationInfo); in testPruneOrphanEvents()
|
D | ConversationStoreTest.java | 124 conversationInfo -> shortcutIds.add(conversationInfo.getShortcutId())); in testForAllConversations()
|
/frameworks/base/services/people/java/com/android/server/people/data/ |
D | ConversationStore.java | 104 for (ConversationInfo conversationInfo : conversationsOnDisk) { in loadConversationsFromDisk() 105 updateConversationsInMemory(conversationInfo); in loadConversationsFromDisk() 124 synchronized void addOrUpdate(@NonNull ConversationInfo conversationInfo) { in addOrUpdate() argument 125 updateConversationsInMemory(conversationInfo); in addOrUpdate() 132 ConversationInfo conversationInfo = mConversationInfoMap.remove(shortcutId); in deleteConversation() local 133 if (conversationInfo == null) { in deleteConversation() 137 LocusId locusId = conversationInfo.getLocusId(); in deleteConversation() 142 Uri contactUri = conversationInfo.getContactUri(); in deleteConversation() 147 String phoneNumber = conversationInfo.getContactPhoneNumber(); in deleteConversation() 152 String notifChannelId = conversationInfo.getNotificationChannelId(); in deleteConversation() [all …]
|
D | PackageData.java | 146 ConversationInfo conversationInfo = mConversationStore.getConversation(shortcutId); in getEventHistory() local 147 if (conversationInfo == null) { in getEventHistory() 157 LocusId locusId = conversationInfo.getLocusId(); in getEventHistory() 166 String phoneNumber = conversationInfo.getContactPhoneNumber(); in getEventHistory() 218 ConversationInfo conversationInfo = mConversationStore.deleteConversation(shortcutId); in deleteDataForConversation() local 219 if (conversationInfo == null) { in deleteDataForConversation() 223 if (conversationInfo.getLocusId() != null) { in deleteDataForConversation() 225 CATEGORY_LOCUS_ID_BASED, conversationInfo.getLocusId().getId()); in deleteDataForConversation() 227 String phoneNumber = conversationInfo.getContactPhoneNumber(); in deleteDataForConversation()
|
D | DataManager.java | 295 packageData.forAllConversations(conversationInfo -> { in pruneDataForUser() 296 if (conversationInfo.isShortcutCachedForNotification() in pruneDataForUser() 297 && conversationInfo.getNotificationChannelId() == null in pruneDataForUser() 299 packageName, conversationInfo.getShortcutId())) { in pruneDataForUser() 302 Collections.singletonList(conversationInfo.getShortcutId()), in pruneDataForUser() 520 ConversationInfo conversationInfo = in getPackageIfConversationExists() local 522 if (conversationInfo == null) { in getPackageIfConversationExists() 525 conversationConsumer.accept(conversationInfo); in getPackageIfConversationExists() 792 PackageData packageData = getPackageIfConversationExists(sbn, conversationInfo -> { in onNotificationPosted() 813 PackageData packageData = getPackageIfConversationExists(sbn, conversationInfo -> { in onNotificationRemoved() [all …]
|
D | ConversationInfo.java | 420 Builder(@NonNull ConversationInfo conversationInfo) { in Builder() argument 422 mShortcutId = conversationInfo.mShortcutId; in Builder() 424 Preconditions.checkArgument(mShortcutId.equals(conversationInfo.mShortcutId)); in Builder() 426 mLocusId = conversationInfo.mLocusId; in Builder() 427 mContactUri = conversationInfo.mContactUri; in Builder() 428 mContactPhoneNumber = conversationInfo.mContactPhoneNumber; in Builder() 429 mNotificationChannelId = conversationInfo.mNotificationChannelId; in Builder() 430 mShortcutFlags = conversationInfo.mShortcutFlags; in Builder() 431 mConversationFlags = conversationInfo.mConversationFlags; in Builder()
|
/frameworks/base/services/people/java/com/android/server/people/prediction/ |
D | ShareTargetPredictor.java | 149 ConversationInfo conversationInfo = null; in getDirectShareTargets() local 153 conversationInfo = packageData.getConversationInfo(shortcutId); in getDirectShareTargets() 154 if (conversationInfo != null) { in getDirectShareTargets() 158 shareTargets.add(new ShareTarget(appTarget, eventHistory, conversationInfo)); in getDirectShareTargets() 195 @Nullable ConversationInfo conversationInfo) { in ShareTarget() argument 198 mConversationInfo = conversationInfo; in ShareTarget()
|
D | ConversationData.java | 33 @NonNull ConversationInfo conversationInfo, @NonNull EventHistory eventHistory) { in ConversationData() argument 36 mConversationInfo = conversationInfo; in ConversationData()
|