/foundation/resourceschedule/device_usage_statistics/interfaces/kits/bundlestats/napi/include/ |
H A D | bundle_state_query_napi.h | 31 napi_value QueryDeviceEventStats(napi_env env, napi_callback_info info);
|
/foundation/resourceschedule/device_usage_statistics/test/unittest/ |
H A D | device_usage_statistics_mock_test.cpp | 105 EXPECT_NE(BundleActiveClient::GetInstance().QueryDeviceEventStats(0, g_largeNum, eventStats), ERR_OK); in HWTEST_F() 142 DelayedSingleton<BundleActiveService>::GetInstance()->QueryDeviceEventStats(0, g_largeNum, eventStats, -1); in HWTEST_F() 290 EXPECT_NE(bundleActiveCore->QueryDeviceEventStats(0, g_largeNum, eventStats, g_defaultUserId), ERR_OK); in HWTEST_F() 312 EXPECT_NE(bundleActiveCore->QueryDeviceEventStats(0, g_largeNum, eventStats, g_commonUserid), ERR_OK); in HWTEST_F() 403 database->QueryDeviceEventStats(eventId, beginTime, endTime, eventStats, userId); in HWTEST_F()
|
H A D | device_usage_statistics_multi_test.cpp | 289 * @tc.desc: QueryDeviceEventStats
296 int32_t errCode = BundleActiveClient::GetInstance().QueryDeviceEventStats(0, g_largeNum, eventStats);
in MultiTestQueryDeviceEventStats() 298 errCode = BundleActiveClient::GetInstance().QueryDeviceEventStats(0, g_largeNum, eventStats, g_commonUserid);
in MultiTestQueryDeviceEventStats()
|
H A D | device_usage_statistics_test.cpp | 303 * @tc.desc: QueryDeviceEventStats 311 int32_t errCode = BundleActiveClient::GetInstance().QueryDeviceEventStats(0, g_largeNum, eventStats); in HWTEST_F() 313 errCode = BundleActiveClient::GetInstance().QueryDeviceEventStats(0, g_largeNum, eventStats, g_commonUserid); in HWTEST_F()
|
H A D | package_usage_test.cpp | 347 * @tc.desc: QueryDeviceEventStats 362 bundleUserService->QueryDeviceEventStats(beginTime, endTime, eventStats, userId); in HWTEST_F() 365 bundleUserService->QueryDeviceEventStats(beginTime, endTime, eventStats, userId); in HWTEST_F() 368 bundleUserService->QueryDeviceEventStats(beginTime, endTime, eventStats, userId); in HWTEST_F() 372 bundleUserService->QueryDeviceEventStats(beginTime, endTime, eventStats, userId); in HWTEST_F()
|
H A D | device_usage_statistics_service_test.cpp | 1180 * @tc.desc: QueryDeviceEventStats 1194 BUNDLE_ACTIVE_LOGI("database->QueryDeviceEventStats"); in HWTEST_F() 1195 database->QueryDeviceEventStats(eventId, beginTime, endTime, eventStats, userId); in HWTEST_F()
|
/foundation/resourceschedule/device_usage_statistics/services/common/include/ |
H A D | ibundle_active_service.h | 135 * function: QueryDeviceEventStats, query all from event stats in specific time span for calling user. 140 virtual ErrCode QueryDeviceEventStats(int64_t beginTime, int64_t endTime,
|
H A D | bundle_active_service.h | 154 * @brief QueryDeviceEventStats, query all from event stats in specific time span for calling user. 162 ErrCode QueryDeviceEventStats(int64_t beginTime, int64_t endTime,
|
H A D | bundle_active_core.h | 177 * function: QueryDeviceEventStats, query all from event stats in specific time span for calling user. 182 ErrCode QueryDeviceEventStats(int64_t beginTime, int64_t endTime,
|
H A D | bundle_active_usage_database.h | 79 void QueryDeviceEventStats(int32_t eventId, int64_t beginTime, int64_t endTime,
|
/foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/include/ |
H A D | bundle_active_client.h | 153 * @brief QueryDeviceEventStats, query all from event stats in specific time span for calling user. 161 ErrCode QueryDeviceEventStats(int64_t beginTime, int64_t endTime,
|
H A D | bundle_active_proxy.h | 101 * function: QueryDeviceEventStats, query all from event stats in specific time span for calling user. 106 ErrCode QueryDeviceEventStats(int64_t beginTime, int64_t endTime,
|
/foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/src/ |
H A D | bundle_active_client.cpp | 195 ErrCode BundleActiveClient::QueryDeviceEventStats(int64_t beginTime, int64_t endTime, in QueryDeviceEventStats() function in OHOS::DeviceUsageStats::BundleActiveClient 203 return bundleActiveProxy_->QueryDeviceEventStats(beginTime, endTime, eventStats, userId); in QueryDeviceEventStats()
|
H A D | bundle_active_proxy.cpp | 322 ErrCode BundleActiveProxy::QueryDeviceEventStats(int64_t beginTime, int64_t endTime, in QueryDeviceEventStats() function in OHOS::DeviceUsageStats::BundleActiveProxy 328 BUNDLE_ACTIVE_LOGD("QueryDeviceEventStats name is %{public}s, eventId is %{public}d, count is %{public}d", in QueryDeviceEventStats()
|
/foundation/resourceschedule/device_usage_statistics/frameworks/src/ |
H A D | usage_statistics_init.cpp | 51 DECLARE_NAPI_FUNCTION("queryDeviceEventStats", QueryDeviceEventStats), in UsageStatisticsInit()
|
H A D | bundle_state_query_napi.cpp | 730 .QueryDeviceEventStats(asyncCallbackInfo->beginTime, in QueryDeviceEventStatsAsync() 733 BUNDLE_ACTIVE_LOGE("QueryDeviceEventStats, asyncCallbackInfo == nullptr"); in QueryDeviceEventStatsAsync() 748 napi_value QueryDeviceEventStats(napi_env env, napi_callback_info info) in QueryDeviceEventStats() function 765 NAPI_CALL(env, napi_create_string_latin1(env, "QueryDeviceEventStats", NAPI_AUTO_LENGTH, &resourceName)); in QueryDeviceEventStats()
|
/foundation/resourceschedule/device_usage_statistics/services/packageusage/src/ |
H A D | bundle_active_user_service.cpp | 542 int32_t BundleActiveUserService::QueryDeviceEventStats(int64_t beginTime, int64_t endTime, in QueryDeviceEventStats() function in OHOS::DeviceUsageStats::BundleActiveUserService 545 BUNDLE_ACTIVE_LOGI("QueryDeviceEventStats called"); in QueryDeviceEventStats() 555 database_.QueryDeviceEventStats(BundleActiveEvent::SYSTEM_LOCK, beginTime, endTime, systemEventStats, userId); in QueryDeviceEventStats() 556 database_.QueryDeviceEventStats(BundleActiveEvent::SYSTEM_UNLOCK, beginTime, endTime, systemEventStats, userId); in QueryDeviceEventStats() 557 database_.QueryDeviceEventStats(BundleActiveEvent::SYSTEM_SLEEP, beginTime, endTime, systemEventStats, userId); in QueryDeviceEventStats() 558 database_.QueryDeviceEventStats(BundleActiveEvent::SYSTEM_WAKEUP, beginTime, endTime, systemEventStats, userId); in QueryDeviceEventStats() 563 BUNDLE_ACTIVE_LOGI("QueryDeviceEventStats need in memory stats"); in QueryDeviceEventStats()
|
/foundation/resourceschedule/device_usage_statistics/test/fuzztest/bundleactivepowerstatecallbackproxy_fuzzer/ |
H A D | bundleactivepowerstatecallbackproxy_fuzzer.cpp | 133 DelayedSingleton<BundleActiveClient>::GetInstance()->QueryDeviceEventStats(beginTime, endTime, in BundleActiveClientFuzzTest()
|
/foundation/resourceschedule/device_usage_statistics/services/packageusage/include/ |
H A D | bundle_active_user_service.h | 74 int32_t QueryDeviceEventStats(int64_t beginTime, int64_t endTime,
|
/foundation/resourceschedule/device_usage_statistics/services/common/src/ |
H A D | bundle_active_service.cpp | 581 ErrCode BundleActiveService::QueryDeviceEventStats(int64_t beginTime, int64_t endTime, in QueryDeviceEventStats() function in OHOS::DeviceUsageStats::BundleActiveService 592 BUNDLE_ACTIVE_LOGI("QueryDeviceEventStats userid is %{public}d", userId); in QueryDeviceEventStats() 596 errCode = bundleActiveCore_->QueryDeviceEventStats(beginTime, endTime, eventStats, userId); in QueryDeviceEventStats() 598 BUNDLE_ACTIVE_LOGD("QueryDeviceEventStats result size is %{public}zu", eventStats.size()); in QueryDeviceEventStats()
|
H A D | bundle_active_stub.cpp | 280 ErrCode errCode = QueryDeviceEventStats(beginTime, endTime, result, userId); in HandleQueryDeviceEventStats()
|
H A D | bundle_active_core.cpp | 728 ErrCode BundleActiveCore::QueryDeviceEventStats(int64_t beginTime, int64_t endTime, in QueryDeviceEventStats() function in OHOS::DeviceUsageStats::BundleActiveCore 740 return service->QueryDeviceEventStats(beginTime, endTime, eventStats, userId); in QueryDeviceEventStats()
|
H A D | bundle_active_usage_database.cpp | 1801 void BundleActiveUsageDatabase::QueryDeviceEventStats(int32_t eventId, int64_t beginTime, in QueryDeviceEventStats() function in OHOS::DeviceUsageStats::BundleActiveUsageDatabase
|