Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
9cd09a84
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看板
提交
9cd09a84
编写于
8月 29, 2022
作者:
D
daiweiqi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify audioTestCase Name
Signed-off-by:
N
daiweiqi
<
daiweiqi@huawei.com
>
上级
c9bb741b
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
608 addition
and
608 deletion
+608
-608
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCapturerChangeInfo.test.js
...oManager/src/main/js/test/AudioCapturerChangeInfo.test.js
+26
-26
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioEventManagement.test.js
...udioManager/src/main/js/test/AudioEventManagement.test.js
+46
-46
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js
...dard/audioManager/src/main/js/test/AudioFramework.test.js
+344
-344
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRenderer.test.js
...ndard/audioManager/src/main/js/test/AudioRenderer.test.js
+186
-186
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioVOIP.test.js
..._standard/audioManager/src/main/js/test/AudioVOIP.test.js
+6
-6
未找到文件。
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCapturerChangeInfo.test.js
浏览文件 @
9cd09a84
...
...
@@ -835,14 +835,14 @@ describe('audioCapturerChange', function () {
/**
*@tc.number : SUB_MULTIMEDIA_OFF_CAPTURER_CHANGE_0100
*@tc.number : SUB_MULTIMEDIA_
AUDIO_
OFF_CAPTURER_CHANGE_0100
*@tc.name : AudioCapturerChange - OFF_STATE_PREPARED
*@tc.desc : AudioCapturerChange - OFF_STATE_PREPARED
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 1
*/
it
(
'
SUB_MULTIMEDIA_OFF_CAPTURER_CHANGE_0100
'
,
1
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_
AUDIO_
OFF_CAPTURER_CHANGE_0100
'
,
1
,
async
function
(
done
)
{
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_44100
,
...
...
@@ -912,14 +912,14 @@ describe('audioCapturerChange', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_OFF_CAPTURER_CHANGE_0200
*@tc.number : SUB_MULTIMEDIA_
AUDIO_
OFF_CAPTURER_CHANGE_0200
*@tc.name : AudioCapturerChange - OFF_STATE_RUNNING
*@tc.desc : AudioCapturerChange - OFF_STATE_RUNNING
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 1
*/
it
(
'
SUB_MULTIMEDIA_OFF_CAPTURER_CHANGE_0200
'
,
1
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_
AUDIO_
OFF_CAPTURER_CHANGE_0200
'
,
1
,
async
function
(
done
)
{
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_44100
,
...
...
@@ -996,14 +996,14 @@ describe('audioCapturerChange', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_OFF_CAPTURER_CHANGE_0300
*@tc.number : SUB_MULTIMEDIA_
AUDIO_
OFF_CAPTURER_CHANGE_0300
*@tc.name : AudioCapturerChange - OFF_STATE_STOPPED
*@tc.desc : AudioCapturerChange - OFF_STATE_STOPPED
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_OFF_CAPTURER_CHANGE_0300
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_
AUDIO_
OFF_CAPTURER_CHANGE_0300
'
,
2
,
async
function
(
done
)
{
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_44100
,
...
...
@@ -1087,14 +1087,14 @@ describe('audioCapturerChange', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_OFF_CAPTURER_CHANGE_0400
*@tc.number : SUB_MULTIMEDIA_
AUDIO_
OFF_CAPTURER_CHANGE_0400
*@tc.name : AudioCapturerChange - OFF_STATE_RELEASED
*@tc.desc : AudioCapturerChange - OFF_STATE_RELEASED
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_OFF_CAPTURER_CHANGE_0400
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_
AUDIO_
OFF_CAPTURER_CHANGE_0400
'
,
2
,
async
function
(
done
)
{
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_44100
,
...
...
@@ -1177,14 +1177,14 @@ describe('audioCapturerChange', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_OFF_CAPTURER_CHANGE_0500
*@tc.number : SUB_MULTIMEDIA_
AUDIO_
OFF_CAPTURER_CHANGE_0500
*@tc.name : AudioCapturerChange - DeviceDescriptor
*@tc.desc : AudioCapturerChange - DeviceDescriptor
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_OFF_CAPTURER_CHANGE_0500
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_
AUDIO_
OFF_CAPTURER_CHANGE_0500
'
,
2
,
async
function
(
done
)
{
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_44100
,
...
...
@@ -1262,14 +1262,14 @@ describe('audioCapturerChange', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_PROMISE_0100
*@tc.number : SUB_MULTIMEDIA_
AUDIO_AUDIO_
GET_CAPTURER_CHANGE_PROMISE_0100
*@tc.name : AudioCapturerChange - GET_STATE_PREPARED
*@tc.desc : AudioCapturerChange - GET_STATE_PREPARED
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_PROMISE_0100
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_
AUDIO_AUDIO_
GET_CAPTURER_CHANGE_PROMISE_0100
'
,
2
,
async
function
(
done
)
{
var
audioCap
;
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_44100
,
...
...
@@ -1366,14 +1366,14 @@ describe('audioCapturerChange', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_PROMISE_0200
*@tc.number : SUB_MULTIMEDIA_
AUDIO_
GET_CAPTURER_CHANGE_PROMISE_0200
*@tc.name : AudioCapturerChange - GET_STATE_RUNNING
*@tc.desc : AudioCapturerChange - GET_STATE_RUNNING
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_PROMISE_0200
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_
AUDIO_
GET_CAPTURER_CHANGE_PROMISE_0200
'
,
2
,
async
function
(
done
)
{
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_44100
,
...
...
@@ -1482,14 +1482,14 @@ describe('audioCapturerChange', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_PROMISE_0300
*@tc.number : SUB_MULTIMEDIA_
AUDIO_
GET_CAPTURER_CHANGE_PROMISE_0300
*@tc.name : AudioCapturerChange - GET_STATE_STOPPED
*@tc.desc : AudioCapturerChange - GET_STATE_STOPPED
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_PROMISE_0300
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_
AUDIO_
GET_CAPTURER_CHANGE_PROMISE_0300
'
,
2
,
async
function
(
done
)
{
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_44100
,
...
...
@@ -1605,14 +1605,14 @@ describe('audioCapturerChange', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_PROMISE_0400
*@tc.number : SUB_MULTIMEDIA_
AUDIO_
GET_CAPTURER_CHANGE_PROMISE_0400
*@tc.name : AudioCapturerChange - DEVICE DESCRIPTOR
*@tc.desc : AudioCapturerChange - DEVICE DESCRIPTOR
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_PROMISE_0400
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_
AUDIO_
GET_CAPTURER_CHANGE_PROMISE_0400
'
,
2
,
async
function
(
done
)
{
var
audioCap
;
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_44100
,
...
...
@@ -1713,14 +1713,14 @@ describe('audioCapturerChange', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_CALLBACK_0100
*@tc.number : SUB_MULTIMEDIA_
AUDIO_
GET_CAPTURER_CHANGE_CALLBACK_0100
*@tc.name : AudioCapturerChange - GET_STATE_PREPARED
*@tc.desc : AudioCapturerChange - GET_STATE_PREPARED
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_CALLBACK_0100
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_
AUDIO_
GET_CAPTURER_CHANGE_CALLBACK_0100
'
,
2
,
async
function
(
done
)
{
var
audioCap
;
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_44100
,
...
...
@@ -1823,14 +1823,14 @@ describe('audioCapturerChange', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_CALLBACK_0200
*@tc.number : SUB_MULTIMEDIA_
AUDIO_
GET_CAPTURER_CHANGE_CALLBACK_0200
*@tc.name : AudioCapturerChange - GET_STATE_RUNNING
*@tc.desc : AudioCapturerChange - GET_STATE_RUNNING
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_CALLBACK_0200
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_
AUDIO_
GET_CAPTURER_CHANGE_CALLBACK_0200
'
,
2
,
async
function
(
done
)
{
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_44100
,
...
...
@@ -1945,14 +1945,14 @@ describe('audioCapturerChange', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_CALLBACK_0300
*@tc.number : SUB_MULTIMEDIA_
AUDIO_
GET_CAPTURER_CHANGE_CALLBACK_0300
*@tc.name : AudioCapturerChange - GET_STATE_STOPPED
*@tc.desc : AudioCapturerChange - GET_STATE_STOPPED
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_CALLBACK_0300
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_
AUDIO_
GET_CAPTURER_CHANGE_CALLBACK_0300
'
,
2
,
async
function
(
done
)
{
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_44100
,
...
...
@@ -2074,14 +2074,14 @@ describe('audioCapturerChange', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_CALLBACK_0400
*@tc.number : SUB_MULTIMEDIA_
AUDIO_
GET_CAPTURER_CHANGE_CALLBACK_0400
*@tc.name : AudioCapturerChange - DEVICE DESCRIPTOR
*@tc.desc : AudioCapturerChange - DEVICE DESCRIPTOR
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_GET_CAPTURER_CHANGE_CALLBACK_0400
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_
AUDIO_
GET_CAPTURER_CHANGE_CALLBACK_0400
'
,
2
,
async
function
(
done
)
{
var
audioCap
;
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_44100
,
...
...
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioEventManagement.test.js
浏览文件 @
9cd09a84
...
...
@@ -84,14 +84,14 @@ describe('audioEM', function () {
/**
*@tc.number : SUB_MULTIMEDIA_MANAGER_GETAUDIOMANAGER_0100
*@tc.number : SUB_MULTIMEDIA_
AUDIO_
MANAGER_GETAUDIOMANAGER_0100
*@tc.name : getAudioManger is Not returned Empty
*@tc.desc : Check getAudioManger is not empty
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_MANAGER_GETAUDIOMANAGER_0100
'
,
0
,
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_
AUDIO_
MANAGER_GETAUDIOMANAGER_0100
'
,
0
,
function
(
done
)
{
if
(
audioManager
!=
null
)
{
console
.
info
(
'
AudioFrameworkTest: getAudioManger : PASS
'
);
expect
(
true
).
assertTrue
();
...
...
@@ -105,14 +105,14 @@ describe('audioEM', function () {
/**
*@tc.number : SUB_MULTIMEDIA_MANAGER_GETDEVICES_0100
*@tc.number : SUB_MULTIMEDIA_
AUDIO_
MANAGER_GETDEVICES_0100
*@tc.name : getDevices - Output device - Promise - ENAME
*@tc.desc : getDevices - Output device
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_MANAGER_GETDEVICES_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_
AUDIO_
MANAGER_GETDEVICES_0100
'
,
0
,
async
function
(
done
)
{
deviceRoleValue
=
null
;
deviceTypeValue
=
null
;
const
promise
=
audioManager
.
getDevices
(
audio
.
DeviceFlag
.
OUTPUT_DEVICES_FLAG
)
...
...
@@ -134,14 +134,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_PR_GETDEVICES_OUTPUT_ENUM_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_PR_GETDEVICES_OUTPUT_ENUM_0100
*@tc.name : getDevices - Output device - Promise - ENAME -
*@tc.desc : getDevices - Output device
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_MANAGER_PR_GETDEVICES_OUTPUT_ENUM_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_PR_GETDEVICES_OUTPUT_ENUM_0100
'
,
0
,
async
function
(
done
)
{
deviceRoleValue
=
null
;
deviceTypeValue
=
null
;
const
promise
=
audioManager
.
getDevices
(
1
)
...
...
@@ -163,14 +163,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_PR_GETDEVICES_INPUT_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_PR_GETDEVICES_INPUT_0100
*@tc.name : getDevices - Input device - Promise - ENAME
*@tc.desc : getDevices - Input device
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_MANAGER_PR_GETDEVICES_INPUT_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_PR_GETDEVICES_INPUT_0100
'
,
0
,
async
function
(
done
)
{
deviceRoleValue
=
null
;
deviceTypeValue
=
null
;
const
promise
=
audioManager
.
getDevices
(
audio
.
DeviceFlag
.
INPUT_DEVICES_FLAG
);
...
...
@@ -191,14 +191,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_PR_GETDEVICES_INTPUT_ENUM_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_PR_GETDEVICES_INTPUT_ENUM_0100
*@tc.name : getDevices - Input device - Promise - ENAME
*@tc.desc : getDevices - Input device
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_MANAGER_PR_GETDEVICES_INTPUT_ENUM_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_PR_GETDEVICES_INTPUT_ENUM_0100
'
,
0
,
async
function
(
done
)
{
deviceRoleValue
=
null
;
deviceTypeValue
=
null
;
const
promise
=
audioManager
.
getDevices
(
2
);
...
...
@@ -220,14 +220,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_PR_GETDEVICES_ALL_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_PR_GETDEVICES_ALL_0100
*@tc.name : getDevices - ALL device - Promise - ENAME
*@tc.desc : getDevices - ALL device
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_MANAGER_PR_GETDEVICES_ALL_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_PR_GETDEVICES_ALL_0100
'
,
0
,
async
function
(
done
)
{
deviceRoleValue
=
null
;
deviceTypeValue
=
null
;
const
promise
=
audioManager
.
getDevices
(
audio
.
DeviceFlag
.
ALL_DEVICES_FLAG
);
...
...
@@ -249,14 +249,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_PR_GETDEVICES_ALL_ENUM_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_PR_GETDEVICES_ALL_ENUM_0100
*@tc.name : getDevices - ALL device - Promise - ENAME
*@tc.desc : getDevices - ALL device
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_MANAGER_PR_GETDEVICES_ALL_ENUM_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_PR_GETDEVICES_ALL_ENUM_0100
'
,
0
,
async
function
(
done
)
{
deviceRoleValue
=
null
;
deviceTypeValue
=
null
;
const
promise
=
audioManager
.
getDevices
(
3
);
...
...
@@ -278,14 +278,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_CB_GETDEVICES_OUTPUT_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_CB_GETDEVICES_OUTPUT_0100
*@tc.name : getDevices - Output device - Callback - ENAME
*@tc.desc : getDevices - Output device
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_MANAGER_CB_GETDEVICES_OUTPUT_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_CB_GETDEVICES_OUTPUT_0100
'
,
0
,
async
function
(
done
)
{
deviceRoleValue
=
null
;
deviceTypeValue
=
null
;
audioManager
.
getDevices
(
audio
.
DeviceFlag
.
OUTPUT_DEVICES_FLAG
,
(
err
,
value
)
=>
{
...
...
@@ -311,14 +311,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_CB_GETDEVICES_OUTPUT_ENUM_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_CB_GETDEVICES_OUTPUT_ENUM_0100
*@tc.name : getDevices - Output device - Callback - ENAME
*@tc.desc : getDevices - Output device
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_MANAGER_CB_GETDEVICES_OUTPUT_ENUM_0100
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_CB_GETDEVICES_OUTPUT_ENUM_0100
'
,
2
,
async
function
(
done
)
{
deviceRoleValue
=
null
;
deviceTypeValue
=
null
;
audioManager
.
getDevices
(
1
,
(
err
,
value
)
=>
{
...
...
@@ -344,14 +344,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_CB_GETDEVICES_INPUT_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_CB_GETDEVICES_INPUT_0100
*@tc.name : getDevices - Input device - Callback - ENAME
*@tc.desc : getDevices - Input device
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_MANAGER_CB_GETDEVICES_INPUT_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_CB_GETDEVICES_INPUT_0100
'
,
0
,
async
function
(
done
)
{
deviceRoleValue
=
null
;
deviceTypeValue
=
null
;
audioManager
.
getDevices
(
audio
.
DeviceFlag
.
INPUT_DEVICES_FLAG
,
(
err
,
value
)
=>
{
...
...
@@ -378,14 +378,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_CB_GETDEVICES_INPUT_ENUM_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_CB_GETDEVICES_INPUT_ENUM_0100
*@tc.name : getDevices - Input device - Callback - ENAME
*@tc.desc : getDevices - Input device
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_MANAGER_CB_GETDEVICES_INPUT_ENUM_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_CB_GETDEVICES_INPUT_ENUM_0100
'
,
0
,
async
function
(
done
)
{
deviceRoleValue
=
null
;
deviceTypeValue
=
null
;
audioManager
.
getDevices
(
2
,
(
err
,
value
)
=>
{
...
...
@@ -412,14 +412,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_CB_GETDEVICES_ALL_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_CB_GETDEVICES_ALL_0100
*@tc.name : getDevices - ALL device - Callback - ENAME
*@tc.desc : getDevices - ALL device
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_MANAGER_CB_GETDEVICES_ALL_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_CB_GETDEVICES_ALL_0100
'
,
0
,
async
function
(
done
)
{
deviceRoleValue
=
null
;
deviceTypeValue
=
null
;
audioManager
.
getDevices
(
audio
.
DeviceFlag
.
ALL_DEVICES_FLAG
,
(
err
,
value
)
=>
{
...
...
@@ -445,14 +445,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_CB_GETDEVICES_ALL_ENUM_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_CB_GETDEVICES_ALL_ENUM_0100
*@tc.name : getDevices - ALL device - Callback - ENAME
*@tc.desc : getDevices - ALL device
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_MANAGER_CB_GETDEVICES_ALL_ENUM_0100
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_CB_GETDEVICES_ALL_ENUM_0100
'
,
2
,
async
function
(
done
)
{
deviceRoleValue
=
null
;
deviceTypeValue
=
null
;
audioManager
.
getDevices
(
3
,
(
err
,
value
)
=>
{
...
...
@@ -478,14 +478,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_PR_DEACTIVATE_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_SETDEVICEACTIVE_PR_DEACTIVATE_0100
*@tc.name : setDeviceActive - SPEAKER - deactivate - Promise
*@tc.desc : Deactivate speaker - Promise
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_PR_DEACTIVATE_0100
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_SETDEVICEACTIVE_PR_DEACTIVATE_0100
'
,
2
,
async
function
(
done
)
{
await
audioManager
.
setDeviceActive
(
audio
.
ActiveDeviceType
.
SPEAKER
,
false
).
then
(
function
()
{
// Setting device active ENUM 2 = SPEAKER
console
.
info
(
'
AudioFrameworkTest: Device Test: Promise : setDeviceActive : SPEAKER: Deactivate
'
);
...
...
@@ -507,14 +507,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_PR_DEACTIVATE_ENUM_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_SETDEVICEACTIVE_PR_DEACTIVATE_ENUM_0100
*@tc.name : setDeviceActive - SPEAKER - deactivate - Promise
*@tc.desc : Deactivate speaker - Promise
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_PR_DEACTIVATE_ENUM_0100
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_SETDEVICEACTIVE_PR_DEACTIVATE_ENUM_0100
'
,
2
,
async
function
(
done
)
{
await
audioManager
.
setDeviceActive
(
2
,
true
).
then
(
function
()
{
console
.
info
(
'
AudioFrameworkTest: Device Test: Promise : setDeviceActive : SPEAKER: Active
'
);
});
...
...
@@ -539,14 +539,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_PR_ACTIVATE_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_SETDEVICEACTIVE_PR_ACTIVATE_0100
*@tc.name : setDeviceActive - SPEAKER - Activate - Promise
*@tc.desc : Activate speaker - Promise
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_PR_ACTIVATE_0100
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_SETDEVICEACTIVE_PR_ACTIVATE_0100
'
,
2
,
async
function
(
done
)
{
await
audioManager
.
setDeviceActive
(
audio
.
ActiveDeviceType
.
SPEAKER
,
true
).
then
(
function
()
{
console
.
info
(
'
AudioFrameworkTest: Device Test: Promise : setDeviceActive : SPEAKER: Activate
'
);
audioManager
.
isDeviceActive
(
audio
.
ActiveDeviceType
.
SPEAKER
).
then
(
function
(
value
)
{
...
...
@@ -567,14 +567,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_PR_ACTIVATE_ENUM_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_SETDEVICEACTIVE_PR_ACTIVATE_ENUM_0100
*@tc.name : setDeviceActive - SPEAKER - Activate - Promise
*@tc.desc : Activate speaker - Promise
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_PR_ACTIVATE_ENUM_0100
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_SETDEVICEACTIVE_PR_ACTIVATE_ENUM_0100
'
,
2
,
async
function
(
done
)
{
await
audioManager
.
setDeviceActive
(
2
,
true
).
then
(
function
()
{
console
.
info
(
'
AudioFrameworkTest: Device Test: Promise : setDeviceActive : SPEAKER: Activate
'
);
audioManager
.
isDeviceActive
(
2
).
then
(
function
(
value
)
{
...
...
@@ -595,14 +595,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_CB_DEACTIVATE_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_SETDEVICEACTIVE_CB_DEACTIVATE_0100
*@tc.name : setDeviceActive - SPEAKER - deactivate - Callback
*@tc.desc : Deactivate speaker - Callback
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_CB_DEACTIVATE_0100
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_SETDEVICEACTIVE_CB_DEACTIVATE_0100
'
,
2
,
async
function
(
done
)
{
audioManager
.
setDeviceActive
(
audio
.
ActiveDeviceType
.
SPEAKER
,
false
,
(
err
)
=>
{
if
(
err
)
{
console
.
error
(
`AudioFrameworkTest: Device Test: Callback : setDeviceActive : SPEAKER: Deactivate: Error:
${
err
.
message
}
`
);
...
...
@@ -631,14 +631,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_CB_DEACTIVATE_ENUM_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_SETDEVICEACTIVE_CB_DEACTIVATE_ENUM_0100
*@tc.name : setDeviceActive - SPEAKER - deactivate - Callback
*@tc.desc : Deactivate speaker - Callback
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_CB_DEACTIVATE_ENUM_0100
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_SETDEVICEACTIVE_CB_DEACTIVATE_ENUM_0100
'
,
2
,
async
function
(
done
)
{
await
audioManager
.
setDeviceActive
(
2
,
true
).
then
(
function
()
{
console
.
info
(
'
AudioFrameworkTest: Device Test: Promise : setDeviceActive : SPEAKER : Active
'
);
});
...
...
@@ -671,14 +671,14 @@ describe('audioEM', function () {
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_CB_ACTIVATE_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_SETDEVICEACTIVE_CB_ACTIVATE_0100
*@tc.name : setDeviceActive - SPEAKER - activate - Callback
*@tc.desc : Activate speaker - Callback
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_CB_ACTIVATE_0100
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_SETDEVICEACTIVE_CB_ACTIVATE_0100
'
,
2
,
async
function
(
done
)
{
audioManager
.
setDeviceActive
(
audio
.
ActiveDeviceType
.
SPEAKER
,
true
,
(
err
)
=>
{
if
(
err
)
{
console
.
error
(
`AudioFrameworkTest: Device Test: Callback : setDeviceActive : SPEAKER: Active: Error:
${
err
.
message
}
`
);
...
...
@@ -707,14 +707,14 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_CB_ACTIVATE_ENUM_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_SETDEVICEACTIVE_CB_ACTIVATE_ENUM_0100
*@tc.name : setDeviceActive - SPEAKER - activate - Callback
*@tc.desc : Activate speaker - Callback
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_CB_ACTIVATE_ENUM_0100
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_AUDIO_
AUDIO_
MANAGER_SETDEVICEACTIVE_CB_ACTIVATE_ENUM_0100
'
,
2
,
async
function
(
done
)
{
audioManager
.
setDeviceActive
(
2
,
true
,
(
err
)
=>
{
if
(
err
)
{
console
.
error
(
`AudioFrameworkTest: Device Test: Callback : setDeviceActive : SPEAKER: Active: Error:
${
err
.
message
}
`
);
...
...
@@ -743,28 +743,28 @@ describe('audioEM', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_MANAGER_DEVICECHANGETYPE_0100
*@tc.number : SUB_MULTIMEDIA_
AUDIO_
MANAGER_DEVICECHANGETYPE_0100
*@tc.name : DeviceChangeType - CONNECT
*@tc.desc : DeviceChangeType - CONNECT
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_MANAGER_DEVICECHANGETYPE_0100
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_
AUDIO_
MANAGER_DEVICECHANGETYPE_0100
'
,
2
,
async
function
(
done
)
{
expect
(
audio
.
DeviceChangeType
.
CONNECT
).
assertEqual
(
0
);
await
sleep
(
50
);
done
();
})
/**
*@tc.number : SUB_MULTIMEDIA_MANAGER_DEVICECHANGETYPE_0200
*@tc.number : SUB_MULTIMEDIA_
AUDIO_
MANAGER_DEVICECHANGETYPE_0200
*@tc.name : DeviceChangeType - DISCONNECT
*@tc.desc : DeviceChangeType - DISCONNECT
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_MANAGER_DEVICECHANGETYPE_0200
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_
AUDIO_
MANAGER_DEVICECHANGETYPE_0200
'
,
2
,
async
function
(
done
)
{
expect
(
audio
.
DeviceChangeType
.
DISCONNECT
).
assertEqual
(
1
);
await
sleep
(
50
);
done
();
...
...
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js
浏览文件 @
9cd09a84
此差异已折叠。
点击以展开。
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRenderer.test.js
浏览文件 @
9cd09a84
此差异已折叠。
点击以展开。
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioVOIP.test.js
浏览文件 @
9cd09a84
...
...
@@ -361,14 +361,14 @@ describe('audioVoip', function () {
}
/**
* @tc.number : SUB_MULTIMEDIA_VOIP_PLAY_0100
* @tc.number : SUB_MULTIMEDIA_
AUDIO_
VOIP_PLAY_0100
* @tc.name : AudioRenderer-Set1-Media
* @tc.desc : AudioRenderer with parameter set 1
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_VOIP_PLAY_0100
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_
AUDIO_
VOIP_PLAY_0100
'
,
2
,
async
function
(
done
)
{
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_44100
,
...
...
@@ -398,14 +398,14 @@ describe('audioVoip', function () {
})
/**
* @tc.number : SUB_MULTIMEDIA_VOIP_REC_0100
* @tc.number : SUB_MULTIMEDIA_
AUDIO_
VOIP_REC_0100
* @tc.name : AudioCapturer-Set1-Media
* @tc.desc : AudioCapturer with parameter set 1
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_VOIP_REC_0100
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_
AUDIO_
VOIP_REC_0100
'
,
2
,
async
function
(
done
)
{
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_44100
,
...
...
@@ -433,14 +433,14 @@ describe('audioVoip', function () {
})
/**
* @tc.number : SUB_MULTIMEDIA_VOIP_RECPLAY_0100
* @tc.number : SUB_MULTIMEDIA_
AUDIO_
VOIP_RECPLAY_0100
* @tc.name : AudioCapturer-Set1-Media
* @tc.desc : AudioCapturer with parameter set 1
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 2
*/
it
(
'
SUB_MULTIMEDIA_VOIP_RECPLAY_0100
'
,
2
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_
AUDIO_
VOIP_RECPLAY_0100
'
,
2
,
async
function
(
done
)
{
var
AudioStreamInfoCap
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_44100
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录