From d5c5a6437c5390df18778dee8976faacc0af8c16 Mon Sep 17 00:00:00 2001 From: HuangXW Date: Fri, 31 Mar 2023 08:22:32 +0000 Subject: [PATCH] =?UTF-8?q?fixed=203dcb16c=20from=20https://gitee.com/H-xi?= =?UTF-8?q?nwei/xts=5Facts/pulls/7981=20=E5=88=A0=E9=99=A4=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E7=9A=84=E6=B5=8B=E8=AF=95hap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: HuangXW Change-Id: I3f25ab9fe5490d10c45e6d7b3a70f1cffb81171b --- .../actsserviceabilityserverrelyhap/BUILD.gn | 40 ---- .../entry/src/main/config.json | 87 -------- .../entry/src/main/ets/AbilityStage.ts | 21 -- .../src/main/ets/MainAbility/MainAbility.ts | 44 ---- .../entry/src/main/ets/MainAbility/app.ets | 22 -- .../src/main/ets/MainAbility/pages/index.ets | 38 ---- .../src/main/ets/MainAbility/pages/second.ets | 43 ---- .../src/main/ets/ServiceAbility/service.ts | 190 ------------------ .../main/resources/base/element/string.json | 36 ---- .../src/main/resources/base/media/icon.png | Bin 6790 -> 0 bytes .../signature/openharmony_sx.p7b | Bin 3647 -> 0 bytes .../BUILD.gn | 40 ---- .../entry/src/main/config.json | 87 -------- .../entry/src/main/ets/AbilityStage.ts | 21 -- .../src/main/ets/MainAbility/MainAbility.ts | 30 --- .../entry/src/main/ets/MainAbility/app.ets | 22 -- .../src/main/ets/MainAbility/pages/index.ets | 38 ---- .../src/main/ets/MainAbility/pages/second.ets | 43 ---- .../src/main/ets/ServiceAbility/service.ts | 186 ----------------- .../main/resources/base/element/string.json | 36 ---- .../src/main/resources/base/media/icon.png | Bin 6790 -> 0 bytes .../signature/openharmony_sx.p7b | Bin 3652 -> 0 bytes 22 files changed, 1024 deletions(-) delete mode 100644 ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/BUILD.gn delete mode 100644 ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/config.json delete mode 100644 ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/AbilityStage.ts delete mode 100644 ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/MainAbility/MainAbility.ts delete mode 100644 ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/MainAbility/app.ets delete mode 100644 ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/MainAbility/pages/index.ets delete mode 100644 ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/MainAbility/pages/second.ets delete mode 100644 ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/ServiceAbility/service.ts delete mode 100644 ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/resources/base/element/string.json delete mode 100644 ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/resources/base/media/icon.png delete mode 100644 ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/signature/openharmony_sx.p7b delete mode 100644 ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/BUILD.gn delete mode 100644 ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/config.json delete mode 100644 ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/ets/AbilityStage.ts delete mode 100644 ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/ets/MainAbility/MainAbility.ts delete mode 100644 ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/ets/MainAbility/app.ets delete mode 100644 ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/ets/MainAbility/pages/index.ets delete mode 100644 ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/ets/MainAbility/pages/second.ets delete mode 100644 ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/ets/ServiceAbility/service.ts delete mode 100644 ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/resources/base/element/string.json delete mode 100644 ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/resources/base/media/icon.png delete mode 100644 ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/signature/openharmony_sx.p7b diff --git a/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/BUILD.gn b/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/BUILD.gn deleted file mode 100644 index 1fcfc3838..000000000 --- a/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/BUILD.gn +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//test/xts/tools/build/suite.gni") - -ohos_hap_assist_suite("ActsServiceAbilityServerRelyHap") { - hap_name = "ActsServiceAbilityServerRelyHap" - js_build_mode = "debug" - hap_profile = "entry/src/main/config.json" - - testonly = true - deps = [ - ":serviceability_resources", - ":serviceability_ts_assets", - ] - certificate_profile = "signature/openharmony_sx.p7b" - subsystem_name = "ability" - part_name = "ability_runtime" -} - -ohos_js_assets("serviceability_ts_assets") { - source_dir = "entry/src/main/ets" - hap_profile = "entry/src/main/config.json" - ets2abc = true -} - -ohos_resources("serviceability_resources") { - sources = [ "entry/src/main/resources" ] - hap_profile = "entry/src/main/config.json" -} diff --git a/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/config.json b/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/config.json deleted file mode 100644 index f2165dcfe..000000000 --- a/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/config.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "app": { - "bundleName": "com.amsst.stserviceabilityserver", - "vendor": "test", - "version": { - "code": 1000110, - "name": "1.1.1" - }, - "apiVersion": { - "compatible": 8, - "target": 9 - } - }, - "deviceConfig": {}, - "module": { - "package": "com.amsst.stserviceabilityserver", - "name": ".MyApplication", - "mainAbility": ".MainAbility", - "srcPath": "", - "deviceType": [ - "default", - "tablet" - ], - "distro": { - "deliveryWithInstall": true, - "moduleName": "entry", - "moduleType": "entry", - "installationFree": false - }, - "abilities": [ - { - "skills": [ - { - "entities": [ - "entity.system.home" - ], - "actions": [ - "action.system.home" - ] - } - ], - "orientation": "unspecified", - "visible": true, - "srcPath": "MainAbility", - "name": ".MainAbility", - "srcLanguage": "ets", - "icon": "$media:icon", - "description": "$string:description_mainability", - "formsEnabled": false, - "label": "$string:entry_MainAbility", - "type": "page", - "launchType": "standard" - }, - { - "srcPath": "ServiceAbility", - "name": ".ServiceAbility", - "icon": "$media:icon", - "srcLanguage": "ets", - "description": "$string:description_serviceability", - "visible": true, - "type": "service" - } - ], - "js": [ - { - "mode": { - "syntax": "ets", - "type": "pageAbility" - }, - "pages": [ - "pages/index", - "pages/second" - ], - "name": ".MainAbility", - "window": { - "designWidth": 720, - "autoDesignWidth": false - } - } - ], - "defPermissions": [ - { - "name": "com.ohos.screenlock.DataAbilityShellProvider.PROVIDER" - } - ] - } -} diff --git a/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/AbilityStage.ts b/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/AbilityStage.ts deleted file mode 100644 index 397f53c99..000000000 --- a/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/AbilityStage.ts +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (C) 2022 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import AbilityStage from "@ohos.app.ability.AbilityStage" - -export default class MyAbilityStage extends AbilityStage { - onCreate() { - console.log("MyAbilityStage onCreate"); - } -} \ No newline at end of file diff --git a/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/MainAbility/MainAbility.ts b/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/MainAbility/MainAbility.ts deleted file mode 100644 index 0aa7fed2f..000000000 --- a/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/MainAbility/MainAbility.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2022 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Ability from '@ohos.app.ability.UIAbility' -export default class MainAbility extends Ability { - onCreate(want, launchParam) { - console.log("jws onCreate"); - } - - onDestroy() { - console.log("jws onDestroy"); - } - - onWindowStageCreate(windowStage) { - console.log("jws onWindowStageCreate"); - } - - onWindowStageDestroy() { - console.log("jws onWindowStageDestroy"); - } - - onForeground() { - console.log("jws onForeground"); - } - - onBackground() { - console.log("jws onBackground"); - } - - call(){ - - } -} \ No newline at end of file diff --git a/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/MainAbility/app.ets b/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/MainAbility/app.ets deleted file mode 100644 index d0d2a5cd4..000000000 --- a/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/MainAbility/app.ets +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2022 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -export default { - onCreate() { - console.info('Application onCreate') - }, - onDestroy() { - console.info('Application onDestroy') - }, -} \ No newline at end of file diff --git a/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/MainAbility/pages/index.ets deleted file mode 100644 index 442a0fea6..000000000 --- a/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/MainAbility/pages/index.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2022 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import {Core} from '@ohos/hypium' - -@Entry -@Component -struct Index { - aboutToAppear() { - console.info('onShow finish') - const core = Core.getInstance() - core.init() - const configService = core.getDefaultService('config') - configService.setConfig(this) - core.execute() - } - - build() { - Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { - Text('Hello World') - .fontSize(50) - .fontWeight(FontWeight.Bold) - } - .width('100%') - .height('100%') - } -} \ No newline at end of file diff --git a/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/MainAbility/pages/second.ets b/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/MainAbility/pages/second.ets deleted file mode 100644 index 359eb5ab9..000000000 --- a/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/MainAbility/pages/second.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2022 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import router from '@system.router'; - -@Entry -@Component -struct Second { - private content: string = "Second Page" - - build() { - Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { - Text(`${this.content}`) - .fontSize(50) - .fontWeight(FontWeight.Bold) - Button() { - Text('back to index') - .fontSize(20) - .fontWeight(FontWeight.Bold) - }.type(ButtonType.Capsule) - .margin({ - top: 20 - }) - .backgroundColor('#0D9FFB') - .onClick(() => { - router.back() - }) - } - .width('100%') - .height('100%') - } -} \ No newline at end of file diff --git a/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/ServiceAbility/service.ts b/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/ServiceAbility/service.ts deleted file mode 100644 index 28ea7474e..000000000 --- a/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/ServiceAbility/service.ts +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Copyright (C) 2022 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import rpc from "@ohos.rpc"; -import particleAbility from '@ohos.ability.particleAbility' -import commonEvent from '@ohos.commonEvent' -var serversecond_bundleName = "com.amsst.stserviceabilityserversecond"; -var serversecond_abilityName = "com.amsst.stserviceabilityserversecond.ServiceAbility"; -var mConnIdJs; -class StubTest extends rpc.RemoteObject { - constructor(des) { - console.info('ACTS_SerivceAbilityServer ====< des = ' + des); - if (typeof des === 'string') { - console.info('ACTS_ super'); - super(des); - } else { - return null; - } - } - - onRemoteRequest(code, data, reply, option) { - if (code === 1) { - console.info("ACTS_SerivceAbilityServer ====< onRemoteRequest code = 1"); - let token = data.readInterfaceToken(); - console.log('ACTS_SerivceAbilityServer ====< onRemoteRequest token:' + token); - let num = data.readInt(); - console.log('ACTS_SerivceAbilityServer ====< onRemoteRequest num:' + num); - this.method(); - num = num + 777; - reply.writeInt(num); - } else { - console.info("ACTS_SerivceAbilityServer ====< onRemoteRequest code not 1"); - } - return true; - } - method() { - console.log('ACTS_SerivceAbilityServer ====< method called.') - } -} - -function sleep(delay) { - let start = new Date().getTime(); - while (true) { - if (new Date().getTime() - start > delay) { - break; - } - } -} - -export default { - onStart(want) { - console.debug('ACTS_SerivceAbilityServer 0425 ====>onStart .ts 0851 =' - + want + " , JSON." + JSON.stringify(want)); - commonEvent.publish("ACTS_SerivceAbilityServer_onStart", (err) => { }); - }, - onStop() { - console.debug('ACTS_SerivceAbilityServer ==== { }); - }, - onCommand(want, restart, startId) { - console.debug('ACTS_SerivceAbilityServer ====>onCommand=' - + "JSON(want)=" + JSON.stringify(want) - + " ,restart=" + restart + " ,startId=" + startId); - if (want.action == 'ServiceStartService_0900') { - particleAbility.startAbility( - { - want: - { - bundleName: serversecond_bundleName, - abilityName: serversecond_abilityName, - action: "ServiceStartService_0900", - }, - } - ); - sleep(600) - } else if (want.action == 'ServiceStartService_1000') { - particleAbility.startAbility( - { - want: - { - bundleName: serversecond_bundleName, - abilityName: serversecond_abilityName, - action: "ServiceStartService_1000", - }, - }, (err, data) => { - console.debug('ACTS_SerivceAbilityServer start Ability 1000 callback=====' - + err + ', data= ' + data + " , JSON." + JSON.stringify(data)); - } - ); - } else { - commonEvent.publish("ACTS_SerivceAbilityServer_onCommand" + "_" + want.action, (err) => { - if (!err.code) { - if (want.action == 'PageStartService_0100' || want.action == 'PageStartService_0200' - || want.action == 'PageStartService_0301' || want.action == 'PageStartService_0401') { - console.debug('ACTS_SerivceAbilityServer_onCommand 100 200 301 401.=====>' - + want.action); - } - } else { - console.debug('ACTS_SerivceAbilityServer_onCommand publish err=====>' + err); - } - }); - } - }, - onConnect(want) { - console.info('ACTS_SerivceAbilityServer ====< onConnect'); - try { - console.debug('ACTS_SerivceAbilityServer ====>onConnect=' - + want + " , JSON." + JSON.stringify(want)); - commonEvent.publish("ACTS_SerivceAbilityServer_onConnect" + "_" + want.action, (err) => { }); - function onConnectCallback(element, remote) { - console.debug('ACTS_SerivceAbilityServer_onConnectCallback ====> mConnIdJs=' - + JSON.stringify(mConnIdJs) + " , " + mConnIdJs); - console.debug('ACTS_SerivceAbilityServer_onConnectCallback ====> element=' - + JSON.stringify(element) + " , " + element); - console.debug('ACTS_SerivceAbilityServer_onConnectCallback ====> remote=' - + JSON.stringify(remote) + " , " + remote); - } - function onDisconnectCallback(element) { - console.debug('ACTS_SerivceAbilityServer_onDisconnectCallback ====> element=' - + JSON.stringify(element) + " , " + element); - } - function onFailedCallback(code) { - console.debug('ACTS_SerivceAbilityServer_onFailedCallback ====> code=' - + JSON.stringify(code) + " , " + code) - } - if (want.action == 'ServiceConnectService_1300' || want.action == 'ServiceConnectService_1400' - || want.action == 'ServiceConnectService_1500' || want.action == 'ServiceConnectService_1600') { - mConnIdJs = particleAbility.connectAbility( - { - bundleName: serversecond_bundleName, - abilityName: serversecond_abilityName, - action: want.action, - }, - { - onConnect: onConnectCallback, - onDisconnect: onDisconnectCallback, - onFailed: onFailedCallback, - }, - ) - } - } catch (err) { - console.log("ACTS_SerivceAbilityServer ====< error:" + err) - } - console.info('ACTS_SerivceAbilityServer ====< onConnect end'); - return new StubTest("connect-test"); - }, - onDisconnect(want) { - console.debug('ACTS_SerivceAbilityServer ====>onDisConnect=' - + want + " , JSON." + JSON.stringify(want)); - commonEvent.publish("ACTS_SerivceAbilityServer_onDisConnect_" + want.action, (err) => { - console.debug('ACTS_SerivceAbilityServer_onDisConnect ===' + want.action); - }); - if (want.action == 'ServiceConnectService_1300' || want.action == 'ServiceConnectService_1400' - || want.action == 'ServiceConnectService_1500' || want.action == 'ServiceConnectService_1501' - || want.action == 'ServiceConnectService_1600' || want.action == 'ServiceConnectService_1601' - ) { - particleAbility.disconnectAbility(mConnIdJs, (err) => { - console.debug("=ACTS_SerivceAbilityServer_onDisConnect 13 14 15 16 err====>" - + ("json err=") + JSON.stringify(err) + " , " + want.action); - }) - } - }, - onReady() { - console.debug('ACTS_SerivceAbilityServer ====onReconnect=' - + want + " , JSON." + JSON.stringify(want)); - commonEvent.publish("ACTS_SerivceAbilityServer_onReconnect" + "_" + want.action, (err) => { }); - }, - OnAbilityConnectDone(element, remoteObject, resultCode) { - console.debug('ACTS_SerivceAbilityServer ====>OnAbilityConnectDone=' - + element + " , JSON." + JSON.stringify(element) - + remoteObject + " , JSON." + JSON.stringify(remoteObject) - + resultCode + " , JSON." + JSON.stringify(resultCode) - ); - commonEvent.publish("ACTS_SerivceAbilityServer_OnAbilityConnectDone", (err) => { }); - }, -}; diff --git a/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/resources/base/element/string.json b/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/resources/base/element/string.json deleted file mode 100644 index 745bfaffc..000000000 --- a/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/resources/base/element/string.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "string": [ - { - "name": "entry_MainAbility", - "value": "ServiceExtAbility" - }, - { - "name": "description_mainability", - "value": "eTS_Empty Ability" - }, - { - "name": "description_serviceability", - "value": "hap sample empty service" - }, - { - "name": "description_dataability", - "value": "hap sample empty provider" - }, - { - "name": "description_mainability2", - "value": "eTS_Empty Ability" - }, - { - "name": "entry_MainAbility2", - "value": "entry_MainAbility2" - }, - { - "name": "description_testdataability", - "value": "hap sample empty provider" - }, - { - "name": "permreason_dataability", - "value": "request dataability premission" - } - ] -} \ No newline at end of file diff --git a/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/resources/base/media/icon.png b/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/resources/base/media/icon.png deleted file mode 100644 index ce307a8827bd75456441ceb57d530e4c8d45d36c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6790 zcmX|G1ymHk)?T_}Vd;>R?p|tHQo6fg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FNeDs{d-W8gCbI4muH^7BrHAs z*KyCu{ISdYIW)|laVIS+M`Hnr?^(K;U`D=lRo_)QKgWsJkO(qCmJuY%nb#3X4=BG% zp2FGpX$$n4NP!lsKhe9kt91FgPfI-qF3sf5k#KVU;(dmabv-Yh35So|^Tfux`@VVM z-LTfV5_1mlk0M)k44&WDaUrmEY}pC&fi-_}-ni-h()agn*?6Jj<_j~bR;Er=|8O!c zgxyOUik$!4gn+xjIE5$`3ULa7M*fUul1ev%NfR2&H#~F8k53o)b{rX~**(xEmAyH- zdYX6vh^m3qCe=W1ekE#_C6LVMQis@Xbb)!SqDHtw5p|FT);Z2OiCw;G;2`WmO5 zMu%&}C)8m2Gt+;{E!;7!$UlDbs`G;n0nfZ%`@hrZX?}Ch`gP~QW8J>By~nmqI68al zTh597g))x_nMbFGc{GK3`OeWuu4DB^h!JG2GmhkuVqPCb{0<6Dee&GF_0LW)?|kr$ z%^iRH7{0AWduq~CpT8?Ex9!@l`*P=}HIoh>d${zsdmA<{v%cy1p=V!tV$!-TpRZU^{`rxCsVly|chR2NRbQVubaM4KhTtX=5TnHDTRHN7 zaO_*fZPX2;NfZD|4U)%yWLf@8@zZ;M{dHra%|A&_pVBv zUQL|h!{Vy=8>Xjje{U|-r-EgY-6=nHK-YCCMlRgNavORmB=e9=rS&Q-NEr z7{!IqIQdePFGL6c3uFQfZJ_q*s20*|t3y+(ORST3qmjd<7yrEa0RF15cRYD28CvW4 zVh?g|%wjO+%1y4;IsvMlTCirUj(_Q*s%X-*nlG!MMR%EMDm&vZKC_;1nJ@G=XG`A=Y}&6sGVOJ1 { - router.back() - }) - } - .width('100%') - .height('100%') - } -} \ No newline at end of file diff --git a/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/ets/ServiceAbility/service.ts b/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/ets/ServiceAbility/service.ts deleted file mode 100644 index 519bd96b3..000000000 --- a/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/ets/ServiceAbility/service.ts +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Copyright (C) 2022 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import rpc from "@ohos.rpc"; -import particleAbility from '@ohos.ability.particleAbility' -import commonEvent from '@ohos.commonEvent' -var server_bundleName = "com.amsst.stserviceabilityserver"; -var server_abilityName = "com.amsst.stserviceabilityserver.ServiceAbility"; -var mConnIdJs; -class StubTest extends rpc.RemoteObject { - constructor(des) { - console.info('ACTS_SerivceAbilityServerSecond ====< des = ' + des); - if (typeof des === 'string') { - console.info('ACTS_ super'); - super(des); - } else { - return null; - } - } - - onRemoteRequest(code, data, reply, option) { - if (code === 1) { - console.info("ACTS_SerivceAbilityServerSecond ====< onRemoteRequest code = 1"); - let token = data.readInterfaceToken(); - console.log('ACTS_SerivceAbilityServerSecond ====< onRemoteRequest token:' + token); - let num = data.readInt(); - console.log('ACTS_SerivceAbilityServerSecond ====< onRemoteRequest num:' + num); - this.method(); - num = num + 777; - reply.writeInt(num); - } else { - console.info("ACTS_SerivceAbilityServerSecond ====< onRemoteRequest code not 1"); - } - return true; - } - method() { - console.log('ACTS_SerivceAbilityServerSecond ====< method called.') - } -} - -function sleep(ms) { - return new Promise(resolve => setTimeout(resolve, ms)); -} -export default { - onStart(want) { - console.debug('ACTS_SerivceAbilityServerSecond ====>onStart=' - + want + " , JSON." + JSON.stringify(want)); - commonEvent.publish("ACTS_SerivceAbilityServerSecond_onStart", (err) => { }); - }, - onStop() { - console.debug('ACTS_SerivceAbilityServerSecond ==== { }); - }, - onCommand(want, restart, startId) { - console.debug('ACTS_SerivceAbilityServerSecond ====>onCommand=' - + "JSON(want)=" + JSON.stringify(want) - + " ,restart=" + restart + " ,startId=" + startId); - commonEvent.publish("ACTS_SerivceAbilityServerSecond_onCommand" + "_" + want.action, (err) => { - console.debug("ACTS_SerivceAbilityServerSecond_onCommand" + "_" + want.action + - "err: " + JSON.stringify(err)) - }); - sleep(500) - }, - onConnect(want) { - console.info('ACTS_SerivceAbilityServerSecond ====< onConnect'); - try { - console.debug('ACTS_SerivceAbilityServerSecond ====>onConnect=' - + want + " , JSON." + JSON.stringify(want)); - function onConnectCallback(element, remote) { - console.debug('ACTS_SerivceAbilityServerSecond_onConnectCallback ====> want.action=' - + JSON.stringify(want.action) + " , " + want.action); - console.debug('ACTS_SerivceAbilityServerSecond_onConnectCallback ====> element=' - + JSON.stringify(element) + " , " + element); - console.debug('ACTS_SerivceAbilityServerSecond_onConnectCallback ====> remote=' - + JSON.stringify(remote) + " , " + remote); - if (want.action == 'ServiceConnectService_1500' || want.action == 'ServiceConnectService_1600') { - commonEvent.publish("ACTS_SerivceAbilityServerSecond_onConnect" + "_" + want.action, (err) => { - console.debug("publish = ACTS_SerivceAbilityServerSecond_onConnect" + "_" + want.action); - }); - } - } - - function onDisconnectCallback(element) { - console.debug('ACTS_SerivceAbilityServerSecond_onDisconnectCallback ====> element=' - + JSON.stringify(element) + " , " + element); - } - - function onFailedCallback(code) { - console.debug('ACTS_SerivceAbilityServerSecond_onFailedCallback ====> code=' - + JSON.stringify(code) + " , " + code) - } - if (want.action == 'ServiceConnectService_1500') { - mConnIdJs = particleAbility.connectAbility( - { - bundleName: server_bundleName, - abilityName: server_abilityName, - action: "ServiceConnectService_1501", - }, - { - onConnect: onConnectCallback, - onDisconnect: onDisconnectCallback, - onFailed: onFailedCallback, - }, - ) - } else if (want.action == 'ServiceConnectService_1600') { - mConnIdJs = particleAbility.connectAbility( - { - bundleName: server_bundleName, - abilityName: server_abilityName, - action: "ServiceConnectService_1601", - }, - { - onConnect: onConnectCallback, - onDisconnect: onDisconnectCallback, - onFailed: onFailedCallback, - }, - ) - } else if (want.action == 'ServiceConnectService_1590') { - mConnIdJs = particleAbility.connectAbility( - { - bundleName: server_bundleName, - abilityName: server_abilityName, - action: "ServiceConnectService_1591", - }, - { - onConnect: onConnectCallback, - onDisconnect: onDisconnectCallback, - onFailed: onFailedCallback, - }, - ) - } else { - commonEvent.publish("ACTS_SerivceAbilityServerSecond_onConnect" + "_" + want.action, (err) => { }); - } - } catch (err) { - console.log("ACTS_SerivceAbilityServerSecond ====< error:" + err) - } - console.info('ACTS_SerivceAbilityServerSecond ====< onConnect end'); - return new StubTest("connect-test"); - }, - onDisconnect(want) { - console.debug('ACTS_SerivceAbilityServerSecond ====>onDisConnect=' - + want + " , JSON." + JSON.stringify(want)); - commonEvent.publish("ACTS_SerivceAbilityServerSecond_onDisConnect_" + want.action, (err) => { - if (err.code) { - console.debug('ACTS_SerivceAbilityServerSecond_onDisConnect publish err=====>' + err); - } else { - console.debug('ACTS_SerivceAbilityServerSecond_onDisConnect =====<' - + want.action); - if (want.action == 'ServiceConnectService_1500' || want.action == 'ServiceConnectService_1501' - || want.action == 'ServiceConnectService_1600' || want.action == 'ServiceConnectService_1601' - || want.action == 'ServiceConnectService_1590') { - particleAbility.disconnectAbility(mConnIdJs, (err) => { - console.debug("=ACTS_SerivceAbilityServerSecond_onDisConnect err====>" - + ("json err=") + JSON.stringify(err) + " , " + want.action); - }) - } - } - }); - }, - onReady() { - console.debug('ACTS_SerivceAbilityServerSecond ====onReconnect=' - + want + " , JSON." + JSON.stringify(want)); - }, - OnAbilityConnectDone(element, remoteObject, resultCode) { - console.debug('ACTS_SerivceAbilityServerSecond ====>OnAbilityConnectDone=' - + element + " , JSON." + JSON.stringify(element) - + remoteObject + " , JSON." + JSON.stringify(remoteObject) - + resultCode + " , JSON." + JSON.stringify(resultCode) - ); - commonEvent.publish("ACTS_SerivceAbilityServerSecond_OnAbilityConnectDone", (err) => { }); - }, -}; diff --git a/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/resources/base/element/string.json b/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/resources/base/element/string.json deleted file mode 100644 index 745bfaffc..000000000 --- a/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/resources/base/element/string.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "string": [ - { - "name": "entry_MainAbility", - "value": "ServiceExtAbility" - }, - { - "name": "description_mainability", - "value": "eTS_Empty Ability" - }, - { - "name": "description_serviceability", - "value": "hap sample empty service" - }, - { - "name": "description_dataability", - "value": "hap sample empty provider" - }, - { - "name": "description_mainability2", - "value": "eTS_Empty Ability" - }, - { - "name": "entry_MainAbility2", - "value": "entry_MainAbility2" - }, - { - "name": "description_testdataability", - "value": "hap sample empty provider" - }, - { - "name": "permreason_dataability", - "value": "request dataability premission" - } - ] -} \ No newline at end of file diff --git a/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/resources/base/media/icon.png b/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/resources/base/media/icon.png deleted file mode 100644 index ce307a8827bd75456441ceb57d530e4c8d45d36c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6790 zcmX|G1ymHk)?T_}Vd;>R?p|tHQo6fg38|$UVM!6BLrPFWk?s;$LOP{GmJpBl$qoSA!PUg~PA65-S00{{S`XKG6NkG0RgjEntPrmV+?0|00mu7;+5 zrdpa{2QLqPJ4Y{j7=Mrl{BaxrkdY69+c~(w{Fv-v&aR%aEI&JYSeRTLWm!zbv;?)_ ziZB;fwGbbeL5Q}YLx`J$lp~A09KK8t_z}PZ=4ZzgdeKtgoc+o5EvN9A1K1_<>M?MBqb#!ASf&# zEX?<)!RH(7>1P+j=jqG(58}TVN-$psA6K}atCuI!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