Home
last modified time | relevance | path

Searched refs:QueryDeviceEventStats (Results 1 - 23 of 23) sorted by relevance

/foundation/resourceschedule/device_usage_statistics/interfaces/kits/bundlestats/napi/include/
H A Dbundle_state_query_napi.h31 napi_value QueryDeviceEventStats(napi_env env, napi_callback_info info);
/foundation/resourceschedule/device_usage_statistics/test/unittest/
H A Ddevice_usage_statistics_mock_test.cpp105 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 Ddevice_usage_statistics_multi_test.cpp289 * @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 Ddevice_usage_statistics_test.cpp303 * @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 Dpackage_usage_test.cpp347 * @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 Ddevice_usage_statistics_service_test.cpp1180 * @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 Dibundle_active_service.h135 * 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 Dbundle_active_service.h154 * @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 Dbundle_active_core.h177 * 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 Dbundle_active_usage_database.h79 void QueryDeviceEventStats(int32_t eventId, int64_t beginTime, int64_t endTime,
/foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/include/
H A Dbundle_active_client.h153 * @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 Dbundle_active_proxy.h101 * 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 Dbundle_active_client.cpp195 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 Dbundle_active_proxy.cpp322 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 Dusage_statistics_init.cpp51 DECLARE_NAPI_FUNCTION("queryDeviceEventStats", QueryDeviceEventStats), in UsageStatisticsInit()
H A Dbundle_state_query_napi.cpp730 .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 Dbundle_active_user_service.cpp542 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 Dbundleactivepowerstatecallbackproxy_fuzzer.cpp133 DelayedSingleton<BundleActiveClient>::GetInstance()->QueryDeviceEventStats(beginTime, endTime, in BundleActiveClientFuzzTest()
/foundation/resourceschedule/device_usage_statistics/services/packageusage/include/
H A Dbundle_active_user_service.h74 int32_t QueryDeviceEventStats(int64_t beginTime, int64_t endTime,
/foundation/resourceschedule/device_usage_statistics/services/common/src/
H A Dbundle_active_service.cpp581 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 Dbundle_active_stub.cpp280 ErrCode errCode = QueryDeviceEventStats(beginTime, endTime, result, userId); in HandleQueryDeviceEventStats()
H A Dbundle_active_core.cpp728 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 Dbundle_active_usage_database.cpp1801 void BundleActiveUsageDatabase::QueryDeviceEventStats(int32_t eventId, int64_t beginTime, in QueryDeviceEventStats() function in OHOS::DeviceUsageStats::BundleActiveUsageDatabase

Completed in 21 milliseconds