/foundation/resourceschedule/resource_schedule_service/ressched/plugins/socperf_plugin/include/ |
H A D | socperf_plugin.h | 35 void DispatchResource(const std::shared_ptr<ResData>& resData) override;
40 std::unordered_map<uint32_t, std::function<void(const std::shared_ptr<ResData>& data)>> functionMap;
53 void HandleWindowFocus(const std::shared_ptr<ResData>& data);
54 void HandleEventClick(const std::shared_ptr<ResData>& data);
55 void HandleLoadPage(const std::shared_ptr<ResData>& data);
56 void HandlePopPage(const std::shared_ptr<ResData>& data);
57 void HandleEventSlide(const std::shared_ptr<ResData>& data);
58 void HandleEventWebGesture(const std::shared_ptr<ResData>& data);
59 void HandleAppAbilityStart(const std::shared_ptr<ResData>& data);
60 void HandleResizeWindow(const std::shared_ptr<ResData> [all...] |
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/socperf_plugin/test/unittest/ |
H A D | soc_perf_plugin_test.cpp | 35 using OnDispatchResourceFunc = void (*)(const std::shared_ptr<ResData>& data); 83 const std::shared_ptr<ResData>& data = std::make_shared<ResData>(ResType::RES_TYPE_APP_ABILITY_START, in HWTEST_F() 86 const std::shared_ptr<ResData>& dataInvalid = std::make_shared<ResData>(-1, -1, nullptr); in HWTEST_F() 99 const std::shared_ptr<ResData>& coldStartData = std::make_shared<ResData>(ResType::RES_TYPE_APP_ABILITY_START, in HWTEST_F() 103 const std::shared_ptr<ResData>& warmStartData = std::make_shared<ResData>(ResType::RES_TYPE_APP_ABILITY_START, in HWTEST_F() 106 const std::shared_ptr<ResData> in HWTEST_F() [all...] |
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/frame_aware_plugin/include/ |
H A D | frame_aware_plugin.h | 39 void DispatchResource(const std::shared_ptr<ResData>& resData) override;
42 std::unordered_map<uint32_t, std::function<void(const std::shared_ptr<ResData> data)>> functionMap;
45 void HandleAppStateChange(const std::shared_ptr<ResData>& data);
46 void HandleProcessStateChange(const std::shared_ptr<ResData>& data);
47 void HandleContinuousTask(const std::shared_ptr<ResData>& data);
48 void HandleCgroupAdjuster(const std::shared_ptr<ResData>& data);
49 void HandleWindowsFocus(const std::shared_ptr<ResData>& data);
50 void HandleReportRender(const std::shared_ptr<ResData>& data);
51 void HandleNetworkLatencyRequest(const std::shared_ptr<ResData>& data);
52 void HandleEventSlide(const std::shared_ptr<ResData> [all...] |
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/socperf_plugin/test/fuzztest/socperfplugin_fuzzer/ |
H A D | socperfplugin_fuzzer.cpp | 32 using OnDispatchResourceFunc = void (*)(const std::shared_ptr<ResData>& data); 38 const std::shared_ptr<ResData> &resData = std::make_shared<ResData>(ResType::RES_TYPE_WINDOW_FOCUS, value, in TestWindowFocus() 47 const std::shared_ptr<ResData> &resData = std::make_shared<ResData>(ResType::RES_TYPE_CLICK_RECOGNIZE, value, in TestClickRecognize() 56 const std::shared_ptr<ResData> &resData = std::make_shared<ResData>(ResType::RES_TYPE_LOAD_PAGE, value, in TestLoadPage() 65 const std::shared_ptr<ResData> &resData = std::make_shared<ResData>(ResType::RES_TYPE_SLIDE_RECOGNIZE, value, in TestSlideRecognize() 74 const std::shared_ptr<ResData> in TestWebGesture() [all...] |
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/frame_aware_plugin/src/ |
H A D | frame_aware_plugin.cpp | 41 [this](const std::shared_ptr<ResData>& data) { HandleAppStateChange(data); } },
in Init() 43 [this](const std::shared_ptr<ResData>& data) { HandleProcessStateChange(data); } },
in Init() 45 [this](const std::shared_ptr<ResData>& data) { HandleContinuousTask(data); } },
in Init() 47 [this](const std::shared_ptr<ResData>& data) { HandleCgroupAdjuster(data); } },
in Init() 49 [this](const std::shared_ptr<ResData>& data) { HandleWindowsFocus(data); } },
in Init() 51 [this](const std::shared_ptr<ResData>& data) { HandleReportRender(data); } },
in Init() 53 [this](const std::shared_ptr<ResData>& data) { HandleNetworkLatencyRequest(data); } },
in Init() 55 [this](const std::shared_ptr<ResData>& data) { HandleEventSlide(data); } },
in Init() 57 [this](const std::shared_ptr<ResData>& data) { HandleScreenLock(data); } },
in Init() 59 [this](const std::shared_ptr<ResData> in Init() [all...] |
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/socperf_plugin/src/ |
H A D | socperf_plugin.cpp | 146 [this](const std::shared_ptr<ResData>& data) { HandleWindowFocus(data); } },
in InitFunctionMap() 148 [this](const std::shared_ptr<ResData>& data) { HandleEventClick(data); } },
in InitFunctionMap() 150 [this](const std::shared_ptr<ResData>& data) { HandleLoadPage(data); } },
in InitFunctionMap() 152 [this](const std::shared_ptr<ResData>& data) { HandleEventSlide(data); } },
in InitFunctionMap() 154 [this](const std::shared_ptr<ResData>& data) { HandleEventWebGesture(data); } },
in InitFunctionMap() 156 [this](const std::shared_ptr<ResData>& data) { HandlePopPage(data); } },
in InitFunctionMap() 158 [this](const std::shared_ptr<ResData>& data) { HandleAppAbilityStart(data); } },
in InitFunctionMap() 160 [this](const std::shared_ptr<ResData>& data) { HandleResizeWindow(data); } },
in InitFunctionMap() 162 [this](const std::shared_ptr<ResData>& data) { HandleMoveWindow(data); } },
in InitFunctionMap() 164 [this](const std::shared_ptr<ResData> in InitFunctionMap() [all...] |
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/frame_aware_plugin/test/unittest/ |
H A D | frame_aware_plugin_test.cpp | 66 std::shared_ptr<ResData> data = std::make_shared<ResData>(type, value, payload); in HWTEST_F() 67 std::shared_ptr<ResData> data1 = std::make_shared<ResData>(type, value, payloadarray); in HWTEST_F() 106 std::shared_ptr<ResData> data = std::make_shared<ResData>(type, value, payload); in HWTEST_F() 107 std::shared_ptr<ResData> data1 = std::make_shared<ResData>(type, value, payloadarray); in HWTEST_F() 146 std::shared_ptr<ResData> data = std::make_shared<ResData>(typ in HWTEST_F() [all...] |
/foundation/resourceschedule/resource_schedule_service/ressched/services/resschedmgr/pluginbase/include/ |
H A D | res_data.h | 24 struct ResData {
struct 25 ResData() = default;
26 ~ResData() = default;
28 ResData(uint32_t type, int64_t value, const nlohmann::json& payload) : resType(type),
in ResData() function 31 ResData(uint32_t type, int64_t value, const nlohmann::json& payload, nlohmann::json& reply) : resType(type),
in ResData() function
|
H A D | plugin.h | 43 virtual void DispatchResource(const std::shared_ptr<ResData>& data) = 0;
50 virtual int32_t DeliverResource(const std::shared_ptr<ResData>& data)
in DeliverResource()
|
/foundation/resourceschedule/device_standby/utils/common/include/ |
H A D | standby_res_data.h | 24 struct ResData { struct 25 ResData() = default; 26 ~ResData() = default; 28 ResData(uint32_t type, int64_t value, const nlohmann::json& payload) : resType(type), in ResData() function
|
/foundation/resourceschedule/resource_schedule_service/ressched_executor/plugins/socperf_executor_plugin/framework/include/ |
H A D | socperf_executor_plugin.h | 32 void DispatchResource(const std::shared_ptr<ResData>& resData) override; 34 void HandleSocperfWirteNode(const std::shared_ptr<ResData> &data); 36 void SocPerfWirteNode(const std::shared_ptr<ResData> &data); 39 std::unordered_map<uint32_t, std::function<void(const std::shared_ptr<ResData>& data)>> functionMap_;
|
/foundation/resourceschedule/resource_schedule_service/ressched_executor/plugins/socperf_executor_plugin/framework/src/ |
H A D | socperf_executor_plugin.cpp | 44 [this](const std::shared_ptr<ResData> &data) { HandleSocperfWirteNode(data); }, }, in Init() 63 void SocPerfExecutorPlugin::DispatchResource(const std::shared_ptr<ResData>& data) in DispatchResource() 74 void SocPerfExecutorPlugin::HandleSocperfWirteNode(const std::shared_ptr<ResData>& data) in HandleSocperfWirteNode() 95 void SocPerfExecutorPlugin::SocPerfWirteNode(const std::shared_ptr<ResData>& data) in SocPerfWirteNode() 126 extern "C" void OnDispatchResource(const std::shared_ptr<ResData>& data) in OnDispatchResource()
|
/foundation/resourceschedule/resource_schedule_service/ressched/services/resschedmgr/resschedfwk/include/ |
H A D | plugin_mgr.h | 46 using OnDispatchResourceFunc = void (*)(const std::shared_ptr<ResData>&);
47 using OnDeliverResourceFunc = int32_t (*)(const std::shared_ptr<ResData>&);
113 void DispatchResource(const std::shared_ptr<ResData>& resData);
120 int32_t DeliverResource(const std::shared_ptr<ResData>& resData);
224 const std::shared_ptr<ResData>& resData);
227 const std::shared_ptr<ResData>& resData);
239 std::string BuildDispatchTrace(const std::shared_ptr<ResData>& resData, std::string& libNameAll,
242 int32_t GetExtTypeByResPayload(const std::shared_ptr<ResData>& resData);
|
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/device_standby_plugin/src/ |
H A D | device_standby_plugin.cpp | 65 void DeviceStandbyPlugin::DispatchResource(const std::shared_ptr<ResData>& data) in DispatchResource() 77 std::make_shared<DevStandbyMgr::ResData>(data->resType, data->value, data->payload)); in DispatchResource() 97 extern "C" void OnDispatchResource(const std::shared_ptr<ResData>& data) in OnDispatchResource()
|
/foundation/resourceschedule/resource_schedule_service/ressched/test/unittest/src/ |
H A D | plugin_mgr_test.cpp | 79 libInfo.onDispatchResourceFunc_ = [](const std::shared_ptr<ResData>& data) {
in GetTestPlugin() 270 auto data = std::make_shared<ResData>(ResType::RES_TYPE_APP_ABILITY_START,
in HWTEST_F() 293 auto data = std::make_shared<ResData>(ResType::RES_TYPE_APP_ABILITY_START,
in HWTEST_F() 358 auto data = std::make_shared<ResData>(ResType::RES_TYPE_APP_ABILITY_START,
in HWTEST_F() 436 auto data = std::make_shared<ResData>(ResType::RES_TYPE_APP_ABILITY_START,
in HWTEST_F() 516 std::shared_ptr<ResData> resData =
in HWTEST_F() 517 std::make_shared<ResData>(ResType::RES_TYPE_LOAD_PAGE, ResType::LoadPageType::LOAD_PAGE_START, payload);
in HWTEST_F() 538 std::shared_ptr<ResData> resData =
in HWTEST_F() 539 std::make_shared<ResData>(ResType::RES_TYPE_SHOW_REMOTE_ANIMATION,
in HWTEST_F() 578 auto data = std::make_shared<ResData>(ResTyp in HWTEST_F() [all...] |
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/device_standby_plugin/test/fuzztest/devicestandbyplugin_fuzzer/ |
H A D | devicestandbyplugin_fuzzer.cpp | 100 std::shared_ptr<ResData> resData = std::make_shared<ResData>(resType, appStartType, nullptr); in DeviceStandbyPluginFuzzTest()
|
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/test/unittest/ |
H A D | cgroup_sched_test.cpp | 244 using OnDispatchResourceFunc = void (*)(const std::shared_ptr<ResData>& data); in HWTEST_F() 259 const std::shared_ptr<ResData>& data = std::make_shared<ResData>(ResType::RES_TYPE_APP_ABILITY_START, in HWTEST_F() 262 const std::shared_ptr<ResData>& dataInvalid = std::make_shared<ResData>(-1, -1, nullptr); in HWTEST_F() 290 const std::shared_ptr<ResData>& data = std::make_shared<ResData>(ResType::RES_TYPE_APP_ABILITY_START, in HWTEST_F()
|
/foundation/resourceschedule/resource_schedule_service/ressched/test/unittest/include/ |
H A D | res_sched_mgr_test.h | 35 std::shared_ptr<ResData> ReportData(uint32_t resType);
|
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/device_standby_plugin/include/ |
H A D | device_standby_plugin.h | 36 void DispatchResource(const std::shared_ptr<ResData>& resData) override;
|
/foundation/resourceschedule/device_standby/interfaces/innerkits/include/ |
H A D | standby_service_client.h | 152 ErrCode HandleEvent(const std::shared_ptr<ResData> &resData);
|
/foundation/resourceschedule/resource_schedule_service/ressched/services/resschedmgr/resschedfwk/src/ |
H A D | plugin_mgr.cpp | 353 int32_t PluginMgr::GetExtTypeByResPayload(const std::shared_ptr<ResData>& resData)
in GetExtTypeByResPayload() 394 std::string PluginMgr::BuildDispatchTrace(const std::shared_ptr<ResData>& resData, std::string& libNameAll,
in BuildDispatchTrace() 417 void PluginMgr::DispatchResource(const std::shared_ptr<ResData>& resData)
in DispatchResource() 456 int32_t PluginMgr::DeliverResource(const std::shared_ptr<ResData>& resData)
in DeliverResource() 701 const std::shared_ptr<ResData>& resData)
in DispatchResourceToPluginSync() 723 pluginDispatchFunc(std::make_shared<ResData>(resData->resType, resData->value, resData->payload));
in DispatchResourceToPluginSync() 752 const std::shared_ptr<ResData>& resData)
in DispatchResourceToPluginAsync() 777 pluginDispatchFunc(std::make_shared<ResData>(resData->resType, resData->value, resData->payload));
in DispatchResourceToPluginAsync()
|
H A D | res_sched_mgr.cpp | 177 PluginMgr::GetInstance().DispatchResource(std::make_shared<ResData>(resType, value, payload));
in ReportDataInner()
|
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/framework/sched_controller/include/ |
H A D | sched_controller.h | 59 void DispatchResource(const std::shared_ptr<ResData>& resData) override;
|
/foundation/resourceschedule/resource_schedule_service/ressched_executor/services/resschedexemgr/src/ |
H A D | res_sched_exe_mgr.cpp | 81 auto resData = std::make_shared<ResData>(resType, value, payload, reply); in SendRequestSync() 100 PluginMgr::GetInstance().DispatchResource(std::make_shared<ResData>(resType, value, payload)); in SendRequestAsync()
|
/foundation/resourceschedule/device_standby/interfaces/innerkits/src/ |
H A D | standby_service_client.cpp | 129 ErrCode StandbyServiceClient::HandleEvent(const std::shared_ptr<ResData> &resData) in HandleEvent()
|