未验证 提交 84d1dcf6 编写于 作者: O openharmony_ci 提交者: Gitee

!6989 xts签名文件整改

Merge pull request !6989 from chengxingzhen/master
......@@ -35,16 +35,6 @@
}
]
}
],
"requestPermissions": [
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
},
{
"name":"ohos.permission.START_INVISIBLE_ABILITY",
"reason":"need use ohos.permission.START_INVISIBLE_ABILITY"
}
]
}
}
\ No newline at end of file
......@@ -63,28 +63,6 @@
"launchType": "standard"
}
],
"reqPermissions": [
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason": "need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason": "need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name": "ohos.permission.REMOVE_CACHE_FILES",
"reason": "need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason": "need use ohos.permission.LISTEN_BUNDLE_CHANGE"
}
],
"js": [
{
"pages": [
......
......@@ -35,45 +35,13 @@
}
],
"requestPermissions": [
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason": "need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO",
"reason": "need use ohos.permission.GET_BUNDLE_INFO"
},
{
"name": "ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason": "need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name": "ohos.permission.REMOVE_CACHE_FILES",
"reason": "need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason": "need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.MANAGE_MISSIONS",
"reason": "need use ohos.permission.MANAGE_MISSIONS"
},
{
"name": "ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS",
"reason": "need use ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS"
},
{
"name": "ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason": "need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
},
{
"name": "ohos.permission.GET_RUNNING_INFO",
"reason": "need use ohos.permission.GET_RUNNING_INFO"
}
]
}
......
/*
* Copyright (c) 2021 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 ServiceExtension from '@ohos.application.ServiceExtensionAbility';
import Want from '@ohos.application.Want';
import rpc from '@ohos.rpc';
export default class ServiceAbility extends ServiceExtension {
onCreate(want:Want) {
globalThis.abilityWant = want;
console.log('ServiceAbility onCreate, want: ' + want.abilityName);
}
onRequest(want, startId) {
console.log('ServiceAbility onRequest, want: ' + want.abilityName + ', startId: ' + startId);
console.log('ServiceAbility registerApplicationStateObserver begin');
}
onConnect(want) {
console.log('ServiceAbility onConnect, want:' + want.abilityName);
globalThis.extensionContext = this.context
if (want.action == 'getExtensionInfotwo') {
this.context.startAbility(
{
bundleName: 'com.example.startabilityforresult',
abilityName: 'com.example.startabilityforresult.MainAbility2'
},
{
windowMode: 0,
displayId: 10,
}).then(() => {
console.log("====>end startAbility====>success!")
})
console.log('stub SerivceAbilityServer OnConnect start 2');
}
return new rpc.RemoteObject('connect');
}
onDisconnect(want) {
console.log('ServiceAbility onDisconnect, want:' + want.abilityName);
}
onDestroy() {
console.log('ServiceAbility onDestroy');
}
}
\ No newline at end of file
/*
* 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 {
onStart() {
console.info('ServiceAbility onStart');
},
onStop() {
console.info('ServiceAbility onStop');
},
onCommand(want, startId) {
console.info('ServiceAbility onCommand');
}
};
\ No newline at end of file
......@@ -207,72 +207,5 @@ export default function abilityTest() {
console.log('Start ACTS_startAbilityForResult_1000 timer id : ' + id);
})
/*
* @tc.number: ACTS_startAbilityForResult_1100
* @tc.name: Get the specified displayId to start Ability
* @tc.desc: Verify the connection to the service application startup page to obtain the specified displayId
*/
it('ACTS_startAbilityForResult_1100', 0, async function (done) {
console.log('ACTS_startAbilityForResult_1100====<begin');
console.log('========ACTS_startAbilityForResult_1100_StartConnect called');
var subscriber;
let id;
var connId;
function subscribeCallBack(err, data) {
console.debug("====>ACTS_startAbilityForResult_1100_Subscribe CallBack data:====>" + JSON.stringify(data));
if (data.event == "ACTS_TerminateSelf_CommonEvent") {
clearTimeout(id);
expect(data.parameters['displayId']).assertEqual(10);
expect(data.parameters['windowMode']).assertEqual(0);
commonEvent.unsubscribe(subscriber, unSubscribeCallback)
expect(data.event).assertEqual("ACTS_TerminateSelf_CommonEvent");
}
}
commonEvent.createSubscriber(subscriberInfo_MainAbility).then(async (data) => {
console.debug("====>ACTS_startAbilityForResult_1100_Create Subscriber====>");
subscriber = data;
await commonEvent.subscribe(subscriber, subscribeCallBack);
connId = await globalThis.abilityContext.connectServiceExtensionAbility(
{
bundleName: "com.example.startabilityforresult",
abilityName: "com.example.startabilityforresult.ServiceAbility",
action: "getExtensionInfotwo"
}
);
console.log('ACTS_startAbilityForResult_1100 ConnectAbility connId : ' + connId);
})
function unSubscribeCallback() {
globalThis.abilityContext.disconnectServiceExtensionAbility(
connId,
(error, data) => {
console.log('startAbilityForResult_0400 Disconnect result errCode : ' + error.code + " data: " + data)
done();
},
);
console.debug("====>ACTS_startAbilityForResult_1100_UnSubscribe CallBack====>");
}
function timeout() {
expect().assertFail();
globalThis.abilityContext.disconnectServiceExtensionAbility(
connId,
(error, data) => {
console.log('DisconnectAbility_0400 result errCode : ' + error.code + " data: " + data)
done();
},
);
console.debug('ACTS_startAbilityForResult_1100 timeout');
done();
}
id = setTimeout(timeout, START_ABILITY_TIMEOUT);
})
})
}
\ No newline at end of file
......@@ -43,65 +43,14 @@
"orientation": "portrait"
}
],
"extensionAbilities": [
{
"srcEntrance": "./ets/ServiceAbility/ServiceAbility.ts",
"name": "com.example.startabilityforresult.ServiceAbility",
"icon": "$media:icon",
"srcLanguage": "ets",
"description": "$string:phone_entry_main",
"type": "service",
"visible": true
}
],
"requestPermissions": [
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason": "need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO",
"reason": "need use ohos.permission.GET_BUNDLE_INFO"
},
{
"name": "ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason": "need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name": "ohos.permission.REMOVE_CACHE_FILES",
"reason": "need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason": "need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.MANAGE_MISSIONS",
"reason": "need use ohos.permission.MANAGE_MISSIONS"
},
{
"name": "ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS",
"reason": "need use ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS"
},
{
"name": "ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason": "need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
},
{
"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"
},
{
"name": "ohos.permission.START_INVISIBLE_ABILITY",
"reason": "need use ohos.permission.START_INVISIBLE_ABILITY"
}
]
}
......
......@@ -35,53 +35,21 @@
}
],
"requestPermissions": [
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason": "need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO",
"reason": "need use ohos.permission.GET_BUNDLE_INFO"
},
{
"name": "ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason": "need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name": "ohos.permission.REMOVE_CACHE_FILES",
"reason": "need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason": "need use ohos.permission.LISTEN_BUNDLE_CHANGE"
"name": "ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason": "need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason": "need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.MANAGE_MISSIONS",
"reason": "need use ohos.permission.MANAGE_MISSIONS"
},
{
"name": "ohos.permission.GET_RUNNING_INFO",
"reason": "need use ohos.permission.GET_RUNNING_INFO"
},
{
"name": "ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS",
"reason": "need use ohos.permission.GET_RUNNING_INFO"
},
{
"name": "ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason": "need use ohos.permission.GET_RUNNING_INFO"
},
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
},
{
"name":"ohos.permission.START_INVISIBLE_ABILITY",
"reason":"need use ohos.permission.START_INVISIBLE_ABILITY"
}
]
}
......
......@@ -64,49 +64,13 @@
}
],
"reqPermissions": [
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason": "need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO",
"reason": "need use ohos.permission.GET_BUNDLE_INFO"
},
{
"name": "ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason": "need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name": "ohos.permission.REMOVE_CACHE_FILES",
"reason": "need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason": "need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.MANAGE_MISSIONS",
"reason": "need use ohos.permission.MANAGE_MISSIONS"
},
{
"name": "ohos.permission.GET_RUNNING_INFO",
"reason": "need use ohos.permission.GET_RUNNING_INFO"
},
{
"name": "ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason": "need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
},
{
"name": "ohos.permission.CLEAN_APPLICATION_DATA",
"reason": "need use ohos.permission.CLEAN_APPLICATION_DATA"
},
{
"name": "ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS",
"reason": "need use ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS"
}
],
"js": [
......
......@@ -6,8 +6,8 @@
"description": "$string:entry_desc",
"mainElement": "MainAbility",
"deviceTypes": [
"default",
"tablet"
"default",
"tablet"
],
"deliveryWithInstall": true,
"installationFree": false,
......@@ -62,12 +62,6 @@
"icon": "$media:icon",
"label": "$string:MainAbility5_label"
}
],
"requestPermissions": [
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
]
}
}
\ No newline at end of file
......@@ -46,22 +46,6 @@
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason": "need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason": "need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name": "ohos.permission.REMOVE_CACHE_FILES",
"reason": "need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason": "need use ohos.permission.LISTEN_BUNDLE_CHANGE"
}
],
"distro": {
......
/*
* 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 ServiceExtension from '@ohos.application.ServiceExtensionAbility'
export default class ServiceAbility extends ServiceExtension {
onCreate(want) {
console.log('ActsStageAppContextTest ServiceAbility onCreate, want: ' + want.abilityName);
globalThis.serviceExtenxionAbilityContext = this.context
}
onRequest(want, startId) {
console.log('ServiceAbility onRequest, want: ' + want.abilityName + ', startId: ' + startId);
}
onConnect(want) {
console.log('ActsStageAppContextTest ServiceAbility onConnect, want:' + want.abilityName);
if (want.action == 'StartAbilityPromise') {
console.log('stub SerivceAbilityServer OnConnect start 1');
console.log('=======startAbilityPromise=======');
return new rpc.RemoteObject('ServiceAbility');
}
}
onDisconnect(want) {
console.log('ActsStageAppContextTest ServiceAbility onDisconnect, want:' + want.abilityName);
}
onDestroy() {
console.log('ActsStageAppContextTest ServiceAbility onDestroy');
}
}
\ No newline at end of file
......@@ -146,78 +146,6 @@ export default function stageAppContextTest(abilityContext) {
done();
});
/**
* @tc.number: SUB_AA_OpenHarmony_ApplicationContext_0700
* @tc.name: Validating the context obtained by the ExtensionContext call
* getApplicationContext can be obtained using createBundleContext
* @tc.desc: Function test
* @tc.level 3
*/
it('SUB_AA_OpenHarmony_ApplicationContext_0700', 0, async function (done) {
let TAG = "SUB_AA_OpenHarmony_ApplicationContext_0700";
console.log(TAG + " --- start");
let context = globalThis.serviceExtenxionAbilityContext.getApplicationContext();
let result = context.createBundleContext('com.example.stageappcontexttest')
let getCacheDir = result.cacheDir
console.log(TAG + 'getCacheDir::' + JSON.stringify(getCacheDir));
expect(getCacheDir).assertEqual('/data/app/el2/100/base/com.example.stageappcontexttest/cache')
done();
});
/**
* @tc.number: SUB_AA_OpenHarmony_ApplicationContext_0800
* @tc.name: Validating the context obtained by the ExtensionContext call
* getApplicationContext can be obtained using getApplicationContext
* @tc.desc: Function test
* @tc.level 3
*/
it('SUB_AA_OpenHarmony_ApplicationContext_0800', 0, async function (done) {
let TAG = "SUB_AA_OpenHarmony_ApplicationContext_0800";
console.log(TAG + " --- start");
let serviceContext = globalThis.serviceExtenxionAbilityContext.getApplicationContext()
console.log(TAG + "servicecontext" + serviceContext)
let result = serviceContext.getApplicationContext();
console.log(TAG + " result = " + result);
let dir = serviceContext.cacheDir
console.log(TAG + " dir = " + dir);
expect(dir).assertEqual("/data/storage/el2/base/cache");
done();
});
/**
* @tc.number: SUB_AA_OpenHarmony_ApplicationContext_0900
* @tc.name: Verify that the ExtensionContext call getApplicationContext
* gets the context using resourceManger
* @tc.desc: Function test
* @tc.level 3
*/
it('SUB_AA_OpenHarmony_ApplicationContext_0900', 0, async function (done) {
let TAG = "SUB_AA_OpenHarmony_ApplicationContext_0900";
console.log(TAG + " --- start");
let serviceContext = globalThis.serviceExtenxionAbilityContext.getApplicationContext();
let result = await serviceContext.resourceManager.getString(16777219);
console.log(TAG + " result = " + result);
expect(result).assertEqual("entry_MainAbility");
done();
});
/**
* @tc.number: SUB_AA_OpenHarmony_ApplicationContext_1000
* @tc.name: Verify that the ExtensionContext call getApplicationContext
* gets the context using applicationInfo
* @tc.desc: Function test
* @tc.level 3
*/
it('SUB_AA_OpenHarmony_ApplicationContext_1000', 0, async function (done) {
let TAG = "SUB_AA_OpenHarmony_ApplicationContext_1000";
console.log(TAG + " --- start");
let serviceContext = globalThis.serviceExtenxionAbilityContext.getApplicationContext();
let result = serviceContext.applicationInfo.name;
console.log(TAG + " result = " + result);
expect(result).assertEqual("com.example.stageappcontexttest");
done();
});
/**
* @tc.number: SUB_AA_OpenHarmony_ApplicationContext_1100
* @tc.name: Verify that the application-level context call interface
......
......@@ -32,21 +32,6 @@
}
]
}
],
"extensionAbilities": [
{
"name": "ServiceAbility",
"srcEntrance": "./ets/ServiceAbility/ServiceAbility.ts",
"label": "$string:form_ServiceAbility_label",
"description": "$string:form_ServiceAbility_desc",
"type": "service"
}
],
"requestPermissions": [
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
]
}
}
\ No newline at end of file
......@@ -57,28 +57,6 @@
"launchType": "standard"
}
],
"reqPermissions": [
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name":"ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason":"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name":"ohos.permission.REMOVE_CACHE_FILES",
"reason":"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name":"ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
}
],
"js": [
{
"pages": [
......
......@@ -113,12 +113,6 @@
"testRunner": {
"name": "OpenHarmonyTestRunner",
"srcPath": "TestRunner"
},
"reqPermissions": [
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
]
}
}
}
\ No newline at end of file
......@@ -70,10 +70,6 @@
{
"name": "ohos.permission.GET_BUNDLE_INFO",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.UPDATE_CONFIGURATION",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
}
],
"js": [
......
......@@ -46,28 +46,6 @@
"visible": true
}
],
"reqPermissions": [
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name":"ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason":"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name":"ohos.permission.REMOVE_CACHE_FILES",
"reason":"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name":"ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
}
],
"js": [
{
"pages": [
......
......@@ -46,28 +46,6 @@
"visible": true
}
],
"reqPermissions": [
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name":"ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason":"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name":"ohos.permission.REMOVE_CACHE_FILES",
"reason":"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name":"ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
}
],
"js": [
{
"pages": [
......
......@@ -46,28 +46,6 @@
"visible": true
}
],
"reqPermissions": [
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name":"ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason":"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name":"ohos.permission.REMOVE_CACHE_FILES",
"reason":"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name":"ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
}
],
"js": [
{
"pages": [
......
......@@ -46,28 +46,6 @@
"visible": true
}
],
"reqPermissions": [
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name":"ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason":"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name":"ohos.permission.REMOVE_CACHE_FILES",
"reason":"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name":"ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
}
],
"js": [
{
"pages": [
......
......@@ -46,28 +46,6 @@
"launchType": "singleton"
}
],
"reqPermissions": [
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name":"ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason":"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name":"ohos.permission.REMOVE_CACHE_FILES",
"reason":"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name":"ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
}
],
"js": [
{
"pages": [
......
......@@ -46,28 +46,6 @@
"visible": true
}
],
"reqPermissions": [
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name":"ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason":"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name":"ohos.permission.REMOVE_CACHE_FILES",
"reason":"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name":"ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
}
],
"js": [
{
"pages": [
......
......@@ -46,28 +46,6 @@
"visible": true
}
],
"reqPermissions": [
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name":"ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason":"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name":"ohos.permission.REMOVE_CACHE_FILES",
"reason":"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name":"ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
}
],
"js": [
{
"pages": [
......
......@@ -56,8 +56,6 @@ group("formmanager") {
"formsystemtest_ets/formgetformsinfotest/formswithoutpermtest:ActsFormsWithoutPermTest",
"formsystemtest_ets/formgetformsinfotest/formszerotest:ActsFormsZeroTest",
"formsystemtest_ets/formhostdeathrecipienttest:ActsFormHostDeathRecipientTest",
#"formsystemtest_ets/formperformancetest:ActsFormPerformanceTest",
"formsystemtest_ets/formreleasetest:ActsFormReleaseTest",
"formsystemtest_ets/formstatetest_disable:ActsFormStateDisableTest",
"formsystemtest_ets/formstatetest_enable:ActsFormStateEnableTest",
......
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -109,16 +110,10 @@
"name": "FMS_FormOnUninstall_commonEvent"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.REQUIRE_FORM"
"name": "ohos.permission.REQUIRE_FORM"
}
]
}
......
......@@ -18,8 +18,8 @@
"name": ".FormStHostAppB",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -95,16 +96,10 @@
"reason": "need use delete commonEvent"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.REQUIRE_FORM"
"name": "ohos.permission.REQUIRE_FORM"
}
]
}
......
......@@ -18,8 +18,8 @@
"name": ".FormStHostAppC",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -125,16 +126,10 @@
"name": "FMS_TimeChange_commonEvent"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.REQUIRE_FORM"
"name": "ohos.permission.REQUIRE_FORM"
}
]
}
......
......@@ -18,8 +18,8 @@
"name": ".FormStHostAppD",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -109,16 +110,10 @@
"name": "FMS_FormOnReleased_commonEvent"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.REQUIRE_FORM"
"name": "ohos.permission.REQUIRE_FORM"
}
]
}
......
......@@ -18,8 +18,8 @@
"name": ".FormStHostAppE",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -125,16 +126,10 @@
"name": "FMS_FormOnRequest_commonEvent"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.REQUIRE_FORM"
"name": "ohos.permission.REQUIRE_FORM"
}
]
}
......
......@@ -18,8 +18,8 @@
"name": ".FormStHostAppF",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -117,16 +118,10 @@
"name": "FMS_FormUpdateRefresh_commonEvent"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.REQUIRE_FORM"
"name": "ohos.permission.REQUIRE_FORM"
}
]
}
......
......@@ -18,8 +18,8 @@
"name": ".FormStHostAppG",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -109,16 +110,10 @@
"name": "FMS_FormOnState_commonEvent"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.REQUIRE_FORM"
"name": "ohos.permission.REQUIRE_FORM"
}
]
}
......
......@@ -18,8 +18,8 @@
"name": ".FormStHostAppI",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -109,16 +110,10 @@
"name": "FMS_FormOnState_commonEvent"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.REQUIRE_FORM"
"name": "ohos.permission.REQUIRE_FORM"
}
]
}
......
......@@ -18,8 +18,8 @@
"name": ".FormStHostApp",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -101,16 +102,10 @@
"name": "FMS_FormCast_commonEvent"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.REQUIRE_FORM"
"name": "ohos.permission.REQUIRE_FORM"
}
]
}
......
......@@ -18,8 +18,8 @@
"name": ".FormStHostAppK",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -127,17 +128,8 @@
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.REQUIRE_FORM"
},
{
"name": "fms.time_speed"
}
]
}
......
......@@ -18,8 +18,8 @@
"name": ".FormStHostAppL",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -105,12 +106,6 @@
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.REQUIRE_FORM"
}
......
......@@ -18,8 +18,8 @@
"name": ".FormStHostAppN",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -111,12 +112,6 @@
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.REQUIRE_FORM"
}
......
......@@ -18,8 +18,8 @@
"name": ".FormStHostAppNoPerm",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -125,13 +126,7 @@
"name": "FMS_FormOnState_commonEvent"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE"
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
}
]
}
......
......@@ -18,8 +18,8 @@
"name": ".FormStHostAppO",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -111,12 +112,6 @@
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.REQUIRE_FORM"
}
......
......@@ -18,8 +18,8 @@
"name": ".FormStHostAppP",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -111,12 +112,6 @@
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.REQUIRE_FORM"
}
......
......@@ -19,8 +19,8 @@
"mainAbility": ".MainAbility",
"srcPath": "",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -19,8 +19,8 @@
"mainAbility": ".MainAbility",
"srcPath": "",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -19,8 +19,8 @@
"mainAbility": ".MainAbility",
"srcPath": "",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -19,8 +19,8 @@
"mainAbility": ".MainAbility",
"srcPath": "",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -19,8 +19,8 @@
"mainAbility": ".MainAbility",
"srcPath": "",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -19,8 +19,8 @@
"mainAbility": ".MainAbility",
"srcPath": "",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -19,8 +19,8 @@
"mainAbility": ".MainAbility",
"srcPath": "",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -19,8 +19,8 @@
"mainAbility": ".MainAbility",
"srcPath": "",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -19,8 +19,8 @@
"mainAbility": ".MainAbility",
"srcPath": "",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -18,8 +18,8 @@
"name": ".FormSTApp",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -129,26 +130,10 @@
"name": "FMS_FormDelete_commonEvent",
"reason": "need use delete commonEvent"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason": "need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason": "need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name": "ohos.permission.REMOVE_CACHE_FILES",
"reason": "need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason": "need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason": "need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
......
......@@ -18,8 +18,8 @@
"name": ".FormSTApp",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -100,26 +101,10 @@
"name": "FMS_FormDelete_commonEvent",
"reason": "need use delete commonEvent"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason": "need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason": "need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name": "ohos.permission.REMOVE_CACHE_FILES",
"reason": "need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason": "need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason": "need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
......
......@@ -18,8 +18,8 @@
"name": ".FormSTApp",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -100,26 +101,10 @@
"name": "FMS_FormDelete_commonEvent",
"reason": "need use delete commonEvent"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason": "need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason": "need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name": "ohos.permission.REMOVE_CACHE_FILES",
"reason": "need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason": "need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason": "need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
......
......@@ -18,8 +18,8 @@
"name": ".FormSTApp",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -72,26 +73,10 @@
"name": "FMS_FormDelete_commonEvent",
"reason": "need use delete commonEvent"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason": "need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason": "need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name": "ohos.permission.REMOVE_CACHE_FILES",
"reason": "need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason": "need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason": "need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
......
......@@ -111,33 +111,13 @@
"name": "FMS_FormSupply_commonEvent",
"reason": "need use FormSupply commonEvent"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name":"ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason":"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name":"ohos.permission.REMOVE_CACHE_FILES",
"reason":"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name":"ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name":"ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason":"need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
},
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
],
"js": [
......
......@@ -18,8 +18,8 @@
"name": ".FormAcquire2STApp",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -110,33 +111,13 @@
"name": "FMS_FormSupply_commonEvent",
"reason": "need use FormSupply commonEvent"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name":"ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason":"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name":"ohos.permission.REMOVE_CACHE_FILES",
"reason":"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name":"ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name":"ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason":"need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
},
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
],
"js": [
......
......@@ -18,8 +18,8 @@
"name": ".FormDeleteSTApp",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -128,37 +129,13 @@
"name": "FMS_FormSupply_commonEvent",
"reason": "need use FormSupply commonEvent"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name":"ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason":"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name":"ohos.permission.REMOVE_CACHE_FILES",
"reason":"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name":"ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name":"ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason":"need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
},
{
"name": "ohos.permission.SET_TIME",
"reason": "need use ohos.permission.SET_TIME"
},
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
],
"js": [
......
......@@ -18,8 +18,8 @@
"name": ".FormDynamicSTApp",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -109,33 +110,13 @@
{
"name": "FMS_FormOnDeleted_commonEvent"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name":"ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason":"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name":"ohos.permission.REMOVE_CACHE_FILES",
"reason":"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name":"ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name":"ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason":"need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
},
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
],
"js": [
......
......@@ -18,8 +18,8 @@
"name": ".FormFuzzSTApp",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -110,26 +111,10 @@
"name": "FMS_FormSupply_commonEvent",
"reason": "need use FormSupply commonEvent"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason": "need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason": "need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name": "ohos.permission.REMOVE_CACHE_FILES",
"reason": "need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason": "need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason": "need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
......
......@@ -18,8 +18,8 @@
"name": ".FormSTApp",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -83,26 +84,10 @@
"name": "FMS_FormDelete_commonEvent",
"reason": "need use delete commonEvent"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason": "need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason": "need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name": "ohos.permission.REMOVE_CACHE_FILES",
"reason": "need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason": "need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason": "need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
......
......@@ -18,8 +18,8 @@
"name": ".FormSTApp",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -83,26 +84,10 @@
"name": "FMS_FormDelete_commonEvent",
"reason": "need use delete commonEvent"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason": "need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason": "need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name": "ohos.permission.REMOVE_CACHE_FILES",
"reason": "need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason": "need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason": "need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
......
......@@ -18,8 +18,8 @@
"name": ".FormSTApp",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -83,26 +84,10 @@
"name": "FMS_FormDelete_commonEvent",
"reason": "need use delete commonEvent"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason": "need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason": "need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name": "ohos.permission.REMOVE_CACHE_FILES",
"reason": "need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason": "need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason": "need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
......
......@@ -18,8 +18,8 @@
"name": ".FormSTApp",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -83,22 +84,6 @@
"name": "FMS_FormDelete_commonEvent",
"reason": "need use delete commonEvent"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason": "need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name": "ohos.permission.REMOVE_CACHE_FILES",
"reason": "need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason": "need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason": "need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
......
......@@ -18,8 +18,8 @@
"name": ".FormSTApp",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -83,26 +84,10 @@
"name": "FMS_FormDelete_commonEvent",
"reason": "need use delete commonEvent"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason": "need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason": "need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name": "ohos.permission.REMOVE_CACHE_FILES",
"reason": "need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason": "need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason": "need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
......
......@@ -18,8 +18,8 @@
"name": ".FormHostDeathRecipientSTApp",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -99,32 +100,13 @@
{
"name": "FMS_FormOnRequest_commonEvent"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason": "need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason": "need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name": "ohos.permission.REMOVE_CACHE_FILES",
"reason": "need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason": "need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason": "need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
},
{
"name": "ohos.permission.CLEAN_APPLICATION_DATA"
}
],
"js": [
......
# Copyright (c) 2021 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_js_hap_suite("ActsFormPerformanceTest") {
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_js_test_assets",
":hjs_demo_resources",
]
ets2abc = true
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsFormPerformanceTest"
subsystem_name = "ability"
part_name = "form_fwk"
}
ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./entry/src/main/ets/MainAbility"
}
ohos_js_assets("hjs_demo_js_test_assets") {
source_dir = "./entry/src/main/ets/TestAbility"
}
ohos_resources("hjs_demo_resources") {
sources = [ "./entry/src/main/resources" ]
hap_profile = "./entry/src/main/config.json"
}
{
"description": "Configuration for hjunit demo Tests",
"driver": {
"type": "OHJSUnitTest",
"test-timeout": "300000",
"bundle-name": "com.ohos.st.formperformancetest",
"package-name": "com.ohos.st.formperformancetest",
"shell-timeout": "600000",
"testcase-timeout":"30000"
},
"kits": [
{
"test-file-name": [
"ActsFormPerformanceTest.hap",
"FormSystemHostK.hap",
"FormSupplyAppG.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
},
{
"type": "ShellKit",
"run-command": [
"power-shell wakeup",
"power-shell setmode 602"
]
}
]
}
\ No newline at end of file
{
"app": {
"bundleName": "com.ohos.st.formperformancetest",
"vendor": "ohos",
"version": {
"code": 1000000,
"name": "1.0.0"
},
"apiVersion": {
"compatible": 7,
"releaseType": "Release",
"target": 7
}
},
"deviceConfig": {},
"module": {
"package": "com.ohos.st.formperformancetest",
"name": ".FormPerformanceSTApp",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry",
"installationFree": false
},
"abilities": [
{
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"visible": true,
"name": ".MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
"label": "$string:entry_MainAbility",
"type": "page",
"launchType": "standard"
},
{
"orientation": "unspecified",
"formsEnabled": false,
"name": ".TestAbility",
"srcLanguage": "ets",
"srcPath": "TestAbility",
"icon": "$media:icon",
"description": "$string:TestAbility_desc",
"label": "$string:TestAbility_label",
"type": "page",
"visible": true,
"launchType": "singleton"
}
],
"defPermissions": [
{
"availableScope": [],
"grantMode": "system_grant",
"name": "FMS_FormOnAcquired_commonEvent"
},
{
"availableScope": [],
"grantMode": "system_grant",
"name": "FMS_FormSupply_commonEvent"
},
{
"availableScope": [],
"grantMode": "system_grant",
"name": "FMS_FormDelete_commonEvent"
}
],
"reqPermissions": [
{
"name": "FMS_FormOnAcquired_commonEvent",
"reason": "need use onAcquired commonEvent"
},
{
"name": "FMS_FormSupply_commonEvent",
"reason": "need use FormSupply commonEvent"
},
{
"name": "FMS_FormDelete_commonEvent",
"reason": "need use delete commonEvent"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason": "need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason": "need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name": "ohos.permission.REMOVE_CACHE_FILES",
"reason": "need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason": "need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason": "need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
},
{
"name": "ohos.permission.CLEAN_APPLICATION_DATA"
}
],
"js": [
{
"mode": {
"syntax": "ets",
"type": "pageAbility"
},
"pages": [
"pages/index"
],
"name": ".MainAbility",
"window": {
"designWidth": 720,
"autoDesignWidth": false
}
},
{
"mode": {
"syntax": "ets",
"type": "pageAbility"
},
"pages": [
"pages/index"
],
"name": ".TestAbility",
"window": {
"designWidth": 720,
"autoDesignWidth": false
}
}
]
}
}
\ No newline at end of file
/*
* Copyright (c) 2021 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('[FormComponent] Application onCreate')
},
onDestroy() {
console.info('[FormComponent] Application onDestroy')
},
}
\ No newline at end of file
/*
* Copyright (c) 2021 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.
*/
@Entry
@Component
struct Index {
build() {
Flex({
direction: FlexDirection.Column,
alignItems: ItemAlign.Center,
justifyContent: FlexAlign.Center
}) {
Text('Fms Performance Test')
.fontSize(50)
.fontWeight(FontWeight.Bold)
}
.width('100%')
.height('100%')
}
}
/*
* 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 AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import { Hypium } from '@ohos/hypium'
import testsuite from '../test/List.test'
export default {
onCreate() {
console.info('Application onCreate')
var abilityDelegator: any
abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator()
var abilityDelegatorArguments: any
abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments()
console.info('start run testcase!!!')
Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite)
},
onDestroy() {
console.info('Application onDestroy')
},
}
\ No newline at end of file
/*
* 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 Index {
aboutToAppear() {
console.info('TestAbility index aboutToAppear')
}
@State message: string = 'Hello World'
build() {
Row() {
Column() {
Text(this.message)
.fontSize(50)
.fontWeight(FontWeight.Bold)
Button() {
Text('next page')
.fontSize(20)
.fontWeight(FontWeight.Bold)
}.type(ButtonType.Capsule)
.margin({
top: 20
})
.backgroundColor('#0D9FFB')
.width('35%')
.height('5%')
.onClick(()=>{
})
}
.width('100%')
}
.height('100%')
}
}
\ No newline at end of file
/*
* 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 TestRunner from '@ohos.application.testRunner'
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
var abilityDelegator = undefined
var abilityDelegatorArguments = undefined
function translateParamsToString(parameters) {
const keySet = new Set([
'-s class', '-s notClass', '-s suite', '-s itName',
'-s level', '-s testType', '-s size', '-s timeout',
'-s package'
])
let targetParams = '';
for (const key in parameters) {
if (keySet.has(key)) {
targetParams += ' ' + key + ' ' + parameters[key]
}
}
return targetParams.trim()
}
async function onAbilityCreateCallback() {
console.log('onAbilityCreateCallback');
}
async function addAbilityMonitorCallback(err: any) {
console.info('addAbilityMonitorCallback : ' + JSON.stringify(err))
}
export default class OpenHarmonyTestRunner implements TestRunner {
constructor() {
}
onPrepare() {
console.info('OpenHarmonyTestRunner OnPrepare')
}
onRun() {
console.log('OpenHarmonyTestRunner onRun run')
abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments()
abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator()
let lMonitor = {
abilityName: testAbilityName,
onAbilityCreate: onAbilityCreateCallback,
};
var testAbilityName = abilityDelegatorArguments.parameters['-p'] + '.TestAbility'
abilityDelegator.addAbilityMonitor(lMonitor, addAbilityMonitorCallback)
var cmd = 'aa start -d 0 -a ' + testAbilityName + ' -b ' + abilityDelegatorArguments.bundleName
cmd += ' '+translateParamsToString(abilityDelegatorArguments.parameters)
console.info('cmd : '+cmd)
abilityDelegator.executeShellCommand(cmd,
(err: any, d: any) => {
console.info('executeShellCommand : err : ' + JSON.stringify(err));
console.info('executeShellCommand : data : ' + d.stdResult);
console.info('executeShellCommand : data : ' + d.exitCode);
})
console.info('OpenHarmonyTestRunner onRun call abilityDelegator.getAppContext')
var context = abilityDelegator.getAppContext()
console.info('getAppContext : ' + JSON.stringify(context))
console.info('OpenHarmonyTestRunner onRun end')
}
};
\ No newline at end of file
/*
* Copyright (c) 2021 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 featureAbility from '@ohos.ability.featureAbility';
import formHost from '@ohos.application.formHost';
import commonEvent from '@ohos.commonEvent';
import systemTime from '@ohos.systemTime';
import { beforeEach, afterEach, describe, expect, it } from '@ohos/hypium'
const onAcquiredEvent = {
events: [`FMS_FormOnAcquired_commonEvent`],
};
const onSupplyEvent = {
events: [`FMS_FormSupply_commonEvent`],
};
const formOnDeleteEvent = `FMS_FormDelete_commonEvent`;
const unsubscribeOnAcquiredCallback = (tcNumber) => {
console.info(`${tcNumber} unsubscribeOnAcquired callback`);
}
const unsubscribeOnSupplyCallback = (tcNumber) => {
console.info(`${tcNumber} unsubscribeOnSupply callback`);
}
const publishOnDeleteCallback = (tcNumber, done) => {
console.info(`${tcNumber} publishOnDelete callback`);
done();
}
const unsubscribeCallback = (tcNumber) => {
console.info(`====>${tcNumber} unsubscribeCallback====>`);
}
let onAcquiredEventSubscriber;
let onSupplyEventSubscriber;
function sleep(time) {
return new Promise((resolve)=>setTimeout(resolve,time));
}
export default function test() {
describe(`FmsPerformanceTest`, () => {
beforeEach(async () => {
onAcquiredEventSubscriber = await commonEvent.createSubscriber(onAcquiredEvent);
onSupplyEventSubscriber = await commonEvent.createSubscriber(onSupplyEvent);
});
afterEach(async() => {
commonEvent.unsubscribe(onAcquiredEventSubscriber, () => unsubscribeCallback("afterEach unsubscribe onAcquiredEventSubscriber"));
commonEvent.unsubscribe(onSupplyEventSubscriber, () => unsubscribeCallback("afterEach unsubscribe onSupplyEventSubscriber"));
await sleep(1000);
})
/**
* @tc.number: FMS_performanceTest_0100
* @tc.name: Performance test.
* @tc.desc: Create form.
*/
it(`FMS_performanceTest_0100`, 0, async (done) => {
const tcNumber = `FMS_performanceTest_0100`;
const timeout = 1000;
let endflag = 0;
commonEvent.subscribe(onAcquiredEventSubscriber, async (err, data) => {
console.info(`${tcNumber} onAcquiredCallback data: ${JSON.stringify(data)}, error: ${JSON.stringify(err)}`);
console.info(`${tcNumber} onAcquiredCallback formId: ${data.data}`);
const hostEndTime = data.parameters.time;
const hostTime = hostEndTime - startTime
console.info(`${tcNumber} hostTime: ${JSON.stringify(hostTime)}`);
expect(hostTime < timeout).assertEqual(true);
commonEvent.unsubscribe(onAcquiredEventSubscriber, () => unsubscribeOnAcquiredCallback(tcNumber));
console.info(`${tcNumber} onAcquiredCallback end`);
if (++endflag == 2) {
setTimeout(() => {
commonEvent.publish(formOnDeleteEvent, {
parameters: {
formIds: [data.data]
}
}, () => publishOnDeleteCallback(tcNumber, done));
}, 500);
}
});
commonEvent.subscribe(onSupplyEventSubscriber, async (err, data) => {
console.info(`${tcNumber} onSupplyCallback data: ${JSON.stringify(data)}, error: ${JSON.stringify(err)}`);
const kind = data.parameters.kind;
const supplyFormId = `onCreate` == kind
? JSON.parse(data.parameters.parameters).parameters[`ohos.extra.param.key.form_identity`]
: data.parameters.parameters;
console.info(`${tcNumber} onSupplyCallback formId: ${supplyFormId} kind: ${kind}`);
if (`onCreate` == kind) {
const providerEndTime = data.parameters.time;
const providerTime = providerEndTime - startTime;
console.info(`${tcNumber} providerTime: ${JSON.stringify(providerTime)}`);
expect(providerTime < timeout).assertEqual(true);
commonEvent.unsubscribe(onSupplyEventSubscriber, () => unsubscribeOnSupplyCallback(tcNumber));
console.info(`${tcNumber} onSupplyCallback_onCreate end`);
if (++endflag == 2) {
setTimeout(() => {
commonEvent.publish(formOnDeleteEvent, {
parameters: {
formIds: [supplyFormId]
}
}, () => publishOnDeleteCallback(tcNumber, done));
}, 500);
}
}
});
const startTime = await systemTime.getCurrentTime();
try {
const res = await featureAbility.startAbility({
want: {
bundleName: `com.ohos.st.formsystemhostk`,
abilityName: `com.ohos.st.formsystemhostk.MainAbility`,
parameters: {
formId: `0`,
name: `Form_Js001`,
bundle: `com.form.formsystemtestserviceg.hmservice`,
ability: `com.form.formsystemtestserviceg.hmservice.FormAbility`,
moduleName: `entry`,
isCreate: true,
}
}
});
console.info(`${tcNumber} featureAbility.startAbility res: ${JSON.stringify(res)}`);
} catch (error) {
console.info(`${tcNumber} error: ${JSON.stringify(error)}`);
console.info(`${tcNumber} should not reach here`);
expect().assertFail();
}
});
/**
* @tc.number: FMS_performanceTest_0200
* @tc.name: Performance test.
* @tc.desc: Delete form.
*/
it(`FMS_performanceTest_0200`, 0, async (done) => {
const tcNumber = `FMS_performanceTest_0200`;
const timeout = 1000;
let startTime = -1;
let endflag = 0;
commonEvent.subscribe(onAcquiredEventSubscriber, async (err, data) => {
console.info(`${tcNumber} onAcquiredCallback data: ${JSON.stringify(data)}, error: ${JSON.stringify(err)}`);
console.info(`${tcNumber} onAcquiredCallback formId: ${data.data}`);
if (`deleteForm` == data.parameters.kind) {
startTime = data.parameters.startTime;
const hostTime = data.parameters.hostTime;
console.info(`${tcNumber} hostTime: ${JSON.stringify(hostTime)}`);
expect(hostTime < timeout).assertEqual(true);
commonEvent.unsubscribe(onAcquiredEventSubscriber, () => unsubscribeOnAcquiredCallback(tcNumber));
console.info(`${tcNumber} onAcquiredCallback_deleteForm end`);
if (++endflag == 2) {
setTimeout(() => {
commonEvent.publish(formOnDeleteEvent, {
parameters: {
formIds: [data.data]
}
}, () => publishOnDeleteCallback(tcNumber, done));
}, 500);
}
}
});
commonEvent.subscribe(onSupplyEventSubscriber, async (err, data) => {
console.info(`${tcNumber} onSupplyCallback data: ${JSON.stringify(data)}, error: ${JSON.stringify(err)}`);
const kind = data.parameters.kind;
const supplyFormId = `onCreate` == kind
? JSON.parse(data.parameters.parameters).parameters[`ohos.extra.param.key.form_identity`]
: data.parameters.parameters;
console.info(`${tcNumber} onSupplyCallback formId: ${supplyFormId} kind: ${kind}`);
if (`onDestroy` == kind) {
setTimeout(() => {
const providerEndTime = data.parameters.time;
const providerTime = providerEndTime - startTime;
console.info(`${tcNumber} providerTime: ${JSON.stringify(providerTime)}`);
expect(providerTime < timeout).assertEqual(true);
commonEvent.unsubscribe(onSupplyEventSubscriber, () => unsubscribeOnSupplyCallback(tcNumber));
console.info(`${tcNumber} onSupplyCallback_onDestroy end`);
if (++endflag == 2) {
setTimeout(() => {
commonEvent.publish(formOnDeleteEvent, {
parameters: {
formIds: [supplyFormId]
}
}, () => publishOnDeleteCallback(tcNumber, done));
}, 500);
}
}, 2000);
}
});
try {
const res = await featureAbility.startAbility({
want: {
bundleName: `com.ohos.st.formsystemhostk`,
abilityName: `com.ohos.st.formsystemhostk.MainAbility`,
parameters: {
formId: `0`,
name: `Form_Js001`,
bundle: `com.form.formsystemtestserviceg.hmservice`,
ability: `com.form.formsystemtestserviceg.hmservice.FormAbility`,
moduleName: `entry`,
isCreate: true,
deleteForm: true,
}
}
});
console.info(`${tcNumber} featureAbility.startAbility res: ${JSON.stringify(res)}`);
} catch (error) {
console.info(`${tcNumber} error: ${JSON.stringify(error)}`);
console.info(`${tcNumber} should not reach here`);
expect().assertFail();
}
});
/**
* @tc.number: FMS_performanceTest_0300
* @tc.name: Performance test.
* @tc.desc: Release form.
*/
it(`FMS_performanceTest_0300`, 0, async (done) => {
const tcNumber = `FMS_performanceTest_0300`;
const timeout = 1000;
commonEvent.subscribe(onAcquiredEventSubscriber, async (err, data) => {
console.info(`${tcNumber} onAcquiredCallback data: ${JSON.stringify(data)}, error: ${JSON.stringify(err)}`);
console.info(`${tcNumber} onAcquiredCallback formId: ${data.data}`);
if (`release` == data.parameters.kind) {
const hostTime = data.parameters.hostTime;
console.info(`${tcNumber} hostTime: ${hostTime}`);
expect(hostTime < timeout).assertEqual(true);
commonEvent.unsubscribe(onAcquiredEventSubscriber, () => unsubscribeOnAcquiredCallback(tcNumber));
console.info(`${tcNumber} onAcquiredCallback_release end`);
setTimeout(() => {
commonEvent.publish(formOnDeleteEvent, {
parameters: {
formIds: [data.data]
}
}, () => publishOnDeleteCallback(tcNumber, done));
}, 500);
}
});
try {
const res = await featureAbility.startAbility({
want: {
bundleName: `com.ohos.st.formsystemhostk`,
abilityName: `com.ohos.st.formsystemhostk.MainAbility`,
parameters: {
formId: `0`,
name: `Form_Js001`,
bundle: `com.form.formsystemtestserviceg.hmservice`,
ability: `com.form.formsystemtestserviceg.hmservice.FormAbility`,
moduleName: `entry`,
isCreate: true,
releaseForm: true,
}
}
});
console.info(`${tcNumber} featureAbility.startAbility res: ${JSON.stringify(res)}`);
} catch (error) {
console.info(`${tcNumber} error: ${JSON.stringify(error)}`);
console.info(`${tcNumber} should not reach here`);
expect().assertFail();
}
});
/**
* @tc.number: FMS_performanceTest_0400
* @tc.name: Performance test.
* @tc.desc: Cast temp form.
*/
it(`FMS_performanceTest_0400`, 0, async (done) => {
const tcNumber = `FMS_performanceTest_0400`;
const timeout = 500;
let startTime = -1;
let endflag = 0;
commonEvent.subscribe(onAcquiredEventSubscriber, async (err, data) => {
console.info(`${tcNumber} onAcquiredCallback data: ${JSON.stringify(data)}, error: ${JSON.stringify(err)}`);
console.info(`${tcNumber} onAcquiredCallback formId: ${data.data}`);
if (`castTempForm` == data.parameters.kind) {
startTime = data.parameters.startTime;
const hostTime = data.parameters.hostTime;
console.info(`${tcNumber} hostTime: ${JSON.stringify(hostTime)}`);
console.info(`${tcNumber} onAcquiredCallback_castTempForm end`);
expect(hostTime < timeout).assertEqual(true);
commonEvent.unsubscribe(onAcquiredEventSubscriber, () => unsubscribeOnAcquiredCallback(tcNumber));
if (++endflag == 2) {
setTimeout(() => {
commonEvent.publish(formOnDeleteEvent, {
parameters: {
formIds: [data.data]
}
}, () => publishOnDeleteCallback(tcNumber, done));
}, 500);
}
}
});
commonEvent.subscribe(onSupplyEventSubscriber, async (err, data) => {
console.info(`${tcNumber} onSupplyCallback data: ${JSON.stringify(data)}, error: ${JSON.stringify(err)}`);
const kind = data.parameters.kind;
const supplyFormId = `onCreate` == kind
? JSON.parse(data.parameters.parameters).parameters[`ohos.extra.param.key.form_identity`]
: data.parameters.parameters;
console.info(`${tcNumber} onSupplyCallback formId: ${supplyFormId} kind: ${kind}`);
if (`onCastToNormal` == kind) {
setTimeout(() => {
const providerEndTime = data.parameters.time;
const providerTime = providerEndTime - startTime;
console.info(`${tcNumber} providerTime: ${JSON.stringify(providerTime)}`);
expect(providerTime < timeout).assertEqual(true);
commonEvent.unsubscribe(onSupplyEventSubscriber, () => unsubscribeOnSupplyCallback(tcNumber));
console.info(`${tcNumber} onSupplyCallback_onCastToNormal end`);
if (++endflag == 2) {
setTimeout(() => {
commonEvent.publish(formOnDeleteEvent, {
parameters: {
formIds: [supplyFormId]
}
}, () => publishOnDeleteCallback(tcNumber, done));
}, 500);
}
}, 2000);
}
});
try {
const res = await featureAbility.startAbility({
want: {
bundleName: `com.ohos.st.formsystemhostk`,
abilityName: `com.ohos.st.formsystemhostk.MainAbility`,
parameters: {
formId: `0`,
name: `Form_Js001`,
bundle: `com.form.formsystemtestserviceg.hmservice`,
ability: `com.form.formsystemtestserviceg.hmservice.FormAbility`,
moduleName: `entry`,
isCreate: true,
castTempForm: true,
temporary: true,
}
}
});
console.info(`${tcNumber} featureAbility.startAbility res: ${JSON.stringify(res)}`);
} catch (error) {
console.info(`${tcNumber} error: ${JSON.stringify(error)}`);
console.info(`${tcNumber} should not reach here`);
expect().assertFail();
}
});
/**
* @tc.number: FMS_performanceTest_0500
* @tc.name: Performance test.
* @tc.desc: Notify visible forms.
*/
it(`FMS_performanceTest_0500`, 0, async (done) => {
const tcNumber = `FMS_performanceTest_0500`;
const timeout = 500;
let startTime = -1;
let endflag = 0;
commonEvent.subscribe(onAcquiredEventSubscriber, async (err, data) => {
console.info(`${tcNumber} onAcquiredCallback data: ${JSON.stringify(data)}, error: ${JSON.stringify(err)}`);
console.info(`${tcNumber} onAcquiredCallback formId: ${data.data}`);
if (`notifyVisibleForms` == data.parameters.kind) {
startTime = data.parameters.startTime;
const hostTime = data.parameters.hostTime;
console.info(`${tcNumber} hostTime: ${JSON.stringify(hostTime)}`);
expect(hostTime < timeout).assertEqual(true);
commonEvent.unsubscribe(onAcquiredEventSubscriber, () => unsubscribeOnAcquiredCallback(tcNumber));
console.info(`${tcNumber} onAcquiredCallback_notifyVisibleForms end`);
if (++endflag == 2) {
setTimeout(() => {
commonEvent.publish(formOnDeleteEvent, {
parameters: {
formIds: [data.data]
}
}, () => publishOnDeleteCallback(tcNumber, done));
}, 500);
}
}
});
commonEvent.subscribe(onSupplyEventSubscriber, async (err, data) => {
console.info(`${tcNumber} onSupplyCallback data: ${JSON.stringify(data)}, error: ${JSON.stringify(err)}`);
const kind = data.parameters.kind;
const supplyFormId = `onCreate` == kind
? JSON.parse(data.parameters.parameters).parameters[`ohos.extra.param.key.form_identity`]
: `onVisibilityChange` == kind
? Object.keys(JSON.parse(data.parameters.parameters))[0]
: data.parameters.parameters;
console.info(`${tcNumber} onSupplyCallback formId: ${supplyFormId} kind: ${kind}`);
if (`onVisibilityChange` == kind) {
setTimeout(() => {
const providerEndTime = data.parameters.time;
const providerTime = providerEndTime - startTime;
console.info(`${tcNumber} providerTime: ${JSON.stringify(providerTime)}`);
expect(providerTime < timeout).assertEqual(true);
commonEvent.unsubscribe(onSupplyEventSubscriber, () => unsubscribeOnSupplyCallback(tcNumber));
console.info(`${tcNumber} onSupplyCallback_onVisibilityChange end`);
if (++endflag == 2) {
setTimeout(() => {
commonEvent.publish(formOnDeleteEvent, {
parameters: {
formIds: [supplyFormId]
}
}, () => publishOnDeleteCallback(tcNumber, done));
}, 500);
}
}, 2000);
}
});
try {
const res = await featureAbility.startAbility({
want: {
bundleName: `com.ohos.st.formsystemhostk`,
abilityName: `com.ohos.st.formsystemhostk.MainAbility`,
parameters: {
formId: `0`,
name: `Form_Js001`,
bundle: `com.form.formsystemtestserviceg.hmservice`,
ability: `com.form.formsystemtestserviceg.hmservice.FormAbility`,
moduleName: `entry`,
isCreate: true,
notifyVisibleForms: true,
}
}
});
console.info(`${tcNumber} featureAbility.startAbility res: ${JSON.stringify(res)}`);
} catch (error) {
console.info(`${tcNumber} error: ${JSON.stringify(error)}`);
console.info(`${tcNumber} should not reach here`);
expect().assertFail();
}
});
/**
* @tc.number: FMS_performanceTest_0600
* @tc.name: Performance test.
* @tc.desc: Notify invisible forms.
*/
it(`FMS_performanceTest_0600`, 0, async (done) => {
const tcNumber = `FMS_performanceTest_0600`;
const timeout = 500;
let startTime = -1;
let endflag = 0;
commonEvent.subscribe(onAcquiredEventSubscriber, async (err, data) => {
console.info(`${tcNumber} onAcquiredCallback data: ${JSON.stringify(data)}, error: ${JSON.stringify(err)}`);
console.info(`${tcNumber} onAcquiredCallback formId: ${data.data}`);
if (`notifyInvisibleForms` == data.parameters.kind) {
startTime = data.parameters.startTime;
const hostTime = data.parameters.hostTime;
console.info(`${tcNumber} hostTime: ${JSON.stringify(hostTime)}`);
expect(hostTime < timeout).assertEqual(true);
commonEvent.unsubscribe(onAcquiredEventSubscriber, () => unsubscribeOnAcquiredCallback(tcNumber));
console.info(`${tcNumber} onAcquiredCallback_notifyInvisibleForms end`);
if (++endflag == 2) {
setTimeout(() => {
commonEvent.publish(formOnDeleteEvent, {
parameters: {
formIds: [data.data]
}
}, () => publishOnDeleteCallback(tcNumber, done));
}, 500);
}
}
});
commonEvent.subscribe(onSupplyEventSubscriber, async (err, data) => {
console.info(`${tcNumber} onSupplyCallback data: ${JSON.stringify(data)}, error: ${JSON.stringify(err)}`);
const kind = data.parameters.kind;
const supplyFormId = `onCreate` == kind
? JSON.parse(data.parameters.parameters).parameters[`ohos.extra.param.key.form_identity`]
: `onVisibilityChange` == kind
? Object.keys(JSON.parse(data.parameters.parameters))[0]
: data.parameters.parameters;
console.info(`${tcNumber} onSupplyCallback formId: ${supplyFormId} kind: ${kind}`);
if (`onVisibilityChange` == kind) {
setTimeout(() => {
const providerEndTime = data.parameters.time;
const providerTime = providerEndTime - startTime;
console.info(`${tcNumber} providerTime: ${JSON.stringify(providerTime)}`);
expect(providerTime < timeout).assertEqual(true);
commonEvent.unsubscribe(onSupplyEventSubscriber, () => unsubscribeOnSupplyCallback(tcNumber));
console.info(`${tcNumber} onSupplyCallback_onVisibilityChange end`);
if (++endflag == 2) {
setTimeout(() => {
commonEvent.publish(formOnDeleteEvent, {
parameters: {
formIds: [supplyFormId]
}
}, () => publishOnDeleteCallback(tcNumber, done));
}, 500);
}
}, 2000);
}
});
try {
const res = await featureAbility.startAbility({
want: {
bundleName: `com.ohos.st.formsystemhostk`,
abilityName: `com.ohos.st.formsystemhostk.MainAbility`,
parameters: {
formId: `0`,
name: `Form_Js001`,
bundle: `com.form.formsystemtestserviceg.hmservice`,
ability: `com.form.formsystemtestserviceg.hmservice.FormAbility`,
moduleName: `entry`,
isCreate: true,
notifyInvisibleForms: true,
}
}
});
console.info(`${tcNumber} featureAbility.startAbility res: ${JSON.stringify(res)}`);
} catch (error) {
console.info(`${tcNumber} error: ${JSON.stringify(error)}`);
console.info(`${tcNumber} should not reach here`);
expect().assertFail();
}
});
/**
* @tc.number: FMS_performanceTest_0700
* @tc.name: Performance test.
* @tc.desc: Request forms.
*/
it(`FMS_performanceTest_0700`, 0, async (done) => {
const tcNumber = `FMS_performanceTest_0700`;
const timeout = 100;
let startTime = -1;
let endflag = 0;
commonEvent.subscribe(onAcquiredEventSubscriber, async (err, data) => {
console.info(`${tcNumber} onAcquiredCallback data: ${JSON.stringify(data)}, error: ${JSON.stringify(err)}`);
console.info(`${tcNumber} onAcquiredCallback formId: ${data.data}`);
if (`request` == data.parameters.kind) {
startTime = data.parameters.startTime;
const hostTime = data.parameters.hostTime;
console.info(`${tcNumber} hostTime: ${JSON.stringify(hostTime)}`);
expect(hostTime < timeout).assertEqual(true);
commonEvent.unsubscribe(onAcquiredEventSubscriber, () => unsubscribeOnAcquiredCallback(tcNumber));
console.info(`${tcNumber} onAcquiredCallback end`);
if (++endflag == 2) {
setTimeout(() => {
commonEvent.publish(formOnDeleteEvent, {
parameters: {
formIds: [data.data]
}
}, () => publishOnDeleteCallback(tcNumber, done));
}, 500);
}
}
});
commonEvent.subscribe(onSupplyEventSubscriber, async (err, data) => {
console.info(`${tcNumber} onSupplyCallback data: ${JSON.stringify(data)}, error: ${JSON.stringify(err)}`);
const kind = data.parameters.kind;
const supplyFormId = `onCreate` == kind
? JSON.parse(data.parameters.parameters).parameters[`ohos.extra.param.key.form_identity`]
: data.parameters.parameters;
console.info(`${tcNumber} onSupplyCallback formId: ${supplyFormId} kind: ${kind}`);
if (`onUpdate` == kind) {
setTimeout(() => {
const providerEndTime = data.parameters.time;
console.info(`${tcNumber} providerTime: ${JSON.stringify(providerEndTime - startTime)}`);
expect(providerEndTime - startTime < timeout).assertEqual(true);
commonEvent.unsubscribe(onSupplyEventSubscriber, () => unsubscribeOnSupplyCallback(tcNumber));
console.info(`${tcNumber} onSupplyCallback_onUpdate end`);
if (++endflag == 2) {
setTimeout(() => {
commonEvent.publish(formOnDeleteEvent, {
parameters: {
formIds: [supplyFormId]
}
}, () => publishOnDeleteCallback(tcNumber, done));
}, 500);
}
}, 2000);
}
});
try {
const res = await featureAbility.startAbility({
want: {
bundleName: `com.ohos.st.formsystemhostk`,
abilityName: `com.ohos.st.formsystemhostk.MainAbility`,
parameters: {
formId: `0`,
name: `Form_Js001`,
bundle: `com.form.formsystemtestserviceg.hmservice`,
ability: `com.form.formsystemtestserviceg.hmservice.FormAbility`,
moduleName: `entry`,
isCreate: true,
requestForm: true,
}
}
});
console.info(`${tcNumber} featureAbility.startAbility res: ${JSON.stringify(res)}`);
} catch (error) {
console.info(`${tcNumber} error: ${JSON.stringify(error)}`);
console.info(`${tcNumber} should not reach here`);
expect().assertFail();
}
});
/**
* @tc.number: FMS_performanceTest_0800
* @tc.name: Performance test.
* @tc.desc: Update form.
*/
it(`FMS_performanceTest_0800`, 0, async (done) => {
const tcNumber = `FMS_performanceTest_0800`;
const timeout = 100;
commonEvent.subscribe(onSupplyEventSubscriber, async (err, data) => {
console.info(`${tcNumber} onSupplyCallback data: ${JSON.stringify(data)}, error: ${JSON.stringify(err)}`);
const kind = data.parameters.kind;
const supplyFormId = `onCreate` == kind
? JSON.parse(data.parameters.parameters).parameters[`ohos.extra.param.key.form_identity`]
: `onVisibilityChange` == kind
? Object.keys(JSON.parse(data.parameters.parameters))[0]
: data.parameters.parameters;
console.info(`${tcNumber} onSupplyCallback formId: ${supplyFormId} kind: ${kind}`);
if (`onUpdateForm` == kind) {
const providerTime = data.parameters.time;
console.info(`${tcNumber} providerTime: ${JSON.stringify(providerTime)}`);
expect(providerTime < timeout).assertEqual(true);
commonEvent.unsubscribe(onSupplyEventSubscriber, () => unsubscribeOnSupplyCallback(tcNumber));
console.info(`${tcNumber} onSupplyCallback_onUpdateForm end`);
setTimeout(() => {
commonEvent.publish(formOnDeleteEvent, {
parameters: {
formIds: [supplyFormId]
}
}, () => publishOnDeleteCallback(tcNumber, done));
}, 500);
}
});
try {
const res = await featureAbility.startAbility({
want: {
bundleName: `com.ohos.st.formsystemhostk`,
abilityName: `com.ohos.st.formsystemhostk.MainAbility`,
parameters: {
formId: `0`,
name: `Form_Js001`,
bundle: `com.form.formsystemtestserviceg.hmservice`,
ability: `com.form.formsystemtestserviceg.hmservice.FormAbility`,
moduleName: `entry`,
isCreate: true,
notifyVisibleForms: true,
}
}
});
console.info(`${tcNumber} featureAbility.startAbility res: ${JSON.stringify(res)}`);
} catch (error) {
console.info(`${tcNumber} error: ${JSON.stringify(error)}`);
console.info(`${tcNumber} should not reach here`);
expect().assertFail();
}
});
/**
* @tc.number: FMS_performanceTest_0900
* @tc.name: Performance test.
* @tc.desc: Set next refresh time.
*/
it(`FMS_performanceTest_0900`, 0, async (done) => {
const tcNumber = `FMS_performanceTest_0900`;
const timeout = 100;
commonEvent.subscribe(onSupplyEventSubscriber, async (err, data) => {
console.info(`${tcNumber} onSupplyCallback data: ${JSON.stringify(data)}, error: ${JSON.stringify(err)}`);
const kind = data.parameters.kind;
const supplyFormId = `onCreate` == kind
? JSON.parse(data.parameters.parameters).parameters[`ohos.extra.param.key.form_identity`]
: `onVisibilityChange` == kind
? Object.keys(JSON.parse(data.parameters.parameters))[0]
: data.parameters.parameters;
console.info(`${tcNumber} onSupplyCallback formId: ${supplyFormId} kind: ${kind}`);
if (`onSetFormNextRefreshTime` == kind) {
const providerTime = data.parameters.time;
console.info(`${tcNumber} providerTime: ${JSON.stringify(providerTime)}`);
expect(providerTime < timeout).assertEqual(true);
commonEvent.unsubscribe(onSupplyEventSubscriber, () => unsubscribeOnSupplyCallback(tcNumber));
console.info(`${tcNumber} onSupplyCallback_onSetFormNextRefreshTime end`);
setTimeout(() => {
commonEvent.publish(formOnDeleteEvent, {
parameters: {
formIds: [supplyFormId]
}
}, () => publishOnDeleteCallback(tcNumber, done));
}, 500);
}
});
setTimeout(async () => {
try {
const res = await featureAbility.startAbility({
want: {
bundleName: `com.ohos.st.formsystemhostk`,
abilityName: `com.ohos.st.formsystemhostk.MainAbility`,
parameters: {
formId: `0`,
name: `Form_Js001`,
bundle: `com.form.formsystemtestserviceg.hmservice`,
ability: `com.form.formsystemtestserviceg.hmservice.FormAbility`,
moduleName: `entry`,
isCreate: true,
notifyVisibleForms: true,
}
}
});
console.info(`${tcNumber} featureAbility.startAbility res: ${JSON.stringify(res)}`);
} catch (error) {
console.info(`${tcNumber} error: ${JSON.stringify(error)}`);
console.info(`${tcNumber} should not reach here`);
expect().assertFail();
}
}, 2000);
});
/**
* @tc.number: FMS_performanceTest_1000
* @tc.name: Performance test.
* @tc.desc: Enable update forms.
*/
it(`FMS_performanceTest_1000`, 0, async (done) => {
const tcNumber = `FMS_performanceTest_1000`;
const timeout = 100;
commonEvent.subscribe(onAcquiredEventSubscriber, async (err, data) => {
console.info(`${tcNumber} onAcquiredCallback data: ${JSON.stringify(data)}, error: ${JSON.stringify(err)}`);
console.info(`${tcNumber} onAcquiredCallback formId: ${data.data}`);
if (`enableUpdate` == data.parameters.kind) {
const hostTime = data.parameters.hostTime;
console.info(`${tcNumber} hostTime: ${hostTime}`);
expect(hostTime < timeout).assertEqual(true);
commonEvent.unsubscribe(onAcquiredEventSubscriber, () => unsubscribeOnAcquiredCallback(tcNumber));
console.info(`${tcNumber} onAcquiredCallback_enableUpdate end`);
setTimeout(() => {
commonEvent.publish(formOnDeleteEvent, {
parameters: {
formIds: [data.data]
}
}, () => publishOnDeleteCallback(tcNumber, done));
}, 500);
}
});
try {
const res = await featureAbility.startAbility({
want: {
bundleName: `com.ohos.st.formsystemhostk`,
abilityName: `com.ohos.st.formsystemhostk.MainAbility`,
parameters: {
formId: `0`,
name: `Form_Js001`,
bundle: `com.form.formsystemtestserviceg.hmservice`,
ability: `com.form.formsystemtestserviceg.hmservice.FormAbility`,
moduleName: `entry`,
isCreate: true,
enableUpdate: true,
}
}
});
console.info(`${tcNumber} featureAbility.startAbility res: ${JSON.stringify(res)}`);
} catch (error) {
console.info(`${tcNumber} error: ${JSON.stringify(error)}`);
console.info(`${tcNumber} should not reach here`);
expect().assertFail();
}
});
/**
* @tc.number: FMS_performanceTest_1100
* @tc.name: Performance test.
* @tc.desc: Disable update forms.
*/
it(`FMS_performanceTest_1100`, 0, async (done) => {
const tcNumber = `FMS_performanceTest_1100`;
const timeout = 100;
commonEvent.subscribe(onAcquiredEventSubscriber, async (err, data) => {
console.info(`${tcNumber} onAcquiredCallback data: ${JSON.stringify(data)}, error: ${JSON.stringify(err)}`);
console.info(`${tcNumber} onAcquiredCallback formId: ${data.data}`);
if (`disableUpdate` == data.parameters.kind) {
const hostTime = data.parameters.hostTime;
console.info(`${tcNumber} hostTime: ${hostTime}`);
expect(hostTime < timeout).assertEqual(true);
commonEvent.unsubscribe(onAcquiredEventSubscriber, () => unsubscribeOnAcquiredCallback(tcNumber));
console.info(`${tcNumber} onAcquiredCallback_disableUpdate end`);
setTimeout(() => {
commonEvent.publish(formOnDeleteEvent, {
parameters: {
formIds: [data.data]
}
}, () => publishOnDeleteCallback(tcNumber, done));
}, 500);
}
});
try {
const res = await featureAbility.startAbility({
want: {
bundleName: `com.ohos.st.formsystemhostk`,
abilityName: `com.ohos.st.formsystemhostk.MainAbility`,
parameters: {
formId: `0`,
name: `Form_Js001`,
bundle: `com.form.formsystemtestserviceg.hmservice`,
ability: `com.form.formsystemtestserviceg.hmservice.FormAbility`,
moduleName: `entry`,
isCreate: true,
disableUpdate: true
}
}
});
console.info(`${tcNumber} featureAbility.startAbility res: ${JSON.stringify(res)}`);
} catch (error) {
console.info(`${tcNumber} error: ${JSON.stringify(error)}`);
console.info(`${tcNumber} should not reach here`);
expect().assertFail();
}
});
/**
* @tc.number: FMS_performanceTest_1300
* @tc.name: Performance test.
* @tc.desc: Get forms info.
*/
it(`FMS_performanceTest_1300`, 0, async (done) => {
const tcNumber = `FMS_performanceTest_1300`;
const timeout = 10;
const startTime = await systemTime.getCurrentTime();
const data = await formHost.getAllFormsInfo();
console.info(`${tcNumber} getAllFormsInfo result: ${JSON.stringify(data)}`);
const endTime = await systemTime.getCurrentTime();
console.info(`${tcNumber} hostTime: ${JSON.stringify(endTime - startTime)}`);
expect(endTime - startTime < timeout);
done();
});
/**
* @tc.number: FMS_performanceTest_1400
* @tc.name: Performance test.
* @tc.desc: Get forms info by bundle.
*/
it(`FMS_performanceTest_1400`, 0, async (done) => {
const tcNumber = `FMS_performanceTest_1400`;
const timeout = 10;
const startTime = await systemTime.getCurrentTime();
const data = await formHost.getFormsInfo(`com.form.formsystemtestserviceg.hmservice`);
console.info(`${tcNumber} getFormsInfoByBundle result: ${JSON.stringify(data)}`);
const endTime = await systemTime.getCurrentTime();
console.info(`${tcNumber} hostTime: ${JSON.stringify(endTime - startTime)}`);
expect(endTime - startTime < timeout);
done();
});
/**
* @tc.number: FMS_performanceTest_1500
* @tc.name: Performance test.
* @tc.desc: Get forms info by module.
*/
it(`FMS_performanceTest_1500`, 0, async (done) => {
const tcNumber = `FMS_performanceTest_1500`;
const timeout = 10;
const startTime = await systemTime.getCurrentTime();
const data = await formHost.getFormsInfo(`com.form.formsystemtestserviceg.hmservice`, `entry`);
console.info(`${tcNumber} getFormsInfoByModule result: ${JSON.stringify(data)}`);
const endTime = await systemTime.getCurrentTime();
console.info(`${tcNumber} hostTime: ${JSON.stringify(endTime - startTime)}`);
expect(endTime - startTime < timeout);
done();
});
/**
* @tc.number: FMS_performanceTest_1600
* @tc.name: Performance test.
* @tc.desc: Form System Ready.
*/
it(`FMS_performanceTest_1600`, 0, async (done) => {
const tcNumber = `FMS_performanceTest_1600`;
const timeout = 10;
const startTime = await systemTime.getCurrentTime();
const data = await formHost.isSystemReady();
console.info(`${tcNumber} isSystemReady result: ${JSON.stringify(data)}`);
const endTime = await systemTime.getCurrentTime();
console.info(`${tcNumber} hostTime: ${JSON.stringify(endTime - startTime)}`);
expect(endTime - startTime < timeout);
done();
});
});
}
/*
* Copyright (c) 2021 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 from './FmsPerformanceTest.test.ets';
export default function testsuite() {
test();
}
\ No newline at end of file
{
"string": [
{
"name": "entry_MainAbility",
"value": "formsttest"
},
{
"name": "description_mainability",
"value": "ETS_Empty Ability"
},
{
"name": "TestAbility_desc",
"value": "description"
},
{
"name": "TestAbility_label",
"value": "label"
}
]
}
\ No newline at end of file
......@@ -18,8 +18,8 @@
"name": ".FormReleaseSTApp",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -117,33 +118,13 @@
{
"name": "FMS_FormOnReleased_commonEvent"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name":"ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason":"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name":"ohos.permission.REMOVE_CACHE_FILES",
"reason":"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name":"ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name":"ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason":"need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
},
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
],
"js": [
......
......@@ -18,8 +18,8 @@
"name": ".FormStateSTApp",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -119,33 +120,13 @@
"name": "FMS_FormSupply_commonEvent",
"reason": "need use FormSupply commonEvent"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name":"ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason":"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name":"ohos.permission.REMOVE_CACHE_FILES",
"reason":"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name":"ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name":"ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason":"need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
},
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
],
"js": [
......
......@@ -18,8 +18,8 @@
"name": ".FormStateSTApp",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -119,33 +120,13 @@
"name": "FMS_FormSupply_commonEvent",
"reason": "need use FormSupply commonEvent"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name":"ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason":"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name":"ohos.permission.REMOVE_CACHE_FILES",
"reason":"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name":"ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name":"ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason":"need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
},
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
],
"js": [
......
......@@ -18,8 +18,8 @@
"name": ".FormStateSTApp",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -119,33 +120,13 @@
"name": "FMS_FormSupply_commonEvent",
"reason": "need use FormSupply commonEvent"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name":"ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason":"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name":"ohos.permission.REMOVE_CACHE_FILES",
"reason":"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name":"ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name":"ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason":"need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
},
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
],
"js": [
......
......@@ -18,8 +18,8 @@
"name": ".FormStateSTApp",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -119,37 +120,13 @@
"name": "FMS_FormSupply_commonEvent",
"reason": "need use FormSupply commonEvent"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name":"ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason":"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name":"ohos.permission.REMOVE_CACHE_FILES",
"reason":"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name":"ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name":"ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason":"need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
},
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
},
{
"name":"ohos.permission.START_INVISIBLE_ABILITY",
"reason":"need use ohos.permission.START_INVISIBLE_ABILITY"
}
],
"js": [
......
......@@ -18,8 +18,8 @@
"name": ".FormStateSTApp",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -119,33 +120,13 @@
"name": "FMS_FormSupply_commonEvent",
"reason": "need use FormSupply commonEvent"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name":"ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason":"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name":"ohos.permission.REMOVE_CACHE_FILES",
"reason":"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name":"ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name":"ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason":"need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
},
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
],
"js": [
......
......@@ -18,8 +18,8 @@
"name": ".FormStressSTApp",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -135,36 +136,13 @@
"name": "FMS_FormDelete_commonEvent",
"reason": "need use delete commonEvent"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason": "need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason": "need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name": "ohos.permission.REMOVE_CACHE_FILES",
"reason": "need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name": "ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason": "need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name": "ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason": "need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
},
{
"name": "ohos.permission.CLEAN_APPLICATION_DATA"
},
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
],
"js": [
......
......@@ -18,8 +18,8 @@
"name": ".FormUpdateSTApp",
"mainAbility": ".MainAbility",
"deviceType": [
"default",
"tablet"
"default",
"tablet"
],
"distro": {
"deliveryWithInstall": true,
......@@ -41,6 +41,7 @@
],
"visible": true,
"name": ".MainAbility",
"srcPath": "MainAbility",
"srcLanguage": "ets",
"icon": "$media:icon",
"description": "$string:description_mainability",
......@@ -128,33 +129,13 @@
"name": "FMS_FormOnRequest_commonEvent",
"reason": "need use OnRequest commonEvent"
},
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name":"ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason":"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name":"ohos.permission.REMOVE_CACHE_FILES",
"reason":"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name":"ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name":"ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"reason":"need use ohos.permission.CLEAN_BACKGROUND_PROCESSES"
},
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
],
"js": [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册