提交 f0f55d86 编写于 作者: U unknown

add user

Signed-off-by: Nunknown <sijunjie@huawei.com>
上级 ca0fba4f
......@@ -17,6 +17,14 @@
],
"type": "AppInstallKit",
"cleanup-apps": true
},
{
"type": "ShellKit",
"run-command": [
"power-shell wakeup",
"power-shell setmode 602",
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100"
]
}
]
}
......
......@@ -19,6 +19,14 @@
],
"type": "AppInstallKit",
"cleanup-apps": true
},
{
"type": "ShellKit",
"run-command": [
"power-shell wakeup",
"power-shell setmode 602",
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100"
]
}
]
}
......
......@@ -162,7 +162,8 @@ export default function FaShowOnLockTest() {
bundleName: "ohos.acts.aafwk.test.fasupportfunction",
abilityName: "ohos.acts.aafwk.test.fasupportfunction.MainAbility",
parameters: {
number: 1
number: 1,
flag: true
}
}
await globalThis.abilityTestContext.startAbility(wantNum).then((data) => {
......@@ -243,7 +244,8 @@ export default function FaShowOnLockTest() {
bundleName: "ohos.acts.aafwk.test.fasupportfunction",
abilityName: "ohos.acts.aafwk.test.fasupportfunction.MainAbility",
parameters: {
number: 2
number: 2,
flag: true
}
}
await globalThis.abilityTestContext.startAbility(wantNum).then((data) => {
......@@ -324,7 +326,8 @@ export default function FaShowOnLockTest() {
bundleName: "ohos.acts.aafwk.test.fasupportfunction",
abilityName: "ohos.acts.aafwk.test.fasupportfunction.MainAbility",
parameters: {
number: 3
number: 3,
flag: true
}
}
await globalThis.abilityTestContext.startAbility(wantNum).then((data) => {
......@@ -412,7 +415,8 @@ export default function FaShowOnLockTest() {
bundleName: "ohos.acts.aafwk.test.fasupportfunction",
abilityName: "ohos.acts.aafwk.test.fasupportfunction.MainAbility2",
parameters: {
number: 1
number: 1,
flag: true
}
}
await globalThis.abilityTestContext.startAbility(wantNum).then((data) => {
......@@ -500,7 +504,8 @@ export default function FaShowOnLockTest() {
bundleName: "ohos.acts.aafwk.test.fasupportfunction",
abilityName: "ohos.acts.aafwk.test.fasupportfunction.MainAbility2",
parameters: {
number: 2
number: 2,
flag: true
}
}
await globalThis.abilityTestContext.startAbility(wantNum).then((data) => {
......@@ -588,7 +593,8 @@ export default function FaShowOnLockTest() {
bundleName: "ohos.acts.aafwk.test.fasupportfunction",
abilityName: "ohos.acts.aafwk.test.fasupportfunction.MainAbility2",
parameters: {
number: 3
number: 3,
flag: true
}
}
await globalThis.abilityTestContext.startAbility(wantNum).then((data) => {
......@@ -676,7 +682,8 @@ export default function FaShowOnLockTest() {
bundleName: "ohos.acts.aafwk.test.fasupportfunction",
abilityName: "ohos.acts.aafwk.test.fasupportfunction.MainAbility2",
parameters: {
number: 4
number: 4,
flag: true
}
}
await globalThis.abilityTestContext.startAbility(wantNum).then((data) => {
......@@ -764,7 +771,8 @@ export default function FaShowOnLockTest() {
bundleName: "ohos.acts.aafwk.test.fasupportfunction",
abilityName: "ohos.acts.aafwk.test.fasupportfunction.MainAbility2",
parameters: {
number: 5
number: 5,
flag: true
}
}
await globalThis.abilityTestContext.startAbility(wantNum).then((data) => {
......
......@@ -54,6 +54,17 @@ export default {
console.log(TAG1 + "setWakeUpScreen catch error = " + JSON.stringify(error));
}
}
if (data.parameters.flag) {
lifeList.push('onActive');
let options = {
parameters: {
lifeList: lifeList
}
}
commonEvent.publish(listPush1 + "onActive", options, (err) => {
console.log(TAG1 + listPush1 + "onActive");
});
}
}).catch((error) => {
console.log(TAG1 + "getWant error = " + JSON.stringify(error));
})
......
......@@ -19,11 +19,11 @@ var TAG1 = "Fa:SupportFunction:MainAbility2:";
var listPush1 = "Fa_SupportFunction_MainAbility2_";
var lifeList = [];
export default {
onCreate() {
async onCreate() {
console.log(TAG1 + 'onCreate');
lifeList.push('onCreate');
ability_featureAbility.getWant().then((data) => {
ability_featureAbility.getWant().then(async (data) => {
console.log(TAG1 + "getWant data = " + JSON.stringify(data));
if(data.parameters.number == 1) {
......@@ -41,6 +41,18 @@ export default {
if(data.parameters.number == 5) {
setWakeUpScreenP(ability_featureAbility, {status1: true, status2: true})
}
await sleep(300);
if (data.parameters.flag) {
lifeList.push('onActive');
let options = {
parameters: {
lifeList: lifeList
}
}
commonEvent.publish(listPush1 + "onActive", options, (err) => {
console.log(TAG1 + listPush1 + "onActive");
});
}
}).catch((error) => {
console.log(TAG1 + "getWant error = " + JSON.stringify(error));
})
......@@ -72,6 +84,10 @@ export default {
}
}
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
function setWakeUpScreenP(featureAbility, wakeUp) {
try {
console.log(TAG1 + "setWakeUpScreenP start");
......
......@@ -15,6 +15,14 @@
],
"type": "AppInstallKit",
"cleanup-apps": true
},
{
"type": "ShellKit",
"run-command": [
"power-shell wakeup",
"power-shell setmode 602",
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100"
]
}
]
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册