Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
39bae0d7
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
39bae0d7
编写于
4月 13, 2023
作者:
O
openharmony_ci
提交者:
Gitee
4月 13, 2023
浏览文件
操作
浏览文件
下载
差异文件
!8343 【3.2挑单 元能力】ServiceClientTest测试套适配关联启动
Merge pull request !8343 from HuangXW/cherry-pick-1680531888
上级
a25b36ec
d024862b
变更
27
显示空白变更内容
内联
并排
Showing
27 changed file
with
30 addition
and
662 deletion
+30
-662
ability/ability_runtime/actsserviceabilityclienttest/BUILD.gn
...ity/ability_runtime/actsserviceabilityclienttest/BUILD.gn
+1
-5
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityclienttest/Test.json
...eabilityclienttest/actsserviceabilityclienttest/Test.json
+1
-3
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityclienttest/src/main/config.json
...enttest/actsserviceabilityclienttest/src/main/config.json
+18
-0
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityclienttest/src/main/js/ServiceAbility1/service.js
...eabilityclienttest/src/main/js/ServiceAbility1/service.js
+2
-2
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityclienttest/src/main/js/ServiceAbility2/service.js
...eabilityclienttest/src/main/js/ServiceAbility2/service.js
+2
-2
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityclienttest/src/main/js/test/StServiceAbilityClient.test.js
...lienttest/src/main/js/test/StServiceAbilityClient.test.js
+2
-2
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityclienttest/src/main/resources/base/element/string.json
...ityclienttest/src/main/resources/base/element/string.json
+4
-0
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/BUILD.gn
...bilityclienttest/actsserviceabilityserverrelyhap/BUILD.gn
+0
-40
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/config.json
...ctsserviceabilityserverrelyhap/entry/src/main/config.json
+0
-87
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/AbilityStage.ts
...ceabilityserverrelyhap/entry/src/main/ets/AbilityStage.ts
+0
-21
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/MainAbility/MainAbility.ts
...rverrelyhap/entry/src/main/ets/MainAbility/MainAbility.ts
+0
-44
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/MainAbility/app.ets
...ilityserverrelyhap/entry/src/main/ets/MainAbility/app.ets
+0
-22
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/MainAbility/pages/index.ets
...verrelyhap/entry/src/main/ets/MainAbility/pages/index.ets
+0
-38
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/MainAbility/pages/second.ets
...errelyhap/entry/src/main/ets/MainAbility/pages/second.ets
+0
-43
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/resources/base/element/string.json
...relyhap/entry/src/main/resources/base/element/string.json
+0
-36
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/resources/base/media/icon.png
...erverrelyhap/entry/src/main/resources/base/media/icon.png
+0
-0
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/signature/openharmony_sx.p7b
...sserviceabilityserverrelyhap/signature/openharmony_sx.p7b
+0
-0
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/BUILD.gn
...clienttest/actsserviceabilityserversecondrelyhap/BUILD.gn
+0
-40
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/config.json
...viceabilityserversecondrelyhap/entry/src/main/config.json
+0
-87
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/ets/AbilityStage.ts
...ityserversecondrelyhap/entry/src/main/ets/AbilityStage.ts
+0
-21
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/ets/MainAbility/MainAbility.ts
...condrelyhap/entry/src/main/ets/MainAbility/MainAbility.ts
+0
-30
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/ets/MainAbility/app.ets
...erversecondrelyhap/entry/src/main/ets/MainAbility/app.ets
+0
-22
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/ets/MainAbility/pages/index.ets
...ondrelyhap/entry/src/main/ets/MainAbility/pages/index.ets
+0
-38
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/ets/MainAbility/pages/second.ets
...ndrelyhap/entry/src/main/ets/MainAbility/pages/second.ets
+0
-43
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/resources/base/element/string.json
...relyhap/entry/src/main/resources/base/element/string.json
+0
-36
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/resources/base/media/icon.png
...econdrelyhap/entry/src/main/resources/base/media/icon.png
+0
-0
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/signature/openharmony_sx.p7b
...ceabilityserversecondrelyhap/signature/openharmony_sx.p7b
+0
-0
未找到文件。
ability/ability_runtime/actsserviceabilityclienttest/BUILD.gn
浏览文件 @
39bae0d7
...
...
@@ -16,10 +16,6 @@ import("//test/xts/tools/build/suite.gni")
group("serviceability") {
testonly = true
if (is_standard_system) {
deps = [
"actsserviceabilityclienttest:ActsServiceAbilityClientTest",
"actsserviceabilityserverrelyhap:ActsServiceAbilityServerRelyHap",
"actsserviceabilityserversecondrelyhap:ActsServiceAbilityServerSecondRelyHap",
]
deps = [ "actsserviceabilityclienttest:ActsServiceAbilityClientTest" ]
}
}
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityclienttest/Test.json
浏览文件 @
39bae0d7
...
...
@@ -11,9 +11,7 @@
"kits"
:
[
{
"test-file-name"
:
[
"ActsServiceAbilityClientTest.hap"
,
"ActsServiceAbilityServerRelyHap.hap"
,
"ActsServiceAbilityServerSecondRelyHap.hap"
"ActsServiceAbilityClientTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
...
...
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityclienttest/src/main/config.json
浏览文件 @
39bae0d7
...
...
@@ -63,6 +63,24 @@
"type"
:
"page"
,
"visible"
:
true
,
"launchType"
:
"standard"
},
{
"srcPath"
:
"ServiceAbility1"
,
"name"
:
".ServiceAbility1"
,
"icon"
:
"$media:icon"
,
"srcLanguage"
:
"js"
,
"description"
:
"$string:description_serviceability"
,
"visible"
:
true
,
"type"
:
"service"
},
{
"srcPath"
:
"ServiceAbility2"
,
"name"
:
".ServiceAbility2"
,
"icon"
:
"$media:icon"
,
"srcLanguage"
:
"js"
,
"description"
:
"$string:description_serviceability"
,
"visible"
:
true
,
"type"
:
"service"
}
],
"reqPermissions"
:
[
...
...
ability/ability_runtime/actsserviceabilityclienttest/actsserviceability
serverrelyhap/entry/src/main/ets/ServiceAbility/service.t
s
→
ability/ability_runtime/actsserviceabilityclienttest/actsserviceability
clienttest/src/main/js/ServiceAbility1/service.j
s
100644 → 100755
浏览文件 @
39bae0d7
...
...
@@ -15,8 +15,8 @@
import
rpc
from
"
@ohos.rpc
"
;
import
particleAbility
from
'
@ohos.ability.particleAbility
'
import
commonEvent
from
'
@ohos.commonEvent
'
var
serversecond_bundleName
=
"
com.amsst.stserviceability
serversecond
"
;
var
serversecond_abilityName
=
"
com.amsst.stserviceability
serversecond.ServiceAbility
"
;
var
serversecond_bundleName
=
"
com.amsst.stserviceability
client
"
;
var
serversecond_abilityName
=
"
com.amsst.stserviceability
client.ServiceAbility2
"
;
var
mConnIdJs
;
class
StubTest
extends
rpc
.
RemoteObject
{
constructor
(
des
)
{
...
...
ability/ability_runtime/actsserviceabilityclienttest/actsserviceability
serversecondrelyhap/entry/src/main/ets/ServiceAbility/service.t
s
→
ability/ability_runtime/actsserviceabilityclienttest/actsserviceability
clienttest/src/main/js/ServiceAbility2/service.j
s
100644 → 100755
浏览文件 @
39bae0d7
...
...
@@ -15,8 +15,8 @@
import
rpc
from
"
@ohos.rpc
"
;
import
particleAbility
from
'
@ohos.ability.particleAbility
'
import
commonEvent
from
'
@ohos.commonEvent
'
var
server_bundleName
=
"
com.amsst.stserviceability
server
"
;
var
server_abilityName
=
"
com.amsst.stserviceability
server.ServiceAbility
"
;
var
server_bundleName
=
"
com.amsst.stserviceability
client
"
;
var
server_abilityName
=
"
com.amsst.stserviceability
client.ServiceAbility1
"
;
var
mConnIdJs
;
class
StubTest
extends
rpc
.
RemoteObject
{
constructor
(
des
)
{
...
...
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityclienttest/src/main/js/test/StServiceAbilityClient.test.js
浏览文件 @
39bae0d7
...
...
@@ -19,8 +19,8 @@ import rpc from "@ohos.rpc";
import
{
describe
,
afterEach
,
it
,
expect
}
from
'
@ohos/hypium
'
export
default
function
ActsStServiceAbilityTest
()
{
describe
(
'
ActsStServiceAbilityTest
'
,
function
()
{
let
bundleName
=
"
com.amsst.stserviceability
server
"
;
let
abilityName
=
"
com.amsst.stserviceability
server.ServiceAbility
"
;
let
bundleName
=
"
com.amsst.stserviceability
client
"
;
let
abilityName
=
"
com.amsst.stserviceability
client.ServiceAbility1
"
;
let
subscriber0100
;
let
CommonEventSubscribeInfo0100
=
{
...
...
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityclienttest/src/main/resources/base/element/string.json
浏览文件 @
39bae0d7
...
...
@@ -23,6 +23,10 @@
{
"name"
:
"TestAbility_label"
,
"value"
:
"label"
},
{
"name"
:
"description_serviceability"
,
"value"
:
"hap sample empty service"
}
]
}
\ No newline at end of file
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/BUILD.gn
已删除
100644 → 0
浏览文件 @
a25b36ec
# 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"
}
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/config.json
已删除
100644 → 0
浏览文件 @
a25b36ec
{
"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"
}
]
}
}
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/AbilityStage.ts
已删除
100644 → 0
浏览文件 @
a25b36ec
/*
* 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
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/MainAbility/MainAbility.ts
已删除
100644 → 0
浏览文件 @
a25b36ec
/*
* 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
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/MainAbility/app.ets
已删除
100644 → 0
浏览文件 @
a25b36ec
/*
* 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
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/MainAbility/pages/index.ets
已删除
100644 → 0
浏览文件 @
a25b36ec
/*
* 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
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/ets/MainAbility/pages/second.ets
已删除
100644 → 0
浏览文件 @
a25b36ec
/*
* 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
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/resources/base/element/string.json
已删除
100644 → 0
浏览文件 @
a25b36ec
{
"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
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/entry/src/main/resources/base/media/icon.png
已删除
100644 → 0
浏览文件 @
a25b36ec
6.6 KB
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserverrelyhap/signature/openharmony_sx.p7b
已删除
100644 → 0
浏览文件 @
a25b36ec
文件已删除
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/BUILD.gn
已删除
100644 → 0
浏览文件 @
a25b36ec
# 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("ActsServiceAbilityServerSecondRelyHap") {
hap_name = "ActsServiceAbilityServerSecondRelyHap"
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"
}
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/config.json
已删除
100644 → 0
浏览文件 @
a25b36ec
{
"app"
:
{
"bundleName"
:
"com.amsst.stserviceabilityserversecond"
,
"vendor"
:
"test"
,
"version"
:
{
"code"
:
1000110
,
"name"
:
"1.1.1"
},
"apiVersion"
:
{
"compatible"
:
8
,
"target"
:
9
}
},
"deviceConfig"
:
{},
"module"
:
{
"package"
:
"com.amsst.stserviceabilityserversecond"
,
"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"
}
]
}
}
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/ets/AbilityStage.ts
已删除
100644 → 0
浏览文件 @
a25b36ec
/*
* 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
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/ets/MainAbility/MainAbility.ts
已删除
100644 → 0
浏览文件 @
a25b36ec
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
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/ets/MainAbility/app.ets
已删除
100644 → 0
浏览文件 @
a25b36ec
/*
* 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
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/ets/MainAbility/pages/index.ets
已删除
100644 → 0
浏览文件 @
a25b36ec
/*
* 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
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/ets/MainAbility/pages/second.ets
已删除
100644 → 0
浏览文件 @
a25b36ec
/*
* 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
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/resources/base/element/string.json
已删除
100644 → 0
浏览文件 @
a25b36ec
{
"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
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/entry/src/main/resources/base/media/icon.png
已删除
100644 → 0
浏览文件 @
a25b36ec
6.6 KB
ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityserversecondrelyhap/signature/openharmony_sx.p7b
已删除
100644 → 0
浏览文件 @
a25b36ec
文件已删除
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录