Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
acfcb035
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看板
未验证
提交
acfcb035
编写于
1月 27, 2023
作者:
O
openharmony_ci
提交者:
Gitee
1月 27, 2023
浏览文件
操作
浏览文件
下载
差异文件
!7243 添加pixelmapndk测试
Merge pull request !7243 from caochuan/pixelmapNdk
上级
fac1ff68
bb465161
变更
18
展开全部
隐藏空白更改
内联
并排
Showing
18 changed file
with
1945 addition
and
0 deletion
+1945
-0
multimedia/BUILD.gn
multimedia/BUILD.gn
+1
-0
multimedia/image/image_js_standard/imagePixelMapNDK/BUILD.gn
multimedia/image/image_js_standard/imagePixelMapNDK/BUILD.gn
+40
-0
multimedia/image/image_js_standard/imagePixelMapNDK/Test.json
...imedia/image/image_js_standard/imagePixelMapNDK/Test.json
+18
-0
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/config.json
...e_js_standard/imagePixelMapNDK/entry/src/main/config.json
+130
-0
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/cpp/BUILD.gn
..._js_standard/imagePixelMapNDK/entry/src/main/cpp/BUILD.gn
+49
-0
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/cpp/napi/image_pixel_map_imgndk_test.cpp
...K/entry/src/main/cpp/napi/image_pixel_map_imgndk_test.cpp
+637
-0
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/cpp/napi/image_pixel_map_imgndk_test.h
...NDK/entry/src/main/cpp/napi/image_pixel_map_imgndk_test.h
+52
-0
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/ets/MainAbility/app.ets
...d/imagePixelMapNDK/entry/src/main/ets/MainAbility/app.ets
+33
-0
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/ets/MainAbility/pages/index.ets
...ixelMapNDK/entry/src/main/ets/MainAbility/pages/index.ets
+37
-0
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/ets/TestAbility/app.ets
...d/imagePixelMapNDK/entry/src/main/ets/TestAbility/app.ets
+33
-0
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/ets/TestAbility/pages/index.ets
...ixelMapNDK/entry/src/main/ets/TestAbility/pages/index.ets
+50
-0
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
...DK/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
+78
-0
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/ets/test/ImagePixelMapNDKTest.ets
...elMapNDK/entry/src/main/ets/test/ImagePixelMapNDKTest.ets
+747
-0
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/ets/test/List.test.ets
...rd/imagePixelMapNDK/entry/src/main/ets/test/List.test.ets
+18
-0
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/resources/base/element/string.json
...lMapNDK/entry/src/main/resources/base/element/string.json
+20
-0
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/resources/base/media/icon.png
...ePixelMapNDK/entry/src/main/resources/base/media/icon.png
+0
-0
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/resources/rawfile/test/aa.xml
...ePixelMapNDK/entry/src/main/resources/rawfile/test/aa.xml
+2
-0
multimedia/image/image_js_standard/imagePixelMapNDK/signature/openharmony_sx.p7b
...js_standard/imagePixelMapNDK/signature/openharmony_sx.p7b
+0
-0
未找到文件。
multimedia/BUILD.gn
浏览文件 @
acfcb035
...
...
@@ -35,6 +35,7 @@ group("multimedia") {
"image/image_js_standard/imageModifyProperty:image_modifyProperty_js_hap",
"image/image_js_standard/imagePacking:image_packing_js_hap",
"image/image_js_standard/imagePixelMapFramework:image_pixelmapframework_js_hap",
"image/image_js_standard/imagePixelMapNDK:image_pixel_map_ndk_js_hap",
"image/image_js_standard/imageRGBA:image_rgba_js_hap",
"image/image_js_standard/imageRaw:image_raw_js_hap",
"image/image_js_standard/imageReceiver:image_receiver_js_hap",
...
...
multimedia/image/image_js_standard/imagePixelMapNDK/BUILD.gn
0 → 100644
浏览文件 @
acfcb035
# Copyright (c) 2023 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("//build/ohos.gni")
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("image_pixel_map_ndk_js_hap") {
hap_profile = "./entry/src/main/config.json"
deps = [
":ace_third_ets_assets",
":ace_third_ets_resources",
":ace_third_ets_test_assets",
]
ets2abc = true
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsImagePixelMapNdkJsTest"
subsystem_name = "multimedia"
part_name = "multimedia_image_framework"
shared_libraries = [ "./entry/src/main/cpp:ImagePixelMapNDKTest" ]
}
ohos_js_assets("ace_third_ets_assets") {
source_dir = "./entry/src/main/ets/MainAbility"
}
ohos_js_assets("ace_third_ets_test_assets") {
source_dir = "./entry/src/main/ets/TestAbility"
}
ohos_resources("ace_third_ets_resources") {
sources = [ "./entry/src/main/resources" ]
hap_profile = "./entry/src/main/config.json"
}
multimedia/image/image_js_standard/imagePixelMapNDK/Test.json
0 → 100644
浏览文件 @
acfcb035
{
"description"
:
"Configuration for hjunit demo Tests"
,
"driver"
:
{
"type"
:
"OHJSUnitTest"
,
"test-timeout"
:
"600000"
,
"testcase-timeout"
:
"300000"
,
"bundle-name"
:
"ohos.acts.multimedia.imagePixelMapNDK"
,
"package-name"
:
"ohos.acts.multimedia.imagePixelMapNDK"
,
"shell-timeout"
:
"600000"
},
"kits"
:
[{
"test-file-name"
:
[
"ActsImagePixelMapNdkJsTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
}]
}
\ No newline at end of file
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/config.json
0 → 100644
浏览文件 @
acfcb035
{
"app"
:
{
"bundleName"
:
"ohos.acts.multimedia.imagePixelMapNDK"
,
"vendor"
:
"open"
,
"version"
:
{
"code"
:
1000000
,
"name"
:
"1.0.0"
},
"apiVersion"
:
{
"compatible"
:
9
,
"releaseType"
:
"Release"
,
"target"
:
9
}
},
"deviceConfig"
:
{},
"module"
:
{
"package"
:
"ohos.acts.multimedia.imagePixelMapNDK"
,
"name"
:
".MyApplication"
,
"mainAbility"
:
"ohos.acts.multimedia.imagePixelMapNDK.MainAbility"
,
"deviceType"
:
[
"tablet"
,
"default"
,
"phone"
],
"distro"
:
{
"deliveryWithInstall"
:
true
,
"moduleName"
:
"entry"
,
"moduleType"
:
"entry"
,
"installationFree"
:
false
},
"reqPermissions"
:
[
{
"name"
:
"ohos.permission.GET_BUNDLE_INFO"
,
"reason"
:
"use ohos.permission.GET_BUNDLE_INFO"
},
{
"name"
:
"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
,
"reason"
:
"use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name"
:
"ohos.permission.GRANT_SENSITIVE_PERMISSIONS"
,
"reason"
:
"use ohos.permission.GRANT_SENSITIVE_PERMISSIONS"
},
{
"name"
:
"ohos.permission.REVOKE_SENSITIVE_PERMISSIONS"
,
"reason"
:
"use ohos.permission.REVOKE_SENSITIVE_PERMISSIONS"
},
{
"name"
:
"ohos.permission.MEDIA_LOCATION"
,
"reason"
:
"use ohos.permission.MEDIA_LOCATION"
},
{
"name"
:
"ohos.permission.READ_MEDIA"
,
"reason"
:
"use ohos.permission.READ_MEDIA"
},
{
"name"
:
"ohos.permission.WRITE_MEDIA"
,
"reason"
:
"use ohos.permission.WRITE_MEDIA"
}
],
"abilities"
:
[
{
"skills"
:
[
{
"entities"
:
[
"entity.system.home"
],
"actions"
:
[
"action.system.home"
]
}
],
"orientation"
:
"unspecified"
,
"visible"
:
true
,
"srcPath"
:
"MainAbility"
,
"name"
:
".MainAbility"
,
"srcLanguage"
:
"ets"
,
"icon"
:
"$media:icon"
,
"description"
:
"$string:description_mainability"
,
"formsEnabled"
:
false
,
"label"
:
"$string:entry_MainAbility"
,
"type"
:
"page"
,
"launchType"
:
"standard"
},
{
"orientation"
:
"unspecified"
,
"visible"
:
true
,
"srcPath"
:
"TestAbility"
,
"name"
:
".TestAbility"
,
"srcLanguage"
:
"ets"
,
"icon"
:
"$media:icon"
,
"description"
:
"$string:TestAbility_desc"
,
"formsEnabled"
:
false
,
"label"
:
"$string:TestAbility_label"
,
"type"
:
"page"
,
"launchType"
:
"standard"
}
],
"js"
:
[
{
"mode"
:
{
"syntax"
:
"ets"
,
"type"
:
"pageAbility"
},
"pages"
:
[
"pages/index"
],
"name"
:
".MainAbility"
,
"window"
:
{
"designWidth"
:
720
,
"autoDesignWidth"
:
false
}
},
{
"mode"
:
{
"syntax"
:
"ets"
,
"type"
:
"pageAbility"
},
"pages"
:
[
"pages/index"
],
"name"
:
".TestAbility"
,
"window"
:
{
"designWidth"
:
720
,
"autoDesignWidth"
:
false
}
}
]
}
}
\ No newline at end of file
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/cpp/BUILD.gn
0 → 100644
浏览文件 @
acfcb035
# Copyright (C) 2023 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("//build/config/ohos/config.gni")
import("//build/ohos.gni")
import("//foundation/arkui/napi/napi.gni")
config("config") {
visibility = [ ":*" ]
cflags = [
"-Wall",
"-Werror",
"-g3",
"-Wunused-variable",
]
}
ohos_shared_library("ImagePixelMapNDKTest") {
sources = [ "./napi/image_pixel_map_imgndk_test.cpp" ]
if (target_cpu == "arm") {
libs = [ "${clang_base_path}/../libcxx-ndk/lib/arm-linux-ohos/c++/libc++_shared.so" ]
} else if (target_cpu == "arm64") {
libs = [ "${clang_base_path}/../libcxx-ndk/lib/aarch64-linux-ohos/c++/libc++_shared.so" ]
} else {
libs = []
}
include_dirs = [ "../cpp" ]
configs = [ ":config" ]
external_deps = [
"multimedia_image_framework:pixelmap_ndk",
"napi:ace_napi",
]
output_extension = "so"
subsystem_name = "multimedia"
part_name = "multimedia_image_framework"
}
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/cpp/napi/image_pixel_map_imgndk_test.cpp
0 → 100644
浏览文件 @
acfcb035
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/cpp/napi/image_pixel_map_imgndk_test.h
0 → 100644
浏览文件 @
acfcb035
/*
* Copyright (c) 2023 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.
*/
#ifndef RESOURCE_MANAGER_ADDON_H
#define RESOURCE_MANAGER_ADDON_H
#include <memory>
#include <string>
#include "napi/native_api.h"
#include "image_pixel_map_napi.h"
namespace
OHOS
{
namespace
Media
{
class
ImagePixelMapNDKTest
{
public:
static
napi_value
Init
(
napi_env
env
,
napi_value
exports
);
static
napi_value
CreatePixelMap
(
napi_env
env
,
napi_callback_info
info
);
static
napi_value
CreateAlphaPixelMap
(
napi_env
env
,
napi_callback_info
info
);
static
napi_value
InitNativePixelMap
(
napi_env
env
,
napi_callback_info
info
);
static
napi_value
GetBytesNumberPerRow
(
napi_env
env
,
napi_callback_info
info
);
static
napi_value
GetIsEditable
(
napi_env
env
,
napi_callback_info
info
);
static
napi_value
IsSupportAlpha
(
napi_env
env
,
napi_callback_info
info
);
static
napi_value
SetAlphaAble
(
napi_env
env
,
napi_callback_info
info
);
static
napi_value
GetDensity
(
napi_env
env
,
napi_callback_info
info
);
static
napi_value
SetDensity
(
napi_env
env
,
napi_callback_info
info
);
static
napi_value
SetOpacity
(
napi_env
env
,
napi_callback_info
info
);
static
napi_value
Scale
(
napi_env
env
,
napi_callback_info
info
);
static
napi_value
Translate
(
napi_env
env
,
napi_callback_info
info
);
static
napi_value
Rotate
(
napi_env
env
,
napi_callback_info
info
);
static
napi_value
Flip
(
napi_env
env
,
napi_callback_info
info
);
static
napi_value
Crop
(
napi_env
env
,
napi_callback_info
info
);
static
napi_value
GetImageInfo
(
napi_env
env
,
napi_callback_info
info
);
static
napi_value
AccessPixels
(
napi_env
env
,
napi_callback_info
info
);
static
napi_value
UnAccessPixels
(
napi_env
env
,
napi_callback_info
info
);
private:
};
}
// namespace Media
}
// namespace OHOS
#endif
\ No newline at end of file
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/ets/MainAbility/app.ets
0 → 100644
浏览文件 @
acfcb035
// @ts-nocheck
/**
* Copyright (c) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import { Hypium } from 'hypium/index'
import testsuite from '../test/List.test'
export default {
onCreate() {
console.info('Application onCreate')
var abilityDelegator: any
abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator()
var abilityDelegatorArguments: any
abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments()
console.info('start run testcase!!!')
Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite)
},
onDestroy() {
console.info('Application onDestroy')
},
}
\ No newline at end of file
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/ets/MainAbility/pages/index.ets
0 → 100644
浏览文件 @
acfcb035
// @ts-nocheck
/**
* Copyright (c) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@Entry
@Component
struct MyComponent {
aboutToAppear() {
}
build() {
Flex({
direction: FlexDirection.Column,
alignItems: ItemAlign.Center,
justifyContent: FlexAlign.Center
}) {
Text('ACE ETS TEST')
.fontSize(50)
.fontWeight(FontWeight.Bold)
}
.width('100%')
.height('100%')
}
}
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/ets/TestAbility/app.ets
0 → 100644
浏览文件 @
acfcb035
// @ts-nocheck
/**
* Copyright (c) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import { Hypium } from 'hypium/index'
import testsuite from '../test/List.test'
export default {
onCreate() {
console.info('Application onCreate')
var abilityDelegator: any
abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator()
var abilityDelegatorArguments: any
abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments()
console.info('start run testcase!!!')
Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite)
},
onDestroy() {
console.info('Application onDestroy')
},
}
\ No newline at end of file
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/ets/TestAbility/pages/index.ets
0 → 100644
浏览文件 @
acfcb035
// @ts-nocheck
/**
* Copyright (c) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import router from '@system.router';
@Entry
@Component
struct Index {
aboutToAppear() {
console.info('TestAbility index aboutToAppear')
}
@State message: string = 'Hello World'
build() {
Row() {
Column() {
Text(this.message)
.fontSize(50)
.fontWeight(FontWeight.Bold)
Button() {
Text('next page')
.fontSize(20)
.fontWeight(FontWeight.Bold)
}.type(ButtonType.Capsule)
.margin({
top: 20
})
.backgroundColor('#0D9FFB')
.width('35%')
.height('5%')
.onClick(() => {
})
}
.width('100%')
}
.height('100%')
}
}
\ No newline at end of file
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
0 → 100644
浏览文件 @
acfcb035
// @ts-nocheck
/**
* Copyright (c) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
TestRunner
from
'
@ohos.application.testRunner
'
import
AbilityDelegatorRegistry
from
'
@ohos.application.abilityDelegatorRegistry
'
var
abilityDelegator
=
undefined
var
abilityDelegatorArguments
=
undefined
function
translateParamsToString
(
parameters
)
{
const
keySet
=
new
Set
([
'
-s class
'
,
'
-s notClass
'
,
'
-s suite
'
,
'
-s itName
'
,
'
-s level
'
,
'
-s testType
'
,
'
-s size
'
,
'
-s timeout
'
,
'
-s package
'
])
let
targetParams
=
''
;
for
(
const
key
in
parameters
)
{
if
(
keySet
.
has
(
key
))
{
targetParams
+=
'
'
+
key
+
'
'
+
parameters
[
key
]
}
}
return
targetParams
.
trim
()
}
async
function
onAbilityCreateCallback
()
{
console
.
log
(
'
onAbilityCreateCallback
'
);
}
async
function
addAbilityMonitorCallback
(
err
:
any
)
{
console
.
info
(
'
addAbilityMonitorCallback :
'
+
JSON
.
stringify
(
err
))
}
export
default
class
OpenHarmonyTestRunner
implements
TestRunner
{
constructor
()
{
}
onPrepare
()
{
console
.
info
(
'
OpenHarmonyTestRunner OnPrepare
'
)
}
onRun
()
{
console
.
log
(
'
OpenHarmonyTestRunner onRun run
'
)
abilityDelegatorArguments
=
AbilityDelegatorRegistry
.
getArguments
()
abilityDelegator
=
AbilityDelegatorRegistry
.
getAbilityDelegator
()
let
lMonitor
=
{
abilityName
:
testAbilityName
,
onAbilityCreate
:
onAbilityCreateCallback
,
};
var
testAbilityName
=
abilityDelegatorArguments
.
parameters
[
'
-p
'
]
+
'
.MainAbility
'
abilityDelegator
.
addAbilityMonitor
(
lMonitor
,
addAbilityMonitorCallback
)
var
cmd
=
'
aa start -d 0 -a
'
+
testAbilityName
+
'
-b
'
+
abilityDelegatorArguments
.
bundleName
cmd
+=
'
'
+
translateParamsToString
(
abilityDelegatorArguments
.
parameters
)
console
.
info
(
'
cmd :
'
+
cmd
)
abilityDelegator
.
executeShellCommand
(
cmd
,
(
err
:
any
,
d
:
any
)
=>
{
console
.
info
(
'
executeShellCommand : err :
'
+
JSON
.
stringify
(
err
));
console
.
info
(
'
executeShellCommand : data :
'
+
d
.
stdResult
);
console
.
info
(
'
executeShellCommand : data :
'
+
d
.
exitCode
);
})
console
.
info
(
'
OpenHarmonyTestRunner onRun call abilityDelegator.getAppContext
'
)
var
context
=
abilityDelegator
.
getAppContext
()
console
.
info
(
'
getAppContext :
'
+
JSON
.
stringify
(
context
))
console
.
info
(
'
OpenHarmonyTestRunner onRun end
'
)
}
};
\ No newline at end of file
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/ets/test/ImagePixelMapNDKTest.ets
0 → 100644
浏览文件 @
acfcb035
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/ets/test/List.test.ets
0 → 100644
浏览文件 @
acfcb035
/*
* Copyright (c) 2023 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 ImagePixelMapNDKTest from './ImagePixelMapNDKTest';
export default function testsuite() {
ImagePixelMapNDKTest()
}
\ No newline at end of file
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/resources/base/element/string.json
0 → 100644
浏览文件 @
acfcb035
{
"string"
:
[
{
"name"
:
"entry_MainAbility"
,
"value"
:
"entry_MainAbility"
},
{
"name"
:
"description_mainability"
,
"value"
:
"ETS_Empty Ability"
},
{
"name"
:
"TestAbility_desc"
,
"value"
:
"description"
},
{
"name"
:
"TestAbility_label"
,
"value"
:
"label"
}
]
}
\ No newline at end of file
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/resources/base/media/icon.png
0 → 100644
浏览文件 @
acfcb035
6.6 KB
multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/resources/rawfile/test/aa.xml
0 → 100644
浏览文件 @
acfcb035
<!--test/aa.xml dcaea123-->
<!--ggg-->
multimedia/image/image_js_standard/imagePixelMapNDK/signature/openharmony_sx.p7b
0 → 100644
浏览文件 @
acfcb035
文件已添加
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录