Home
last modified time | relevance | path

Searched refs:EventStore (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DPackageDataTest.java83 EventStore eventStore = mPackageData.getEventStore(); in testGetEventHistory()
84 eventStore.getOrCreateEventHistory(EventStore.CATEGORY_SHORTCUT_BASED, SHORTCUT_ID) in testGetEventHistory()
86 eventStore.getOrCreateEventHistory(EventStore.CATEGORY_LOCUS_ID_BASED, LOCUS_ID.getId()) in testGetEventHistory()
100 EventStore eventStore = mPackageData.getEventStore(); in testGetEventHistoryDefaultDialerAndSmsApp()
101 eventStore.getOrCreateEventHistory(EventStore.CATEGORY_SHORTCUT_BASED, SHORTCUT_ID) in testGetEventHistoryDefaultDialerAndSmsApp()
103 eventStore.getOrCreateEventHistory(EventStore.CATEGORY_CALL, PHONE_NUMBER).addEvent(mE3); in testGetEventHistoryDefaultDialerAndSmsApp()
104 eventStore.getOrCreateEventHistory(EventStore.CATEGORY_SMS, PHONE_NUMBER).addEvent(mE4); in testGetEventHistoryDefaultDialerAndSmsApp()
118 EventStore eventStore = mPackageData.getEventStore(); in testGetEventHistoryNotDefaultDialerOrSmsApp()
119 eventStore.getOrCreateEventHistory(EventStore.CATEGORY_SHORTCUT_BASED, SHORTCUT_ID) in testGetEventHistoryNotDefaultDialerOrSmsApp()
121 eventStore.getOrCreateEventHistory(EventStore.CATEGORY_CALL, PHONE_NUMBER).addEvent(mE3); in testGetEventHistoryNotDefaultDialerOrSmsApp()
[all …]
DUsageStatsQueryHelperTest.java370 EventStore getEventStore() { in getEventStore()
375 private static class TestEventStore extends EventStore {
406 if (category == EventStore.CATEGORY_SHORTCUT_BASED) { in getOrCreateEventHistory()
408 } else if (category == EventStore.CATEGORY_LOCUS_ID_BASED) { in getOrCreateEventHistory()
/frameworks/base/services/people/java/com/android/server/people/data/
DPackageData.java19 import static com.android.server.people.data.EventStore.CATEGORY_CALL;
20 import static com.android.server.people.data.EventStore.CATEGORY_CLASS_BASED;
21 import static com.android.server.people.data.EventStore.CATEGORY_LOCUS_ID_BASED;
22 import static com.android.server.people.data.EventStore.CATEGORY_SHORTCUT_BASED;
23 import static com.android.server.people.data.EventStore.CATEGORY_SMS;
52 private final EventStore mEventStore;
72 mEventStore = new EventStore(mPackageDataDir, scheduledExecutorService); in PackageData()
209 EventStore getEventStore() { in getEventStore()
DEventStore.java39 class EventStore { class
71 EventStore(@NonNull File packageDir, in EventStore() method in EventStore
DDataManager.java523 EventStore.CATEGORY_SHORTCUT_BASED, shortcutId); in reportShareTargetEvent()
527 EventStore.CATEGORY_CLASS_BASED, appTarget.getClassName()); in reportShareTargetEvent()
570 packageData.getEventStore().deleteEventHistories(EventStore.CATEGORY_CALL); in pruneDataForUser()
573 packageData.getEventStore().deleteEventHistories(EventStore.CATEGORY_SMS); in pruneDataForUser()
1047 EventStore eventStore = defaultDialer.getEventStore(); in accept()
1049 EventStore.CATEGORY_CALL, phoneNumber).addEvent(event); in accept()
1093 EventStore eventStore = defaultSmsApp.getEventStore(); in accept()
1095 EventStore.CATEGORY_SMS, phoneNumber).addEvent(event); in accept()
1210 EventStore.CATEGORY_SHORTCUT_BASED, shortcutId); in onNotificationPosted()
1251 EventStore.CATEGORY_SHORTCUT_BASED, shortcutId); in onNotificationRemoved()
DUsageStatsQueryHelper.java214 EventStore.CATEGORY_SHORTCUT_BASED, shortcutId); in addEventByShortcutId()
226 EventStore.CATEGORY_LOCUS_ID_BASED, locusId.getId()); in addEventByLocusId()