Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
2b6fd82a
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
2b6fd82a
编写于
3月 17, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 17, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2559 power、sensor、multimodalinput license&拼写错误整改
Merge pull request !2559 from logic42/cherry-pick-1647498067
上级
53b9518c
b433817d
变更
23
显示空白变更内容
内联
并排
Showing
23 changed file
with
235 addition
and
26 deletion
+235
-26
multimodalinput/BUILD.gn
multimodalinput/BUILD.gn
+1
-1
multimodalinput/input_js_standard/BUILD.gn
multimodalinput/input_js_standard/BUILD.gn
+1
-1
multimodalinput/input_js_standard/src/main/js/default/app.js
multimodalinput/input_js_standard/src/main/js/default/app.js
+1
-1
multimodalinput/input_js_standard/src/main/js/default/pages/index/index.css
...put_js_standard/src/main/js/default/pages/index/index.css
+15
-0
multimodalinput/input_js_standard/src/main/js/default/pages/index/index.hml
...put_js_standard/src/main/js/default/pages/index/index.hml
+15
-0
multimodalinput/input_js_standard/src/main/js/default/pages/index/index.js
...nput_js_standard/src/main/js/default/pages/index/index.js
+2
-2
multimodalinput/input_js_standard/src/main/js/default/test/InputConsumer.test.js
...s_standard/src/main/js/default/test/InputConsumer.test.js
+1
-1
multimodalinput/input_js_standard/src/main/js/default/test/InputDevice.test.js
..._js_standard/src/main/js/default/test/InputDevice.test.js
+1
-1
multimodalinput/input_js_standard/src/main/js/default/test/ListMultimodalinput.test.js
...dard/src/main/js/default/test/ListMultimodalinput.test.js
+1
-1
powermgr/powermgrbattery/src/main/js/default/pages/index/index.css
...powermgrbattery/src/main/js/default/pages/index/index.css
+15
-0
powermgr/powermgrbattery/src/main/js/default/pages/index/index.hml
...powermgrbattery/src/main/js/default/pages/index/index.hml
+15
-0
powermgr/powermgrbattery_rk3568/src/main/js/default/pages/index/index.css
...rbattery_rk3568/src/main/js/default/pages/index/index.css
+15
-0
powermgr/powermgrbattery_rk3568/src/main/js/default/pages/index/index.hml
...rbattery_rk3568/src/main/js/default/pages/index/index.hml
+15
-0
powermgr/powermgrbatterystats/src/main/js/default/pages/index/index.css
...mgrbatterystats/src/main/js/default/pages/index/index.css
+15
-0
powermgr/powermgrbatterystats/src/main/js/default/pages/index/index.hml
...mgrbatterystats/src/main/js/default/pages/index/index.hml
+15
-0
powermgr/powermgrthermal/src/main/js/default/pages/index/index.css
...powermgrthermal/src/main/js/default/pages/index/index.css
+15
-0
powermgr/powermgrthermal/src/main/js/default/pages/index/index.hml
...powermgrthermal/src/main/js/default/pages/index/index.hml
+15
-0
sensors/miscdevice_standard/src/main/js/default/pages/index/index.css
...device_standard/src/main/js/default/pages/index/index.css
+15
-0
sensors/miscdevice_standard/src/main/js/default/pages/index/index.hml
...device_standard/src/main/js/default/pages/index/index.hml
+15
-0
sensors/sensor_standard/src/main/js/default/pages/index/index.css
...sensor_standard/src/main/js/default/pages/index/index.css
+15
-0
sensors/sensor_standard/src/main/js/default/pages/index/index.hml
...sensor_standard/src/main/js/default/pages/index/index.hml
+15
-0
sensors/sensor_standard/src/main/js/default/test/SensorGeneralalgorithm.test.js
...d/src/main/js/default/test/SensorGeneralalgorithm.test.js
+2
-2
sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test.js
...standard/src/main/js/default/test/SensorOnOffTest.test.js
+15
-16
未找到文件。
multimodalinput/BUILD.gn
浏览文件 @
2b6fd82a
# Copyright (C) 202
1
Huawei Device Co., Ltd.
# Copyright (C) 202
2
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
...
...
multimodalinput/input_js_standard/BUILD.gn
浏览文件 @
2b6fd82a
# Copyright (C) 202
1
Huawei Device Co., Ltd.
# Copyright (C) 202
2
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
...
...
multimodalinput/input_js_standard/src/main/js/default/app.js
浏览文件 @
2b6fd82a
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
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
...
...
multimodalinput/input_js_standard/src/main/js/default/pages/index/index.css
浏览文件 @
2b6fd82a
/*
* 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.
*/
.container
{
flex-direction
:
column
;
justify-content
:
center
;
...
...
multimodalinput/input_js_standard/src/main/js/default/pages/index/index.hml
浏览文件 @
2b6fd82a
<!--
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.
-->
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
...
...
multimodalinput/input_js_standard/src/main/js/default/pages/index/index.js
浏览文件 @
2b6fd82a
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
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
...
...
@@ -13,7 +13,7 @@
* limitations under the License.
*/
import
{
Core
,
ExpectExtend
}
from
'
deccjsunit/index
'
import
{
Core
,
ExpectExtend
}
from
'
deccjsunit/index
'
const
injectRef
=
Object
.
getPrototypeOf
(
global
)
||
global
injectRef
.
regeneratorRuntime
=
require
(
'
@babel/runtime/regenerator
'
)
...
...
multimodalinput/input_js_standard/src/main/js/default/test/InputConsumer.test.js
浏览文件 @
2b6fd82a
/*
* Copyright (c) 202
1
Huawei Device Co., Ltd.
* Copyright (c) 202
2
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
...
...
multimodalinput/input_js_standard/src/main/js/default/test/InputDevice.test.js
浏览文件 @
2b6fd82a
/*
* Copyright (c) 202
1
Huawei Device Co., Ltd.
* Copyright (c) 202
2
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
...
...
multimodalinput/input_js_standard/src/main/js/default/test/ListMultimodalinput.test.js
浏览文件 @
2b6fd82a
/*
* Copyright (c) 202
1
Huawei Device Co., Ltd.
* Copyright (c) 202
2
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
...
...
powermgr/powermgrbattery/src/main/js/default/pages/index/index.css
浏览文件 @
2b6fd82a
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
column
;
justify-content
:
center
;
...
...
powermgr/powermgrbattery/src/main/js/default/pages/index/index.hml
浏览文件 @
2b6fd82a
<!--
Copyright (c) 2021 Huawei Device Co., Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
...
...
powermgr/powermgrbattery_rk3568/src/main/js/default/pages/index/index.css
浏览文件 @
2b6fd82a
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
column
;
justify-content
:
center
;
...
...
powermgr/powermgrbattery_rk3568/src/main/js/default/pages/index/index.hml
浏览文件 @
2b6fd82a
<!--
Copyright (c) 2021 Huawei Device Co., Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
...
...
powermgr/powermgrbatterystats/src/main/js/default/pages/index/index.css
浏览文件 @
2b6fd82a
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
column
;
justify-content
:
center
;
...
...
powermgr/powermgrbatterystats/src/main/js/default/pages/index/index.hml
浏览文件 @
2b6fd82a
<!--
Copyright (c) 2021 Huawei Device Co., Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
...
...
powermgr/powermgrthermal/src/main/js/default/pages/index/index.css
浏览文件 @
2b6fd82a
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
column
;
justify-content
:
center
;
...
...
powermgr/powermgrthermal/src/main/js/default/pages/index/index.hml
浏览文件 @
2b6fd82a
<!--
Copyright (c) 2021 Huawei Device Co., Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
...
...
sensors/miscdevice_standard/src/main/js/default/pages/index/index.css
浏览文件 @
2b6fd82a
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
column
;
justify-content
:
center
;
...
...
sensors/miscdevice_standard/src/main/js/default/pages/index/index.hml
浏览文件 @
2b6fd82a
<!--
Copyright (c) 2021 Huawei Device Co., Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
...
...
sensors/sensor_standard/src/main/js/default/pages/index/index.css
浏览文件 @
2b6fd82a
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
column
;
justify-content
:
center
;
...
...
sensors/sensor_standard/src/main/js/default/pages/index/index.hml
浏览文件 @
2b6fd82a
<!--
Copyright (c) 2021 Huawei Device Co., Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
...
...
sensors/sensor_standard/src/main/js/default/test/SensorGeneralalgorithm.test.js
浏览文件 @
2b6fd82a
...
...
@@ -627,7 +627,7 @@ describe("SensorJsTest", function () {
it
(
'
SensorJsTest_088
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
SensorJsTest_088 start
'
)
sensor
.
createQuaternion
([
0.52
,
-
0.336
,
-
0.251
],
(
error
,
data
)
=>
{
console
.
info
(
'
SensorJsTest_088
'
+
'
lengh:
'
+
data
.
length
);
console
.
info
(
'
SensorJsTest_088
'
+
'
leng
t
h:
'
+
data
.
length
);
if
(
error
)
{
console
.
info
(
'
SensorJsTest_088 failed
'
);
expect
(
false
).
assertTrue
();
...
...
@@ -929,7 +929,7 @@ describe("SensorJsTest", function () {
expect
(
data
).
assertEqual
(
getGeomagneticDipResult
[
0
])
}
done
()
console
.
info
(
'
SensorJsTest_101
'
+
'
lengh:
'
+
data
.
length
);
console
.
info
(
'
SensorJsTest_101
'
+
'
leng
t
h:
'
+
data
.
length
);
})
console
.
info
(
"
SensorJsTest_101 end
"
)
})
...
...
sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test.js
浏览文件 @
2b6fd82a
...
...
@@ -46,6 +46,9 @@ describe('SystemParameterTest', function () {
console
.
info
(
'
afterEach caled
'
)
})
let
testSensorId
=
0
;
let
testNullSensorId
=
-
1
;
/**
* @tc.number SUB_SENSORS_Sensor_JSTest_0010
* @tc.name testRegisterSensortest001
...
...
@@ -53,20 +56,16 @@ describe('SystemParameterTest', function () {
*/
it
(
'
SUB_SENSORS_Sensor_JSTest_0010
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
SUB_SENSORS_Sensor_JSTest_0010 start
'
);
await
sensor
.
on
(
0
,
function
(
error
,
data
)
{
if
(
error
)
{
if
(
error
.
code
==
-
1
)
{
console
.
info
(
"
testRegisterSensortest001 on error: sensor 0 not exit
"
)
}
else
{
console
.
info
(
'
testRegisterSensortest001 on error :
'
+
error
.
code
);
expect
(
false
).
assertTrue
();
}
done
();
}
else
{
await
sensor
.
on
(
testSensorId
,
function
(
data
)
{
if
(
data
)
{
console
.
info
(
'
testRegisterSensortest001 on success
'
);
expect
(
data
.
x
).
assertInstanceOf
(
'
Number
'
);
expect
(
data
.
timestamp
).
assertInstanceOf
(
'
Number
'
);
done
();
}
else
{
console
.
info
(
'
testRegisterSensortest001 on error
'
);
expect
(
false
).
assertTrue
();
done
();
}
});
console
.
info
(
'
SUB_SENSORS_Sensor_JSTest_0010 end
'
);
...
...
@@ -79,17 +78,17 @@ describe('SystemParameterTest', function () {
*/
it
(
'
SUB_SENSORS_Sensor_JSTest_0020
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
SUB_SENSORS_Sensor_JSTest_0020 start
'
);
await
sensor
.
on
(
-
1
,
function
(
error
,
data
)
{
if
(
error
)
{
console
.
info
(
'
testRegisterSensortest002 on error
'
);
expect
(
true
).
assertTrue
();
done
();
}
else
{
await
sensor
.
on
(
testNullSensorId
,
function
(
data
)
{
if
(
data
)
{
console
.
info
(
'
testRegisterSensortest002 on success
'
);
expect
(
false
).
assertTrue
();
done
();
}
});
setTimeout
(()
=>
{
expect
(
true
).
assertTrue
();
done
();
},
500
)
console
.
info
(
'
SUB_SENSORS_Sensor_JSTest_0020 end
'
);
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录