提交 00b8d8c6 编写于 作者: K kirl75

AMS启动规则优化

Signed-off-by: Nkirl75 <kirl.liu@huawei.com>
上级 f9ff5586
......@@ -17,8 +17,8 @@ group("startuptest") {
testonly = true
if (is_standard_system) {
deps = [
"StartUpAssistant:StartUpAssistant",
"StartUpRuleTest:StartUpRuleTest",
"StartUpAssistant:ActsStartUpAssistant",
"StartUpRuleTest:ActsStartUpRuleTest",
]
}
}
......@@ -44,7 +44,7 @@ export default class CalleeAbility extends UIAbility {
this.context.terminateSelfWithResult(result, () => {});
unsubscribe(subscriber);
});
})
});
}
onDestroy() {
......
......@@ -22,11 +22,7 @@
"run-command": [
"power-shell wakeup",
"power-shell setmode 602",
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100",
"hilog -b D",
"hilog -Q pidoff",
"hilog -Q domainoff",
"hilog -G 2M"
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100"
]
}
]
......
......@@ -20,6 +20,6 @@ export default class DataShareExtAbility extends DataShareExtensionAbility {
console.log(`DataShareExtAbility onCreate: ${JSON.stringify(want)}`);
}
onDestroy() {
console.log(`DataShareExtAbility onDestroy`);
console.log('DataShareExtAbility onDestroy');
}
}
\ No newline at end of file
......@@ -13,8 +13,8 @@
* limitations under the License.
*/
import ServiceExtensionAbility from '@ohos.app.ability.ServiceExtensionAbility'
import rpc from '@ohos.rpc'
import ServiceExtensionAbility from '@ohos.app.ability.ServiceExtensionAbility';
import rpc from '@ohos.rpc';
class StubTest extends rpc.RemoteObject {
constructor(des) {
......@@ -33,13 +33,13 @@ export default class ServiceExtAbility extends ServiceExtensionAbility {
console.log(`onRequest: ${JSON.stringify(want)}`);
}
onConnect(want) {
console.log(`onConnect END`);
return new StubTest("stub");
console.log('onConnect END');
return new StubTest('stub');
}
onDisconnect(want): void {
console.log(`HXW onDisconnect: ${JSON.stringify(want)}`);
}
onDestroy() {
console.log(`onDestroy`);
console.log('onDestroy');
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册