/base/inputmethod/imf/test/fuzztest/imesystemchannel_fuzzer/ |
H A D | imesystemchannel_fuzzer.cpp | 72 std::unordered_map<std::string, PrivateDataValue> privateCommand; in FuzzPrivateCommand() local 76 privateCommand.emplace("value1", privateDataValue1); in FuzzPrivateCommand() 77 privateCommand.emplace("value2", privateDataValue2); in FuzzPrivateCommand() 78 privateCommand.emplace("value3", privateDataValue3); in FuzzPrivateCommand() 80 ImeSystemCmdChannel::GetInstance()->SendPrivateCommand(privateCommand); in FuzzPrivateCommand() 81 ImeSystemCmdChannel::GetInstance()->ReceivePrivateCommand(privateCommand); in FuzzPrivateCommand()
|
/base/inputmethod/imf/frameworks/native/inputmethod_controller/src/ |
H A D | system_cmd_channel_stub.cpp | 37 const std::unordered_map<std::string, PrivateDataValue> &privateCommand) in SendPrivateCommand() 39 return ImeSystemCmdChannel::GetInstance()->ReceivePrivateCommand(privateCommand); in SendPrivateCommand() 44 std::unordered_map<std::string, PrivateDataValue> privateCommand; in SendPrivateCommandOnRemote() local 45 if (!ITypesUtil::Unmarshal(data, privateCommand)) { in SendPrivateCommandOnRemote() 49 return reply.WriteInt32(SendPrivateCommand(privateCommand)) ? ErrorCode::NO_ERROR : ErrorCode::ERROR_EX_PARCELABLE; in SendPrivateCommandOnRemote() 36 SendPrivateCommand( const std::unordered_map<std::string, PrivateDataValue> &privateCommand) SendPrivateCommand() argument
|
H A D | system_cmd_channel_proxy.cpp | 31 const std::unordered_map<std::string, PrivateDataValue> &privateCommand) in SendPrivateCommand() 34 [&privateCommand](MessageParcel &parcel) { return ITypesUtil::Marshal(parcel, privateCommand); }); in SendPrivateCommand() 30 SendPrivateCommand( const std::unordered_map<std::string, PrivateDataValue> &privateCommand) SendPrivateCommand() argument
|
H A D | ime_system_channel.cpp | 207 const std::unordered_map<std::string, PrivateDataValue> &privateCommand) in ReceivePrivateCommand() 214 cmdlistener->ReceivePrivateCommand(privateCommand); in ReceivePrivateCommand() 218 int32_t ImeSystemCmdChannel::SendPrivateCommand(const std::unordered_map<std::string, PrivateDataValue> &privateCommand) in SendPrivateCommand() argument 221 if (TextConfig::IsSystemPrivateCommand(privateCommand)) { in SendPrivateCommand() 222 if (!TextConfig::IsPrivateCommandValid(privateCommand)) { in SendPrivateCommand() 231 return agent->SendPrivateCommand(privateCommand); in SendPrivateCommand() 206 ReceivePrivateCommand( const std::unordered_map<std::string, PrivateDataValue> &privateCommand) ReceivePrivateCommand() argument
|
/base/inputmethod/imf/test/fuzztest/systemcmdchannelstub_fuzzer/ |
H A D | systemcmdchannelstub_fuzzer.cpp | 49 std::unordered_map <std::string, PrivateDataValue> privateCommand; in FuzzSystemCmdChannelStub() local 53 privateCommand.emplace("value1", privateDataValue1); in FuzzSystemCmdChannelStub() 54 privateCommand.emplace("value2", privateDataValue2); in FuzzSystemCmdChannelStub() 55 privateCommand.emplace("value3", privateDataValue3); in FuzzSystemCmdChannelStub() 65 stub->SendPrivateCommand(privateCommand); in FuzzSystemCmdChannelStub()
|
/base/inputmethod/imf/test/unittest/cpp_test/src/ |
H A D | ime_system_channel_test.cpp | 29 void ReceivePrivateCommand(const std::unordered_map<std::string, PrivateDataValue> &privateCommand) override 114 std::unordered_map<std::string, PrivateDataValue> privateCommand; in HWTEST_F() local 115 auto ret = imeSystemChannel_->SendPrivateCommand(privateCommand); in HWTEST_F() 128 std::unordered_map<std::string, PrivateDataValue> privateCommand; in HWTEST_F() local 130 privateCommand.emplace("value1", privateDataValue1); in HWTEST_F() 134 int32_t ret = imeSystemChannel_->ReceivePrivateCommand(privateCommand); in HWTEST_F()
|
H A D | virtual_listener_test.cpp | 108 void ReceivePrivateCommand(const std::unordered_map<std::string, PrivateDataValue> &privateCommand) override 125 void ReceivePrivateCommand(const std::unordered_map<std::string, PrivateDataValue> &privateCommand) override 188 std::unordered_map<std::string, PrivateDataValue> privateCommand; in HWTEST_F() local 191 int32_t ret = VirtualListenerTest::textListener_->ReceivePrivateCommand(privateCommand); in HWTEST_F() 265 std::unordered_map<std::string, PrivateDataValue> privateCommand; in HWTEST_F() local 266 VirtualListenerTest::systemCmdListener_->ReceivePrivateCommand(privateCommand); in HWTEST_F() 271 listener->ReceivePrivateCommand(privateCommand); in HWTEST_F()
|
H A D | native_text_changed_listener_test.cpp | 54 std::unordered_map<std::string, PrivateDataValue> privateCommand; in HWTEST_F() local 55 EXPECT_EQ(ErrorCode::ERROR_NULL_POINTER, listener.ReceivePrivateCommand(privateCommand)); in HWTEST_F() 70 std::unordered_map<std::string, PrivateDataValue> privateCommand; in HWTEST_F() local 71 EXPECT_EQ(ErrorCode::ERROR_NULL_POINTER, listener.ReceivePrivateCommand(privateCommand)); in HWTEST_F() 98 InputMethod_TextEditorProxy *proxy, InputMethod_PrivateCommand *privateCommand[], size_t size) in ReceivePrivateCommand() 139 std::unordered_map<std::string, PrivateDataValue> privateCommand; in HWTEST_F() local 140 EXPECT_EQ(0, listener.ReceivePrivateCommand(privateCommand)); in HWTEST_F() 97 ReceivePrivateCommand( InputMethod_TextEditorProxy *proxy, InputMethod_PrivateCommand *privateCommand[], size_t size) ReceivePrivateCommand() argument
|
H A D | input_method_controller_test.cpp | 1342 std::unordered_map<std::string, PrivateDataValue> privateCommand; in HWTEST_F() local 1344 privateCommand.emplace("value1", privateDataValue1); in HWTEST_F() 1346 ret = inputMethodController_->SendPrivateCommand(privateCommand); in HWTEST_F() 1354 * @tc.desc: SendPrivateCommand not bound, and empty privateCommand. 1365 std::unordered_map<std::string, PrivateDataValue> privateCommand; in HWTEST_F() local 1366 auto ret = inputMethodController_->SendPrivateCommand(privateCommand); in HWTEST_F() 1371 ret = inputMethodController_->SendPrivateCommand(privateCommand); in HWTEST_F() 1391 std::unordered_map<std::string, PrivateDataValue> privateCommand; in HWTEST_F() local 1393 privateCommand.emplace("value1", privateDataValue1); in HWTEST_F() 1394 ret = inputMethodController_->SendPrivateCommand(privateCommand); in HWTEST_F() 1414 std::unordered_map<std::string, PrivateDataValue> privateCommand; HWTEST_F() local 1442 std::unordered_map<std::string, PrivateDataValue> privateCommand; HWTEST_F() local 1468 std::unordered_map<std::string, PrivateDataValue> privateCommand; HWTEST_F() local 1500 std::unordered_map<std::string, PrivateDataValue> privateCommand; HWTEST_F() local [all...] |
/base/inputmethod/imf/test/common/src/ |
H A D | input_method_engine_listener_impl.cpp | 69 const std::unordered_map<std::string, PrivateDataValue> &privateCommand) in ReceivePrivateCommand() 72 privateCommand_ = privateCommand; in ReceivePrivateCommand() 106 const std::unordered_map<std::string, PrivateDataValue> &privateCommand) in WaitSendPrivateCommand() 110 [&privateCommand]() { return privateCommand_ == privateCommand; }); in WaitSendPrivateCommand() 112 return privateCommand_ == privateCommand; in WaitSendPrivateCommand() 68 ReceivePrivateCommand( const std::unordered_map<std::string, PrivateDataValue> &privateCommand) ReceivePrivateCommand() argument 105 WaitSendPrivateCommand( const std::unordered_map<std::string, PrivateDataValue> &privateCommand) WaitSendPrivateCommand() argument
|
/base/inputmethod/imf/frameworks/js/napi/keyboardpanelmanager/ |
H A D | js_keyboard_panel_manager.h | 29 std::unordered_map<std::string, PrivateDataValue> privateCommand; member 32 return (timestamp == info.timestamp && privateCommand == info.privateCommand); in operator ==() 37 std::unordered_map<std::string, PrivateDataValue> privateCommand; member 84 void ReceivePrivateCommand(const std::unordered_map<std::string, PrivateDataValue> &privateCommand) override; 96 std::unordered_map<std::string, PrivateDataValue> privateCommand; member 102 privateCommand({})
|
H A D | js_keyboard_panel_manager.cpp | 211 CHECK_RETURN(JsUtils::GetValue(env, argv[0], ctxt->privateCommand) == napi_ok, in SendPrivateCommand() 213 if (!TextConfig::IsPrivateCommandValid(ctxt->privateCommand)) { in SendPrivateCommand() 217 ctxt->info = { std::chrono::system_clock::now(), ctxt->privateCommand }; in SendPrivateCommand() 224 int32_t code = ImeSystemCmdChannel::GetInstance()->SendPrivateCommand(ctxt->privateCommand); in SendPrivateCommand() 269 const std::unordered_map<std::string, PrivateDataValue> &privateCommand) in ReceivePrivateCommand() 273 auto entry = GetEntry(type, [&privateCommand](UvEntry &entry) { entry.privateCommand = privateCommand; }); in ReceivePrivateCommand() 287 napi_value jsObject = JsUtils::GetJsPrivateCommand(env, entry->privateCommand); in ReceivePrivateCommand() 268 ReceivePrivateCommand( const std::unordered_map<std::string, PrivateDataValue> &privateCommand) ReceivePrivateCommand() argument
|
/base/inputmethod/imf/frameworks/native/inputmethod_controller/include/ |
H A D | private_command_interface.h | 25 virtual int32_t SendPrivateCommand(const std::unordered_map<std::string, PrivateDataValue> &privateCommand) = 0; 27 const std::unordered_map<std::string, PrivateDataValue> &privateCommand) = 0;
|
H A D | input_method_utils.h | 179 std::unordered_map<std::string, PrivateDataValue> privateCommand = {}; member 205 std::unordered_map<std::string, PrivateDataValue> privateCommand = {}; member 221 static bool IsPrivateCommandValid(const std::unordered_map<std::string, PrivateDataValue> &privateCommand) in IsPrivateCommandValid() 223 size_t privateCommandSize = privateCommand.size(); in IsPrivateCommandValid() 224 size_t maxSize = IsSystemPrivateCommand(privateCommand) ? (MAX_PRIVATE_COMMAND_COUNT + 1) in IsPrivateCommandValid() 227 IMSA_HILOGE("privateCommand size must more than 0 and less than 5."); in IsPrivateCommandValid() 231 for (const auto &iter : privateCommand) { in IsPrivateCommandValid() 256 static bool IsSystemPrivateCommand(const std::unordered_map<std::string, PrivateDataValue> &privateCommand) in IsSystemPrivateCommand() 259 size_t privateCommandSize = privateCommand.size(); in IsSystemPrivateCommand() 261 IMSA_HILOGE("privateCommand siz in IsSystemPrivateCommand() [all...] |
H A D | i_system_cmd_channel.h | 42 virtual int32_t SendPrivateCommand(const std::unordered_map<std::string, PrivateDataValue> &privateCommand) = 0;
|
H A D | system_cmd_channel_proxy.h | 38 int32_t SendPrivateCommand(const std::unordered_map<std::string, PrivateDataValue> &privateCommand) override;
|
/base/inputmethod/imf/frameworks/ndk/src/ |
H A D | inputmethod_inputmethod_proxy_capi.cpp | 91 InputMethod_InputMethodProxy *inputMethodProxy, InputMethod_PrivateCommand *privateCommand[], size_t size) in OH_InputMethodProxy_SendPrivateCommand() 98 if (privateCommand == nullptr) { in OH_InputMethodProxy_SendPrivateCommand() 99 IMSA_HILOGE("privateCommand is nullptr"); in OH_InputMethodProxy_SendPrivateCommand() 106 if (privateCommand[i] == nullptr) { in OH_InputMethodProxy_SendPrivateCommand() 107 IMSA_HILOGE("privateCommand[%zu] is nullptr", i); in OH_InputMethodProxy_SendPrivateCommand() 110 command.emplace(privateCommand[i]->key, privateCommand[i]->value); in OH_InputMethodProxy_SendPrivateCommand() 90 OH_InputMethodProxy_SendPrivateCommand( InputMethod_InputMethodProxy *inputMethodProxy, InputMethod_PrivateCommand *privateCommand[], size_t size) OH_InputMethodProxy_SendPrivateCommand() argument
|
/base/web/webview/test/unittest/ohos_adapter/imf_adapter_test/ |
H A D | imf_adapter_impl_test.cpp | 380 const std::unordered_map<std::string, MiscServices::PrivateDataValue> privateCommand; in HWTEST_F() local 381 listenerTest->ReceivePrivateCommand(privateCommand); in HWTEST_F() 449 const std::unordered_map<std::string, MiscServices::PrivateDataValue> privateCommand; in HWTEST_F() local 450 listenerTest->ReceivePrivateCommand(privateCommand); in HWTEST_F() 483 std::unordered_map<std::string, MiscServices::PrivateDataValue> privateCommand; in HWTEST_F() local 484 privateCommand = { { "test", "test" } }; in HWTEST_F() 485 listenerTest->ReceivePrivateCommand(privateCommand); in HWTEST_F() 486 privateCommand = { { "previewTextStyle", "underline" } }; in HWTEST_F() 487 listenerTest->ReceivePrivateCommand(privateCommand); in HWTEST_F() 488 privateCommand in HWTEST_F() [all...] |
/base/inputmethod/imf/test/common/include/ |
H A D | input_method_engine_listener_impl.h | 45 static bool WaitSendPrivateCommand(const std::unordered_map<std::string, PrivateDataValue> &privateCommand); 54 void ReceivePrivateCommand(const std::unordered_map<std::string, PrivateDataValue> &privateCommand) override;
|
/base/inputmethod/imf/frameworks/native/inputmethod_ability/src/ |
H A D | input_method_agent_stub.cpp | 107 std::unordered_map<std::string, PrivateDataValue> privateCommand; in SendPrivateCommandOnRemote() local 108 if (!ITypesUtil::Unmarshal(data, privateCommand)) { in SendPrivateCommandOnRemote() 112 auto ret = InputMethodAbility::GetInstance()->ReceivePrivateCommand(privateCommand); in SendPrivateCommandOnRemote() 153 const std::unordered_map<std::string, PrivateDataValue> &privateCommand) in SendPrivateCommand() 152 SendPrivateCommand( const std::unordered_map<std::string, PrivateDataValue> &privateCommand) SendPrivateCommand() argument
|
H A D | input_method_agent_proxy.cpp | 75 const std::unordered_map<std::string, PrivateDataValue> &privateCommand) in SendPrivateCommand() 80 [&privateCommand](MessageParcel &parcel) { return ITypesUtil::Marshal(parcel, privateCommand); }, in SendPrivateCommand() 74 SendPrivateCommand( const std::unordered_map<std::string, PrivateDataValue> &privateCommand) SendPrivateCommand() argument
|
/base/web/webview/ohos_adapter/inputmethodframework_adapter/src/ |
H A D | imf_adapter_impl.cpp | 216 const std::unordered_map<std::string, MiscServices::PrivateDataValue>& privateCommand) in ReceivePrivateCommand() 219 auto item = privateCommand.find(PREVIEW_TEXT_STYLE_KEY); in ReceivePrivateCommand() 220 if (item != privateCommand.end()) { in ReceivePrivateCommand() 233 item = privateCommand.find(AUTO_FILL_PARAMS_USERNAME); in ReceivePrivateCommand() 234 if (item != privateCommand.end()) { in ReceivePrivateCommand() 241 item = privateCommand.find(AUTO_FILL_PARAMS_OTHERACCOUNT); in ReceivePrivateCommand() 242 if (item != privateCommand.end()) { in ReceivePrivateCommand() 380 std::unordered_map<std::string, MiscServices::PrivateDataValue> privateCommand; in SendPrivateCommand() local 381 ParseFillContentJsonValue(commandValue, privateCommand); in SendPrivateCommand() 382 int32_t ret = MiscServices::InputMethodController::GetInstance()->SendPrivateCommand(privateCommand); in SendPrivateCommand() 215 ReceivePrivateCommand( const std::unordered_map<std::string, MiscServices::PrivateDataValue>& privateCommand) ReceivePrivateCommand() argument [all...] |
/base/inputmethod/imf/interfaces/inner_api/inputmethod_controller/include/ |
H A D | ime_system_channel.h | 34 virtual void ReceivePrivateCommand(const std::unordered_map<std::string, PrivateDataValue> &privateCommand) in ReceivePrivateCommand() argument 70 * @param privateCommand Indicates the private command which will be send. 75 const std::unordered_map<std::string, PrivateDataValue> &privateCommand) override; 86 int32_t ReceivePrivateCommand(const std::unordered_map<std::string, PrivateDataValue> &privateCommand) override;
|
/base/inputmethod/imf/interfaces/inner_api/inputmethod_ability/include/ |
H A D | input_method_engine_listener.h | 35 virtual void ReceivePrivateCommand(const std::unordered_map<std::string, PrivateDataValue> &privateCommand) = 0;
|
/base/inputmethod/imf/interfaces/kits/c/ |
H A D | inputmethod_inputmethod_proxy_capi.h | 155 * @param privateCommand The private commands, which is defined in {@link InputMethod_PrivateCommand}. Max size 32KB. 156 * @param size The size of privateCommand. Max is 5. 168 InputMethod_InputMethodProxy *inputMethodProxy, InputMethod_PrivateCommand *privateCommand[], size_t size);
|