Home
last modified time | relevance | path

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

/foundation/resourceschedule/device_usage_statistics/test/unittest/
H A Ddevice_usage_statistics_mock_test.cpp104 std::vector<BundleActiveEventStats> eventStats; in HWTEST_F() local
105 EXPECT_NE(BundleActiveClient::GetInstance().QueryDeviceEventStats(0, g_largeNum, eventStats), ERR_OK); in HWTEST_F()
106 EXPECT_NE(BundleActiveClient::GetInstance().QueryNotificationEventStats(0, g_largeNum, eventStats), ERR_OK); in HWTEST_F()
140 std::vector<BundleActiveEventStats> eventStats; in HWTEST_F() local
142 DelayedSingleton<BundleActiveService>::GetInstance()->QueryDeviceEventStats(0, g_largeNum, eventStats, -1); in HWTEST_F()
155 std::vector<BundleActiveEventStats> eventStats; in HWTEST_F() local
157 0, g_largeNum, eventStats, -1); in HWTEST_F()
288 std::vector<BundleActiveEventStats> eventStats; in HWTEST_F() local
289 EXPECT_NE(bundleActiveCore->QueryNotificationEventStats(0, g_largeNum, eventStats, g_defaultUserId), ERR_OK); in HWTEST_F()
290 EXPECT_NE(bundleActiveCore->QueryDeviceEventStats(0, g_largeNum, eventStats, g_defaultUserI in HWTEST_F()
401 std::map<std::string, BundleActiveEventStats> eventStats; HWTEST_F() local
[all...]
H A Ddevice_usage_statistics_multi_test.cpp295 std::vector<BundleActiveEventStats> eventStats; in MultiTestQueryDeviceEventStats() local
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()
317 std::vector<BundleActiveEventStats> eventStats; in MultiTestQueryNotificationEventStats() local
318 int32_t errCode = BundleActiveClient::GetInstance().QueryNotificationEventStats(0, g_largeNum, eventStats); in MultiTestQueryNotificationEventStats()
320 errCode = BundleActiveClient::GetInstance().QueryNotificationEventStats(0, g_largeNum, eventStats, g_commonUserid); in MultiTestQueryNotificationEventStats()
H A Dpackage_usage_test.cpp264 auto eventStats = std::make_shared<BundleActiveEventStats>(); in HWTEST_F() local
267 eventStats->add(stat); in HWTEST_F()
271 eventStats->add(stat); in HWTEST_F()
274 eventStats->add(stat); in HWTEST_F()
275 EXPECT_NE(eventStats, nullptr); in HWTEST_F()
361 std::vector<BundleActiveEventStats> eventStats; in HWTEST_F() local
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, userI in HWTEST_F()
392 std::vector<BundleActiveEventStats> eventStats; HWTEST_F() local
[all...]
H A Ddevice_usage_statistics_test.cpp310 std::vector<BundleActiveEventStats> eventStats; in HWTEST_F() local
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()
326 std::vector<BundleActiveEventStats> eventStats; in HWTEST_F() local
327 int32_t errCode = BundleActiveClient::GetInstance().QueryNotificationEventStats(0, g_largeNum, eventStats); in HWTEST_F()
329 errCode = BundleActiveClient::GetInstance().QueryNotificationEventStats(0, g_largeNum, eventStats, g_commonUserid); in HWTEST_F()
H A Ddevice_usage_statistics_service_test.cpp1192 auto eventStats = std::map<std::string, BundleActiveEventStats>(); in HWTEST_F() local
1195 database->QueryDeviceEventStats(eventId, beginTime, endTime, eventStats, userId); in HWTEST_F()
/foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/include/
H A Dbundle_active_proxy.h102 * parameters: beginTime, endTime, eventStats, userId, default userId is -1 for JS API,
107 std::vector<BundleActiveEventStats>& eventStats, int32_t userId) override;
111 * parameters: beginTime, endTime, eventStats, userId, default userId is -1 for JS API,
116 std::vector<BundleActiveEventStats>& eventStats, int32_t userId) override;
146 ErrCode IPCCommunication(int64_t beginTime, int64_t endTime, std::vector<BundleActiveEventStats>& eventStats,
H A Dbundle_active_client.h157 * @param eventStats .
162 std::vector<BundleActiveEventStats>& eventStats, int32_t userId = -1);
169 * @param eventStats .
174 std::vector<BundleActiveEventStats>& eventStats, int32_t userId = -1);
/foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/src/
H A Dbundle_active_proxy.cpp323 std::vector<BundleActiveEventStats>& eventStats, int32_t userId) in QueryDeviceEventStats()
325 ErrCode errCode = IPCCommunication(beginTime, endTime, eventStats, userId, static_cast<uint32_t>( in QueryDeviceEventStats()
327 for (const auto& singleEvent : eventStats) { in QueryDeviceEventStats()
335 std::vector<BundleActiveEventStats>& eventStats, int32_t userId) in QueryNotificationEventStats()
337 ErrCode errCode = IPCCommunication(beginTime, endTime, eventStats, userId, static_cast<uint32_t>( in QueryNotificationEventStats()
339 for (const auto& singleEvent : eventStats) { in QueryNotificationEventStats()
347 std::vector<BundleActiveEventStats>& eventStats, int32_t userId, int32_t communicationFlag) in IPCCommunication()
370 eventStats.emplace_back(*tmp); in IPCCommunication()
322 QueryDeviceEventStats(int64_t beginTime, int64_t endTime, std::vector<BundleActiveEventStats>& eventStats, int32_t userId) QueryDeviceEventStats() argument
334 QueryNotificationEventStats(int64_t beginTime, int64_t endTime, std::vector<BundleActiveEventStats>& eventStats, int32_t userId) QueryNotificationEventStats() argument
346 IPCCommunication(int64_t beginTime, int64_t endTime, std::vector<BundleActiveEventStats>& eventStats, int32_t userId, int32_t communicationFlag) IPCCommunication() argument
H A Dbundle_active_client.cpp196 std::vector<BundleActiveEventStats>& eventStats, int32_t userId) in QueryDeviceEventStats()
203 return bundleActiveProxy_->QueryDeviceEventStats(beginTime, endTime, eventStats, userId); in QueryDeviceEventStats()
207 std::vector<BundleActiveEventStats>& eventStats, int32_t userId) in QueryNotificationEventStats()
214 return bundleActiveProxy_->QueryNotificationEventStats(beginTime, endTime, eventStats, userId); in QueryNotificationEventStats()
195 QueryDeviceEventStats(int64_t beginTime, int64_t endTime, std::vector<BundleActiveEventStats>& eventStats, int32_t userId) QueryDeviceEventStats() argument
206 QueryNotificationEventStats(int64_t beginTime, int64_t endTime, std::vector<BundleActiveEventStats>& eventStats, int32_t userId) QueryNotificationEventStats() argument
/foundation/resourceschedule/device_usage_statistics/services/common/include/
H A Dibundle_active_service.h136 * parameters: beginTime, endTime, eventStats, userId, default userId is -1 for JS API,
141 std::vector<BundleActiveEventStats>& eventStats, int32_t userId) = 0;
145 * parameters: beginTime, endTime, eventStats, userId, default userId is -1 for JS API,
150 std::vector<BundleActiveEventStats>& eventStats, int32_t userId) = 0;
H A Dbundle_active_service.h158 * @param eventStats .
163 std::vector<BundleActiveEventStats>& eventStats, int32_t userId) override;
170 * @param eventStats .
175 std::vector<BundleActiveEventStats>& eventStats, int32_t userId) override;
H A Dbundle_active_core.h178 * parameters: beginTime, endTime, eventStats, userId, default userId is -1 for JS API,
183 std::vector<BundleActiveEventStats>& eventStats, int32_t userId);
187 * parameters: beginTime, endTime, eventStats, userId, default userId is -1 for JS API,
192 std::vector<BundleActiveEventStats>& eventStats, int32_t userId);
H A Dbundle_active_usage_database.h80 std::map<std::string, BundleActiveEventStats>& eventStats, int32_t userId);
/foundation/resourceschedule/device_usage_statistics/test/fuzztest/bundleactivepowerstatecallbackproxy_fuzzer/
H A Dbundleactivepowerstatecallbackproxy_fuzzer.cpp132 std::vector<BundleActiveEventStats> eventStats; in BundleActiveClientFuzzTest() local
134 eventStats, userId); in BundleActiveClientFuzzTest()
136 eventStats, userId); in BundleActiveClientFuzzTest()
/foundation/resourceschedule/device_usage_statistics/interfaces/kits/bundlestats/napi/include/
H A Dbundle_state_common.h60 const std::vector<BundleActiveEventStats> &eventStats, napi_value result);
63 const std::vector<BundleActiveEventStats> &eventStats, napi_value result);
H A Dbundle_state_data.h102 std::vector<BundleActiveEventStats> eventStats; member
/foundation/resourceschedule/device_usage_statistics/services/packageusage/include/
H A Dbundle_active_user_service.h75 std::vector<BundleActiveEventStats>& eventStats, int32_t userId);
77 std::vector<BundleActiveEventStats>& eventStats, int32_t userId);
/foundation/resourceschedule/device_usage_statistics/services/common/src/
H A Dbundle_active_service.cpp582 std::vector<BundleActiveEventStats>& eventStats, int32_t 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()
603 std::vector<BundleActiveEventStats>& eventStats, int32_t userId) in QueryNotificationEventStats()
619 errCode = bundleActiveCore_->QueryNotificationEventStats(beginTime, endTime, eventStats, userId); in QueryNotificationEventStats()
581 QueryDeviceEventStats(int64_t beginTime, int64_t endTime, std::vector<BundleActiveEventStats>& eventStats, int32_t userId) QueryDeviceEventStats() argument
602 QueryNotificationEventStats(int64_t beginTime, int64_t endTime, std::vector<BundleActiveEventStats>& eventStats, int32_t userId) QueryNotificationEventStats() argument
H A Dbundle_active_core.cpp729 std::vector<BundleActiveEventStats>& eventStats, int32_t userId) in QueryDeviceEventStats()
740 return service->QueryDeviceEventStats(beginTime, endTime, eventStats, userId); in QueryDeviceEventStats()
744 std::vector<BundleActiveEventStats>& eventStats, int32_t userId) in QueryNotificationEventStats()
755 return service->QueryNotificationEventStats(beginTime, endTime, eventStats, userId); in QueryNotificationEventStats()
728 QueryDeviceEventStats(int64_t beginTime, int64_t endTime, std::vector<BundleActiveEventStats>& eventStats, int32_t userId) QueryDeviceEventStats() argument
743 QueryNotificationEventStats(int64_t beginTime, int64_t endTime, std::vector<BundleActiveEventStats>& eventStats, int32_t userId) QueryNotificationEventStats() argument
H A Dbundle_active_usage_database.cpp1802 int64_t endTime, std::map<std::string, BundleActiveEventStats>& eventStats, int32_t userId) in QueryDeviceEventStats()
1835 eventStats.insert(std::pair<std::string, BundleActiveEventStats>(event.name_, event)); in QueryDeviceEventStats()
1801 QueryDeviceEventStats(int32_t eventId, int64_t beginTime, int64_t endTime, std::map<std::string, BundleActiveEventStats>& eventStats, int32_t userId) QueryDeviceEventStats() argument
/foundation/resourceschedule/device_usage_statistics/frameworks/src/
H A Dbundle_state_common.cpp171 const std::vector<BundleActiveEventStats> &eventStats, napi_value result) in GetBundleActiveEventStatsForResult()
174 for (const auto &item : eventStats) { in GetBundleActiveEventStatsForResult()
197 const std::vector<BundleActiveEventStats> &eventStats, napi_value result) in GetBundleActiveNotificationNumberForResult()
200 for (const auto &item : eventStats) { in GetBundleActiveNotificationNumberForResult()
170 GetBundleActiveEventStatsForResult(napi_env env, const std::vector<BundleActiveEventStats> &eventStats, napi_value result) GetBundleActiveEventStatsForResult() argument
196 GetBundleActiveNotificationNumberForResult(napi_env env, const std::vector<BundleActiveEventStats> &eventStats, napi_value result) GetBundleActiveNotificationNumberForResult() argument
H A Dbundle_state_query_napi.cpp731 asyncCallbackInfo->endTime, asyncCallbackInfo->eventStats); in QueryDeviceEventStatsAsync()
743 BundleStateCommon::GetBundleActiveEventStatsForResult(env, asyncCallbackInfo->eventStats, result); in QueryDeviceEventStatsAsyncCB()
784 asyncCallbackInfo->endTime, asyncCallbackInfo->eventStats); in QueryNotificationEventStatsAsync()
797 asyncCallbackInfo->eventStats, result); in QueryNotificationEventStatsAsyncCB()
/foundation/resourceschedule/device_usage_statistics/services/packageusage/src/
H A Dbundle_active_user_service.cpp543 std::vector<BundleActiveEventStats>& eventStats, int32_t userId) in QueryDeviceEventStats()
559 BUNDLE_ACTIVE_LOGI("Query eventStats data in db result size is %{public}zu", systemEventStats.size()); in QueryDeviceEventStats()
568 eventStats.push_back(iter->second); in QueryDeviceEventStats()
601 std::vector<BundleActiveEventStats>& eventStats, int32_t userId) in QueryNotificationEventStats()
615 BUNDLE_ACTIVE_LOGI("Query eventStats data in db result size is %{public}zu", notificationEventStats.size()); in QueryNotificationEventStats()
624 eventStats.push_back(iter->second); in QueryNotificationEventStats()
542 QueryDeviceEventStats(int64_t beginTime, int64_t endTime, std::vector<BundleActiveEventStats>& eventStats, int32_t userId) QueryDeviceEventStats() argument
600 QueryNotificationEventStats(int64_t beginTime, int64_t endTime, std::vector<BundleActiveEventStats>& eventStats, int32_t userId) QueryNotificationEventStats() argument

Completed in 21 milliseconds