File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,30 @@ export function queryAndAggregateUsageStats(
41
41
}
42
42
43
43
export interface UsageEvent {
44
- eventType : number ;
45
- timestamp : number ;
44
+ eventType : EventType ;
45
+ timeStamp : number ;
46
46
packageName : string ;
47
47
}
48
48
49
+ export enum EventType {
50
+ NONE = 0 ,
51
+ ACTIVITY_RESUMED = 1 ,
52
+ ACTIVITY_PAUSED = 2 ,
53
+ CONFIGURATION_CHANGE = 5 ,
54
+ USER_INTERACTION = 7 ,
55
+ SHORTCUT_INVOCATION = 8 ,
56
+ STANDBY_BUCKET_CHANGED = 11 ,
57
+ SCREEN_INTERACTIVE = 15 ,
58
+ SCREEN_NON_INTERACTIVE = 16 ,
59
+ KEYGUARD_SHOWN = 17 ,
60
+ KEYGUARD_HIDDEN = 18 ,
61
+ FOREGROUND_SERVICE_START = 19 ,
62
+ FOREGROUND_SERVICE_STOP = 20 ,
63
+ ACTIVITY_STOPPED = 23 ,
64
+ DEVICE_SHUTDOWN = 26 ,
65
+ DEVICE_STARTUP = 27 ,
66
+ }
67
+
49
68
export function queryEvents (
50
69
startTime : number ,
51
70
endTime : number
You can’t perform that action at this time.
0 commit comments