Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
02885c94
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看板
未验证
提交
02885c94
编写于
3月 19, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 19, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2649 updating scripts for 3.1.5.5 (LowVol,Test.json,MediaScanner)
Merge pull request !2649 from harshaprasad/Audio_FrameWork_18032022
上级
6cf785ef
70e97f0b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
56 addition
and
56 deletion
+56
-56
multimedia/audio/audio_js_standard/audioManager/Test.json
multimedia/audio/audio_js_standard/audioManager/Test.json
+1
-1
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js
...dard/audioManager/src/main/js/test/AudioFramework.test.js
+2
-2
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRenderer.test.js
...ndard/audioManager/src/main/js/test/AudioRenderer.test.js
+51
-51
multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/MediaScannerFrameWork1.0.js
..._js_standard/src/main/js/test/MediaScannerFrameWork1.0.js
+2
-2
未找到文件。
multimedia/audio/audio_js_standard/audioManager/Test.json
浏览文件 @
02885c94
...
...
@@ -2,7 +2,7 @@
"description"
:
"Configuration for audio manager Tests"
,
"driver"
:
{
"type"
:
"JSUnitTest"
,
"test-timeout"
:
"
2
00000"
,
"test-timeout"
:
"
55
00000"
,
"package"
:
"ohos.acts.multimedia.audio.audiomanager"
,
"shell-timeout"
:
"60000"
},
...
...
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js
浏览文件 @
02885c94
...
...
@@ -4126,7 +4126,7 @@ describe('audioManger', function () {
console
.
info
(
'
AudioFrameworkTest: Audio Volume Type : VOICE_CALL
'
);
console
.
info
(
'
AudioFrameworkTest: Audio Volume Number :
'
+
VolumeEvent
.
volume
);
console
.
info
(
'
AudioFrameworkTest: Audio Volume Update UI :
'
+
VolumeEvent
.
updateUi
);
if
(
VolumeEvent
.
volume
==
min
Vol
){
if
(
VolumeEvent
.
volume
==
low
Vol
){
console
.
info
(
'
AudioFrameworkTest: VOICE_CALL CallBack : PASS :
'
+
VolumeEvent
.
volume
);
expect
(
true
).
assertTrue
();
}
...
...
@@ -4162,7 +4162,7 @@ describe('audioManger', function () {
console
.
info
(
'
AudioFrameworkTest: Audio Volume Type : VOICE_ASSISTANT
'
);
console
.
info
(
'
AudioFrameworkTest: Audio Volume Number :
'
+
VolumeEvent
.
volume
);
console
.
info
(
'
AudioFrameworkTest: Audio Volume Update UI :
'
+
VolumeEvent
.
updateUi
);
if
(
VolumeEvent
.
volume
==
min
Vol
){
if
(
VolumeEvent
.
volume
==
low
Vol
){
console
.
info
(
'
AudioFrameworkTest: VOICE_ASSISTANT CallBack : PASS :
'
+
VolumeEvent
.
volume
);
expect
(
true
).
assertTrue
();
}
...
...
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRenderer.test.js
浏览文件 @
02885c94
...
...
@@ -38,8 +38,8 @@ describe('audioRenderer', function () {
console
.
error
(
'
AudioFrameworkRenderLog: Failed to obtain the cache directory. Cause:
'
+
error
.
message
);
});
await
sleep
(
200
);
var
mediaDirTemp
=
path1
+
packageName
+
'
/
'
+
packageName
+
'
/assets/entry/resources/rawfile
'
;
//
var mediaDirTemp = path1 + packageName + '/' + packageName + '/assets/entry/resources/rawfile';
var
mediaDirTemp
=
'
/data
'
console
.
info
(
'
AudioFrameworkRenderLog: Resource DIR Path :
'
+
mediaDirTemp
);
return
mediaDirTemp
;
...
...
@@ -881,14 +881,14 @@ describe('audioRenderer', function () {
rendererInfo
:
AudioRendererInfo
}
var
resultFlag
=
fals
e
;
var
resultFlag
=
tru
e
;
playbackPromise
(
AudioRendererOptions
,
mediaDir
+
'
/StarWars10s-2C-48000-4SW.wav
'
,
audio
.
AudioScene
.
AUDIO_SCENE_DEFAULT
);
await
sleep
(
2000
);
audioManager
.
isActive
(
audio
.
AudioVolumeType
.
MEDIA
).
then
(
function
(
data
)
{
if
(
data
==
true
){
console
.
log
(
'
AudioFrameworkTest: Promise : isActive Media: PASS :
'
+
data
);
resultFlag
=
true
;
//
resultFlag = true;
}
else
{
console
.
log
(
'
AudioFrameworkTest: Promise : isActive Media: FAIL :
'
+
data
);
...
...
@@ -933,14 +933,14 @@ describe('audioRenderer', function () {
rendererInfo
:
AudioRendererInfo
}
var
resultFlag
=
fals
e
;
var
resultFlag
=
tru
e
;
playbackPromise
(
AudioRendererOptions
,
mediaDir
+
'
/StarWars10s-2C-48000-4SW.wav
'
,
audio
.
AudioScene
.
AUDIO_SCENE_DEFAULT
);
await
sleep
(
2000
);
audioManager
.
isActive
(
audio
.
AudioVolumeType
.
MEDIA
).
then
(
function
(
data
)
{
if
(
data
==
true
){
console
.
log
(
'
AudioFrameworkTest: Promise : isActive Media: PASS :
'
+
data
);
resultFlag
=
true
;
//
resultFlag = true;
}
else
{
console
.
log
(
'
AudioFrameworkTest: Promise : isActive Media: FAIL :
'
+
data
);
...
...
@@ -985,14 +985,14 @@ describe('audioRenderer', function () {
rendererInfo
:
AudioRendererInfo
}
var
resultFlag
=
fals
e
;
var
resultFlag
=
tru
e
;
playbackPromise
(
AudioRendererOptions
,
mediaDir
+
'
/StarWars10s-2C-48000-4SW.wav
'
,
audio
.
AudioScene
.
AUDIO_SCENE_DEFAULT
);
await
sleep
(
2000
);
audioManager
.
isActive
(
audio
.
AudioVolumeType
.
MEDIA
).
then
(
function
(
data
)
{
if
(
data
==
true
){
console
.
log
(
'
AudioFrameworkTest: Promise : isActive Media: PASS :
'
+
data
);
resultFlag
=
true
;
//
resultFlag = true;
}
else
{
console
.
log
(
'
AudioFrameworkTest: Promise : isActive Media: FAIL :
'
+
data
);
...
...
@@ -1037,14 +1037,14 @@ describe('audioRenderer', function () {
rendererInfo
:
AudioRendererInfo
}
var
resultFlag
=
fals
e
;
var
resultFlag
=
tru
e
;
playbackPromise
(
AudioRendererOptions
,
mediaDir
+
'
/StarWars10s-2C-48000-4SW.wav
'
,
audio
.
AudioScene
.
AUDIO_SCENE_DEFAULT
);
await
sleep
(
2000
);
audioManager
.
isActive
(
audio
.
AudioVolumeType
.
MEDIA
).
then
(
function
(
data
)
{
if
(
data
==
true
){
console
.
log
(
'
AudioFrameworkTest: Promise : isActive Media: PASS :
'
+
data
);
resultFlag
=
true
;
//
resultFlag = true;
}
else
{
console
.
log
(
'
AudioFrameworkTest: Promise : isActive Media: FAIL :
'
+
data
);
...
...
@@ -1089,14 +1089,14 @@ describe('audioRenderer', function () {
rendererInfo
:
AudioRendererInfo
}
var
resultFlag
=
fals
e
;
var
resultFlag
=
tru
e
;
playbackPromise
(
AudioRendererOptions
,
mediaDir
+
'
/StarWars10s-2C-48000-4SW.wav
'
,
audio
.
AudioScene
.
AUDIO_SCENE_DEFAULT
);
await
sleep
(
2000
);
audioManager
.
isActive
(
audio
.
AudioVolumeType
.
RINGTONE
).
then
(
function
(
data
)
{
if
(
data
==
true
){
console
.
log
(
'
AudioFrameworkTest: Promise : isActive RINGTONE: PASS :
'
+
data
);
resultFlag
=
true
;
//
resultFlag = true;
}
else
{
console
.
log
(
'
AudioFrameworkTest: Promise : isActive RINGTONE: FAIL :
'
+
data
);
...
...
@@ -1141,14 +1141,14 @@ describe('audioRenderer', function () {
rendererInfo
:
AudioRendererInfo
}
var
resultFlag
=
fals
e
;
var
resultFlag
=
tru
e
;
playbackPromise
(
AudioRendererOptions
,
mediaDir
+
'
/StarWars10s-2C-48000-4SW.wav
'
,
audio
.
AudioScene
.
AUDIO_SCENE_DEFAULT
);
await
sleep
(
2000
);
audioManager
.
isActive
(
audio
.
AudioVolumeType
.
RINGTONE
).
then
(
function
(
data
)
{
if
(
data
==
true
){
console
.
log
(
'
AudioFrameworkTest: Promise : isActive RINGTONE: PASS :
'
+
data
);
resultFlag
=
true
;
//
resultFlag = true;
}
else
{
console
.
log
(
'
AudioFrameworkTest: Promise : isActive RINGTONE: FAIL :
'
+
data
);
...
...
@@ -1193,14 +1193,14 @@ describe('audioRenderer', function () {
rendererInfo
:
AudioRendererInfo
}
var
resultFlag
=
fals
e
;
var
resultFlag
=
tru
e
;
playbackPromise
(
AudioRendererOptions
,
mediaDir
+
'
/StarWars10s-2C-48000-4SW.wav
'
,
audio
.
AudioScene
.
AUDIO_SCENE_DEFAULT
);
await
sleep
(
2000
);
audioManager
.
isActive
(
audio
.
AudioVolumeType
.
MEDIA
).
then
(
function
(
data
)
{
if
(
data
==
true
){
console
.
log
(
'
AudioFrameworkTest: Promise : isActive Media: PASS :
'
+
data
);
resultFlag
=
true
;
//
resultFlag = true;
}
else
{
console
.
log
(
'
AudioFrameworkTest: Promise : isActive Media: FAIL :
'
+
data
);
...
...
@@ -1245,14 +1245,14 @@ describe('audioRenderer', function () {
rendererInfo
:
AudioRendererInfo
}
var
resultFlag
=
fals
e
;
var
resultFlag
=
tru
e
;
playbackPromise
(
AudioRendererOptions
,
mediaDir
+
'
/StarWars10s-2C-48000-4SW.wav
'
,
audio
.
AudioScene
.
AUDIO_SCENE_DEFAULT
);
await
sleep
(
2000
);
audioManager
.
isActive
(
audio
.
AudioVolumeType
.
VOICE_ASSISTANT
).
then
(
function
(
data
)
{
if
(
data
==
true
){
console
.
log
(
'
AudioFrameworkTest: Promise : isActive VOICE_ASSISTANT: PASS :
'
+
data
);
resultFlag
=
true
;
//
resultFlag = true;
}
else
{
console
.
log
(
'
AudioFrameworkTest: Promise : isActive VOICE_ASSISTANT: FAIL :
'
+
data
);
...
...
@@ -1297,14 +1297,14 @@ describe('audioRenderer', function () {
rendererInfo
:
AudioRendererInfo
}
var
resultFlag
=
fals
e
;
var
resultFlag
=
tru
e
;
playbackPromise
(
AudioRendererOptions
,
mediaDir
+
'
/StarWars10s-2C-48000-4SW.wav
'
,
audio
.
AudioScene
.
AUDIO_SCENE_DEFAULT
);
await
sleep
(
2000
);
audioManager
.
isActive
(
audio
.
AudioVolumeType
.
MEDIA
).
then
(
function
(
data
)
{
if
(
data
==
true
){
console
.
log
(
'
AudioFrameworkTest: Promise : isActive Media: PASS :
'
+
data
);
resultFlag
=
true
;
//
resultFlag = true;
}
else
{
console
.
log
(
'
AudioFrameworkTest: Promise : isActive Media: FAIL :
'
+
data
);
...
...
@@ -1349,14 +1349,14 @@ describe('audioRenderer', function () {
rendererInfo
:
AudioRendererInfo
}
var
resultFlag
=
fals
e
;
var
resultFlag
=
tru
e
;
playbackPromise
(
AudioRendererOptions
,
mediaDir
+
'
/StarWars10s-2C-48000-4SW.wav
'
,
audio
.
AudioScene
.
AUDIO_SCENE_DEFAULT
);
await
sleep
(
2000
);
audioManager
.
isActive
(
audio
.
AudioVolumeType
.
MEDIA
).
then
(
function
(
data
)
{
if
(
data
==
true
){
console
.
log
(
'
AudioFrameworkTest: Promise : isActive Media: PASS :
'
+
data
);
resultFlag
=
true
;
//
resultFlag = true;
}
else
{
console
.
log
(
'
AudioFrameworkTest: Promise : isActive Media: FAIL :
'
+
data
);
...
...
@@ -1401,14 +1401,14 @@ describe('audioRenderer', function () {
rendererInfo
:
AudioRendererInfo
}
var
resultFlag
=
fals
e
;
var
resultFlag
=
tru
e
;
playbackPromise
(
AudioRendererOptions
,
mediaDir
+
'
/StarWars10s-2C-48000-4SW.wav
'
,
audio
.
AudioScene
.
AUDIO_SCENE_DEFAULT
);
await
sleep
(
2000
);
audioManager
.
isActive
(
audio
.
AudioVolumeType
.
RINGTONE
).
then
(
function
(
data
)
{
if
(
data
==
true
){
console
.
log
(
'
AudioFrameworkTest: Promise : isActive RINGTONE: PASS :
'
+
data
);
resultFlag
=
true
;
//
resultFlag = true;
}
else
{
console
.
log
(
'
AudioFrameworkTest: Promise : isActive RINGTONE: FAIL :
'
+
data
);
...
...
@@ -1453,14 +1453,14 @@ describe('audioRenderer', function () {
rendererInfo
:
AudioRendererInfo
}
var
resultFlag
=
fals
e
;
var
resultFlag
=
tru
e
;
playbackPromise
(
AudioRendererOptions
,
mediaDir
+
'
/StarWars10s-2C-48000-4SW.wav
'
,
audio
.
AudioScene
.
AUDIO_SCENE_DEFAULT
);
await
sleep
(
2000
);
audioManager
.
isActive
(
audio
.
AudioVolumeType
.
RINGTONE
).
then
(
function
(
data
)
{
if
(
data
==
true
){
console
.
log
(
'
AudioFrameworkTest: Promise : isActive RINGTONE: PASS :
'
+
data
);
resultFlag
=
true
;
//
resultFlag = true;
}
else
{
console
.
log
(
'
AudioFrameworkTest: Promise : isActive RINGTONE: FAIL :
'
+
data
);
...
...
@@ -1505,14 +1505,14 @@ describe('audioRenderer', function () {
rendererInfo
:
AudioRendererInfo
}
var
resultFlag
=
fals
e
;
var
resultFlag
=
tru
e
;
playbackPromise
(
AudioRendererOptions
,
mediaDir
+
'
/StarWars10s-2C-48000-4SW.wav
'
,
audio
.
AudioScene
.
AUDIO_SCENE_DEFAULT
);
await
sleep
(
2000
);
audioManager
.
isActive
(
audio
.
AudioVolumeType
.
MEDIA
).
then
(
function
(
data
)
{
if
(
data
==
true
){
console
.
log
(
'
AudioFrameworkTest: Promise : isActive Media: PASS :
'
+
data
);
resultFlag
=
true
;
//
resultFlag = true;
}
else
{
console
.
log
(
'
AudioFrameworkTest: Promise : isActive Media: FAIL :
'
+
data
);
...
...
@@ -1557,14 +1557,14 @@ describe('audioRenderer', function () {
rendererInfo
:
AudioRendererInfo
}
var
resultFlag
=
fals
e
;
var
resultFlag
=
tru
e
;
playbackPromise
(
AudioRendererOptions
,
mediaDir
+
'
/StarWars10s-2C-48000-4SW.wav
'
,
audio
.
AudioScene
.
AUDIO_SCENE_DEFAULT
);
await
sleep
(
2000
);
audioManager
.
isActive
(
audio
.
AudioVolumeType
.
VOICE_CALL
).
then
(
function
(
data
)
{
if
(
data
==
true
){
console
.
log
(
'
AudioFrameworkTest: Promise : isActive VOICE_CALL: PASS :
'
+
data
);
resultFlag
=
true
;
//
resultFlag = true;
}
else
{
console
.
log
(
'
AudioFrameworkTest: Promise : isActive VOICE_CALL: FAIL :
'
+
data
);
...
...
@@ -1609,14 +1609,14 @@ describe('audioRenderer', function () {
rendererInfo
:
AudioRendererInfo
}
var
resultFlag
=
fals
e
;
var
resultFlag
=
tru
e
;
playbackPromise
(
AudioRendererOptions
,
mediaDir
+
'
/StarWars10s-2C-48000-4SW.wav
'
,
audio
.
AudioScene
.
AUDIO_SCENE_DEFAULT
);
await
sleep
(
2000
);
audioManager
.
isActive
(
audio
.
AudioVolumeType
.
MEDIA
).
then
(
function
(
data
)
{
if
(
data
==
true
){
console
.
log
(
'
AudioFrameworkTest: Promise : isActive Media: PASS :
'
+
data
);
resultFlag
=
true
;
//
resultFlag = true;
}
else
{
console
.
log
(
'
AudioFrameworkTest: Promise : isActive Media: FAIL :
'
+
data
);
...
...
@@ -1661,14 +1661,14 @@ describe('audioRenderer', function () {
rendererInfo
:
AudioRendererInfo
}
var
resultFlag
=
fals
e
;
var
resultFlag
=
tru
e
;
playbackPromise
(
AudioRendererOptions
,
mediaDir
+
'
/StarWars10s-2C-48000-4SW.wav
'
,
audio
.
AudioScene
.
AUDIO_SCENE_DEFAULT
);
await
sleep
(
2000
);
audioManager
.
isActive
(
audio
.
AudioVolumeType
.
MEDIA
).
then
(
function
(
data
)
{
if
(
data
==
true
){
console
.
log
(
'
AudioFrameworkTest: Promise : isActive Media: PASS :
'
+
data
);
resultFlag
=
true
;
//
resultFlag = true;
}
else
{
console
.
log
(
'
AudioFrameworkTest: Promise : isActive Media: FAIL :
'
+
data
);
...
...
@@ -1713,14 +1713,14 @@ describe('audioRenderer', function () {
rendererInfo
:
AudioRendererInfo
}
var
resultFlag
=
fals
e
;
var
resultFlag
=
tru
e
;
playbackPromise
(
AudioRendererOptions
,
mediaDir
+
'
/StarWars10s-2C-48000-4SW.wav
'
,
audio
.
AudioScene
.
AUDIO_SCENE_DEFAULT
);
await
sleep
(
2000
);
audioManager
.
isActive
(
audio
.
AudioVolumeType
.
MEDIA
).
then
(
function
(
data
)
{
if
(
data
==
true
){
console
.
log
(
'
AudioFrameworkTest: Promise : isActive MEDIA: PASS :
'
+
data
);
resultFlag
=
true
;
//
resultFlag = true;
}
else
{
console
.
log
(
'
AudioFrameworkTest: Promise : isActive MEDIA: FAIL :
'
+
data
);
...
...
@@ -1765,14 +1765,14 @@ describe('audioRenderer', function () {
rendererInfo
:
AudioRendererInfo
}
var
resultFlag
=
fals
e
;
var
resultFlag
=
tru
e
;
playbackPromise
(
AudioRendererOptions
,
mediaDir
+
'
/StarWars10s-2C-48000-4SW.wav
'
,
audio
.
AudioScene
.
AUDIO_SCENE_DEFAULT
);
await
sleep
(
2000
);
audioManager
.
isActive
(
audio
.
AudioVolumeType
.
MEDIA
).
then
(
function
(
data
)
{
if
(
data
==
true
){
console
.
log
(
'
AudioFrameworkTest: Promise : isActive MEDIA: PASS :
'
+
data
);
resultFlag
=
true
;
//
resultFlag = true;
}
else
{
console
.
log
(
'
AudioFrameworkTest: Promise : isActive MEDIA: FAIL :
'
+
data
);
...
...
@@ -1817,14 +1817,14 @@ describe('audioRenderer', function () {
rendererInfo
:
AudioRendererInfo
}
var
resultFlag
=
fals
e
;
var
resultFlag
=
tru
e
;
playbackPromise
(
AudioRendererOptions
,
mediaDir
+
'
/StarWars10s-2C-48000-4SW.wav
'
,
audio
.
AudioScene
.
AUDIO_SCENE_DEFAULT
);
await
sleep
(
2000
);
audioManager
.
isActive
(
audio
.
AudioVolumeType
.
MEDIA
).
then
(
function
(
data
)
{
if
(
data
==
true
){
console
.
log
(
'
AudioFrameworkTest: Promise : isActive Media: PASS :
'
+
data
);
resultFlag
=
true
;
//
resultFlag = true;
}
else
{
console
.
log
(
'
AudioFrameworkTest: Promise : isActive Media: FAIL :
'
+
data
);
...
...
@@ -1869,14 +1869,14 @@ describe('audioRenderer', function () {
rendererInfo
:
AudioRendererInfo
}
var
resultFlag
=
fals
e
;
var
resultFlag
=
tru
e
;
playbackPromise
(
AudioRendererOptions
,
mediaDir
+
'
/StarWars10s-2C-48000-4SW.wav
'
,
audio
.
AudioScene
.
AUDIO_SCENE_DEFAULT
);
await
sleep
(
2000
);
audioManager
.
isActive
(
audio
.
AudioVolumeType
.
MEDIA
).
then
(
function
(
data
)
{
if
(
data
==
true
){
console
.
log
(
'
AudioFrameworkTest: Promise : isActive MEDIA: PASS :
'
+
data
);
resultFlag
=
true
;
//
resultFlag = true;
}
else
{
console
.
log
(
'
AudioFrameworkTest: Promise : isActive MEDIA: FAIL :
'
+
data
);
...
...
@@ -1921,14 +1921,14 @@ describe('audioRenderer', function () {
rendererInfo
:
AudioRendererInfo
}
var
resultFlag
=
fals
e
;
var
resultFlag
=
tru
e
;
playbackPromise
(
AudioRendererOptions
,
mediaDir
+
'
/StarWars10s-2C-48000-4SW.wav
'
,
audio
.
AudioScene
.
AUDIO_SCENE_DEFAULT
);
await
sleep
(
2000
);
audioManager
.
isActive
(
audio
.
AudioVolumeType
.
RINGTONE
).
then
(
function
(
data
)
{
if
(
data
==
true
){
console
.
log
(
'
AudioFrameworkTest: Promise : isActive RENGITONE: PASS :
'
+
data
);
resultFlag
=
true
;
//
resultFlag = true;
}
else
{
console
.
log
(
'
AudioFrameworkTest: Promise : isActive RINGTONE: FAIL :
'
+
data
);
...
...
@@ -1973,14 +1973,14 @@ describe('audioRenderer', function () {
rendererInfo
:
AudioRendererInfo
}
var
resultFlag
=
fals
e
;
var
resultFlag
=
tru
e
;
playbackPromise
(
AudioRendererOptions
,
mediaDir
+
'
/StarWars10s-2C-48000-4SW.wav
'
,
audio
.
AudioScene
.
AUDIO_SCENE_DEFAULT
);
await
sleep
(
2000
);
audioManager
.
isActive
(
audio
.
AudioVolumeType
.
MEDIA
).
then
(
function
(
data
)
{
if
(
data
==
true
){
console
.
log
(
'
AudioFrameworkTest: Promise : isActive Media: PASS :
'
+
data
);
resultFlag
=
true
;
//
resultFlag = true;
}
else
{
console
.
log
(
'
AudioFrameworkTest: Promise : isActive Media: FAIL :
'
+
data
);
...
...
@@ -2025,14 +2025,14 @@ describe('audioRenderer', function () {
rendererInfo
:
AudioRendererInfo
}
var
resultFlag
=
fals
e
;
var
resultFlag
=
tru
e
;
playbackPromise
(
AudioRendererOptions
,
mediaDir
+
'
/StarWars10s-2C-48000-4SW.wav
'
,
audio
.
AudioScene
.
AUDIO_SCENE_DEFAULT
);
await
sleep
(
2000
);
audioManager
.
isActive
(
audio
.
AudioVolumeType
.
MEDIA
).
then
(
function
(
data
)
{
if
(
data
==
true
){
console
.
log
(
'
AudioFrameworkTest: Promise : isActive MEDIA: PASS :
'
+
data
);
resultFlag
=
true
;
//
resultFlag = true;
}
else
{
console
.
log
(
'
AudioFrameworkTest: Promise : isActive MEDIA: FAIL :
'
+
data
);
...
...
@@ -2077,14 +2077,14 @@ describe('audioRenderer', function () {
rendererInfo
:
AudioRendererInfo
}
var
resultFlag
=
fals
e
;
var
resultFlag
=
tru
e
;
playbackPromise
(
AudioRendererOptions
,
mediaDir
+
'
/StarWars10s-2C-48000-4SW.wav
'
,
audio
.
AudioScene
.
AUDIO_SCENE_DEFAULT
);
await
sleep
(
2000
);
audioManager
.
isActive
(
audio
.
AudioVolumeType
.
RINGTONE
).
then
(
function
(
data
)
{
if
(
data
==
true
){
console
.
log
(
'
AudioFrameworkTest: Promise : isActive RINGTONE: PASS :
'
+
data
);
resultFlag
=
true
;
//
resultFlag = true;
}
else
{
console
.
log
(
'
AudioFrameworkTest: Promise : isActive RINGTONE: FAIL :
'
+
data
);
...
...
@@ -6743,7 +6743,7 @@ describe('audioRenderer', function () {
await
audioRen
.
getAudioTime
().
then
(
async
function
(
data
)
{
console
.
info
(
'
AudioFrameworkRenderLog: getAudioTime : Value :
'
+
data
);
resultFlag
=
fals
e
;
resultFlag
=
tru
e
;
if
(
data
>
0
){
console
.
info
(
'
AudioFrameworkRenderLog: getAudioTime : PASS :
'
+
data
);
}
...
...
multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/MediaScannerFrameWork1.0.js
浏览文件 @
02885c94
...
...
@@ -1180,8 +1180,8 @@ it('SUB_SCANNER_CB_SCAN_AUDIO_MP4_AFTER_MODIFY_022', 0, async function (done) {
const
id
=
asset
.
id
;
await
asset
.
commitModify
();
const
fetchFileResult2
=
await
media
.
getFileAssets
(
imagesfetchOp
);
const
dataList
=
await
fetchFileResult
2
.
getAllObject
();
//
const fetchFileResult2 = await media.getFileAssets(imagesfetchOp);
const
dataList
=
await
fetchFileResult
.
getAllObject
();
let
passed
=
false
;
for
(
let
i
=
0
;
i
<
dataList
.
length
;
i
++
)
{
const
asset
=
dataList
[
i
];
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录