Home
last modified time | relevance | path

Searched refs:UsageEvents (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageLogActivity.java19 import android.app.usage.UsageEvents;
65 UsageEvents events = mUsageStatsManager.queryEvents(mLastTime, now); in run()
75 private final CircularArray<UsageEvents.Event> mEvents = new CircularArray<>(MAX_EVENTS);
77 public long update(UsageEvents results) { in update()
80 UsageEvents.Event event = new UsageEvents.Event(); in update()
101 public UsageEvents.Event getItem(int position) { in getItem()
113 if (eventType == UsageEvents.Event.CONFIGURATION_CHANGE) { in getItemViewType()
121 final UsageEvents.Event event = getItem(position); in getView()
127 if (event.getEventType() == UsageEvents.Event.CONFIGURATION_CHANGE) { in getView()
151 event.getEventType() == UsageEvents.Event.CONFIGURATION_CHANGE) { in getView()
[all …]
/frameworks/base/services/usage/java/com/android/server/usage/
DIntervalStats.java18 import static android.app.usage.UsageEvents.Event.ACTIVITY_PAUSED;
19 import static android.app.usage.UsageEvents.Event.ACTIVITY_RESUMED;
20 import static android.app.usage.UsageEvents.Event.ACTIVITY_STOPPED;
21 import static android.app.usage.UsageEvents.Event.CONFIGURATION_CHANGE;
22 import static android.app.usage.UsageEvents.Event.CONTINUE_PREVIOUS_DAY;
23 import static android.app.usage.UsageEvents.Event.CONTINUING_FOREGROUND_SERVICE;
24 import static android.app.usage.UsageEvents.Event.DEVICE_SHUTDOWN;
25 import static android.app.usage.UsageEvents.Event.END_OF_DAY;
26 import static android.app.usage.UsageEvents.Event.FLUSH_TO_DISK;
27 import static android.app.usage.UsageEvents.Event.FOREGROUND_SERVICE_START;
[all …]
DUsageStatsXmlV1.java19 import android.app.usage.UsageEvents;
210 final UsageEvents.Event event = statsOut.buildEvent(packageName, className); in loadEvent()
226 case UsageEvents.Event.CONFIGURATION_CHANGE: in loadEvent()
230 case UsageEvents.Event.SHORTCUT_INVOCATION: in loadEvent()
234 case UsageEvents.Event.STANDBY_BUCKET_CHANGED: in loadEvent()
237 case UsageEvents.Event.NOTIFICATION_INTERRUPTION: in loadEvent()
334 final UsageEvents.Event event) throws IOException { in writeEvent()
349 case UsageEvents.Event.CONFIGURATION_CHANGE: in writeEvent()
354 case UsageEvents.Event.SHORTCUT_INVOCATION: in writeEvent()
359 case UsageEvents.Event.STANDBY_BUCKET_CHANGED: in writeEvent()
[all …]
DAppStandbyController.java55 import android.app.usage.UsageEvents;
872 void reportEvent(UsageEvents.Event event, long elapsedRealtime, int userId) { in reportEvent()
880 if ((event.mEventType == UsageEvents.Event.ACTIVITY_RESUMED in reportEvent()
881 || event.mEventType == UsageEvents.Event.ACTIVITY_PAUSED in reportEvent()
882 || event.mEventType == UsageEvents.Event.SYSTEM_INTERACTION in reportEvent()
883 || event.mEventType == UsageEvents.Event.USER_INTERACTION in reportEvent()
884 || event.mEventType == UsageEvents.Event.NOTIFICATION_SEEN in reportEvent()
885 || event.mEventType == UsageEvents.Event.SLICE_PINNED in reportEvent()
886 || event.mEventType == UsageEvents.Event.SLICE_PINNED_PRIV in reportEvent()
887 || event.mEventType == UsageEvents.Event.FOREGROUND_SERVICE_START)) { in reportEvent()
[all …]
DUsageStatsProto.java19 import android.app.usage.UsageEvents;
300 UsageEvents.Event event = statsOut.buildEvent(proto, stringPool); in loadEvent()
414 final UsageEvents.Event event) throws IOException { in writeEvent()
463 case UsageEvents.Event.CONFIGURATION_CHANGE: in writeEvent()
468 case UsageEvents.Event.SHORTCUT_INVOCATION: in writeEvent()
473 case UsageEvents.Event.STANDBY_BUCKET_CHANGED: in writeEvent()
478 case UsageEvents.Event.NOTIFICATION_INTERRUPTION: in writeEvent()
DUsageStatsService.java19 import static android.app.usage.UsageEvents.Event.CHOOSER_ACTION;
20 import static android.app.usage.UsageEvents.Event.CONFIGURATION_CHANGE;
21 import static android.app.usage.UsageEvents.Event.DEVICE_SHUTDOWN;
22 import static android.app.usage.UsageEvents.Event.FLUSH_TO_DISK;
23 import static android.app.usage.UsageEvents.Event.NOTIFICATION_INTERRUPTION;
24 import static android.app.usage.UsageEvents.Event.SHORTCUT_INVOCATION;
39 import android.app.usage.UsageEvents;
40 import android.app.usage.UsageEvents.Event;
688 UsageEvents queryEvents(int userId, long beginTime, long endTime, in queryEvents()
705 UsageEvents queryEventsForPackage(int userId, long beginTime, long endTime, in queryEventsForPackage()
[all …]
DUserUsageStatsService.java19 import static android.app.usage.UsageEvents.Event.DEVICE_SHUTDOWN;
20 import static android.app.usage.UsageEvents.Event.DEVICE_STARTUP;
32 import android.app.usage.UsageEvents;
33 import android.app.usage.UsageEvents.Event;
374 UsageEvents queryEvents(final long beginTime, final long endTime, in queryEvents()
416 return new UsageEvents(results, table, true); in queryEvents()
419 UsageEvents queryEventsForPackage(final long beginTime, final long endTime, in queryEventsForPackage()
455 return new UsageEvents(results, table, includeTaskRoot); in queryEventsForPackage()
/frameworks/base/tests/UsageStatsPerfTests/src/com/android/frameworks/perftests/usage/tests/
DUsageStatsDatabasePerfTest.java21 import android.app.usage.UsageEvents;
61 private static final StatCombiner<UsageEvents.Event> sUsageStatsCombiner =
62 new StatCombiner<UsageEvents.Event>() {
65 List<UsageEvents.Event> accResult) {
88 UsageEvents.Event event = new UsageEvents.Event(); in populateIntervalStats()
92 event.mEventType = UsageEvents.Event.ACTIVITY_RESUMED; in populateIntervalStats()
121 List<UsageEvents.Event> temp = sUsageStatsDatabase.queryUsageStats( in runQueryUsageStatsTest()
/frameworks/base/core/java/android/app/usage/
DIUsageStatsManager.aidl20 import android.app.usage.UsageEvents;
39 UsageEvents queryEvents(long beginTime, long endTime, String callingPackage); in queryEvents()
40 UsageEvents queryEventsForPackage(long beginTime, long endTime, String callingPackage); in queryEventsForPackage()
41 UsageEvents queryEventsForUser(long beginTime, long endTime, int userId, String callingPackage); in queryEventsForUser()
42UsageEvents queryEventsForPackageForUser(long beginTime, long endTime, int userId, String pkg, Str… in queryEventsForPackageForUser()
DUsageEvents.java36 public final class UsageEvents implements Parcelable { class
606 public UsageEvents(Parcel in) { in UsageEvents() method in UsageEvents
631 UsageEvents() { in UsageEvents() method in UsageEvents
641 public UsageEvents(List<Event> events, String[] stringPool) { in UsageEvents() method in UsageEvents
649 public UsageEvents(List<Event> events, String[] stringPool, boolean includeTaskRoots) { in UsageEvents() method in UsageEvents
897 …lic static final @android.annotation.NonNull Creator<UsageEvents> CREATOR = new Creator<UsageEvent…
899 public UsageEvents createFromParcel(Parcel source) {
900 return new UsageEvents(source);
904 public UsageEvents[] newArray(int size) {
905 return new UsageEvents[size];
DUsageStats.java19 import static android.app.usage.UsageEvents.Event.ACTIVITY_DESTROYED;
20 import static android.app.usage.UsageEvents.Event.ACTIVITY_PAUSED;
21 import static android.app.usage.UsageEvents.Event.ACTIVITY_RESUMED;
22 import static android.app.usage.UsageEvents.Event.ACTIVITY_STOPPED;
23 import static android.app.usage.UsageEvents.Event.CONTINUING_FOREGROUND_SERVICE;
24 import static android.app.usage.UsageEvents.Event.DEVICE_SHUTDOWN;
25 import static android.app.usage.UsageEvents.Event.END_OF_DAY;
26 import static android.app.usage.UsageEvents.Event.FLUSH_TO_DISK;
27 import static android.app.usage.UsageEvents.Event.FOREGROUND_SERVICE_START;
28 import static android.app.usage.UsageEvents.Event.FOREGROUND_SERVICE_STOP;
[all …]
DEventList.java29 private final ArrayList<UsageEvents.Event> mEvents;
58 public UsageEvents.Event get(int index) { in get()
68 public void insert(UsageEvents.Event event) { in insert()
DUsageStatsManager.java267 private static final UsageEvents sEmptyResults = new UsageEvents();
406 public UsageEvents queryEvents(long beginTime, long endTime) { in queryEvents()
408 UsageEvents iter = mService.queryEvents(beginTime, endTime, in queryEvents()
431 public UsageEvents queryEventsForSelf(long beginTime, long endTime) { in queryEventsForSelf()
433 final UsageEvents events = mService.queryEventsForPackage(beginTime, endTime, in queryEventsForSelf()
DUsageEvents.aidl19 parcelable UsageEvents;
/frameworks/base/core/tests/coretests/src/android/app/usage/
DUsageStatsTest.java19 import static android.app.usage.UsageEvents.Event.ACTIVITY_DESTROYED;
20 import static android.app.usage.UsageEvents.Event.ACTIVITY_PAUSED;
21 import static android.app.usage.UsageEvents.Event.ACTIVITY_RESUMED;
22 import static android.app.usage.UsageEvents.Event.ACTIVITY_STOPPED;
23 import static android.app.usage.UsageEvents.Event.CONTINUING_FOREGROUND_SERVICE;
24 import static android.app.usage.UsageEvents.Event.DEVICE_SHUTDOWN;
25 import static android.app.usage.UsageEvents.Event.END_OF_DAY;
26 import static android.app.usage.UsageEvents.Event.FLUSH_TO_DISK;
27 import static android.app.usage.UsageEvents.Event.FOREGROUND_SERVICE_START;
28 import static android.app.usage.UsageEvents.Event.FOREGROUND_SERVICE_STOP;
[all …]
DEventListTest.java38 private UsageEvents.Event getUsageEvent(long timeStamp) { in getUsageEvent()
39 final UsageEvents.Event event = new UsageEvents.Event(); in getUsageEvent()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppStandbyControllerTests.java19 import static android.app.usage.UsageEvents.Event.FOREGROUND_SERVICE_START;
20 import static android.app.usage.UsageEvents.Event.NOTIFICATION_SEEN;
21 import static android.app.usage.UsageEvents.Event.SLICE_PINNED;
22 import static android.app.usage.UsageEvents.Event.SLICE_PINNED_PRIV;
23 import static android.app.usage.UsageEvents.Event.SYSTEM_INTERACTION;
24 import static android.app.usage.UsageEvents.Event.USER_INTERACTION;
48 import android.app.usage.UsageEvents;
519 UsageEvents.Event ev = new UsageEvents.Event(); in reportEvent()
DUsageStatsDatabaseTest.java19 import static android.app.usage.UsageEvents.Event.MAX_EVENT_TYPE;
26 import android.app.usage.UsageEvents.Event;
/frameworks/base/core/java/android/service/contentcapture/
DActivityEvent.java23 import android.app.usage.UsageEvents.Event;
/frameworks/base/core/proto/android/server/
Dusagestatsservice.proto71 // Stores the relevant information from a UsageEvents.Event
/frameworks/base/services/core/java/com/android/server/slice/
DSliceManagerService.java19 import static android.app.usage.UsageEvents.Event.SLICE_PINNED;
20 import static android.app.usage.UsageEvents.Event.SLICE_PINNED_PRIV;
/frameworks/base/services/core/java/com/android/server/am/
DOomAdjuster.java63 import android.app.usage.UsageEvents;
2034 UsageEvents.Event.SYSTEM_INTERACTION); in maybeUpdateUsageStatsLocked()
DUserController.java50 import android.app.usage.UsageEvents;
1133 mInjector.reportGlobalUsageEventLocked(UsageEvents.Event.SCREEN_NON_INTERACTIVE);
DActivityManagerService.java190 import android.app.usage.UsageEvents;
191 import android.app.usage.UsageEvents.Event;
3149 started ? UsageEvents.Event.FOREGROUND_SERVICE_START in updateForegroundServiceUsageStats()
3150 : UsageEvents.Event.FOREGROUND_SERVICE_STOP, 0, null); in updateForegroundServiceUsageStats()
7914 ? UsageEvents.Event.SCREEN_INTERACTIVE in reportCurWakefulnessUsageEventLocked()
7915 : UsageEvents.Event.SCREEN_NON_INTERACTIVE); in reportCurWakefulnessUsageEventLocked()
15884 UsageEvents.Event.SYSTEM_INTERACTION); in startInstrumentation()
18416 ? UsageEvents.Event.KEYGUARD_SHOWN in reportCurKeyguardUsageEvent()
18417 : UsageEvents.Event.KEYGUARD_HIDDEN); in reportCurKeyguardUsageEvent()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java129 import android.app.usage.UsageEvents;
2210 UsageEvents.Event.NOTIFICATION_SEEN);
2298 UsageEvents.Event.USER_INTERACTION);

12