diff --git a/state_manager/frameworks/ets/taihe/ability_delegator/idl/ohos.brightness.taihe b/state_manager/frameworks/ets/taihe/ability_delegator/idl/ohos.brightness.taihe index 2f470df94a643c772bee4dfe2376c41daefba07b..6df9fd86b2cedbcf4e73c94fd326b5332c78e769 100644 --- a/state_manager/frameworks/ets/taihe/ability_delegator/idl/ohos.brightness.taihe +++ b/state_manager/frameworks/ets/taihe/ability_delegator/idl/ohos.brightness.taihe @@ -18,8 +18,12 @@ @!sts_inject(""" static { loadLibrary("display_manager_brightness_taihe_native.z") }""") -@overload("setValue") + function SetValueContinuous(value: i32, continuous: bool): void; -@overload("setValue") -function SetValueInt(value: i32): void; \ No newline at end of file +function SetValueInt(value: i32): void; +@static_overload("setValue") +function SetValue_chinast_1(value: i32, continuous: bool): void; + +@static_overload("setValue") +function SetValue_chinast_2(value: i32): void; \ No newline at end of file diff --git a/state_manager/frameworks/ets/taihe/ability_delegator/src/ohos.brightness.impl.cpp b/state_manager/frameworks/ets/taihe/ability_delegator/src/ohos.brightness.impl.cpp index ae852614385ca5da47eebff87dc130912e60e252..760d3f77921e33520b2286428a55801b96d0858f 100644 --- a/state_manager/frameworks/ets/taihe/ability_delegator/src/ohos.brightness.impl.cpp +++ b/state_manager/frameworks/ets/taihe/ability_delegator/src/ohos.brightness.impl.cpp @@ -60,4 +60,7 @@ void SetValueInt(int32_t value) } // namespace TH_EXPORT_CPP_API_SetValueContinuous(SetValueContinuous); +TH_EXPORT_CPP_API_SetValue_chinast_1(SetValueContinuous); TH_EXPORT_CPP_API_SetValueInt(SetValueInt); +TH_EXPORT_CPP_API_SetValue_chinast_2(SetValueInt); +