Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
ce1934cb
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看板
提交
ce1934cb
编写于
4月 18, 2023
作者:
1
15754133731
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
<audio用例整改>
Signed-off-by:
N
15754133731
<
chenjiahuan@huawei.com
>
上级
c0fe43fc
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
1132 addition
and
171 deletion
+1132
-171
multimedia/audio/audio_js_standard/AudioCapturer/src/main/js/test/AudioCapturerInterrupt.test.js
...oCapturer/src/main/js/test/AudioCapturerInterrupt.test.js
+331
-53
multimedia/audio/audio_js_standard/audioRenderer/src/main/js/test/AudioRenderInterrupt.test.js
...dioRenderer/src/main/js/test/AudioRenderInterrupt.test.js
+801
-118
未找到文件。
multimedia/audio/audio_js_standard/AudioCapturer/src/main/js/test/AudioCapturerInterrupt.test.js
浏览文件 @
ce1934cb
...
...
@@ -255,15 +255,23 @@ export default function audioCapturerInterrupt() {
return
new
Promise
(
resolve
=>
setTimeout
(
resolve
,
ms
));
}
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_001
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_001
*@tc.name : AudioCapturer MIC INTERRUPT MIC
*@tc.desc : AudioCapturer MIC INTERRUPT MIC
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_001
'
,
0
,
async
function
(
done
)
{
try
{
let
flag1
=
false
;
let
flag2
=
false
;
console
.
info
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_001 come in
'
)
console
.
info
(
'
SUB_
MULTIMEDIA_
AUDIO_CAPTURER_INTERRUPT_TEST_001 come in
'
)
console
.
info
(
'
capturerInfo[MIC] is
'
+
capturerInfo
[
'
MIC
'
]
+
'
streamInfo[16000]
'
+
streamInfo
[
'
16000
'
])
let
capture1
=
await
createAudioCapturer
(
capturerInfo
[
'
MIC
'
],
streamInfo
[
'
16000
'
])
console
.
info
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_001 capture1 is
'
+
capture1
)
console
.
info
(
'
SUB_
MULTIMEDIA_
AUDIO_CAPTURER_INTERRUPT_TEST_001 capture1 is
'
+
capture1
)
await
capturerStart
(
capture1
,
done
)
capture1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
flag1
=
true
;
...
...
@@ -271,7 +279,7 @@ export default function audioCapturerInterrupt() {
})
let
capture2
=
await
createAudioCapturer
(
capturerInfo
[
'
MIC
'
],
streamInfo
[
'
16000
'
])
console
.
info
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_001 capture2 is
'
+
capture2
)
console
.
info
(
'
SUB_
MULTIMEDIA_
AUDIO_CAPTURER_INTERRUPT_TEST_001 capture2 is
'
+
capture2
)
await
capturerStartFail
(
capture2
,
done
,
capture1
)
capture2
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -285,11 +293,19 @@ export default function audioCapturerInterrupt() {
done
()
}
catch
(
err
)
{
console
.
info
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_001 err is
'
+
err
.
message
)
console
.
info
(
'
SUB_
MULTIMEDIA_
AUDIO_CAPTURER_INTERRUPT_TEST_001 err is
'
+
err
.
message
)
}
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_002
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_002
*@tc.name : AudioCapturer VOICE_RECOGNITION INTERRUPT MIC
*@tc.desc : AudioCapturer VOICE_RECOGNITION INTERRUPT MIC
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_002
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture1
=
await
createAudioCapturer
(
capturerInfo
[
'
MIC
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -312,7 +328,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_003
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_003
*@tc.name : AudioCapturer VOICE_COMMUNICATION INTERRUPT MIC
*@tc.desc : AudioCapturer VOICE_COMMUNICATION INTERRUPT MIC
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_003
'
,
0
,
async
function
(
done
)
{
let
capture1
=
await
createAudioCapturer
(
capturerInfo
[
'
MIC
'
],
streamInfo
[
'
16000
'
])
await
capturerStart
(
capture1
,
done
)
...
...
@@ -329,7 +353,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_004
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_004
*@tc.name : AudioCapturer MUSIC INTERRUPT MIC
*@tc.desc : AudioCapturer MUSIC INTERRUPT MIC
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_004
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
MIC
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -354,7 +386,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_005
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_005
*@tc.name : AudioCapturer VOICE_CALL INTERRUPT MIC
*@tc.desc : AudioCapturer VOICE_CALL INTERRUPT MIC
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_005
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
MIC
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -379,7 +419,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_006
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_006
*@tc.name : AudioCapturer RING INTERRUPT MIC
*@tc.desc : AudioCapturer RING INTERRUPT MIC
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_006
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
MIC
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -404,7 +452,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_007
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_007
*@tc.name : AudioCapturer VOICE_ASSISTANT INTERRUPT MIC
*@tc.desc : AudioCapturer VOICE_ASSISTANT INTERRUPT MIC
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_007
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
MIC
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -429,10 +485,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_009
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_009
*@tc.name : AudioCapturer ALARM INTERRUPT MIC
*@tc.desc : AudioCapturer ALARM INTERRUPT MIC
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_009
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
MIC
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -457,8 +518,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_010
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_010
*@tc.name : AudioCapturer ACCESSIBILITY INTERRUPT MIC
*@tc.desc : AudioCapturer ACCESSIBILITY INTERRUPT MIC
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_010
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
MIC
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -483,7 +551,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_0011
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_0011
*@tc.name : AudioCapturer SPEECH INTERRUPT MIC
*@tc.desc : AudioCapturer SPEECH INTERRUPT MIC
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_0011
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
MIC
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -508,7 +584,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_0012
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_0012
*@tc.name : AudioCapturer MOVIE INTERRUPT MIC
*@tc.desc : AudioCapturer MOVIE INTERRUPT MIC
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_0012
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
MIC
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -533,7 +617,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_0013
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_0013
*@tc.name : AudioCapturer UNKNOW INTERRUPT MIC
*@tc.desc : AudioCapturer UNKNOW INTERRUPT MIC
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_0013
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
MIC
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -558,7 +650,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_0014
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_0014
*@tc.name : AudioCapturer MIC INTERRUPT VOICE_RECOGNITION
*@tc.desc : AudioCapturer MIC INTERRUPT VOICE_RECOGNITION
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_0014
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture1
=
await
createAudioCapturer
(
capturerInfo
[
'
VOICE_RECOGNITION
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -581,7 +681,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_015
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_015
*@tc.name : AudioCapturer VOICE_RECOGNITION INTERRUPT VOICE_RECOGNITION
*@tc.desc : AudioCapturer VOICE_RECOGNITION INTERRUPT VOICE_RECOGNITION
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_015
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture1
=
await
createAudioCapturer
(
capturerInfo
[
'
VOICE_RECOGNITION
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -604,7 +712,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_016
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_016
*@tc.name : AudioCapturer VOICE_COMMUNICATION INTERRUPT VOICE_RECOGNITION
*@tc.desc : AudioCapturer VOICE_COMMUNICATION INTERRUPT VOICE_RECOGNITION
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_016
'
,
0
,
async
function
(
done
)
{
let
capture1
=
await
createAudioCapturer
(
capturerInfo
[
'
VOICE_RECOGNITION
'
],
streamInfo
[
'
16000
'
])
await
capturerStart
(
capture1
,
done
)
capture1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -620,7 +736,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_017
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_017
*@tc.name : AudioCapturer MUSIC INTERRUPT VOICE_RECOGNITION
*@tc.desc : AudioCapturer MUSIC INTERRUPT VOICE_RECOGNITION
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_017
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
VOICE_RECOGNITION
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -645,7 +769,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_018
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_018
*@tc.name : AudioCapturer VOICE_CALL INTERRUPT VOICE_RECOGNITION
*@tc.desc : AudioCapturer VOICE_CALL INTERRUPT VOICE_RECOGNITION
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_018
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
VOICE_RECOGNITION
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -670,7 +802,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_019
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_019
*@tc.name : AudioCapturer RING INTERRUPT VOICE_RECOGNITION
*@tc.desc : AudioCapturer RING INTERRUPT VOICE_RECOGNITION
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_019
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
VOICE_RECOGNITION
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -695,7 +835,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_020
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_020
*@tc.name : AudioCapturer VOICE_ASSISTANT INTERRUPT VOICE_RECOGNITION
*@tc.desc : AudioCapturer VOICE_ASSISTANT INTERRUPT VOICE_RECOGNITION
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_020
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
VOICE_RECOGNITION
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -720,9 +868,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_022
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_022
*@tc.name : AudioCapturer ALARM INTERRUPT VOICE_RECOGNITION
*@tc.desc : AudioCapturer ALARM INTERRUPT VOICE_RECOGNITION
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_022
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
VOICE_RECOGNITION
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -747,7 +901,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_023
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_023
*@tc.name : AudioCapturer MIC INTERRUPT MIC
*@tc.desc : AudioCapturer MIC INTERRUPT MIC
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_023
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
VOICE_RECOGNITION
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -772,7 +934,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_024
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_024
*@tc.name : AudioCapturer SPEECH INTERRUPT VOICE_RECOGNITION
*@tc.desc : AudioCapturer SPEECH INTERRUPT VOICE_RECOGNITION
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_024
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
VOICE_RECOGNITION
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -797,7 +967,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_025
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_025
*@tc.name : AudioCapturer MOVIE INTERRUPT VOICE_RECOGNITION
*@tc.desc : AudioCapturer MOVIE INTERRUPT VOICE_RECOGNITION
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_025
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
VOICE_RECOGNITION
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -822,7 +1000,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_026
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_026
*@tc.name : AudioCapturer UNKNOW INTERRUPT VOICE_RECOGNITION
*@tc.desc : AudioCapturer UNKNOW INTERRUPT VOICE_RECOGNITION
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_026
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
VOICE_RECOGNITION
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -847,8 +1033,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_027
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_027
*@tc.name : AudioCapturer MIC INTERRUPT VOICE_COMMUNICATION
*@tc.desc : AudioCapturer MIC INTERRUPT VOICE_COMMUNICATION
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_027
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture1
=
await
createAudioCapturer
(
capturerInfo
[
'
VOICE_COMMUNICATION
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -871,7 +1064,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_028
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_028
*@tc.name : AudioCapturer VOICE_RECOGNITION INTERRUPT VOICE_RECOGNITION
*@tc.desc : AudioCapturer VOICE_RECOGNITION INTERRUPT VOICE_RECOGNITION
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_028
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture1
=
await
createAudioCapturer
(
capturerInfo
[
'
VOICE_COMMUNICATION
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -894,8 +1095,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_029
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_029
*@tc.name : AudioCapturer VOICE_COMMUNICATION INTERRUPT VOICE_COMMUNICATION
*@tc.desc : AudioCapturer VOICE_COMMUNICATION INTERRUPT VOICE_COMMUNICATION
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_029
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture1
=
await
createAudioCapturer
(
capturerInfo
[
'
VOICE_COMMUNICATION
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -918,7 +1126,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_030
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_030
*@tc.name : AudioCapturer MUSIC INTERRUPT VOICE_COMMUNICATION
*@tc.desc : AudioCapturer MUSIC INTERRUPT VOICE_COMMUNICATION
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_030
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
VOICE_COMMUNICATION
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -943,7 +1159,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_031
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_031
*@tc.name : AudioCapturer VOICE_CALL INTERRUPT VOICE_COMMUNICATION
*@tc.desc : AudioCapturer VOICE_CALL INTERRUPT VOICE_COMMUNICATION
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_031
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
VOICE_COMMUNICATION
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -968,7 +1192,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_032
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_032
*@tc.name : AudioCapturer RING INTERRUPT VOICE_COMMUNICATION
*@tc.desc : AudioCapturer RING INTERRUPT VOICE_COMMUNICATION
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_032
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
VOICE_COMMUNICATION
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -993,7 +1225,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_033
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_033
*@tc.name : AudioCapturer VOICE_ASSISTANT INTERRUPT VOICE_COMMUNICATION
*@tc.desc : AudioCapturer VOICE_ASSISTANT INTERRUPT VOICE_COMMUNICATION
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_033
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
VOICE_COMMUNICATION
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -1018,9 +1258,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_035
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_035
*@tc.name : AudioCapturer ALARM INTERRUPT VOICE_COMMUNICATION
*@tc.desc : AudioCapturer ALARM INTERRUPT VOICE_COMMUNICATION
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_035
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
VOICE_COMMUNICATION
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -1045,7 +1291,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_036
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_036
*@tc.name : AudioCapturer ACCESSIBILITY INTERRUPT VOICE_COMMUNICATION
*@tc.desc : AudioCapturer ACCESSIBILITY INTERRUPT VOICE_COMMUNICATION
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_036
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
VOICE_COMMUNICATION
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -1070,7 +1324,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_0037
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_0037
*@tc.name : AudioCapturer SPEECH INTERRUPT VOICE_COMMUNICATION
*@tc.desc : AudioCapturer SPEECH INTERRUPT VOICE_COMMUNICATION
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_0037
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
VOICE_COMMUNICATION
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -1095,7 +1357,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_038
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_038
*@tc.name : AudioCapturer MOVIE INTERRUPT VOICE_COMMUNICATION
*@tc.desc : AudioCapturer MOVIE INTERRUPT VOICE_COMMUNICATION
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_038
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
VOICE_COMMUNICATION
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -1120,7 +1390,15 @@ export default function audioCapturerInterrupt() {
done
()
})
it
(
'
SUB_AUDIO_CAPTURER_INTERRUPT_TEST_039
'
,
0
,
async
function
(
done
)
{
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_039
*@tc.name : AudioCapturer UNKNOW INTERRUPT VOICE_COMMUNICATION
*@tc.desc : AudioCapturer UNKNOW INTERRUPT VOICE_COMMUNICATION
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_CAPTURER_INTERRUPT_TEST_039
'
,
0
,
async
function
(
done
)
{
let
flag1
=
false
;
let
flag2
=
false
;
let
capture
=
await
createAudioCapturer
(
capturerInfo
[
'
VOICE_COMMUNICATION
'
],
streamInfo
[
'
16000
'
])
...
...
@@ -1145,7 +1423,7 @@ export default function audioCapturerInterrupt() {
done
()
})
// it('SUB_AUDIO_CAPTURER_INTERRUPT_TEST_008', 0, async function (done) {
// it('SUB_
MULTIMEDIA_
AUDIO_CAPTURER_INTERRUPT_TEST_008', 0, async function (done) {
// let flag1 = false;
// let flag2 = false;
// let capture = await createAudioCapturer(capturerInfo['MIC'], streamInfo['16000'])
...
...
@@ -1172,7 +1450,7 @@ export default function audioCapturerInterrupt() {
// done()
// })
// it('SUB_AUDIO_CAPTURER_INTERRUPT_TEST_021', 0, async function (done) {
// it('SUB_
MULTIMEDIA_
AUDIO_CAPTURER_INTERRUPT_TEST_021', 0, async function (done) {
// let flag1 = false;
// let flag2 = false;
// let capture = await createAudioCapturer(capturerInfo['VOICE_RECOGNITION'], streamInfo['16000'])
...
...
@@ -1197,7 +1475,7 @@ export default function audioCapturerInterrupt() {
// done()
// })
// it('SUB_AUDIO_CAPTURER_INTERRUPT_TEST_034', 0, async function (done) {
// it('SUB_
MULTIMEDIA_
AUDIO_CAPTURER_INTERRUPT_TEST_034', 0, async function (done) {
// let flag1 = false;
// let flag2 = false;
// let capture = await createAudioCapturer(capturerInfo['VOICE_COMMUNICATION'], streamInfo['16000'])
...
...
multimedia/audio/audio_js_standard/audioRenderer/src/main/js/test/AudioRenderInterrupt.test.js
浏览文件 @
ce1934cb
...
...
@@ -184,13 +184,21 @@ describe("AudioRendererInterruptUnitTest", function () {
return
new
Promise
(
resolve
=>
setTimeout
(
resolve
,
ms
));
}
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_001
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_001
* @tc.name : AudioRender ALARM INTERRUPT MUSIC
* @tc.desc : AudioRender ALARM INTERRUPT MUSIC
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_001
'
,
0
,
async
function
(
done
)
{
try
{
console
.
info
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_001 come in
'
)
console
.
info
(
'
SUB_
MULTIMEDIA_
AUDIO_RENDERER_INTERRUPT_TEST_001 come in
'
)
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
MUSIC
'
],
streamInfo
[
'
44100
'
])
console
.
info
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_001 render1 is
'
+
render1
)
console
.
info
(
'
SUB_
MULTIMEDIA_
AUDIO_RENDERER_INTERRUPT_TEST_001 render1 is
'
+
render1
)
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
console
.
info
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_001 111111111111
'
)
console
.
info
(
'
SUB_
MULTIMEDIA_
AUDIO_RENDERER_INTERRUPT_TEST_001 111111111111
'
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
console
.
log
(
"
1.eventAction=
"
+
JSON
.
stringify
(
eventAction
))
expect
(
eventAction
.
hintType
).
assertEqual
(
audio
.
InterruptHint
.
INTERRUPT_HINT_STOP
)
...
...
@@ -206,12 +214,20 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
}
catch
(
err
)
{
console
.
info
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_001 err is
'
+
err
.
message
)
console
.
info
(
'
SUB_
MULTIMEDIA_
AUDIO_RENDERER_INTERRUPT_TEST_001 err is
'
+
err
.
message
)
}
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_002
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_002
* @tc.name : AudioRender ALARM INTERRUPT MUSIC
* @tc.desc : AudioRender ALARM INTERRUPT MUSIC
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_002
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
MUSIC
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -234,7 +250,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_003
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_003
* @tc.name : AudioRender ALARM INTERRUPT MUSIC
* @tc.desc : AudioRender ALARM INTERRUPT MUSIC
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_003
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
MUSIC
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -257,7 +281,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_004
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_004
* @tc.name : AudioRender ALARM INTERRUPT MUSIC
* @tc.desc : AudioRender ALARM INTERRUPT MUSIC
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_004
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
MUSIC
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -279,7 +311,7 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
// it('SUB_AUDIO_RENDERER_INTERRUPT_TEST_005', 0, async function (done) {
// it('SUB_
MULTIMEDIA_
AUDIO_RENDERER_INTERRUPT_TEST_005', 0, async function (done) {
// let render1_callback = false
// let render2_callback = false
// let render1 = await createAudioRenderer(renderInfo['MUSIC'], streamInfo['44100'])
...
...
@@ -306,7 +338,15 @@ describe("AudioRendererInterruptUnitTest", function () {
// done()
// })
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_006
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_006
* @tc.name : AudioRender ALARM INTERRUPT MUSIC
* @tc.desc : AudioRender ALARM INTERRUPT MUSIC
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_006
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
MUSIC
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -329,7 +369,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_007
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_007
* @tc.name : AudioRender ACCESSIBILITY INTERRUPT MUSIC
* @tc.desc : AudioRender ACCESSIBILITY INTERRUPT MUSIC
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_007
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
MUSIC
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -352,7 +400,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_008
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_008
* @tc.name : AudioRender SPEECH INTERRUPT MUSIC
* @tc.desc : AudioRender SPEECH INTERRUPT MUSIC
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_008
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
MUSIC
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -370,7 +426,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_009
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_009
* @tc.name : AudioRender MOVIE INTERRUPT MUSIC
* @tc.desc : AudioRender MOVIE INTERRUPT MUSIC
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_009
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
MUSIC
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -388,7 +452,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_010
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_010
* @tc.name : AudioRender UNKNOW INTERRUPT MUSIC
* @tc.desc : AudioRender UNKNOW INTERRUPT MUSIC
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_010
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
MUSIC
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -406,8 +478,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
// VOICE_CALL
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_011
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_011
* @tc.name : AudioRender MUSIC INTERRUPT VOICE_CALL
* @tc.desc : AudioRender MUSIC INTERRUPT VOICE_CALL
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_011
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
VOICE_CALL
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
await
start
(
render1
,
done
)
...
...
@@ -432,7 +511,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_012
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_012
* @tc.name : AudioRender VOICE_CALL INTERRUPT VOICE_CALL
* @tc.desc : AudioRender VOICE_CALL INTERRUPT VOICE_CALL
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_012
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
VOICE_CALL
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
await
start
(
render1
,
done
)
...
...
@@ -442,7 +529,15 @@ describe("AudioRendererInterruptUnitTest", function () {
await
startFail
(
render2
,
done
,
render1
)
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_013
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_013
* @tc.name : AudioRender RINGTONE INTERRUPT VOICE_CALL
* @tc.desc : AudioRender RINGTONE INTERRUPT VOICE_CALL
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_013
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
VOICE_CALL
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
await
start
(
render1
,
done
)
...
...
@@ -452,7 +547,15 @@ describe("AudioRendererInterruptUnitTest", function () {
await
startFail
(
render2
,
done
,
render1
)
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_014
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_014
* @tc.name : AudioRender VOICE_ASSISTANT INTERRUPT VOICE_CALL
* @tc.desc : AudioRender VOICE_ASSISTANT INTERRUPT VOICE_CALL
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_014
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
VOICE_CALL
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
await
start
(
render1
,
done
)
...
...
@@ -462,7 +565,7 @@ describe("AudioRendererInterruptUnitTest", function () {
await
startFail
(
render2
,
done
,
render1
)
})
// it('SUB_AUDIO_RENDERER_INTERRUPT_TEST_015', 0, async function (done) {
// it('SUB_
MULTIMEDIA_
AUDIO_RENDERER_INTERRUPT_TEST_015', 0, async function (done) {
// let render1_callback = false
// let render2_callback = false
// let render1 = await createAudioRenderer(renderInfo['VOICE_CALL'], streamInfo['44100'])
...
...
@@ -489,7 +592,15 @@ describe("AudioRendererInterruptUnitTest", function () {
// done()
// })
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_016
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_016
* @tc.name : AudioRender ALARM INTERRUPT VOICE_CALL
* @tc.desc : AudioRender ALARM INTERRUPT VOICE_CALL
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_016
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
VOICE_CALL
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
await
start
(
render1
,
done
)
...
...
@@ -512,7 +623,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_017
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_017
* @tc.name : AudioRender ACCESSIBILITY INTERRUPT VOICE_CALL
* @tc.desc : AudioRender ACCESSIBILITY INTERRUPT VOICE_CALL
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_017
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
VOICE_CALL
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -535,7 +654,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_018
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_018
* @tc.name : AudioRender SPEECH INTERRUPT VOICE_CALL
* @tc.desc : AudioRender SPEECH INTERRUPT VOICE_CALL
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_018
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
VOICE_CALL
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
await
start
(
render1
,
done
)
...
...
@@ -560,7 +687,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_019
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_019
* @tc.name : AudioRender MOVIE INTERRUPT VOICE_CALL
* @tc.desc : AudioRender MOVIE INTERRUPT VOICE_CALL
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_019
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
VOICE_CALL
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
await
start
(
render1
,
done
)
...
...
@@ -585,7 +720,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_020
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_020
* @tc.name : AudioRender UNKNOW INTERRUPT VOICE_CALL
* @tc.desc : AudioRender UNKNOW INTERRUPT VOICE_CALL
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_020
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
VOICE_CALL
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
await
start
(
render1
,
done
)
...
...
@@ -610,8 +753,16 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
// RINGTONE
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_021
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_021
* @tc.name : AudioRender MUSIC INTERRUPT RINGTONE
* @tc.desc : AudioRender MUSIC INTERRUPT RINGTONE
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_021
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
RINGTONE
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
await
start
(
render1
,
done
)
...
...
@@ -634,7 +785,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_022
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_022
* @tc.name : AudioRender VOICE_CALL INTERRUPT RINGTONE
* @tc.desc : AudioRender VOICE_CALL INTERRUPT RINGTONE
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_022
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
RINGTONE
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -652,7 +811,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_023
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_023
* @tc.name : AudioRender RINGTONE INTERRUPT RINGTONE
* @tc.desc : AudioRender RINGTONE INTERRUPT RINGTONE
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_023
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
RINGTONE
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
await
start
(
render1
,
done
)
...
...
@@ -662,7 +829,15 @@ describe("AudioRendererInterruptUnitTest", function () {
await
startFail
(
render2
,
done
,
render1
)
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_024
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_023
* @tc.name : AudioRender VOICE_ASSISTANT INTERRUPT RINGTONE
* @tc.desc : AudioRender VOICE_ASSISTANT INTERRUPT RINGTONE
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_024
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
RINGTONE
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
await
start
(
render1
,
done
)
...
...
@@ -672,7 +847,7 @@ describe("AudioRendererInterruptUnitTest", function () {
await
startFail
(
render2
,
done
,
render1
)
})
// it('SUB_AUDIO_RENDERER_INTERRUPT_TEST_025', 0, async function (done) {
// it('SUB_
MULTIMEDIA_
AUDIO_RENDERER_INTERRUPT_TEST_025', 0, async function (done) {
// let render1_callback = false
// let render2_callback = false
// let render1 = await createAudioRenderer(renderInfo['RINGTONE'], streamInfo['44100'])
...
...
@@ -699,7 +874,15 @@ describe("AudioRendererInterruptUnitTest", function () {
// done()
// })
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_026
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_026
* @tc.name : AudioRender ALARM INTERRUPT RINGTONE
* @tc.desc : AudioRender ALARM INTERRUPT RINGTONE
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_026
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
RINGTONE
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
await
start
(
render1
,
done
)
...
...
@@ -717,7 +900,15 @@ describe("AudioRendererInterruptUnitTest", function () {
await
startFail
(
render2
,
done
,
render1
)
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_027
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_027
* @tc.name : AudioRender ACCESSIBILITY INTERRUPT RINGTONE
* @tc.desc : AudioRender ACCESSIBILITY INTERRUPT RINGTONE
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_027
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
RINGTONE
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -740,7 +931,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_028
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_028
* @tc.name : AudioRender SPEECH INTERRUPT RINGTONE
* @tc.desc : AudioRender SPEECH INTERRUPT RINGTONE
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_028
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
RINGTONE
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
await
start
(
render1
,
done
)
...
...
@@ -763,7 +962,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_029
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_029
* @tc.name : AudioRender MOVIE INTERRUPT RINGTONE
* @tc.desc : AudioRender MOVIE INTERRUPT RINGTONE
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_029
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
RINGTONE
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
await
start
(
render1
,
done
)
...
...
@@ -786,7 +993,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_030
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_030
* @tc.name : AudioRender UNKNOW INTERRUPT RINGTONE
* @tc.desc : AudioRender UNKNOW INTERRUPT RINGTONE
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_030
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
RINGTONE
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
await
start
(
render1
,
done
)
...
...
@@ -810,8 +1025,15 @@ describe("AudioRendererInterruptUnitTest", function () {
})
// VOICE_ASSISTANT
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_031
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_031
* @tc.name : AudioRender MUSIC INTERRUPT VOICE_ASSISTANT
* @tc.desc : AudioRender MUSIC INTERRUPT VOICE_ASSISTANT
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_031
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
VOICE_ASSISTANT
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -829,7 +1051,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_032
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_032
* @tc.name : AudioRender VOICE_CALL INTERRUPT VOICE_ASSISTANT
* @tc.desc : AudioRender VOICE_CALL INTERRUPT VOICE_ASSISTANT
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_032
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
VOICE_ASSISTANT
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -847,7 +1077,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_033
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_033
* @tc.name : AudioRender RINGTONE INTERRUPT VOICE_ASSISTANT
* @tc.desc : AudioRender RINGTONE INTERRUPT VOICE_ASSISTANT
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_033
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
VOICE_ASSISTANT
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -865,7 +1103,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_034
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_034
* @tc.name : AudioRender VOICE_ASSISTANT INTERRUPT VOICE_ASSISTANT
* @tc.desc : AudioRender VOICE_ASSISTANT INTERRUPT VOICE_ASSISTANT
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_034
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
VOICE_ASSISTANT
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -883,7 +1129,7 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
// it('SUB_AUDIO_RENDERER_INTERRUPT_TEST_035', 0, async function (done) {
// it('SUB_
MULTIMEDIA_
AUDIO_RENDERER_INTERRUPT_TEST_035', 0, async function (done) {
// let render1_callback = false
// let render2_callback = false
// let render1 = await createAudioRenderer(renderInfo['VOICE_ASSISTANT'], streamInfo['44100'])
...
...
@@ -910,7 +1156,15 @@ describe("AudioRendererInterruptUnitTest", function () {
// done()
// })
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_036
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_036
* @tc.name : AudioRender ALARM INTERRUPT VOICE_ASSISTANT
* @tc.desc : AudioRender ALARM INTERRUPT VOICE_ASSISTANT
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_036
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
VOICE_ASSISTANT
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -928,7 +1182,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_037
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_037
* @tc.name : AudioRender ACCESSIBILITY INTERRUPT ACCESSIBILITY
* @tc.desc : AudioRender ACCESSIBILITY INTERRUPT ACCESSIBILITY
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_037
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
VOICE_ASSISTANT
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -946,7 +1208,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_038
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_038
* @tc.name : AudioRender SPEECH INTERRUPT VOICE_ASSISTANT
* @tc.desc : AudioRender SPEECH INTERRUPT VOICE_ASSISTANT
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_038
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
VOICE_ASSISTANT
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -964,7 +1234,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_039
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_039
* @tc.name : AudioRender MOVIE INTERRUPT VOICE_ASSISTANT
* @tc.desc : AudioRender MOVIE INTERRUPT VOICE_ASSISTANT
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_039
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
VOICE_ASSISTANT
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -982,7 +1260,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_040
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_040
* @tc.name : AudioRender UNKNOW INTERRUPT VOICE_ASSISTANT
* @tc.desc : AudioRender UNKNOW INTERRUPT VOICE_ASSISTANT
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_040
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
VOICE_ASSISTANT
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1000,8 +1286,16 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_001
* @tc.name : AudioRender ALARM INTERRUPT MUSIC
* @tc.desc : AudioRender ALARM INTERRUPT MUSIC
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
// // ULTRASONIC
// it('SUB_AUDIO_RENDERER_INTERRUPT_TEST_041', 0, async function (done) {
// it('SUB_
MULTIMEDIA_
AUDIO_RENDERER_INTERRUPT_TEST_041', 0, async function (done) {
// let render1_callback = false
// let render2_callback = false
// let render1 = await createAudioRenderer(renderInfo['ULTRASONIC'], streamInfo['44100'])
...
...
@@ -1028,7 +1322,7 @@ describe("AudioRendererInterruptUnitTest", function () {
// done()
// })
// it('SUB_AUDIO_RENDERER_INTERRUPT_TEST_042', 0, async function (done) {
// it('SUB_
MULTIMEDIA_
AUDIO_RENDERER_INTERRUPT_TEST_042', 0, async function (done) {
// let render1_callback = false
// let render2_callback = false
// let render1 = await createAudioRenderer(renderInfo['ULTRASONIC'], streamInfo['44100'])
...
...
@@ -1055,7 +1349,7 @@ describe("AudioRendererInterruptUnitTest", function () {
// done()
// })
// it('SUB_AUDIO_RENDERER_INTERRUPT_TEST_043', 0, async function (done) {
// it('SUB_
MULTIMEDIA_
AUDIO_RENDERER_INTERRUPT_TEST_043', 0, async function (done) {
// let render1_callback = false
// let render2_callback = false
// let render1 = await createAudioRenderer(renderInfo['ULTRASONIC'], streamInfo['44100'])
...
...
@@ -1082,7 +1376,7 @@ describe("AudioRendererInterruptUnitTest", function () {
// done()
// })
// it('SUB_AUDIO_RENDERER_INTERRUPT_TEST_044', 0, async function (done) {
// it('SUB_
MULTIMEDIA_
AUDIO_RENDERER_INTERRUPT_TEST_044', 0, async function (done) {
// let render1_callback = false
// let render2_callback = false
// let render1 = await createAudioRenderer(renderInfo['ULTRASONIC'], streamInfo['44100'])
...
...
@@ -1109,7 +1403,7 @@ describe("AudioRendererInterruptUnitTest", function () {
// done()
// })
// it('SUB_AUDIO_RENDERER_INTERRUPT_TEST_045', 0, async function (done) {
// it('SUB_
MULTIMEDIA_
AUDIO_RENDERER_INTERRUPT_TEST_045', 0, async function (done) {
// let render1_callback = false
// let render2_callback = false
// let render1 = await createAudioRenderer(renderInfo['ULTRASONIC'], streamInfo['44100'])
...
...
@@ -1136,7 +1430,7 @@ describe("AudioRendererInterruptUnitTest", function () {
// done()
// })
// it('SUB_AUDIO_RENDERER_INTERRUPT_TEST_046', 0, async function (done) {
// it('SUB_
MULTIMEDIA_
AUDIO_RENDERER_INTERRUPT_TEST_046', 0, async function (done) {
// let render1_callback = false
// let render2_callback = false
// let render1 = await createAudioRenderer(renderInfo['ULTRASONIC'], streamInfo['44100'])
...
...
@@ -1163,7 +1457,7 @@ describe("AudioRendererInterruptUnitTest", function () {
// done()
// })
// it('SUB_AUDIO_RENDERER_INTERRUPT_TEST_047', 0, async function (done) {
// it('SUB_
MULTIMEDIA_
AUDIO_RENDERER_INTERRUPT_TEST_047', 0, async function (done) {
// let render1_callback = false
// let render2_callback = false
// let render1 = await createAudioRenderer(renderInfo['ULTRASONIC'], streamInfo['44100'])
...
...
@@ -1190,7 +1484,7 @@ describe("AudioRendererInterruptUnitTest", function () {
// done()
// })
// it('SUB_AUDIO_RENDERER_INTERRUPT_TEST_048', 0, async function (done) {
// it('SUB_
MULTIMEDIA_
AUDIO_RENDERER_INTERRUPT_TEST_048', 0, async function (done) {
// let render1_callback = false
// let render2_callback = false
// let render1 = await createAudioRenderer(renderInfo['ULTRASONIC'], streamInfo['44100'])
...
...
@@ -1217,7 +1511,7 @@ describe("AudioRendererInterruptUnitTest", function () {
// done()
// })
// it('SUB_AUDIO_RENDERER_INTERRUPT_TEST_049', 0, async function (done) {
// it('SUB_
MULTIMEDIA_
AUDIO_RENDERER_INTERRUPT_TEST_049', 0, async function (done) {
// let render1_callback = false
// let render2_callback = false
// let render1 = await createAudioRenderer(renderInfo['ULTRASONIC'], streamInfo['44100'])
...
...
@@ -1244,7 +1538,7 @@ describe("AudioRendererInterruptUnitTest", function () {
// done()
// })
// it('SUB_AUDIO_RENDERER_INTERRUPT_TEST_050', 0, async function (done) {
// it('SUB_
MULTIMEDIA_
AUDIO_RENDERER_INTERRUPT_TEST_050', 0, async function (done) {
// let render1_callback = false
// let render2_callback = false
// let render1 = await createAudioRenderer(renderInfo['ULTRASONIC'], streamInfo['44100'])
...
...
@@ -1271,8 +1565,15 @@ describe("AudioRendererInterruptUnitTest", function () {
// done()
// })
// ALARM
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_051
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_051
* @tc.name : AudioRender MUSIC INTERRUPT ALARM
* @tc.desc : AudioRender MUSIC INTERRUPT ALARM
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_051
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
ALARM
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1289,7 +1590,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_052
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_052
* @tc.name : AudioRender VOICE_CALL INTERRUPT ALARM
* @tc.desc : AudioRender VOICE_CALL INTERRUPT ALARM
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_052
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
ALARM
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1307,7 +1616,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_053
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_053
* @tc.name : AudioRender RINGTONE INTERRUPT ALARM
* @tc.desc : AudioRender RINGTONE INTERRUPT ALARM
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_053
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
ALARM
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1325,7 +1642,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_054
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_054
* @tc.name : AudioRender ALARM INTERRUPT ALARM
* @tc.desc : AudioRender ALARM INTERRUPT ALARM
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_054
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
ALARM
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1348,7 +1673,7 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
// it('SUB_AUDIO_RENDERER_INTERRUPT_TEST_055', 0, async function (done) {
// it('SUB_
MULTIMEDIA_
AUDIO_RENDERER_INTERRUPT_TEST_055', 0, async function (done) {
// let render1_callback = false
// let render2_callback = false
// let render1 = await createAudioRenderer(renderInfo['ALARM'], streamInfo['44100'])
...
...
@@ -1375,7 +1700,15 @@ describe("AudioRendererInterruptUnitTest", function () {
// done()
// })
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_056
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_056
* @tc.name : AudioRender ALARM INTERRUPT ALARM
* @tc.desc : AudioRender ALARM INTERRUPT ALARM
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_056
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
ALARM
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1393,7 +1726,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_057
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_057
* @tc.name : AudioRender ACCESSIBILITY INTERRUPT ALARM
* @tc.desc : AudioRender ACCESSIBILITY INTERRUPT ALARM
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_057
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
ALARM
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1416,7 +1757,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_058
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_058
* @tc.name : AudioRender SPEECH INTERRUPT ALARM
* @tc.desc : AudioRender SPEECH INTERRUPT ALARM
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_058
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
ALARM
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1433,7 +1782,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_059
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_059
* @tc.name : AudioRender MOVIE INTERRUPT ALARM
* @tc.desc : AudioRender MOVIE INTERRUPT ALARM
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_059
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
ALARM
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1450,7 +1807,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_060
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_060
* @tc.name : AudioRender UNKNOW INTERRUPT ALARM
* @tc.desc : AudioRender UNKNOW INTERRUPT ALARM
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_060
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
ALARM
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1467,8 +1832,16 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
// ACCESSIBILITY
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_061
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_061
* @tc.name : AudioRender MUSIC INTERRUPT ACCESSIBILITY
* @tc.desc : AudioRender MUSIC INTERRUPT ACCESSIBILITY
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_061
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
ACCESSIBILITY
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
await
start
(
render1
,
done
)
...
...
@@ -1478,7 +1851,15 @@ describe("AudioRendererInterruptUnitTest", function () {
await
startFail
(
render2
,
done
,
render1
)
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_062
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_062
* @tc.name : AudioRender VOICE_CALL INTERRUPT ACCESSIBILITY
* @tc.desc : AudioRender VOICE_CALL INTERRUPT ACCESSIBILITY
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_062
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
ACCESSIBILITY
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
await
start
(
render1
,
done
)
...
...
@@ -1501,7 +1882,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_063
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_063
* @tc.name : AudioRender RINGTONE INTERRUPT ACCESSIBILITY
* @tc.desc : AudioRender RINGTONE INTERRUPT ACCESSIBILITY
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_063
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
ACCESSIBILITY
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1524,7 +1913,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_064
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_064
* @tc.name : AudioRender VOICE_ASSISTANT INTERRUPT ACCESSIBILITY
* @tc.desc : AudioRender VOICE_ASSISTANT INTERRUPT ACCESSIBILITY
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_064
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
ACCESSIBILITY
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
await
start
(
render1
,
done
)
...
...
@@ -1534,7 +1931,7 @@ describe("AudioRendererInterruptUnitTest", function () {
await
startFail
(
render2
,
done
,
render1
)
})
// it('SUB_AUDIO_RENDERER_INTERRUPT_TEST_065', 0, async function (done) {
// it('SUB_
MULTIMEDIA_
AUDIO_RENDERER_INTERRUPT_TEST_065', 0, async function (done) {
// let render1_callback = false
// let render2_callback = false
// let render1 = await createAudioRenderer(renderInfo['ACCESSIBILITY'], streamInfo['44100'])
...
...
@@ -1561,7 +1958,15 @@ describe("AudioRendererInterruptUnitTest", function () {
// done()
// })
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_066
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_066
* @tc.name : AudioRender ALARM INTERRUPT ACCESSIBILITY
* @tc.desc : AudioRender ALARM INTERRUPT ACCESSIBILITY
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_066
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
ACCESSIBILITY
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
await
start
(
render1
,
done
)
...
...
@@ -1584,7 +1989,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_067
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_067
* @tc.name : AudioRender ACCESSIBILITY INTERRUPT ACCESSIBILITY
* @tc.desc : AudioRender ACCESSIBILITY INTERRUPT ACCESSIBILITY
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_067
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
ACCESSIBILITY
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1602,7 +2015,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_068
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_068
* @tc.name : AudioRender SPEECH INTERRUPT ACCESSIBILITY
* @tc.desc : AudioRender SPEECH INTERRUPT ACCESSIBILITY
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_068
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
ACCESSIBILITY
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
await
start
(
render1
,
done
)
...
...
@@ -1612,7 +2033,15 @@ describe("AudioRendererInterruptUnitTest", function () {
await
startFail
(
render2
,
done
,
render1
)
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_069
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_069
* @tc.name : AudioRender MOVIE INTERRUPT ACCESSIBILITY
* @tc.desc : AudioRender MOVIE INTERRUPT ACCESSIBILITY
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_069
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
ACCESSIBILITY
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
await
start
(
render1
,
done
)
...
...
@@ -1622,7 +2051,15 @@ describe("AudioRendererInterruptUnitTest", function () {
await
startFail
(
render2
,
done
,
render1
)
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_070
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_070
* @tc.name : AudioRender UNKNOW INTERRUPT ACCESSIBILITY
* @tc.desc : AudioRender UNKNOW INTERRUPT ACCESSIBILITY
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_070
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
ACCESSIBILITY
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
await
start
(
render1
,
done
)
...
...
@@ -1632,8 +2069,16 @@ describe("AudioRendererInterruptUnitTest", function () {
await
startFail
(
render2
,
done
,
render1
)
})
// SPEECH
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_071
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_071
* @tc.name : AudioRender MUSIC INTERRUPT SPEECH
* @tc.desc : AudioRender MUSIC INTERRUPT SPEECH
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_071
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
SPEECH
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1651,7 +2096,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_072
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_072
* @tc.name : AudioRender VOICE_CALL INTERRUPT SPEECH
* @tc.desc : AudioRender VOICE_CALL INTERRUPT SPEECH
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_072
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
SPEECH
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1674,7 +2127,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_073
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_073
* @tc.name : AudioRender RINGTONE INTERRUPT SPEECH
* @tc.desc : AudioRender RINGTONE INTERRUPT SPEECH
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_073
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
SPEECH
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1697,7 +2158,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_074
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_074
* @tc.name : AudioRender VOICE_ASSISTANT INTERRUPT SPEECH
* @tc.desc : AudioRender VOICE_ASSISTANT INTERRUPT SPEECH
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_074
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
SPEECH
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1719,7 +2188,7 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
// it('SUB_AUDIO_RENDERER_INTERRUPT_TEST_075', 0, async function (done) {
// it('SUB_
MULTIMEDIA_
AUDIO_RENDERER_INTERRUPT_TEST_075', 0, async function (done) {
// let render1_callback = false
// let render2_callback = false
// let render1 = await createAudioRenderer(renderInfo['SPEECH'], streamInfo['44100'])
...
...
@@ -1746,7 +2215,15 @@ describe("AudioRendererInterruptUnitTest", function () {
// done()
// })
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_076
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_076
* @tc.name : AudioRender ALARM INTERRUPT SPEECH
* @tc.desc : AudioRender ALARM INTERRUPT SPEECH
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_076
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
SPEECH
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1769,7 +2246,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_077
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_077
* @tc.name : AudioRender ACCESSIBILITY INTERRUPT SPEECH
* @tc.desc : AudioRender ACCESSIBILITY INTERRUPT SPEECH
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_077
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
SPEECH
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1792,7 +2277,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_078
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_078
* @tc.name : AudioRender SPEECH INTERRUPT SPEECH
* @tc.desc : AudioRender SPEECH INTERRUPT SPEECH
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_078
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
SPEECH
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1810,7 +2303,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_079
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_079
* @tc.name : AudioRender MOVIE INTERRUPT SPEECH
* @tc.desc : AudioRender MOVIE INTERRUPT SPEECH
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_079
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
SPEECH
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1828,7 +2329,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_080
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_080
* @tc.name : AudioRender UNKNOW INTERRUPT SPEECH
* @tc.desc : AudioRender UNKNOW INTERRUPT SPEECH
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_080
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
SPEECH
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1846,8 +2355,16 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
// MOVIE
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_081
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_081
* @tc.name : AudioRender MUSIC INTERRUPT MOVIE
* @tc.desc : AudioRender MUSIC INTERRUPT MOVIE
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_081
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
MOVIE
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1865,7 +2382,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_082
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_082
* @tc.name : AudioRender VOICE_CALL INTERRUPT MOVIE
* @tc.desc : AudioRender VOICE_CALL INTERRUPT MOVIE
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_082
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
MOVIE
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1888,7 +2413,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_083
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_083
* @tc.name : AudioRender RINGTONE INTERRUPT MOVIE
* @tc.desc : AudioRender RINGTONE INTERRUPT MOVIE
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_083
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
MOVIE
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1911,7 +2444,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_084
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_084
* @tc.name : AudioRender VOICE_ASSISTANT INTERRUPT MOVIE
* @tc.desc : AudioRender VOICE_ASSISTANT INTERRUPT MOVIE
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_084
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
MOVIE
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1933,7 +2474,7 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
// it('SUB_AUDIO_RENDERER_INTERRUPT_TEST_085', 0, async function (done) {
// it('SUB_
MULTIMEDIA_
AUDIO_RENDERER_INTERRUPT_TEST_085', 0, async function (done) {
// let render1_callback = false
// let render2_callback = false
// let render1 = await createAudioRenderer(renderInfo['MOVIE'], streamInfo['44100'])
...
...
@@ -1960,7 +2501,15 @@ describe("AudioRendererInterruptUnitTest", function () {
// done()
// })
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_086
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_086
* @tc.name : AudioRender ALARM INTERRUPT MOVIE
* @tc.desc : AudioRender ALARM INTERRUPT MOVIE
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_086
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
MOVIE
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -1983,7 +2532,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_087
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_087
* @tc.name : AudioRender ACCESSIBILITY INTERRUPT MOVIE
* @tc.desc : AudioRender ACCESSIBILITY INTERRUPT MOVIE
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_087
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
MOVIE
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -2006,7 +2563,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_088
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_088
* @tc.name : AudioRender SPEECH INTERRUPT MOVIE
* @tc.desc : AudioRender SPEECH INTERRUPT MOVIE
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_088
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
MOVIE
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -2024,7 +2589,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_089
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_089
* @tc.name : AudioRender MOVIE INTERRUPT MOVIE
* @tc.desc : AudioRender MOVIE INTERRUPT MOVIE
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_089
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
MOVIE
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -2042,7 +2615,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_090
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_090
* @tc.name : AudioRender UNKNOW INTERRUPT MOVIE
* @tc.desc : AudioRender UNKNOW INTERRUPT MOVIE
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_090
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
MOVIE
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -2060,8 +2641,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
// UNKNOW
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_091
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_091
* @tc.name : AudioRender ALARM INTERRUPT MUSIC
* @tc.desc : AudioRender ALARM INTERRUPT MUSIC
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_091
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
UNKNOW
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -2079,7 +2667,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_092
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_092
* @tc.name : AudioRender ALARM INTERRUPT MUSIC
* @tc.desc : AudioRender ALARM INTERRUPT MUSIC
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_092
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
UNKNOW
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -2102,7 +2698,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_093
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_093
* @tc.name : AudioRender ALARM INTERRUPT MUSIC
* @tc.desc : AudioRender ALARM INTERRUPT MUSIC
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_093
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
UNKNOW
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -2125,7 +2729,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_094
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_094
* @tc.name : AudioRender ALARM INTERRUPT MUSIC
* @tc.desc : AudioRender ALARM INTERRUPT MUSIC
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_094
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
UNKNOW
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -2147,7 +2759,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
// it('SUB_AUDIO_RENDERER_INTERRUPT_TEST_095', 0, async function (done) {
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_001
* @tc.name : AudioRender ALARM INTERRUPT MUSIC
* @tc.desc : AudioRender ALARM INTERRUPT MUSIC
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
// it('SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_095', 0, async function (done) {
// let render1_callback = false
// let render2_callback = false
// let render1 = await createAudioRenderer(renderInfo['UNKNOW'], streamInfo['44100'])
...
...
@@ -2174,7 +2794,15 @@ describe("AudioRendererInterruptUnitTest", function () {
// done()
// })
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_096
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_096
* @tc.name : AudioRender ALARM INTERRUPT MUSIC
* @tc.desc : AudioRender ALARM INTERRUPT MUSIC
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_096
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
UNKNOW
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -2197,7 +2825,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_097
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_097
* @tc.name : AudioRender ALARM INTERRUPT MUSIC
* @tc.desc : AudioRender ALARM INTERRUPT MUSIC
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_097
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
UNKNOW
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -2220,7 +2856,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_098
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_098
* @tc.name : AudioRender ALARM INTERRUPT MUSIC
* @tc.desc : AudioRender ALARM INTERRUPT MUSIC
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_098
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
UNKNOW
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -2238,7 +2882,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_099
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_099
* @tc.name : AudioRender ALARM INTERRUPT MUSIC
* @tc.desc : AudioRender ALARM INTERRUPT MUSIC
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_099
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
UNKNOW
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -2256,7 +2908,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_100
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_100
* @tc.name : AudioRender UNKNOW INTERRUPT UNKNOW
* @tc.desc : AudioRender UNKNOW INTERRUPT UNKNOW
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_100
'
,
0
,
async
function
(
done
)
{
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
UNKNOW
'
],
streamInfo
[
'
44100
'
])
await
render1
.
setInterruptMode
(
audio
.
InterruptMode
.
INDEPENDENT_MODE
)
render1
.
on
(
"
audioInterrupt
"
,
async
(
eventAction
)
=>
{
...
...
@@ -2274,8 +2934,15 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
// 两个stream同时为share mode
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_101
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_101
* @tc.name : AudioRender MUSIC INTERRUPT MUSIC
* @tc.desc : AudioRender MUSIC INTERRUPT MUSIC
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_101
'
,
0
,
async
function
(
done
)
{
let
render1_callback
=
false
let
render2_callback
=
false
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
MUSIC
'
],
streamInfo
[
'
44100
'
])
...
...
@@ -2302,8 +2969,16 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
// 第一个为share mode, 第二个为Independe mode
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_102
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_102
* @tc.name : AudioRender MUSIC INTERRUPT MUSIC
* @tc.desc : AudioRender MUSIC INTERRUPT MUSIC
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_102
'
,
0
,
async
function
(
done
)
{
let
render1_callback
=
false
let
render2_callback
=
false
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
MUSIC
'
],
streamInfo
[
'
44100
'
])
...
...
@@ -2330,8 +3005,16 @@ describe("AudioRendererInterruptUnitTest", function () {
done
()
})
// 第一个为independ mode, 第二个为share mode
it
(
'
SUB_AUDIO_RENDERER_INTERRUPT_TEST_103
'
,
0
,
async
function
(
done
)
{
/**
* @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_103
* @tc.name : AudioRender MUSIC INTERRUPT MUSIC
* @tc.desc : AudioRender MUSIC INTERRUPT MUSIC
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_RENDERER_INTERRUPT_TEST_103
'
,
0
,
async
function
(
done
)
{
let
render1_callback
=
false
let
render2_callback
=
false
let
render1
=
await
createAudioRenderer
(
renderInfo
[
'
MUSIC
'
],
streamInfo
[
'
44100
'
])
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录