!88 修复安全测试问题

Merge pull request !88 from demon/master
This commit is contained in:
openharmony_ci
2022-03-05 06:22:08 +00:00
committed by Gitee
5 changed files with 12 additions and 5 deletions
@@ -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;
+4
View File
@@ -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();