mirror of
https://github.com/openharmony/miscservices_inputmethod.git
synced 2026-07-18 17:24:37 -04:00
@@ -426,7 +426,8 @@ namespace MiscServices {
|
||||
return;
|
||||
}
|
||||
|
||||
int32_t InputMethodAbility::GetEnterKeyType() {
|
||||
int32_t InputMethodAbility::GetEnterKeyType()
|
||||
{
|
||||
IMSA_HILOGI("InputMethodAbility::GetEnterKeyType");
|
||||
|
||||
if (inputDataChannel == nullptr) {
|
||||
@@ -436,7 +437,8 @@ namespace MiscServices {
|
||||
return inputDataChannel->GetEnterKeyType();
|
||||
}
|
||||
|
||||
int32_t InputMethodAbility::GetInputPattern() {
|
||||
int32_t InputMethodAbility::GetInputPattern()
|
||||
{
|
||||
IMSA_HILOGI("InputMethodAbility::GetInputPattern");
|
||||
|
||||
if (inputDataChannel == nullptr) {
|
||||
@@ -446,7 +448,8 @@ namespace MiscServices {
|
||||
return inputDataChannel->GetInputPattern();
|
||||
}
|
||||
|
||||
void InputMethodAbility::StopInput() {
|
||||
void InputMethodAbility::StopInput()
|
||||
{
|
||||
IMSA_HILOGI("InputMethodAbility::StopInput");
|
||||
|
||||
if (inputDataChannel == nullptr) {
|
||||
|
||||
@@ -78,6 +78,7 @@ namespace MiscServices {
|
||||
sptr<IRemoteObject> channelObject = inputControlChannel->AsObject();
|
||||
if (channelObject == nullptr) {
|
||||
IMSA_HILOGI("InputMethodCoreProxy::InitInputControlChannel channelObject is nullptr");
|
||||
return ErrorCode::ERROR_EX_NULL_POINTER;
|
||||
}
|
||||
data.WriteRemoteObject(channelObject);
|
||||
MessageOption option {
|
||||
|
||||
@@ -22,8 +22,6 @@
|
||||
#include "input_method_ability.h"
|
||||
namespace OHOS {
|
||||
namespace MiscServices {
|
||||
// constexpr size_t ARGC_ZERO = 0;
|
||||
|
||||
void JsEditorAttribute::Finalizer(NativeEngine* engine, void* data, void* hint)
|
||||
{
|
||||
IMSA_HILOGI("JsEditorAttribute::Finalizer is called");
|
||||
|
||||
@@ -884,6 +884,7 @@ namespace MiscServices {
|
||||
IMSA_HILOGI("InputMethodSystemAbility::OnDisplayOptionalInputMethod has no ime");
|
||||
return;
|
||||
}
|
||||
|
||||
std::string defaultIme = ParaHandle::GetDefaultIme(userId_);
|
||||
std::string params = "";
|
||||
std::vector<InputMethodProperty*>::iterator it;
|
||||
|
||||
@@ -34,6 +34,10 @@ namespace MiscServices {
|
||||
int PlatformCallbackStub::OnRemoteRequest(uint32_t code, MessageParcel& data, MessageParcel& reply,
|
||||
MessageOption& option)
|
||||
{
|
||||
auto descriptorToken = data.ReadInterfaceToken();
|
||||
if (descriptorToken != GetDescriptor()) {
|
||||
return ErrorCode::ERROR_STATUS_UNKNOWN_TRANSACTION;
|
||||
}
|
||||
switch (code) {
|
||||
case NOTIFY_EVENT: {
|
||||
int eventId = data.ReadInt32();
|
||||
|
||||
Reference in New Issue
Block a user