Home
last modified time | relevance | path

Searched refs:bundleActiveCore_ (Results 1 - 13 of 13) sorted by relevance

/foundation/resourceschedule/device_usage_statistics/services/packageusage/src/
H A Dbundle_active_report_handler.cpp33 bundleActiveCore_ = bundleActiveCore; in Init()
142 bundleActiveCore_->isUninstalledApp(tmpHandlerobj.event_.uid_)) { in ProcessReportEvent()
146 bundleActiveCore_->ReportEvent(tmpHandlerobj.event_, tmpHandlerobj.userId_); in ProcessReportEvent()
152 if (tmpHandlerobj.userId_ != bundleActiveCore_->currentUsedUser_) { in ProcessFlushToDiskEvent()
154 tmpHandlerobj.userId_, bundleActiveCore_->currentUsedUser_); in ProcessFlushToDiskEvent()
158 bundleActiveCore_->RestoreToDatabase(tmpHandlerobj.userId_); in ProcessFlushToDiskEvent()
164 bundleActiveCore_->OnUserRemoved(tmpHandlerobj.userId_); in ProcessRmoveUserEvent()
170 bundleActiveCore_->OnUserSwitched(tmpHandlerobj.userId_); in ProcessUserSwitchEvent()
176 bundleActiveCore_->OnBundleUninstalled(tmpHandlerobj.userId_, tmpHandlerobj.bundleName_, in ProcessBundleUninstallEvent()
183 bundleActiveCore_ in ProcessBundleInstallEvent()
[all...]
/foundation/resourceschedule/device_usage_statistics/test/unittest/
H A Ddevice_usage_statistics_service_test.cpp42 static std::shared_ptr<BundleActiveCore> bundleActiveCore_; member in OHOS::DeviceUsageStats::DeviceUsageStatisticsServiceTest
45 std::shared_ptr<BundleActiveCore> DeviceUsageStatisticsServiceTest::bundleActiveCore_ = nullptr; member in OHOS::DeviceUsageStats::DeviceUsageStatisticsServiceTest
49 bundleActiveCore_ = std::make_shared<BundleActiveCore>(); in SetUpTestCase()
50 bundleActiveCore_->Init(); in SetUpTestCase()
51 bundleActiveCore_->InitBundleGroupController(); in SetUpTestCase()
56 bundleActiveCore_->bundleGroupHandler_->ffrtQueue_.reset(); in TearDownTestCase()
107 DelayedSingleton<BundleActiveService>::GetInstance()->bundleActiveCore_ = std::make_shared<BundleActiveCore>(); in HWTEST_F()
108 DelayedSingleton<BundleActiveService>::GetInstance()->bundleActiveCore_->Init(); in HWTEST_F()
186 DelayedSingleton<BundleActiveService>::GetInstance()->bundleActiveCore_ = std::make_shared<BundleActiveCore>(); in HWTEST_F()
189 DelayedSingleton<BundleActiveService>::GetInstance()->bundleActiveCore_ in HWTEST_F()
[all...]
H A Dpackage_usage_test.cpp45 static std::shared_ptr<BundleActiveCore> bundleActiveCore_; member in OHOS::DeviceUsageStats::PackageUsageTest
48 std::shared_ptr<BundleActiveCore> PackageUsageTest::bundleActiveCore_ = nullptr; member in OHOS::DeviceUsageStats::PackageUsageTest
52 bundleActiveCore_ = std::make_shared<BundleActiveCore>(); in SetUpTestCase()
53 bundleActiveCore_->Init(); in SetUpTestCase()
54 bundleActiveCore_->InitBundleGroupController(); in SetUpTestCase()
59 bundleActiveCore_->bundleGroupHandler_->ffrtQueue_.reset(); in TearDownTestCase()
287 auto bundleActiveCore = bundleActiveCore_; in HWTEST_F()
311 auto bundleActiveCore = bundleActiveCore_; in HWTEST_F()
333 auto bundleActiveCore = bundleActiveCore_; in HWTEST_F()
354 auto bundleActiveCore = bundleActiveCore_; in HWTEST_F()
[all...]
H A Ddevice_usage_statistics_mock_test.cpp217 DelayedSingleton<BundleActiveService>::GetInstance()->bundleActiveCore_ = nullptr; in HWTEST_F()
/foundation/resourceschedule/device_usage_statistics/services/common/src/
H A Dbundle_active_service.cpp127 if (bundleActiveCore_ == nullptr) { in InitService()
128 bundleActiveCore_ = std::make_shared<BundleActiveCore>(); in InitService()
129 bundleActiveCore_->Init(); in InitService()
136 reportHandler_->Init(bundleActiveCore_); in InitService()
138 if (reportHandler_ != nullptr && bundleActiveCore_ != nullptr) { in InitService()
140 bundleActiveCore_->SetHandler(reportHandler_); in InitService()
145 shutdownCallback_ = new (std::nothrow) BundleActiveShutdownCallbackService(bundleActiveCore_); in InitService()
146 powerStateCallback_ = new (std::nothrow) BundleActivePowerStateCallbackService(bundleActiveCore_); in InitService()
158 bundleActiveCore_->InitBundleGroupController(); in InitService()
295 result = bundleActiveCore_ in IsBundleIdle()
[all...]
H A Dbundle_active_shutdown_callback_service.cpp24 bundleActiveCore_ = bundleActiveCore; in BundleActiveShutdownCallbackService()
30 bundleActiveCore_->ShutDown(); in OnAsyncShutdown()
H A Dbundle_active_power_state_callback_service.cpp27 bundleActiveCore_ = bundleActiveCore; in BundleActivePowerStateCallbackService()
42 bundleActiveCore_->PreservePowerStateInfo(eventId); in OnPowerStateChanged()
/foundation/resourceschedule/device_usage_statistics/services/packagegroup/src/
H A Dbundle_active_user_history.cpp74 bundleActiveCore_ = bundleActiveCore; in BundleActiveUserHistory()
215 if (!bundleActiveCore_.expired()) { in ReportUsage()
217 bundleActiveCore_.lock()->OnAppGroupChanged(callbackInfo); in ReportUsage()
254 if (!bundleActiveCore_.expired()) { in SetAppGroup()
255 bundleActiveCore_.lock()->OnAppGroupChanged(callbackInfo); in SetAppGroup()
/foundation/resourceschedule/device_usage_statistics/services/common/include/
H A Dbundle_active_shutdown_callback_service.h30 std::shared_ptr<BundleActiveCore> bundleActiveCore_; member in OHOS::DeviceUsageStats::BundleActiveShutdownCallbackService
H A Dbundle_active_power_state_callback_service.h31 std::shared_ptr<BundleActiveCore> bundleActiveCore_; member in OHOS::DeviceUsageStats::BundleActivePowerStateCallbackService
H A Dbundle_active_service.h214 std::shared_ptr<BundleActiveCore> bundleActiveCore_; member in OHOS::DeviceUsageStats::BundleActiveService
/foundation/resourceschedule/device_usage_statistics/services/packageusage/include/
H A Dbundle_active_report_handler.h62 std::shared_ptr<BundleActiveCore> bundleActiveCore_; member in OHOS::DeviceUsageStats::BundleActiveReportHandler
/foundation/resourceschedule/device_usage_statistics/services/packagegroup/include/
H A Dbundle_active_user_history.h70 std::weak_ptr<BundleActiveCore> bundleActiveCore_; member in OHOS::DeviceUsageStats::BundleActiveUserHistory

Completed in 9 milliseconds