Home
last modified time | relevance | path

Searched refs:eventHistory (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/people/java/com/android/server/people/data/
DEventStore.java110 for (EventHistoryImpl eventHistory : map.values()) { in saveToDisk()
111 eventHistory.saveToDisk(); in saveToDisk()
150 EventHistoryImpl eventHistory = mEventHistoryMaps.get(category).remove(key); in deleteEventHistory() local
151 if (eventHistory != null) { in deleteEventHistory()
152 eventHistory.onDestroy(); in deleteEventHistory()
158 for (EventHistoryImpl eventHistory : mEventHistoryMaps.get(category).values()) { in deleteEventHistories()
159 eventHistory.onDestroy(); in deleteEventHistories()
167 for (EventHistoryImpl eventHistory : map.values()) { in pruneOldEvents()
168 eventHistory.pruneOldEvents(); in pruneOldEvents()
190 EventHistoryImpl eventHistory = eventHistoryMap.remove(key); in pruneOrphanEventHistories() local
[all …]
DAggregateEventHistoryImpl.java33 for (EventHistory eventHistory : mEventHistoryList) { in getEventIndex()
34 EventIndex eventIndex = eventHistory.getEventIndex(eventType); in getEventIndex()
46 for (EventHistory eventHistory : mEventHistoryList) { in getEventIndex()
47 EventIndex eventIndex = eventHistory.getEventIndex(eventTypes); in getEventIndex()
61 for (EventHistory eventHistory : mEventHistoryList) { in queryEvents()
62 EventIndex eventIndex = eventHistory.getEventIndex(eventTypes); in queryEvents()
66 List<Event> queryResults = eventHistory.queryEvents(eventTypes, startTime, endTime); in queryEvents()
72 void addEventHistory(EventHistory eventHistory) { in addEventHistory() argument
73 mEventHistoryList.add(eventHistory); in addEventHistory()
DUsageStatsQueryHelper.java204 EventHistoryImpl eventHistory = packageData.getEventStore().getOrCreateEventHistory( in addEventByShortcutId() local
206 eventHistory.addEvent(event); in addEventByShortcutId()
213 EventHistoryImpl eventHistory = packageData.getEventStore().getOrCreateEventHistory( in addEventByLocusId() local
215 eventHistory.addEvent(event); in addEventByLocusId()
DPackageData.java190 EventHistory eventHistory = getEventStore().getEventHistory( in getClassLevelEventHistory() local
192 return eventHistory != null ? eventHistory : new AggregateEventHistoryImpl(); in getClassLevelEventHistory()
DDataManager.java224 EventHistoryImpl eventHistory; in reportShareTargetEvent() local
238 eventHistory = packageData.getEventStore().getOrCreateEventHistory( in reportShareTargetEvent()
242 eventHistory = packageData.getEventStore().getOrCreateEventHistory( in reportShareTargetEvent()
245 eventHistory.addEvent(new Event(System.currentTimeMillis(), eventType)); in reportShareTargetEvent()
800 EventHistoryImpl eventHistory = packageData.getEventStore().getOrCreateEventHistory( in onNotificationPosted() local
802 eventHistory.addEvent(new Event(sbn.getPostTime(), Event.TYPE_NOTIFICATION_POSTED)); in onNotificationPosted()
839 EventHistoryImpl eventHistory = packageData.getEventStore().getOrCreateEventHistory( in onNotificationRemoved() local
842 eventHistory.addEvent(new Event(currentTime, Event.TYPE_NOTIFICATION_OPENED)); in onNotificationRemoved()
DEventHistoryImpl.java111 EventHistoryImpl eventHistory = new EventHistoryImpl(injector, keyDir, in eventHistoriesImplFromDisk() local
113 eventHistory.loadFromDisk(); in eventHistoriesImplFromDisk()
114 results.put(Uri.decode(keyDir.getName()), eventHistory); in eventHistoriesImplFromDisk() local
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DPackageDataTest.java89 EventHistory eventHistory = mPackageData.getEventHistory(SHORTCUT_ID); in testGetEventHistory() local
90 List<Event> events = eventHistory.queryEvents(Event.ALL_EVENT_TYPES, 0L, Long.MAX_VALUE); in testGetEventHistory()
108 EventHistory eventHistory = mPackageData.getEventHistory(SHORTCUT_ID); in testGetEventHistoryDefaultDialerAndSmsApp() local
109 List<Event> events = eventHistory.queryEvents(Event.ALL_EVENT_TYPES, 0L, Long.MAX_VALUE); in testGetEventHistoryDefaultDialerAndSmsApp()
126 EventHistory eventHistory = mPackageData.getEventHistory(SHORTCUT_ID); in testGetEventHistoryNotDefaultDialerOrSmsApp() local
127 List<Event> events = eventHistory.queryEvents(Event.ALL_EVENT_TYPES, 0L, Long.MAX_VALUE); in testGetEventHistoryNotDefaultDialerOrSmsApp()
144 EventHistory eventHistory = mPackageData.getEventHistory(SHORTCUT_ID); in testDeleteConversationData() local
145 List<Event> events = eventHistory.queryEvents(Event.ALL_EVENT_TYPES, 0L, Long.MAX_VALUE); in testDeleteConversationData()
150 eventHistory = mPackageData.getEventHistory(SHORTCUT_ID); in testDeleteConversationData()
151 events = eventHistory.queryEvents(Event.ALL_EVENT_TYPES, 0L, Long.MAX_VALUE); in testDeleteConversationData()
[all …]
/frameworks/base/services/people/java/com/android/server/people/prediction/
DConversationData.java33 @NonNull ConversationInfo conversationInfo, @NonNull EventHistory eventHistory) { in ConversationData() argument
37 mEventHistory = eventHistory; in ConversationData()
DShareTargetPredictor.java150 EventHistory eventHistory = null; in getDirectShareTargets() local
155 eventHistory = packageData.getEventHistory(shortcutId); in getDirectShareTargets()
158 shareTargets.add(new ShareTarget(appTarget, eventHistory, conversationInfo)); in getDirectShareTargets()
194 @Nullable EventHistory eventHistory, in ShareTarget() argument
197 mEventHistory = eventHistory; in ShareTarget()