summaryrefslogtreecommitdiffstats
path: root/services/usage/java
Commit message (Collapse)AuthorAgeFilesLines
* UsageStatsService: Update file index to prevent double checkinAdam Lesinski2014-11-072-14/+31
| | | | | | | | | We seem to have renamed a file as checked-in twice, which means we checked it in twice and created a malformed name with the suffix "-c-c" instead of the correct suffix "-c". Bug:18280677 Change-Id: Ie3164010898a333e5d9b97151d285ea376de799e
* Fix bug where checking-in more than once would cause an infinite loop in ↵Adam Lesinski2014-11-041-0/+1
| | | | | | | | | UsageStatsService - Forgot to increment loop variable :S Bug:18239732 Change-Id: Ie37a83584d7849108dbfd3bd4cbb595520d488b1
* Merge "Add dumpsys output to UsageStatsService, along with --checkin ↵Adam Lesinski2014-10-294-14/+240
|\ | | | | | | support" into lmp-mr1-dev
| * Add dumpsys output to UsageStatsService, along with --checkin supportAdam Lesinski2014-10-244-14/+240
| | | | | | | | | | Bug:17814138 Change-Id: If414ae5f4b8e4a2838f63f52d80e764915cee934
* | Get UsageStats if no PackageUsage is available for boot dexopt filtering.Jeff Hao2014-10-231-1/+6
|/ | | | | Bug: 17191977 Change-Id: I33e18459e49afa42b8e8218574a2434e5205a6da
* Use VMRuntime.isBootClassPathOnDiskBrian Carlstrom2014-09-301-0/+4
| | | | | Bug: 17679443 Change-Id: If53c236058a7237d735c2344a715cf0a36301f9b
* Merge "UsageStats should deal with changing time" into lmp-devAdam Lesinski2014-09-123-83/+175
|\
| * UsageStats should deal with changing timeAdam Lesinski2014-09-113-83/+175
| | | | | | | | | | | | | | | | | | 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
* | Apply cross-user restrictions to ShellAmith Yamasani2014-09-101-0/+1
|/ | | | | | | | | | | | | | Even though Shell user is allowed to perform cross-user actions, lock that path down if the target user has restrictions imposed by the profile owner device admin that prevents access via adb. If the profile owner has imposed DISALLOW_DEBUGGING_FEATURES, don't allow the shell user to make the following types of calls: start activities, make service calls, access content providers, send broadcasts, block/unblock packages, clear user data, etc. Bug: 15086577 Change-Id: I9669fc165953076f786ed51cbc17d20d6fa995c3
* Store time offsets for UsageStats XMLAdam Lesinski2014-09-056-87/+122
| | | | | | | This will make adjusting for time changes easier in the future. Change-Id: I49d2dda4cc6dcb1378a58c814849924f585e0417
* Returns UsageEvents from previous daysAdam Lesinski2014-09-055-173/+301
| | | | | | | | - Avoid writing to disk when querying UsageStats. - Use new UnixCalendar to avoid issues with Locale and TimeZone. Bug: 16951313 Change-Id: I2473b8ef8dc1e2f6be22d4c689b96e346bdcafd5
* Add Configuration changes to UsageStatsAdam Lesinski2014-09-045-105/+346
| | | | | Bug:17354208 Change-Id: I9b2f595e51b656607e30e798926cfb7e25134944
* Split up ComponentName in UsageEvents.EventAdam Lesinski2014-08-264-36/+57
| | | | | | | | Some events in the future may not have originated from a class, so we shouldn't be using ComponentName. Bug:17259858 Change-Id: Id7fe3245b91596cf27ae4ec51655602f01665622
* Fix NPE in UsageStats for new UserAdam Lesinski2014-08-122-3/+7
| | | | | | Bug:16946585 Change-Id: Ibd0d674681f3f49087305cea33ce7292f5d2229d
* Second iteration of the UsageStats APIAdam Lesinski2014-08-087-222/+605
| | | | | | | Based on feedback from API council, updated the API. Also added support for querying the event log. Change-Id: Ibaa008b9e5bd145acdfe8e20c25c2ed2d96be123
* Add Per-User logging of UsageStatsAdam Lesinski2014-07-252-233/+401
| | | | Change-Id: I4518c5d3c56b3821292accb886f9fb21f3a8b25f
* Add test UsageStats AppAdam Lesinski2014-07-221-2/+2
| | | | | | | Also fixed UsageStatsService to do the right thing when AppOps returns MODE_DEFAULT. Change-Id: I0bdb28350fb2528daf2859cdcbbf9ca48d96dde9
* Change UsageStatsService to check uses-permissionAdam Lesinski2014-07-211-4/+16
| | | | | | | Have UsageStatsService check permission grants when AppOps returns the default MODE_IGNORED mode for a package. Change-Id: I784a708451a56863b13fc5f178e10bba6ce37a2f
* First iteration of a public UsageStats APIAdam Lesinski2014-07-184-0/+860
UsageStats API that allows apps to get a list of packages that have been recently used, along with basic stats like how long they have been in the foreground and the most recent time they were running. Bug: 15165667 Change-Id: I2a2d1ff69bd0b5703ac3d9de1780df42ad90d439