Lines Matching defs:imc
34 void TestListInputMethod(sptr<InputMethodController> imc)
37 imc->ListInputMethod(properties);
38 imc->ListInputMethod(false, properties);
39 imc->ListInputMethod(true, properties);
40 imc->DisplayOptionalInputMethod();
43 void TestListInputMethodSubtype(sptr<InputMethodController> imc, const std::string &fuzzedString, uint32_t fuzzedUint32)
52 imc->ListInputMethodSubtype(property, subProperties);
55 void TestDispatchKeyEvent(sptr<InputMethodController> imc, int32_t fuzzedInt32)
58 imc->Attach(textListener);
63 imc->DispatchKeyEvent(keyEvent, [](std::shared_ptr<MMI::KeyEvent> &keyEvent, bool isConsumed) {});
66 void TestOnSelectionChange(sptr<InputMethodController> imc, std::u16string fuzzedU16String, int fuzzedInt,
70 imc->Attach(textListener);
77 imc->OnCursorUpdate(cursorInfo);
79 imc->OnSelectionChange(fuzzedU16String, fuzzedInt, fuzzedInt);
82 void TestOnConfigurationChange(sptr<InputMethodController> imc)
85 imc->Attach(textListener);
92 imc->OnConfigurationChange(info);
95 imc->GetEnterKeyType(enterKeyType);
96 imc->GetInputPattern(inputPattern);
99 void TestSwitchInputMethod(SwitchTrigger fuzzedTrigger, sptr<InputMethodController> imc,
102 imc->SwitchInputMethod(fuzzedTrigger, fuzzedString, fuzzedString);
103 imc->ShowOptionalInputMethod();
106 void TestSetCallingWindow(sptr<InputMethodController> imc, uint32_t fuzzedUInt32)
109 imc->Attach(textListener);
111 imc->SetCallingWindow(fuzzedUInt32);
112 imc->ShowSoftKeyboard();
113 imc->HideSoftKeyboard();
116 void TestShowSomething(sptr<InputMethodController> imc)
119 imc->Attach(textListener);
120 imc->ShowCurrentInput();
121 imc->HideCurrentInput();
123 imc->ShowTextInput();
124 imc->HideTextInput();
126 imc->GetCurrentInputMethod();
127 imc->GetCurrentInputMethodSubtype();
129 imc->StopInputSession();
130 imc->Close();
133 void TestUpdateListenEventFlag(sptr<InputMethodController> imc, uint32_t fuzzedUint32)
135 imc->UpdateListenEventFlag(static_cast<uint32_t>(fuzzedUint32), static_cast<uint32_t>(fuzzedUint32), true);
136 imc->UpdateListenEventFlag(static_cast<uint32_t>(fuzzedUint32), static_cast<uint32_t>(fuzzedUint32), false);
139 void TestAttach(sptr<InputMethodController> imc, int32_t fuzzedInt32)
146 imc->Attach(textListener, true, inputAttribute);
147 imc->Attach(textListener, false, inputAttribute);
150 void FUZZHideInput(sptr<InputMethodController> imc)
153 imc->HideInput(client);
154 imc->RequestHideInput();
157 void FUZZShowInput(sptr<InputMethodController> imc)
160 imc->ShowInput(client);
161 imc->RequestShowInput();
164 void FUZZRestore(sptr<InputMethodController> imc)
166 imc->RestoreListenEventFlag();
167 imc->RestoreListenInfoInSaDied();
168 imc->RestoreAttachInfoInSaDied();
171 void InputType(sptr<InputMethodController> imc)
173 imc->IsInputTypeSupported(InputType::CAMERA_INPUT);
174 imc->IsInputTypeSupported(InputType::SECURITY_INPUT);
175 imc->StartInputType(InputType::CAMERA_INPUT);
176 imc->StartInputType(InputType::SECURITY_INPUT);
179 void FUZZIsPanelShown(sptr<InputMethodController> imc, const uint8_t *data)
183 imc->IsPanelShown(panelInfo, flag);
186 void FUZZPrintLogIfAceTimeout(sptr<InputMethodController> imc, int64_t start)
188 imc->PrintLogIfAceTimeout(start);
206 OHOS::sptr<InputMethodController> imc = InputMethodController::GetInstance();
208 OHOS::TestListInputMethod(imc);
209 OHOS::TestListInputMethodSubtype(imc, fuzzedString, fuzzedUint32);
210 OHOS::TestOnSelectionChange(imc, fuzzedU16String, fuzzedInt, fuzzedDouble);
211 OHOS::TestOnConfigurationChange(imc);
212 OHOS::TestSwitchInputMethod(fuzzedTrigger, imc, fuzzedString);
213 OHOS::TestSetCallingWindow(imc, fuzzedUint32);
214 OHOS::TestDispatchKeyEvent(imc, fuzzedInt32);
215 OHOS::TestShowSomething(imc);
216 OHOS::FUZZHideInput(imc);
217 OHOS::FUZZShowInput(imc);
218 OHOS::FUZZRestore(imc);
219 OHOS::InputType(imc);
220 OHOS::FUZZIsPanelShown(imc, data);
221 OHOS::FUZZPrintLogIfAceTimeout(imc, fuzzedint64);
222 OHOS::TestUpdateListenEventFlag(imc, fuzzedUint32);