From fc0d79873007d296240643090c0eca48726ba4f8 Mon Sep 17 00:00:00 2001 From: 18742514821 Date: Mon, 31 Oct 2022 12:15:53 +0800 Subject: [PATCH] Signed-off-by: 18742514821 --- .../audio_js_standard/AudioCapturer/src/main/config.json | 6 +++++- .../AudioCapturer/src/main/js/test/AudioCapturer.test.js | 3 ++- .../AudioCapturerChangeInfo/src/main/config.json | 7 ++++++- .../src/main/js/test/AudioCapturerChangeInfo.test.js | 3 ++- .../audio_js_standard/AudioTonePlayer/src/main/config.json | 6 +++++- .../audio_js_standard/audioInterrupt/src/main/config.json | 6 +++++- .../audio_js_standard/audioManager/src/main/config.json | 6 +++++- .../audioManager/src/main/js/test/AudioFramework.test.js | 3 ++- .../audio/audio_js_standard/audioVoip/src/main/config.json | 6 +++++- .../audioVoip/src/main/js/test/AudioVOIP.test.js | 3 ++- 10 files changed, 39 insertions(+), 10 deletions(-) diff --git a/multimedia/audio/audio_js_standard/AudioCapturer/src/main/config.json b/multimedia/audio/audio_js_standard/AudioCapturer/src/main/config.json index a9dc389bc..1ae1635d2 100644 --- a/multimedia/audio/audio_js_standard/AudioCapturer/src/main/config.json +++ b/multimedia/audio/audio_js_standard/AudioCapturer/src/main/config.json @@ -80,7 +80,11 @@ { "name": "ohos.permission.MICROPHONE", "reason": "use ohos.permission.MICROPHONE" - } + }, + { + "name": "ohos.permission.MANAGE_AUDIO_CONFIG", + "reason": "use ohos.permission.MANAGE_AUDIO_CONFIG" + } ] } diff --git a/multimedia/audio/audio_js_standard/AudioCapturer/src/main/js/test/AudioCapturer.test.js b/multimedia/audio/audio_js_standard/AudioCapturer/src/main/js/test/AudioCapturer.test.js index db66d5974..531482651 100644 --- a/multimedia/audio/audio_js_standard/AudioCapturer/src/main/js/test/AudioCapturer.test.js +++ b/multimedia/audio/audio_js_standard/AudioCapturer/src/main/js/test/AudioCapturer.test.js @@ -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); diff --git a/multimedia/audio/audio_js_standard/AudioCapturerChangeInfo/src/main/config.json b/multimedia/audio/audio_js_standard/AudioCapturerChangeInfo/src/main/config.json index f4ecf85cb..25008b31b 100644 --- a/multimedia/audio/audio_js_standard/AudioCapturerChangeInfo/src/main/config.json +++ b/multimedia/audio/audio_js_standard/AudioCapturerChangeInfo/src/main/config.json @@ -80,7 +80,12 @@ { "name": "ohos.permission.MICROPHONE", "reason": "use ohos.permission.MICROPHONE" - } + }, + { + "name": "ohos.permission.MANAGE_AUDIO_CONFIG", + "reason": "use ohos.permission.MANAGE_AUDIO_CONFIG" + } + ] } } \ No newline at end of file diff --git a/multimedia/audio/audio_js_standard/AudioCapturerChangeInfo/src/main/js/test/AudioCapturerChangeInfo.test.js b/multimedia/audio/audio_js_standard/AudioCapturerChangeInfo/src/main/js/test/AudioCapturerChangeInfo.test.js index d92214059..9322d233b 100644 --- a/multimedia/audio/audio_js_standard/AudioCapturerChangeInfo/src/main/js/test/AudioCapturerChangeInfo.test.js +++ b/multimedia/audio/audio_js_standard/AudioCapturerChangeInfo/src/main/js/test/AudioCapturerChangeInfo.test.js @@ -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); diff --git a/multimedia/audio/audio_js_standard/AudioTonePlayer/src/main/config.json b/multimedia/audio/audio_js_standard/AudioTonePlayer/src/main/config.json index e252224e0..49a378fbb 100644 --- a/multimedia/audio/audio_js_standard/AudioTonePlayer/src/main/config.json +++ b/multimedia/audio/audio_js_standard/AudioTonePlayer/src/main/config.json @@ -79,7 +79,11 @@ { "name": "ohos.permission.MICROPHONE", "reason": "use ohos.permission.MICROPHONE" - } + }, + { + "name": "ohos.permission.MANAGE_AUDIO_CONFIG", + "reason": "use ohos.permission.MANAGE_AUDIO_CONFIG" + } ] } } \ No newline at end of file diff --git a/multimedia/audio/audio_js_standard/audioInterrupt/src/main/config.json b/multimedia/audio/audio_js_standard/audioInterrupt/src/main/config.json index 38e03d17c..402e35bb4 100644 --- a/multimedia/audio/audio_js_standard/audioInterrupt/src/main/config.json +++ b/multimedia/audio/audio_js_standard/audioInterrupt/src/main/config.json @@ -110,7 +110,11 @@ { "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" + } ] } } \ No newline at end of file diff --git a/multimedia/audio/audio_js_standard/audioManager/src/main/config.json b/multimedia/audio/audio_js_standard/audioManager/src/main/config.json index afdbfee30..5b7936586 100755 --- a/multimedia/audio/audio_js_standard/audioManager/src/main/config.json +++ b/multimedia/audio/audio_js_standard/audioManager/src/main/config.json @@ -89,7 +89,11 @@ { "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" + } ] } } \ No newline at end of file diff --git a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js index 835f92588..64334f09d 100755 --- a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js +++ b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js @@ -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); diff --git a/multimedia/audio/audio_js_standard/audioVoip/src/main/config.json b/multimedia/audio/audio_js_standard/audioVoip/src/main/config.json index d0c39bfcc..d10145138 100644 --- a/multimedia/audio/audio_js_standard/audioVoip/src/main/config.json +++ b/multimedia/audio/audio_js_standard/audioVoip/src/main/config.json @@ -80,7 +80,11 @@ { "name": "ohos.permission.MICROPHONE", "reason": "use ohos.permission.MICROPHONE" - } + }, + { + "name": "ohos.permission.MANAGE_AUDIO_CONFIG", + "reason": "use ohos.permission.MANAGE_AUDIO_CONFIG" + } ] } } \ No newline at end of file diff --git a/multimedia/audio/audio_js_standard/audioVoip/src/main/js/test/AudioVOIP.test.js b/multimedia/audio/audio_js_standard/audioVoip/src/main/js/test/AudioVOIP.test.js index aa815af90..0105d91da 100644 --- a/multimedia/audio/audio_js_standard/audioVoip/src/main/js/test/AudioVOIP.test.js +++ b/multimedia/audio/audio_js_standard/audioVoip/src/main/js/test/AudioVOIP.test.js @@ -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); -- GitLab