summaryrefslogtreecommitdiffstats
path: root/tests/UsageStatsTest
Commit message (Collapse)AuthorAgeFilesLines
* UsageStats: Change INTERACTION to SYSTEM_INTERACTIONAdam Lesinski2015-06-111-4/+2
| | | | | | | | | | | SYSTEM_INTERACTION events are signals to the system for a package's implicit actions (service bound, etc). These should not affect the API visible stats like lastTimeUsed, etc. USER_INTERACTION is for user initiated actions (notification interaction, etc). Bug:21761781 Change-Id: I4585cf35fbb158612a3c737710108bec34e89183
* Add generic "INTERACTION" event type to UsageStatsManagerAdam Lesinski2015-03-021-0/+3
| | | | | | | | This will allow for updating a package's last time used property for packages that are interacted in ways other than launching their activities (interacting with notifications, etc.) Change-Id: Ic6f9519f46fa04abd37ea6fc9475bcd9ea721003
* UsageStats should deal with changing timeAdam Lesinski2014-09-111-1/+4
| | | | | | | | | When the system time is changed, the UsageStats API will modify all existing entries to correspond with the new time change. If the time changed when the device was off, stats in the future will be deleted. Change-Id: Ica3e9917d4d1a180f97700e52ab390e3673e1e82
* Add Configuration changes to UsageStatsAdam Lesinski2014-09-044-31/+80
| | | | | Bug:17354208 Change-Id: I9b2f595e51b656607e30e798926cfb7e25134944
* Make UsageStats API comply with API CouncilAdam Lesinski2014-08-291-8/+4
| | | | | | | | - Fix documentation to mention units of time in APIs. - Return a Map instead of an ArrayMap Bug:17289531 Change-Id: I0a2cfdc0bc003eeeb65a16e37bb7b991624b2853
* Split up ComponentName in UsageEvents.EventAdam Lesinski2014-08-261-1/+1
| | | | | | | | Some events in the future may not have originated from a class, so we shouldn't be using ComponentName. Bug:17259858 Change-Id: Id7fe3245b91596cf27ae4ec51655602f01665622
* Second iteration of the UsageStats APIAdam Lesinski2014-08-084-15/+179
| | | | | | | Based on feedback from API council, updated the API. Also added support for querying the event log. Change-Id: Ibaa008b9e5bd145acdfe8e20c25c2ed2d96be123
* Add test UsageStats AppAdam Lesinski2014-07-224-0/+176
Also fixed UsageStatsService to do the right thing when AppOps returns MODE_DEFAULT. Change-Id: I0bdb28350fb2528daf2859cdcbbf9ca48d96dde9