Android APIs
Added in API level 21
package

android.app.usage

Classes

ConfigurationStats Represents the usage statistics of a device Configuration for a specific time range. 
UsageEvents A result returned from queryEvents(long, long) from which to read UsageEvents.Event objects. 
UsageEvents.Event An event representing a state change for a component. 
UsageStats Contains usage statistics for an app package for a specific time range. 
UsageStatsManager Provides access to device usage history and statistics.