Home
last modified time | relevance | path

Searched refs:BundleActiveReportHandler (Results 1 – 13 of 13) sorted by relevance

/ohos5.0/foundation/resourceschedule/device_usage_statistics/services/packageusage/src/
H A Dbundle_active_report_handler.cpp24 const int32_t BundleActiveReportHandler::MSG_REPORT_EVENT = 0;
25 const int32_t BundleActiveReportHandler::MSG_FLUSH_TO_DISK = 1;
26 const int32_t BundleActiveReportHandler::MSG_REMOVE_USER = 2;
27 const int32_t BundleActiveReportHandler::MSG_BUNDLE_UNINSTALLED = 3;
28 const int32_t BundleActiveReportHandler::MSG_SWITCH_USER = 4;
30 void BundleActiveReportHandler::Init(const std::shared_ptr<BundleActiveCore>& bundleActiveCore) in Init()
42 void BundleActiveReportHandler::SendEvent(const int32_t& eventId, in SendEvent()
68 void BundleActiveReportHandler::RemoveEvent(const int32_t& eventId) in RemoveEvent()
85 bool BundleActiveReportHandler::HasEvent(const int32_t& eventId) in HasEvent()
98 void BundleActiveReportHandler::ProcessEvent(const int32_t& eventId, in ProcessEvent()
[all …]
/ohos5.0/foundation/resourceschedule/device_usage_statistics/services/packageusage/include/
H A Dbundle_active_report_handler.h28 class BundleActiveReportHandler : public std::enable_shared_from_this<BundleActiveReportHandler> {
30 BundleActiveReportHandler() = default;
31 ~BundleActiveReportHandler() = default;
/ohos5.0/foundation/resourceschedule/device_usage_statistics/services/common/include/
H A Dbundle_active_common_event_subscriber.h38 class BundleActiveReportHandler; variable
44 const std::weak_ptr<BundleActiveReportHandler> in BundleActiveCommonEventSubscriber()
55 std::weak_ptr<BundleActiveReportHandler> bundleActiveReportHandler_;
H A Dbundle_active_continuous_task_observer.h41 void Init(const std::shared_ptr<BundleActiveReportHandler>& reportHandler);
45 std::shared_ptr<BundleActiveReportHandler> reportHandler_;
H A Dbundle_active_app_state_observer.h36 void Init(const std::shared_ptr<BundleActiveReportHandler>& reportHandler);
57 std::shared_ptr<BundleActiveReportHandler> reportHandler_;
H A Dbundle_active_core.h71 class BundleActiveReportHandler; variable
134 void SetHandler(const std::shared_ptr<BundleActiveReportHandler>& reportHandler);
261 std::weak_ptr<BundleActiveReportHandler> handler_;
H A Dbundle_active_service.h226 std::shared_ptr<BundleActiveReportHandler> reportHandler_;
243 void InitAppStateSubscriber(const std::shared_ptr<BundleActiveReportHandler>& reportHandler);
244 void InitContinuousSubscriber(const std::shared_ptr<BundleActiveReportHandler>& reportHandler);
/ohos5.0/foundation/resourceschedule/device_usage_statistics/services/common/src/
H A Dbundle_active_core.cpp93 …bundleActiveReportHandler_.lock()->SendEvent(BundleActiveReportHandler::MSG_REMOVE_USER, handlerob… in OnReceiveEvent()
101 …bundleActiveReportHandler_.lock()->SendEvent(BundleActiveReportHandler::MSG_SWITCH_USER, handlerob… in OnReceiveEvent()
114 … bundleActiveReportHandler_.lock()->SendEvent(BundleActiveReportHandler::MSG_BUNDLE_UNINSTALLED, in OnReceiveEvent()
141 …bundleActiveReportHandler_.lock()->SendEvent(BundleActiveReportHandler::MSG_REPORT_EVENT, handlero… in HandleLockEvent()
222 void BundleActiveCore::SetHandler(const std::shared_ptr<BundleActiveReportHandler>& reportHandler) in SetHandler()
268 if (handler_.lock()->HasEvent(BundleActiveReportHandler::MSG_FLUSH_TO_DISK) == false) { in OnStatsChanged()
270 …handler_.lock()->SendEvent(BundleActiveReportHandler::MSG_FLUSH_TO_DISK, handlerobjToPtr, flushInt… in OnStatsChanged()
294 handler_.lock()->RemoveEvent(BundleActiveReportHandler::MSG_FLUSH_TO_DISK); in RestoreAllData()
324 handler_.lock()->RemoveEvent(BundleActiveReportHandler::MSG_FLUSH_TO_DISK); in RestoreToDatabaseLocked()
345 handler_.lock()->SendEvent(BundleActiveReportHandler::MSG_REPORT_EVENT, handlerobjToPtr); in PreservePowerStateInfo()
[all …]
H A Dbundle_active_app_state_obsever.cpp26 void BundleActiveAppStateObserver::Init(const std::shared_ptr<BundleActiveReportHandler>& reportHan… in Init()
77 reportHandler_->SendEvent(BundleActiveReportHandler::MSG_REPORT_EVENT, handlerobjToPtr); in OnAbilityStateChanged()
H A Dbundle_active_continuous_task_observer.cpp28 void BundleActiveContinuousTaskObserver::Init(const std::shared_ptr<BundleActiveReportHandler>& rep… in Init()
118 reportHandler_->SendEvent(BundleActiveReportHandler::MSG_REPORT_EVENT, handlerobjToPtr); in ReportContinuousTaskEvent()
H A Dbundle_active_service.cpp135 reportHandler_ = std::make_shared<BundleActiveReportHandler>(); in InitService()
177 void BundleActiveService::InitAppStateSubscriber(const std::shared_ptr<BundleActiveReportHandler>& … in InitAppStateSubscriber()
189 void BundleActiveService::InitContinuousSubscriber(const std::shared_ptr<BundleActiveReportHandler>… in InitContinuousSubscriber()
262 reportHandler_->SendEvent(BundleActiveReportHandler::MSG_REPORT_EVENT, handlerobjToPtr); in ReportEvent()
/ohos5.0/foundation/resourceschedule/device_usage_statistics/test/unittest/
H A Dbundle_active_total_test.cpp88 auto reportHandler = std::make_shared<BundleActiveReportHandler>(runner);
89 auto reportHandler1 = std::make_shared<BundleActiveReportHandler>(runner);
195 auto reportHandler = std::make_shared<BundleActiveReportHandler>();
H A Dpackage_usage_test.cpp787 auto bundleActiveReportHandler = std::make_shared<BundleActiveReportHandler>();
803 auto bundleActiveReportHandler = std::make_shared<BundleActiveReportHandler>();
827 auto bundleActiveReportHandler = std::make_shared<BundleActiveReportHandler>();