Home
last modified time | relevance | path

Searched refs:conversationInfo (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DConversationInfoTest.java55 ConversationInfo conversationInfo = new ConversationInfo.Builder() in testBuild() local
77 assertEquals(SHORTCUT_ID, conversationInfo.getShortcutId()); in testBuild()
78 assertEquals(LOCUS_ID, conversationInfo.getLocusId()); in testBuild()
79 assertEquals(CONTACT_URI, conversationInfo.getContactUri()); in testBuild()
80 assertEquals(PHONE_NUMBER, conversationInfo.getContactPhoneNumber()); in testBuild()
81 assertEquals(NOTIFICATION_CHANNEL_ID, conversationInfo.getNotificationChannelId()); in testBuild()
83 conversationInfo.getParentNotificationChannelId()); in testBuild()
84 assertEquals(100L, conversationInfo.getLastEventTimestamp()); in testBuild()
85 assertEquals(200L, conversationInfo.getCreationTimestamp()); in testBuild()
86 assertTrue(conversationInfo.isShortcutLongLived()); in testBuild()
[all …]
DPackageDataTest.java65 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()
DDataManagerTest.java406 ConversationInfo conversationInfo = mDataManager.getPackage(TEST_PKG_NAME, USER_ID_PRIMARY) in testReportAppTargetEvent_directSharing_createConversation() local
409 assertNotNull(conversationInfo); in testReportAppTargetEvent_directSharing_createConversation()
410 assertEquals(conversationInfo.getShortcutId(), TEST_SHORTCUT_ID); in testReportAppTargetEvent_directSharing_createConversation()
878 ConversationInfo conversationInfo = mDataManager.getPackage(TEST_PKG_NAME, USER_ID_PRIMARY) in testNotificationChannelCreated() local
881 assertEquals(NOTIFICATION_CHANNEL_ID, conversationInfo.getNotificationChannelId()); in testNotificationChannelCreated()
882 assertFalse(conversationInfo.isImportant()); in testNotificationChannelCreated()
883 assertFalse(conversationInfo.isNotificationSilenced()); in testNotificationChannelCreated()
884 assertFalse(conversationInfo.isDemoted()); in testNotificationChannelCreated()
903 ConversationInfo conversationInfo = mDataManager.getPackage(TEST_PKG_NAME, USER_ID_PRIMARY) in testNotificationChannelModified() local
906 assertEquals(NOTIFICATION_CHANNEL_ID, conversationInfo.getNotificationChannelId()); in testNotificationChannelModified()
[all …]
DConversationStoreTest.java124 conversationInfo -> shortcutIds.add(conversationInfo.getShortcutId())); in testForAllConversations()
/frameworks/base/services/people/java/com/android/server/people/data/
DConversationStore.java104 for (ConversationInfo conversationInfo : conversationsOnDisk) { in loadConversationsFromDisk()
105 updateConversationsInMemory(conversationInfo); in loadConversationsFromDisk()
127 void addOrUpdate(@NonNull ConversationInfo conversationInfo) { in addOrUpdate() argument
128 updateConversationsInMemory(conversationInfo); in addOrUpdate()
135 ConversationInfo conversationInfo; in deleteConversation() local
137 conversationInfo = mConversationInfoMap.remove(shortcutId); in deleteConversation()
138 if (conversationInfo == null) { in deleteConversation()
142 LocusId locusId = conversationInfo.getLocusId(); in deleteConversation()
147 Uri contactUri = conversationInfo.getContactUri(); in deleteConversation()
152 String phoneNumber = conversationInfo.getContactPhoneNumber(); in deleteConversation()
[all …]
DDataManager.java250 ConversationInfo conversationInfo = packageData.getConversationInfo(shortcutId); in getConversation() local
251 return getConversationChannel(packageName, userId, shortcutId, conversationInfo); in getConversation()
271 String shortcutId, ConversationInfo conversationInfo) { in getConversationChannel() argument
274 shortcutInfo, conversationInfo, packageName, userId, shortcutId); in getConversationChannel()
279 ConversationInfo conversationInfo, String packageName, int userId, String shortcutId) { in getConversationChannel() argument
280 if (conversationInfo == null || conversationInfo.isDemoted()) { in getConversationChannel()
292 conversationInfo.getNotificationChannelId()); in getConversationChannel()
301 conversationInfo.getLastEventTimestamp(), in getConversationChannel()
303 getStatuses(conversationInfo)); in getConversationChannel()
310 packageData.forAllConversations(conversationInfo -> { in getRecentConversations()
[all …]
DPackageData.java146 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()
DUsageStatsQueryHelper.java50 void onEvent(PackageData packageData, ConversationInfo conversationInfo, Event event); in onEvent() argument
208 ConversationInfo conversationInfo = in addEventByShortcutId() local
210 if (conversationInfo == null) { in addEventByShortcutId()
216 mEventListener.onEvent(packageData, conversationInfo, event); in addEventByShortcutId()
220 ConversationInfo conversationInfo = in addEventByLocusId() local
222 if (conversationInfo == null) { in addEventByLocusId()
228 mEventListener.onEvent(packageData, conversationInfo, event); in addEventByLocusId()
DConversationInfo.java535 Builder(@NonNull ConversationInfo conversationInfo) { in Builder() argument
537 mShortcutId = conversationInfo.mShortcutId; in Builder()
539 Preconditions.checkArgument(mShortcutId.equals(conversationInfo.mShortcutId)); in Builder()
541 mLocusId = conversationInfo.mLocusId; in Builder()
542 mContactUri = conversationInfo.mContactUri; in Builder()
543 mContactPhoneNumber = conversationInfo.mContactPhoneNumber; in Builder()
544 mNotificationChannelId = conversationInfo.mNotificationChannelId; in Builder()
545 mParentNotificationChannelId = conversationInfo.mParentNotificationChannelId; in Builder()
546 mLastEventTimestamp = conversationInfo.mLastEventTimestamp; in Builder()
547 mCreationTimestamp = conversationInfo.mCreationTimestamp; in Builder()
[all …]
/frameworks/base/services/people/java/com/android/server/people/prediction/
DConversationData.java33 @NonNull ConversationInfo conversationInfo, @NonNull EventHistory eventHistory) { in ConversationData() argument
36 mConversationInfo = conversationInfo; in ConversationData()
DShareTargetPredictor.java188 ConversationInfo conversationInfo = null; in getDirectShareTargets() local
192 conversationInfo = packageData.getConversationInfo(shortcutId); in getDirectShareTargets()
193 if (conversationInfo != null) { in getDirectShareTargets()
197 shareTargets.add(new ShareTarget(appTarget, eventHistory, conversationInfo)); in getDirectShareTargets()
234 @Nullable ConversationInfo conversationInfo) { in ShareTarget() argument
237 mConversationInfo = conversationInfo; in ShareTarget()