From a58c239034278475dc5a1fceb619d0cf695ccce5 Mon Sep 17 00:00:00 2001 From: Denis Slynko Date: Sat, 13 Sep 2025 16:46:33 +0300 Subject: [PATCH] [ANI] Remove deprecated mangling Issue: #ICXUTL Change-Id: I6b09595d44fe46f9115a9742cd2836ff66281709 Signed-off-by: Denis Slynko --- frameworks/ets/ani/esim/src/bridge.rs | 36 ++++++++--------- frameworks/ets/ani/esim/src/lib.rs | 2 +- frameworks/ets/ani/radio/src/bridge.rs | 56 +++++++++++++------------- frameworks/ets/ani/radio/src/lib.rs | 2 +- frameworks/ets/ani/sim/src/bridge.rs | 30 +++++++------- frameworks/ets/ani/sim/src/lib.rs | 2 +- 6 files changed, 64 insertions(+), 64 deletions(-) diff --git a/frameworks/ets/ani/esim/src/bridge.rs b/frameworks/ets/ani/esim/src/bridge.rs index f5276bc1c..f1c592c65 100644 --- a/frameworks/ets/ani/esim/src/bridge.rs +++ b/frameworks/ets/ani/esim/src/bridge.rs @@ -11,7 +11,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#[ani_rs::ani(path = "L@ohos/telephony/esim/eSIM/ResetOption")] +#[ani_rs::ani(path = "@ohos.telephony.esim.eSIM.ResetOption")] #[repr(i32)] pub enum ResetOption { DeleteOperationalProfiles = 1, @@ -29,7 +29,7 @@ impl From for i32 { } } -#[ani_rs::ani(path = "L@ohos/telephony/esim/eSIM/ResultCode")] +#[ani_rs::ani(path = "@ohos.telephony.esim.eSIM.ResultCode")] #[repr(i32)] pub enum ResultCode { ResultSolvableErrors = -2, @@ -116,7 +116,7 @@ impl From for ResultCode { } } -#[ani_rs::ani(path = "L@ohos/telephony/esim/eSIM/ResultCode")] +#[ani_rs::ani(path = "@ohos.telephony.esim.eSIM.ResultCode")] #[repr(i32)] pub enum CancelReason { CancelReasonEndUserRejection = 0, @@ -131,7 +131,7 @@ impl From for i32 { } } -#[ani_rs::ani(path = "L@ohos/telephony/esim/eSIM/EuiccInfoInner")] +#[ani_rs::ani(path = "@ohos.telephony.esim.eSIM.EuiccInfoInner")] #[derive(Debug, Clone)] pub struct EuiccInfo { os_version: String, @@ -145,7 +145,7 @@ impl EuiccInfo { } } -#[ani_rs::ani(path = "L@ohos/telephony/esim/eSIM/ProfileState")] +#[ani_rs::ani(path = "@ohos.telephony.esim.eSIM.ProfileState")] #[repr(i32)] pub enum ProfileState { ProfileStateUnspecified = -1, @@ -163,7 +163,7 @@ impl From for ProfileState { } } -#[ani_rs::ani(path = "L@ohos/telephony/esim/eSIM/ProfileClass")] +#[ani_rs::ani(path = "@ohos.telephony.esim.eSIM.ProfileClass")] #[repr(i32)] pub enum ProfileClass { ProfileClassUnspecified = -1, @@ -183,7 +183,7 @@ impl From for ProfileClass { } } -#[ani_rs::ani(path = "L@ohos/telephony/esim/eSIM/OperatorIdInner")] +#[ani_rs::ani(path = "@ohos.telephony.esim.eSIM.OperatorIdInner")] #[derive(Debug, Clone)] pub struct OperatorId { pub mcc: String, @@ -192,7 +192,7 @@ pub struct OperatorId { pub gid2: String, } -#[ani_rs::ani(path = "L@ohos/telephony/esim/eSIM/PolicyRules")] +#[ani_rs::ani(path = "@ohos.telephony.esim.eSIM.PolicyRules")] #[repr(i32)] pub enum PolicyRules { PolicyRuleDisableNotAllowed = 1, @@ -211,7 +211,7 @@ impl From for PolicyRules { } } -#[ani_rs::ani(path = "L@ohos/telephony/esim/eSIM/AccessRuleInner")] +#[ani_rs::ani(path = "@ohos.telephony.esim.eSIM.AccessRuleInner")] #[derive(Debug, Clone)] pub struct AccessRule { pub certificate_hash_hex_str: String, @@ -229,7 +229,7 @@ impl AccessRule { } } -#[ani_rs::ani(path = "L@ohos/telephony/esim/eSIM/EuiccProfileInner")] +#[ani_rs::ani(path = "@ohos.telephony.esim.eSIM.EuiccProfileInner")] pub struct EuiccProfile { pub iccid: String, pub nick_name: String, @@ -242,14 +242,14 @@ pub struct EuiccProfile { pub access_rules: Vec, } -#[ani_rs::ani(path = "L@ohos/telephony/esim/eSIM/GetEuiccProfileInfoListResultInner")] +#[ani_rs::ani(path = "@ohos.telephony.esim.eSIM.GetEuiccProfileInfoListResultInner")] pub struct GetEuiccProfileInfoListResult { pub response_result: ResultCode, pub profiles: Vec, pub is_removable: bool, } -#[ani_rs::ani(path = "L@ohos/telephony/esim/eSIM/DownloadableProfileInner")] +#[ani_rs::ani(path = "@ohos.telephony.esim.eSIM.DownloadableProfileInner")] pub struct DownloadableProfile { pub activation_code: String, pub confirmation_code: Option, @@ -257,7 +257,7 @@ pub struct DownloadableProfile { pub access_rules: Option>, } -#[ani_rs::ani(path = "L@ohos/telephony/esim/eSIM/DownloadConfigurationInner")] +#[ani_rs::ani(path = "@ohos.telephony.esim.eSIM.DownloadConfigurationInner")] #[derive(Debug, Clone)] pub struct DownloadConfiguration { pub switch_after_download: bool, @@ -265,7 +265,7 @@ pub struct DownloadConfiguration { pub is_ppr_allowed: bool, } -#[ani_rs::ani(path = "L@ohos/telephony/esim/eSIM/SolvableErrors")] +#[ani_rs::ani(path = "@ohos.telephony.esim.eSIM.SolvableErrors")] #[repr(i32)] pub enum SolvableErrors { SolvableErrorNeedConfirmationCode = 1, @@ -288,14 +288,14 @@ impl From for SolvableErrors { } } -#[ani_rs::ani(path = "L@ohos/telephony/esim/eSIM/DownloadProfileResultInner")] +#[ani_rs::ani(path = "@ohos.telephony.esim.eSIM.DownloadProfileResultInner")] pub struct DownloadProfileResult { pub response_result: ResultCode, pub solvable_errors: SolvableErrors, pub card_id: i32, } -#[ani_rs::ani(path = "L@ohos/telephony/esim/eSIM/GetDownloadableProfilesResultInner")] +#[ani_rs::ani(path = "@ohos.telephony.esim.eSIM.GetDownloadableProfilesResultInner")] pub struct GetDownloadableProfilesResult { pub response_result: ResultCode, pub downloadable_profiles: Vec, @@ -311,7 +311,7 @@ impl GetDownloadableProfilesResult { } -#[ani_rs::ani(path = "L@ohos/telephony/esim/eSIM/GetDownloadableProfileMetadataResultInner")] +#[ani_rs::ani(path = "@ohos.telephony.esim.eSIM.GetDownloadableProfileMetadataResultInner")] pub struct GetDownloadableProfileMetadataResult { pub downloadable_profile: DownloadableProfile, pub ppr_type: i32, @@ -324,7 +324,7 @@ pub struct GetDownloadableProfileMetadataResult { pub response_result: ResultCode, } -#[ani_rs::ani(path = "L@ohos/telephony/esim/eSIM/OsuStatus")] +#[ani_rs::ani(path = "@ohos.telephony.esim.eSIM.OsuStatus")] #[repr(i32)] pub enum OsuStatus { EuiccUpgradeInProgress = 1, diff --git a/frameworks/ets/ani/esim/src/lib.rs b/frameworks/ets/ani/esim/src/lib.rs index 23b523d29..d114a6e41 100644 --- a/frameworks/ets/ani/esim/src/lib.rs +++ b/frameworks/ets/ani/esim/src/lib.rs @@ -19,7 +19,7 @@ mod esim; ani_constructor!( - namespace "L@ohos/telephony/esim/eSIM" + namespace "@ohos.telephony.esim.eSIM" [ "nativeResetMemory": esim::reset_memory, "nativeIsSupported": esim::is_supported, diff --git a/frameworks/ets/ani/radio/src/bridge.rs b/frameworks/ets/ani/radio/src/bridge.rs index 408f957e9..a16c5c5a7 100644 --- a/frameworks/ets/ani/radio/src/bridge.rs +++ b/frameworks/ets/ani/radio/src/bridge.rs @@ -11,7 +11,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/ImsServiceType")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.ImsServiceType")] #[repr(i32)] #[derive(Debug, Clone, PartialEq, Eq)] pub enum ImsServiceType { @@ -33,7 +33,7 @@ impl From for ImsServiceType { } } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/ImsRegState")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.ImsRegState")] #[repr(i32)] #[derive(Debug, Clone)] enum ImsRegState { @@ -51,7 +51,7 @@ impl From for ImsRegState { } } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/ImsRegTech")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.ImsRegTech")] #[repr(i32)] #[derive(Debug, Clone)] enum ImsRegTech { @@ -73,7 +73,7 @@ impl From for ImsRegTech { } } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/NetworkType")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.NetworkType")] #[repr(i32)] #[derive(Debug, Clone)] pub enum NetworkType { @@ -101,7 +101,7 @@ impl From for NetworkType { } } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/RegState")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.RegState")] #[repr(i32)] #[derive(Debug, Clone)] pub enum RegState { @@ -123,7 +123,7 @@ impl From for RegState { } } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/RadioTechnology")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.RadioTechnology")] #[repr(i32)] #[derive(Debug, Clone)] pub enum RadioTechnology { @@ -163,7 +163,7 @@ impl From for RadioTechnology { } } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/NsaState")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.NsaState")] #[repr(i32)] #[derive(Debug, Clone)] pub enum NsaState { @@ -189,7 +189,7 @@ impl From for NsaState { } } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/ImsRegInfoInner")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.ImsRegInfoInner")] #[derive(Debug, Clone)] pub struct ImsRegInfoAni { ims_reg_state: ImsRegState, @@ -210,7 +210,7 @@ pub fn ims_reg_info_conversion(info: &mut ImsRegInfoAni, ims_reg_state: i32, ims info.ims_reg_tech = ImsRegTech::from(ims_reg_tech); } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/SignalInformationInner")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.SignalInformationInner")] #[derive(Debug, Clone)] pub struct SignalInformationAni { signal_type: NetworkType, @@ -238,7 +238,7 @@ pub fn signal_information_push_data( signal_info.push(info); } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/CellInformationInner")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.CellInformationInner")] #[derive(Debug, Clone)] pub struct CellInformation { pub network_type: NetworkType, @@ -248,7 +248,7 @@ pub struct CellInformation { pub data: CellInformationData, } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/CellInformationInner")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.CellInformationInner")] #[derive(Debug, Clone)] pub enum CellInformationData { Cdma(CdmaCellInformation), @@ -259,7 +259,7 @@ pub enum CellInformationData { Wcdma(WcdmaCellInformation), } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/NetworkStateInner")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.NetworkStateInner")] #[derive(Debug, Clone)] pub struct NetworkState { pub long_operator_name: String, @@ -272,7 +272,7 @@ pub struct NetworkState { pub is_emergency: bool, } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/NetworkRadioTechInner")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.NetworkRadioTechInner")] #[derive(Debug, Clone)] pub struct NetworkRadioTech { pub ps_radio_tech: RadioTechnology, @@ -288,7 +288,7 @@ impl NetworkRadioTech { } } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/PreferredNetworkMode")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.PreferredNetworkMode")] #[repr(i32)] #[derive(Debug, Clone)] pub enum PreferredNetworkMode { @@ -376,7 +376,7 @@ impl From for PreferredNetworkMode { } } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/NetworkInformationState")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.NetworkInformationState")] #[repr(i32)] #[derive(Debug, Clone)] pub enum NetworkInformationState { @@ -404,7 +404,7 @@ impl From for NetworkInformationState { } } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/NetworkInformationInner")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.NetworkInformationInner")] #[derive(Debug, Clone)] pub struct NetworkInformation { pub operator_name: String, @@ -413,7 +413,7 @@ pub struct NetworkInformation { pub radio_tech: String, } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/NetworkSearchResultInner")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.NetworkSearchResultInner")] #[derive(Debug, Clone)] pub struct NetworkSearchResult { pub is_network_search_success: bool, @@ -429,7 +429,7 @@ impl NetworkSearchResult { } } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/NetworkSelectionMode")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.NetworkSelectionMode")] #[repr(i32)] #[derive(Debug, Clone)] pub enum NetworkSelectionMode { @@ -455,7 +455,7 @@ impl From for NetworkSelectionMode { } } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/NetworkSelectionModeOptionsInner")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.NetworkSelectionModeOptionsInner")] #[derive(Debug, Clone)] pub struct NetworkSelectionModeOptions { pub slot_id: i32, @@ -464,7 +464,7 @@ pub struct NetworkSelectionModeOptions { pub resume_selection: bool, } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/CdmaCellInformationInner")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.CdmaCellInformationInner")] #[derive(Debug, Clone)] pub struct CdmaCellInformation { pub base_id: i32, @@ -474,7 +474,7 @@ pub struct CdmaCellInformation { pub sid: i32, } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/GsmCellInformationInner")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.GsmCellInformationInner")] #[derive(Debug, Clone)] pub struct GsmCellInformation { pub lac: i32, @@ -485,7 +485,7 @@ pub struct GsmCellInformation { pub mnc: String, } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/LteCellInformationInner")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.LteCellInformationInner")] #[derive(Debug, Clone)] pub struct LteCellInformation { pub cgi: i32, @@ -498,7 +498,7 @@ pub struct LteCellInformation { pub is_support_endc: bool, } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/NrCellInformationInner")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.NrCellInformationInner")] #[derive(Debug, Clone)] pub struct NrCellInformation { pub nr_arfcn: i32, @@ -509,7 +509,7 @@ pub struct NrCellInformation { pub mnc: String, } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/TdscdmaCellInformationInner")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.TdscdmaCellInformationInner")] #[derive(Debug, Clone)] pub struct TdscdmaCellInformation { pub lac: i32, @@ -520,7 +520,7 @@ pub struct TdscdmaCellInformation { pub mnc: String, } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/WcdmaCellInformationInner")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.WcdmaCellInformationInner")] #[derive(Debug, Clone)] pub struct WcdmaCellInformation { pub lac: i32, @@ -531,7 +531,7 @@ pub struct WcdmaCellInformation { pub mnc: String, } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/NetworkCapabilityType")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.NetworkCapabilityType")] #[repr(i32)] #[derive(Debug, Clone)] pub enum NetworkCapabilityType { @@ -545,7 +545,7 @@ impl From for i32 { } } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/NetworkCapabilityState")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.NetworkCapabilityState")] #[repr(i32)] #[derive(Debug, Clone)] pub enum NetworkCapabilityState { @@ -569,7 +569,7 @@ impl From for NetworkCapabilityState { } } -#[ani_rs::ani(path = "L@ohos/telephony/radio/radio/NROptionMode")] +#[ani_rs::ani(path = "@ohos.telephony.radio.radio.NROptionMode")] #[repr(i32)] #[derive(Debug, Clone)] pub enum NROptionMode { diff --git a/frameworks/ets/ani/radio/src/lib.rs b/frameworks/ets/ani/radio/src/lib.rs index 33b318019..1e3b604e9 100644 --- a/frameworks/ets/ani/radio/src/lib.rs +++ b/frameworks/ets/ani/radio/src/lib.rs @@ -18,7 +18,7 @@ mod register; mod log; ani_rs::ani_constructor! { - namespace "L@ohos/telephony/radio/radio" + namespace "@ohos.telephony.radio.radio" [ "nativeGetBasebandVersion": radio::get_baseband_version, "nativeSetNROptionMode": radio::set_nr_option_mode, diff --git a/frameworks/ets/ani/sim/src/bridge.rs b/frameworks/ets/ani/sim/src/bridge.rs index ed289355d..528878799 100644 --- a/frameworks/ets/ani/sim/src/bridge.rs +++ b/frameworks/ets/ani/sim/src/bridge.rs @@ -11,7 +11,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#[ani_rs::ani(path = "L@ohos/telephony/sim/sim/LockState")] +#[ani_rs::ani(path = "@ohos.telephony.sim.sim.LockState")] #[repr(i32)] pub enum LockState { LockOff = 0, @@ -38,7 +38,7 @@ impl From for i32 { } } -#[ani_rs::ani(path = "L@ohos/telephony/sim/sim/LockType")] +#[ani_rs::ani(path = "@ohos.telephony.sim.sim.LockType")] #[repr(i32)] pub enum LockType { PinLock = 1, @@ -54,7 +54,7 @@ impl From for i32 { } } -#[ani_rs::ani(path = "L@ohos/telephony/sim/sim/LockStatusResponseInner")] +#[ani_rs::ani(path = "@ohos.telephony.sim.sim.LockStatusResponseInner")] pub struct AniLockStatusResponse { result: i32, remain: Option, @@ -84,7 +84,7 @@ pub fn lock_status_response_conversion( } } -#[ani_rs::ani(path = "L@ohos/telephony/sim/sim/OperatorConfigInner")] +#[ani_rs::ani(path = "@ohos.telephony.sim.sim.OperatorConfigInner")] pub struct AniOperatorConfig { field: String, value: String, @@ -105,7 +105,7 @@ pub fn operator_config_push_kv( config_values.push(config); } -#[ani_rs::ani(path = "L@ohos/telephony/sim/sim/IccAccountInfoInner")] +#[ani_rs::ani(path = "@ohos.telephony.sim.sim.IccAccountInfoInner")] pub struct AniIccAccountInfo { sim_id: i32, slot_index: i32, @@ -171,7 +171,7 @@ pub fn icc_account_info_conversion( account_info.show_number = show_number; } -#[ani_rs::ani(path = "L@ohos/telephony/sim/sim/SimState")] +#[ani_rs::ani(path = "@ohos.telephony.sim.sim.SimState")] #[repr(i32)] pub enum SimState { SimStateUnknown = 0, @@ -196,7 +196,7 @@ impl From for SimState { } } -#[ani_rs::ani(path = "L@ohos/telephony/sim/sim/PersoLockType")] +#[ani_rs::ani(path = "@ohos.telephony.sim.sim.PersoLockType")] #[repr(i32)] pub enum PersoLockType { PnPinLock = 0, @@ -229,7 +229,7 @@ impl From for i32 { } } -#[ani_rs::ani(path = "L@ohos/telephony/sim/sim/PersoLockInfoInner")] +#[ani_rs::ani(path = "@ohos.telephony.sim.sim.PersoLockInfoInner")] pub struct AniPersoLockInfo { pub lock_type: PersoLockType, pub password: String, @@ -244,7 +244,7 @@ impl AniPersoLockInfo { } } -#[ani_rs::ani(path = "L@ohos/telephony/sim/sim/ContactType")] +#[ani_rs::ani(path = "@ohos.telephony.sim.sim.ContactType")] #[repr(i32)] pub enum ContactType { GeneralContact = 1, @@ -261,7 +261,7 @@ impl From for i32 { } } -#[ani_rs::ani(path="L@ohos/telephony/sim/sim/LockInfoInner")] +#[ani_rs::ani(path="@ohos.telephony.sim.sim.LockInfoInner")] pub struct AniLockInfo { pub lock_type: LockType, pub password: String, @@ -278,7 +278,7 @@ impl AniLockInfo { } } -#[ani_rs::ani(path="L@ohos/telephony/sim/sim/CardType")] +#[ani_rs::ani(path="@ohos.telephony.sim.sim.CardType")] #[repr(i32)] pub enum CardType { UnknownCard = -1, @@ -320,7 +320,7 @@ impl From for CardType { } } -#[ani_rs::ani(path="L@ohos/telephony/sim/sim/OperatorSimCard")] +#[ani_rs::ani(path="@ohos.telephony.sim.sim.OperatorSimCard")] #[repr(i32)] pub enum OperatorSimCard { ChinaTelecomCard = 0, @@ -334,7 +334,7 @@ impl OperatorSimCard { } } -#[ani_rs::ani(path="L@ohos/telephony/sim/sim/DsdsMode")] +#[ani_rs::ani(path="@ohos.telephony.sim.sim.DsdsMode")] #[repr(i32)] pub enum DsdsMode { DsdsModeV1 = 0, @@ -358,7 +358,7 @@ impl From for DsdsMode { } } -#[ani_rs::ani(path="L@ohos/telephony/sim/sim/AuthType")] +#[ani_rs::ani(path="@ohos.telephony.sim.sim.AuthType")] #[repr(i32)] pub enum AuthType { SimAuthEapSimtype = 128, @@ -376,7 +376,7 @@ impl From for i32 { } } -#[ani_rs::ani(path="L@ohos/telephony/sim/sim/SimAuthenticationResponseInner")] +#[ani_rs::ani(path="@ohos.telephony.sim.sim.SimAuthenticationResponseInner")] pub struct AniSimAuthenticationResponse { pub sim_status_word1: i32, diff --git a/frameworks/ets/ani/sim/src/lib.rs b/frameworks/ets/ani/sim/src/lib.rs index 707c65507..a00512fa2 100644 --- a/frameworks/ets/ani/sim/src/lib.rs +++ b/frameworks/ets/ani/sim/src/lib.rs @@ -18,7 +18,7 @@ mod sim; mod wrapper; ani_constructor!( - namespace "L@ohos/telephony/sim/sim" + namespace "@ohos.telephony.sim.sim" [ "nativeGetLockState": sim::get_lock_state, "nativeUnlockPuk": sim::unlock_puk, -- Gitee