提交 bafbde21 编写于 作者: L lwx1121892

<multimedia>

Signed-off-by: Nlwx1121892 <liuxueqi3@huawei.com>
上级 c18608da
......@@ -80,6 +80,10 @@
{
"name": "ohos.permission.MICROPHONE",
"reason": "use ohos.permission.MICROPHONE"
},
{
"name": "ohos.permission.MANAGE_AUDIO_CONFIG",
"reason": "use ohos.permission.MANAGE_AUDIO_CONFIG"
}
]
......
......@@ -420,7 +420,8 @@ describe('audioCapturer', function () {
beforeAll(async function () {
console.info(`${Tag} AudioFrameworkTest: beforeAll: Prerequisites at the test suite level`);
let permissionName1 = 'ohos.permission.MICROPHONE';
let permissionNameList = [permissionName1];
let permissionName2 = 'ohos.permission.MANAGE_AUDIO_CONFIG';
let permissionNameList = [permissionName1,permissionName2];
let appName = 'ohos.acts.multimedia.audio.audiocapturer';
await audioTestBase.applyPermission(appName, permissionNameList);
await sleep(100);
......
......@@ -80,6 +80,10 @@
{
"name": "ohos.permission.MICROPHONE",
"reason": "use ohos.permission.MICROPHONE"
},
{
"name": "ohos.permission.MANAGE_AUDIO_CONFIG",
"reason": "use ohos.permission.MANAGE_AUDIO_CONFIG"
}
]
}
......
......@@ -28,7 +28,8 @@ describe('audioCapturerChange', function () {
beforeAll(async function () {
console.info(`AudioFrameworkTest: beforeAll: Prerequisites at the test suite level`);
let permissionName1 = 'ohos.permission.MICROPHONE';
let permissionNameList = [permissionName1];
let permissionName2 = 'ohos.permission.MANAGE_AUDIO_CONFIG';
let permissionNameList = [permissionName1,permissionName2];
let appName = 'ohos.acts.multimedia.audio.audiocapturerchangeInfo';
await audioTestBase.applyPermission(appName, permissionNameList);
await sleep(100);
......
......@@ -80,6 +80,10 @@
{
"name": "ohos.permission.MICROPHONE",
"reason": "use ohos.permission.MICROPHONE"
},
{
"name": "ohos.permission.MANAGE_AUDIO_CONFIG",
"reason": "use ohos.permission.MANAGE_AUDIO_CONFIG"
}
]
}
......
......@@ -89,6 +89,10 @@
{
"name": "ohos.permission.MODIFY_AUDIO_SETTINGS",
"reason": "use ohos.permission.MODIFY_AUDIO_SETTINGS"
},
{
"name": "ohos.permission.MANAGE_AUDIO_CONFIG",
"reason": "use ohos.permission.MANAGE_AUDIO_CONFIG"
}
]
}
......
......@@ -100,7 +100,8 @@ describe('audioFramework', function () {
let permissionName1 = 'ohos.permission.MICROPHONE';
let permissionName2 = 'ohos.permission.ACCESS_NOTIFICATION_POLICY';
let permissionName3 = 'ohos.permission.MODIFY_AUDIO_SETTINGS';
let permissionNameList = [permissionName1, permissionName2, permissionName3];
let permissionName4 = 'ohos.permission.MANAGE_AUDIO_CONFIG';
let permissionNameList = [permissionName1, permissionName2, permissionName3,permissionName4];
let appName = 'ohos.acts.multimedia.audio.audiomanager';
await audioTestBase.applyPermission(appName, permissionNameList);
await sleep(100);
......
......@@ -80,6 +80,10 @@
{
"name": "ohos.permission.MICROPHONE",
"reason": "use ohos.permission.MICROPHONE"
},
{
"name": "ohos.permission.MANAGE_AUDIO_CONFIG",
"reason": "use ohos.permission.MANAGE_AUDIO_CONFIG"
}
]
}
......
......@@ -35,7 +35,8 @@ describe('audioVoip', function () {
beforeAll(async function () {
console.info(`AudioFrameworkTest: beforeAll: Prerequisites at the test suite level`);
let permissionName1 = 'ohos.permission.MICROPHONE';
let permissionNameList = [permissionName1];
let permissionName2 = 'ohos.permission.MANAGE_AUDIO_CONFIG';
let permissionNameList = [permissionName1,permissionName2];
let appName = 'ohos.acts.multimedia.audio.audiovoip';
await audioTestBase.applyPermission(appName, permissionNameList);
await sleep(100);
......
......@@ -42,7 +42,9 @@
"hilog -Q pidoff",
"hilog -b D"
],
"teardown-command": []
"teardown-command":[
"hilog -b X"
]
}
]
}
\ No newline at end of file
......@@ -41,7 +41,9 @@
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.Colorspace/haps/entry/files/DisplayP3.png"
],
"teardown-command": []
"teardown-command":[
"hilog -b X"
]
}
]
}
\ No newline at end of file
......@@ -34,6 +34,7 @@
"hilog -b D"
],
"teardown-command":[
"hilog -b X"
]
}
]
......
......@@ -43,7 +43,9 @@
"hilog -Q pidoff",
"hilog -b D"
],
"teardown-command": []
"teardown-command":[
"hilog -b X"
]
}
]
}
\ No newline at end of file
......@@ -39,7 +39,9 @@
"hilog -Q pidoff",
"hilog -b D"
],
"teardown-command": []
"teardown-command":[
"hilog -b X"
]
}
]
......
......@@ -40,7 +40,8 @@
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.GetImageProperty/haps/entry/files/test_exif.jpg"
],
"teardown-command": [
"rm -rf /data/app/el2/100/base/ohos.acts.multimedia.image.GetImageProperty/haps/entry/files/*"
"rm -rf /data/app/el2/100/base/ohos.acts.multimedia.image.GetImageProperty/haps/entry/files/*",
"hilog -b X"
]
}
]
......
......@@ -40,7 +40,8 @@
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.ModifyProperty/haps/entry/files/test_exif.jpg"
],
"teardown-command": [
"rm -rf /data/app/el2/100/base/ohos.acts.multimedia.image.ModifyProperty/haps/entry/files/*"
"rm -rf /data/app/el2/100/base/ohos.acts.multimedia.image.ModifyProperty/haps/entry/files/*",
"hilog -b X"
]
}
]
......
......@@ -37,7 +37,9 @@
"hilog -Q pidoff",
"hilog -b D"
],
"teardown-command": []
"teardown-command": [
"hilog -b X"
]
}
]
}
\ No newline at end of file
......@@ -22,7 +22,9 @@
"hilog -Q pidoff",
"hilog -b D"
],
"teardown-command": []
"teardown-command": [
"hilog -b X"
]
}
]
}
\ No newline at end of file
......@@ -34,6 +34,7 @@
"hilog -b D"
],
"teardown-command":[
"hilog -b X"
]
}
]
......
......@@ -48,7 +48,8 @@
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.Raw/haps/entry/files/*"
],
"teardown-command": [
"rm -rf /data/app/el2/100/base/ohos.acts.multimedia.image.Raw/*"
"rm -rf /data/app/el2/100/base/ohos.acts.multimedia.image.Raw/*",
"hilog -b X"
]
}
]
......
......@@ -22,7 +22,9 @@
"hilog -Q pidoff",
"hilog -b D"
],
"teardown-command": []
"teardown-command": [
"hilog -b X"
]
}
]
}
\ No newline at end of file
......@@ -37,7 +37,9 @@
"hilog -Q pidoff",
"hilog -b D"
],
"teardown-command": []
"teardown-command": [
"hilog -b X"
]
}
]
}
\ No newline at end of file
......@@ -22,7 +22,9 @@
"hilog -Q pidoff",
"hilog -b D"
],
"teardown-command": []
"teardown-command": [
"hilog -b X"
]
}
]
}
\ No newline at end of file
......@@ -21,7 +21,9 @@
"hilog -Q pidoff",
"hilog -b D"
],
"teardown-command": []
"teardown-command":[
"hilog -b X"
]
}
]
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册