提交 3865536b 编写于 作者: R ry 提交者: Gitee

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

Signed-off-by: Nry <ry.renyi@huawei.com>
...@@ -32,6 +32,16 @@ ...@@ -32,6 +32,16 @@
} }
] ]
} }
],
"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
...@@ -31,6 +31,16 @@ ...@@ -31,6 +31,16 @@
} }
] ]
} }
],
"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
...@@ -1002,5 +1002,186 @@ export default function abilityTest() { ...@@ -1002,5 +1002,186 @@ export default function abilityTest() {
expect(exceptionFlag).assertEqual(true); expect(exceptionFlag).assertEqual(true);
done(); done();
}) })
/**
* @tc.number: ACTS_CommonComponent_Call_5500
* @tc.name: The callee exits abnormally after the caller requests the call to be called successfully.
* @tc.desc: Verify that the caller can register the server's death listener.
*/
it('ACTS_CommonComponent_Call_5500', 0, async function (done) {
console.log('ACTS_CommonComponent_Call_5500 begin');
function releaseCallback(data) {
console.log('ACTS_CommonComponent_Call_5500 releaseCallBack:' + data);
expect(data).assertEqual("died");
done();
}
let bundleNameCallee = "com.example.systemappcalleea";
let abilityNameCallee = "com.example.systemappcalleea.MainAbility";
let want = {
bundleName: bundleNameCallee,
abilityName: abilityNameCallee,
}
let caller = await globalThis.globalThis.abilityContext.startAbilityByCall(want);
if (typeof caller !== "object" || caller == null) {
console.log('ACTS_CommonComponent_Call_5500 startAbilityByCall fail');
expect().assertFail();
}
try {
caller.on('release', releaseCallback);
} catch (e) {
console.log('ACTS_CommonComponent_Call_5500 Caller onRelease fail ' + e);
expect().assertFail();
}
await appManager.killProcessesByBundleName(bundleNameCallee);
})
/**
* @tc.number: ACTS_CommonComponent_Call_5600
* @tc.name: The callee exits abnormally after the caller requests the call to be called successfully.
* @tc.desc: Verify that the caller can unregister the server's death listener.
*/
it('ACTS_CommonComponent_Call_5600', 0, async function (done) {
console.log('ACTS_CommonComponent_Call_5600 begin');
function releaseCallback(data) {
console.log('ACTS_CommonComponent_Call_5600 releaseCallBack:' + data);
expect(data).assertEqual("died");
done();
}
let bundleNameCallee = "com.example.systemappcalleea";
let abilityNameCallee = "com.example.systemappcalleea.MainAbility";
let want = {
bundleName: bundleNameCallee,
abilityName: abilityNameCallee,
}
let caller = await globalThis.globalThis.abilityContext.startAbilityByCall(want);
if (typeof caller !== "object" || caller == null) {
console.log('ACTS_CommonComponent_Call_5600 startAbilityByCall fail');
expect().assertFail();
}
try {
caller.off('release', releaseCallback);
} catch (e) {
console.log('ACTS_CommonComponent_Call_5600 Caller onRelease fail ' + e);
expect().assertFail();
done();
}
await appManager.killProcessesByBundleName(bundleNameCallee);
done();
})
/**
* @tc.number: ACTS_CommonComponent_Call_5700
* @tc.name: The callee exits abnormally after the caller requests the call to be called successfully.
* @tc.desc: Verify that the caller can unregister the server's death listener.
*/
it('ACTS_CommonComponent_Call_5700', 0, async function (done) {
console.log('ACTS_CommonComponent_Call_5700 begin');
function releaseCallback(data) {
console.log('ACTS_CommonComponent_Call_5700 releaseCallBack:' + data);
expect(data).assertEqual("died");
done();
}
let bundleNameCallee = "com.example.systemappcalleea";
let abilityNameCallee = "com.example.systemappcalleea.MainAbility";
let want = {
bundleName: bundleNameCallee,
abilityName: abilityNameCallee,
}
let caller = await globalThis.globalThis.abilityContext.startAbilityByCall(want);
if (typeof caller !== "object" || caller == null) {
console.log('ACTS_CommonComponent_Call_5700 startAbilityByCall fail');
expect().assertFail();
}
let flag = false;
try {
caller.off('release');
} catch (e) {
console.log('ACTS_CommonComponent_Call_5700 Caller onRelease fail ' + e);
flag = true;
}
await appManager.killProcessesByBundleName(bundleNameCallee);
expect(flag).assertEqual(true);
done();
})
/**
* @tc.number: ACTS_CommonComponent_Call_5800
* @tc.name: The callee exits abnormally after the caller requests the call to be called successfully.
* @tc.desc: Verify that the caller can unregister the server's death listener.
*/
it('ACTS_CommonComponent_Call_5800', 0, async function (done) {
console.log('ACTS_CommonComponent_Call_5800 begin');
function releaseCallback(data) {
console.log('ACTS_CommonComponent_Call_5800 releaseCallBack:' + data);
expect(data).assertEqual("died");
done();
}
let bundleNameCallee = "com.example.systemappcalleea";
let abilityNameCallee = "com.example.systemappcalleea.MainAbility";
let want = {
bundleName: bundleNameCallee,
abilityName: abilityNameCallee,
}
let caller = await globalThis.globalThis.abilityContext.startAbilityByCall(want);
if (typeof caller !== "object" || caller == null) {
console.log('ACTS_CommonComponent_Call_5800 startAbilityByCall fail');
expect().assertFail();
}
let flag = false;
try {
caller.off('Not release', releaseCallback);
} catch (e) {
console.log('ACTS_CommonComponent_Call_5800 Caller onRelease fail ' + e);
flag = true;
}
await appManager.killProcessesByBundleName(bundleNameCallee);
expect(flag).assertEqual(true);
done();
})
/**
* @tc.number: ACTS_CommonComponent_Call_5900
* @tc.name: The callee exits abnormally after the caller requests the call to be called successfully.
* @tc.desc: Verify that the caller can unregister the server's death listener.
*/
it('ACTS_CommonComponent_Call_5900', 0, async function (done) {
console.log('ACTS_CommonComponent_Call_5900 begin');
function releaseCallback(data) {
console.log('ACTS_CommonComponent_Call_5900 releaseCallBack:' + data);
expect(data).assertEqual("died");
done();
}
let bundleNameCallee = "com.example.systemappcalleea";
let abilityNameCallee = "com.example.systemappcalleea.MainAbility";
let want = {
bundleName: bundleNameCallee,
abilityName: abilityNameCallee,
}
let caller = await globalThis.globalThis.abilityContext.startAbilityByCall(want);
if (typeof caller !== "object" || caller == null) {
console.log('ACTS_CommonComponent_Call_5900 startAbilityByCall fail');
expect().assertFail();
}
let flag = false;
try {
caller.off('Not release');
} catch (e) {
console.log('ACTS_CommonComponent_Call_5900 Caller onRelease fail ' + e);
flag = true;
}
await appManager.killProcessesByBundleName(bundleNameCallee);
expect(flag).assertEqual(true);
done();
})
}) })
} }
\ No newline at end of file
...@@ -88,8 +88,8 @@ export default function abilityTest() { ...@@ -88,8 +88,8 @@ export default function abilityTest() {
/** /**
* @tc.number: ACTS_CommonComponent_Call_1100 * @tc.number: ACTS_CommonComponent_Call_1100
* @tc.name: The parameter "method" of the Caller.callWithResult function is an empty string. * @tc.name: The thirdApp is not allowed to startAbilityByCall.
* @tc.desc: Verify that the parameter "method" of the Caller.callWithResult function is an empty string. * @tc.desc: Verify that the thirdApp is not allowed to startAbilityByCall.
*/ */
it('ACTS_CommonComponent_Call_1100', 0, async function (done) { it('ACTS_CommonComponent_Call_1100', 0, async function (done) {
console.log('ACTS_CommonComponent_Call_1100 begin'); console.log('ACTS_CommonComponent_Call_1100 begin');
...@@ -111,8 +111,8 @@ export default function abilityTest() { ...@@ -111,8 +111,8 @@ export default function abilityTest() {
/** /**
* @tc.number: ACTS_CommonComponent_Call_1500 * @tc.number: ACTS_CommonComponent_Call_1500
* @tc.name: The parameter "method" of the Caller.callWithResult function is an empty string. * @tc.name: The thirdApp is not allowed to startAbilityByCall.
* @tc.desc: Verify that the parameter "method" of the Caller.callWithResult function is an empty string. * @tc.desc: Verify that the thirdApp is not allowed to startAbilityByCall.
*/ */
it('ACTS_CommonComponent_Call_1500', 0, async function (done) { it('ACTS_CommonComponent_Call_1500', 0, async function (done) {
console.log('ACTS_CommonComponent_Call_1500 begin'); console.log('ACTS_CommonComponent_Call_1500 begin');
...@@ -122,20 +122,20 @@ export default function abilityTest() { ...@@ -122,20 +122,20 @@ export default function abilityTest() {
} }
globalThis.abilityContext.startAbilityByCall(want) globalThis.abilityContext.startAbilityByCall(want)
.then(data => { .then(data => {
console.info(`ACTS_CommonComponent_Call_1100 startAbilityByCall SUCCESS`); console.info(`ACTS_CommonComponent_Call_1500 startAbilityByCall SUCCESS`);
expect().assertFail(); expect().assertFail();
done(); done();
}) })
.catch(error => { .catch(error => {
console.info(`ACTS_CommonComponent_Call_1100 startAbilityByCall Catch`); console.info(`ACTS_CommonComponent_Call_1500 startAbilityByCall Catch`);
done(); done();
}); });
}) })
/** /**
* @tc.number: ACTS_CommonComponent_Call_1600 * @tc.number: ACTS_CommonComponent_Call_1600
* @tc.name: The parameter "method" of the Caller.callWithResult function is an empty string. * @tc.name: The thirdApp is not allowed to startAbilityByCall.
* @tc.desc: Verify that the parameter "method" of the Caller.callWithResult function is an empty string. * @tc.desc: Verify that the thirdApp is not allowed to startAbilityByCall.
*/ */
it('ACTS_CommonComponent_Call_1600', 0, async function (done) { it('ACTS_CommonComponent_Call_1600', 0, async function (done) {
console.log('ACTS_CommonComponent_Call_1600 begin'); console.log('ACTS_CommonComponent_Call_1600 begin');
...@@ -145,12 +145,12 @@ export default function abilityTest() { ...@@ -145,12 +145,12 @@ export default function abilityTest() {
} }
globalThis.abilityContext.startAbilityByCall(want) globalThis.abilityContext.startAbilityByCall(want)
.then(data => { .then(data => {
console.info(`ACTS_CommonComponent_Call_1100 startAbilityByCall SUCCESS`); console.info(`ACTS_CommonComponent_Call_1600 startAbilityByCall SUCCESS`);
expect().assertFail(); expect().assertFail();
done(); done();
}) })
.catch(error => { .catch(error => {
console.info(`ACTS_CommonComponent_Call_1100 startAbilityByCall Catch`); console.info(`ACTS_CommonComponent_Call_1600 startAbilityByCall Catch`);
done(); done();
}); });
}) })
......
...@@ -48,7 +48,7 @@ export default function singleusermodelTest() { ...@@ -48,7 +48,7 @@ export default function singleusermodelTest() {
console.debug("====>start connectAbilityWithAccount====>"); console.debug("====>start connectAbilityWithAccount====>");
connId = globalThis.abilityContext.connectAbilityWithAccount( connId = globalThis.abilityContext.connectServiceExtensionAbilityWithAccount(
{ {
bundleName: "com.singleusermodel.actssingleusertest", bundleName: "com.singleusermodel.actssingleusertest",
abilityName: "ServiceAbility1", abilityName: "ServiceAbility1",
...@@ -86,7 +86,7 @@ export default function singleusermodelTest() { ...@@ -86,7 +86,7 @@ export default function singleusermodelTest() {
console.info('executeShellCommand : err : ' + JSON.stringify(err)); console.info('executeShellCommand : err : ' + JSON.stringify(err));
}) })
console.debug('ACTS_ExtensionSingleUserModel_0500====>timeout====>'); console.debug('ACTS_ExtensionSingleUserModel_0500====>timeout====>');
await globalThis.abilityContext.disconnectAbility(connId).then((data) => { await globalThis.abilityContext.disconnectServiceExtensionAbility(connId).then((data) => {
console.debug("====>data is====>" + JSON.stringify(data)); console.debug("====>data is====>" + JSON.stringify(data));
}) })
}, START_ABILITY_TIMEOUT); }, START_ABILITY_TIMEOUT);
......
...@@ -114,6 +114,14 @@ ...@@ -114,6 +114,14 @@
{ {
"name": "ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS_EXTENSION", "name": "ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS_EXTENSION",
"reason": "need use ohos.permission.MANAGE_LOCAL_ACCOUNTS" "reason": "need use ohos.permission.MANAGE_LOCAL_ACCOUNTS"
},
{
"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"
} }
] ]
} }
......
...@@ -61,6 +61,16 @@ ...@@ -61,6 +61,16 @@
"type": "service", "type": "service",
"visible": true "visible": true
} }
],
"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"
}
] ]
} }
} }
...@@ -81,13 +81,12 @@ export default function abilityTest() { ...@@ -81,13 +81,12 @@ export default function abilityTest() {
let id; let id;
let connId; let connId;
function subscribeCallBack(err, data) { function subscribeCallBack(err, data) {
console.debug("====>ACTS_ConnectAbility_0100 7 CallBack data:====>" + JSON.stringify(data)); console.debug("====>ACTS_ConnectAbility_0100 7 CallBack data:====>" + JSON.stringify(data));
clearTimeout(id); clearTimeout(id);
expect(data.event).assertEqual("AMS_ConnectAbility_0100_commonEvent"); expect(data.event).assertEqual("AMS_ConnectAbility_0100_commonEvent");
console.debug("====>ACTS_ConnectAbility_0100 5 "); console.debug("====>ACTS_ConnectAbility_0100 5 ");
globalThis.abilityContext.disconnectAbility( globalThis.abilityContext.disconnectServiceExtensionAbility(
connId, connId,
(error, data) => { (error, data) => {
console.log('featureAbilityTest DisconnectAbility result errCode : ' + error.code + " data: " + data) console.log('featureAbilityTest DisconnectAbility result errCode : ' + error.code + " data: " + data)
...@@ -98,7 +97,6 @@ export default function abilityTest() { ...@@ -98,7 +97,6 @@ export default function abilityTest() {
} }
commonEvent.createSubscriber(subscriberInfoStartAbility_0100).then(async (data) => { commonEvent.createSubscriber(subscriberInfoStartAbility_0100).then(async (data) => {
console.debug("====>ACTS_ConnectAbility_0100 2 Subscriber1====>"); console.debug("====>ACTS_ConnectAbility_0100 2 Subscriber1====>");
subscriber = data; subscriber = data;
...@@ -114,7 +112,7 @@ export default function abilityTest() { ...@@ -114,7 +112,7 @@ export default function abilityTest() {
expect().assertFail(); expect().assertFail();
console.debug('AMS_ConnectAbility_0100 timeout'); console.debug('AMS_ConnectAbility_0100 timeout');
commonEvent.unsubscribe(subscriber, unSubscribeCallback) commonEvent.unsubscribe(subscriber, unSubscribeCallback)
globalThis.abilityContext.disconnectAbility( globalThis.abilityContext.disconnectServiceExtensionAbility(
connId, connId,
(error, data) => { (error, data) => {
console.log('featureAbilityTest DisconnectAbility result errCode : ' + error.code + " data: " + data) console.log('featureAbilityTest DisconnectAbility result errCode : ' + error.code + " data: " + data)
...@@ -139,7 +137,7 @@ export default function abilityTest() { ...@@ -139,7 +137,7 @@ export default function abilityTest() {
id = setTimeout(timeout, START_ABILITY_TIMEOUT); id = setTimeout(timeout, START_ABILITY_TIMEOUT);
console.debug("====>ACTS_ConnectAbility_0100 3 "); console.debug("====>ACTS_ConnectAbility_0100 3 ");
connId = await globalThis.abilityContext.connectAbility( connId = await globalThis.abilityContext.connectServiceExtensionAbility(
{ {
bundleName: "com.example.actsconnectabilitysystemabilitytest", bundleName: "com.example.actsconnectabilitysystemabilitytest",
abilityName: "com.example.actsconnectabilitysystemabilitytest.ServiceAbility", abilityName: "com.example.actsconnectabilitysystemabilitytest.ServiceAbility",
...@@ -152,7 +150,6 @@ export default function abilityTest() { ...@@ -152,7 +150,6 @@ export default function abilityTest() {
} }
); );
console.debug("====>ACTS_ConnectAbility_0100 4 "); console.debug("====>ACTS_ConnectAbility_0100 4 ");
}) })
/* /*
......
...@@ -26,6 +26,7 @@ import applicationContext from '@ohos.application.context' ...@@ -26,6 +26,7 @@ import applicationContext from '@ohos.application.context'
import commonEvent from '@ohos.commonEvent'; import commonEvent from '@ohos.commonEvent';
import ability from '@ohos.ability.ability'; import ability from '@ohos.ability.ability';
import abilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry'; import abilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry';
import common from '@ohos.app.ability.common';
var EXTENSION_INFO_ERR = 16000001 var EXTENSION_INFO_ERR = 16000001
var INNER_ERROR = 16000050 var INNER_ERROR = 16000050
...@@ -312,8 +313,21 @@ export default function ApiCoverTest() { ...@@ -312,8 +313,21 @@ export default function ApiCoverTest() {
*/ */
it('SUB_AA_ABILITY_Extension_API_012', 0, async function (done) { it('SUB_AA_ABILITY_Extension_API_012', 0, async function (done) {
try { try {
globalThis.abilityContext.getApplicationContext().killProcessesBySelf(); let info: appManager.ProcessRunningInfo;
globalThis.abilityContext.getApplicationContext().killProcessesBySelf((err, data) => { let stageContext: common.AbilityStageContext = globalThis.stageContext;
let abilityContext: common.AbilityContext = globalThis.abilityContext;
let appContext: common.ApplicationContext = abilityContext.getApplicationContext();
let baseContext: common.BaseContext = stageContext;
let context: common.Context = stageContext;
let el1 = common.AreaMode.EL1;
let el2 = common.AreaMode.EL2;
let eventHub: common.EventHub = context.eventHub;
let permissionRequestResult: common.PermissionRequestResult;
let abilityResult: common.AbilityResult;
let connectOptions: common.ConnectOptions;
appContext.killProcessesBySelf();
appContext.killProcessesBySelf((err, data) => {
console.log(`killProcessesBySelf, err: ${JSON.stringify(err)}, data: ${JSON.stringify(data)}`); console.log(`killProcessesBySelf, err: ${JSON.stringify(err)}, data: ${JSON.stringify(data)}`);
}) })
let abilityDelegator: abilityDelegatorRegistry.AbilityDelegator; let abilityDelegator: abilityDelegatorRegistry.AbilityDelegator;
......
import FormExtensionAbility from '@ohos.app.form.FormExtensionAbility'; import FormExtensionAbility from '@ohos.app.form.FormExtensionAbility';
import formBindingData from '@ohos.app.form.formBindingData'; import formBindingData from '@ohos.app.form.formBindingData';
import formInfo from '@ohos.app.form.formInfo'; import formInfo from '@ohos.app.form.formInfo';
import common from '@ohos.app.ability.common';
export default class FormModuleAbility extends FormExtensionAbility { export default class FormModuleAbility extends FormExtensionAbility {
onAddForm(want) { onAddForm(want) {
// Called to return a FormBindingData object. // Called to return a FormBindingData object.
console.info("FormAbility onAddForm") console.info("FormAbility onAddForm")
globalThis.abilityContext = this.context; globalThis.abilityContext = this.context;
let formExtensionAbilities: common.FormExtensionContext = this.context;
let extensionAbilities: common.ExtensionContext = this.context;
let formData = { let formData = {
}; };
return formBindingData.createFormBindingData(formData); return formBindingData.createFormBindingData(formData);
......
...@@ -44,6 +44,7 @@ describe('ActsGetWantTest', function () { ...@@ -44,6 +44,7 @@ describe('ActsGetWantTest', function () {
mykey3: "str", mykey3: "str",
mykey4: [false, true, false], mykey4: [false, true, false],
mykey5: ["str", "STR", "helloopenharmony"], mykey5: ["str", "STR", "helloopenharmony"],
mykey6: {"subKey1":"STRING", "subKey2":10, "subKey3":true},
}, },
} }
}).then((data) => { }).then((data) => {
...@@ -64,6 +65,9 @@ describe('ActsGetWantTest', function () { ...@@ -64,6 +65,9 @@ describe('ActsGetWantTest', function () {
expect(data.want.parameters.mykey5[0]).assertEqual("str"); expect(data.want.parameters.mykey5[0]).assertEqual("str");
expect(data.want.parameters.mykey5[1]).assertEqual("STR"); expect(data.want.parameters.mykey5[1]).assertEqual("STR");
expect(data.want.parameters.mykey5[2]).assertEqual("helloopenharmony"); expect(data.want.parameters.mykey5[2]).assertEqual("helloopenharmony");
expect(data.want.parameters.mykey6["subKey1"]).assertEqual("STRING");
expect(data.want.parameters.mykey6["subKey2"]).assertEqual(10);
expect(data.want.parameters.mykey6["subKey3"]).assertEqual(true);
setTimeout(()=>{ setTimeout(()=>{
done(); done();
}, TIMEOUT_NUMBER); }, TIMEOUT_NUMBER);
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
"name": ".entry", "name": ".entry",
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"deviceType": [ "deviceType": [
"tablet",
"default" "default"
], ],
"distro": { "distro": {
...@@ -91,4 +92,4 @@ ...@@ -91,4 +92,4 @@
}, },
"srcPath": "" "srcPath": ""
} }
} }
\ No newline at end of file
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"srcPath":"", "srcPath":"",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
"package": "com.example.actsaccounttest", "package": "com.example.actsaccounttest",
"name": ".MyApplication", "name": ".MyApplication",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"srcPath":"", "srcPath":"",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"srcPath":"", "srcPath":"",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"srcPath":"", "srcPath":"",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"srcPath":"", "srcPath":"",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
"package": "com.example.actsaccountaccessiblefirst", "package": "com.example.actsaccountaccessiblefirst",
"name": ".MyApplication", "name": ".MyApplication",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
"package": "com.example.actsaccountaccessiblesecond", "package": "com.example.actsaccountaccessiblesecond",
"name": ".MyApplication", "name": ".MyApplication",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
"module": { "module": {
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"default", "default",
"tablet" "tablet"
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
"package": "com.example.actsaccountOauthtoken", "package": "com.example.actsaccountOauthtoken",
"name": ".MyApplication", "name": ".MyApplication",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
"package": "com.example.actsaccountsceneaccessible", "package": "com.example.actsaccountsceneaccessible",
"name": ".MyApplication", "name": ".MyApplication",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
"package": "com.example.actsaccountsceneappaccess", "package": "com.example.actsaccountsceneappaccess",
"name": ".MyApplication", "name": ".MyApplication",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
"package": "com.example.actsaccountsceneonoff", "package": "com.example.actsaccountsceneonoff",
"name": ".MyApplication", "name": ".MyApplication",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
"package": "com.example.actsscenegetallaccounts", "package": "com.example.actsscenegetallaccounts",
"name": ".MyApplication", "name": ".MyApplication",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"srcPath":"", "srcPath":"",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
"mainAbility": "com.open.harmony.settings.MainAbility", "mainAbility": "com.open.harmony.settings.MainAbility",
"srcPath": "", "srcPath": "",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -20,11 +20,17 @@ ...@@ -20,11 +20,17 @@
"type": "ShellKit", "type": "ShellKit",
"run-command": [ "run-command": [
"param set persist.ace.testmode.enabled 1", "param set persist.ace.testmode.enabled 1",
"param set persist.sys.suspend_manager_enabled 0",
"reboot",
"power-shell wakeup", "power-shell wakeup",
"hilog -Q pidoff", "hilog -Q pidoff",
"hilog -b DEBUG", "hilog -b DEBUG",
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100", "uinput -T -d 300 600 -m 300 600 300 100 -u 300 100",
"power-shell setmode 602" "power-shell setmode 602"
],
"teardown-command": [
"param set persist.sys.suspend_manager_enabled 1",
"reboot"
] ]
} }
] ]
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"srcPath": "MainAbility", "srcPath": "MainAbility",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -70,7 +70,7 @@ export default function UiTest() { ...@@ -70,7 +70,7 @@ export default function UiTest() {
expect(await Button1.getText() == 'next page').assertTrue() expect(await Button1.getText() == 'next page').assertTrue()
let Button2 = await driver.findComponent(BY.text('next', MatchPattern.STARTS_WITH)) let Button2 = await driver.findComponent(BY.text('next', MatchPattern.STARTS_WITH))
expect(await Button2.getText() == 'next page').assertTrue() expect(await Button2.getText() == 'next page').assertTrue()
let Button3 = await driver.findComponent(BY.text('page', MatchPattern.ENDS_WITH)) let Button3 = await driver.findComponent(BY.text('xt page', MatchPattern.ENDS_WITH))
expect(await Button3.getText() == 'next page').assertTrue() expect(await Button3.getText() == 'next page').assertTrue()
let Button4 = await driver.findComponent(BY.text('ext', MatchPattern.CONTAINS)) let Button4 = await driver.findComponent(BY.text('ext', MatchPattern.CONTAINS))
expect(await Button4.getText() == 'next page').assertTrue() expect(await Button4.getText() == 'next page').assertTrue()
...@@ -476,7 +476,7 @@ export default function UiTest() { ...@@ -476,7 +476,7 @@ export default function UiTest() {
expect(await Button1.getText() == 'next page').assertTrue() expect(await Button1.getText() == 'next page').assertTrue()
let Button2 = await driver.findComponent(ON.text('next',MatchPattern.STARTS_WITH)) let Button2 = await driver.findComponent(ON.text('next',MatchPattern.STARTS_WITH))
expect(await Button2.getText() == 'next page').assertTrue() expect(await Button2.getText() == 'next page').assertTrue()
let Button3 = await driver.findComponent(ON.text('page',MatchPattern.ENDS_WITH)) let Button3 = await driver.findComponent(ON.text('xt page',MatchPattern.ENDS_WITH))
expect(await Button3.getText() == 'next page').assertTrue() expect(await Button3.getText() == 'next page').assertTrue()
let Button4 = await driver.findComponent(ON.text('ext',MatchPattern.CONTAINS)) let Button4 = await driver.findComponent(ON.text('ext',MatchPattern.CONTAINS))
expect(await Button4.getText() == 'next page').assertTrue() expect(await Button4.getText() == 'next page').assertTrue()
...@@ -1372,25 +1372,49 @@ export default function UiTest() { ...@@ -1372,25 +1372,49 @@ export default function UiTest() {
await startAbility('com.uitestScene.acts', 'com.uitestScene.acts.MainAbility') await startAbility('com.uitestScene.acts', 'com.uitestScene.acts.MainAbility')
let driver = Driver.create() let driver = Driver.create()
await driver.delayMs(waitUiReadyMs) await driver.delayMs(waitUiReadyMs)
await driver.delayMs(waitUiReadyMs)
await driver.setDisplayRotation(DisplayRotation.ROTATION_90)
let rotation1 = await driver.getDisplayRotation()
expect(rotation1 == DisplayRotation.ROTATION_90).assertTrue()
await driver.delayMs(waitUiReadyMs)
await driver.setDisplayRotation(DisplayRotation.ROTATION_180) await driver.setDisplayRotation(DisplayRotation.ROTATION_180)
let rotation2 = await driver.getDisplayRotation() let rotation = await driver.getDisplayRotation()
expect(rotation2 == DisplayRotation.ROTATION_180).assertTrue() if (rotation == DisplayRotation.ROTATION_180) {
await driver.delayMs(waitUiReadyMs) console.info('The device is displayed in vertical on default')
await driver.setDisplayRotation(DisplayRotation.ROTATION_90)
await driver.delayMs(waitUiReadyMs)
let rotation1 = await driver.getDisplayRotation()
expect(rotation1 == DisplayRotation.ROTATION_90)
await driver.setDisplayRotation(DisplayRotation.ROTATION_180)
await driver.delayMs(waitUiReadyMs)
let rotation2 = await driver.getDisplayRotation()
expect(rotation2 == DisplayRotation.ROTATION_180)
await driver.setDisplayRotation(DisplayRotation.ROTATION_270)
await driver.delayMs(waitUiReadyMs)
let rotation3 = await driver.getDisplayRotation()
expect(rotation3 == DisplayRotation.ROTATION_270)
await driver.setDisplayRotation(DisplayRotation.ROTATION_0)
await driver.delayMs(waitUiReadyMs)
let rotation4 = await driver.getDisplayRotation()
expect(rotation4 == DisplayRotation.ROTATION_0)
} else if (rotation == DisplayRotation.ROTATION_270) {
console.info('The device is displayed in horizontal on default')
await driver.setDisplayRotation(DisplayRotation.ROTATION_90)
await driver.delayMs(waitUiReadyMs)
let rotation1 = await driver.getDisplayRotation()
expect(rotation1 == DisplayRotation.ROTATION_0)
await driver.setDisplayRotation(DisplayRotation.ROTATION_270) await driver.setDisplayRotation(DisplayRotation.ROTATION_180)
let rotation3 = await driver.getDisplayRotation() await driver.delayMs(waitUiReadyMs)
expect(rotation3 == DisplayRotation.ROTATION_270).assertTrue() let rotation2 = await driver.getDisplayRotation()
await driver.delayMs(waitUiReadyMs) expect(rotation2 == DisplayRotation.ROTATION_270)
await driver.setDisplayRotation(DisplayRotation.ROTATION_270)
await driver.delayMs(waitUiReadyMs)
let rotation3 = await driver.getDisplayRotation()
expect(rotation3 == DisplayRotation.ROTATION_180)
await driver.setDisplayRotation(DisplayRotation.ROTATION_0) await driver.setDisplayRotation(DisplayRotation.ROTATION_0)
let rotation4 = await driver.getDisplayRotation() await driver.delayMs(waitUiReadyMs)
expect(rotation4== DisplayRotation.ROTATION_0).assertTrue() let rotation4 = await driver.getDisplayRotation()
expect(rotation4 == DisplayRotation.ROTATION_90)
await driver.setDisplayRotation(DisplayRotation.ROTATION_90)
}
await stopApplication('com.uitestScene.acts') await stopApplication('com.uitestScene.acts')
}) })
...@@ -1402,14 +1426,20 @@ export default function UiTest() { ...@@ -1402,14 +1426,20 @@ export default function UiTest() {
it('testSetDisplayRotationEnabled', 0, async function () { it('testSetDisplayRotationEnabled', 0, async function () {
await startAbility('com.uitestScene.acts', 'com.uitestScene.acts.MainAbility') await startAbility('com.uitestScene.acts', 'com.uitestScene.acts.MainAbility')
let driver = Driver.create() let driver = Driver.create()
await driver.setDisplayRotationEnabled(false)
await driver.setDisplayRotation(DisplayRotation.ROTATION_180) await driver.setDisplayRotation(DisplayRotation.ROTATION_180)
await driver.delayMs(waitUiReadyMs) let rotation = await driver.getDisplayRotation()
await driver.setDisplayRotationEnabled(true) await driver.setDisplayRotationEnabled(true)
await driver.setDisplayRotation(DisplayRotation.ROTATION_90) await driver.setDisplayRotation(DisplayRotation.ROTATION_90)
await driver.delayMs(waitUiReadyMs)
let rotation2 = await driver.getDisplayRotation() let rotation2 = await driver.getDisplayRotation()
expect(rotation2 == DisplayRotation.ROTATION_90).assertTrue() if (rotation == DisplayRotation.ROTATION_180) {
await driver.setDisplayRotation(DisplayRotation.ROTATION_0) console.info('The device is displayed in vertical on default')
expect(rotation2 == DisplayRotation.ROTATION_90)
await driver.setDisplayRotation(DisplayRotation.ROTATION_0)
} else {
expect(rotation2 == DisplayRotation.ROTATION_0)
console.info('The device is displayed in horizontal on default')
}
await stopApplication('com.uitestScene.acts') await stopApplication('com.uitestScene.acts')
}) })
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"srcPath": "MainAbility", "srcPath": "MainAbility",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
"name": ".MyApplication", "name": ".MyApplication",
"mainAbility": "com.open.harmony.acetest.MainAbility", "mainAbility": "com.open.harmony.acetest.MainAbility",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
"name": ".MyApplication", "name": ".MyApplication",
"mainAbility": "com.open.harmony.aceEtsApiLack.MainAbility", "mainAbility": "com.open.harmony.aceEtsApiLack.MainAbility",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
"name": ".MyApplication", "name": ".MyApplication",
"mainAbility": "com.open.harmony.aceEtsAttrLack.MainAbility", "mainAbility": "com.open.harmony.aceEtsAttrLack.MainAbility",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
"name": ".MyApplication", "name": ".MyApplication",
"mainAbility": "com.open.harmony.acetestfive.MainAbility", "mainAbility": "com.open.harmony.acetestfive.MainAbility",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
"name": ".MyApplication", "name": ".MyApplication",
"mainAbility": "com.open.harmony.acetestfour.MainAbility", "mainAbility": "com.open.harmony.acetestfour.MainAbility",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -152,7 +152,7 @@ export default function textClockJsunit() { ...@@ -152,7 +152,7 @@ export default function textClockJsunit() {
let strJson = getInspectorByKey('textClock'); let strJson = getInspectorByKey('textClock');
let obj = JSON.parse(strJson); let obj = JSON.parse(strJson);
console.info("[textClockTest06] obj is: " + JSON.stringify(obj)); console.info("[textClockTest06] obj is: " + JSON.stringify(obj));
expect(obj.$attrs.format).assertEqual('20'); expect(obj.$attrs.format).assertEqual('hms');
console.info('textClockTest06 END'); console.info('textClockTest06 END');
done(); done();
}); });
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
"name": ".MyApplication", "name": ".MyApplication",
"mainAbility": "com.open.harmony.acetestthree.MainAbility", "mainAbility": "com.open.harmony.acetestthree.MainAbility",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
"name": ".MyApplication", "name": ".MyApplication",
"mainAbility": "com.open.harmony.acetesttwo.MainAbility", "mainAbility": "com.open.harmony.acetesttwo.MainAbility",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
"name": ".MyApplication", "name": ".MyApplication",
"mainAbility": "com.open.harmony.acedevtest.MainAbility", "mainAbility": "com.open.harmony.acedevtest.MainAbility",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"srcPath": "", "srcPath": "",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"srcPath": "", "srcPath": "",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"srcPath": "", "srcPath": "",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
"name": ".MyApplication", "name": ".MyApplication",
"mainAbility": "com.open.harmony.webview.MainAbility", "mainAbility": "com.open.harmony.webview.MainAbility",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
"mainAbility": "com.acts.ace.xcomponentetstest.MainAbility", "mainAbility": "com.acts.ace.xcomponentetstest.MainAbility",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
"name": ".entry", "name": ".entry",
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
"mainAbility": "com.acts.ace.napitest.MainAbility", "mainAbility": "com.acts.ace.napitest.MainAbility",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
"name": ".MyApplication", "name": ".MyApplication",
"mainAbility": "com.example.aceceshi.MainAbility", "mainAbility": "com.example.aceceshi.MainAbility",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
"name": ".entry", "name": ".entry",
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"tablet",
"phone" "phone"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"tablet",
"phone" "phone"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
{ {
"type": "ShellKit", "type": "ShellKit",
"run-command": [ "run-command": [
"power-shell wakeup",
"power-shell setmode 602",
"param set persist.ace.testmode.enabled 1" "param set persist.ace.testmode.enabled 1"
] ]
} }
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -15,6 +15,12 @@ ...@@ -15,6 +15,12 @@
], ],
"type": "AppInstallKit", "type": "AppInstallKit",
"cleanup-apps": true "cleanup-apps": true
},{
"type": "ShellKit",
"run-command": [
"power-shell wakeup",
"power-shell setmode 602"
]
} }
] ]
} }
\ No newline at end of file
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -15,6 +15,12 @@ ...@@ -15,6 +15,12 @@
], ],
"type": "AppInstallKit", "type": "AppInstallKit",
"cleanup-apps": true "cleanup-apps": true
},{
"type": "ShellKit",
"run-command": [
"power-shell wakeup",
"power-shell setmode 602"
]
} }
] ]
} }
\ No newline at end of file
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
{ {
"type": "ShellKit", "type": "ShellKit",
"run-command": [ "run-command": [
"power-shell wakeup",
"power-shell setmode 602",
"param set persist.ace.testmode.enabled 1" "param set persist.ace.testmode.enabled 1"
] ]
} }
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
{ {
"type": "ShellKit", "type": "ShellKit",
"run-command": [ "run-command": [
"power-shell wakeup",
"power-shell setmode 602",
"param set persist.ace.testmode.enabled 1" "param set persist.ace.testmode.enabled 1"
] ]
} }
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -15,6 +15,12 @@ ...@@ -15,6 +15,12 @@
], ],
"type": "AppInstallKit", "type": "AppInstallKit",
"cleanup-apps": true "cleanup-apps": true
},{
"type": "ShellKit",
"run-command": [
"power-shell wakeup",
"power-shell setmode 602"
]
} }
] ]
} }
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -14,6 +14,12 @@ ...@@ -14,6 +14,12 @@
], ],
"type": "AppInstallKit", "type": "AppInstallKit",
"cleanup-apps": true "cleanup-apps": true
},{
"type": "ShellKit",
"run-command": [
"power-shell wakeup",
"power-shell setmode 602"
]
} }
] ]
} }
\ No newline at end of file
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"srcPath": "", "srcPath": "",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -14,6 +14,12 @@ ...@@ -14,6 +14,12 @@
], ],
"type": "AppInstallKit", "type": "AppInstallKit",
"cleanup-apps": true "cleanup-apps": true
},{
"type": "ShellKit",
"run-command": [
"power-shell wakeup",
"power-shell setmode 602"
]
} }
] ]
} }
\ No newline at end of file
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
"package": "com.example.accessiblecaptionconfiguration", "package": "com.example.accessiblecaptionconfiguration",
"name": ".entry", "name": ".entry",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -14,6 +14,12 @@ ...@@ -14,6 +14,12 @@
], ],
"type": "AppInstallKit", "type": "AppInstallKit",
"cleanup-apps": true "cleanup-apps": true
},{
"type": "ShellKit",
"run-command": [
"power-shell wakeup",
"power-shell setmode 602"
]
} }
] ]
} }
\ No newline at end of file
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
"package": "com.example.accessiblecheckability", "package": "com.example.accessiblecheckability",
"name": ".entry", "name": ".entry",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -14,6 +14,12 @@ ...@@ -14,6 +14,12 @@
], ],
"type": "AppInstallKit", "type": "AppInstallKit",
"cleanup-apps": true "cleanup-apps": true
},{
"type": "ShellKit",
"run-command": [
"power-shell wakeup",
"power-shell setmode 602"
]
} }
] ]
} }
\ No newline at end of file
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
"package": "com.example.accessibleregisterstate", "package": "com.example.accessibleregisterstate",
"name": ".entry", "name": ".entry",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -14,6 +14,12 @@ ...@@ -14,6 +14,12 @@
], ],
"type": "AppInstallKit", "type": "AppInstallKit",
"cleanup-apps": true "cleanup-apps": true
},{
"type": "ShellKit",
"run-command": [
"power-shell wakeup",
"power-shell setmode 602"
]
} }
] ]
} }
\ No newline at end of file
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
"package": "com.example.accessiblesendevent", "package": "com.example.accessiblesendevent",
"name": ".entry", "name": ".entry",
"deviceType": [ "deviceType": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
{ {
"type": "ShellKit", "type": "ShellKit",
"run-command": [ "run-command": [
"power-shell wakeup",
"power-shell setmode 602",
"param set persist.ace.testmode.enabled 1" "param set persist.ace.testmode.enabled 1"
], ],
"teardown-command":[ "teardown-command":[
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"description": "$string:entry_desc", "description": "$string:entry_desc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"tablet",
"default", "default",
"phone", "phone",
"tablet" "tablet"
......
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
{ {
"type": "ShellKit", "type": "ShellKit",
"run-command": [ "run-command": [
"power-shell wakeup",
"power-shell setmode 602",
"param set persist.ace.testmode.enabled 1" "param set persist.ace.testmode.enabled 1"
], ],
"teardown-command":[ "teardown-command":[
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"description": "$string:entry_desc", "description": "$string:entry_desc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"tablet",
"default", "default",
"phone", "phone",
"tablet" "tablet"
......
...@@ -19,6 +19,9 @@ ...@@ -19,6 +19,9 @@
{ {
"type": "ShellKit", "type": "ShellKit",
"run-command": [ "run-command": [
"power-shell wakeup",
"power-shell setmode 602",
"uinput -T -m 500 1000 500 500 400",
"param set persist.ace.testmode.enabled 1" "param set persist.ace.testmode.enabled 1"
], ],
"teardown-command":[ "teardown-command":[
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"description": "$string:entry_desc", "description": "$string:entry_desc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"tablet",
"phone", "phone",
"tablet" "tablet"
], ],
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"description": "$string:entry_desc", "description": "$string:entry_desc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"tablet",
"default", "default",
"phone", "phone",
"tablet" "tablet"
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"description": "$string:entry_desc", "description": "$string:entry_desc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"tablet",
"default", "default",
"phone", "phone",
"tablet" "tablet"
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"description": "$string:entry_desc", "description": "$string:entry_desc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"tablet",
"default", "default",
"phone", "phone",
"tablet" "tablet"
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"description": "$string:entry_desc", "description": "$string:entry_desc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"tablet",
"default", "default",
"phone", "phone",
"tablet" "tablet"
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"description": "$string:entry_desc", "description": "$string:entry_desc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"tablet",
"default", "default",
"phone", "phone",
"tablet" "tablet"
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"tablet",
"default", "default",
"phone" "phone"
], ],
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
"package": "com.example.actsbmsaccesstokentest", "package": "com.example.actsbmsaccesstokentest",
"name": ".entry", "name": ".entry",
"deviceType": [ "deviceType": [
"default", "default",
"default" "tablet"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
"srcPath": "", "srcPath": "",
"deviceType": [ "deviceType": [
"default", "default",
"default" "tablet"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"srcPath": "", "srcPath": "",
"deviceType": [ "deviceType": [
"default", "default",
"default" "tablet"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
"package": "com.example.actsbmsgetinfostest", "package": "com.example.actsbmsgetinfostest",
"name": ".entry", "name": ".entry",
"deviceType": [ "deviceType": [
"default", "default",
"default" "tablet"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
"package": "com.example.actsbmshapmoduletest", "package": "com.example.actsbmshapmoduletest",
"name": ".entry", "name": ".entry",
"deviceType": [ "deviceType": [
"default", "default",
"default" "tablet"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
"package": "com.example.actsbmsjstest", "package": "com.example.actsbmsjstest",
"name": ".entry", "name": ".entry",
"deviceType": [ "deviceType": [
"default", "default",
"default" "tablet"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
"package": "com.example.actsbmsjsunpermissiontest", "package": "com.example.actsbmsjsunpermissiontest",
"name": ".entry", "name": ".entry",
"deviceType": [ "deviceType": [
"default", "default",
"default" "tablet"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
"package": "com.example.actsbmsmetadatatest", "package": "com.example.actsbmsmetadatatest",
"name": ".entry", "name": ".entry",
"deviceType": [ "deviceType": [
"default", "default",
"default" "tablet"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册