Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
9dfdd957
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
接近 2 年 前同步成功
通知
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看板
提交
9dfdd957
编写于
1月 03, 2023
作者:
T
tianwenzhe
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
change
Signed-off-by:
N
tian-wenzhe411
<
tianwenzhe2@huawei.com
>
上级
bdd7daf8
变更
65
显示空白变更内容
内联
并排
Showing
65 changed file
with
31 addition
and
938 deletion
+31
-938
validator/acts_validator/src/main/ets/pages/ArkUI/ArkUI_index.ets
...r/acts_validator/src/main/ets/pages/ArkUI/ArkUI_index.ets
+4
-19
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasFillStyle.ets
...ts_validator/src/main/ets/pages/ArkUI/CanvasFillStyle.ets
+0
-14
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasFont.ets
...or/acts_validator/src/main/ets/pages/ArkUI/CanvasFont.ets
+0
-14
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasGlobalAlpha.ets
..._validator/src/main/ets/pages/ArkUI/CanvasGlobalAlpha.ets
+0
-14
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasGlobalCompositeOperation.ets
...c/main/ets/pages/ArkUI/CanvasGlobalCompositeOperation.ets
+0
-14
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasImageSmoothingEnabled.ets
.../src/main/ets/pages/ArkUI/CanvasImageSmoothingEnabled.ets
+0
-14
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasLineCap.ets
...acts_validator/src/main/ets/pages/ArkUI/CanvasLineCap.ets
+0
-14
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasLineDashOffset.ets
...lidator/src/main/ets/pages/ArkUI/CanvasLineDashOffset.ets
+0
-14
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasLineJoin.ets
...cts_validator/src/main/ets/pages/ArkUI/CanvasLineJoin.ets
+0
-14
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasLineWidth.ets
...ts_validator/src/main/ets/pages/ArkUI/CanvasLineWidth.ets
+0
-14
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasMiterLimit.ets
...s_validator/src/main/ets/pages/ArkUI/CanvasMiterLimit.ets
+0
-14
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasShadowBlur.ets
...s_validator/src/main/ets/pages/ArkUI/CanvasShadowBlur.ets
+0
-14
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasShadowColor.ets
..._validator/src/main/ets/pages/ArkUI/CanvasShadowColor.ets
+0
-14
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasShadowOffsetX.ets
...alidator/src/main/ets/pages/ArkUI/CanvasShadowOffsetX.ets
+0
-14
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasShadowOffsetY.ets
...alidator/src/main/ets/pages/ArkUI/CanvasShadowOffsetY.ets
+0
-14
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasStrokeStyle.ets
..._validator/src/main/ets/pages/ArkUI/CanvasStrokeStyle.ets
+0
-14
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasTextAlign.ets
...ts_validator/src/main/ets/pages/ArkUI/CanvasTextAlign.ets
+0
-14
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasTextBaseline.ets
...validator/src/main/ets/pages/ArkUI/CanvasTextBaseline.ets
+0
-14
validator/acts_validator/src/main/ets/pages/ArkUI/LongPressGesture.ets
...s_validator/src/main/ets/pages/ArkUI/LongPressGesture.ets
+0
-14
validator/acts_validator/src/main/ets/pages/ArkUI/PanGesture.ets
...or/acts_validator/src/main/ets/pages/ArkUI/PanGesture.ets
+0
-14
validator/acts_validator/src/main/ets/pages/ArkUI/PinchGestureTest.ets
...s_validator/src/main/ets/pages/ArkUI/PinchGestureTest.ets
+0
-14
validator/acts_validator/src/main/ets/pages/ArkUI/RotationGestureTest.ets
...alidator/src/main/ets/pages/ArkUI/RotationGestureTest.ets
+0
-14
validator/acts_validator/src/main/ets/pages/ArkUI/ScrollListTest.ets
...cts_validator/src/main/ets/pages/ArkUI/ScrollListTest.ets
+0
-14
validator/acts_validator/src/main/ets/pages/ArkUI/SwipeGestureTest.ets
...s_validator/src/main/ets/pages/ArkUI/SwipeGestureTest.ets
+0
-14
validator/acts_validator/src/main/ets/pages/ArkUI/TapGesture.ets
...or/acts_validator/src/main/ets/pages/ArkUI/TapGesture.ets
+0
-14
validator/acts_validator/src/main/ets/pages/ArkUI/TouchMoveTest.ets
...acts_validator/src/main/ets/pages/ArkUI/TouchMoveTest.ets
+6
-16
validator/acts_validator/src/main/ets/pages/MediaLibrary/MediaLibrary_index.ets
...or/src/main/ets/pages/MediaLibrary/MediaLibrary_index.ets
+2
-17
validator/acts_validator/src/main/ets/pages/MediaLibrary/startImagePreviewCallback1.ets
...ain/ets/pages/MediaLibrary/startImagePreviewCallback1.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/startImagePreviewCallback2.ets
...ain/ets/pages/MediaLibrary/startImagePreviewCallback2.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/startImagePreviewCallback3.ets
...ain/ets/pages/MediaLibrary/startImagePreviewCallback3.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/startImagePreviewCallback4.ets
...ain/ets/pages/MediaLibrary/startImagePreviewCallback4.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/startImagePreviewCallback5.ets
...ain/ets/pages/MediaLibrary/startImagePreviewCallback5.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/startImagePreviewCallback6.ets
...ain/ets/pages/MediaLibrary/startImagePreviewCallback6.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/startImagePreviewCallback7.ets
...ain/ets/pages/MediaLibrary/startImagePreviewCallback7.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/startImagePreviewPromise1.ets
...main/ets/pages/MediaLibrary/startImagePreviewPromise1.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/startImagePreviewPromise2.ets
...main/ets/pages/MediaLibrary/startImagePreviewPromise2.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/startImagePreviewPromise3.ets
...main/ets/pages/MediaLibrary/startImagePreviewPromise3.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/startImagePreviewPromise4.ets
...main/ets/pages/MediaLibrary/startImagePreviewPromise4.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/startMediaSelectCallback1.ets
...main/ets/pages/MediaLibrary/startMediaSelectCallback1.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/startMediaSelectCallback2.ets
...main/ets/pages/MediaLibrary/startMediaSelectCallback2.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/startMediaSelectCallback3.ets
...main/ets/pages/MediaLibrary/startMediaSelectCallback3.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/startMediaSelectCallback4.ets
...main/ets/pages/MediaLibrary/startMediaSelectCallback4.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/startMediaSelectPromise1.ets
.../main/ets/pages/MediaLibrary/startMediaSelectPromise1.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/startMediaSelectPromise2.ets
.../main/ets/pages/MediaLibrary/startMediaSelectPromise2.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/startMediaSelectPromise3.ets
.../main/ets/pages/MediaLibrary/startMediaSelectPromise3.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/startMediaSelectPromise4.ets
.../main/ets/pages/MediaLibrary/startMediaSelectPromise4.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/storeMediaAssetCallback1.ets
.../main/ets/pages/MediaLibrary/storeMediaAssetCallback1.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/storeMediaAssetCallback2.ets
.../main/ets/pages/MediaLibrary/storeMediaAssetCallback2.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/storeMediaAssetCallback3.ets
.../main/ets/pages/MediaLibrary/storeMediaAssetCallback3.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/storeMediaAssetCallback4.ets
.../main/ets/pages/MediaLibrary/storeMediaAssetCallback4.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/storeMediaAssetPromise1.ets
...c/main/ets/pages/MediaLibrary/storeMediaAssetPromise1.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/storeMediaAssetPromise2.ets
...c/main/ets/pages/MediaLibrary/storeMediaAssetPromise2.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/storeMediaAssetPromise3.ets
...c/main/ets/pages/MediaLibrary/storeMediaAssetPromise3.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/storeMediaAssetPromise4.ets
...c/main/ets/pages/MediaLibrary/storeMediaAssetPromise4.ets
+0
-14
validator/acts_validator/src/main/ets/pages/MediaLibrary/storeMediaAssetPromise5.ets
...c/main/ets/pages/MediaLibrary/storeMediaAssetPromise5.ets
+0
-14
validator/acts_validator/src/main/ets/pages/common/CanvasCustomContainer1.ets
...ator/src/main/ets/pages/common/CanvasCustomContainer1.ets
+4
-18
validator/acts_validator/src/main/ets/pages/common/CanvasCustomContainer2.ets
...ator/src/main/ets/pages/common/CanvasCustomContainer2.ets
+2
-16
validator/acts_validator/src/main/ets/pages/common/CustomContainer.ets
...s_validator/src/main/ets/pages/common/CustomContainer.ets
+2
-16
validator/acts_validator/src/main/ets/pages/common/CustomContainer2.ets
..._validator/src/main/ets/pages/common/CustomContainer2.ets
+2
-16
validator/acts_validator/src/main/ets/pages/common/CustomContainer3.ets
..._validator/src/main/ets/pages/common/CustomContainer3.ets
+2
-16
validator/acts_validator/src/main/ets/pages/common/CustomContainer4.ets
..._validator/src/main/ets/pages/common/CustomContainer4.ets
+2
-16
validator/acts_validator/src/main/ets/pages/common/CustomContainer5.ets
..._validator/src/main/ets/pages/common/CustomContainer5.ets
+2
-16
validator/acts_validator/src/main/ets/pages/common/MediaCustomContainer.ets
...idator/src/main/ets/pages/common/MediaCustomContainer.ets
+2
-16
validator/acts_validator/src/main/ets/pages/index.ets
validator/acts_validator/src/main/ets/pages/index.ets
+0
-14
validator/acts_validator/src/main/ets/pages/model/FirstDialog.ets
...r/acts_validator/src/main/ets/pages/model/FirstDialog.ets
+1
-14
未找到文件。
validator/acts_validator/src/main/ets/pages/ArkUI/ArkUI_index.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 prompt from '@ohos.prompt';
import prompt from '@ohos.prompt';
import router from '@ohos.router';
import router from '@ohos.router';
import fileio from '@ohos.fileio';
import fileio from '@ohos.fileio';
...
@@ -59,7 +45,7 @@ struct IndexPage {
...
@@ -59,7 +45,7 @@ struct IndexPage {
{title:'CanvasShadowOffsetX',uri:'pages/ArkUI/CanvasShadowOffsetX'},
{title:'CanvasShadowOffsetX',uri:'pages/ArkUI/CanvasShadowOffsetX'},
{title:'CanvasShadowOffsetY',uri:'pages/ArkUI/CanvasShadowOffsetY'},
{title:'CanvasShadowOffsetY',uri:'pages/ArkUI/CanvasShadowOffsetY'},
{title:'CanvasImageSmoothingEnabled',uri:'pages/ArkUI/CanvasImageSmoothingEnabled'},
{title:'CanvasImageSmoothingEnabled',uri:'pages/ArkUI/CanvasImageSmoothingEnabled'},
{title:'',uri:'',bgc:Color.Black},
//
{title:'',uri:'',bgc:Color.Black},
]
]
@State ColorObject : string[] = ['#ff808080','#ff808080','#ff808080','#ff808080','#ff808080','#ff808080',
@State ColorObject : string[] = ['#ff808080','#ff808080','#ff808080','#ff808080','#ff808080','#ff808080',
'#ff808080','#ff808080','#ff808080','#ff808080','#ff808080','#ff808080','#ff808080','#ff808080','#ff808080','#ff808080',
'#ff808080','#ff808080','#ff808080','#ff808080','#ff808080','#ff808080','#ff808080','#ff808080','#ff808080','#ff808080',
...
@@ -72,11 +58,11 @@ struct IndexPage {
...
@@ -72,11 +58,11 @@ struct IndexPage {
let results = this.result;
let results = this.result;
if (this.result === 'Pass'){
if (this.result === 'Pass'){
this.ColorObject[this.current] = '#ff008000';
this.ColorObject[this.current] = '#ff008000';
filewrite(name1,results,titles)
;
filewrite(name1,results,titles)
}
}
else if (this.result === 'Fail'){
else if (this.result === 'Fail'){
this.ColorObject[this.current] = '#ffff0000';
this.ColorObject[this.current] = '#ffff0000';
filewrite(name1,results,titles)
;
filewrite(name1,results,titles)
}
}
else if (this.result === 'None'){
else if (this.result === 'None'){
this.ColorObject[this.current] = this.ColorObject[this.current]
this.ColorObject[this.current] = this.ColorObject[this.current]
...
@@ -139,14 +125,13 @@ struct IndexPage {
...
@@ -139,14 +125,13 @@ struct IndexPage {
this.count = 1
this.count = 1
this.ClearAll=false
this.ClearAll=false
this.current = index
this.current = index
console.info('current:'+this.current+'当前背景色:'+this.TestCaseList[index].bgc+'Index:'+index)
router.push({
router.push({
url: item.uri,
url: item.uri,
})
})
})
})
}
}
},item => item.title)
},item => item.title)
}.width('100%')
}.width('100%')
.height('92%')
}.width('100%').height('100%').backgroundColor(Color.Black)
}.width('100%').height('100%').backgroundColor(Color.Black)
}
}
ClearText(){
ClearText(){
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasFillStyle.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 {CustomContainer} from '../common/CanvasCustomContainer1'
import {CustomContainer} from '../common/CanvasCustomContainer1'
import FirstDialog from '../model/FirstDialog'
import FirstDialog from '../model/FirstDialog'
@Entry
@Entry
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasFont.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 {CustomContainer} from '../common/CanvasCustomContainer1'
import {CustomContainer} from '../common/CanvasCustomContainer1'
import FirstDialog from '../model/FirstDialog'
import FirstDialog from '../model/FirstDialog'
@Entry
@Entry
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasGlobalAlpha.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 {CustomContainer} from '../common/CanvasCustomContainer2'
import {CustomContainer} from '../common/CanvasCustomContainer2'
import FirstDialog from '../model/FirstDialog'
import FirstDialog from '../model/FirstDialog'
@Entry
@Entry
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasGlobalCompositeOperation.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 {CustomContainer} from '../common/CanvasCustomContainer1'
import {CustomContainer} from '../common/CanvasCustomContainer1'
import FirstDialog from '../model/FirstDialog'
import FirstDialog from '../model/FirstDialog'
@Entry
@Entry
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasImageSmoothingEnabled.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 {CustomContainer} from '../common/CanvasCustomContainer2'
import {CustomContainer} from '../common/CanvasCustomContainer2'
import FirstDialog from '../model/FirstDialog'
import FirstDialog from '../model/FirstDialog'
@Entry
@Entry
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasLineCap.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 {CustomContainer} from '../common/CanvasCustomContainer1'
import {CustomContainer} from '../common/CanvasCustomContainer1'
import FirstDialog from '../model/FirstDialog'
import FirstDialog from '../model/FirstDialog'
@Entry
@Entry
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasLineDashOffset.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 {CustomContainer} from '../common/CanvasCustomContainer2'
import {CustomContainer} from '../common/CanvasCustomContainer2'
import FirstDialog from '../model/FirstDialog'
import FirstDialog from '../model/FirstDialog'
@Entry
@Entry
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasLineJoin.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 {CustomContainer} from '../common/CanvasCustomContainer1'
import {CustomContainer} from '../common/CanvasCustomContainer1'
import FirstDialog from '../model/FirstDialog'
import FirstDialog from '../model/FirstDialog'
@Entry
@Entry
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasLineWidth.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 {CustomContainer} from '../common/CanvasCustomContainer2'
import {CustomContainer} from '../common/CanvasCustomContainer2'
import FirstDialog from '../model/FirstDialog'
import FirstDialog from '../model/FirstDialog'
@Entry
@Entry
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasMiterLimit.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 {CustomContainer} from '../common/CanvasCustomContainer2'
import {CustomContainer} from '../common/CanvasCustomContainer2'
import FirstDialog from '../model/FirstDialog'
import FirstDialog from '../model/FirstDialog'
@Entry
@Entry
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasShadowBlur.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 {CustomContainer} from '../common/CanvasCustomContainer2'
import {CustomContainer} from '../common/CanvasCustomContainer2'
import FirstDialog from '../model/FirstDialog'
import FirstDialog from '../model/FirstDialog'
@Entry
@Entry
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasShadowColor.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 {CustomContainer} from '../common/CanvasCustomContainer2'
import {CustomContainer} from '../common/CanvasCustomContainer2'
import FirstDialog from '../model/FirstDialog'
import FirstDialog from '../model/FirstDialog'
@Entry
@Entry
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasShadowOffsetX.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 {CustomContainer} from '../common/CanvasCustomContainer2'
import {CustomContainer} from '../common/CanvasCustomContainer2'
import FirstDialog from '../model/FirstDialog'
import FirstDialog from '../model/FirstDialog'
@Entry
@Entry
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasShadowOffsetY.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 {CustomContainer} from '../common/CanvasCustomContainer2'
import {CustomContainer} from '../common/CanvasCustomContainer2'
import FirstDialog from '../model/FirstDialog'
import FirstDialog from '../model/FirstDialog'
@Entry
@Entry
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasStrokeStyle.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 {CustomContainer} from '../common/CanvasCustomContainer1'
import {CustomContainer} from '../common/CanvasCustomContainer1'
import FirstDialog from '../model/FirstDialog'
import FirstDialog from '../model/FirstDialog'
@Entry
@Entry
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasTextAlign.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 {CustomContainer} from '../common/CanvasCustomContainer1'
import {CustomContainer} from '../common/CanvasCustomContainer1'
import FirstDialog from '../model/FirstDialog'
import FirstDialog from '../model/FirstDialog'
@Entry
@Entry
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/CanvasTextBaseline.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 {CustomContainer} from '../common/CanvasCustomContainer1'
import {CustomContainer} from '../common/CanvasCustomContainer1'
import FirstDialog from '../model/FirstDialog'
import FirstDialog from '../model/FirstDialog'
@Entry
@Entry
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/LongPressGesture.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 {CustomContainer} from '../common/CustomContainer2';
import {CustomContainer} from '../common/CustomContainer2';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
@Entry
@Entry
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/PanGesture.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 {CustomContainer} from '../common/CustomContainer3';
import {CustomContainer} from '../common/CustomContainer3';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
@Entry
@Entry
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/PinchGestureTest.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 {CustomContainer} from '../common/CustomContainer2';
import {CustomContainer} from '../common/CustomContainer2';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
@Entry
@Entry
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/RotationGestureTest.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 {CustomContainer} from '../common/CustomContainer2';
import {CustomContainer} from '../common/CustomContainer2';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
@Entry
@Entry
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/ScrollListTest.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 {CustomContainer} from '../common/CustomContainer';
import {CustomContainer} from '../common/CustomContainer';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
@Entry
@Entry
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/SwipeGestureTest.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 {CustomContainer} from '../common/CustomContainer3';
import {CustomContainer} from '../common/CustomContainer3';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
@Entry
@Entry
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/TapGesture.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 {CustomContainer} from '../common/CustomContainer4';
import {CustomContainer} from '../common/CustomContainer4';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
@Entry
@Entry
...
...
validator/acts_validator/src/main/ets/pages/ArkUI/TouchMoveTest.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 prompt from '@ohos.prompt';
import prompt from '@ohos.prompt';
import fileio from '@ohos.fileio';
import fileio from '@ohos.fileio';
import router from '@ohos.router';
import router from '@ohos.router';
...
@@ -36,7 +22,7 @@ struct CustomContainer1 {
...
@@ -36,7 +22,7 @@ struct CustomContainer1 {
PassBtn(text: Resource, isFullScreen: boolean) {
PassBtn(text: Resource, isFullScreen: boolean) {
Button() {
Button() {
Image($r('app.media.ic_public_pass')).width('20vp').height('20vp')
Image($r('app.media.ic_public_pass')).width('20vp').height('20vp')
}.width('30%').height('30vp').backgroundColor(Color.Grey)
}.width('30%').height('30vp').backgroundColor(Color.Grey)
//Pass Button
.onClick(()=>{
.onClick(()=>{
router.back({
router.back({
url:this.Url,
url:this.Url,
...
@@ -50,7 +36,7 @@ struct CustomContainer1 {
...
@@ -50,7 +36,7 @@ struct CustomContainer1 {
FailBtn(text: Resource, isFullScreen: boolean) {
FailBtn(text: Resource, isFullScreen: boolean) {
Button(){
Button(){
Image($r('app.media.ic_public_fail')).width('20vp').height('20vp')
Image($r('app.media.ic_public_fail')).width('20vp').height('20vp')
}.width('30%').height('30vp').backgroundColor(Color.Grey)
}.width('30%').height('30vp').backgroundColor(Color.Grey)
//Fail Button
.onClick(()=>{
.onClick(()=>{
router.back({
router.back({
url:this.Url,
url:this.Url,
...
@@ -168,8 +154,12 @@ struct SetCircle {
...
@@ -168,8 +154,12 @@ struct SetCircle {
.width('20vp').height('20vp').position({ x: this.x, y: this.y }).visibility(this.isshow)
.width('20vp').height('20vp').position({ x: this.x, y: this.y }).visibility(this.isshow)
.fill(Color.Red)
.fill(Color.Red)
}.onTouch((event: TouchEvent) => {
}.onTouch((event: TouchEvent) => {
//console.info('11')
// x坐标
let x = event.touches[0].x
let x = event.touches[0].x
// y坐标
let y = event.touches[0].y
let y = event.touches[0].y
//console.info('this is ' + JSON.stringify(this))
if (event.type === TouchType.Down) {
if (event.type === TouchType.Down) {
this.x = x
this.x = x
this.y = y
this.y = y
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/MediaLibrary_index.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 prompt from '@ohos.prompt';
import prompt from '@ohos.prompt';
import router from '@ohos.router';
import router from '@ohos.router';
import fileio from '@ohos.fileio';
import fileio from '@ohos.fileio';
...
@@ -72,14 +58,13 @@ struct IndexPage {
...
@@ -72,14 +58,13 @@ struct IndexPage {
let titles = router.getParams()['title'];
let titles = router.getParams()['title'];
let name1 = '刚刚点进了哪个用例:'+ titles;
let name1 = '刚刚点进了哪个用例:'+ titles;
let results = this.result;
let results = this.result;
if (this.result === 'Pass'){
if (this.result === 'Pass'){
this.ColorObject[this.current] = '#ff008000';
this.ColorObject[this.current] = '#ff008000';
filewrite(name1,results,titles)
;
filewrite(name1,results,titles)
}
}
else if (this.result === 'Fail'){
else if (this.result === 'Fail'){
this.ColorObject[this.current] = '#ffff0000';
this.ColorObject[this.current] = '#ffff0000';
filewrite(name1,results,titles)
;
filewrite(name1,results,titles)
}
}
else if (this.result === 'None'){
else if (this.result === 'None'){
this.ColorObject[this.current] = this.ColorObject[this.current]
this.ColorObject[this.current] = this.ColorObject[this.current]
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/startImagePreviewCallback1.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import {CustomContainer} from '../common/MediaCustomContainer';
import {CustomContainer} from '../common/MediaCustomContainer';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/startImagePreviewCallback2.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import {CustomContainer} from '../common/MediaCustomContainer';
import {CustomContainer} from '../common/MediaCustomContainer';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/startImagePreviewCallback3.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import {CustomContainer} from '../common/MediaCustomContainer';
import {CustomContainer} from '../common/MediaCustomContainer';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/startImagePreviewCallback4.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import {CustomContainer} from '../common/MediaCustomContainer';
import {CustomContainer} from '../common/MediaCustomContainer';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/startImagePreviewCallback5.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import {CustomContainer} from '../common/MediaCustomContainer';
import {CustomContainer} from '../common/MediaCustomContainer';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/startImagePreviewCallback6.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import {CustomContainer} from '../common/MediaCustomContainer';
import {CustomContainer} from '../common/MediaCustomContainer';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/startImagePreviewCallback7.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import {CustomContainer} from '../common/MediaCustomContainer';
import {CustomContainer} from '../common/MediaCustomContainer';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/startImagePreviewPromise1.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import {CustomContainer} from '../common/MediaCustomContainer';
import {CustomContainer} from '../common/MediaCustomContainer';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/startImagePreviewPromise2.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import {CustomContainer} from '../common/MediaCustomContainer';
import {CustomContainer} from '../common/MediaCustomContainer';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/startImagePreviewPromise3.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import {CustomContainer} from '../common/MediaCustomContainer';
import {CustomContainer} from '../common/MediaCustomContainer';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/startImagePreviewPromise4.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import {CustomContainer} from '../common/MediaCustomContainer';
import {CustomContainer} from '../common/MediaCustomContainer';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/startMediaSelectCallback1.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import {CustomContainer} from '../common/MediaCustomContainer';
import {CustomContainer} from '../common/MediaCustomContainer';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/startMediaSelectCallback2.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import {CustomContainer} from '../common/MediaCustomContainer';
import {CustomContainer} from '../common/MediaCustomContainer';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/startMediaSelectCallback3.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import {CustomContainer} from '../common/MediaCustomContainer';
import {CustomContainer} from '../common/MediaCustomContainer';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/startMediaSelectCallback4.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import {CustomContainer} from '../common/MediaCustomContainer';
import {CustomContainer} from '../common/MediaCustomContainer';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/startMediaSelectPromise1.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import {CustomContainer} from '../common/MediaCustomContainer';
import {CustomContainer} from '../common/MediaCustomContainer';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/startMediaSelectPromise2.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import {CustomContainer} from '../common/MediaCustomContainer';
import {CustomContainer} from '../common/MediaCustomContainer';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/startMediaSelectPromise3.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import {CustomContainer} from '../common/MediaCustomContainer';
import {CustomContainer} from '../common/MediaCustomContainer';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/startMediaSelectPromise4.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import {CustomContainer} from '../common/MediaCustomContainer';
import {CustomContainer} from '../common/MediaCustomContainer';
import FirstDialog from '../model/FirstDialog';
import FirstDialog from '../model/FirstDialog';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/storeMediaAssetCallback1.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 fileio from '@ohos.fileio';
import fileio from '@ohos.fileio';
import featureAbility from '@ohos.ability.featureAbility';
import featureAbility from '@ohos.ability.featureAbility';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/storeMediaAssetCallback2.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 fileio from '@ohos.fileio';
import fileio from '@ohos.fileio';
import featureAbility from '@ohos.ability.featureAbility';
import featureAbility from '@ohos.ability.featureAbility';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/storeMediaAssetCallback3.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 fileio from '@ohos.fileio';
import fileio from '@ohos.fileio';
import featureAbility from '@ohos.ability.featureAbility';
import featureAbility from '@ohos.ability.featureAbility';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/storeMediaAssetCallback4.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 fileio from '@ohos.fileio';
import fileio from '@ohos.fileio';
import featureAbility from '@ohos.ability.featureAbility';
import featureAbility from '@ohos.ability.featureAbility';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/storeMediaAssetPromise1.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import fileio from '@ohos.fileio';
import fileio from '@ohos.fileio';
import featureAbility from '@ohos.ability.featureAbility';
import featureAbility from '@ohos.ability.featureAbility';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/storeMediaAssetPromise2.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import fileio from '@ohos.fileio';
import fileio from '@ohos.fileio';
import featureAbility from '@ohos.ability.featureAbility';
import featureAbility from '@ohos.ability.featureAbility';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/storeMediaAssetPromise3.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import fileio from '@ohos.fileio';
import fileio from '@ohos.fileio';
import featureAbility from '@ohos.ability.featureAbility';
import featureAbility from '@ohos.ability.featureAbility';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/storeMediaAssetPromise4.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import fileio from '@ohos.fileio';
import fileio from '@ohos.fileio';
import featureAbility from '@ohos.ability.featureAbility';
import featureAbility from '@ohos.ability.featureAbility';
...
...
validator/acts_validator/src/main/ets/pages/MediaLibrary/storeMediaAssetPromise5.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 mediaLibrary from '@ohos.multimedia.mediaLibrary';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import fileio from '@ohos.fileio';
import fileio from '@ohos.fileio';
import featureAbility from '@ohos.ability.featureAbility';
import featureAbility from '@ohos.ability.featureAbility';
...
...
validator/acts_validator/src/main/ets/pages/common/CanvasCustomContainer1.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 fileio from '@ohos.fileio';
import fileio from '@ohos.fileio';
import prompt from '@ohos.prompt';
import prompt from '@ohos.prompt';
import router from '@ohos.router';
import router from '@ohos.router';
import screenshot from '@ohos.screenshot';
import screenshot from '@ohos.screenshot';
import image from '@ohos.multimedia.image';
import image from '@ohos.multimedia.image';
import Logger from '../model/Logger'
import Logger from '../model/Logger'
;
import mediaLibrary from '@ohos.multimedia.mediaLibrary'
import mediaLibrary from '@ohos.multimedia.mediaLibrary'
;
let path = globalThis.dir
let path = globalThis.dir
const TAG = '[Screenshot]'
const TAG = '[Screenshot]'
...
@@ -69,7 +55,7 @@ export struct CustomContainer {
...
@@ -69,7 +55,7 @@ export struct CustomContainer {
.onClick(()=>{
.onClick(()=>{
router.back({
router.back({
url:this.Url,
url:this.Url,
params: {result : 'None',
title:this.name,
}
params: {result : 'None', }
})
})
})
})
Text(this.title).fontColor(Color.White).fontSize('18fp').margin({left:'-20vp'})
Text(this.title).fontColor(Color.White).fontSize('18fp').margin({left:'-20vp'})
...
@@ -122,7 +108,7 @@ export struct CustomContainer {
...
@@ -122,7 +108,7 @@ export struct CustomContainer {
await fileio.close(fd)
await fileio.close(fd)
Logger.info(TAG, `write done`)
Logger.info(TAG, `write done`)
prompt.showToast({
prompt.showToast({
message: '
图片
保存成功', duration: 1000
message: '
结果
保存成功', duration: 1000
})
})
}
}
getScreen = (isFullScreen: boolean) => {
getScreen = (isFullScreen: boolean) => {
...
...
validator/acts_validator/src/main/ets/pages/common/CanvasCustomContainer2.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 fileio from '@ohos.fileio';
import fileio from '@ohos.fileio';
import prompt from '@ohos.prompt';
import prompt from '@ohos.prompt';
import router from '@ohos.router';
import router from '@ohos.router';
...
@@ -71,7 +57,7 @@ export struct CustomContainer {
...
@@ -71,7 +57,7 @@ export struct CustomContainer {
.onClick(()=>{
.onClick(()=>{
router.back({
router.back({
url:this.Url,
url:this.Url,
params: {result : 'None',
title: this.name,
}
params: {result : 'None',}
})
})
})
})
Text(this.title).fontColor(Color.White).fontSize('18fp').margin({left:'-20vp'})
Text(this.title).fontColor(Color.White).fontSize('18fp').margin({left:'-20vp'})
...
@@ -124,7 +110,7 @@ export struct CustomContainer {
...
@@ -124,7 +110,7 @@ export struct CustomContainer {
await fileio.close(fd)
await fileio.close(fd)
Logger.info(TAG, `write done`)
Logger.info(TAG, `write done`)
prompt.showToast({
prompt.showToast({
message: '
图片
保存成功', duration: 1000
message: '
结果
保存成功', duration: 1000
})
})
}
}
getScreen = (isFullScreen: boolean) => {
getScreen = (isFullScreen: boolean) => {
...
...
validator/acts_validator/src/main/ets/pages/common/CustomContainer.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 prompt from '@ohos.prompt';
import prompt from '@ohos.prompt';
import fileio from '@ohos.fileio';
import fileio from '@ohos.fileio';
import router from '@ohos.router';
import router from '@ohos.router';
...
@@ -67,7 +53,7 @@ export struct CustomContainer {
...
@@ -67,7 +53,7 @@ export struct CustomContainer {
.onClick(()=>{
.onClick(()=>{
router.back({
router.back({
url:this.Url,
url:this.Url,
params: {result : 'None',
title : this.name,
}
params: {result : 'None',}
})
})
})
})
Text(this.title).fontColor(Color.White).fontSize('18fp').margin({left:'-20vp'})
Text(this.title).fontColor(Color.White).fontSize('18fp').margin({left:'-20vp'})
...
@@ -118,7 +104,7 @@ export struct CustomContainer {
...
@@ -118,7 +104,7 @@ export struct CustomContainer {
await fileio.close(fd)
await fileio.close(fd)
Logger.info(TAG, `write done`)
Logger.info(TAG, `write done`)
prompt.showToast({
prompt.showToast({
message: '
图片
保存成功', duration: 1000
message: '
结果
保存成功', duration: 1000
})
})
}
}
getScreen = (isFullScreen: boolean) => {
getScreen = (isFullScreen: boolean) => {
...
...
validator/acts_validator/src/main/ets/pages/common/CustomContainer2.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 fileio from '@ohos.fileio';
import fileio from '@ohos.fileio';
import prompt from '@ohos.prompt';
import prompt from '@ohos.prompt';
import router from '@ohos.router';
import router from '@ohos.router';
...
@@ -67,7 +53,7 @@ export struct CustomContainer {
...
@@ -67,7 +53,7 @@ export struct CustomContainer {
.onClick(()=>{
.onClick(()=>{
router.back({
router.back({
url:this.Url,
url:this.Url,
params: {result : 'None',
title : this.name,
}
params: {result : 'None', }
})
})
})
})
Text(this.title).fontColor(Color.White).fontSize('18fp').margin({left:'-20vp'})
Text(this.title).fontColor(Color.White).fontSize('18fp').margin({left:'-20vp'})
...
@@ -120,7 +106,7 @@ export struct CustomContainer {
...
@@ -120,7 +106,7 @@ export struct CustomContainer {
await fileio.close(fd)
await fileio.close(fd)
Logger.info(TAG, `write done`)
Logger.info(TAG, `write done`)
prompt.showToast({
prompt.showToast({
message: '
图片
保存成功', duration: 1000
message: '
结果
保存成功', duration: 1000
})
})
}
}
getScreen = (isFullScreen: boolean) => {
getScreen = (isFullScreen: boolean) => {
...
...
validator/acts_validator/src/main/ets/pages/common/CustomContainer3.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 fileio from '@ohos.fileio';
import fileio from '@ohos.fileio';
import prompt from '@ohos.prompt';
import prompt from '@ohos.prompt';
import router from '@ohos.router';
import router from '@ohos.router';
...
@@ -68,7 +54,7 @@ export struct CustomContainer {
...
@@ -68,7 +54,7 @@ export struct CustomContainer {
.onClick(()=>{
.onClick(()=>{
router.back({
router.back({
url:this.Url,
url:this.Url,
params: {result : 'None',
title : this.name,
}
params: {result : 'None', }
})
})
})
})
Text(this.title).fontColor(Color.White).fontSize('18fp').margin({left:'-20vp'})
Text(this.title).fontColor(Color.White).fontSize('18fp').margin({left:'-20vp'})
...
@@ -121,7 +107,7 @@ export struct CustomContainer {
...
@@ -121,7 +107,7 @@ export struct CustomContainer {
await fileio.close(fd)
await fileio.close(fd)
Logger.info(TAG, `write done`)
Logger.info(TAG, `write done`)
prompt.showToast({
prompt.showToast({
message: '
图片
保存成功', duration: 1000
message: '
结果
保存成功', duration: 1000
})
})
}
}
getScreen = (isFullScreen: boolean) => {
getScreen = (isFullScreen: boolean) => {
...
...
validator/acts_validator/src/main/ets/pages/common/CustomContainer4.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 fileio from '@ohos.fileio';
import fileio from '@ohos.fileio';
import prompt from '@ohos.prompt';
import prompt from '@ohos.prompt';
import router from '@ohos.router';
import router from '@ohos.router';
...
@@ -67,7 +53,7 @@ export struct CustomContainer {
...
@@ -67,7 +53,7 @@ export struct CustomContainer {
.onClick(()=>{
.onClick(()=>{
router.back({
router.back({
url:this.Url,
url:this.Url,
params: {result : 'None',
title : this.name,
}
params: {result : 'None', }
})
})
})
})
Text(this.title).fontColor(Color.White).fontSize('18fp').margin({left:'-20vp'})
Text(this.title).fontColor(Color.White).fontSize('18fp').margin({left:'-20vp'})
...
@@ -118,7 +104,7 @@ export struct CustomContainer {
...
@@ -118,7 +104,7 @@ export struct CustomContainer {
await fileio.close(fd)
await fileio.close(fd)
Logger.info(TAG, `write done`)
Logger.info(TAG, `write done`)
prompt.showToast({
prompt.showToast({
message: '
图片
保存成功', duration: 1000
message: '
结果
保存成功', duration: 1000
})
})
}
}
getScreen = (isFullScreen: boolean) => {
getScreen = (isFullScreen: boolean) => {
...
...
validator/acts_validator/src/main/ets/pages/common/CustomContainer5.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 fileio from '@ohos.fileio';
import fileio from '@ohos.fileio';
import prompt from '@ohos.prompt';
import prompt from '@ohos.prompt';
import router from '@ohos.router';
import router from '@ohos.router';
...
@@ -69,7 +55,7 @@ export struct CustomContainer {
...
@@ -69,7 +55,7 @@ export struct CustomContainer {
.onClick(()=>{
.onClick(()=>{
router.back({
router.back({
url:this.Url,
url:this.Url,
params: {result : 'None',
title : this.name,
}
params: {result : 'None',}
})
})
})
})
Text(this.title).fontColor(Color.White).fontSize('18fp').margin({left:'-20vp'})
Text(this.title).fontColor(Color.White).fontSize('18fp').margin({left:'-20vp'})
...
@@ -122,7 +108,7 @@ export struct CustomContainer {
...
@@ -122,7 +108,7 @@ export struct CustomContainer {
await fileio.close(fd)
await fileio.close(fd)
Logger.info(TAG, `write done`)
Logger.info(TAG, `write done`)
prompt.showToast({
prompt.showToast({
message: '
图片
保存成功', duration: 1000
message: '
结果
保存成功', duration: 1000
})
})
}
}
getScreen = (isFullScreen: boolean) => {
getScreen = (isFullScreen: boolean) => {
...
...
validator/acts_validator/src/main/ets/pages/common/MediaCustomContainer.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 fileio from '@ohos.fileio';
import fileio from '@ohos.fileio';
import prompt from '@ohos.prompt';
import prompt from '@ohos.prompt';
import router from '@ohos.router';
import router from '@ohos.router';
...
@@ -67,7 +53,7 @@ export struct CustomContainer {
...
@@ -67,7 +53,7 @@ export struct CustomContainer {
.onClick(()=>{
.onClick(()=>{
router.back({
router.back({
url:this.Url,
url:this.Url,
params: {result : 'None',
title : this.name,
}
params: {result : 'None',}
})
})
})
})
Text(this.title).fontColor(Color.White).fontSize('18fp').margin({left:'-20vp'})
Text(this.title).fontColor(Color.White).fontSize('18fp').margin({left:'-20vp'})
...
@@ -120,7 +106,7 @@ export struct CustomContainer {
...
@@ -120,7 +106,7 @@ export struct CustomContainer {
await fileio.close(fd)
await fileio.close(fd)
Logger.info(TAG, `write done`)
Logger.info(TAG, `write done`)
prompt.showToast({
prompt.showToast({
message: '
图片
保存成功', duration: 1000
message: '
结果
保存成功', duration: 1000
})
})
}
}
getScreen = (isFullScreen: boolean) => {
getScreen = (isFullScreen: boolean) => {
...
...
validator/acts_validator/src/main/ets/pages/index.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 prompt from '@ohos.prompt';
import prompt from '@ohos.prompt';
import router from '@ohos.router';
import router from '@ohos.router';
import fileio from '@ohos.fileio';
import fileio from '@ohos.fileio';
...
...
validator/acts_validator/src/main/ets/pages/model/FirstDialog.ets
浏览文件 @
9dfdd957
/*
* Copyright (c) 2022 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 data_preferences from '@ohos.data.preferences';
import data_preferences from '@ohos.data.preferences';
export default class FirstDialog{
export default class FirstDialog{
static ChooseDialog = async (StepTips:string,name: string)=>{
static ChooseDialog = async (StepTips:string,name: string)=>{
let Test = null;
let Test = null;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录