Go to file
ma-shaoyin 2ea7f4e288 Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>
Changes to be committed:
2024-11-15 18:51:11 +08:00
common feature:inputmethod get editing bundle name 2024-11-12 22:20:46 +08:00
etc 输入法双生单增加查询和设置相关 2024-10-24 14:51:00 +08:00
figures refresh data 2021-09-24 20:19:22 +08:00
frameworks !1554 feature:inputmethod get editing bundle name 2024-11-12 14:58:09 +00:00
interfaces !1571 错误码表述英文语法错误修改-inputmethod_imf 2024-11-11 06:26:09 +00:00
profile modify code 2023-05-24 08:25:40 +00:00
seccomp_policy modify code 2024-06-10 13:54:41 +08:00
services Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com> 2024-11-15 18:51:11 +08:00
test !1554 feature:inputmethod get editing bundle name 2024-11-12 14:58:09 +00:00
.clang-format feature:add capi 2024-08-19 09:57:45 +08:00
BUILD.gn 输入法 ffi 桥接层代码函数名变更 2024-09-02 09:54:33 +08:00
bundle.json !1447 服务侧快捷切换校验锁屏状态 2024-09-05 08:08:45 +00:00
CODEOWNERS 系统服务接口权限管控。 2023-06-28 21:30:27 +08:00
hisysevent.yaml 增加故障打点 2024-04-30 19:10:04 +08:00
inputmethod.gni gn修改 2024-09-09 14:17:24 +08:00
LICENSE add inputmethod 2021-09-14 20:33:47 +08:00
OAT.xml add OAT.XML 2024-05-21 15:39:07 +08:00
publicity.xml 预制应用信息公示 2024-07-19 10:57:16 +08:00
README_zh.md Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com> 2023-02-07 09:43:39 +08:00
README.md Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com> 2022-08-17 21:15:07 +08:00

inputmethod_imf

Introduction

Input Method Framework, is used to connect the application and input method. the application can input text through the input method

图 1 子系统架构图

Warehouse path

/base/inputmethod/imf

Introduction to framework code

The input method framework currently has four modules, as follows:

  1. Application client

Path: /base/inputmethod/imf/frameworks/inputmethod_controller

Function: realize the service delivery of application and input method framework, including the binding between application and input method service, application display and hiding request for input method, etc

  1. Input method client

Path: /base/inputmethod/imf/frameworks/inputmethod_ability

Function: the intermediate bridge between input method framework service and input method delivery, including monitoring the current status of input method, etc

  1. Input method service

Path: /base/inputmethod/imf/services

Function: as the core of the input method framework, the main processing logic of the input method is completed here

  1. Input method JS interface

Path: /base/inputmethod/imf/interfaces/kits/JS

Function: the temporarily exposed JS interface is mainly reserved for calling input methods

Main functions supported by the framework

  1. Click in the edit attribute control to invoke the default input method application through the input method framework

  2. Typing can be carried out through the input method application, and characters can be input to the application client on the screen

Debugging method

  1. Compile command

./build.sh --product-name (Fill in the specific product name, such asHi3516DV300) --build-target imf

  1. push so file

in $root\out\ohos-arm-release\inputmethod\imf, push libinputmethod_client.z.so libinputmethod_ability.z.so libinputmethod_service.z.so libinputmethod_para.z.so to system/liband push libinputmethodengine.z.so libinputmethod.z.so to system/lib/module and make sure the six so files is readable at least.

  1. reboot

Participation contribution

  1. Fork warehouse
  2. Submission code
  3. Create a new pull request
  4. Commit is complete