# Device usage statistics - [Introduction](#section11660541593) - [Directory Structure](#section161941989596) - [Instruction](#section1312121216216) - [Available APIs](#section1551164914237) - [Usage Guidelines](#section129654513264) - [Repositories Involved](#section1371113476307) ## Introduction The **device usage statistics** includes app usage, notification usage, system usage and other usage statistics. For example, application usage statistics is used to save and query application usage details, event log data and application grouping.The application records (usage history statistics and usage event records) cached by the component will be periodically refreshed to the database for persistent storage. ## Directory Structure ``` /foundation/resourceschedule/device_usage_statistics ├── BUILD.gn # Module compilation script ├── LICENSE # Open source protocol ├── adapter # Adaptation directory ├── bundle.json # Component decoupling and compiling script ├── frameworks # Framework layer directory ├── interfaces │ ├── innerkits # Internal interface directory │ └── kits # External interface directory ├── services # Service layer directory └── test # Testing case directory ``` ## Instruction ### Available APIs Device usage statistics interfaces include app usage, notification usage, system usage and other interfaces. Taking app usage interface as an example, the main exposed interfaces are as follows.