Home
last modified time | relevance | path

Searched refs:DetectorValue (Results 1 - 25 of 34) sorted by relevance

12

/foundation/resourceschedule/work_scheduler/services/native/src/conditions/
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 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 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 Dbattery_level_listener.cpp47 std::make_shared<DetectorValue>(capacity, 0, 0, std::string())); in OnReceiveEvent()
94 std::shared_ptr<DetectorValue> conditionVal) in OnConditionChanged()
H A Dscreen_listener.cpp44 std::make_shared<DetectorValue>(0, 0, false, std::string())); in OnReceiveEvent()
100 std::shared_ptr<DetectorValue> conditionVal) in OnConditionChanged()
H A Dgroup_listener.cpp32 std::shared_ptr<DetectorValue> conditionVal) in OnConditionChanged()
/foundation/resourceschedule/work_scheduler/services/test/src/
H A Dwork_queue_test.cpp53 std::shared_ptr<DetectorValue> value = std::make_shared<DetectorValue>(0, 0, false, ""); in HWTEST_F()
67 std::shared_ptr<DetectorValue> value = std::make_shared<DetectorValue>(0, 0, false, ""); in HWTEST_F()
81 std::shared_ptr<DetectorValue> value = std::make_shared<DetectorValue>(0, 0, false, ""); in HWTEST_F()
95 std::shared_ptr<DetectorValue> value = std::make_shared<DetectorValue>(0, 0, false, ""); in HWTEST_F()
109 std::shared_ptr<DetectorValue> value = std::make_shared<DetectorValue>(8 in HWTEST_F()
[all...]
/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_manager.h78 std::shared_ptr<DetectorValue> conditionVal);
122 std::shared_ptr<DetectorValue> conditionVal);
H A Dwork_queue.h38 WorkCondition::Type type, std::shared_ptr<DetectorValue> conditionVal);
46 std::shared_ptr<DetectorValue> conditionVal);
H A Dipolicy_listener.h34 virtual void OnPolicyChanged(PolicyType policyType, std::shared_ptr<DetectorValue> detectorVal) = 0;
/foundation/resourceschedule/work_scheduler/services/native/src/
H A Dwork_standby_state_change_callback.cpp36 std::make_shared<DetectorValue>(0, 0, sleeping, std::string())); in OnDeviceIdleMode()
49 std::make_shared<DetectorValue>(0, 0, isSleep_, std::string())); in OnAllowListChanged()
H A Dwork_queue_event_handler.cpp39 manager_->OnConditionChanged(WorkCondition::Type::TIMER, make_shared<DetectorValue>(0, 0, 0, string())); in ProcessEvent()
48 manager_->OnConditionChanged(WorkCondition::Type::GROUP, make_shared<DetectorValue>(-1, 0, 0, string())); in ProcessEvent()
H A Dwork_bundle_group_change_callback.cpp44 std::make_shared<DetectorValue>(newGroup, userId, groupChange, bundleName)); in OnAppGroupChanged()
/foundation/resourceschedule/work_scheduler/services/native/src/policy/
H A Dapp_data_clear_listener.cpp40 auto detectorVal = make_shared<DetectorValue>(uid, 0, 0, bundle); in OnReceiveEvent()
94 void AppDataClearListener::OnPolicyChanged(PolicyType policyType, shared_ptr<DetectorValue> detectorVal) in OnPolicyChanged()
/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 Dbattery_level_listener.h43 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 Dscreen_listener.h42 std::shared_ptr<DetectorValue> conditionVal) override;
H A Dstorage_listener.h53 std::shared_ptr<DetectorValue> conditionVal) override;

Completed in 8 milliseconds

12