mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-23 06:40:06 +00:00
!1551 敏感日志删除,lambda捕获方式修改
Merge pull request !1551 from hemenghao/master
This commit is contained in:
commit
12d44ba9de
@ -31,7 +31,7 @@ class TaskImsaStartInput : public Task {
|
||||
public:
|
||||
TaskImsaStartInput(const InputClientInfo &client, bool fromClient) : Task(TASK_TYPE_IMSA_START_INPUT)
|
||||
{
|
||||
auto func = [=]() {
|
||||
auto func = [client, fromClient]() {
|
||||
InputMethodAbility::GetInstance()->StartInput(client, fromClient);
|
||||
};
|
||||
actions_.emplace_back(std::make_unique<Action>(func));
|
||||
@ -43,7 +43,7 @@ class TaskImsaStopInput : public Task {
|
||||
public:
|
||||
explicit TaskImsaStopInput(sptr<IRemoteObject> channel) : Task(TASK_TYPE_IMSA_STOP_INPUT)
|
||||
{
|
||||
auto func = [=]() {
|
||||
auto func = [channel]() {
|
||||
InputMethodAbility::GetInstance()->StopInput(channel);
|
||||
};
|
||||
actions_.emplace_back(std::make_unique<Action>(func));
|
||||
@ -55,7 +55,7 @@ class TaskImsaShowKeyboard : public Task {
|
||||
public:
|
||||
TaskImsaShowKeyboard() : Task(TASK_TYPE_IMSA_SHOW_KEYBOARD)
|
||||
{
|
||||
auto func = [=]() {
|
||||
auto func = []() {
|
||||
InputMethodAbility::GetInstance()->ShowKeyboard();
|
||||
};
|
||||
actions_.emplace_back(std::make_unique<Action>(func));
|
||||
@ -67,7 +67,7 @@ class TaskImsaHideKeyboard : public Task {
|
||||
public:
|
||||
explicit TaskImsaHideKeyboard() : Task(TASK_TYPE_IMSA_HIDE_KEYBOARD)
|
||||
{
|
||||
auto func = [=]() {
|
||||
auto func = []() {
|
||||
InputMethodAbility::GetInstance()->HideKeyboard();
|
||||
};
|
||||
actions_.emplace_back(std::make_unique<Action>(func));
|
||||
@ -79,7 +79,7 @@ class TaskImsaOnClientInactive : public Task {
|
||||
public:
|
||||
explicit TaskImsaOnClientInactive(sptr<IRemoteObject> channel) : Task(TASK_TYPE_IMSA_CLIENT_INACTIVE)
|
||||
{
|
||||
auto func = [=]() {
|
||||
auto func = [channel]() {
|
||||
InputMethodAbility::GetInstance()->OnClientInactive(channel);
|
||||
};
|
||||
actions_.emplace_back(std::make_unique<Action>(func));
|
||||
@ -91,7 +91,7 @@ class TaskImsaInitInputCtrlChannel : public Task {
|
||||
public:
|
||||
explicit TaskImsaInitInputCtrlChannel(sptr<IRemoteObject> channel) : Task(TASK_TYPE_IMSA_INIT_INPUT_CTRL_CHANNEL)
|
||||
{
|
||||
auto func = [=]() {
|
||||
auto func = [channel]() {
|
||||
InputMethodAbility::GetInstance()->OnInitInputControlChannel(channel);
|
||||
};
|
||||
actions_.emplace_back(std::make_unique<Action>(func));
|
||||
@ -103,7 +103,7 @@ class TaskImsaOnCursorUpdate : public Task {
|
||||
public:
|
||||
TaskImsaOnCursorUpdate(int32_t x, int32_t y, int32_t h) : Task(TASK_TYPE_IMSA_CURSOR_UPDATE)
|
||||
{
|
||||
auto func = [=]() {
|
||||
auto func = [x, y, h]() {
|
||||
InputMethodAbility::GetInstance()->OnCursorUpdate(x, y, h);
|
||||
};
|
||||
actions_.emplace_back(std::make_unique<Action>(func));
|
||||
@ -116,7 +116,7 @@ public:
|
||||
TaskImsaOnSelectionChange(std::u16string text, int32_t oldBegin, int32_t oldEnd, int32_t newBegin, int32_t newEnd)
|
||||
: Task(TASK_TYPE_IMSA_SELECTION_CHANGE)
|
||||
{
|
||||
auto func = [=]() {
|
||||
auto func = [text, oldBegin, oldEnd, newBegin, newEnd]() {
|
||||
InputMethodAbility::GetInstance()->OnSelectionChange(text, oldBegin, oldEnd, newBegin, newEnd);
|
||||
};
|
||||
actions_.emplace_back(std::make_unique<Action>(func));
|
||||
@ -128,7 +128,7 @@ class TaskImsaAttributeChange : public Task {
|
||||
public:
|
||||
explicit TaskImsaAttributeChange(InputAttribute attr) : Task(TASK_TYPE_IMSA_ATTRIBUTE_CHANGE)
|
||||
{
|
||||
auto func = [=]() {
|
||||
auto func = [attr]() {
|
||||
InputMethodAbility::GetInstance()->OnAttributeChange(attr);
|
||||
};
|
||||
actions_.emplace_back(std::make_unique<Action>(func));
|
||||
@ -140,7 +140,7 @@ class TaskImsaStopInputService : public Task {
|
||||
public:
|
||||
explicit TaskImsaStopInputService(bool isTerminateIme) : Task(TASK_TYPE_IMSA_STOP_INPUT_SERVICE)
|
||||
{
|
||||
auto func = [=]() {
|
||||
auto func = [isTerminateIme]() {
|
||||
InputMethodAbility::GetInstance()->OnStopInputService(isTerminateIme);
|
||||
};
|
||||
actions_.emplace_back(std::make_unique<Action>(func));
|
||||
@ -152,7 +152,7 @@ class TaskImsaOnSetSubProperty : public Task {
|
||||
public:
|
||||
explicit TaskImsaOnSetSubProperty(SubProperty prop) : Task(TASK_TYPE_IMSA_SET_SUBPROPERTY)
|
||||
{
|
||||
auto func = [=]() {
|
||||
auto func = [prop]() {
|
||||
InputMethodAbility::GetInstance()->OnSetSubtype(prop);
|
||||
};
|
||||
actions_.emplace_back(std::make_unique<Action>(func));
|
||||
@ -164,7 +164,7 @@ class TaskImsaSetCoreAndAgent : public Task {
|
||||
public:
|
||||
TaskImsaSetCoreAndAgent() : Task(TASK_TYPE_IMSA_SET_CORE_AND_AGENT)
|
||||
{
|
||||
auto func = [=]() {
|
||||
auto func = []() {
|
||||
InputMethodAbility::GetInstance()->SetCoreAndAgent();
|
||||
};
|
||||
actions_.emplace_back(std::make_unique<Action>(func));
|
||||
|
@ -79,7 +79,6 @@ export default class ServiceExtAbility extends ServiceExtensionAbility {
|
||||
console.log(TAG + `commonEvent subscribe error, errorCode: ${error}`);
|
||||
return;
|
||||
}
|
||||
console.log(TAG + 'commonEvent:' + JSON.stringify(commonEventData?.event));
|
||||
if (commonEventData?.event === PACKAGE_ADDED || commonEventData?.event === PACKAGE_REMOVED) {
|
||||
this.updateImeList();
|
||||
}
|
||||
|
@ -654,7 +654,7 @@ HWTEST_F(ImeProxyTest, onInputFinishTest_OnClientInactive, TestSize.Level0)
|
||||
*/
|
||||
HWTEST_F(ImeProxyTest, testIsFromTs, TestSize.Level0)
|
||||
{
|
||||
IMSA_HILOGI("ImeProxyTest testDelete Test START");
|
||||
IMSA_HILOGI("ImeProxyTest testIsFromTs Test START");
|
||||
sptr<OnTextChangedListener> testListener = new TextListener();
|
||||
bool isFrom = testListener->IsFromTs();
|
||||
EXPECT_FALSE(isFrom);
|
||||
|
@ -35,7 +35,7 @@ export default class EntryAbility extends UIAbility {
|
||||
hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? '');
|
||||
return;
|
||||
}
|
||||
hilog.info(0x0000, 'testTag', 'Succeeded in loading the content. Data: %{public}s', JSON.stringify(data) ?? '');
|
||||
hilog.info(0x0000, 'testTag', 'Succeeded in loading the content.');
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user