diff --git a/BUILD.gn b/BUILD.gn index fa3d6f6591eb40e29baf97bca530c751de46a3e0..2891dcc89e4b5bfae46b2a459c6359bd2dc05169 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -1,4 +1,4 @@ -import("//build/ohos.gni") +import("device_usage_statistics.gni") import("//build/ohos/sa_profile/sa_profile.gni") ################################################## @@ -6,7 +6,7 @@ ohos_sa_profile("bundleactive_sa_profile") { sources = [ "sa_profile/1906.xml" ] - part_name = "bundleactive" + part_name = "device_usage_statistics" } ################################################## @@ -28,7 +28,7 @@ ohos_shared_library("bundleactiveinner") { "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk", "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy" ] - part_name = "bundleactive" + part_name = "${device_usage_statistics_part_name}" subsystem_name = "resourceschedule" } ################################################## bundleactiveinner end @@ -41,7 +41,7 @@ ohos_prebuilt_etc("bundleactive_service_init") { source = "init/bundleactive_service.rc" } relative_install_dir = "init" - part_name = "bundleactive" + part_name = "${device_usage_statistics_part_name}" subsystem_name = "resourceschedule" } ################################################## @@ -91,7 +91,7 @@ ohos_shared_library("bundleactiveservice") { "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk", "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy" ] - part_name = "bundleactive" + part_name = "${device_usage_statistics_part_name}" subsystem_name = "resourceschedule" } ################################################## bundleactiveservice end diff --git a/README_zh.md b/README_ZH.md similarity index 83% rename from README_zh.md rename to README_ZH.md index 26da36953eb286267e2fa6896a410a78c061105a..8d12502c47d985eba0f36498d34571d176f47dfd 100644 --- a/README_zh.md +++ b/README_ZH.md @@ -9,8 +9,8 @@ ## 简介 -设备使用信息统计,包括app usage/notification usage/system usage等使用统计。例如应用使用信息统计,用于保存和查询应用使用详情、事件日志数据、应用分组情况。 -部件缓存的应用记录(使用历史统计和使用事件记录)会定期刷新到数据库进行持久化保存。 +设备使用信息统计,包括app usage/notification usage/system usage等使用统计。例如应用使用信息统计,用于保存和查询应用使用详情(app usage)、事件日志数据(event log)、应用分组(bundle group)情况。 +部件缓存的应用记录(使用历史统计和使用事件记录)会在事件上报后30分钟内刷新到数据库持久化保存。 ## 目录 @@ -23,8 +23,8 @@ │ └── kits # 对外接口目录 ├── services # 服务层目录 ├── frameworks -│ ├── JS # 外部JS接口实现目录 -│ └── native # 外部native接口实现目录 +│ ├── JS # 对外JS接口实现目录 +│ └── native # 对外Native接口实现目录 ├── adapter # 适配目录 └── test # 测试用例目录 ``` @@ -33,7 +33,7 @@ ### 接口说明 -设备使用信息统计接口,包括app usage/notification usage/system usage等接口,以app usage接口为例,对外暴露的主要接口如下所示。 +设备使用信息统计接口,包括app usage/notification usage/system usage等接口,以app usage接口为例,对外提供主要接口如下。