提交 d57299c8 编写于 作者: Z zhuhongtao666 提交者: zhuhongtao66

Merge branch 'master' of gitee.com:openharmony/xts_acts into listfilexts

Signed-off-by: Nzhuhongtao666 <zhuhongtao12@huawei.com>
......@@ -57,6 +57,7 @@ Note:If the text contains special characters, please escape them according to th
<policylist>
<policy name="projectPolicy" desc="">
<policyitem type="copyright" name="Copyright (c) 2022 Shenzhen Kaihong Digital" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/>
<policyitem type="copyright" name="Copyright (c) 2023-2030 iSoftStone Information Technology (Group) Co.,Ltd." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/>
</policy>
</policylist>
<filefilterlist>
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......@@ -33,6 +39,12 @@
}
]
}
],
"requestPermissions": [
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
]
}
}
\ No newline at end of file
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......@@ -33,6 +39,12 @@
}
]
}
],
"requestPermissions": [
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
]
}
}
\ No newline at end of file
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......@@ -33,6 +39,12 @@
}
]
}
],
"requestPermissions": [
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
]
}
}
\ No newline at end of file
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......@@ -59,6 +65,12 @@
"visible": true,
"launchType": "singleton"
}
],
"requestPermissions": [
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
]
}
}
\ No newline at end of file
{
"app": {
"bundleName": "com.example.amsabilitymultiinstanceappa",
"bundleName": "com.acts.abilitymultiinstancea",
"vendor": "huawei",
"versionCode": 1000000,
"versionName": "1.0.0",
......
......@@ -22,8 +22,8 @@ function publishCallBack() {
}
async function startAbilityProcess(abilityContext, parameters) {
let bundleName = "com.example.amsabilitymultiinstanceappa";
let abilityName = "com.example.amsabilitymultiinstanceappa.MainAbility";
let bundleName = "com.acts.abilitymultiinstancea";
let abilityName = "com.acts.abilitymultiinstancea.MainAbility";
let idx = parameters.nextStep;
switch (parameters.step[idx]) {
......@@ -34,34 +34,34 @@ async function startAbilityProcess(abilityContext, parameters) {
parameters.startId = 2;
break;
case "StartB":
bundleName = "com.example.amsabilitymultiinstanceappb";
abilityName = "com.example.amsabilitymultiinstanceappb.MainAbility";
bundleName = "com.acts.abilitymultiinstanceb";
abilityName = "com.acts.abilitymultiinstanceb.MainAbility";
break;
case "StartC":
bundleName = "com.example.amsabilitymultiinstanceappc";
abilityName = "com.example.amsabilitymultiinstanceappc.MainAbility";
bundleName = "com.acts.abilitymultiinstancec";
abilityName = "com.acts.abilitymultiinstancec.MainAbility";
break;
case "StartDMain1":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 1;
break;
case "StartDMain2":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 2;
break;
case "StartDSec":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.SecondAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.SecondAbility";
break;
case "StartDThd":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.ThirdAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.ThirdAbility";
break;
case "StartE":
bundleName = "com.example.amsabilitymultiinstanceappe";
abilityName = "com.example.amsabilitymultiinstanceappe.MainAbility";
bundleName = "com.acts.abilitymultiinstancee";
abilityName = "com.acts.abilitymultiinstancee.MainAbility";
break;
default:
......
{
"module": {
"name": "com.example.amsabilitymultiinstanceappa",
"name": "com.acts.abilitymultiinstancea",
"type": "entry",
"srcEntrance": "./ets/Application/AbilityStage.ts",
"description": "$string:phone_entry_dsc",
......@@ -13,9 +13,15 @@
"installationFree": false,
"uiSyntax": "ets",
"pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "com.example.amsabilitymultiinstanceappa.MainAbility",
"name": "com.acts.abilitymultiinstancea.MainAbility",
"srcEntrance": "./ets/MainAbility/MainAbility.ts",
"description": "$string:phone_entry_main",
"icon": "$media:icon",
......
{
"app": {
"bundleName": "com.example.amsabilitymultiinstanceappb",
"bundleName": "com.acts.abilitymultiinstanceb",
"vendor": "huawei",
"versionCode": 1000000,
"versionName": "1.0.0",
......
......@@ -22,8 +22,8 @@ function publishCallBack() {
}
async function startAbilityProcess(abilityContext, parameters) {
let bundleName = "com.example.amsabilitymultiinstanceappa";
let abilityName = "com.example.amsabilitymultiinstanceappa.MainAbility";
let bundleName = "com.acts.abilitymultiinstancea";
let abilityName = "com.acts.abilitymultiinstancea.MainAbility";
let idx = parameters.nextStep;
switch (parameters.step[idx]) {
......@@ -34,34 +34,34 @@ async function startAbilityProcess(abilityContext, parameters) {
parameters.startId = 2;
break;
case "StartB":
bundleName = "com.example.amsabilitymultiinstanceappb";
abilityName = "com.example.amsabilitymultiinstanceappb.MainAbility";
bundleName = "com.acts.abilitymultiinstanceb";
abilityName = "com.acts.abilitymultiinstanceb.MainAbility";
break;
case "StartC":
bundleName = "com.example.amsabilitymultiinstanceappc";
abilityName = "com.example.amsabilitymultiinstanceappc.MainAbility";
bundleName = "com.acts.abilitymultiinstancec";
abilityName = "com.acts.abilitymultiinstancec.MainAbility";
break;
case "StartDMain1":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 1;
break;
case "StartDMain2":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 2;
break;
case "StartDSec":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.SecondAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.SecondAbility";
break;
case "StartDThd":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.ThirdAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.ThirdAbility";
break;
case "StartE":
bundleName = "com.example.amsabilitymultiinstanceappe";
abilityName = "com.example.amsabilitymultiinstanceappe.MainAbility";
bundleName = "com.acts.abilitymultiinstancee";
abilityName = "com.acts.abilitymultiinstancee.MainAbility";
break;
default:
......
{
"module": {
"name": "com.example.amsabilitymultiinstanceappb",
"name": "com.acts.abilitymultiinstanceb",
"type": "entry",
"srcEntrance": "./ets/Application/AbilityStage.ts",
"description": "$string:phone_entry_dsc",
......@@ -13,9 +13,15 @@
"installationFree": false,
"uiSyntax": "ets",
"pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "com.example.amsabilitymultiinstanceappb.MainAbility",
"name": "com.acts.abilitymultiinstanceb.MainAbility",
"srcEntrance": "./ets/MainAbility/MainAbility.ts",
"description": "$string:phone_entry_main",
"icon": "$media:icon",
......
{
"app": {
"bundleName": "com.example.amsabilitymultiinstanceappc",
"bundleName": "com.acts.abilitymultiinstancec",
"vendor": "huawei",
"versionCode": 1000000,
"versionName": "1.0.0",
......
......@@ -41,8 +41,8 @@ async function onShowProcess() {
}
async function startAbilityProcess(abilityContext, parameters) {
let bundleName = "com.example.amsabilitymultiinstanceappa";
let abilityName = "com.example.amsabilitymultiinstanceappa.MainAbility";
let bundleName = "com.acts.abilitymultiinstancea";
let abilityName = "com.acts.abilitymultiinstancea.MainAbility";
let idx = parameters.nextStep;
switch (parameters.step[idx]) {
......@@ -53,34 +53,34 @@ async function startAbilityProcess(abilityContext, parameters) {
parameters.startId = 2;
break;
case "StartB":
bundleName = "com.example.amsabilitymultiinstanceappb";
abilityName = "com.example.amsabilitymultiinstanceappb.MainAbility";
bundleName = "com.acts.abilitymultiinstanceb";
abilityName = "com.acts.abilitymultiinstanceb.MainAbility";
break;
case "StartC":
bundleName = "com.example.amsabilitymultiinstanceappc";
abilityName = "com.example.amsabilitymultiinstanceappc.MainAbility";
bundleName = "com.acts.abilitymultiinstancec";
abilityName = "com.acts.abilitymultiinstancec.MainAbility";
break;
case "StartDMain1":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 1;
break;
case "StartDMain2":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 2;
break;
case "StartDSec":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.SecondAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.SecondAbility";
break;
case "StartDThd":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.ThirdAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.ThirdAbility";
break;
case "StartE":
bundleName = "com.example.amsabilitymultiinstanceappe";
abilityName = "com.example.amsabilitymultiinstanceappe.MainAbility";
bundleName = "com.acts.abilitymultiinstancee";
abilityName = "com.acts.abilitymultiinstancee.MainAbility";
break;
default:
......
{
"module": {
"name": "com.example.amsabilitymultiinstanceappc",
"name": "com.acts.abilitymultiinstancec",
"type": "entry",
"srcEntrance": "./ets/Application/AbilityStage.ts",
"description": "$string:phone_entry_dsc",
......@@ -13,9 +13,15 @@
"installationFree": false,
"uiSyntax": "ets",
"pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "com.example.amsabilitymultiinstanceappc.MainAbility",
"name": "com.acts.abilitymultiinstancec.MainAbility",
"srcEntrance": "./ets/MainAbility/MainAbility.ts",
"description": "$string:phone_entry_main",
"icon": "$media:icon",
......
{
"app": {
"bundleName": "com.example.amsabilitymultiinstanceappd",
"bundleName": "com.acts.abilitymultiinstanced",
"vendor": "huawei",
"versionCode": 1000000,
"versionName": "1.0.0",
......
......@@ -42,8 +42,8 @@ async function onShowProcess() {
}
async function startAbilityProcess(abilityContext, parameters) {
let bundleName = "com.example.amsabilitymultiinstanceappa";
let abilityName = "com.example.amsabilitymultiinstanceappa.MainAbility";
let bundleName = "com.acts.abilitymultiinstancea";
let abilityName = "com.acts.abilitymultiinstancea.MainAbility";
let idx = parameters.nextStep;
switch (parameters.step[idx]) {
......@@ -54,34 +54,34 @@ async function startAbilityProcess(abilityContext, parameters) {
parameters.startId = 2;
break;
case "StartB":
bundleName = "com.example.amsabilitymultiinstanceappb";
abilityName = "com.example.amsabilitymultiinstanceappb.MainAbility";
bundleName = "com.acts.abilitymultiinstanceb";
abilityName = "com.acts.abilitymultiinstanceb.MainAbility";
break;
case "StartC":
bundleName = "com.example.amsabilitymultiinstanceappc";
abilityName = "com.example.amsabilitymultiinstanceappc.MainAbility";
bundleName = "com.acts.abilitymultiinstancec";
abilityName = "com.acts.abilitymultiinstancec.MainAbility";
break;
case "StartDMain1":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 1;
break;
case "StartDMain2":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 2;
break;
case "StartDSec":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.SecondAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.SecondAbility";
break;
case "StartDThd":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.ThirdAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.ThirdAbility";
break;
case "StartE":
bundleName = "com.example.amsabilitymultiinstanceappe";
abilityName = "com.example.amsabilitymultiinstanceappe.MainAbility";
bundleName = "com.acts.abilitymultiinstancee";
abilityName = "com.acts.abilitymultiinstancee.MainAbility";
break;
default:
......
......@@ -42,8 +42,8 @@ async function onShowProcess() {
}
async function startAbilityProcess(abilityContext, parameters) {
let bundleName = "com.example.amsabilitymultiinstanceappa";
let abilityName = "com.example.amsabilitymultiinstanceappa.MainAbility";
let bundleName = "com.acts.abilitymultiinstancea";
let abilityName = "com.acts.abilitymultiinstancea.MainAbility";
let idx = parameters.nextStep;
switch (parameters.step[idx]) {
......@@ -54,34 +54,34 @@ async function startAbilityProcess(abilityContext, parameters) {
parameters.startId = 2;
break;
case "StartB":
bundleName = "com.example.amsabilitymultiinstanceappb";
abilityName = "com.example.amsabilitymultiinstanceappb.MainAbility";
bundleName = "com.acts.abilitymultiinstanceb";
abilityName = "com.acts.abilitymultiinstanceb.MainAbility";
break;
case "StartC":
bundleName = "com.example.amsabilitymultiinstanceappc";
abilityName = "com.example.amsabilitymultiinstanceappc.MainAbility";
bundleName = "com.acts.abilitymultiinstancec";
abilityName = "com.acts.abilitymultiinstancec.MainAbility";
break;
case "StartDMain1":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 1;
break;
case "StartDMain2":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 2;
break;
case "StartDSec":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.SecondAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.SecondAbility";
break;
case "StartDThd":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.ThirdAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.ThirdAbility";
break;
case "StartE":
bundleName = "com.example.amsabilitymultiinstanceappe";
abilityName = "com.example.amsabilitymultiinstanceappe.MainAbility";
bundleName = "com.acts.abilitymultiinstancee";
abilityName = "com.acts.abilitymultiinstancee.MainAbility";
break;
default:
......
......@@ -42,8 +42,8 @@ async function onShowProcess() {
}
async function startAbilityProcess(abilityContext, parameters) {
let bundleName = "com.example.amsabilitymultiinstanceappa";
let abilityName = "com.example.amsabilitymultiinstanceappa.MainAbility";
let bundleName = "com.acts.abilitymultiinstancea";
let abilityName = "com.acts.abilitymultiinstancea.MainAbility";
let idx = parameters.nextStep;
switch (parameters.step[idx]) {
......@@ -54,30 +54,30 @@ async function startAbilityProcess(abilityContext, parameters) {
parameters.startId = 2;
break;
case "StartB":
bundleName = "com.example.amsabilitymultiinstanceappb";
abilityName = "com.example.amsabilitymultiinstanceappb.MainAbility";
bundleName = "com.acts.abilitymultiinstanceb";
abilityName = "com.acts.abilitymultiinstanceb.MainAbility";
break;
case "StartC":
bundleName = "com.example.amsabilitymultiinstanceappc";
abilityName = "com.example.amsabilitymultiinstanceappc.MainAbility";
bundleName = "com.acts.abilitymultiinstancec";
abilityName = "com.acts.abilitymultiinstancec.MainAbility";
break;
case "StartDMain1":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 1;
break;
case "StartDMain2":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 2;
break;
case "StartDSec":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.SecondAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.SecondAbility";
break;
case "StartDThd":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.ThirdAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.ThirdAbility";
break;
default:
......
{
"module": {
"name": "com.example.amsabilitymultiinstanceappd",
"name": "com.acts.abilitymultiinstanced",
"type": "entry",
"srcEntrance": "./ets/Application/AbilityStage.ts",
"description": "$string:phone_entry_dsc",
......@@ -13,9 +13,15 @@
"installationFree": false,
"uiSyntax": "ets",
"pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "com.example.amsabilitymultiinstanceappd.MainAbility",
"name": "com.acts.abilitymultiinstanced.MainAbility",
"srcEntrance": "./ets/MainAbility/MainAbility.ts",
"description": "$string:phone_entry_main",
"icon": "$media:icon",
......@@ -35,7 +41,7 @@
]
},
{
"name": "com.example.amsabilitymultiinstanceappd.SecondAbility",
"name": "com.acts.abilitymultiinstanced.SecondAbility",
"srcEntrance": "./ets/SecondAbility/SecondAbility.ts",
"description": "$string:phone_entry_main",
"icon": "$media:icon",
......@@ -55,7 +61,7 @@
]
},
{
"name": "com.example.amsabilitymultiinstanceappd.ThirdAbility",
"name": "com.acts.abilitymultiinstanced.ThirdAbility",
"srcEntrance": "./ets/ThirdAbility/ThirdAbility.ts",
"description": "$string:phone_entry_main",
"icon": "$media:icon",
......
{
"app": {
"bundleName": "com.example.amsabilitymultiinstanceappe",
"bundleName": "com.acts.abilitymultiinstancee",
"vendor": "example",
"version": {
"code": 1,
......@@ -14,11 +14,11 @@
},
"deviceConfig": {
"default": {
"process": "com.example.amsabilitymultiinstanceappe"
"process": "com.acts.abilitymultiinstancee"
}
},
"module": {
"package": "com.example.amsabilitymultiinstanceappe",
"package": "com.acts.abilitymultiinstancee",
"name": ".MyApplication",
"deviceType": [
"default",
......@@ -41,7 +41,7 @@
]
}
],
"name": "com.example.amsabilitymultiinstanceappe.MainAbility",
"name": "com.acts.abilitymultiinstancee.MainAbility",
"visible": true,
"icon": "$media:icon",
"description": "$string:mainability_description",
......
......@@ -24,8 +24,8 @@ function publishCallBack() {
}
async function startAbilityProcess(parameters) {
let bundleName = "com.example.amsabilitymultiinstanceappa";
let abilityName = "com.example.amsabilitymultiinstanceappa.MainAbility";
let bundleName = "com.acts.abilitymultiinstancea";
let abilityName = "com.acts.abilitymultiinstancea.MainAbility";
let idx = parameters.nextStep;
switch (parameters.step[idx]) {
......@@ -36,34 +36,34 @@ async function startAbilityProcess(parameters) {
parameters.startId = 2;
break;
case "StartB":
bundleName = "com.example.amsabilitymultiinstanceappb";
abilityName = "com.example.amsabilitymultiinstanceappb.MainAbility";
bundleName = "com.acts.abilitymultiinstanceb";
abilityName = "com.acts.abilitymultiinstanceb.MainAbility";
break;
case "StartC":
bundleName = "com.example.amsabilitymultiinstanceappc";
abilityName = "com.example.amsabilitymultiinstanceappc.MainAbility";
bundleName = "com.acts.abilitymultiinstancec";
abilityName = "com.acts.abilitymultiinstancec.MainAbility";
break;
case "StartDMain1":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 1;
break;
case "StartDMain2":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 2;
break;
case "StartDSec":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.SecondAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.SecondAbility";
break;
case "StartDThd":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.ThirdAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.ThirdAbility";
break;
case "StartE":
bundleName = "com.example.amsabilitymultiinstanceappe";
abilityName = "com.example.amsabilitymultiinstanceappe.MainAbility";
bundleName = "com.acts.abilitymultiinstancee";
abilityName = "com.acts.abilitymultiinstancee.MainAbility";
break;
default:
......
......@@ -24,8 +24,8 @@ const ONACCEPTWANT_KEY_UNDEFINED_ID = -2;
const UNSUBSCRIBE_TIMEOUT = 5000;
async function startAbilityProcess(abilityContext, parameters) {
let bundleName = "com.example.amsabilitymultiinstanceappa";
let abilityName = "com.example.amsabilitymultiinstanceappa.MainAbility";
let bundleName = "com.acts.abilitymultiinstancea";
let abilityName = "com.acts.abilitymultiinstancea.MainAbility";
let idx = parameters.nextStep;
switch (parameters.step[idx]) {
......@@ -45,34 +45,34 @@ async function startAbilityProcess(abilityContext, parameters) {
parameters.startId = ONACCEPTWANT_KEY_UNDEFINED_ID;
break;
case "StartB":
bundleName = "com.example.amsabilitymultiinstanceappb";
abilityName = "com.example.amsabilitymultiinstanceappb.MainAbility";
bundleName = "com.acts.abilitymultiinstanceb";
abilityName = "com.acts.abilitymultiinstanceb.MainAbility";
break;
case "StartC":
bundleName = "com.example.amsabilitymultiinstanceappc";
abilityName = "com.example.amsabilitymultiinstanceappc.MainAbility";
bundleName = "com.acts.abilitymultiinstancec";
abilityName = "com.acts.abilitymultiinstancec.MainAbility";
break;
case "StartDMain1":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 1;
break;
case "StartDMain2":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 2;
break;
case "StartDSec":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.SecondAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.SecondAbility";
break;
case "StartDThd":
bundleName = "com.example.amsabilitymultiinstanceappd";
abilityName = "com.example.amsabilitymultiinstanceappd.ThirdAbility";
bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.acts.abilitymultiinstanced.ThirdAbility";
break;
case "StartE":
bundleName = "com.example.amsabilitymultiinstanceappe";
abilityName = "com.example.amsabilitymultiinstanceappe.MainAbility";
bundleName = "com.acts.abilitymultiinstancee";
abilityName = "com.acts.abilitymultiinstancee.MainAbility";
break;
default:
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"uiSyntax": "ets",
"pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "com.example.abilitymultiinstance.MainAbility",
......@@ -34,6 +40,12 @@
}
]
}
],
"requestPermissions": [
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
]
}
}
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility2",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility3",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility4",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbilityf5",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility6",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility7",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "TestAbility",
......
......@@ -12,6 +12,12 @@
"deliveryWithInstall": true,
"installationFree": false,
"pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"uiSyntax": "ets",
"abilities": [
{
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"uiSyntax": "ets",
"pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "com.example.systemappcalleea.MainAbility",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"uiSyntax": "ets",
"pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "com.example.systemappcallera.MainAbility",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"uiSyntax": "ets",
"pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "com.example.systemappcallerb.MainAbility",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"uiSyntax": "ets",
"pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "com.example.systemappcallerc.MainAbility",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"uiSyntax": "ets",
"pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "com.example.systemcalltest.MainAbility",
......
......@@ -14,6 +14,12 @@
"installationFree": false,
"uiSyntax": "ets",
"pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "com.example.second.MainAbility",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"uiSyntax": "ets",
"pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "com.example.thirdappa.MainAbility",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"uiSyntax": "ets",
"pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "com.example.thirdcalltest.MainAbility",
......
......@@ -7,7 +7,7 @@
"name": "1.0"
},
"apiVersion": {
"compatible": 9,
"compatible": 8,
"target": 5,
"releaseType": "Beta1"
}
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......
......@@ -7,7 +7,7 @@
"name": "1.1.1"
},
"apiVersion": {
"compatible": 9,
"compatible": 8,
"target": 9
}
},
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......@@ -53,6 +59,12 @@
"icon": "$media:icon",
"label": "$string:MainAbility4_label"
}
],
"requestPermissions": [
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
]
}
}
\ No newline at end of file
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......
......@@ -7,7 +7,7 @@
"name": "1.1.1"
},
"apiVersion": {
"compatible": 9,
"compatible": 8,
"target": 9
}
},
......
......@@ -7,7 +7,7 @@
"name": "1.1.1"
},
"apiVersion": {
"compatible": 9,
"compatible": 8,
"target": 9
}
},
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......@@ -35,6 +41,12 @@
}
]
}
],
"requestPermissions": [
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
]
}
}
\ No newline at end of file
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......@@ -35,6 +41,12 @@
}
]
}
],
"requestPermissions": [
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
]
}
}
\ No newline at end of file
......@@ -7,7 +7,7 @@
"name": "1.0.0"
},
"apiVersion": {
"compatible": 9,
"compatible": 8,
"target": 9
}
},
......
......@@ -7,7 +7,7 @@
"name": "1.0.0"
},
"apiVersion": {
"compatible": 9,
"compatible": 8,
"target": 9
}
},
......
......@@ -7,7 +7,7 @@
"name": "1.0.0"
},
"apiVersion": {
"compatible": 9,
"compatible": 8,
"target": 9
}
},
......
......@@ -7,7 +7,7 @@
"name": "1.0.0"
},
"apiVersion": {
"compatible": 9,
"compatible": 8,
"target": 9
}
},
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"skills": [
......
......@@ -905,7 +905,8 @@ export default function formHostTest() {
let TAG = 'System_API_Test_Form_Host_3500';
try {
let formId = "1337079774";
formHost.shareForm(formId, null, (error, data) => {
let deviceId = "12400633174999288";
formHost.shareForm(formId, deviceId, (error, data) => {
if (error) {
console.log(TAG + ' formHost shareForm, error:' + JSON.stringify(error));
expect(error.code).assertEqual(ERROR_CODE);
......@@ -929,8 +930,9 @@ export default function formHostTest() {
*/
it('System_API_Test_Form_Host_3600',0, async function (done) {
let TAG = 'System_API_Test_Form_Host_3600';
let formId = "12400633174999288";
formHost.shareForm(formId, null)
let formId = "1337079774";
let deviceId = "12400633174999288";
formHost.shareForm(formId, deviceId)
.then(() => {
expect().assertFail();
done();
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "MainAbility",
......
......@@ -7,7 +7,7 @@
"name": "1.1.1"
},
"apiVersion": {
"compatible": 9,
"compatible": 8,
"target": 9
}
},
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"uiSyntax": "ets",
"pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "com.acts.killprocesshap.MainAbility",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"uiSyntax": "ets",
"pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "com.acts.killprocessthirdhap.MainAbility",
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"uiSyntax": "ets",
"pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "com.acts.killprocessthirdhap2.MainAbility",
......
......@@ -388,111 +388,6 @@ export default function abilityTest() {
})
/*
* @tc.number : ACTS_startAbility_3000
* @tc.name : start new ability
* @tc.desc : Start an ability with the parameter startability with options succeeded.(promise)
*/
it('ACTS_startAbility_3000', 0, async function (done) {
let TAG = 'ACTS_startAbility_3000'
let Subscriber
var flag = true
var startresult = false
function SubscribeCallBack (err, data) {
expect(data.event == "ACTS_InterfaceMultiUsers_0100_Start_CommonEvent" || data.event == "ACTS_TerminateSelf_CommonEvent").assertTrue();
console.debug(TAG + "====>0100 Subscribe CallBack data:====>" + JSON.stringify(data));
if(data.event == "ACTS_InterfaceMultiUsers_0100_Start_CommonEvent"){
startresult = true
}
commonEvent.unsubscribe(Subscriber, UnSubscribeCallback);
}
commonEvent.createSubscriber(subscriberInfo_MainAbility).then(async (data) => {
console.debug(TAG + "====>Create Subscriber====>");
data.getSubscribeInfo().then(async (SubscribeInfo)=>{
console.debug(TAG + "====>SubscribeInfo is====>" + JSON.stringify(SubscribeInfo));
Subscriber = data;
commonEvent.subscribe(Subscriber, SubscribeCallBack);
console.debug(TAG + "====>start startAbility====>");
await globalThis.abilityContext.startAbility(
{
bundleName: 'com.example.userservicesystemapi7',
abilityName: 'com.example.userservicesystemapi7.ServiceAbility'
}).then(()=>{
console.debug(TAG + "====>startAbility end====>");
})
})
})
function UnSubscribeCallback() {
console.debug(TAG + "====>UnSubscribeCallback====>");
flag = false
expect(startresult).assertEqual(true);
done();
}
function timeout() {
if(flag == true) {
expect().assertFail();
console.debug(TAG + 'ACTS_startAbility_3000 - timeout');
commonEvent.unsubscribe(Subscriber, UnSubscribeCallback)
}
}
setTimeout(timeout, START_ABILITY_TIMEOUT);
})
/*
* @tc.number : ACTS_startAbility_3100
* @tc.name : start new ability
* @tc.desc : Start an ability with the parameter startability with options succeeded.(promise)
*/
it('ACTS_startAbility_3100', 0, async function (done) {
let TAG = 'ACTS_startAbility_3100'
let Subscriber
var flag = true
var startresult = false
function SubscribeCallBack (err, data) {
expect(data.event == "ACTS_InterfaceMultiUsers_0100_Start_CommonEvent" || data.event == "ACTS_TerminateSelf_CommonEvent").assertTrue();
console.debug(TAG + "====>0100 Subscribe CallBack data:====>" + JSON.stringify(data));
if(data.event == "ACTS_InterfaceMultiUsers_0100_Start_CommonEvent"){
startresult = true
}
commonEvent.unsubscribe(Subscriber, UnSubscribeCallback);
}
commonEvent.createSubscriber(subscriberInfo_MainAbility).then(async (data) => {
console.debug(TAG + "====>Create Subscriber====>");
data.getSubscribeInfo().then(async (SubscribeInfo)=>{
console.debug(TAG + "====>SubscribeInfo is====>" + JSON.stringify(SubscribeInfo));
Subscriber = data;
commonEvent.subscribe(Subscriber, SubscribeCallBack);
console.debug(TAG + "====>start startAbility====>");
await globalThis.abilityContext.startAbility(
{
bundleName: 'com.example.userservicesystemapi7',
abilityName: 'com.example.userservicesystemapi7.ServiceAbility'
},()=>{
console.debug(TAG + "====>startAbility end====>");
})
})
})
function UnSubscribeCallback() {
console.debug(TAG + "====>UnSubscribeCallback====>");
flag = false
expect(startresult).assertEqual(true);
done();
}
function timeout() {
if(flag == true) {
expect().assertFail();
console.debug(TAG + 'ACTS_startAbility_3100 - timeout');
commonEvent.unsubscribe(Subscriber, UnSubscribeCallback)
}
}
setTimeout(timeout, START_ABILITY_TIMEOUT);
})
/*
* @tc.number : ACTS_StartAbilityForResult_0100
* @tc.name : start new ability for result
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"uiSyntax": "ets",
"pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "com.acts.actsinterfacemultiuserstest.MainAbility",
......@@ -80,6 +86,10 @@
{
"name": "ohos.permission.GET_RUNNING_INFO",
"reason": "need use ohos.permission.GET_RUNNING_INFO"
},
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
]
}
......
......@@ -21,7 +21,7 @@ ohos_js_hap_suite("ActsAmsUsersThirdTest") {
":actsamsusersthirdtest_resources",
]
ets2abc = true
certificate_profile = "signature/openharmony_sx_thirdparty.p7b"
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsUsersThirdTest"
subsystem_name = "ability"
part_name = "ability_runtime"
......
......@@ -13,6 +13,12 @@
"installationFree": false,
"uiSyntax": "ets",
"pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "com.acts.actsinterfacemultiusersthirdtest.MainAbility",
......@@ -51,6 +57,12 @@
"visible": true,
"orientation": "portrait"
}
],
"requestPermissions": [
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
]
}
}
{
"app":{
"bundleName":"com.example.staticabilitystagecontext",
"bundleName":"com.acts.stabilitystagecontext",
"vendor":"huawei",
"versionCode":1000000,
"versionName":"1.0.0",
......
......@@ -3,8 +3,8 @@
"driver": {
"type": "OHJSUnitTest",
"test-timeout": "180000",
"bundle-name": "com.example.staticabilitystagecontext",
"module-name": "com.example.staticabilitystagecontext",
"bundle-name": "com.acts.stabilitystagecontext",
"module-name": "com.acts.stabilitystagecontext",
"shell-timeout": "600000",
"testcase-timeout": 70000
},
......
......@@ -59,7 +59,7 @@ export default class OpenHarmonyTestRunner implements TestRunner {
onAbilityCreate: onAbilityCreateCallback,
};
abilityDelegator.addAbilityMonitor(lMonitor, addAbilityMonitorCallback)
var cmd = 'aa start -d 0 -a com.example.staticabilitystagecontext.MainAbility' + ' -b ' + abilityDelegatorArguments.bundleName
var cmd = 'aa start -d 0 -a com.acts.stabilitystagecontext.MainAbility' + ' -b ' + abilityDelegatorArguments.bundleName
cmd += ' '+translateParamsToString(abilityDelegatorArguments.parameters)
var debug = abilityDelegatorArguments.parameters["-D"]
if (debug == 'true')
......
......@@ -91,7 +91,7 @@ export default function abilityTest() {
expect(typeof (data.removable)).assertEqual("boolean");
console.log("checkApplicationInfo_expect_typeof_end")
expect(data.name).assertEqual("com.example.staticabilitystagecontext");
expect(data.name).assertEqual("com.acts.stabilitystagecontext");
expect(data.description).assertEqual("$string:description_application");
expect(data.descriptionId).assertLarger(0);
expect(data.systemApp).assertEqual(true);
......@@ -100,12 +100,12 @@ export default function abilityTest() {
expect(data.labelId.length).assertLarger(0);
expect(data.icon).assertEqual("$media:icon");
expect(data.iconId.length).assertLarger(0);
expect(data.process).assertEqual("com.example.staticabilitystagecontext");
expect(data.process).assertEqual("com.acts.stabilitystagecontext");
expect(data.supportedModes).assertEqual(0);
expect(data.moduleInfos.length).assertEqual(1);
expect(data.moduleInfos[0].moduleName).assertEqual("com.example.staticabilitystagecontext");
expect(data.moduleInfos[0].moduleName).assertEqual("com.acts.stabilitystagecontext");
expect(data.codePath).assertEqual("/data/app/el1/bundle/public/" +
"com.example.staticabilitystagecontext");
"com.acts.stabilitystagecontext");
expect(data.removable).assertEqual(true);
console.log("checkApplicationInfo end " + data);
}
......@@ -145,7 +145,7 @@ export default function abilityTest() {
expect(typeof (data.moduleName)).assertEqual("string");
expect(typeof (data.mainAbilityName)).assertEqual("string");
console.log("checkHapModuleInfo_expect_typeof_end")
expect(data.name).assertEqual("com.example.staticabilitystagecontext");
expect(data.name).assertEqual("com.acts.stabilitystagecontext");
expect(data.description).assertEqual("$string:phone_entry_dsc");
expect(data.descriptionId).assertEqual(16777221);
expect(data.icon).assertEqual("$media:icon");
......@@ -157,10 +157,10 @@ export default function abilityTest() {
expect(data.reqCapabilities.length).assertEqual(0);
expect(data.deviceTypes.length).assertEqual(2);
expect(data.deviceTypes[0]).assertEqual("default");
expect(data.moduleName).assertEqual("com.example.staticabilitystagecontext")
expect(data.mainAbilityName).assertEqual("com.example.staticabilitystagecontext.MainAbility");
expect(data.moduleName).assertEqual("com.acts.stabilitystagecontext")
expect(data.mainAbilityName).assertEqual("com.acts.stabilitystagecontext.MainAbility");
expect(data.installationFree).assertEqual(false);
expect(data.mainElementName).assertEqual('com.example.staticabilitystagecontext.MainAbility');
expect(data.mainElementName).assertEqual('com.acts.stabilitystagecontext.MainAbility');
expect(data.hashValue).assertEqual('');
console.log("checkHapModuleInfo end " + data);
}
......
{
"module": {
"name": "com.example.staticabilitystagecontext",
"name": "com.acts.stabilitystagecontext",
"type": "entry",
"srcEntrance": "./ets/Application/AbilityStage.ts",
"description": "$string:phone_entry_dsc",
"mainElement": "com.example.staticabilitystagecontext.MainAbility",
"mainElement": "com.acts.stabilitystagecontext.MainAbility",
"deviceTypes": [
"default",
"tablet"
......@@ -13,9 +13,15 @@
"installationFree": false,
"uiSyntax": "ets",
"pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [
{
"name": "com.example.staticabilitystagecontext.MainAbility",
"name": "com.acts.stabilitystagecontext.MainAbility",
"srcEntrance": "./ets/MainAbility/MainAbility.ts",
"description": "$string:phone_entry_main",
"icon": "$media:icon",
......
{
"app": {
"bundleName": "com.example.staticinformationmultihappackage",
"bundleName": "com.acts.stinformationmulapp",
"vendor": "huawei",
"versionCode": 1000000,
"versionName": "1.0.0",
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册