mirror of
https://github.com/openharmony/linux_frame_aware_sched.git
synced 2026-07-01 22:24:08 -04:00
@@ -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);
|
||||
|
||||
@@ -348,5 +348,10 @@ int GetRtgEnable()
|
||||
struct rtg_enable_data enableData;
|
||||
return ioctl(g_fd, CMD_ID_GET_ENABLE, &enableData);
|
||||
}
|
||||
|
||||
bool GetAppExpelAbility(const std::string &appBundleName)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
} // namespace RME
|
||||
} // namespace OHOS
|
||||
|
||||
+9
-7
@@ -23,8 +23,6 @@ frame_aware_sched_configs =
|
||||
|
||||
frame_aware_sched_deps = [ "../interfaces/innerkits/frameintf:frame_msg_intf" ]
|
||||
|
||||
frame_aware_sched_public_deps = [ "//third_party/googletest:gtest_main" ]
|
||||
|
||||
ohos_unittest("frame_ui_intf_test") {
|
||||
module_out_path = module_output_path
|
||||
|
||||
@@ -35,7 +33,7 @@ ohos_unittest("frame_ui_intf_test") {
|
||||
deps = [ "../interfaces/innerkits/frameintf:frame_ui_intf" ]
|
||||
|
||||
if (is_standard_system) {
|
||||
public_deps = frame_aware_sched_public_deps
|
||||
external_deps = [ "googletest:gtest_main" ]
|
||||
}
|
||||
part_name = "frame_aware_sched"
|
||||
subsystem_name = "resourceschedule"
|
||||
@@ -50,10 +48,14 @@ ohos_unittest("frame_msg_intf_test") {
|
||||
|
||||
deps = frame_aware_sched_deps
|
||||
|
||||
external_deps = [ "ffrt:libffrt" ]
|
||||
external_deps = [
|
||||
"c_utils:utils",
|
||||
"eventhandler:libeventhandler",
|
||||
"ffrt:libffrt",
|
||||
]
|
||||
|
||||
if (is_standard_system) {
|
||||
public_deps = frame_aware_sched_public_deps
|
||||
external_deps += [ "googletest:gtest_main" ]
|
||||
}
|
||||
|
||||
part_name = "frame_aware_sched"
|
||||
@@ -73,7 +75,7 @@ ohos_unittest("rtg_interface_test") {
|
||||
deps = frame_aware_sched_deps
|
||||
|
||||
if (is_standard_system) {
|
||||
public_deps = frame_aware_sched_public_deps
|
||||
external_deps = [ "googletest:gtest_main" ]
|
||||
}
|
||||
|
||||
part_name = "frame_aware_sched"
|
||||
@@ -93,7 +95,7 @@ ohos_unittest("intellisense_server_test") {
|
||||
deps = frame_aware_sched_deps
|
||||
|
||||
if (is_standard_system) {
|
||||
public_deps = frame_aware_sched_public_deps
|
||||
external_deps = [ "googletest:gtest_main" ]
|
||||
}
|
||||
|
||||
part_name = "frame_aware_sched"
|
||||
|
||||
Reference in New Issue
Block a user