Home
last modified time | relevance | path

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

/frameworks/base/services/usage/java/com/android/server/usage/
DIntervalStats.java20 import android.app.usage.UsageEvents;
33 public TimeSparseArray<UsageEvents.Event> events;
75 UsageEvents.Event buildEvent(String packageName, String className) { in buildEvent()
76 UsageEvents.Event event = new UsageEvents.Event(); in buildEvent()
86 case UsageEvents.Event.MOVE_TO_FOREGROUND: in isStatefulEvent()
87 case UsageEvents.Event.MOVE_TO_BACKGROUND: in isStatefulEvent()
88 case UsageEvents.Event.END_OF_DAY: in isStatefulEvent()
89 case UsageEvents.Event.CONTINUE_PREVIOUS_DAY: in isStatefulEvent()
100 if (eventType == UsageEvents.Event.MOVE_TO_BACKGROUND || in update()
101 eventType == UsageEvents.Event.END_OF_DAY) { in update()
[all …]
DUserUsageStatsService.java21 import android.app.usage.UsageEvents;
128 if (pkgStats.mLastEvent == UsageEvents.Event.MOVE_TO_FOREGROUND || in init()
129 pkgStats.mLastEvent == UsageEvents.Event.CONTINUE_PREVIOUS_DAY) { in init()
131 UsageEvents.Event.END_OF_DAY); in init()
150 void reportEvent(UsageEvents.Event event) { in reportEvent()
165 if (event.mEventType == UsageEvents.Event.CONFIGURATION_CHANGE && in reportEvent()
176 if (event.mEventType != UsageEvents.Event.SYSTEM_INTERACTION) { in reportEvent()
181 if (event.mEventType == UsageEvents.Event.CONFIGURATION_CHANGE) { in reportEvent()
183 } else if (event.mEventType == UsageEvents.Event.CHOOSER_ACTION) { in reportEvent()
312 UsageEvents queryEvents(final long beginTime, final long endTime, in queryEvents()
[all …]
DUsageStatsXmlV1.java26 import android.app.usage.UsageEvents;
159 final UsageEvents.Event event = statsOut.buildEvent(packageName, className); in loadEvent()
168 case UsageEvents.Event.CONFIGURATION_CHANGE: in loadEvent()
172 case UsageEvents.Event.SHORTCUT_INVOCATION: in loadEvent()
255 final UsageEvents.Event event) throws IOException { in writeEvent()
269 case UsageEvents.Event.CONFIGURATION_CHANGE: in writeEvent()
274 case UsageEvents.Event.SHORTCUT_INVOCATION: in writeEvent()
DUsageStatsService.java27 import android.app.usage.UsageEvents;
28 import android.app.usage.UsageEvents.Event;
692 private void convertToSystemTimeLocked(UsageEvents.Event event) { in convertToSystemTimeLocked()
709 void reportEvent(UsageEvents.Event event, int userId) { in reportEvent()
873 UsageEvents queryEvents(int userId, long beginTime, long endTime, in queryEvents()
1239 reportEvent((UsageEvents.Event) msg.obj, msg.arg1); in handleMessage()
1432 public UsageEvents queryEvents(long beginTime, long endTime, String callingPackage) { in queryEvents()
1526 UsageEvents.Event event = new UsageEvents.Event(); in reportChooserSelection()
1558 UsageEvents.Event event = new UsageEvents.Event(); in reportEvent()
1576 UsageEvents.Event event = new UsageEvents.Event(); in reportEvent()
[all …]
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageLogActivity.java19 import android.app.usage.UsageEvents;
64 UsageEvents events = mUsageStatsManager.queryEvents(mLastTime, now); in run()
74 private final CircularArray<UsageEvents.Event> mEvents = new CircularArray<>(MAX_EVENTS);
76 public long update(UsageEvents results) { in update()
79 UsageEvents.Event event = new UsageEvents.Event(); in update()
100 public UsageEvents.Event getItem(int position) { in getItem()
112 if (eventType == UsageEvents.Event.CONFIGURATION_CHANGE) { in getItemViewType()
120 final UsageEvents.Event event = getItem(position); in getView()
126 if (event.getEventType() == UsageEvents.Event.CONFIGURATION_CHANGE) { in getView()
150 event.getEventType() == UsageEvents.Event.CONFIGURATION_CHANGE) { in getView()
[all …]
/frameworks/base/core/java/android/app/usage/
DUsageEvents.java32 public final class UsageEvents implements Parcelable { class
275 public UsageEvents(Parcel in) { in UsageEvents() method in UsageEvents
295 UsageEvents() { in UsageEvents() method in UsageEvents
303 public UsageEvents(List<Event> events, String[] stringPool) { in UsageEvents() method in UsageEvents
495 public static final Creator<UsageEvents> CREATOR = new Creator<UsageEvents>() {
497 public UsageEvents createFromParcel(Parcel source) {
498 return new UsageEvents(source);
502 public UsageEvents[] newArray(int size) {
503 return new UsageEvents[size];
DUsageStatsManager.java92 private static final UsageEvents sEmptyResults = new UsageEvents();
183 public UsageEvents queryEvents(long beginTime, long endTime) { in queryEvents()
185 UsageEvents iter = mService.queryEvents(beginTime, endTime, in queryEvents()
DIUsageStatsManager.aidl19 import android.app.usage.UsageEvents;
32 UsageEvents queryEvents(long beginTime, long endTime, String callingPackage); in queryEvents()
DUsageEvents.aidl19 parcelable UsageEvents;
DUsageStats.java94 ret.mPackageName = UsageEvents.INSTANT_APP_PACKAGE_NAME; in getObfuscatedForInstantApp()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java79 import android.app.usage.UsageEvents;
2070 UsageEvents.Event.USER_INTERACTION);
/frameworks/base/
DAndroid.mk737 frameworks/base/core/java/android/app/usage/UsageEvents.aidl \
Dpreloaded-classes677 android.app.usage.UsageEvents
678 android.app.usage.UsageEvents$1
Dcompiled-classes-phone669 android.app.usage.UsageEvents
670 android.app.usage.UsageEvents$1
671 android.app.usage.UsageEvents$Event
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java241 import android.app.usage.UsageEvents;
4022 UsageEvents.Event.MOVE_TO_FOREGROUND); in updateUsageStats()
4030 UsageEvents.Event.MOVE_TO_BACKGROUND); in updateUsageStats()
22272 UsageEvents.Event.SYSTEM_INTERACTION);
/frameworks/base/services/
Dprofile-classes393 Landroid/app/usage/UsageEvents;
394 Landroid/app/usage/UsageEvents$1;
395 Landroid/app/usage/UsageEvents$Event;
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt5617 public final class UsageEvents implements android.os.Parcelable {
5619 method public boolean getNextEvent(android.app.usage.UsageEvents.Event);
5622 field public static final android.os.Parcelable.Creator<android.app.usage.UsageEvents> CREATOR;
5625 public static final class UsageEvents.Event {
5626 ctor public UsageEvents.Event();
5654 method public android.app.usage.UsageEvents queryEvents(long, long);
/frameworks/base/api/
Dcurrent.txt6985 public final class UsageEvents implements android.os.Parcelable {
6987 method public boolean getNextEvent(android.app.usage.UsageEvents.Event);
6990 field public static final android.os.Parcelable.Creator<android.app.usage.UsageEvents> CREATOR;
6993 public static final class UsageEvents.Event {
6994 ctor public UsageEvents.Event();
7026 method public android.app.usage.UsageEvents queryEvents(long, long);
Dsystem-current.txt7455 public final class UsageEvents implements android.os.Parcelable {
7457 method public boolean getNextEvent(android.app.usage.UsageEvents.Event);
7460 field public static final android.os.Parcelable.Creator<android.app.usage.UsageEvents> CREATOR;
7463 public static final class UsageEvents.Event {
7464 ctor public UsageEvents.Event();
7496 method public android.app.usage.UsageEvents queryEvents(long, long);