Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
aed69157
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
aed69157
编写于
6月 13, 2022
作者:
C
chengxingzhen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
XTS-HO问题整改
Signed-off-by:
N
chengxingzhen
<
chengxingzhen@huawei.com
>
上级
99203bb8
变更
46
隐藏空白更改
内联
并排
Showing
46 changed file
with
2 addition
and
889 deletion
+2
-889
aafwk/aafwk_standard/actsabilitymanageretstest/entry/src/main/ets/test/addContextAndAbilityJsunit.test.ets
...try/src/main/ets/test/addContextAndAbilityJsunit.test.ets
+1
-1
aafwk/aafwk_standard/actsserviceabilityclienttest/actsserviceabilityclienttest/entry/src/main/js/test/StServiceAbilityClient.test.js
...est/entry/src/main/js/test/StServiceAbilityClient.test.js
+0
-3
aafwk/aafwk_standard/actsstserviceabilityclientcase/entry/src/main/js/test/ActsStServiceAbilityClientCaseTest.test.js
...c/main/js/test/ActsStServiceAbilityClientCaseTest.test.js
+0
-3
aafwk/aafwk_standard/amsgetabilityprocessinfo/actsgetabilityprocessinfotest/entry/src/main/js/test/ActsProcessManageJsTest.test.js
...st/entry/src/main/js/test/ActsProcessManageJsTest.test.js
+0
-1
aafwk/aafwk_standard/getactiveprocessinfos/BUILD.gn
aafwk/aafwk_standard/getactiveprocessinfos/BUILD.gn
+0
-24
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/BUILD.gn
...ndard/getactiveprocessinfos/getactiveprocessinfo/BUILD.gn
+0
-31
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/Test.json
...dard/getactiveprocessinfos/getactiveprocessinfo/Test.json
+0
-24
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/entry/src/main/config.json
...cessinfos/getactiveprocessinfo/entry/src/main/config.json
+0
-83
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/entry/src/main/js/default/app.js
...fos/getactiveprocessinfo/entry/src/main/js/default/app.js
+0
-22
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/entry/src/main/js/default/i18n/en-US.json
...tiveprocessinfo/entry/src/main/js/default/i18n/en-US.json
+0
-6
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/entry/src/main/js/default/i18n/zh-CN.json
...tiveprocessinfo/entry/src/main/js/default/i18n/zh-CN.json
+0
-6
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/entry/src/main/js/default/pages/index/index.css
...ocessinfo/entry/src/main/js/default/pages/index/index.css
+0
-9
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/entry/src/main/js/default/pages/index/index.hml
...ocessinfo/entry/src/main/js/default/pages/index/index.hml
+0
-6
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/entry/src/main/js/default/pages/index/index.js
...rocessinfo/entry/src/main/js/default/pages/index/index.js
+0
-47
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/entry/src/main/js/resources/base/element/string.json
...info/entry/src/main/js/resources/base/element/string.json
+0
-20
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/entry/src/main/js/resources/base/media/icon.png
...ocessinfo/entry/src/main/js/resources/base/media/icon.png
+0
-0
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/entry/src/main/js/test/Getactive.test.js
...ctiveprocessinfo/entry/src/main/js/test/Getactive.test.js
+0
-166
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/entry/src/main/js/test/List.test.js
.../getactiveprocessinfo/entry/src/main/js/test/List.test.js
+0
-15
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/signature/openharmony_sx.p7b
...ssinfos/getactiveprocessinfo/signature/openharmony_sx.p7b
+0
-0
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/BUILD.gn
...fwk_standard/getactiveprocessinfos/setshowonlock/BUILD.gn
+0
-31
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/Test.json
...wk_standard/getactiveprocessinfos/setshowonlock/Test.json
+0
-5
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/entry/.gitignore
...dard/getactiveprocessinfos/setshowonlock/entry/.gitignore
+0
-1
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/entry/src/main/config.json
...tiveprocessinfos/setshowonlock/entry/src/main/config.json
+0
-83
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/entry/src/main/js/default/app.js
...ocessinfos/setshowonlock/entry/src/main/js/default/app.js
+0
-23
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/entry/src/main/js/default/i18n/en-US.json
...s/setshowonlock/entry/src/main/js/default/i18n/en-US.json
+0
-6
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/entry/src/main/js/default/i18n/zh-CN.json
...s/setshowonlock/entry/src/main/js/default/i18n/zh-CN.json
+0
-6
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/entry/src/main/js/default/pages/index/index.css
...howonlock/entry/src/main/js/default/pages/index/index.css
+0
-9
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/entry/src/main/js/default/pages/index/index.hml
...howonlock/entry/src/main/js/default/pages/index/index.hml
+0
-5
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/entry/src/main/js/default/pages/index/index.js
...showonlock/entry/src/main/js/default/pages/index/index.js
+0
-29
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/entry/src/main/js/resources/base/element/string.json
...lock/entry/src/main/js/resources/base/element/string.json
+0
-12
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/entry/src/main/js/resources/base/media/icon.png
...howonlock/entry/src/main/js/resources/base/media/icon.png
+0
-0
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/signature/openharmony_sx.p7b
...veprocessinfos/setshowonlock/signature/openharmony_sx.p7b
+0
-0
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/BUILD.gn
...wk_standard/getactiveprocessinfos/setshowonlocka/BUILD.gn
+0
-31
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/Test.json
...k_standard/getactiveprocessinfos/setshowonlocka/Test.json
+0
-5
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/entry/.gitignore
...ard/getactiveprocessinfos/setshowonlocka/entry/.gitignore
+0
-1
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/entry/src/main/config.json
...iveprocessinfos/setshowonlocka/entry/src/main/config.json
+0
-83
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/entry/src/main/js/default/app.js
...cessinfos/setshowonlocka/entry/src/main/js/default/app.js
+0
-23
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/entry/src/main/js/default/i18n/en-US.json
.../setshowonlocka/entry/src/main/js/default/i18n/en-US.json
+0
-6
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/entry/src/main/js/default/i18n/zh-CN.json
.../setshowonlocka/entry/src/main/js/default/i18n/zh-CN.json
+0
-6
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/entry/src/main/js/default/pages/index/index.css
...owonlocka/entry/src/main/js/default/pages/index/index.css
+0
-9
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/entry/src/main/js/default/pages/index/index.hml
...owonlocka/entry/src/main/js/default/pages/index/index.hml
+0
-5
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/entry/src/main/js/default/pages/index/index.js
...howonlocka/entry/src/main/js/default/pages/index/index.js
+0
-30
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/entry/src/main/js/resources/base/element/string.json
...ocka/entry/src/main/js/resources/base/element/string.json
+0
-12
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/entry/src/main/js/resources/base/media/icon.png
...owonlocka/entry/src/main/js/resources/base/media/icon.png
+0
-0
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/signature/openharmony_sx.p7b
...eprocessinfos/setshowonlocka/signature/openharmony_sx.p7b
+0
-0
aafwk/aafwk_standard/processmultiinstance/actsamsprocessmultiinstancetest/entry/src/main/ets/test/Ability.test.ets
...ultiinstancetest/entry/src/main/ets/test/Ability.test.ets
+1
-1
未找到文件。
aafwk/aafwk_standard/actsabilitymanageretstest/entry/src/main/ets/test/addContextAndAbilityJsunit.test.ets
浏览文件 @
aed69157
...
...
@@ -16,7 +16,7 @@ import {describe, it, expect} from 'hypium/index';
import Utils from './Utils';
import ability_featureAbility from '@ohos.ability.featureAbility';
import ability_particleAbility from '@ohos.ability.particleAbility';
import abilityManager from "@ohos.app
.ability
Manager"
import abilityManager from "@ohos.app
lication.app
Manager"
const TAG_TEST_0100 = ' context_isUpdatingConfigurations_test_0100 ';
const TAG_TEST_0200 = ' context_isUpdatingConfigurations_test_0200 ';
...
...
aafwk/aafwk_standard/actsserviceabilityclienttest/actsserviceabilityclienttest/entry/src/main/js/test/StServiceAbilityClient.test.js
浏览文件 @
aed69157
...
...
@@ -13,10 +13,7 @@
* limitations under the License.
*/
import
featureAbility
from
'
@ohos.ability.featureAbility
'
import
abilityManager
from
'
@ohos.app.abilityManager
'
import
commonEvent
from
'
@ohos.commonEvent
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
describe
(
'
ActsStServiceAbilityTest
'
,
function
()
{
...
...
aafwk/aafwk_standard/actsstserviceabilityclientcase/entry/src/main/js/test/ActsStServiceAbilityClientCaseTest.test.js
浏览文件 @
aed69157
...
...
@@ -13,10 +13,7 @@
* limitations under the License.
*/
import
featureAbility
from
'
@ohos.ability.featureAbility
'
import
abilityManager
from
'
@ohos.app.abilityManager
'
import
commonEvent
from
'
@ohos.commonEvent
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
describe
(
'
ActsStServiceAbilityTest
'
,
function
()
{
...
...
aafwk/aafwk_standard/amsgetabilityprocessinfo/actsgetabilityprocessinfotest/entry/src/main/js/test/ActsProcessManageJsTest.test.js
浏览文件 @
aed69157
...
...
@@ -14,7 +14,6 @@
*/
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
"
deccjsunit/index
"
import
abilityManager
from
'
@ohos.application.AbilityManager
'
import
appManager
from
'
@ohos.application.AppManager
'
describe
(
'
ActsAbilityRunningInfosTest
'
,
function
()
{
...
...
aafwk/aafwk_standard/getactiveprocessinfos/BUILD.gn
已删除
100644 → 0
浏览文件 @
99203bb8
# 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")
group("getactiveprocessinfos") {
testonly = true
if (is_standard_system) {
deps = [
"getactiveprocessinfo:getactiveprocessinfo",
"setshowonlocka:setshowonlocka",
]
}
}
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/BUILD.gn
已删除
100644 → 0
浏览文件 @
99203bb8
# 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("getactiveprocessinfo") {
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "getactiveprocessinfo"
}
ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./entry/src/main/js/default"
}
ohos_resources("hjs_demo_resources") {
sources = [ "./entry/src/main/js/resources" ]
hap_profile = "./entry/src/main/config.json"
}
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/Test.json
已删除
100644 → 0
浏览文件 @
99203bb8
{
"description"
:
"Configuration for hjunit demo Tests"
,
"driver"
:
{
"type"
:
"JSUnitTest"
,
"test-timeout"
:
"300000"
,
"package"
:
"com.example.getactiveprocessinfo"
,
"shell-timeout"
:
"600000"
},
"kits"
:
[
{
"test-file-name"
:
[
"getactiveprocessinfo.hap"
,
"setshowonlock.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
}
]
}
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/entry/src/main/config.json
已删除
100644 → 0
浏览文件 @
99203bb8
{
"app"
:
{
"bundleName"
:
"com.example.getactiveprocessinfo"
,
"vendor"
:
"example"
,
"version"
:
{
"code"
:
1
,
"name"
:
"1.0"
},
"apiVersion"
:
{
"compatible"
:
4
,
"target"
:
5
,
"releaseType"
:
"Beta1"
}
},
"deviceConfig"
:
{},
"module"
:
{
"package"
:
"com.example.getactiveprocessinfo"
,
"name"
:
".MyApplication"
,
"deviceType"
:
[
"phone"
],
"distro"
:
{
"deliveryWithInstall"
:
true
,
"moduleName"
:
"entry"
,
"moduleType"
:
"entry"
},
"abilities"
:
[
{
"skills"
:
[
{
"entities"
:
[
"entity.system.home"
],
"actions"
:
[
"action.system.home"
]
}
],
"name"
:
"com.example.getactiveprocessinfo.MainAbility"
,
"icon"
:
"$media:icon"
,
"description"
:
"$string:mainability_description"
,
"label"
:
"$string:app_name"
,
"type"
:
"page"
,
"launchType"
:
"standard"
,
"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"
:
[
"pages/index/index"
],
"name"
:
"default"
,
"window"
:
{
"designWidth"
:
720
,
"autoDesignWidth"
:
false
}
}
]
}
}
\ No newline at end of file
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/entry/src/main/js/default/app.js
已删除
100755 → 0
浏览文件 @
99203bb8
/*
* 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
(
'
AceApplication onCreate
'
);
},
onDestroy
()
{
console
.
info
(
'
AceApplication onDestroy
'
);
}
};
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/entry/src/main/js/default/i18n/en-US.json
已删除
100644 → 0
浏览文件 @
99203bb8
{
"strings"
:
{
"hello"
:
"Hello"
,
"world"
:
"World"
}
}
\ No newline at end of file
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/entry/src/main/js/default/i18n/zh-CN.json
已删除
100644 → 0
浏览文件 @
99203bb8
{
"strings"
:
{
"hello"
:
"您好"
,
"world"
:
"世界"
}
}
\ No newline at end of file
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/entry/src/main/js/default/pages/index/index.css
已删除
100644 → 0
浏览文件 @
99203bb8
.container
{
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
}
.title
{
font-size
:
100px
;
}
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/entry/src/main/js/default/pages/index/index.hml
已删除
100644 → 0
浏览文件 @
99203bb8
<div class="container">
<text class="title">
测试zlib-1515-test
{{ $t('strings.hello') }} {{ title }}
</text>
</div>
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/entry/src/main/js/default/pages/index/index.js
已删除
100644 → 0
浏览文件 @
99203bb8
/*
* 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
{
Core
,
ExpectExtend
,
ReportExtend
}
from
'
deccjsunit/index
'
const
injecttRef
=
Object
.
getPrototypeOf
(
global
)
||
global
injecttRef
.
regeneratorRuntime
=
require
(
'
@babel/runtime/regenerator
'
)
export
default
{
data
:
{
title
:
''
},
onInit
()
{
this
.
title
=
this
.
$t
(
'
strings.world
'
);
},
onShow
()
{
console
.
info
(
'
onShow finish
'
)
const
core
=
Core
.
getInstance
()
const
expectExtend
=
new
ExpectExtend
({
id
:
'
extend
'
})
core
.
addService
(
'
expect
'
,
expectExtend
)
core
.
init
()
const
configService
=
core
.
getDefaultService
(
'
config
'
)
configService
.
setConfig
(
this
)
require
(
'
../../../test/List.test
'
)
core
.
execute
()
},
onReady
()
{
console
.
info
(
'
onReady
'
);
},
}
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/entry/src/main/js/resources/base/element/string.json
已删除
100644 → 0
浏览文件 @
99203bb8
{
"string"
:
[
{
"name"
:
"app_name"
,
"value"
:
"amsZipfileUnzipfileST"
},
{
"name"
:
"mainability_description"
,
"value"
:
"JS_Phone_Empty Feature Ability"
},
{
"name"
:
"serviceability_description"
,
"value"
:
"hap sample empty service"
},
{
"name"
:
"serviceability_description"
,
"value"
:
"JS_Phone_Empty Feature Ability"
}
]
}
\ No newline at end of file
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/entry/src/main/js/resources/base/media/icon.png
已删除
100644 → 0
浏览文件 @
99203bb8
6.6 KB
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/entry/src/main/js/test/Getactive.test.js
已删除
100644 → 0
浏览文件 @
99203bb8
/*
* 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
appmgr
from
'
@ohos.app.abilityManager
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
describe
(
'
Getacitve
'
,
function
()
{
/*
* @tc.number: FWK_ProcessInfo_0100
* @tc.name: getActiveProcessInfos
* @tc.desc: A process retrieves information
*/
it
(
'
FWK_ProcessInfo_0100
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
FWK_ProcessInfo_0100 start
'
);
try
{
appmgr
.
getActiveProcessInfos
(
(
error
,
data
)
=>
{
expect
(
data
[
0
].
uid
>
0
).
assertTrue
();
expect
(
data
[
0
].
pid
>
0
).
assertTrue
();
expect
(
data
[
0
].
processName
!=
null
).
assertTrue
();
expect
(
data
[
0
].
bundleNames
!=
null
).
assertTrue
();
done
();
});
}
catch
(
err
){
console
.
log
(
'
FWK_ProcessInfo_0100 err
'
+
err
);
done
();
}
})
/*
* @tc.number: FWK_ProcessInfo_0200
* @tc.name: getActiveProcessInfos
* @tc.desc: Two processes get the information
*/
it
(
'
FWK_ProcessInfo_0200
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
FWK_ProcessInfo_0200 start
'
);
try
{
appmgr
.
getActiveProcessInfos
(
(
error
,
data
)
=>
{
var
len
=
data
.
length
;
for
(
var
i
=
1
;
i
<
len
;
++
i
){
expect
(
data
[
i
].
uid
>
0
).
assertTrue
();
expect
(
data
[
i
].
pid
>
0
).
assertTrue
();
expect
(
data
[
i
].
processName
!=
null
).
assertTrue
();
expect
(
data
[
i
].
bundleNames
!=
null
).
assertTrue
();
}
done
();
})
}
catch
(
err
){
console
.
log
(
'
FWK_ProcessInfo_0200 err
'
+
err
);
done
();
}
})
/*
* @tc.number: FWK_ProcessInfo_0300
* @tc.name: getActiveProcessInfos
* @tc.desc: A process retrieves information
*/
it
(
'
FWK_ProcessInfo_0300
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
FWK_ProcessInfo_0300 Begin
'
);
try
{
appmgr
.
getActiveProcessInfos
().
then
((
data
)
=>
{
expect
(
data
[
0
].
uid
>
0
).
assertTrue
();
expect
(
data
[
0
].
pid
>
0
).
assertTrue
();
expect
(
data
[
0
].
processName
!=
null
).
assertTrue
();
expect
(
data
[
0
].
bundleNames
!=
null
).
assertTrue
();
done
();
}).
catch
((
error
)
=>
{
console
.
log
(
'
FWK_ProcessInfo_0300 error code is
'
+
error
.
code
);
done
();
});
}
catch
(
err
){
console
.
log
(
'
FWK_ProcessInfo_0300 err
'
+
err
);
done
();
}
})
/*
* @tc.number: FWK_ProcessInfo_0400
* @tc.name: getActiveProcessInfos
* @tc.desc: Two processes get the information
*/
it
(
'
FWK_ProcessInfo_0400
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
FWK_ProcessInfo_0400 Begin
'
);
try
{
appmgr
.
getActiveProcessInfos
().
then
((
data
)
=>
{
var
len
=
data
.
length
;
for
(
var
i
=
1
;
i
<
len
;
++
i
){
expect
(
data
[
i
].
uid
>
0
).
assertTrue
();
expect
(
data
[
i
].
pid
>
0
).
assertTrue
();
expect
(
data
[
i
].
processName
!=
null
).
assertTrue
();
expect
(
data
[
i
].
bundleNames
!=
null
).
assertTrue
();
}
done
();
}).
catch
((
error
)
=>
{
console
.
log
(
'
FWK_ProcessInfo_0400 error code is
'
+
error
.
code
);
done
();
});
}
catch
(
err
){
console
.
log
(
'
FWK_ProcessInfo_0400 err
'
+
err
);
done
();
}
})
/*
* @tc.number: FWK_MemoryInfo_0100
* @tc.name: getSystemMemoryAttr
* @tc.desc: Anapplication memory information
*/
it
(
'
FWK_MemoryInfo_0100
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
FWK_MemoryInfo_0100 start
'
);
try
{
appmgr
.
getSystemMemoryAttr
(
(
error
,
data
)
=>
{
expect
(
data
.
availSysMem
>
0
).
assertTrue
();
expect
(
data
.
totalSysMem
>
0
).
assertTrue
();
expect
(
data
.
threshold
>
0
).
assertTrue
();
expect
(
data
.
isSysInlowMem
==
(
data
.
availSysMem
<
data
.
threshold
)).
assertTrue
();
done
();
});
}
catch
(
err
){
console
.
log
(
'
FWK_ProcessInfo_0400 err
'
+
err
);
}
console
.
log
(
'
ZLM-----onClick1 End
'
);
})
/*
* @tc.number: FWK_MemoryInfo_0200
* @tc.name: getSystemMemoryAttr
* @tc.desc: Anapplication memory information
*/
it
(
'
FWK_MemoryInfo_0200
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
FWK_MemoryInfo_0200 Begin
'
);
try
{
appmgr
.
getSystemMemoryAttr
().
then
((
data
)
=>
{
expect
(
data
.
availSysMem
>
0
).
assertTrue
();
expect
(
data
.
totalSysMem
>
0
).
assertTrue
();
expect
(
data
.
threshold
>
0
).
assertTrue
();
expect
(
data
.
isSysInlowMem
==
(
data
.
availSysMem
<
data
.
threshold
)).
assertTrue
();
done
();
}).
catch
((
error
)
=>
{
console
.
log
(
'
FWK_MemoryInfo_0200 error code is
'
+
error
.
code
);
done
();
});
}
catch
(
err
){
console
.
log
(
'
FWK_ProcessInfo_0400 err
'
+
err
);
}
console
.
log
(
'
FWK_MemoryInfo_0200 End
'
);
})
})
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/entry/src/main/js/test/List.test.js
已删除
100644 → 0
浏览文件 @
99203bb8
/*
* 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.
*/
require
(
'
./Getactive.test.js
'
)
aafwk/aafwk_standard/getactiveprocessinfos/getactiveprocessinfo/signature/openharmony_sx.p7b
已删除
100644 → 0
浏览文件 @
99203bb8
文件已删除
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/BUILD.gn
已删除
100644 → 0
浏览文件 @
99203bb8
# 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("setshowonlock") {
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "setshowonlock"
}
ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./entry/src/main/js/default"
}
ohos_resources("hjs_demo_resources") {
sources = [ "./entry/src/main/js/resources" ]
hap_profile = "./entry/src/main/config.json"
}
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/Test.json
已删除
100644 → 0
浏览文件 @
99203bb8
{
"description"
:
"Configuration for hjunit demo Tests"
}
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/entry/.gitignore
已删除
100644 → 0
浏览文件 @
99203bb8
/build
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/entry/src/main/config.json
已删除
100755 → 0
浏览文件 @
99203bb8
{
"app"
:
{
"bundleName"
:
"com.example.setshowonlock"
,
"vendor"
:
"example"
,
"version"
:
{
"code"
:
1
,
"name"
:
"1.0"
},
"apiVersion"
:
{
"compatible"
:
4
,
"target"
:
5
,
"releaseType"
:
"Beta1"
}
},
"deviceConfig"
:
{},
"module"
:
{
"package"
:
"com.example.setshowonlock"
,
"name"
:
".MyApplication"
,
"deviceType"
:
[
"phone"
],
"distro"
:
{
"deliveryWithInstall"
:
true
,
"moduleName"
:
"entry"
,
"moduleType"
:
"entry"
},
"abilities"
:
[
{
"skills"
:
[
{
"entities"
:
[
"entity.system.home"
],
"actions"
:
[
"action.system.home"
]
}
],
"name"
:
"com.example.setshowonlock.MainAbility"
,
"icon"
:
"$media:icon"
,
"description"
:
"$string:mainability_description"
,
"label"
:
"$string:app_name"
,
"type"
:
"page"
,
"launchType"
:
"standard"
,
"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"
:
[
"pages/index/index"
],
"name"
:
"default"
,
"window"
:
{
"designWidth"
:
720
,
"autoDesignWidth"
:
false
}
}
]
}
}
\ No newline at end of file
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/entry/src/main/js/default/app.js
已删除
100755 → 0
浏览文件 @
99203bb8
/*
* 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
(
'
AceApplication onCreate
'
);
},
onDestroy
()
{
console
.
info
(
'
AceApplication onDestroy
'
);
}
};
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/entry/src/main/js/default/i18n/en-US.json
已删除
100644 → 0
浏览文件 @
99203bb8
{
"strings"
:
{
"hello"
:
"Hello"
,
"world"
:
"World"
}
}
\ No newline at end of file
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/entry/src/main/js/default/i18n/zh-CN.json
已删除
100644 → 0
浏览文件 @
99203bb8
{
"strings"
:
{
"hello"
:
"您好"
,
"world"
:
"世界"
}
}
\ No newline at end of file
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/entry/src/main/js/default/pages/index/index.css
已删除
100644 → 0
浏览文件 @
99203bb8
.container
{
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
}
.title
{
font-size
:
100px
;
}
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/entry/src/main/js/default/pages/index/index.hml
已删除
100644 → 0
浏览文件 @
99203bb8
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
</text>
</div>
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/entry/src/main/js/default/pages/index/index.js
已删除
100755 → 0
浏览文件 @
99203bb8
/*
* 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
{
data
:
{
title
:
""
},
onInit
()
{
this
.
title
=
this
.
$t
(
'
strings.world
'
);
},
onShow
()
{
console
.
info
(
'
onShow finish
'
)
},
onReady
()
{
},
}
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/entry/src/main/js/resources/base/element/string.json
已删除
100755 → 0
浏览文件 @
99203bb8
{
"string"
:
[
{
"name"
:
"app_name"
,
"value"
:
"setShowOnLock"
},
{
"name"
:
"mainability_description"
,
"value"
:
"JS_Phone_Empty Feature Ability"
}
]
}
\ No newline at end of file
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/entry/src/main/js/resources/base/media/icon.png
已删除
100644 → 0
浏览文件 @
99203bb8
6.6 KB
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlock/signature/openharmony_sx.p7b
已删除
100644 → 0
浏览文件 @
99203bb8
文件已删除
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/BUILD.gn
已删除
100644 → 0
浏览文件 @
99203bb8
# 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("setshowonlocka") {
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "setshowonlocka"
}
ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./entry/src/main/js/default"
}
ohos_resources("hjs_demo_resources") {
sources = [ "./entry/src/main/js/resources" ]
hap_profile = "./entry/src/main/config.json"
}
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/Test.json
已删除
100644 → 0
浏览文件 @
99203bb8
{
"description"
:
"Configuration for hjunit demo Tests"
}
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/entry/.gitignore
已删除
100644 → 0
浏览文件 @
99203bb8
/build
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/entry/src/main/config.json
已删除
100755 → 0
浏览文件 @
99203bb8
{
"app"
:
{
"bundleName"
:
"com.example.setshowonlock"
,
"vendor"
:
"example"
,
"version"
:
{
"code"
:
1
,
"name"
:
"1.0"
},
"apiVersion"
:
{
"compatible"
:
4
,
"target"
:
5
,
"releaseType"
:
"Beta1"
}
},
"deviceConfig"
:
{},
"module"
:
{
"package"
:
"com.example.setshowonlock"
,
"name"
:
".MyApplication"
,
"deviceType"
:
[
"phone"
],
"distro"
:
{
"deliveryWithInstall"
:
true
,
"moduleName"
:
"entry"
,
"moduleType"
:
"entry"
},
"abilities"
:
[
{
"skills"
:
[
{
"entities"
:
[
"entity.system.home"
],
"actions"
:
[
"action.system.home"
]
}
],
"name"
:
"com.example.setshowonlock.MainAbility"
,
"icon"
:
"$media:icon"
,
"description"
:
"$string:mainability_description"
,
"label"
:
"$string:app_name"
,
"type"
:
"page"
,
"launchType"
:
"standard"
,
"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"
:
[
"pages/index/index"
],
"name"
:
"default"
,
"window"
:
{
"designWidth"
:
720
,
"autoDesignWidth"
:
false
}
}
]
}
}
\ No newline at end of file
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/entry/src/main/js/default/app.js
已删除
100755 → 0
浏览文件 @
99203bb8
/*
* 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
(
'
AceApplication onCreate
'
);
},
onDestroy
()
{
console
.
info
(
'
AceApplication onDestroy
'
);
}
};
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/entry/src/main/js/default/i18n/en-US.json
已删除
100644 → 0
浏览文件 @
99203bb8
{
"strings"
:
{
"hello"
:
"Hello"
,
"world"
:
"World"
}
}
\ No newline at end of file
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/entry/src/main/js/default/i18n/zh-CN.json
已删除
100644 → 0
浏览文件 @
99203bb8
{
"strings"
:
{
"hello"
:
"您好"
,
"world"
:
"世界"
}
}
\ No newline at end of file
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/entry/src/main/js/default/pages/index/index.css
已删除
100644 → 0
浏览文件 @
99203bb8
.container
{
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
}
.title
{
font-size
:
100px
;
}
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/entry/src/main/js/default/pages/index/index.hml
已删除
100644 → 0
浏览文件 @
99203bb8
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
</text>
</div>
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/entry/src/main/js/default/pages/index/index.js
已删除
100755 → 0
浏览文件 @
99203bb8
/*
* 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
{
data
:
{
title
:
''
},
onInit
()
{
this
.
title
=
this
.
$t
(
'
strings.world
'
);
},
onShow
()
{
console
.
info
(
'
onShow finish
'
)
},
onReady
()
{
console
.
info
(
'
onReady
'
);
},
}
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/entry/src/main/js/resources/base/element/string.json
已删除
100755 → 0
浏览文件 @
99203bb8
{
"string"
:
[
{
"name"
:
"app_name"
,
"value"
:
"setShowOnLock"
},
{
"name"
:
"mainability_description"
,
"value"
:
"JS_Phone_Empty Feature Ability"
}
]
}
\ No newline at end of file
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/entry/src/main/js/resources/base/media/icon.png
已删除
100644 → 0
浏览文件 @
99203bb8
6.6 KB
aafwk/aafwk_standard/getactiveprocessinfos/setshowonlocka/signature/openharmony_sx.p7b
已删除
100644 → 0
浏览文件 @
99203bb8
文件已删除
aafwk/aafwk_standard/processmultiinstance/actsamsprocessmultiinstancetest/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
aed69157
...
...
@@ -14,7 +14,7 @@
*/
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
"deccjsunit/index"
import
commonEvent
from
'@ohos.commonEvent'
import
abilityManager
from
'@ohos.application.ability
m
anager'
;
import
abilityManager
from
'@ohos.application.ability
M
anager'
;
import
appManager
from
'@ohos.application.appManager'
import
missionManager
from
'@ohos.application.missionManager'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录