Home
last modified time | relevance | path

Searched refs:reportHandler (Results 1 - 10 of 10) sorted by relevance

/foundation/resourceschedule/device_usage_statistics/services/packageusage/src/
H A Dbundle_active_report_handler.cpp50 auto reportHandler = shared_from_this(); in SendEvent() local
56 ffrt::task_handle taskHandle = ffrtQueue_->submit_h([reportHandler, eventId, handlerobj]() { in SendEvent()
57 reportHandler->ProcessEvent(eventId, handlerobj); in SendEvent()
58 std::lock_guard<ffrt::mutex> lock(reportHandler->taskHandlerMutex_); in SendEvent()
59 if (reportHandler->taskHandlerMap_.find(eventId) == reportHandler->taskHandlerMap_.end()) { in SendEvent()
62 if (!reportHandler->taskHandlerMap_[eventId].empty()) { in SendEvent()
63 reportHandler->taskHandlerMap_[eventId].pop(); in SendEvent()
/foundation/resourceschedule/device_usage_statistics/services/common/src/
H A Dbundle_active_app_state_obsever.cpp26 void BundleActiveAppStateObserver::Init(const std::shared_ptr<BundleActiveReportHandler>& reportHandler) in Init() argument
28 if (reportHandler != nullptr) { in Init()
30 reportHandler_ = reportHandler; in Init()
H A Dbundle_active_continuous_task_observer.cpp28 void BundleActiveContinuousTaskObserver::Init(const std::shared_ptr<BundleActiveReportHandler>& reportHandler) in Init() argument
30 if (reportHandler != nullptr) { in Init()
32 reportHandler_ = reportHandler; in Init()
H A Dbundle_active_core.cpp119 auto reportHandler = bundleActiveReportHandler_.lock(); in HandleUserRemoveEvent() local
120 if (reportHandler == nullptr) { in HandleUserRemoveEvent()
123 reportHandler->SendEvent(BundleActiveReportHandler::MSG_REMOVE_USER, handlerobjToPtr); in HandleUserRemoveEvent()
135 auto reportHandler = bundleActiveReportHandler_.lock(); in HandleUserSwitchEvent() local
136 if (reportHandler == nullptr) { in HandleUserSwitchEvent()
139 reportHandler->SendEvent(BundleActiveReportHandler::MSG_SWITCH_USER, handlerobjToPtr); in HandleUserSwitchEvent()
156 auto reportHandler = bundleActiveReportHandler_.lock(); in HandlePackageRemoveEvent() local
157 if (reportHandler == nullptr) { in HandlePackageRemoveEvent()
160 reportHandler->SendEvent(BundleActiveReportHandler::MSG_BUNDLE_UNINSTALLED, in HandlePackageRemoveEvent()
178 auto reportHandler in HandlePackageAddEvent() local
287 SetHandler(const std::shared_ptr<BundleActiveReportHandler>& reportHandler) SetHandler() argument
[all...]
H A Dbundle_active_service.cpp174 void BundleActiveService::InitAppStateSubscriber(const std::shared_ptr<BundleActiveReportHandler>& reportHandler) in InitAppStateSubscriber() argument
182 appStateObserver_->Init(reportHandler); in InitAppStateSubscriber()
186 void BundleActiveService::InitContinuousSubscriber(const std::shared_ptr<BundleActiveReportHandler>& reportHandler) in InitContinuousSubscriber() argument
191 continuousTaskObserver_->Init(reportHandler); in InitContinuousSubscriber()
/foundation/resourceschedule/device_usage_statistics/test/unittest/
H A Dbundle_active_total_test.cpp91 auto reportHandler = std::make_shared<BundleActiveReportHandler>(runner); in HWTEST_F() local
94 test.Init(reportHandler); in HWTEST_F()
177 auto reportHandler = std::make_shared<BundleActiveReportHandler>(); in HWTEST_F() local
179 test.Init(reportHandler); in HWTEST_F()
182 test.Init(reportHandler); in HWTEST_F()
/foundation/resourceschedule/device_usage_statistics/services/common/include/
H A Dbundle_active_app_state_observer.h36 void Init(const std::shared_ptr<BundleActiveReportHandler>& reportHandler);
H A Dbundle_active_continuous_task_observer.h41 void Init(const std::shared_ptr<BundleActiveReportHandler>& reportHandler);
H A Dbundle_active_service.h232 void InitAppStateSubscriber(const std::shared_ptr<BundleActiveReportHandler>& reportHandler);
233 void InitContinuousSubscriber(const std::shared_ptr<BundleActiveReportHandler>& reportHandler);
H A Dbundle_active_core.h131 * parameters: reportHandler
133 void SetHandler(const std::shared_ptr<BundleActiveReportHandler>& reportHandler);

Completed in 6 milliseconds