Home
last modified time | relevance | path

Searched refs:workQueueManager_ (Results 1 - 25 of 28) sorted by relevance

12

/foundation/resourceschedule/work_scheduler/services/native/src/conditions/
H A Dcondition_checker.cpp31 workQueueManager_ = workQueueManager; in ConditionChecker()
61 workQueueManager_->OnConditionChanged(WorkCondition::Type::NETWORK, in CheckNetworkStatus()
65 workQueueManager_->OnConditionChanged(WorkCondition::Type::NETWORK, in CheckNetworkStatus()
69 workQueueManager_->OnConditionChanged(WorkCondition::Type::NETWORK, in CheckNetworkStatus()
86 workQueueManager_->OnConditionChanged(WorkCondition::Type::CHARGER, in CheckChargerStatus()
92 workQueueManager_->OnConditionChanged(WorkCondition::Type::CHARGER, in CheckChargerStatus()
98 workQueueManager_->OnConditionChanged(WorkCondition::Type::CHARGER, in CheckChargerStatus()
106 workQueueManager_->OnConditionChanged(WorkCondition::Type::CHARGER, in CheckChargerStatus()
127 workQueueManager_->OnConditionChanged(WorkCondition::Type::BATTERY_STATUS, in CheckBatteryStatus()
131 workQueueManager_ in CheckBatteryStatus()
[all...]
H A Dgroup_listener.cpp25 workQueueManager_ = workQueueManager; in GroupListener()
34 workQueueManager_->OnConditionChanged(conditionType, conditionVal); in OnConditionChanged()
44 handler_ = std::make_shared<WorkQueueEventHandler>(eventRunner_, workQueueManager_); in Start()
46 if (workQueueManager_ == nullptr) { in Start()
50 int32_t time = workQueueManager_->GetTimeRetrigger(); in Start()
H A Dtimer_listener.cpp25 workQueueManager_ = workQueueManager; in TimerListener()
34 workQueueManager_->OnConditionChanged(conditionType, conditionVal); in OnConditionChanged()
44 handler_ = std::make_shared<WorkQueueEventHandler>(eventRunner_, workQueueManager_); in Start()
46 if (workQueueManager_ == nullptr) { in Start()
47 WS_HILOGE("workQueueManager_ is null"); in Start()
50 uint32_t time = workQueueManager_->GetTimeCycle(); in Start()
H A Dbattery_level_listener.cpp64 workQueueManager_ = workQueueManager; in BatteryLevelListener()
96 if (workQueueManager_ != nullptr) { in OnConditionChanged()
97 workQueueManager_->OnConditionChanged(conditionType, conditionVal); in OnConditionChanged()
99 WS_HILOGE("workQueueManager_ is nullptr."); in OnConditionChanged()
H A Dbattery_status_listener.cpp58 workQueueManager_ = workQueueManager; in BatteryStatusListener()
89 if (workQueueManager_ != nullptr) { in OnConditionChanged()
90 workQueueManager_->OnConditionChanged(conditionType, conditionVal); in OnConditionChanged()
92 WS_HILOGE("workQueueManager_ is nullptr."); in OnConditionChanged()
H A Dstorage_listener.cpp57 workQueueManager_ = workQueueManager; in StorageListener()
88 if (workQueueManager_ != nullptr) { in OnConditionChanged()
89 workQueueManager_->OnConditionChanged(conditionType, conditionVal); in OnConditionChanged()
91 WS_HILOGE("workQueueManager_ is nullptr."); in OnConditionChanged()
H A Dnetwork_listener.cpp101 workQueueManager_ = workQueueManager; in NetworkListener()
132 if (workQueueManager_ != nullptr) { in OnConditionChanged()
133 workQueueManager_->OnConditionChanged(conditionType, conditionVal); in OnConditionChanged()
135 WS_HILOGE("workQueueManager_ is nullptr."); in OnConditionChanged()
H A Dscreen_listener.cpp61 workQueueManager_ = workQueueManager; in ScreenListener()
102 if (workQueueManager_ != nullptr) { in OnConditionChanged()
103 workQueueManager_->OnConditionChanged(conditionType, conditionVal); in OnConditionChanged()
105 WS_HILOGE("workQueueManager_ is nullptr."); in OnConditionChanged()
H A Dcharger_listener.cpp85 workQueueManager_ = workQueueManager; in ChargerListener()
116 if (workQueueManager_ != nullptr) { in OnConditionChanged()
117 workQueueManager_->OnConditionChanged(conditionType, conditionVal); in OnConditionChanged()
119 WS_HILOGE("workQueueManager_ is nullptr."); in OnConditionChanged()
/foundation/resourceschedule/work_scheduler/services/native/src/
H A Dwork_standby_state_change_callback.cpp25 workQueueManager_ = workQueueManager; in WorkStandbyStateChangeCallback()
35 workQueueManager_->OnConditionChanged(WorkCondition::Type::STANDBY, in OnDeviceIdleMode()
48 workQueueManager_->OnConditionChanged(WorkCondition::Type::STANDBY, in OnAllowListChanged()
H A Dwork_bundle_group_change_callback.cpp25 workQueueManager_ = workQueueManager; in WorkBundleGroupChangeCallback()
37 if (!workQueueManager_) { in OnAppGroupChanged()
38 WS_HILOGE("workQueueManager_ is nullptr."); in OnAppGroupChanged()
43 workQueueManager_->OnConditionChanged(WorkCondition::Type::GROUP, in OnAppGroupChanged()
H A Dwork_scheduler_service.cpp419 if (workQueueManager_ == nullptr) { in WorkQueueManagerInit()
420 workQueueManager_ = make_shared<WorkQueueManager>(instance); in WorkQueueManagerInit()
423 auto networkListener = make_shared<NetworkListener>(workQueueManager_); in WorkQueueManagerInit()
425 auto chargerListener = make_shared<ChargerListener>(workQueueManager_); in WorkQueueManagerInit()
426 auto batteryStatusListener = make_shared<BatteryStatusListener>(workQueueManager_); in WorkQueueManagerInit()
427 auto batteryLevelListener = make_shared<BatteryLevelListener>(workQueueManager_, shared_from_this()); in WorkQueueManagerInit()
430 auto storageListener = make_shared<StorageListener>(workQueueManager_); in WorkQueueManagerInit()
431 auto timerListener = make_shared<TimerListener>(workQueueManager_, runner); in WorkQueueManagerInit()
432 auto groupListener = make_shared<GroupListener>(workQueueManager_, runner); in WorkQueueManagerInit()
433 auto screenListener = make_shared<ScreenListener>(workQueueManager_, shared_from_thi in WorkQueueManagerInit()
[all...]
/foundation/resourceschedule/work_scheduler/services/test/src/conditions/
H A Dscreen_listener_test.cpp36 static std::shared_ptr<WorkQueueManager> workQueueManager_; member in OHOS::WorkScheduler::ScreenListenerTest
41 std::shared_ptr<WorkQueueManager> ScreenListenerTest::workQueueManager_ = nullptr; member in OHOS::WorkScheduler::ScreenListenerTest
48 workQueueManager_ = std::make_shared<WorkQueueManager>(workSchedulerService_); in SetUpTestCase()
49 screenListener_ = std::make_shared<ScreenListener>(workQueueManager_, workSchedulerService_); in SetUpTestCase()
H A Dnetwork_listener_test.cpp43 static std::shared_ptr<WorkQueueManager> workQueueManager_; member in OHOS::WorkScheduler::NetworkListenerTest
47 std::shared_ptr<WorkQueueManager> NetworkListenerTest::workQueueManager_ = nullptr; member in OHOS::WorkScheduler::NetworkListenerTest
53 workQueueManager_ = std::make_shared<WorkQueueManager>(workSchedulerService_); in SetUpTestCase()
54 networkListener_ = std::make_shared<NetworkListener>(workQueueManager_); in SetUpTestCase()
/foundation/resourceschedule/work_scheduler/services/native/include/conditions/
H A Dcondition_checker.h33 std::shared_ptr<WorkQueueManager> workQueueManager_; member in OHOS::WorkScheduler::ConditionChecker
H A Dgroup_listener.h54 std::shared_ptr<WorkQueueManager> workQueueManager_; member in OHOS::WorkScheduler::GroupListener
H A Dtimer_listener.h54 std::shared_ptr<WorkQueueManager> workQueueManager_; member in OHOS::WorkScheduler::TimerListener
H A Dbattery_level_listener.h57 std::shared_ptr<WorkQueueManager> workQueueManager_; member in OHOS::WorkScheduler::BatteryLevelListener
H A Dbattery_status_listener.h54 std::shared_ptr<WorkQueueManager> workQueueManager_; member in OHOS::WorkScheduler::BatteryStatusListener
H A Dcharger_listener.h53 std::shared_ptr<WorkQueueManager> workQueueManager_; member in OHOS::WorkScheduler::ChargerListener
H A Dscreen_listener.h58 std::shared_ptr<WorkQueueManager> workQueueManager_; member in OHOS::WorkScheduler::ScreenListener
H A Dstorage_listener.h67 std::shared_ptr<WorkQueueManager> workQueueManager_; member in OHOS::WorkScheduler::StorageListener
/foundation/resourceschedule/work_scheduler/services/native/include/
H A Dwork_bundle_group_change_callback.h38 std::shared_ptr<WorkQueueManager> workQueueManager_; member in OHOS::WorkScheduler::WorkBundleGroupChangeCallback
H A Dwork_standby_state_change_callback.h47 std::shared_ptr<WorkQueueManager> workQueueManager_; member in OHOS::WorkScheduler::WorkStandbyStateChangeCallback
/foundation/resourceschedule/work_scheduler/test/fuzztest/workschedulerstartwork_fuzzer/
H A Dworkschedulerstartwork_fuzzer.cpp203 BatteryLevelListener batteryLevelListener(workSchedulerService_->workQueueManager_, workSchedulerService_); in OnBatteryLevelListener()
222 BatteryStatusListener batteryStatusListener(workSchedulerService_->workQueueManager_); in OnBatteryStatusListener()
243 ChargerListener chargerListener(workSchedulerService_->workQueueManager_); in OnChargerListener()
272 workSchedulerService_->workQueueManager_, workSchedulerService_); in OnScreenListener()
383 if (workSchedulerService_->workQueueManager_ == nullptr) { in DoSomethingInterestingWithMyAPI()
384 workSchedulerService_->workQueueManager_ = std::make_shared<WorkQueueManager>(workSchedulerService_); in DoSomethingInterestingWithMyAPI()

Completed in 8 milliseconds

12