From eb97be6bc6ccb3f1bf93026cb6d74bff846ba990 Mon Sep 17 00:00:00 2001 From: YouZijun97 Date: Sun, 15 Sep 2024 20:29:22 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E9=BB=84=E8=93=9D=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: YouZijun97 --- common/include/rtg_interface.h | 2 ++ interfaces/innerkits/frameintf/rtg_interface.cpp | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/common/include/rtg_interface.h b/common/include/rtg_interface.h index 1d52022..269ef65 100644 --- a/common/include/rtg_interface.h +++ b/common/include/rtg_interface.h @@ -84,6 +84,8 @@ enum rtg_sched_cmdid { RTG_CTRL_MAX_NR, }; +bool GetAppExpelAbility(const std::string &appBundleName); + extern "C" { int EnableRtg(bool flag); int AddThreadToRtg(int tid, int grpId, int prioType = 0, bool isBlue = false); diff --git a/interfaces/innerkits/frameintf/rtg_interface.cpp b/interfaces/innerkits/frameintf/rtg_interface.cpp index d35684d..3677b6f 100644 --- a/interfaces/innerkits/frameintf/rtg_interface.cpp +++ b/interfaces/innerkits/frameintf/rtg_interface.cpp @@ -382,5 +382,10 @@ int GetRtgEnable() } return ret; } + +bool GetAppExpelAbility(const std::string &appBundleName) +{ + return false; +} } // namespace RME } // namespace OHOS -- Gitee From 5254c7e9e060816ecb44759342a9942bf3859891 Mon Sep 17 00:00:00 2001 From: YouZijun97 Date: Sun, 15 Sep 2024 22:44:36 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=93=9D=E9=BB=84?= =?UTF-8?q?=E4=B8=8D=E4=B8=80=E8=87=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: YouZijun97 --- common/include/rtg_interface.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/include/rtg_interface.h b/common/include/rtg_interface.h index 269ef65..09d6bc8 100644 --- a/common/include/rtg_interface.h +++ b/common/include/rtg_interface.h @@ -84,8 +84,6 @@ enum rtg_sched_cmdid { RTG_CTRL_MAX_NR, }; -bool GetAppExpelAbility(const std::string &appBundleName); - extern "C" { int EnableRtg(bool flag); int AddThreadToRtg(int tid, int grpId, int prioType = 0, bool isBlue = false); @@ -103,6 +101,9 @@ extern "C" { int SearchRtgForTid(int tid); int GetRtgEnable(); } + +bool GetAppExpelAbility(const std::string &appBundleName); + } // namespace RME } // namespace OHOS #endif // OHOS_FRAME_AWARE_SCHED_COMMON_INCLUDE_RTG_INTERFACE_H -- Gitee From df4901870895790ea0024d7b9d4194133cd18a30 Mon Sep 17 00:00:00 2001 From: YouZijun97 Date: Sun, 15 Sep 2024 22:53:17 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=93=9D=E9=BB=84?= =?UTF-8?q?=E5=8C=BA=E4=B8=8D=E4=B8=80=E8=87=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: YouZijun97 --- common/include/rtg_interface.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/include/rtg_interface.h b/common/include/rtg_interface.h index 09d6bc8..269ef65 100644 --- a/common/include/rtg_interface.h +++ b/common/include/rtg_interface.h @@ -84,6 +84,8 @@ enum rtg_sched_cmdid { RTG_CTRL_MAX_NR, }; +bool GetAppExpelAbility(const std::string &appBundleName); + extern "C" { int EnableRtg(bool flag); int AddThreadToRtg(int tid, int grpId, int prioType = 0, bool isBlue = false); @@ -101,9 +103,6 @@ extern "C" { int SearchRtgForTid(int tid); int GetRtgEnable(); } - -bool GetAppExpelAbility(const std::string &appBundleName); - } // namespace RME } // namespace OHOS #endif // OHOS_FRAME_AWARE_SCHED_COMMON_INCLUDE_RTG_INTERFACE_H -- Gitee