Searched refs:BundleActiveReportHandler (Results 1 – 13 of 13) sorted by relevance
/ohos5.0/foundation/resourceschedule/device_usage_statistics/services/packageusage/src/ |
H A D | bundle_active_report_handler.cpp | 24 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 D | bundle_active_report_handler.h | 28 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 D | bundle_active_common_event_subscriber.h | 38 class BundleActiveReportHandler; variable 44 const std::weak_ptr<BundleActiveReportHandler> in BundleActiveCommonEventSubscriber() 55 std::weak_ptr<BundleActiveReportHandler> bundleActiveReportHandler_;
|
H A D | bundle_active_continuous_task_observer.h | 41 void Init(const std::shared_ptr<BundleActiveReportHandler>& reportHandler); 45 std::shared_ptr<BundleActiveReportHandler> reportHandler_;
|
H A D | bundle_active_app_state_observer.h | 36 void Init(const std::shared_ptr<BundleActiveReportHandler>& reportHandler); 57 std::shared_ptr<BundleActiveReportHandler> reportHandler_;
|
H A D | bundle_active_core.h | 71 class BundleActiveReportHandler; variable 134 void SetHandler(const std::shared_ptr<BundleActiveReportHandler>& reportHandler); 261 std::weak_ptr<BundleActiveReportHandler> handler_;
|
H A D | bundle_active_service.h | 226 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 D | bundle_active_core.cpp | 93 …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 D | bundle_active_app_state_obsever.cpp | 26 void BundleActiveAppStateObserver::Init(const std::shared_ptr<BundleActiveReportHandler>& reportHan… in Init() 77 reportHandler_->SendEvent(BundleActiveReportHandler::MSG_REPORT_EVENT, handlerobjToPtr); in OnAbilityStateChanged()
|
H A D | bundle_active_continuous_task_observer.cpp | 28 void BundleActiveContinuousTaskObserver::Init(const std::shared_ptr<BundleActiveReportHandler>& rep… in Init() 118 reportHandler_->SendEvent(BundleActiveReportHandler::MSG_REPORT_EVENT, handlerobjToPtr); in ReportContinuousTaskEvent()
|
H A D | bundle_active_service.cpp | 135 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 D | bundle_active_total_test.cpp | 88 auto reportHandler = std::make_shared<BundleActiveReportHandler>(runner); 89 auto reportHandler1 = std::make_shared<BundleActiveReportHandler>(runner); 195 auto reportHandler = std::make_shared<BundleActiveReportHandler>();
|
H A D | package_usage_test.cpp | 787 auto bundleActiveReportHandler = std::make_shared<BundleActiveReportHandler>(); 803 auto bundleActiveReportHandler = std::make_shared<BundleActiveReportHandler>(); 827 auto bundleActiveReportHandler = std::make_shared<BundleActiveReportHandler>();
|