Home
last modified time | relevance | path

Searched refs:textListener_ (Results 1 - 12 of 12) sorted by relevance

/base/inputmethod/imf/test/unittest/cpp_test/src/
H A Dvirtual_listener_test.cpp149 textListener_ = new (std::nothrow) TextListenerImpl(); in SetUpTestCase()
166 static sptr<OnTextChangedListener> textListener_; member in OHOS::MiscServices::VirtualListenerTest
171 sptr<OnTextChangedListener> VirtualListenerTest::textListener_{ nullptr };
185 ASSERT_NE(VirtualListenerTest::textListener_, nullptr); in HWTEST_F()
189 VirtualListenerTest::textListener_->NotifyPanelStatusInfo(statusInfo); in HWTEST_F()
190 VirtualListenerTest::textListener_->NotifyKeyboardHeight(0); in HWTEST_F()
191 int32_t ret = VirtualListenerTest::textListener_->ReceivePrivateCommand(privateCommand); in HWTEST_F()
193 VirtualListenerTest::textListener_->FinishTextPreview(); in HWTEST_F()
194 ret = VirtualListenerTest::textListener_->SetPreviewText(Str8ToStr16("test"), range); in HWTEST_F()
H A Dtext_listener_inner_api_test.cpp37 static sptr<OnTextChangedListener> textListener_; member in OHOS::MiscServices::TextListenerInnerApiTest
43 textListener_ = new TextListener(); in SetUpTestCase()
64 imc_->SetTextListener(textListener_); in GetIMCAttached()
77 sptr<OnTextChangedListener> TextListenerInnerApiTest::textListener_; member in OHOS::MiscServices::TextListenerInnerApiTest
111 TextListenerInnerApiTest::imc_->textListener_ = nullptr; in HWTEST_F()
153 TextListenerInnerApiTest::imc_->textListener_ = nullptr; in HWTEST_F()
195 TextListenerInnerApiTest::imc_->textListener_ = nullptr; in HWTEST_F()
239 TextListenerInnerApiTest::imc_->textListener_ = nullptr; in HWTEST_F()
284 TextListenerInnerApiTest::imc_->textListener_ = nullptr; in HWTEST_F()
322 TextListenerInnerApiTest::imc_->textListener_ in HWTEST_F()
[all...]
H A Dinput_method_editor_test.cpp122 static sptr<OnTextChangedListener> textListener_; member in OHOS::MiscServices::InputMethodEditorTest
130 sptr<OnTextChangedListener> InputMethodEditorTest::textListener_; member in OHOS::MiscServices::InputMethodEditorTest
156 textListener_ = new TextListener(); in SetUpTestCase()
166 int32_t ret = InputMethodEditorTest::inputMethodController_->Attach(InputMethodEditorTest::textListener_, false); in SetUpTestCase()
203 int32_t ret = InputMethodEditorTest::inputMethodController_->Attach(InputMethodEditorTest::textListener_, false); in HWTEST_F()
205 ret = InputMethodEditorTest::inputMethodController_->Attach(InputMethodEditorTest::textListener_); in HWTEST_F()
207 ret = InputMethodEditorTest::inputMethodController_->Attach(InputMethodEditorTest::textListener_, true); in HWTEST_F()
285 int32_t ret = InputMethodEditorTest::inputMethodController_->Attach(InputMethodEditorTest::textListener_, false); in HWTEST_F()
291 ret = InputMethodEditorTest::inputMethodController_->Attach(InputMethodEditorTest::textListener_); in HWTEST_F()
299 ret = InputMethodEditorTest::inputMethodController_->Attach(InputMethodEditorTest::textListener_, tru in HWTEST_F()
[all...]
H A Dinput_method_controller_test.cpp134 static sptr<OnTextChangedListener> textListener_; member in OHOS::MiscServices::InputMethodControllerTest
242 sptr<OnTextChangedListener> InputMethodControllerTest::textListener_; member in OHOS::MiscServices::InputMethodControllerTest
292 textListener_ = new TextListener(); in SetUpTestCase()
523 inputMethodController_->Attach(textListener_, false); in HWTEST_F()
524 inputMethodController_->Attach(textListener_); in HWTEST_F()
525 inputMethodController_->Attach(textListener_, true); in HWTEST_F()
549 inputMethodController_->Attach(textListener_, true, textConfig); in HWTEST_F()
560 inputMethodController_->Attach(textListener_, true, textConfig); in HWTEST_F()
573 auto ret = inputMethodController_->Attach(textListener_); in HWTEST_F()
638 auto res = inputMethodController_->Attach(textListener_); in HWTEST_F()
[all...]
H A Dinput_method_dfx_test.cpp151 static sptr<OnTextChangedListener> textListener_; member in OHOS::MiscServices::InputMethodDfxTest
157 sptr<OnTextChangedListener> InputMethodDfxTest::textListener_; member in OHOS::MiscServices::InputMethodDfxTest
231 textListener_ = new TextListener(); in SetUpTestCase()
316 auto attach = []() { inputMethodController_->Attach(textListener_, true); }; in HWTEST_F()
328 auto ret = inputMethodController_->Attach(textListener_, true); in HWTEST_F()
445 inputMethodController_->Attach(textListener_, true); in HWTEST_F()
H A Dinput_method_ability_test.cpp62 static sptr<OnTextChangedListener> textListener_; member in OHOS::MiscServices::InputMethodAbilityTest
151 textListener_ = new TextListener(); in SetUpTestCase()
164 imc_->SetTextListener(textListener_); in GetIMCAttachIMA()
238 sptr<OnTextChangedListener> InputMethodAbilityTest::textListener_; member in OHOS::MiscServices::InputMethodAbilityTest
348 imc_->Attach(textListener_); in HWTEST_F()
483 auto ret = imc_->Attach(textListener_, false, textConfig); in HWTEST_F()
811 imc_->Attach(textListener_); in HWTEST_F()
851 imc_->Attach(textListener_); in HWTEST_F()
878 imc_->Attach(textListener_, false); in HWTEST_F()
905 imc_->Attach(textListener_); in HWTEST_F()
[all...]
H A Dinput_method_panel_test.cpp126 static sptr<OnTextChangedListener> textListener_; member in OHOS::MiscServices::InputMethodPanelTest
194 sptr<OnTextChangedListener> InputMethodPanelTest::textListener_{ nullptr };
207 textListener_ = new (std::nothrow) TextListener(); in SetUpTestCase()
293 auto ret = imc_->Attach(textListener_, false); in Attach()
/base/web/webview/ohos_adapter/inputmethodframework_adapter/src/
H A Dimf_adapter_impl.cpp258 if (!textListener_) { in Attach()
259 textListener_ = new (std::nothrow) IMFTextListenerAdapterImpl(listener); in Attach()
260 if (!textListener_) { in Attach()
265 int32_t ret = MiscServices::InputMethodController::GetInstance()->Attach(textListener_, isShowKeyboard); in Attach()
295 if ((textListener_ != nullptr) && isResetListener) { in Attach()
296 textListener_ = nullptr; in Attach()
300 if (!textListener_) { in Attach()
301 textListener_ = new (std::nothrow) IMFTextListenerAdapterImpl(listener); in Attach()
302 if (!textListener_) { in Attach()
325 int32_t ret = MiscServices::InputMethodController::GetInstance()->Attach(textListener_, isShowKeyboar in Attach()
[all...]
/base/web/webview/test/unittest/ohos_adapter/imf_adapter_test/
H A Dimf_adapter_impl_test.cpp290 EXPECT_EQ(g_imf->textListener_, nullptr); in HWTEST_F()
305 EXPECT_NE(g_imf->textListener_, nullptr); in HWTEST_F()
320 EXPECT_NE(g_imf->textListener_, nullptr); in HWTEST_F()
509 EXPECT_NE(g_imf->textListener_, nullptr); in HWTEST_F()
/base/web/webview/ohos_adapter/inputmethodframework_adapter/include/
H A Dimf_adapter_impl.h117 sptr<MiscServices::OnTextChangedListener> textListener_ = nullptr; member in OHOS::NWeb::IMFAdapterImpl
/base/inputmethod/imf/interfaces/inner_api/inputmethod_controller/include/
H A Dinput_method_controller.h859 sptr<OnTextChangedListener> textListener_ = nullptr; member in OHOS::MiscServices::InputMethodController
/base/inputmethod/imf/frameworks/native/inputmethod_controller/src/
H A Dinput_method_controller.cpp768 IMSA_HILOGE("not editable or textListener_ is nullptr!"); in GetRight()
780 IMSA_HILOGE("not editable or textListener_ is nullptr!"); in GetTextIndexAtCursor()
1069 IMSA_HILOGE("not editable or textListener_ is nullptr!"); in SelectByRange()
1087 IMSA_HILOGE("not editable or textListener_ is nullptr!"); in SelectByMovement()
1112 return textListener_; in GetTextListener()
1118 textListener_ = listener; in SetTextListener()
1205 IMSA_HILOGE("not editable or textListener_ is nullptr!"); in MoveCursor()

Completed in 14 milliseconds