Home
last modified time | relevance | path

Searched refs:ConversationInfo (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DConversationStoreTest.java84 ConversationInfo out = mConversationStore.getConversation(SHORTCUT_ID); in testAddConversation()
91 ConversationInfo original = buildConversationInfo(SHORTCUT_ID, LOCUS_ID, CONTACT_URI, in testUpdateConversation()
98 ConversationInfo update = buildConversationInfo( in testUpdateConversation()
101 ConversationInfo updated = mConversationStore.getConversation(SHORTCUT_ID); in testUpdateConversation()
132 ConversationInfo in = buildConversationInfo(SHORTCUT_ID, LOCUS_ID, CONTACT_URI, in testGetConversationByLocusId()
135 ConversationInfo out = mConversationStore.getConversationByLocusId(LOCUS_ID); in testGetConversationByLocusId()
145 ConversationInfo in = buildConversationInfo(SHORTCUT_ID, LOCUS_ID, CONTACT_URI, in testGetConversationByContactUri()
148 ConversationInfo out = mConversationStore.getConversationByContactUri(CONTACT_URI); in testGetConversationByContactUri()
158 ConversationInfo in = buildConversationInfo(SHORTCUT_ID, LOCUS_ID, CONTACT_URI, in testGetConversationByPhoneNumber()
161 ConversationInfo out = mConversationStore.getConversationByPhoneNumber(PHONE_NUMBER); in testGetConversationByPhoneNumber()
[all …]
DConversationInfoTest.java55 ConversationInfo conversationInfo = new ConversationInfo.Builder() in testBuild()
101 ConversationInfo conversationInfo = new ConversationInfo.Builder() in testBuildEmpty()
131 ConversationInfo source = new ConversationInfo.Builder() in testBuildFromAnotherConversationInfo()
151 ConversationInfo destination = new ConversationInfo.Builder(source) in testBuildFromAnotherConversationInfo()
180 ConversationInfo source = new ConversationInfo.Builder() in testBuildFromAnotherConversation_identicalConversation()
200 ConversationInfo destination = new ConversationInfo.Builder(source).build(); in testBuildFromAnotherConversation_identicalConversation()
229 ConversationInfo conversationInfo = new ConversationInfo.Builder() in testBuildFromBackupPayload()
251 ConversationInfo conversationInfoFromBackup = in testBuildFromBackupPayload()
252 ConversationInfo.readFromBackupPayload(conversationInfo.getBackupPayload()); in testBuildFromBackupPayload()
281 ConversationInfo conversationInfo = new ConversationInfo.Builder() in testBuildFromProtoPayload()
[all …]
DPackageDataTest.java65 ConversationInfo conversationInfo = new ConversationInfo.Builder() in setUp()
171 ConversationInfo conversationInfo = new ConversationInfo.Builder() in testPruneOrphanEvents()
DDataManagerTest.java320 List<ConversationInfo> conversations = getConversationsInPrimary(); in testAccessConversationFromTheSameProfileGroup()
346 List<ConversationInfo> conversations = getConversationsInPrimary(); in testAccessConversationForUnlockedUsersOnly()
406 ConversationInfo conversationInfo = mDataManager.getPackage(TEST_PKG_NAME, USER_ID_PRIMARY) in testReportAppTargetEvent_directSharing_createConversation()
451 List<ConversationInfo> conversations = getConversationsInPrimary(); in testContactsChanged()
777 ConversationInfo ci = mDataManager.getConversationInfo(TEST_PKG_NAME, USER_ID_PRIMARY, in testOnNotificationChannelModified()
878 ConversationInfo conversationInfo = mDataManager.getPackage(TEST_PKG_NAME, USER_ID_PRIMARY) in testNotificationChannelCreated()
903 ConversationInfo conversationInfo = mDataManager.getPackage(TEST_PKG_NAME, USER_ID_PRIMARY) in testNotificationChannelModified()
925 ConversationInfo conversationInfo = mDataManager.getPackage(TEST_PKG_NAME, USER_ID_PRIMARY) in testNotificationChannelDeleted()
954 List<ConversationInfo> conversations = getConversationsInPrimary(); in testShortcutAddedOrUpdated()
980 List<ConversationInfo> conversations = getConversationsInPrimary(); in testShortcutsDeleted()
[all …]
DUsageStatsQueryHelperTest.java94 mPackageData.mConversationStore.mConversationInfo = new ConversationInfo.Builder() in setUp()
333 private ConversationInfo mConversationInfo;
342 ConversationInfo getConversation(@Nullable String shortcutId) { in getConversation()
/frameworks/base/services/people/java/com/android/server/people/data/
DConversationStore.java59 private final Map<String, ConversationInfo> mConversationInfoMap = new ArrayMap<>();
99 List<ConversationInfo> conversationsOnDisk = in loadConversationsFromDisk()
104 for (ConversationInfo conversationInfo : conversationsOnDisk) { in loadConversationsFromDisk()
118 List<ConversationInfo> conversations; in saveConversationsToDisk()
127 void addOrUpdate(@NonNull ConversationInfo conversationInfo) { in addOrUpdate()
134 ConversationInfo deleteConversation(@NonNull String shortcutId) { in deleteConversation()
135 ConversationInfo conversationInfo; in deleteConversation()
166 void forAllConversations(@NonNull Consumer<ConversationInfo> consumer) { in forAllConversations()
167 List<ConversationInfo> conversations; in forAllConversations()
171 for (ConversationInfo ci : conversations) { in forAllConversations()
[all …]
DDataManager.java250 ConversationInfo conversationInfo = packageData.getConversationInfo(shortcutId); in getConversation()
257 ConversationInfo getConversationInfo(String packageName, int userId, String shortcutId) { in getConversationInfo()
271 String shortcutId, ConversationInfo conversationInfo) { in getConversationChannel()
279 ConversationInfo conversationInfo, String packageName, int userId, String shortcutId) { in getConversationChannel()
379 ConversationInfo.Builder builder = new ConversationInfo.Builder(conversationInfo); in pruneExpiredConversationStatuses()
410 final ConversationInfo conversationInfo = packageData.getConversationInfo(shortcutId); in getLastInteraction()
421 ConversationInfo convToModify = getConversationInfoOrThrow(cs, conversationId); in addOrUpdateStatus()
422 ConversationInfo.Builder builder = new ConversationInfo.Builder(convToModify); in addOrUpdateStatus()
436 ConversationInfo convToModify = getConversationInfoOrThrow(cs, conversationId); in clearStatus()
437 ConversationInfo.Builder builder = new ConversationInfo.Builder(convToModify); in clearStatus()
[all …]
DConversationInfo.java54 public class ConversationInfo { class
61 private static final String TAG = ConversationInfo.class.getSimpleName();
120 private ConversationInfo(Builder builder) { in ConversationInfo() method in ConversationInfo
250 if (!(obj instanceof ConversationInfo)) { in equals()
253 ConversationInfo other = (ConversationInfo) obj; in equals()
387 static ConversationInfo readFromProto(@NonNull ProtoInputStream protoInputStream) in readFromProto()
389 ConversationInfo.Builder builder = new ConversationInfo.Builder(); in readFromProto()
449 static ConversationInfo readFromBackupPayload(@NonNull byte[] payload) { in readFromBackupPayload()
450 ConversationInfo.Builder builder = new ConversationInfo.Builder(); in readFromBackupPayload()
535 Builder(@NonNull ConversationInfo conversationInfo) { in Builder()
[all …]
DPackageData.java124 public void forAllConversations(@NonNull Consumer<ConversationInfo> consumer) { in forAllConversations()
133 public ConversationInfo getConversationInfo(@NonNull String shortcutId) { in getConversationInfo()
146 ConversationInfo conversationInfo = mConversationStore.getConversation(shortcutId); in getEventHistory()
218 ConversationInfo conversationInfo = mConversationStore.deleteConversation(shortcutId); in deleteDataForConversation()
DUsageStatsQueryHelper.java50 void onEvent(PackageData packageData, ConversationInfo conversationInfo, Event event); in onEvent()
208 ConversationInfo conversationInfo = in addEventByShortcutId()
220 ConversationInfo conversationInfo = in addEventByLocusId()
/frameworks/base/services/people/java/com/android/server/people/prediction/
DConversationData.java21 import com.android.server.people.data.ConversationInfo;
29 private final ConversationInfo mConversationInfo;
33 @NonNull ConversationInfo conversationInfo, @NonNull EventHistory eventHistory) { in ConversationData()
48 ConversationInfo getConversationInfo() { in getConversationInfo()
DShareTargetPredictor.java47 import com.android.server.people.data.ConversationInfo;
188 ConversationInfo conversationInfo = null; in getDirectShareTargets()
228 private final ConversationInfo mConversationInfo;
234 @Nullable ConversationInfo conversationInfo) { in ShareTarget()
255 ConversationInfo getConversationInfo() { in getConversationInfo()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/prediction/
DShareTargetPredictorTest.java50 import com.android.server.people.data.ConversationInfo;
155 when(mPackageData1.getConversationInfo("sc1")).thenReturn(mock(ConversationInfo.class)); in testPredictTargets()
156 when(mPackageData1.getConversationInfo("sc2")).thenReturn(mock(ConversationInfo.class)); in testPredictTargets()
157 when(mPackageData2.getConversationInfo("sc3")).thenReturn(mock(ConversationInfo.class)); in testPredictTargets()
205 when(mPackageData1.getConversationInfo("sc1")).thenReturn(mock(ConversationInfo.class)); in testPredictTargets_reachTargetsLimit()
206 when(mPackageData1.getConversationInfo("sc2")).thenReturn(mock(ConversationInfo.class)); in testPredictTargets_reachTargetsLimit()
207 when(mPackageData2.getConversationInfo("sc3")).thenReturn(mock(ConversationInfo.class)); in testPredictTargets_reachTargetsLimit()
208 when(mPackageData2.getConversationInfo("sc4")).thenReturn(mock(ConversationInfo.class)); in testPredictTargets_reachTargetsLimit()
209 when(mPackageData1.getConversationInfo("sc5")).thenReturn(mock(ConversationInfo.class)); in testPredictTargets_reachTargetsLimit()
210 when(mPackageData2.getConversationInfo("sc6")).thenReturn(mock(ConversationInfo.class)); in testPredictTargets_reachTargetsLimit()
[all …]
/frameworks/base/core/proto/android/server/
Dpeopleservice.proto33 // Individual conversation info (com.android.server.people.data.ConversationInfo) for a user