From 3e6351b12a6c0e8f0ea1b174ae971c0814bd0b9d Mon Sep 17 00:00:00 2001 From: leo9001 Date: Mon, 7 Jul 2025 11:47:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20overload=E6=95=B4=E6=94=B9=20taihe?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit issue: https://gitee.com/openharmony/powermgr_display_manager/issues/ICKTQF?from=project-issue Signed-off-by: leo9001 --- .../taihe/ability_delegator/idl/ohos.brightness.taihe | 10 +++++++--- .../ability_delegator/src/ohos.brightness.impl.cpp | 3 +++ 2 files changed, 10 insertions(+), 3 deletions(-) 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 2f470df..6df9fd8 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 ae85261..760d3f7 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); + -- Gitee