Go to file
cy7717 ab882a4cbc mod for codecheck
Signed-off-by: cy7717 <chenyu301@huawei.com>
2022-11-17 17:29:35 +08:00
etc Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com> 2022-11-09 22:12:15 +08:00
figures refresh data 2021-09-24 20:19:22 +08:00
frameworks mod 2022-11-14 10:05:35 +08:00
interfaces/kits/js bugfix 2022-11-13 12:58:05 +08:00
profile change misc components 2022-07-20 21:37:53 +08:00
services !387 修改卸载其他输入法默认输入法无法拉起 2022-11-10 05:18:02 +00:00
test !407 【FUZZ用例补充】【Signal 11 crash问题解决】controller跟ability相关的fuzz测试用例补充 2022-11-15 13:59:11 +00:00
unitest mod for codecheck 2022-11-17 17:29:35 +08:00
BUILD.gn imf-TDD 2022-08-30 16:21:52 +08:00
bundle.json 增加dfx tdd用例 2022-11-17 16:41:05 +08:00
hisysevent.yaml Signed-off-by: GlaryCastle <yangpeng190@huawei.com> 2022-07-05 17:04:41 +08:00
inputmethod.gni modify for inputmethod extenison 2022-08-04 16:10:40 +08:00
LICENSE add inputmethod 2021-09-14 20:33:47 +08:00
OAT.xml 选择输入法弹框切换 2022-09-29 11:35:59 +08:00
README_zh.md modify code 2022-11-04 11:23:37 +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