Home
last modified time | relevance | path

Searched refs:DetectorValue (Results 1 – 25 of 32) sorted by relevance

12

/ohos5.0/foundation/resourceschedule/work_scheduler/services/native/src/conditions/
H A Dcondition_checker.cpp62 … std::make_shared<DetectorValue>(WorkCondition::NETWORK_TYPE_ETHERNET, 0, 0, std::string())); in CheckNetworkStatus()
66 … std::make_shared<DetectorValue>(WorkCondition::NETWORK_TYPE_WIFI, 0, 0, std::string())); in CheckNetworkStatus()
70 … std::make_shared<DetectorValue>(WorkCondition::NETWORK_TYPE_MOBILE, 0, 0, std::string())); in CheckNetworkStatus()
87 std::make_shared<DetectorValue>(WorkCondition::CHARGING_PLUGGED_AC, in CheckChargerStatus()
93 std::make_shared<DetectorValue>(WorkCondition::CHARGING_PLUGGED_USB, in CheckChargerStatus()
99 std::make_shared<DetectorValue>(WorkCondition::CHARGING_PLUGGED_WIRELESS, in CheckChargerStatus()
107 … std::make_shared<DetectorValue>(WorkCondition::CHARGING_UNPLUGGED, 0, false, std::string())); in CheckChargerStatus()
128 … std::make_shared<DetectorValue>(WorkCondition::BATTERY_STATUS_LOW, 0, 0, std::string())); in CheckBatteryStatus()
132 … std::make_shared<DetectorValue>(WorkCondition::BATTERY_STATUS_OKAY, 0, 0, std::string())); in CheckBatteryStatus()
H A Dnetwork_listener.cpp57 … std::make_shared<DetectorValue>(WorkCondition::NETWORK_TYPE_MOBILE, 0, 0, std::string())); in OnReceiveEvent()
61 … std::make_shared<DetectorValue>(WorkCondition::NETWORK_TYPE_WIFI, 0, 0, std::string())); in OnReceiveEvent()
65 … std::make_shared<DetectorValue>(WorkCondition::NETWORK_TYPE_BLUETOOTH, 0, 0, std::string())); in OnReceiveEvent()
69 … std::make_shared<DetectorValue>(WorkCondition::NETWORK_TYPE_ETHERNET, 0, 0, std::string())); in OnReceiveEvent()
73 … std::make_shared<DetectorValue>(WorkCondition::NETWORK_TYPE_WIFI_P2P, 0, 0, std::string())); in OnReceiveEvent()
77 … std::make_shared<DetectorValue>(WorkCondition::NETWORK_TYPE_ANY, 0, 0, std::string())); in OnReceiveEvent()
82 … std::make_shared<DetectorValue>(WorkCondition::NETWORK_UNKNOWN, 0, 0, std::string())); in OnReceiveEvent()
86 std::make_shared<DetectorValue>(WorkCondition::NETWORK_UNKNOWN, 0, 0, std::string())); in OnReceiveEvent()
130 std::shared_ptr<DetectorValue> conditionVal) in OnConditionChanged()
H A Dcharger_listener.cpp41 std::make_shared<DetectorValue>(WorkCondition::CHARGING_PLUGGED_AC, in OnReceiveEvent()
47 std::make_shared<DetectorValue>(WorkCondition::CHARGING_PLUGGED_USB, in OnReceiveEvent()
53 std::make_shared<DetectorValue>(WorkCondition::CHARGING_PLUGGED_WIRELESS, in OnReceiveEvent()
66 … std::make_shared<DetectorValue>(WorkCondition::CHARGING_UNPLUGGED, 0, false, std::string())); in OnReceiveEvent()
114 std::shared_ptr<DetectorValue> conditionVal) in OnConditionChanged()
H A Dbattery_status_listener.cpp37 … std::make_shared<DetectorValue>(WorkCondition::BATTERY_STATUS_LOW, 0, 0, std::string())); in OnReceiveEvent()
41 … std::make_shared<DetectorValue>(WorkCondition::BATTERY_STATUS_OKAY, 0, 0, std::string())); in OnReceiveEvent()
87 std::shared_ptr<DetectorValue> conditionVal) in OnConditionChanged()
H A Dstorage_listener.cpp35 std::make_shared<DetectorValue>(WorkCondition::STORAGE_LEVEL_LOW, 0, 0, std::string())); in OnReceiveEvent()
39 … std::make_shared<DetectorValue>(WorkCondition::STORAGE_LEVEL_OKAY, 0, 0, std::string())); in OnReceiveEvent()
86 std::shared_ptr<DetectorValue> conditionVal) in OnConditionChanged()
H A Dtimer_listener.cpp30 std::shared_ptr<DetectorValue> conditionVal) in OnConditionChanged()
46 DetectorValue>(0, 0, 0, std::string())); in Start()
H A Dbattery_level_listener.cpp48 std::make_shared<DetectorValue>(capacity, 0, 0, std::string())); in OnReceiveEvent()
95 std::shared_ptr<DetectorValue> conditionVal) in OnConditionChanged()
H A Dscreen_listener.cpp45 std::make_shared<DetectorValue>(0, 0, false, std::string())); in OnReceiveEvent()
112 std::shared_ptr<DetectorValue> conditionVal) in OnConditionChanged()
H A Dgroup_listener.cpp32 std::shared_ptr<DetectorValue> conditionVal) in OnConditionChanged()
/ohos5.0/foundation/resourceschedule/work_scheduler/services/native/include/
H A Ddetector_value.h23 struct DetectorValue { struct
29 DetectorValue(int32_t intVal, int32_t timeVal, bool boolVal, const std::string &strVal) in DetectorValue() function
H A Dwork_queue.h38 WorkCondition::Type type, std::shared_ptr<DetectorValue> conditionVal);
46 std::shared_ptr<DetectorValue> conditionVal);
H A Dwork_queue_manager.h78 std::shared_ptr<DetectorValue> conditionVal);
122 std::shared_ptr<DetectorValue> conditionVal);
H A Dipolicy_listener.h34 …virtual void OnPolicyChanged(PolicyType policyType, std::shared_ptr<DetectorValue> detectorVal) = …
/ohos5.0/foundation/resourceschedule/work_scheduler/services/native/src/
H A Dwork_standby_state_change_callback.cpp47 std::make_shared<DetectorValue>(0, 0, sleeping, std::string())); in OnDeviceIdleMode()
74 std::make_shared<DetectorValue>(0, 0, dataManager->GetDeviceSleep(), std::string())); in OnAllowListChanged()
H A Dwork_queue_event_handler.cpp39 …manager_->OnConditionChanged(WorkCondition::Type::GROUP, make_shared<DetectorValue>(-1, 0, 0, stri…
H A Dwork_bundle_group_change_callback.cpp56 std::make_shared<DetectorValue>(newGroup, userId, true, bundleName)); in OnAppGroupChanged()
/ohos5.0/foundation/resourceschedule/work_scheduler/services/native/src/policy/
H A Dapp_data_clear_listener.cpp41 auto detectorVal = make_shared<DetectorValue>(uid, 0, 0, bundle); in OnReceiveEvent()
95 void AppDataClearListener::OnPolicyChanged(PolicyType policyType, shared_ptr<DetectorValue> detecto… in OnPolicyChanged()
/ohos5.0/foundation/resourceschedule/work_scheduler/services/native/include/conditions/
H A Dicondition_listener.h35 std::shared_ptr<DetectorValue> conditionVal) = 0;
H A Dgroup_listener.h40 std::shared_ptr<DetectorValue> conditionVal) override;
H A Dtimer_listener.h40 std::shared_ptr<DetectorValue> conditionVal) override;
H A Dnetwork_listener.h37 std::shared_ptr<DetectorValue> conditionVal) override;
H A Dbattery_status_listener.h40 std::shared_ptr<DetectorValue> conditionVal) override;
H A Dcharger_listener.h39 std::shared_ptr<DetectorValue> conditionVal) override;
H A Dstorage_listener.h53 std::shared_ptr<DetectorValue> conditionVal) override;
/ohos5.0/foundation/resourceschedule/work_scheduler/services/native/include/policy/
H A Dapp_data_clear_listener.h37 … void OnPolicyChanged(PolicyType policyType, std::shared_ptr<DetectorValue> detectorVal) override;

12