diff --git a/ressched/interfaces/innerkits/ressched_client/include/res_type.h b/ressched/interfaces/innerkits/ressched_client/include/res_type.h index 7d1ff79fa370c581d2a1c2861c576a97759571f4..cfeef4738d2d51fa50610f883f074d7409f28018 100644 --- a/ressched/interfaces/innerkits/ressched_client/include/res_type.h +++ b/ressched/interfaces/innerkits/ressched_client/include/res_type.h @@ -250,6 +250,8 @@ enum : uint32_t { SYNC_RES_TYPE_THAW_ONE_APP, // get all suspend state SYNC_RES_TYPE_GET_ALL_SUSPEND_STATE, + // check shoul force kill process, + SYNC_RES_TYPE_SHOULD_FORCE_KILL_PROCESS, // last sync resType SYNC_RES_TYPE_LAST, // last resType diff --git a/ressched/services/resschedmgr/resschedfwk/src/res_sched_mgr.cpp b/ressched/services/resschedmgr/resschedfwk/src/res_sched_mgr.cpp index 85a92fd85c2a860ce1aacf52de9b9a8488c9f1a2..8a5e161c8c496b3f174d38ae851ea63e60544cfd 100644 --- a/ressched/services/resschedmgr/resschedfwk/src/res_sched_mgr.cpp +++ b/ressched/services/resschedmgr/resschedfwk/src/res_sched_mgr.cpp @@ -125,6 +125,8 @@ namespace { { ResType::RES_TYPE_REPORT_DISTRIBUTE_COMPONENT_CHANGE, "RES_TYPE_REPORT_DISTRIBUTE_COMPONENT_CHANGE"}, { ResType::RES_TYPE_FORM_STATE_CHANGE_EVENT, "RES_TYPE_FORM_STATE_CHANGE_EVENT"}, { ResType::RES_TYPE_POWER_MODE_CHANGED, "RES_TYPE_POWER_MODE_CHANGED" }, + { ResType::RES_TYPE_THERMAL_SCENARIO_REPORT, "RES_TYPE_THERMAL_SCENARIO_REPORT" }, + { ResType::SYNC_RES_TYPE_SHOULD_FORCE_KILL_PROCESS, "SYNC_RES_TYPE_SHOULD_FORCE_KILL_PROCESS" }, { ResType::RES_TYPE_BOOT_COMPLETED, "RES_TYPE_BOOT_COMPLETED" }, { ResType::RES_TYPE_CONTINUOUS_STARTUP, "RES_TYPE_CONTINUOUS_STARTUP" }, { ResType::RES_TYPE_AUDIO_RENDERER_SILENT_PLAYBACK, "RES_TYPE_AUDIO_RENDERER_SILENT_PLAYBACK"}, diff --git a/ressched/services/resschedservice/src/res_sched_service_stub.cpp b/ressched/services/resschedservice/src/res_sched_service_stub.cpp index 26cf0e7576d6c1c4f2e454dff841204542c297fd..bef717965a0b50756e4159736700ed2c29e2d6dc 100644 --- a/ressched/services/resschedservice/src/res_sched_service_stub.cpp +++ b/ressched/services/resschedservice/src/res_sched_service_stub.cpp @@ -148,6 +148,7 @@ namespace { ResType::RES_TYPE_AUDIO_RENDERER_SILENT_PLAYBACK, ResType::RES_TYPE_REPORT_GAME_SCHED, ResType::RES_TYPE_CLOUD_CONFIG_UPDATE, + ResType::SYNC_RES_TYPE_SHOULD_FORCE_KILL_PROCESS, }; const std::string NEEDED_PERMISSION = "ohos.permission.REPORT_RESOURCE_SCHEDULE_EVENT"; const std::string SCENEBOARD_BUNDLE_NAME = "com.ohos.sceneboard";