From 21d0f6181c15bbb8cf1506336556cf59afa9ac17 Mon Sep 17 00:00:00 2001 From: chengxingzhen Date: Mon, 29 Aug 2022 20:44:57 +0800 Subject: [PATCH] =?UTF-8?q?xts=E5=8D=A1=E7=89=87fail=E7=94=A8=E4=BE=8B?= =?UTF-8?q?=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chengxingzhen --- .../entry/src/main/ets/MainAbility/pages/index.ets | 10 +++++----- .../entry/src/main/ets/MainAbility/pages/index.ets | 8 ++++---- .../entry/src/main/ets/MainAbility/pages/index.ets | 14 +++++++------- .../entry/src/main/ets/MainAbility/pages/index.ets | 12 ++++++------ .../entry/src/main/ets/MainAbility/pages/index.ets | 12 ++++++------ .../entry/src/main/ets/MainAbility/pages/index.ets | 12 ++++++------ .../entry/src/main/ets/MainAbility/pages/index.ets | 10 +++++----- .../entry/src/main/ets/MainAbility/pages/index.ets | 8 ++++---- .../entry/src/main/ets/MainAbility/pages/index.ets | 8 ++++---- .../entry/src/main/ets/MainAbility/pages/index.ets | 8 ++++---- .../entry/src/main/ets/MainAbility/pages/index.ets | 4 ++-- .../entry/src/main/ets/MainAbility/pages/index.ets | 2 +- 12 files changed, 54 insertions(+), 54 deletions(-) diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhost/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhost/entry/src/main/ets/MainAbility/pages/index.ets index 54eeee875..c4f389eba 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhost/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhost/entry/src/main/ets/MainAbility/pages/index.ets @@ -46,22 +46,22 @@ struct Index { events: ["FMS_FormDelete_commonEvent"], }; - private publishOnErrorCallBack() { + private publishOnErrorCallBack = () => { this.canCreateForm = false; console.debug("====>formOnErrorEvent Publish CallBack ====>"); } - private publishOnAcquiredCallBack() { + private publishOnAcquiredCallBack = () => { console.debug("====>formOnAcquiredEvent Publish CallBack ====>"); } - private publishCastCallBack() { + private publishCastCallBack = () => { console.debug("====>formCastEvent Publish CallBack ====>"); } - private publishOnUninstallCallBack() { + private publishOnUninstallCallBack = () => { console.debug("====>formOnUninstallEvent Publish CallBack ====>"); } - private deleteCallBack(err, data) { + private deleteCallBack = (err, data) => { console.info("!!!====>formsystemhost deleteCallBack start:====>" + JSON.stringify(data)); if (data.bundleName && data.bundleName != "com.ohos.st.formsystemhost") { return; diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostb/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostb/entry/src/main/ets/MainAbility/pages/index.ets index 010c8e164..767c0ff7f 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostb/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostb/entry/src/main/ets/MainAbility/pages/index.ets @@ -46,17 +46,17 @@ struct Index { }; private subscriberDle; - private publishOnErrorCallBack() { + private publishOnErrorCallBack = () => { this.canCreateForm = false; console.debug("====>formOnErrorEvent Publish CallBack ====>"); } - private publishOnAcquiredCallBack() { + private publishOnAcquiredCallBack = () => { console.debug("====>formOnAcquiredEvent Publish CallBack ====>"); } - private publishCastCallBack() { + private publishCastCallBack = () => { console.debug("====>formCastEvent Publish CallBack ====>"); } - private deleteCallBack(err, data) { + private deleteCallBack = (err, data) => { console.info("!!!====>formsystemhost deleteCallBack start:====>" + JSON.stringify(data)); if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostb") { return; diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostc/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostc/entry/src/main/ets/MainAbility/pages/index.ets index 969c4c1bd..5ba286fc4 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostc/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostc/entry/src/main/ets/MainAbility/pages/index.ets @@ -57,26 +57,26 @@ struct Index { events: ["FMS_TimeChange_commonEvent"], }; - private publishOnErrorCallBack() { + private publishOnErrorCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc formOnErrorEventCallBack ====>"); } - private publishOnDeletedCallBack() { + private publishOnDeletedCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc publishOnDeletedCallBack ====>"); } - private publishOnReleasedCallBack() { + private publishOnReleasedCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc publishOnReleasedCallBackk ====>"); } - private publishOnAcquiredCallBack() { + private publishOnAcquiredCallBack = () => { console.debug("====>formsystemhostc formOnAcquiredEventCallBack ====>"); } - private publishCastCallBack() { + private publishCastCallBack = () => { console.debug("====>formsystemhostc formCastEventCallBack ====>"); } - private deleteCallBack(err, data) { + private deleteCallBack = (err, data) => { console.info("!!!====>[FormComponent] deleteCallBack start:====>" + JSON.stringify(data)); if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostc") { return; @@ -90,7 +90,7 @@ struct Index { console.info("!!!====>[FormComponent] deleteCallBack end ====>"); } - private timeChangeCallBack(err, data) { + private timeChangeCallBack = (err, data) => { console.info("!!!====>[FormComponent] timeChangeCallBack start:====>" + JSON.stringify(data)); if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostc") { return; diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostd/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostd/entry/src/main/ets/MainAbility/pages/index.ets index 2668b47ef..32f4a3bf7 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostd/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostd/entry/src/main/ets/MainAbility/pages/index.ets @@ -50,26 +50,26 @@ struct Index { events: ["FMS_FormDelete_commonEvent"], }; - private publishOnErrorCallBack() { + private publishOnErrorCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc formOnErrorEventCallBack ====>"); } - private publishOnDeletedCallBack() { + private publishOnDeletedCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc publishOnDeletedCallBack ====>"); } - private publishOnReleasedCallBack() { + private publishOnReleasedCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc publishOnReleasedCallBackk ====>"); } - private publishOnAcquiredCallBack() { + private publishOnAcquiredCallBack = () => { console.debug("====>formsystemhostc formOnAcquiredEventCallBack ====>"); } - private publishCastCallBack() { + private publishCastCallBack = () => { console.debug("====>formsystemhostc formCastEventCallBack ====>"); } - private deleteCallBack(err, data) { + private deleteCallBack = (err, data) => { console.info("!!!====>formsystemhost deleteCallBack start:====>" + JSON.stringify(data)); if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostd") { return; diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhoste/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhoste/entry/src/main/ets/MainAbility/pages/index.ets index 8eaf42ac8..6303a481a 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhoste/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhoste/entry/src/main/ets/MainAbility/pages/index.ets @@ -55,27 +55,27 @@ struct Index { events: ["FMS_FormDelete_commonEvent"], }; - private publishOnErrorCallBack() { + private publishOnErrorCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc formOnErrorEventCallBack ====>"); } - private publishOnDeletedCallBack() { + private publishOnDeletedCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc publishOnDeletedCallBack ====>"); } - private formOnDynamicRefreshCallBack() { + private formOnDynamicRefreshCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc formOnDynamicRefreshEventk ====>"); } - private formOnRequestCallBack() { + private formOnRequestCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc formOnRequestCallBack ====>"); } - private publishOnAcquiredCallBack() { + private publishOnAcquiredCallBack = () => { console.debug("====>formsystemhostc formOnAcquiredEventCallBack ====>"); } - private deleteCallBack(err, data) { + private deleteCallBack = (err, data) => { console.info("!!!====>formsystemhost deleteCallBack start:====>" + JSON.stringify(data)); if (data.bundleName && data.bundleName != "com.ohos.st.formsystemhost") { return; diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostf/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostf/entry/src/main/ets/MainAbility/pages/index.ets index 2b576e3c1..6794ecc98 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostf/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostf/entry/src/main/ets/MainAbility/pages/index.ets @@ -57,26 +57,26 @@ struct Index { events: ["FMS_FormDelete_commonEvent"], }; - private publishOnErrorCallBack() { + private publishOnErrorCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc formOnErrorEventCallBack ====>"); } - private publishOnDeletedCallBack() { + private publishOnDeletedCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc publishOnDeletedCallBack ====>"); } - private publishOnReleasedCallBack() { + private publishOnReleasedCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc publishOnReleasedCallBackk ====>"); } - private publishOnAcquiredCallBack() { + private publishOnAcquiredCallBack = () => { console.debug("====>formsystemhostc formOnAcquiredEventCallBack ====>"); } - private publishOnUpdatedCallBack() { + private publishOnUpdatedCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc publishOnUpdatedCallBack ====>"); } - private deleteCallBack(err, data) { + private deleteCallBack = (err, data) => { console.info("!!!====>formsystemhost deleteCallBack start:====>" + JSON.stringify(data)); if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostf") { return; diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostg/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostg/entry/src/main/ets/MainAbility/pages/index.ets index e037471b2..89d9c29a4 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostg/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostg/entry/src/main/ets/MainAbility/pages/index.ets @@ -49,22 +49,22 @@ struct Index { events: ["FMS_FormDelete_commonEvent"], }; - private publishOnErrorCallBack() { + private publishOnErrorCallBack = () => { this.canCreateForm = false; console.debug("====>[FormComponent.host] formOnErrorEventCallBack ====>"); } - private publishOnDeletedCallBack() { + private publishOnDeletedCallBack = () => { this.canCreateForm = false; console.debug("====>[FormComponent.host] publishOnDeletedCallBack ====>"); } - private publishOnStateCallBack() { + private publishOnStateCallBack = () => { this.canCreateForm = false; console.debug("====>[FormComponent.host] publishOnStateCallBack ====>"); } - private publishOnAcquiredCallBack() { + private publishOnAcquiredCallBack = () => { console.debug("====>[FormComponent.host] formOnAcquiredEventCallBack ====>"); } - private deleteCallBack(err, data) { + private deleteCallBack = (err, data) => { console.info("!!!====>[FormComponent.host] deleteCallBack start:====>" + JSON.stringify(data)); if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostg") { return; diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhosti/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhosti/entry/src/main/ets/MainAbility/pages/index.ets index 732bbe9e3..7d7588e3a 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhosti/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhosti/entry/src/main/ets/MainAbility/pages/index.ets @@ -45,18 +45,18 @@ struct Index { events: ["FMS_FormDelete_commonEvent"], }; - private publishOnErrorCallBack() { + private publishOnErrorCallBack = () => { this.canCreateForm = false; console.info("====>formOnErrorEvent Publish CallBack ====>"); } - private publishOnAcquiredCallBack() { + private publishOnAcquiredCallBack = () => { console.info("====>formOnAcquiredEvent Publish CallBack ====>"); } - private publishCastCallBack() { + private publishCastCallBack = () => { console.info("====>formCastEvent Publish CallBack ====>"); } - private deleteCallBack(err, data) { + private deleteCallBack = (err, data) => { console.info("!!!====>formsystemhost deleteCallBack start:====>" + JSON.stringify(data)); if (data.bundleName && data.bundleName != "com.ohos.st.formsystemhost") { return; diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostj/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostj/entry/src/main/ets/MainAbility/pages/index.ets index f86495a3e..5199fd178 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostj/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostj/entry/src/main/ets/MainAbility/pages/index.ets @@ -45,18 +45,18 @@ struct Index { events: ["FMS_FormDelete_commonEvent"], }; - private publishOnErrorCallBack() { + private publishOnErrorCallBack = () => { this.canCreateForm = false; console.debug("====>formOnErrorEvent Publish CallBack ====>"); } - private publishOnAcquiredCallBack() { + private publishOnAcquiredCallBack = () => { console.debug("====>formOnAcquiredEvent Publish CallBack ====>"); } - private publishCastCallBack() { + private publishCastCallBack = () => { console.debug("====>formCastEvent Publish CallBack ====>"); } - private deleteCallBack(err, data) { + private deleteCallBack = (err, data) => { console.info("!!!====>formsystemhostj deleteCallBack start:====>" + JSON.stringify(data)); if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostj") { return; diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostk/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostk/entry/src/main/ets/MainAbility/pages/index.ets index c97051807..12d7ad236 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostk/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostk/entry/src/main/ets/MainAbility/pages/index.ets @@ -67,19 +67,19 @@ struct Index { private formOnDeletedEvent = "FMS_FormOnDeleted_commonEvent"; private formOnReleasedEvent = "FMS_FormOnReleased_commonEvent"; - private onAcquiredCallback() { + private onAcquiredCallback = () => { console.info(`${this.TAG} onAcquiredCallback`); } - private onRequestCallback() { + private onRequestCallback = () => { console.info(`====>${this.TAG} onRequestCallback====>`); } - private onDeletedCallback() { + private onDeletedCallback = () => { console.info(`${this.TAG} onDeletedCallback`); } - private onReleasedCallback() { + private onReleasedCallback = () => { console.info(`====>${this.TAG} onReleasedCallback====>`); } diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostl/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostl/entry/src/main/ets/MainAbility/pages/index.ets index c900acdf6..279ca3158 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostl/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostl/entry/src/main/ets/MainAbility/pages/index.ets @@ -42,11 +42,11 @@ struct Index { private formOnRequestEvent = `FMS_FormOnRequest_commonEvent`; private formOnDeletedEvent = "FMS_FormOnDeleted_commonEvent"; - private onAcquiredCallback() { + private onAcquiredCallback = () => { console.info(`====>${this.TAG} onAcquiredCallback====>`); } - private onRequestCallback() { + private onRequestCallback = () => { console.info(`====>${this.TAG} onRequestCallback====>`); } diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostnoperm/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostnoperm/entry/src/main/ets/MainAbility/pages/index.ets index 891b96832..7727fd57e 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostnoperm/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostnoperm/entry/src/main/ets/MainAbility/pages/index.ets @@ -48,7 +48,7 @@ struct Index { private formOnRequestEvent = "FMS_FormOnRequest_commonEvent"; private formOnStateEvent = "FMS_FormOnState_commonEvent"; - private publishCallBack() { + private publishCallBack = () => { console.debug("====>formOnErrorEvent Publish CallBack ====>"); } -- GitLab