From 00b8d8c61ddbac6a81439f9af7bb066a03b3ba77 Mon Sep 17 00:00:00 2001 From: kirl75 Date: Wed, 2 Aug 2023 20:36:38 +0800 Subject: [PATCH] =?UTF-8?q?AMS=E5=90=AF=E5=8A=A8=E8=A7=84=E5=88=99?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: kirl75 --- ability/ability_runtime/stage/actsstartuptest/BUILD.gn | 4 ++-- .../entry/src/main/ets/calleeability/CalleeAbility.ts | 2 +- .../stage/actsstartuptest/StartUpRuleTest/Test.json | 6 +----- .../ets/DataShareExtAbility/DataShareExtAbility.ts | 2 +- .../main/ets/ServiceExtAbility/ServiceExtAbility.ts | 10 +++++----- 5 files changed, 10 insertions(+), 14 deletions(-) diff --git a/ability/ability_runtime/stage/actsstartuptest/BUILD.gn b/ability/ability_runtime/stage/actsstartuptest/BUILD.gn index 0cedcea33..0c7f062bd 100644 --- a/ability/ability_runtime/stage/actsstartuptest/BUILD.gn +++ b/ability/ability_runtime/stage/actsstartuptest/BUILD.gn @@ -17,8 +17,8 @@ group("startuptest") { testonly = true if (is_standard_system) { deps = [ - "StartUpAssistant:StartUpAssistant", - "StartUpRuleTest:StartUpRuleTest", + "StartUpAssistant:ActsStartUpAssistant", + "StartUpRuleTest:ActsStartUpRuleTest", ] } } diff --git a/ability/ability_runtime/stage/actsstartuptest/StartUpAssistant/entry/src/main/ets/calleeability/CalleeAbility.ts b/ability/ability_runtime/stage/actsstartuptest/StartUpAssistant/entry/src/main/ets/calleeability/CalleeAbility.ts index ad90d3f57..d81e0e112 100644 --- a/ability/ability_runtime/stage/actsstartuptest/StartUpAssistant/entry/src/main/ets/calleeability/CalleeAbility.ts +++ b/ability/ability_runtime/stage/actsstartuptest/StartUpAssistant/entry/src/main/ets/calleeability/CalleeAbility.ts @@ -44,7 +44,7 @@ export default class CalleeAbility extends UIAbility { this.context.terminateSelfWithResult(result, () => {}); unsubscribe(subscriber); }); - }) + }); } onDestroy() { diff --git a/ability/ability_runtime/stage/actsstartuptest/StartUpRuleTest/Test.json b/ability/ability_runtime/stage/actsstartuptest/StartUpRuleTest/Test.json index cd336f92e..28a0d467e 100644 --- a/ability/ability_runtime/stage/actsstartuptest/StartUpRuleTest/Test.json +++ b/ability/ability_runtime/stage/actsstartuptest/StartUpRuleTest/Test.json @@ -22,11 +22,7 @@ "run-command": [ "power-shell wakeup", "power-shell setmode 602", - "uinput -T -d 300 600 -m 300 600 300 100 -u 300 100", - "hilog -b D", - "hilog -Q pidoff", - "hilog -Q domainoff", - "hilog -G 2M" + "uinput -T -d 300 600 -m 300 600 300 100 -u 300 100" ] } ] diff --git a/ability/ability_runtime/stage/actsstartuptest/StartUpRuleTest/entry/src/main/ets/DataShareExtAbility/DataShareExtAbility.ts b/ability/ability_runtime/stage/actsstartuptest/StartUpRuleTest/entry/src/main/ets/DataShareExtAbility/DataShareExtAbility.ts index 356d591f0..8ed4d95a7 100644 --- a/ability/ability_runtime/stage/actsstartuptest/StartUpRuleTest/entry/src/main/ets/DataShareExtAbility/DataShareExtAbility.ts +++ b/ability/ability_runtime/stage/actsstartuptest/StartUpRuleTest/entry/src/main/ets/DataShareExtAbility/DataShareExtAbility.ts @@ -20,6 +20,6 @@ export default class DataShareExtAbility extends DataShareExtensionAbility { console.log(`DataShareExtAbility onCreate: ${JSON.stringify(want)}`); } onDestroy() { - console.log(`DataShareExtAbility onDestroy`); + console.log('DataShareExtAbility onDestroy'); } } \ No newline at end of file diff --git a/ability/ability_runtime/stage/actsstartuptest/StartUpRuleTest/entry/src/main/ets/ServiceExtAbility/ServiceExtAbility.ts b/ability/ability_runtime/stage/actsstartuptest/StartUpRuleTest/entry/src/main/ets/ServiceExtAbility/ServiceExtAbility.ts index bcffc941a..84ab10531 100644 --- a/ability/ability_runtime/stage/actsstartuptest/StartUpRuleTest/entry/src/main/ets/ServiceExtAbility/ServiceExtAbility.ts +++ b/ability/ability_runtime/stage/actsstartuptest/StartUpRuleTest/entry/src/main/ets/ServiceExtAbility/ServiceExtAbility.ts @@ -13,8 +13,8 @@ * limitations under the License. */ -import ServiceExtensionAbility from '@ohos.app.ability.ServiceExtensionAbility' -import rpc from '@ohos.rpc' +import ServiceExtensionAbility from '@ohos.app.ability.ServiceExtensionAbility'; +import rpc from '@ohos.rpc'; class StubTest extends rpc.RemoteObject { constructor(des) { @@ -33,13 +33,13 @@ export default class ServiceExtAbility extends ServiceExtensionAbility { console.log(`onRequest: ${JSON.stringify(want)}`); } onConnect(want) { - console.log(`onConnect END`); - return new StubTest("stub"); + console.log('onConnect END'); + return new StubTest('stub'); } onDisconnect(want): void { console.log(`HXW onDisconnect: ${JSON.stringify(want)}`); } onDestroy() { - console.log(`onDestroy`); + console.log('onDestroy'); } } \ No newline at end of file -- GitLab