diff --git a/frameworks/native/inputmethod_ability/IInputMethodAgent.idl b/frameworks/native/inputmethod_ability/IInputMethodAgent.idl index 6c2bb43be3c553bda39b9439caf37ecad63b5f47..30b2d4d6ae058c69618ed24112397fdaeba05b38 100644 --- a/frameworks/native/inputmethod_ability/IInputMethodAgent.idl +++ b/frameworks/native/inputmethod_ability/IInputMethodAgent.idl @@ -19,7 +19,7 @@ sequenceable input_method_utils..OHOS.MiscServices.KeyEventValue; sequenceable input_method_utils..OHOS.MiscServices.ArrayBuffer; interface OHOS.MiscServices.IKeyEventConsumer; interface OHOS.MiscServices.IInputMethodAgent { - void DispatchKeyEvent([in] KeyEventValue keyEvent, [in] IKeyEventConsumer consumer); + [ipccode 0] void DispatchKeyEvent([in] KeyEventValue keyEvent, [in] IKeyEventConsumer consumer); void OnCursorUpdate([in] int positionX, [in] int positionY, [in] int height); void OnSelectionChange([in] String text, [in] int oldBegin, [in] int oldEnd, [in] int newBegin, [in] int newEnd); void SetCallingWindow([in] unsigned int windowId); diff --git a/frameworks/native/inputmethod_ability/IInputMethodCore.idl b/frameworks/native/inputmethod_ability/IInputMethodCore.idl index ba57b80a1113e580c3a72f2dec8b8b4b9529bb1a..4f4b716eab622374d382bd0aed0c45bf86378784 100644 --- a/frameworks/native/inputmethod_ability/IInputMethodCore.idl +++ b/frameworks/native/inputmethod_ability/IInputMethodCore.idl @@ -20,7 +20,7 @@ sequenceable panel_info..OHOS.MiscServices.PanelInfo; sequenceable OHOS.IRemoteObject; interface OHOS.MiscServices.IInputControlChannel; interface OHOS.MiscServices.IInputMethodCore { - void StartInput([in] InputClientInfoInner clientInfoInner, [in] boolean isBindFromClient); + [ipccode 0] void StartInput([in] InputClientInfoInner clientInfoInner, [in] boolean isBindFromClient); void StopInput([in] IRemoteObject channel, [in] unsigned int sessionId); void ShowKeyboard(); void HideKeyboard(); diff --git a/frameworks/native/inputmethod_controller/IInputDataChannel.idl b/frameworks/native/inputmethod_controller/IInputDataChannel.idl index b2edb1e58db3cc3fc54027165c4e774449313aa9..b798d6359099ab7443dd6f9590538dc50b7b00ea 100644 --- a/frameworks/native/inputmethod_controller/IInputDataChannel.idl +++ b/frameworks/native/inputmethod_controller/IInputDataChannel.idl @@ -21,7 +21,7 @@ sequenceable input_method_utils..OHOS.MiscServices.Value; sequenceable input_method_utils..OHOS.MiscServices.RangeInner; sequenceable input_method_utils..OHOS.MiscServices.ArrayBuffer; interface OHOS.MiscServices.IInputDataChannel { - void InsertText([in] String text); + [ipccode 0] void InsertText([in] String text); void DeleteForward([in] int length); void DeleteBackward([in] int length); void GetTextBeforeCursor([in] int number, [out] String text); diff --git a/frameworks/native/inputmethod_controller/IKeyEventConsumer.idl b/frameworks/native/inputmethod_controller/IKeyEventConsumer.idl index 1af63df2f256ef8d74556b4c8bf667582503c6bb..f96ffbc3cd014d698b65cf109733ce001c41efc2 100644 --- a/frameworks/native/inputmethod_controller/IKeyEventConsumer.idl +++ b/frameworks/native/inputmethod_controller/IKeyEventConsumer.idl @@ -14,5 +14,5 @@ */ interface OHOS.MiscServices.IKeyEventConsumer { - [oneway] void OnKeyEventResult([in] boolean isConsumed); + [ipccode 0, oneway] void OnKeyEventResult([in] boolean isConsumed); } \ No newline at end of file diff --git a/frameworks/native/inputmethod_controller/ISystemCmdChannel.idl b/frameworks/native/inputmethod_controller/ISystemCmdChannel.idl index e3496b88d8b947e9cbb6863216c2f0785b722792..0adbb3948e68872693ec5690e07ee17d23e14152 100644 --- a/frameworks/native/inputmethod_controller/ISystemCmdChannel.idl +++ b/frameworks/native/inputmethod_controller/ISystemCmdChannel.idl @@ -16,6 +16,6 @@ sequenceable input_method_utils..OHOS.MiscServices.Value; sequenceable sys_panel_status..OHOS.MiscServices.SysPanelStatus; interface OHOS.MiscServices.ISystemCmdChannel { - [oneway] void SendPrivateCommand([in] Value value); + [ipccode 0, oneway] void SendPrivateCommand([in] Value value); [oneway] void NotifyPanelStatus([in] SysPanelStatus sysPanelStatus); } diff --git a/interfaces/inner_api/inputmethod_ability/BUILD.gn b/interfaces/inner_api/inputmethod_ability/BUILD.gn index fd0cfea38b98ce4eecedbf2f617bb717feacd538..5c4e7262ad78292ed8367b780b80abf0ca821442 100644 --- a/interfaces/inner_api/inputmethod_ability/BUILD.gn +++ b/interfaces/inner_api/inputmethod_ability/BUILD.gn @@ -350,6 +350,7 @@ ohos_shared_library("inputmethod_ability") { "input:libmmi-client", "ipc:ipc_single", "napi:ace_napi", + "safwk:system_ability_fwk", "samgr:samgr_proxy", "window_manager:libdm", "window_manager:libwsutils", @@ -471,6 +472,7 @@ ohos_static_library("inputmethod_ability_static") { "input:libmmi-client", "ipc:ipc_single", "napi:ace_napi", + "safwk:system_ability_fwk", "samgr:samgr_proxy", "window_manager:libdm", "window_manager:libwsutils", diff --git a/interfaces/inner_api/inputmethod_controller/BUILD.gn b/interfaces/inner_api/inputmethod_controller/BUILD.gn index be9489c1bac7fffac60415a96b200fc1dfc2db57..d63bff863d47c10fe06509f442b05c118f265f14 100644 --- a/interfaces/inner_api/inputmethod_controller/BUILD.gn +++ b/interfaces/inner_api/inputmethod_controller/BUILD.gn @@ -221,6 +221,7 @@ ohos_shared_library("inputmethod_client") { "hilog:libhilog", "input:libmmi-client", "ipc:ipc_single", + "safwk:system_ability_fwk", "samgr:samgr_proxy", ] public_external_deps = [ "ability_base:want" ] @@ -292,6 +293,7 @@ ohos_static_library("inputmethod_client_static") { "hilog:libhilog", "input:libmmi-client", "ipc:ipc_single", + "safwk:system_ability_fwk", "samgr:samgr_proxy", ] diff --git a/test/fuzztest/controlchannelstub_fuzzer/BUILD.gn b/test/fuzztest/controlchannelstub_fuzzer/BUILD.gn index 096969e141ebd66fb63a2d06ffafb207c1c8f8b3..0ee0423fdac6c05c4f5ef67fae3a3fb630895e6e 100644 --- a/test/fuzztest/controlchannelstub_fuzzer/BUILD.gn +++ b/test/fuzztest/controlchannelstub_fuzzer/BUILD.gn @@ -46,6 +46,7 @@ ohos_fuzztest("ControlChannelStubFuzzTest") { "hilog:libhilog", "input:libmmi-client", "ipc:ipc_single", + "safwk:system_ability_fwk", ] } diff --git a/test/fuzztest/corestub_fuzzer/BUILD.gn b/test/fuzztest/corestub_fuzzer/BUILD.gn index 26c46066f0a777fe1e6087c0fc5ccf0db8ca6cb3..4dad8b65af75204817513e2f06b9fa92430df706 100644 --- a/test/fuzztest/corestub_fuzzer/BUILD.gn +++ b/test/fuzztest/corestub_fuzzer/BUILD.gn @@ -47,6 +47,7 @@ ohos_fuzztest("CoreStubFuzzTest") { "hilog:libhilog", "input:libmmi-client", "ipc:ipc_single", + "safwk:system_ability_fwk", ] } diff --git a/test/fuzztest/datachannelstub_fuzzer/BUILD.gn b/test/fuzztest/datachannelstub_fuzzer/BUILD.gn index 210d3c3c008eb1686c9a06b2515b5c56dd221967..e7f64845ef9f4fdbd4453374be7b20dc9ea69a7c 100644 --- a/test/fuzztest/datachannelstub_fuzzer/BUILD.gn +++ b/test/fuzztest/datachannelstub_fuzzer/BUILD.gn @@ -50,6 +50,7 @@ ohos_fuzztest("DataChannelStubFuzzTest") { "hilog:libhilog", "input:libmmi-client", "ipc:ipc_single", + "safwk:system_ability_fwk", ] } diff --git a/test/fuzztest/imesystemchannel_fuzzer/BUILD.gn b/test/fuzztest/imesystemchannel_fuzzer/BUILD.gn index 3ffb9b263c367ef0a59b5fa133bd28fa8c628888..b492f1d8e1300c73016ed099f77492b4728efcc6 100644 --- a/test/fuzztest/imesystemchannel_fuzzer/BUILD.gn +++ b/test/fuzztest/imesystemchannel_fuzzer/BUILD.gn @@ -47,6 +47,7 @@ ohos_fuzztest("ImeSystemChannelFuzzTest") { "hilog:libhilog", "input:libmmi-client", "ipc:ipc_single", + "safwk:system_ability_fwk", ] } diff --git a/test/fuzztest/perusersession_fuzzer/BUILD.gn b/test/fuzztest/perusersession_fuzzer/BUILD.gn index 870539a7c9f80d40933ada9db8ecd74d8bc64da7..581e59283708db74242465126a11a870da98fff7 100644 --- a/test/fuzztest/perusersession_fuzzer/BUILD.gn +++ b/test/fuzztest/perusersession_fuzzer/BUILD.gn @@ -59,6 +59,7 @@ ohos_fuzztest("PerUserSessionFuzzTest") { "input:libmmi-client", "ipc:ipc_single", "napi:ace_napi", + "safwk:system_ability_fwk", "window_manager:libdm", ] diff --git a/test/fuzztest/systemcmdchannelstub_fuzzer/BUILD.gn b/test/fuzztest/systemcmdchannelstub_fuzzer/BUILD.gn index 9c03fd2f240e719406379f147c7668db3f7a200f..2e43cee8cc5c783a9f82cdc4a93b21aa1176229e 100644 --- a/test/fuzztest/systemcmdchannelstub_fuzzer/BUILD.gn +++ b/test/fuzztest/systemcmdchannelstub_fuzzer/BUILD.gn @@ -50,6 +50,7 @@ ohos_fuzztest("SystemCmdChannelStubFuzzTest") { "hilog:libhilog", "input:libmmi-client", "ipc:ipc_single", + "safwk:system_ability_fwk", ] } diff --git a/test/unittest/cpp_test/BUILD.gn b/test/unittest/cpp_test/BUILD.gn index e64f0e6ea9869f75cd0c3a1265420e54c57000c2..1c177c94592f8ae88b142a383256ae8b2d08fec3 100644 --- a/test/unittest/cpp_test/BUILD.gn +++ b/test/unittest/cpp_test/BUILD.gn @@ -488,6 +488,7 @@ ohos_unittest("InputMethodSwitchTest") { "data_share:datashare_consumer", "hilog:libhilog", "input:libmmi-client", + "safwk:system_ability_fwk", ] if (window_manager_use_sceneboard) { @@ -546,6 +547,7 @@ ohos_unittest("ITypesUtilTest") { "input:libmmi-client", "ipc:ipc_single", "napi:ace_napi", + "safwk:system_ability_fwk", "window_manager:libwm_lite", ] } @@ -718,6 +720,7 @@ ohos_unittest("NewImeSwitchTest") { "data_share:datashare_consumer", "hilog:libhilog", "input:libmmi-client", + "safwk:system_ability_fwk", ] if (window_manager_use_sceneboard) { @@ -880,6 +883,7 @@ ohos_unittest("ImeProxyTest") { "input:libmmi-client", "ipc:ipc_single", "napi:ace_napi", + "safwk:system_ability_fwk", "window_manager:libdm", ] @@ -1065,6 +1069,7 @@ ohos_unittest("ImeFreezeManagerTest") { "ipc:ipc_single", "napi:ace_napi", "os_account:os_account_innerkits", + "safwk:system_ability_fwk", ] if (window_manager_use_sceneboard) {