refresh data

Signed-off-by: zhouyongfei <zhouyongfei@huawei.com>
This commit is contained in:
zhouyongfei 2021-09-24 20:19:22 +08:00
parent c952a1a1cc
commit 46708c8211
8 changed files with 32 additions and 28 deletions

View File

@ -4,6 +4,9 @@
Input Method Framework, is used to connect the application and input method. the application can input text through the input method
**图 1** 子系统架构图<a name="fig143011012341"></a>
![](figures/subsystem_architecture.png "子系统架构图")
#### Warehouse path
/base/miscservices/inputmethod

View File

@ -3,6 +3,9 @@
#### 介绍
输入法框架,主要作用是拉通应用和输入法,保证应用可以通过输入法进行文本输入
**图 1** 子系统架构图<a name="fig143011012341"></a>
![](figures/subsystem_architecture_zh.png "子系统架构图")
#### 仓路径
/base/miscservices/inputmethod

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -66,7 +66,6 @@ ohos_shared_library("inputmethod_ability") {
public_configs = [
":inputmethod_ability_native_config",
"//utils/native/base:utils_config",
]
subsystem_name = "miscservices"

View File

@ -59,7 +59,6 @@ ohos_shared_library("inputmethod_client") {
configs = [
":inputmethod_client_native_config",
"//utils/native/base:utils_config",
]
public_configs = [ ":inputmethod_client_native_public_config" ]

View File

@ -60,11 +60,11 @@ void InputMethodAbilityTest::TearDown(void)
}
/**
* @tc.name: Ima001
* @tc.name: testReadWriteIInputMethodAgent
* @tc.desc: Checkout IInputMethodAgent.
* @tc.type: FUNC
*/
HWTEST_F(InputMethodAbilityTest, Ima001, TestSize.Level0)
HWTEST_F(InputMethodAbilityTest, testReadWriteIInputMethodAgent, TestSize.Level0)
{
sptr<InputMethodAgentStub> mInputMethodAgentStub = new InputMethodAgentStub();
MessageParcel data;
@ -76,11 +76,11 @@ HWTEST_F(InputMethodAbilityTest, Ima001, TestSize.Level0)
}
/**
* @tc.name: Ima002
* @tc.name: testReadWriteIInputMethodCore
* @tc.desc: Checkout IInputMethodCore.
* @tc.type: FUNC
*/
HWTEST_F(InputMethodAbilityTest, Ima002, TestSize.Level0)
HWTEST_F(InputMethodAbilityTest, testReadWriteIInputMethodCore, TestSize.Level0)
{
sptr<InputMethodCoreStub> mInputMethodCoreStub = new InputMethodCoreStub(0);
MessageParcel data;
@ -92,11 +92,11 @@ HWTEST_F(InputMethodAbilityTest, Ima002, TestSize.Level0)
}
/**
* @tc.name: Ima003
* @tc.name: testReadWriteIInputControlChannel
* @tc.desc: Checkout IInputControlChannel.
* @tc.type: FUNC
*/
HWTEST_F(InputMethodAbilityTest, Ima003, TestSize.Level0)
HWTEST_F(InputMethodAbilityTest, testReadWriteIInputControlChannel, TestSize.Level0)
{
sptr<InputControlChannelStub> mInputControlChannelStub = new InputControlChannelStub(0);
MessageParcel data;
@ -108,22 +108,22 @@ HWTEST_F(InputMethodAbilityTest, Ima003, TestSize.Level0)
}
/**
* @tc.name: Ima004
* @tc.name: testGetInputMethodAbilityInstance
* @tc.desc: Checkout the function of getInstance.
* @tc.type: FUNC
*/
HWTEST_F(InputMethodAbilityTest, Ima004, TestSize.Level0)
HWTEST_F(InputMethodAbilityTest, testGetInputMethodAbilityInstance, TestSize.Level0)
{
auto ima = InputMethodAbility::GetInstance();
ASSERT_TRUE(ima != nullptr);
}
/**
* @tc.name: Ima005
* @tc.name: testSerializedInputAttribute
* @tc.desc: Checkout the serialization of InputAttribute.
* @tc.type: FUNC
*/
HWTEST_F(InputMethodAbilityTest, Ima005, TestSize.Level0)
HWTEST_F(InputMethodAbilityTest, testSerializedInputAttribute, TestSize.Level0)
{
sptr<InputAttribute> mInputAttribute = new InputAttribute();
mInputAttribute->SetInputPattern(InputAttribute::PATTERN_PASSWORD);
@ -136,11 +136,11 @@ HWTEST_F(InputMethodAbilityTest, Ima005, TestSize.Level0)
}
/**
* @tc.name: Ima006
* @tc.name: testSerializedKeyboardType
* @tc.desc: Checkout the serialization of KeyboardType.
* @tc.type: FUNC
*/
HWTEST_F(InputMethodAbilityTest, Ima006, TestSize.Level0)
HWTEST_F(InputMethodAbilityTest, testSerializedKeyboardType, TestSize.Level0)
{
int32_t def_value = 2021;
sptr<KeyboardType> mKeyboardType = new KeyboardType();

View File

@ -83,11 +83,11 @@ void InputMethodControllerTest::TearDown(void)
}
/**
* @tc.name: Imc001
* @tc.name: testGetIMSAProxy
* @tc.desc: Get Imsa Proxy.
* @tc.type: FUNC
*/
HWTEST_F(InputMethodControllerTest, Imc001, TestSize.Level0)
HWTEST_F(InputMethodControllerTest, testGetIMSAProxy, TestSize.Level0)
{
auto systemAbilityManager = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager();
ASSERT_TRUE(systemAbilityManager != nullptr);
@ -96,11 +96,11 @@ HWTEST_F(InputMethodControllerTest, Imc001, TestSize.Level0)
}
/**
* @tc.name: Imc002
* @tc.name: testWriteReadIInputDataChannel
* @tc.desc: Checkout IInputDataChannel.
* @tc.type: FUNC
*/
HWTEST_F(InputMethodControllerTest, Imc002, TestSize.Level0)
HWTEST_F(InputMethodControllerTest, testWriteReadIInputDataChannel, TestSize.Level0)
{
sptr<InputDataChannelStub> mInputDataChannel = new InputDataChannelStub();
MessageParcel data;
@ -112,11 +112,11 @@ HWTEST_F(InputMethodControllerTest, Imc002, TestSize.Level0)
}
/**
* @tc.name: Imc003
* @tc.name: testIMCBindToIMSA
* @tc.desc: Bind IMSA.
* @tc.type: FUNC
*/
HWTEST_F(InputMethodControllerTest, Imc003, TestSize.Level0)
HWTEST_F(InputMethodControllerTest, testIMCBindToIMSA, TestSize.Level0)
{
sptr<InputClientStub> mClient = new InputClientStub();
MessageParcel data;
@ -128,11 +128,11 @@ HWTEST_F(InputMethodControllerTest, Imc003, TestSize.Level0)
}
/**
* @tc.name: Imc004
* @tc.name: testInputMethodSettingValue
* @tc.desc: Checkout setting.
* @tc.type: FUNC
*/
HWTEST_F(InputMethodControllerTest, Imc004, TestSize.Level0)
HWTEST_F(InputMethodControllerTest, testInputMethodSettingValue, TestSize.Level0)
{
InputMethodSetting setting;
std::u16string key = InputMethodSetting::CURRENT_INPUT_METHOD_TAG;
@ -146,11 +146,11 @@ HWTEST_F(InputMethodControllerTest, Imc004, TestSize.Level0)
}
/**
* @tc.name: Imc005
* @tc.name: testInputMethodSettingCurrentInputMethod
* @tc.desc: Checkout setting.
* @tc.type: FUNC
*/
HWTEST_F(InputMethodControllerTest, Imc005, TestSize.Level0)
HWTEST_F(InputMethodControllerTest, testInputMethodSettingCurrentInputMethod, TestSize.Level0)
{
InputMethodSetting setting;
std::u16string curIme = setting.GetCurrentInputMethod();
@ -163,11 +163,11 @@ HWTEST_F(InputMethodControllerTest, Imc005, TestSize.Level0)
}
/**
* @tc.name: Imc006
* @tc.name: testInputMethodSettingCurrentKeyboard
* @tc.desc: Checkout setting.
* @tc.type: FUNC
*/
HWTEST_F(InputMethodControllerTest, Imc006, TestSize.Level0)
HWTEST_F(InputMethodControllerTest, testInputMethodSettingCurrentKeyboard, TestSize.Level0)
{
InputMethodSetting setting;
int32_t curType = setting.GetCurrentKeyboardType();
@ -187,11 +187,11 @@ HWTEST_F(InputMethodControllerTest, Imc006, TestSize.Level0)
}
/**
* @tc.name: Imc007
* @tc.name: testInputMethodWholeProcess
* @tc.desc: Bind IMSA.
* @tc.type: FUNC
*/
HWTEST_F(InputMethodControllerTest, Imc007, TestSize.Level0)
HWTEST_F(InputMethodControllerTest, testInputMethodWholeProcess, TestSize.Level0)
{
IMSA_HILOGI("IMC TEST START");
sptr<InputMethodController> imc = InputMethodController::GetInstance();