/base/inputmethod/imf/test/unittest/cpp_test/src/ |
H A D | virtual_listener_test.cpp | 149 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 D | text_listener_inner_api_test.cpp | 37 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 D | input_method_editor_test.cpp | 122 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 D | input_method_controller_test.cpp | 134 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 D | input_method_dfx_test.cpp | 151 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 D | input_method_ability_test.cpp | 62 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 D | input_method_panel_test.cpp | 126 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 D | imf_adapter_impl.cpp | 258 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 D | imf_adapter_impl_test.cpp | 290 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 D | imf_adapter_impl.h | 117 sptr<MiscServices::OnTextChangedListener> textListener_ = nullptr; member in OHOS::NWeb::IMFAdapterImpl
|
/base/inputmethod/imf/interfaces/inner_api/inputmethod_controller/include/ |
H A D | input_method_controller.h | 859 sptr<OnTextChangedListener> textListener_ = nullptr; member in OHOS::MiscServices::InputMethodController
|
/base/inputmethod/imf/frameworks/native/inputmethod_controller/src/ |
H A D | input_method_controller.cpp | 768 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()
|