diff --git a/frameworks/core/frame_aware_policy/src/intellisense_server.cpp b/frameworks/core/frame_aware_policy/src/intellisense_server.cpp index 8b10dcc2c0956687e2cb4c710e7c5c197afa6260..d91b3d7100761aa3177b6f34dce05cb6ce303aea 100644 --- a/frameworks/core/frame_aware_policy/src/intellisense_server.cpp +++ b/frameworks/core/frame_aware_policy/src/intellisense_server.cpp @@ -32,6 +32,7 @@ namespace { static std::string configFilePath = "/system/etc/frame_aware_sched/hwrme.xml"; // need To check the exact file path. } using namespace std; +using namespace QosCommon; DEFINE_RMELOG_INTELLISENSE("ueaServer-IntelliSenseServer"); IMPLEMENT_SINGLE_INSTANCE(IntelliSenseServer); diff --git a/qos_manager/include/qos_common.h b/qos_manager/include/qos_common.h index 7f6e50232912415ad39b7331e95bd07abd2eeca7..b54a5aa66ebab484e80efb66d249c812f90726b2 100644 --- a/qos_manager/include/qos_common.h +++ b/qos_manager/include/qos_common.h @@ -15,6 +15,9 @@ #ifndef QOS_COMMON_H #define QOS_COMMON_H +namespace OHOS { +namespace QosCommon { + constexpr int NR_QOS = 6; constexpr int QOS_NICE_FLAG = 0x01; constexpr int QOS_LATENCY_NICE_FLAG = 0x02; @@ -98,4 +101,6 @@ int QosApplyForThread(int level, int tid); int QosLeaveForThread(int tid); int QosPolicy(struct QosPolicyDatas *policyDatas); +} // namespace QosCommon +} // namespace OHOS #endif // QOS_COMMON_H \ No newline at end of file diff --git a/qos_manager/src/qos_common.cpp b/qos_manager/src/qos_common.cpp index 86bcc513429b893bcb0574e05707aafcf0d65718..c648dccafef6740e6c3a6f7b5a66b44555473a0b 100644 --- a/qos_manager/src/qos_common.cpp +++ b/qos_manager/src/qos_common.cpp @@ -22,6 +22,9 @@ constexpr unsigned int AF_QOS_DELEGATED = 0x0001; +namespace OHOS { +namespace QosCommon { + DEFINE_RMELOG_INTELLISENSE("qos_manager"); static int TrivalOpenQosCtrlNode(void) @@ -178,4 +181,7 @@ int QosPolicy(struct QosPolicyDatas *policyDatas) } close(fd); return ret; -} \ No newline at end of file +} + +} // namespace QosCommon +} // namespace OHOS \ No newline at end of file diff --git a/qos_manager/src/qos_manager.cpp b/qos_manager/src/qos_manager.cpp index ec1dad69a5d1bc79dbe144e05f1ed5bc588803b3..3488b47d226c9858e466c58646289deb492c326d 100644 --- a/qos_manager/src/qos_manager.cpp +++ b/qos_manager/src/qos_manager.cpp @@ -23,7 +23,7 @@ constexpr int ERROR_NUM = -1; namespace OHOS { namespace QOS { - +using namespace QosCommon; DEFINE_RMELOG_INTELLISENSE("qos_manager"); static struct QosPolicyDatas g_defaultPolicy = {