Example usage for Java android.app.usage UsageStatsManager fields, constructors, methods, implement or subclass
The text is from its open source code.
int | INTERVAL_DAILY An interval type that spans a day. |
int | INTERVAL_YEARLY An interval type that spans a year. |
int | INTERVAL_BEST An interval type that will use the best fit interval for the given time range. |
UsageEvents | queryEvents(long beginTime, long endTime) Query for events in the given time range. |
List | queryUsageStats(int intervalType, long beginTime, long endTime) Gets application usage stats for the given time range, aggregated by the specified interval. |