diff --git a/frameworks/ets/ani/src/bridge.rs b/frameworks/ets/ani/src/bridge.rs index 69786bd79c15aec6bd21abc1f976d3d1ce270572..85246c2f9ca63c510d912542e05da34d114f799d 100644 --- a/frameworks/ets/ani/src/bridge.rs +++ b/frameworks/ets/ani/src/bridge.rs @@ -13,7 +13,7 @@ use ani_rs::ani; -#[ani_rs::ani(path = "L@ohos/telephony/data/data/DataConnectState")] +#[ani_rs::ani(path = "@ohos.telephony.data.data.DataConnectState")] #[repr(i32)] pub enum DataConnectState { DataStateUnknown = -1, @@ -27,7 +27,7 @@ pub enum DataConnectState { DataStateSuspended = 3, } -#[ani_rs::ani(path = "L@ohos/telephony/data/data/DataFlowType")] +#[ani_rs::ani(path = "@ohos.telephony.data.data.DataFlowType")] #[repr(i32)] pub enum DataFlowType { DataFlowTypeNone = 0, @@ -37,7 +37,7 @@ pub enum DataFlowType { DataFlowTypeDormant = 4, } -#[ani_rs::ani(path = "L@ohos/telephony/data/data/ApnInfo")] +#[ani_rs::ani(path = "@ohos.telephony.data.data.ApnInfo")] pub struct ApnInfo { pub apnName: String, pub apn: String, diff --git a/frameworks/ets/ani/src/lib.rs b/frameworks/ets/ani/src/lib.rs index 9c2ff6499438241f3d2b76c5659bc11b650e75a5..821f68af59edb74666fa10fb33b6372f54ff4f65 100644 --- a/frameworks/ets/ani/src/lib.rs +++ b/frameworks/ets/ani/src/lib.rs @@ -18,7 +18,7 @@ mod wrapper; use ani_rs::ani_constructor; ani_constructor!( - namespace "L@ohos/telephony/data/data" + namespace "@ohos.telephony.data.data" [ "nativeIsCellularDataEnabled": cellulardata::is_cellulardata_enabled_sync, "nativeEnableCellularData": cellulardata::enable_cellular_data_sync,