diff --git a/frameworks/ets/taihe/bluetooth_connection/idl/ohos.bluetooth.connection.taihe b/frameworks/ets/taihe/bluetooth_connection/idl/ohos.bluetooth.connection.taihe index d834a758a4a4c98097fa4e1bf4b7957db1aa6820..abdce58aa9938c8601362027d4ad6c7d8792e079 100644 --- a/frameworks/ets/taihe/bluetooth_connection/idl/ohos.bluetooth.connection.taihe +++ b/frameworks/ets/taihe/bluetooth_connection/idl/ohos.bluetooth.connection.taihe @@ -131,10 +131,10 @@ enum ControlObject: i32 { function GetRemoteProductId(deviceId: String): String; -@overload("getRemoteDeviceName") -function GetRemoteDeviceNameWithAlias(deviceId: String, alias: Optional): String; -@overload("getRemoteDeviceName") -function GetRemoteDeviceName(deviceId: String): String; +@static_overload("getRemoteDeviceName") +function GetRemoteDeviceName_chinast_1(deviceId: String, alias: Optional): String; +@static_overload("getRemoteDeviceName") +function GetRemoteDeviceName_chinast_2(deviceId: String): String; function GetPairedDevices(): Array; diff --git a/frameworks/ets/taihe/bluetooth_connection/src/ohos.bluetooth.connection.impl.cpp b/frameworks/ets/taihe/bluetooth_connection/src/ohos.bluetooth.connection.impl.cpp index 4addf7cb30822cf273d30d662d6bd54bd9294019..a46aea9e91f6db1cbf8298467cc9a8431dea52cb 100644 --- a/frameworks/ets/taihe/bluetooth_connection/src/ohos.bluetooth.connection.impl.cpp +++ b/frameworks/ets/taihe/bluetooth_connection/src/ohos.bluetooth.connection.impl.cpp @@ -118,8 +118,8 @@ DeviceClass GetRemoteDeviceClass(string_view deviceId) // Since these macros are auto-generate, lint will cause false positive. // NOLINTBEGIN TH_EXPORT_CPP_API_GetRemoteProductId(GetRemoteProductId); -TH_EXPORT_CPP_API_GetRemoteDeviceName(GetRemoteDeviceName); -TH_EXPORT_CPP_API_GetRemoteDeviceNameWithAlias(GetRemoteDeviceNameWithAlias); +TH_EXPORT_CPP_API_GetRemoteDeviceName_chinast_1(GetRemoteDeviceNameWithAlias); +TH_EXPORT_CPP_API_GetRemoteDeviceName_chinast_2(GetRemoteDeviceName); TH_EXPORT_CPP_API_GetPairedDevices(GetPairedDevices); TH_EXPORT_CPP_API_SetBluetoothScanMode(SetBluetoothScanMode); TH_EXPORT_CPP_API_GetRemoteDeviceClass(GetRemoteDeviceClass);