diff --git a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCall.test.js b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCall.test.js index a7c09b429126316418caf3cd14136e4d0055d8d2..31fd74a1fdfdf0ea6c8952afaf3d57f816987ece 100644 --- a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCall.test.js +++ b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCall.test.js @@ -348,30 +348,26 @@ describe('audioCall', function () { } - - /* * - * @tc.number : SUB_AUDIO_VOIP_Play_001 - * @tc.name : - * @tc.desc : - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_CALL_Play_001', 0, async function (done) { - + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_CALL_PlAY_0100 + *@tc.name + *@tc.desc + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_CALL_PlAY_0100', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_1, sampleFormat: audio.AudioSampleFormat.SAMPLE_FORMAT_S16LE, encodingType: audio.AudioEncodingType.ENCODING_TYPE_RAW } - var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, rendererFlags: 0 } - var AudioRendererOptions = { streamInfo: AudioStreamInfo, rendererInfo: AudioRendererInfo @@ -386,16 +382,15 @@ describe('audioCall', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_001 - * @tc.name : - * @tc.desc : - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_CALL_Rec_001', 0, async function (done) { - + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_CALL_REC_0100 + *@tc.name + *@tc.desc + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_CALL_REC_0100', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_2, @@ -421,17 +416,15 @@ describe('audioCall', function () { done(); }) - - /* * - * @tc.number : SUB_AUDIO_VOIP_RecPlay_001 - * @tc.name : - * @tc.desc : - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_CALL_RecPlay_001', 0, async function (done) { - + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_CALL_RECPLAY_0100 + *@tc.name + *@tc.desc + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_CALL_RECPLAY_0100', 2, async function (done) { var AudioStreamInfoCap = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_2, @@ -485,5 +478,4 @@ describe('audioCall', function () { await closeFileDescriptor(readpath); done(); }) - }) \ No newline at end of file diff --git a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCapturer.test.js b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCapturer.test.js index f2c753ad08a19fbe91bf2fc3be958ffc69ef26da..e2f4d8afeb6bb490a71ab3bf1741f72290aeef32 100644 --- a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCapturer.test.js +++ b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCapturer.test.js @@ -344,15 +344,15 @@ describe('audioCapturer', function () { return resultFlag; } - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_PREPARED_STATE_001 - * @tc.name : AudioCapturer-Check-STATE-PREPARED - * @tc.desc : AudioCapturer with state prepared - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_PREPARED_STATE_001', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_PREPARED_STATE_0100 + *@tc.name + *@tc.desc + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_PREPARED_STATE_0100', 1, async function (done) { var stateFlag; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -392,18 +392,17 @@ describe('audioCapturer', function () { } } }); - }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_PREPARED_STATE_ENUM_002 - * @tc.name : AudioCapturer-Check-STATE-PREPARED-ENUM - * @tc.desc : AudioCapturer with state prepared - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_PREPARED_STATE_ENUM_002', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_PREPARED_STATE_EUNM_0100 + *@tc.name : AudioCapturer-Check-STATE-PREPARED-ENUM + *@tc.desc : AudioCapturer with state prepared + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 0 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_PREPARED_STATE_EUNM_0100', 0, async function (done) { var stateFlag; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -440,15 +439,15 @@ describe('audioCapturer', function () { }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_RUNNING_STATE_003 - * @tc.name : AudioCapturer-Check-STATE-RUNNING - * @tc.desc : AudioCapturer with state running - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_RUNNING_STATE_003', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_RUNNING_STATE_0100 + *@tc.name : AudioCapturer-Check-STATE-RUNNING + *@tc.desc : AudioCapturer with state running + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_RUNNING_STATE_0100', 1, async function (done) { var stateFlag; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -511,15 +510,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_RUNNING_STATE_EUNM_004 - * @tc.name : AudioCapturer-Check-STATE-RUNNING-ENUM - * @tc.desc : AudioCapturer with state running - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_RUNNING_STATE_EUNM_004', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_RUNNING_STATE_EUNM_0100 + *@tc.name : AudioCapturer-Check-STATE-RUNNING-ENUM + *@tc.desc : AudioCapturer with state running + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_RUNNING_STATE_EUNM_0100', 1, async function (done) { var stateFlag; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -583,15 +582,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_STOPPED_STATE_005 - * @tc.name : AudioCapturer-Check-STATE-STOPPED - * @tc.desc : AudioCapturer with state stopped - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_STOPPED_STATE_005', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_STOPPED_STATE_0100 + *@tc.name : AudioCapturer-Check-STATE-STOPPED + *@tc.desc : AudioCapturer with state stopped + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_STOPPED_STATE_0100', 1, async function (done) { var stateFlag; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -671,15 +670,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_STOPPED_STATE_ENUM_006 - * @tc.name : AudioCapturer-Check-STATE-STOPPED-ENUM - * @tc.desc : AudioCapturer with state stopped - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_STOPPED_STATE_ENUM_006', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_STOPPED_STATE_EUNM_0100 + *@tc.name : AudioCapturer-Check-STATE-STOPPED-ENUM + *@tc.desc : AudioCapturer with state stopped + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_STOPPED_STATE_EUNM_0100', 1, async function (done) { var stateFlag; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -754,15 +753,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_RELEASED_STATE_007 - * @tc.name : AudioCapturer-Check-STATE-RELEASED - * @tc.desc : AudioCapturer with state released - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_RELEASED_STATE_007', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_RELEASED_STATE_0100 + *@tc.name : AudioCapturer-Check-STATE-RELEASED + *@tc.desc : AudioCapturer with state released + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_RELEASED_STATE_0100', 2, async function (done) { var stateFlag; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -842,15 +841,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_RELEASED_STATE_ENUM_008 - * @tc.name : AudioCapturer-Check-STATE-RELEASED - * @tc.desc : AudioCapturer with state released - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_RELEASED_STATE_ENUM_008', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_RELEASED_STATE_EUNM_0100 + *@tc.name : AudioCapturer-Check-STATE-RELEASED + *@tc.desc : AudioCapturer with state released + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_RELEASED_STATE_EUNM_0100', 1, async function (done) { var stateFlag; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -931,15 +930,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_GET_BUFFER_SIZE_009 - * @tc.name : AudioCapturer-get_buffer_size - * @tc.desc : AudioCapturer with state stopped - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_GET_BUFFER_SIZE_009', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_GET_BUFFER_SIZE_0100 + *@tc.name : AudioCapturer-get_buffer_size + *@tc.desc : AudioCapturer with state stopped + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_GET_BUFFER_SIZE_0100', 1, async function (done) { var stateFlag; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -1016,15 +1015,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_010 - * @tc.name : AudioCapturer-Check-READ_BUFFER - * @tc.desc : AudioCapturer with read buffer - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_010', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_0100 + *@tc.name : AudioCapturer-Check-READ_BUFFER + *@tc.desc : AudioCapturer with read buffer + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_0100', 1, async function (done) { var stateFlag; await getFd("capture_CB_js-44100-2C-S16LE-checkcbreadbuffer.pcm"); var AudioStreamInfo = { @@ -1092,7 +1091,7 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - await new Promise((resolve,reject)=>{ + await new Promise((resolve, reject) => { audioCapCallBack.read(bufferSize, true, async (err, buffer) => { if (err) { console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); @@ -1111,7 +1110,7 @@ describe('audioCapturer', function () { } }); }) - + numBuffersToCapture--; } await sleep(1000); @@ -1136,15 +1135,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_PROMOISE_PREPARED_STATE_011 - * @tc.name : AudioCapturer-Check-STATE-PREPARED - * @tc.desc : AudioCapturer with state prepared - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_PROMOISE_PREPARED_STATE_011', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMOISE_PREPARED_STATE_0100 + *@tc.name : AudioCapturer-Check-STATE-PREPARED + *@tc.desc : AudioCapturer with state prepared + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 0 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMOISE_PREPARED_STATE_0100', 0, async function (done) { var stateFlag; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -1179,15 +1178,15 @@ describe('audioCapturer', function () { } }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_PROMOISE_PREPARED_STATE_ENUM_012 - * @tc.name : AudioCapturer-Check-STATE-PREPARED-ENUM - * @tc.desc : AudioCapturer with state prepared - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_PROMOISE_PREPARED_STATE_ENUM_012', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMOISE_PREPARED_STATE_ENUM_0100 + *@tc.name : AudioCapturer-Check-STATE-PREPARED-ENUM + *@tc.desc : AudioCapturer with state prepared + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 0 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMOISE_PREPARED_STATE_ENUM_0100', 0, async function (done) { var stateFlag; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -1223,15 +1222,15 @@ describe('audioCapturer', function () { }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_PROMISE_RUNNING_STATE_013 - * @tc.name : AudioCapturer-Check-STATE-RUNNING - * @tc.desc : AudioCapturer with state running - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_PROMISE_RUNNING_STATE_013', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_RUNNING_STATE_0100 + *@tc.name : AudioCapturer-Check-STATE-RUNNING + *@tc.desc : AudioCapturer with state running + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 0 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_RUNNING_STATE_0100', 0, async function (done) { var stateFlag; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -1288,15 +1287,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_PROMISE_RUNNING_STATE_ENUM_014 - * @tc.name : AudioCapturer-Check-STATE-RUNNING-ENUM - * @tc.desc : AudioCapturer with state running - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_PROMISE_RUNNING_STATE_ENUM_014', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_RUNNING_STATE_ENUM_0100 + *@tc.name : AudioCapturer-Check-STATE-RUNNING-ENUM + *@tc.desc : AudioCapturer with state running + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 0 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_RUNNING_STATE_ENUM_0100', 0, async function (done) { var stateFlag; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -1353,15 +1352,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_PROMISE_STOPPED_STATE_015 - * @tc.name : AudioCapturer-Check-STATE-STOPPED - * @tc.desc : AudioCapturer with state stopped - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_PROMISE_STOPPED_STATE_015', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_STOPPED_STATE_0100 + *@tc.name : AudioCapturer-Check-STATE-STOPPED + *@tc.desc : AudioCapturer with state stopped + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_STOPPED_STATE_0100', 2, async function (done) { var stateFlag; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -1429,15 +1428,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_PROMISE_STOPPED_STATE_ENUM_016 - * @tc.name : AudioCapturer-Check-STATE-STOPPED - * @tc.desc : AudioCapturer with state stopped - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_PROMISE_STOPPED_STATE_ENUM_016', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_STOPPED_STATE_ENUM_0100 + *@tc.name : AudioCapturer-Check-STATE-STOPPED + *@tc.desc : AudioCapturer with state stopped + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_STOPPED_STATE_ENUM_0100', 2, async function (done) { var stateFlag; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -1506,15 +1505,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_PROMISE_RELEASED_STATE_017 - * @tc.name : AudioCapturer-Check-STATE-RELEASED - * @tc.desc : AudioCapturer with state released - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_PROMISE_RELEASED_STATE_017', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_RELEASED_STATE_0100 + *@tc.name : AudioCapturer-Check-STATE-RELEASED + *@tc.desc : AudioCapturer with state released + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_RELEASED_STATE_0100', 2, async function (done) { var stateFlag; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -1580,15 +1579,15 @@ describe('audioCapturer', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_PROMISE_RELEASED_STATE_ENUM_018 - * @tc.name : AudioCapturer-Check-STATE-RELEASED-ENUM - * @tc.desc : AudioCapturer with state released - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_PROMISE_RELEASED_STATE_ENUM_018', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_RELEASED_STATE_ENUM_0100 + *@tc.name : AudioCapturer-Check-STATE-RELEASED-ENUM + *@tc.desc : AudioCapturer with state released + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_RELEASED_STATE_ENUM_0100', 2, async function (done) { var stateFlag; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -1655,15 +1654,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_PROMISE_GET_BUFFER_SIZE_019 - * @tc.name : AudioCapturer-get_buffer_size - * @tc.desc : AudioCapturer with state stopped - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_PROMISE_GET_BUFFER_SIZE_019', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_GET_BUFFER_SIZE_0100 + *@tc.name : AudioCapturer-get_buffer_size + *@tc.desc : AudioCapturer with state stopped + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_GET_BUFFER_SIZE_0100', 2, async function (done) { var stateFlag; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -1729,15 +1728,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_PROMISE_READ_BUFFER_020 - * @tc.name : AudioCapturer-Check-READ_BUFFER - * @tc.desc : AudioCapturer with read buffer - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_PROMISE_READ_BUFFER_020', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_READ_BUFFER_0100 + *@tc.name : AudioCapturer-Check-READ_BUFFER + *@tc.desc : AudioCapturer with read buffer + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_READ_BUFFER_0100', 2, async function (done) { var stateFlag; await getFd("capture_CB_js-44100-2C-S16LE-checkpromisereadbuffer.pcm"); var AudioStreamInfo = { @@ -1835,15 +1834,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_CB_021 - * @tc.name : AudioCapturer-Set1-Media - * @tc.desc : AudioCapturer with parameter set 1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_CB_021', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_CB_0100 + *@tc.name : AudioCapturer-Set1-Media + *@tc.desc : AudioCapturer with parameter set 1 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_CB_0100', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -1870,15 +1869,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_CB_ENUM_022 - * @tc.name : AudioCapturer-Set1-Media - * @tc.desc : AudioCapturer with parameter set 1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_CB_ENUM_022', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_CB_ENUM_0100 + *@tc.name : AudioCapturer-Set1-Media + *@tc.desc : AudioCapturer with parameter set 1 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_CB_ENUM_0100', 2, async function (done) { var AudioStreamInfo = { samplingRate: 44100, @@ -1905,18 +1904,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_023 - * @tc.name : AudioCapturer-Set1-Media - * @tc.desc : AudioCapturer with parameter set 1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - * */ - - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_023', 0, async function (done) { - + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_0100 + *@tc.name : AudioCapturer-Set1-Media + *@tc.desc : AudioCapturer with parameter set 1 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_0100', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_2, @@ -1944,18 +1940,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_ENUM_024 - * @tc.name : AudioCapturer-Set1-Media - * @tc.desc : AudioCapturer with parameter set 1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - * */ - - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_ENUM_024', 0, async function (done) { - + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_ENUM_0100 + *@tc.name : AudioCapturer-Set1-Media + *@tc.desc : AudioCapturer with parameter set 1 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_ENUM_0100', 2, async function (done) { var AudioStreamInfo = { samplingRate: 44100, channels: 1, @@ -1983,16 +1976,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_025 - * @tc.name : AudioRec-Set1 - * @tc.desc : record audio with parameter set 1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_025', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_0200 + *@tc.name : AudioRec-Set1 + *@tc.desc : record audio with parameter set 1 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_0200', 2, async function (done) { var audioStreamInfo44100 = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_1, @@ -2018,16 +2010,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_ENUM_026 - * @tc.name : AudioRec-Set1 - * @tc.desc : record audio with parameter set 1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_ENUM_026', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_ENUM_0200 + *@tc.name : AudioRec-Set1 + *@tc.desc : record audio with parameter set 1 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_ENUM_0200', 2, async function (done) { var audioStreamInfo44100 = { samplingRate: 44100, channels: 1, @@ -2054,15 +2045,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_027 - * @tc.name : AudioRec-Set2 - * @tc.desc : record audio with parameter set 2 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_027', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_0300 + *@tc.name : AudioRec-Set2 + *@tc.desc : record audio with parameter set 2 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_0300', 2, async function (done) { var audioStreamInfo96000 = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_96000, channels: audio.AudioChannel.CHANNEL_1, @@ -2088,15 +2079,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_ENUM_028 - * @tc.name : AudioRec-Set2 - * @tc.desc : record audio with parameter set 2 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_ENUM_028', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_ENUM_0300 + *@tc.name : AudioRec-Set2 + *@tc.desc : record audio with parameter set 2 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_ENUM_0300', 2, async function (done) { var audioStreamInfo96000 = { samplingRate: 96000, channels: 1, @@ -2122,15 +2113,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_029 - * @tc.name : AudioRec-Set3 - * @tc.desc : record audio with parameter set 3 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_029', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_0400 + *@tc.name : AudioRec-Set3 + *@tc.desc : record audio with parameter set 3 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_0400', 2, async function (done) { var audioStreamInfo48000 = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -2146,7 +2137,7 @@ describe('audioCapturer', function () { capturerInfo: audioCapturerInfo48000, } - await getFd("capture_js-48000-2C-1S32LE.pcm"); + await getFd("capture_js-48000-2C-1S32LE.pcm"); var resultFlag = await recPromise(audioCapturerOptions48000, dirPath, audio.AudioScene.AUDIO_SCENE_VOICE_CHAT); await sleep(100); console.info('AudioFrameworkRenderLog: resultFlag : ' + resultFlag); @@ -2156,15 +2147,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_ENUM_30 - * @tc.name : AudioRec-Set3 - * @tc.desc : record audio with parameter set 3 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_ENUM_30', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_ENUM_0400 + *@tc.name : AudioRec-Set3 + *@tc.desc : record audio with parameter set 3 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_ENUM_0400', 2, async function (done) { var audioStreamInfo48000 = { samplingRate: 48000, channels: 2, @@ -2180,7 +2171,7 @@ describe('audioCapturer', function () { capturerInfo: audioCapturerInfo48000, } - await getFd("capture_js-48000-2C-1S32LE.pcm"); + await getFd("capture_js-48000-2C-1S32LE.pcm"); var resultFlag = await recPromise(audioCapturerOptions48000, dirPath, audio.AudioScene.AUDIO_SCENE_VOICE_CHAT); await sleep(100); console.info('AudioFrameworkRenderLog: resultFlag : ' + resultFlag); @@ -2190,15 +2181,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_031 - * @tc.name : AudioRec-Set4 - * @tc.desc : record audio with parameter set 4 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_031', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_0500 + *@tc.name : AudioRec-Set4 + *@tc.desc : record audio with parameter set 4 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_0500', 2, async function (done) { var audioStreamInfo8000 = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_8000, channels: audio.AudioChannel.CHANNEL_1, @@ -2214,7 +2205,7 @@ describe('audioCapturer', function () { capturerInfo: audioCapturerInfo8000, } - await getFd("capture_js-8000-1C-8B.pcm"); + await getFd("capture_js-8000-1C-8B.pcm"); var resultFlag = await recPromise(audioCapturerOptions8000, dirPath, audio.AudioScene.AUDIO_SCENE_VOICE_CHAT); await sleep(100); console.info('AudioFrameworkRenderLog: resultFlag : ' + resultFlag); @@ -2224,15 +2215,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_ENUM_032 - * @tc.name : AudioRec-Set4 - * @tc.desc : record audio with parameter set 4 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_ENUM_032', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_ENUM_0500 + *@tc.name : AudioRec-Set4 + *@tc.desc : record audio with parameter set 4 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_ENUM_0500', 2, async function (done) { var audioStreamInfo8000 = { samplingRate: 8000, channels: 1, @@ -2248,7 +2239,7 @@ describe('audioCapturer', function () { capturerInfo: audioCapturerInfo8000, } - await getFd("capture_js-8000-1C-8B.pcm"); + await getFd("capture_js-8000-1C-8B.pcm"); var resultFlag = await recPromise(audioCapturerOptions8000, dirPath, audio.AudioScene.AUDIO_SCENE_VOICE_CHAT); await sleep(100); console.info('AudioFrameworkRenderLog: resultFlag : ' + resultFlag); @@ -2258,15 +2249,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_33 - * @tc.name : AudioRec-Set5 - * @tc.desc : record audio with parameter set 5 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_33', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_0600 + *@tc.name : AudioRec-Set5 + *@tc.desc : record audio with parameter set 5 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_0600', 2, async function (done) { var audioStreamInfo11025 = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_11025, channels: audio.AudioChannel.CHANNEL_2, @@ -2282,7 +2273,7 @@ describe('audioCapturer', function () { capturerInfo: audioCapturerInfo11025, } - await getFd("capture_js-11025-2C-16B.pcm"); + await getFd("capture_js-11025-2C-16B.pcm"); var resultFlag = await recPromise(audioCapturerOptions11025, dirPath, audio.AudioScene.AUDIO_SCENE_VOICE_CHAT); await sleep(100); console.info('AudioFrameworkRenderLog: resultFlag : ' + resultFlag); @@ -2292,15 +2283,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_ENUM_034 - * @tc.name : AudioRec-Set5 - * @tc.desc : record audio with parameter set 5 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_ENUM_034', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_ENUM_0600 + *@tc.name : AudioRec-Set5 + *@tc.desc : record audio with parameter set 5 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_ENUM_0600', 2, async function (done) { var audioStreamInfo11025 = { samplingRate: 11025, channels: 2, @@ -2316,7 +2307,7 @@ describe('audioCapturer', function () { capturerInfo: audioCapturerInfo11025, } - await getFd("capture_js-11025-2C-16B.pcm"); + await getFd("capture_js-11025-2C-16B.pcm"); var resultFlag = await recPromise(audioCapturerOptions11025, dirPath, audio.AudioScene.AUDIO_SCENE_VOICE_CHAT); await sleep(100); @@ -2327,15 +2318,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_035 - * @tc.name : AudioRec-Set6 - * @tc.desc : record audio with parameter set 6 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_028', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_0700 + *@tc.name : AudioRec-Set6 + *@tc.desc : record audio with parameter set 6 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_0700', 2, async function (done) { var audioStreamInfo12000 = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_12000, channels: audio.AudioChannel.CHANNEL_1, @@ -2361,15 +2352,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_ENUM_036 - * @tc.name : AudioRec-Set6 - * @tc.desc : record audio with parameter set 6 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_ENUM_036', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_ENUM_0700 + *@tc.name : AudioRec-Set6 + *@tc.desc : record audio with parameter set 6 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_ENUM_0700', 2, async function (done) { var audioStreamInfo12000 = { samplingRate: 12000, channels: 1, @@ -2395,15 +2386,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_037 - * @tc.name : AudioRec-Set7 - * @tc.desc : record audio with parameter set 7 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_037', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_0800 + *@tc.name : AudioRec-Set7 + *@tc.desc : record audio with parameter set 7 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_0800', 2, async function (done) { var audioStreamInfo16000 = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_16000, channels: audio.AudioChannel.CHANNEL_2, @@ -2429,15 +2420,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_ENUM_038 - * @tc.name : AudioRec-Set7 - * @tc.desc : record audio with parameter set 7 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_ENUM_038', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_ENUM_0800 + *@tc.name : AudioRec-Set7 + *@tc.desc : record audio with parameter set 7 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_ENUM_0800', 2, async function (done) { var audioStreamInfo16000 = { samplingRate: 16000, channels: 2, @@ -2463,15 +2454,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_039 - * @tc.name : AudioRec-Set8 - * @tc.desc : record audio with parameter set 8 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_039', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_0900 + *@tc.name : AudioRec-Set8 + *@tc.desc : record audio with parameter set 8 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_0900', 2, async function (done) { var audioStreamInfo22050 = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_22050, channels: audio.AudioChannel.CHANNEL_1, @@ -2497,15 +2488,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_ENUM_040 - * @tc.name : AudioRec-Set8 - * @tc.desc : record audio with parameter set 8 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_ENUM_040', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_ENUM_0900 + *@tc.name : AudioRec-Set8 + *@tc.desc : record audio with parameter set 8 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_ENUM_0900', 2, async function (done) { var audioStreamInfo22050 = { samplingRate: 22050, channels: 1, @@ -2532,15 +2523,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_041 - * @tc.name : AudioRec-Set9 - * @tc.desc : record audio with parameter set 9 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_041', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_1000 + *@tc.name : AudioRec-Set9 + *@tc.desc : record audio with parameter set 9 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_1000', 2, async function (done) { var audioStreamInfo24000 = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_24000, channels: audio.AudioChannel.CHANNEL_2, @@ -2567,15 +2558,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_ENUM_042 - * @tc.name : AudioRec-Set9 - * @tc.desc : record audio with parameter set 9 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_ENUM_042', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_ENUM_1000 + *@tc.name : AudioRec-Set9 + *@tc.desc : record audio with parameter set 9 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_ENUM_1000', 2, async function (done) { var audioStreamInfo24000 = { samplingRate: 24000, channels: 2, @@ -2602,15 +2593,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_043 - * @tc.name : AudioRec-Set10 - * @tc.desc : record audio with parameter set 010 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_043', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_1100 + *@tc.name : AudioRec-Set10 + *@tc.desc : record audio with parameter set 010 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_1100', 2, async function (done) { var audioStreamInfo32000 = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_32000, channels: audio.AudioChannel.CHANNEL_1, @@ -2637,15 +2628,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_ENUM_044 - * @tc.name : AudioRec-Set10 - * @tc.desc : record audio with parameter set 010 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_ENUM_044', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_ENUM_1100 + *@tc.name : AudioRec-Set10 + *@tc.desc : record audio with parameter set 010 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_ENUM_1100', 2, async function (done) { var audioStreamInfo32000 = { samplingRate: 32000, channels: 1, @@ -2672,19 +2663,15 @@ describe('audioCapturer', function () { done(); }) - - /* - * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_045 - * @tc.name : AudioRec-Set11 - * @tc.desc : record audio with parameter set 011 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 -*/ - - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_045', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_1200 + *@tc.name : AudioRec-Set11 + *@tc.desc : record audio with parameter set 011 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_1200', 2, async function (done) { var audioStreamInfo64000 = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_64000, channels: audio.AudioChannel.CHANNEL_2, @@ -2712,16 +2699,15 @@ describe('audioCapturer', function () { }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_ENUM_046 - * @tc.name : AudioRec-Set11 - * @tc.desc : record audio with parameter set 011 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - - it('SUB_AUDIO_VOIP_Rec_VOICE_CHAT_Promise_ENUM_046', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_ENUM_1200 + *@tc.name : AudioRec-Set11 + *@tc.desc : record audio with parameter set 011 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_ENUM_1200', 2, async function (done) { var audioStreamInfo64000 = { samplingRate: 64000, channels: 2, @@ -2748,16 +2734,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RECORD_Promise_AUDIO_SCENE_DEFAULT_047 - * @tc.name : AudioRec-Set1 - * @tc.desc : record audio with parameter set 1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - - it('SUB_AUDIO_RECORD_Promise_AUDIO_SCENE_DEFAULT_047', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_RECORD_PROMISE_AUDIO_SCENE_DEFAULT_0100 + *@tc.name : AudioRec-Set1 + *@tc.desc : record audio with parameter set 1 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RECORD_PROMISE_AUDIO_SCENE_DEFAULT_0100', 2, async function (done) { var audioStreamInfo44100 = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_1, @@ -2778,22 +2763,19 @@ describe('audioCapturer', function () { var resultFlag = await recPromise(audioCapturerOptions44100, dirPath, audio.AudioScene.AUDIO_SCENE_DEFAULT); await sleep(100); console.info('AudioFrameworkRenderLog: resultFlag : ' + resultFlag); - expect(resultFlag).assertTrue(); - done(); }) - /* * - * @tc.number : SUB_AUDIO_RECORD_Promise_AUDIO_SCENE_DEFAULT_ENUM_048 - * @tc.name : AudioRec-Set1 - * @tc.desc : record audio with parameter set 1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - - it('SUB_AUDIO_RECORD_Promise_AUDIO_SCENE_DEFAULT_ENUM_048', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_RECORD_PROMISE_AUDIO_SCENE_DEFAULT_ENUM_0100 + *@tc.name : AudioRec-Set1 + *@tc.desc : record audio with parameter set 1 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RECORD_PROMISE_AUDIO_SCENE_DEFAULT_ENUM_0100', 2, async function (done) { var audioStreamInfo44100 = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_1, @@ -2820,16 +2802,15 @@ describe('audioCapturer', function () { done(); }) - - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_PROMISE_GET_AUDIO_TIME_AFTER_START_055 - * @tc.name : AudioCapturer-GET_AUDIO_TIME - * @tc.desc : AudioCapturer GET_AUDIO_TIME - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_PROMISE_GET_AUDIO_TIME_AFTER_START_055', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_GET_AUDIO_TIME_AFTER_START_0100 + *@tc.name : AudioCapturer-GET_AUDIO_TIME + *@tc.desc : AudioCapturer GET_AUDIO_TIME + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_GET_AUDIO_TIME_AFTER_START_0100', 2, async function (done) { var stateFlag; await getFd("capture_CB_js-44100-2C-S16LE-checkcbreadbuffer.pcm"); var AudioStreamInfo = { @@ -2920,15 +2901,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_PROMISE_GET_AUDIO_TIME_AFTER_READ_WRITE_056 - * @tc.name : AudioCapturer-GET_AUDIO_TIME - * @tc.desc : AudioCapturer GET_AUDIO_TIME - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_PROMISE_GET_AUDIO_TIME_AFTER_READ_WRITE_056', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_GET_AUDIO_TIME_AFTER_READ_WRITE_0100 + *@tc.name : AudioCapturer-GET_AUDIO_TIME + *@tc.desc : AudioCapturer GET_AUDIO_TIME + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_GET_AUDIO_TIME_AFTER_READ_WRITE_0100', 2, async function (done) { var stateFlag; await getFd("capture_CB_js-44100-2C-S16LE-checkcbreadbuffer.pcm"); var AudioStreamInfo = { @@ -3007,7 +2988,7 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - await new Promise((resolve,reject)=>{ + await new Promise((resolve, reject) => { audioCapCallBack.read(bufferSize, true, async (err, buffer) => { if (err) { console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); @@ -3071,15 +3052,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_PROMISE_GET_AUDIO_TIME_AFTER_STOP_057 - * @tc.name : AudioCapturer-GET_AUDIO_TIME - * @tc.desc : AudioCapturer GET_AUDIO_TIME - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_PROMISE_GET_AUDIO_TIME_AFTER_STOP_057', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_GET_AUDIO_TIME_AFTER_STOP_0100 + *@tc.name : AudioCapturer-GET_AUDIO_TIME + *@tc.desc : AudioCapturer GET_AUDIO_TIME + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_GET_AUDIO_TIME_AFTER_STOP_0100', 2, async function (done) { var stateFlag; await getFd("capture_CB_js-44100-2C-S16LE-checkcbreadbuffer.pcm"); var AudioStreamInfo = { @@ -3158,7 +3139,7 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - await new Promise((resolve,reject)=>{ + await new Promise((resolve, reject) => { audioCapCallBack.read(bufferSize, true, async (err, buffer) => { if (err) { console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); @@ -3245,15 +3226,15 @@ describe('audioCapturer', function () { }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_GET_AUDIO_TIME_058 - * @tc.name : AudioCapturer-GET_AUDIO_TIME - * @tc.desc : AudioCapturer GET_AUDIO_TIME - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_GET_AUDIO_TIME_058', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_GET_AUDIO_TIME_0100 + *@tc.name : AudioCapturer-GET_AUDIO_TIME + *@tc.desc : AudioCapturer GET_AUDIO_TIME + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_GET_AUDIO_TIME_0100', 2, async function (done) { var stateFlag; var audioCapCallBack; var AudioStreamInfo = { @@ -3329,15 +3310,15 @@ describe('audioCapturer', function () { }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_PROMISE_STOP_BEFORE_START_059 - * @tc.name : AudioCapturer-GET_AUDIO_TIME - * @tc.desc : AudioCapturer GET_AUDIO_TIME - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_PROMISE_STOP_BEFORE_START_059', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_STOP_BEFORE_START_0100 + *@tc.name : AudioCapturer-GET_AUDIO_TIME + *@tc.desc : AudioCapturer GET_AUDIO_TIME + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_STOP_BEFORE_START_0100', 2, async function (done) { var stateFlag; var audioCapPromise; var AudioStreamInfo = { @@ -3401,14 +3382,14 @@ describe('audioCapturer', function () { }) /** - * @tc.number : SUB_AUDIO_VOIP_CAP_PROMISE_RELEASE_BEFORE_START_060 - * @tc.name : AudioCapturer-GET_AUDIO_TIME - * @tc.desc : AudioCapturer GET_AUDIO_TIME - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_PROMISE_RELEASE_BEFORE_START_060', 0, async function (done) { + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_RELEASE_BEFORE_START_0100 + *@tc.name : AudioCapturer-GET_AUDIO_TIME + *@tc.desc : AudioCapturer GET_AUDIO_TIME + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_PROMISE_RELEASE_BEFORE_START_0100', 2, async function (done) { var stateFlag; var audioCapPromise; var AudioStreamInfo = { @@ -3469,16 +3450,15 @@ describe('audioCapturer', function () { }) - /* * - * @tc.number : SUB_AUDIO_Rec_PR_VOICE_CHAT_GET_STREAM_INFO_061 - * @tc.name : AudioRec-Set1 - * @tc.desc : record audio with parameter set 1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - - it('SUB_AUDIO_Rec_PR_VOICE_CHAT_GET_STREAM_INFO_061', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_REC_PR_VOICE_CHAT_GET_STREAM_INFO_0100 + *@tc.name : AudioRec-Set1 + *@tc.desc : record audio with parameter set 1 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_REC_PR_VOICE_CHAT_GET_STREAM_INFO_0100', 2, async function (done) { var audioCapGetgetStreamInfo; var setFlag; var audioStreamInfo44100 = { @@ -3546,16 +3526,15 @@ describe('audioCapturer', function () { }) - /* * - * @tc.number : SUB_AUDIO_Rec_PR_VOICE_CHAT_GET_STREAM_INFO_ENUM_062 - * @tc.name : AudioRec-Set1 - * @tc.desc : record audio with parameter set 1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - - it('SUB_AUDIO_Rec_PR_VOICE_CHAT_GET_STREAM_INFO_ENUM_062', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_REC_PR_VOICE_CHAT_GET_STREAM_INFO_ENUM_0100 + *@tc.name : AudioRec-Set1 + *@tc.desc : record audio with parameter set 1 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_REC_PR_VOICE_CHAT_GET_STREAM_INFO_ENUM_0100', 2, async function (done) { var audioCapGetgetStreamInfo; var setFlag; var audioStreamInfo44100 = { @@ -3624,16 +3603,15 @@ describe('audioCapturer', function () { }) - /* * - * @tc.number : SUB_AUDIO_Rec_CB_VOICE_CHAT_GET_STREAM_INFO_063 - * @tc.name : AudioRec-Set1 - * @tc.desc : record audio with parameter set 1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - - it('SUB_AUDIO_Rec_CB_VOICE_CHAT_GET_STREAM_INFO_063', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_REC_CB_VOICE_CHAT_GET_STREAM_INFO_0200 + *@tc.name : AudioRec-Set1 + *@tc.desc : record audio with parameter set 1 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_REC_CB_VOICE_CHAT_GET_STREAM_INFO_0200', 2, async function (done) { var audioCapGetgetStreamInfo; var setFlag; var audioStreamInfo44100 = { @@ -3704,16 +3682,15 @@ describe('audioCapturer', function () { }) - /* * - * @tc.number : SUB_AUDIO_Rec_CB_VOICE_CHAT_GET_STREAM_INFO_ENUM_064 - * @tc.name : AudioRec-Set1 - * @tc.desc : record audio with parameter set 1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - - it('SUB_AUDIO_Rec_CB_VOICE_CHAT_GET_STREAM_INFO_ENUM_064', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_REC_CB_VOICE_CHAT_GET_STREAM_INFO_ENUM_0200 + *@tc.name : AudioRec-Set1 + *@tc.desc : record audio with parameter set 1 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_REC_CB_VOICE_CHAT_GET_STREAM_INFO_ENUM_0200', 2, async function (done) { var audioCapGetgetStreamInfo; var setFlag; var audioStreamInfo44100 = { @@ -3784,16 +3761,15 @@ describe('audioCapturer', function () { - /* * - * @tc.number : SUB_AUDIO_Rec_PR_VOICE_CHAT_GET_CAPTURER_INFO_065 - * @tc.name : AudioRec-Set1 - * @tc.desc : record audio with parameter set 1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - - it('SUB_AUDIO_Rec_PR_VOICE_CHAT_GET_CAPTURER_INFO_065', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_REC_PR_VOICE_CHAT_GET_CAPTURER_INFO_0300 + *@tc.name : AudioRec-Set1 + *@tc.desc : record audio with parameter set 1 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_REC_PR_VOICE_CHAT_GET_CAPTURER_INFO_0300', 2, async function (done) { var audioCapGetgetCapturerInfo; var setFlag; var audioStreamInfo44100 = { @@ -3857,16 +3833,15 @@ describe('audioCapturer', function () { }) - /* * - * @tc.number : SUB_AUDIO_Rec_PR_VOICE_CHAT_GET_CAPTURER_INFO_ENUM_066 - * @tc.name : AudioRec-Set1 - * @tc.desc : record audio with parameter set 1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - - it('SUB_AUDIO_Rec_PR_VOICE_CHAT_GET_CAPTURER_INFO_ENUM_65', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_REC_PR_VOICE_CHAT_GET_CAPTURER_INFO_ENUM_0300 + *@tc.name : AudioRec-Set1 + *@tc.desc : record audio with parameter set 1 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_REC_PR_VOICE_CHAT_GET_CAPTURER_INFO_ENUM_0300', 2, async function (done) { var audioCapGetgetCapturerInfo; var setFlag; var audioStreamInfo44100 = { @@ -3929,16 +3904,15 @@ describe('audioCapturer', function () { }) - /* * - * @tc.number : SUB_AUDIO_Rec_CB_VOICE_CHAT_GET_CAPTURER_INFO_067 - * @tc.name : AudioRec-Set1 - * @tc.desc : record audio with parameter set 1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - - it('SUB_AUDIO_Rec_CB_VOICE_CHAT_GET_CAPTURER_INFO_067', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_REC_CB_VOICE_CHAT_GET_CAPTURER_INFO_0400 + *@tc.name : AudioRec-Set1 + *@tc.desc : record audio with parameter set 1 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_REC_CB_VOICE_CHAT_GET_CAPTURER_INFO_0400', 2, async function (done) { var audioCapGetgetCapturerInfo; var setFlag; var audioStreamInfo44100 = { @@ -4006,16 +3980,15 @@ describe('audioCapturer', function () { }) - /* * - * @tc.number : SUB_AUDIO_Rec_CB_VOICE_CHAT_GET_STREAM_INFO_ENUM_068 - * @tc.name : AudioRec-Set1 - * @tc.desc : record audio with parameter set 1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - - it('SUB_AUDIO_Rec_CB_VOICE_CHAT_GET_STREAM_INFO_ENUM_068', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_REC_CB_VOICE_CHAT_GET_STREAM_INFO_ENUM_0400 + *@tc.name : AudioRec-Set1 + *@tc.desc : record audio with parameter set 1 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_REC_CB_VOICE_CHAT_GET_STREAM_INFO_ENUM_0400', 2, async function (done) { var audioCapGetgetCapturerInfo; var setFlag; var audioStreamInfo44100 = { @@ -4081,16 +4054,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_Rec_VOICE_CHAT_PR_ENUM_AUDIO_STREAM_INFO_INVALID_069 - * @tc.name : AudioRec-Set1 - * @tc.desc : record audio with parameter set 1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - - it('SUB_AUDIO_Rec_VOICE_CHAT_PR_ENUM_AUDIO_STREAM_INFO_INVALID_069', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_REC_VOICE_CHAT_PR_ENUM_AUDIO_STREAM_INFO_INVALID_0100 + *@tc.name : AudioRec-Set1 + *@tc.desc : record audio with parameter set 1 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_REC_VOICE_CHAT_PR_ENUM_AUDIO_STREAM_INFO_INVALID_0100', 2, async function (done) { var audioStreamInfo44100 = { samplingRate: 0, channels: 1, @@ -4121,16 +4093,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_Rec_VOICE_CHAT_PR_ENUM_AUDIO_CAPTURER_INFO_INVALID_070 - * @tc.name : AudioRec-Set1 - * @tc.desc : record audio with parameter set 1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - - it('SUB_AUDIO_Rec_VOICE_CHAT_PR_ENUM_AUDIO_CAPTURER_INFO_INVALID_070', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_REC_VOICE_CHAT_PR_ENUM_AUDIO_CAPTURER_INFO_INVALID_0100 + *@tc.name : AudioRec-Set1 + *@tc.desc : record audio with parameter set 1 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_REC_VOICE_CHAT_PR_ENUM_AUDIO_CAPTURER_INFO_INVALID_0100', 2, async function (done) { var audioStreamInfo44100 = { samplingRate: 44100, channels: 1, @@ -4160,15 +4131,15 @@ describe('audioCapturer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_ON_ALL_CASES_071 - * @tc.name : AudioCapturer-Check-STATE-STOPPED - * @tc.desc : AudioCapturer with state stopped - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_ON_ALL_CASES_070', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_ON_0100 + *@tc.name : AudioCapturer-Check-STATE-STOPPED + *@tc.desc : AudioCapturer with state stopped + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_ON_0100', 2, async function (done) { var stateFlag; var audioCapCallBack; var AudioStreamInfo = { @@ -4275,15 +4246,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_ON_PREPARED_072 - * @tc.name : AudioCapturer-Check-STATE-STOPPED - * @tc.desc : AudioCapturer with state stopped - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_ON_PREPARED_072', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_ON_0200 + *@tc.name : AudioCapturer-Check-STATE-STOPPED + *@tc.desc : AudioCapturer with state stopped + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_ON_0200', 2, async function (done) { var stateFlag; var audioCapCallBack; var AudioStreamInfo = { @@ -4356,15 +4327,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_ON_START_073 - * @tc.name : AudioCapturer-Check-STATE-STOPPED - * @tc.desc : AudioCapturer with state stopped - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_ON_START_073', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_ON_0300 + *@tc.name : AudioCapturer-Check-STATE-STOPPED + *@tc.desc : AudioCapturer with state stopped + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_ON_0300', 2, async function (done) { var stateFlag; var audioCapCallBack; var AudioStreamInfo = { @@ -4453,15 +4424,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_ON_STOP_074 - * @tc.name : AudioCapturer-Check-STATE-STOPPED - * @tc.desc : AudioCapturer with state stopped - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_ON_STOP_074', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_ON_0400 + *@tc.name : AudioCapturer-Check-STATE-STOPPED + *@tc.desc : AudioCapturer with state stopped + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_ON_0400', 2, async function (done) { var stateFlag; var audioCapCallBack; var AudioStreamInfo = { @@ -4569,15 +4540,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_5000_REACH_075 - * @tc.name : AudioCapturer-Check-READ_BUFFER - * @tc.desc : AudioCapturer with read buffer - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_5000_REACH_075', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_REACH_0100 + *@tc.name : AudioCapturer-Check-READ_BUFFER + *@tc.desc : AudioCapturer with read buffer + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_REACH_0100', 2, async function (done) { var stateFlag; await getFd("capture_CB_js-44100-2C-S16LE-checkcbreadbuffer.pcm"); var AudioStreamInfo = { @@ -4657,7 +4628,7 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - await new Promise((resolve,reject)=>{ + await new Promise((resolve, reject) => { audioCapCallBack.read(bufferSize, true, async (err, buffer) => { if (err) { console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); @@ -4707,15 +4678,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_1000_REACH_076 - * @tc.name : AudioCapturer-Check-READ_BUFFER - * @tc.desc : AudioCapturer with read buffer - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_1000_REACH_076', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_REACH_0200 + *@tc.name : AudioCapturer-Check-READ_BUFFER + *@tc.desc : AudioCapturer with read buffer + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_REACH_0200', 2, async function (done) { var stateFlag; await getFd("capture_CB_js-44100-2C-S16LE-checkcbreadbuffer.pcm"); var AudioStreamInfo = { @@ -4795,7 +4766,7 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - await new Promise((resolve,reject)=>{ + await new Promise((resolve, reject) => { audioCapCallBack.read(bufferSize, true, async (err, buffer) => { if (err) { console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); @@ -4839,15 +4810,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_10000_REACH_077 - * @tc.name : AudioCapturer-Check-READ_BUFFER - * @tc.desc : AudioCapturer with read buffer - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_10000_REACH_077', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_REACH_0300 + *@tc.name : AudioCapturer-Check-READ_BUFFER + *@tc.desc : AudioCapturer with read buffer + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_REACH_0300', 2, async function (done) { var stateFlag; await getFd("capture_CB_js-44100-2C-S16LE-checkcbreadbuffer.pcm"); var AudioStreamInfo = { @@ -4927,7 +4898,7 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - await new Promise((resolve,reject)=>{ + await new Promise((resolve, reject) => { audioCapCallBack.read(bufferSize, true, async (err, buffer) => { if (err) { console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); @@ -4972,15 +4943,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_100_REACH_078 - * @tc.name : AudioCapturer-Check-READ_BUFFER - * @tc.desc : AudioCapturer with read buffer - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_100_REACH_078', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_REACH_0400 + *@tc.name : AudioCapturer-Check-READ_BUFFER + *@tc.desc : AudioCapturer with read buffer + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_REACH_0400', 2, async function (done) { var stateFlag; await getFd("capture_CB_js-44100-2C-S16LE-checkcbreadbuffer.pcm"); var AudioStreamInfo = { @@ -5060,7 +5031,7 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - await new Promise((resolve,reject)=>{ + await new Promise((resolve, reject) => { audioCapCallBack.read(bufferSize, true, async (err, buffer) => { if (err) { console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); @@ -5105,15 +5076,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_1_REACH_079 - * @tc.name : AudioCapturer-Check-READ_BUFFER - * @tc.desc : AudioCapturer with read buffer - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_1_REACH_079', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_REACH_0500 + *@tc.name : AudioCapturer-Check-READ_BUFFER + *@tc.desc : AudioCapturer with read buffer + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_REACH_0500', 2, async function (done) { var stateFlag; await getFd("capture_CB_js-44100-2C-S16LE-checkcbreadbuffer.pcm"); var AudioStreamInfo = { @@ -5193,7 +5164,7 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - await new Promise((resolve,reject)=>{ + await new Promise((resolve, reject) => { audioCapCallBack.read(bufferSize, true, async (err, buffer) => { if (err) { console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); @@ -5239,15 +5210,15 @@ describe('audioCapturer', function () { }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_0_REACH_080 - * @tc.name : AudioCapturer-Check-READ_BUFFER - * @tc.desc : AudioCapturer with read buffer - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_0_REACH_080', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_REACH_0600 + *@tc.name : AudioCapturer-Check-READ_BUFFER + *@tc.desc : AudioCapturer with read buffer + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_REACH_0600', 2, async function (done) { var stateFlag; await getFd("capture_CB_js-44100-2C-S16LE-checkcbreadbuffer.pcm"); var AudioStreamInfo = { @@ -5327,7 +5298,7 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - await new Promise((resolve,reject)=>{ + await new Promise((resolve, reject) => { audioCapCallBack.read(bufferSize, true, async (err, buffer) => { if (err) { console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); @@ -5373,15 +5344,15 @@ describe('audioCapturer', function () { }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_LARGEVALUE_REACH_081 - * @tc.name : AudioCapturer-Check-READ_BUFFER - * @tc.desc : AudioCapturer with read buffer - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_LARGEVALUE_REACH_081', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_REACH_0700 + *@tc.name : AudioCapturer-Check-READ_BUFFER + *@tc.desc : AudioCapturer with read buffer + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_REACH_0700', 2, async function (done) { var stateFlag; await getFd("capture_CB_js-44100-2C-S16LE-checkcbreadbuffer.pcm"); var AudioStreamInfo = { @@ -5461,7 +5432,7 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - await new Promise((resolve,reject)=>{ + await new Promise((resolve, reject) => { audioCapCallBack.read(bufferSize, true, async (err, buffer) => { if (err) { console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); @@ -5506,15 +5477,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_NEGATIVEVALUE_REACH_082 - * @tc.name : AudioCapturer-Check-READ_BUFFER - * @tc.desc : AudioCapturer with read buffer - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_NEGATIVEVALUE_REACH_082', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_REACH_0800 + *@tc.name : AudioCapturer-Check-READ_BUFFER + *@tc.desc : AudioCapturer with read buffer + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_MARK_REACH_0800', 2, async function (done) { var stateFlag; await getFd("capture_CB_js-44100-2C-S16LE-checkcbreadbuffer.pcm"); var AudioStreamInfo = { @@ -5594,7 +5565,7 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - await new Promise((resolve,reject)=>{ + await new Promise((resolve, reject) => { audioCapCallBack.read(bufferSize, true, async (err, buffer) => { if (err) { console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); @@ -5639,15 +5610,15 @@ describe('audioCapturer', function () { await sleep(1000); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_PERIOD_REACH_1000_084 - * @tc.name : AudioCapturer-Check-READ_BUFFER - * @tc.desc : AudioCapturer with read buffer - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_PERIOD_REACH_1000_084', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_PERIOD_REACH_0100 + *@tc.name : AudioCapturer-Check-READ_BUFFER + *@tc.desc : AudioCapturer with read buffer + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_PERIOD_REACH_0100', 2, async function (done) { var stateFlag; await getFd("capture_CB_js-44100-2C-S16LE-checkcbreadbuffer.pcm"); var AudioStreamInfo = { @@ -5725,7 +5696,7 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - await new Promise((resolve,reject)=>{ + await new Promise((resolve, reject) => { audioCapCallBack.read(bufferSize, true, async (err, buffer) => { if (err) { console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); @@ -5794,15 +5765,15 @@ describe('audioCapturer', function () { }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_PERIOD_REACH_1_085 - * @tc.name : AudioCapturer-Check-READ_BUFFER - * @tc.desc : AudioCapturer with read buffer - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_PERIOD_REACH_1_085', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_PERIOD_REACH_0200 + *@tc.name : AudioCapturer-Check-READ_BUFFER + *@tc.desc : AudioCapturer with read buffer + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_PERIOD_REACH_0200', 2, async function (done) { var stateFlag; await getFd("capture_CB_js-44100-2C-S16LE-checkcbreadbuffer.pcm"); var AudioStreamInfo = { @@ -5880,7 +5851,7 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - await new Promise((resolve,reject)=>{ + await new Promise((resolve, reject) => { audioCapCallBack.read(bufferSize, true, async (err, buffer) => { if (err) { console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); @@ -5949,15 +5920,15 @@ describe('audioCapturer', function () { }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_PERIOD_REACH_NEGATIVE_086 - * @tc.name : AudioCapturer-Check-READ_BUFFER - * @tc.desc : AudioCapturer with read buffer - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_PERIOD_REACH_NEGATIVE_086', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_PERIOD_REACH_0300 + *@tc.name : AudioCapturer-Check-READ_BUFFER + *@tc.desc : AudioCapturer with read buffer + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_PERIOD_REACH_0300', 2, async function (done) { var stateFlag; await getFd("capture_CB_js-44100-2C-S16LE-checkcbreadbuffer.pcm"); var AudioStreamInfo = { @@ -6035,7 +6006,7 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - await new Promise((resolve,reject)=>{ + await new Promise((resolve, reject) => { audioCapCallBack.read(bufferSize, true, async (err, buffer) => { if (err) { console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); @@ -6105,15 +6076,15 @@ describe('audioCapturer', function () { }) - /* * - * @tc.number : SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_PERIOD_REACH_223750_087 - * @tc.name : AudioCapturer-Check-READ_BUFFER - * @tc.desc : AudioCapturer with read buffer - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_VOIP_CAP_CB_READ_BUFFER_PERIOD_REACH_223750_087', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_PERIOD_REACH_0400 + *@tc.name : AudioCapturer-Check-READ_BUFFER + *@tc.desc : AudioCapturer with read buffer + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_CAP_CB_READ_BUFFER_PERIOD_REACH_0400', 2, async function (done) { var stateFlag; await getFd("capture_CB_js-44100-2C-S16LE-checkcbreadbuffer.pcm"); var AudioStreamInfo = { @@ -6191,7 +6162,7 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - await new Promise((resolve,reject)=>{ + await new Promise((resolve, reject) => { audioCapCallBack.read(bufferSize, true, async (err, buffer) => { if (err) { console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); diff --git a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCapturerChangeInfo.test.js b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCapturerChangeInfo.test.js index a161d04d5b51e63fdd904c537d6651ba89a06e55..4abea75e738d9452e0223e417ac259407fd91c3a 100644 --- a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCapturerChangeInfo.test.js +++ b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCapturerChangeInfo.test.js @@ -14,72 +14,72 @@ */ import audio from '@ohos.multimedia.audio'; -import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'; +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index'; describe('audioCapturerChange', function () { var audioStreamManager; - var audioStreamManagerCB; + var audioStreamManagerCB; var dirPath; var fpath; - var Tag = "AFCapLog : "; + var Tag = "AFCapLog : "; const audioManager = audio.getAudioManager(); - console.info(Tag+'Create AudioManger Object JS Framework'); + console.info(Tag + 'Create AudioManger Object JS Framework'); beforeAll(async function () { - console.info(Tag+' beforeAll: Prerequisites at the test suite level'); + console.info(Tag + ' beforeAll: Prerequisites at the test suite level'); dirPath = '/data/storage/el2/base/haps/entry/cache' - console.info(Tag+'Recording files Path: '+dirPath); - fpath = dirPath+'/capture_js.pcm'; + console.info(Tag + 'Recording files Path: ' + dirPath); + fpath = dirPath + '/capture_js.pcm'; await sleep(100); await audioManager.getStreamManager().then(async function (data) { audioStreamManager = data; - console.info(Tag+' Get AudioStream Manager : Success '); + console.info(Tag + ' Get AudioStream Manager : Success '); }).catch((err) => { - console.info(Tag+' Get AudioStream Manager : ERROR : '+err.message); + console.info(Tag + ' Get AudioStream Manager : ERROR : ' + err.message); }); - - audioManager.getStreamManager((err, data) => { + + audioManager.getStreamManager((err, data) => { if (err) { - console.error(Tag+' Get AudioStream Manager : ERROR : '+err.message); + console.error(Tag + ' Get AudioStream Manager : ERROR : ' + err.message); } else { audioStreamManagerCB = data; - console.info(Tag+' Get AudioStream Manager : Success '); + console.info(Tag + ' Get AudioStream Manager : Success '); } }); await sleep(1000); - console.info(Tag+' beforeAll: END'); + console.info(Tag + ' beforeAll: END'); }) beforeEach(async function () { - console.info(Tag+' beforeEach: Prerequisites at the test case level'); + console.info(Tag + ' beforeEach: Prerequisites at the test case level'); await sleep(1000); }) afterEach(function () { - console.info(Tag+' afterEach: Test case-level clearance conditions'); + console.info(Tag + ' afterEach: Test case-level clearance conditions'); }) afterAll(async function () { await sleep(1000); - console.info(Tag+' afterAll: Test suite-level cleanup condition'); + console.info(Tag + ' afterAll: Test suite-level cleanup condition'); }) function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } - /* * - * @tc.number : SUB_AUDIO_ON_CAPTURER_CHANGE_001 - * @tc.name : AudioCapturerChange - ON_STATE_PREPARED - * @tc.desc : AudioCapturerChange - ON_STATE_PREPARED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_ON_CAPTURER_CHANGE_001', 0, async function (done) { - var audioCap ; + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_ON_CAPTURER_CHANGE_0100 + *@tc.name : AudioCapturerChange - ON_STATE_PREPARED + *@tc.desc : AudioCapturerChange - ON_STATE_PREPARED + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('SUB_MULTIMEDIA_AUDIO_ON_CAPTURER_CHANGE_0100', 1, async function (done) { + var audioCap; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_2, @@ -98,67 +98,65 @@ describe('audioCapturerChange', function () { } var resultFlag = false; - audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + ' ## CapChange on is called for element ' + i + ' ##'); + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + var devDescriptor = AudioCapturerChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioCapturerChangeInfoArray[i].capturerState == 1 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[CAPTURER-CHANGE-ON-001] ResultFlag for element '+i +' is: '+ resultFlag); + console.info(Tag + '[CAPTURER-CHANGE-ON-001] ResultFlag for element ' + i + ' is: ' + resultFlag); } } }); - await sleep (100); + await sleep(100); await audio.createAudioCapturer(AudioCapturerOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioCapturer Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioCapturer Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioCapturer Created : ERROR : '+err.message); + console.info(Tag + 'AudioCapturer Created : ERROR : ' + err.message); }); - await sleep(100); - + await sleep(100); + audioStreamManager.off('audioCapturerChange'); await sleep(100); - console.info(Tag+'[CAPTURER-CHANGE-ON-001] ######### CapturerChange Off is called #########'); - - await audioCap.release().then(async function () { - console.info(Tag+'Capturer release : SUCCESS'); + console.info(Tag + '[CAPTURER-CHANGE-ON-001] ######### CapturerChange Off is called #########'); + + await audioCap.release().then(async function () { + console.info(Tag + 'Capturer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Capturer release :ERROR : '+err.message); + console.info(Tag + 'Capturer release :ERROR : ' + err.message); }); - - expect(resultFlag).assertTrue(); + + expect(resultFlag).assertTrue(); done(); }) - /* * - * @tc.number : SUB_AUDIO_ON_CAPTURER_CHANGE_002 - * @tc.name : AudioCapturerChange - ON_STATE_RUNNING - * @tc.desc : AudioCapturerChange - ON_STATE_RUNNING - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - * */ - - - it('SUB_AUDIO_ON_CAPTURER_CHANGE_002', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_ON_CAPTURER_CHANGE_0200 + *@tc.name : AudioCapturerChange - ON_STATE_RUNNING + *@tc.desc : AudioCapturerChange - ON_STATE_RUNNING + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_ON_CAPTURER_CHANGE_0200', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -183,55 +181,55 @@ describe('audioCapturerChange', function () { await audio.createAudioCapturer(AudioCapturerOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioCapturer Created : Success : Stream Type: SUCCESS'); - }).catch((err) => { - console.info(Tag+'AudioCapturer Created : ERROR : '+err.message); - }); - - await sleep(100); - - audioStreamManagerCB.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { - for (let i=0;i { + console.info(Tag + 'AudioCapturer Created : ERROR : ' + err.message); + }); + + await sleep(100); + + audioStreamManagerCB.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + ' ## CapChange on is called for element ' + i + ' ##'); + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + var devDescriptor = AudioCapturerChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioCapturerChangeInfoArray[i].capturerState == 2 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[CAPTURER-CHANGE-ON-002] ResultFlag for element '+i +' is: '+ resultFlag); + console.info(Tag + '[CAPTURER-CHANGE-ON-002] ResultFlag for element ' + i + ' is: ' + resultFlag); } } }); - await sleep (100); + await sleep(100); await audioCap.start().then(async function () { - console.info(Tag+'Capturer started :SUCCESS '); + console.info(Tag + 'Capturer started :SUCCESS '); }).catch((err) => { - console.info(Tag+'Capturer start :ERROR : '+err.message); + console.info(Tag + 'Capturer start :ERROR : ' + err.message); }); - await sleep(100); + await sleep(100); audioStreamManagerCB.off('audioCapturerChange'); await sleep(100); - console.info(Tag+'[CAPTURER-CHANGE-ON-002] ######### CapturerChange Off is called #########'); + console.info(Tag + '[CAPTURER-CHANGE-ON-002] ######### CapturerChange Off is called #########'); await audioCap.release().then(async function () { - console.info(Tag+'Capturer release : SUCCESS'); + console.info(Tag + 'Capturer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Capturer release :ERROR : '+err.message); + console.info(Tag + 'Capturer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); @@ -239,17 +237,15 @@ describe('audioCapturerChange', function () { }) - /* * - * @tc.number : SUB_AUDIO_ON_CAPTURER_CHANGE_003 - * @tc.name : AudioCapturerChange - ON_STATE_STOPPED - * @tc.desc : AudioCapturerChange - ON_STATE_STOPPED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - * */ - - - it('SUB_AUDIO_ON_CAPTURER_CHANGE_003', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_ON_CAPTURER_CHANGE_0300 + *@tc.name : AudioCapturerChange - ON_STATE_STOPPED + *@tc.desc : AudioCapturerChange - ON_STATE_STOPPED + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_ON_CAPTURER_CHANGE_0300', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -274,63 +270,63 @@ describe('audioCapturerChange', function () { await audio.createAudioCapturer(AudioCapturerOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioCapturer Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioCapturer Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioCapturer Created : ERROR : '+err.message); + console.info(Tag + 'AudioCapturer Created : ERROR : ' + err.message); }); - + await audioCap.start().then(async function () { - console.info(Tag+'Capturer started :SUCCESS '); - }).catch((err) => { - console.info(Tag+'Capturer start :ERROR : '+err.message); - }); - - await sleep(100); - - audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { - for (let i=0;i { + console.info(Tag + 'Capturer start :ERROR : ' + err.message); + }); + + await sleep(100); + + audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + ' ## CapChange on is called for element ' + i + ' ##'); + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + var devDescriptor = AudioCapturerChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioCapturerChangeInfoArray[i].capturerState == 3 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[CAPTURER-CHANGE-ON-003] ResultFlag for element '+i +' is: '+ resultFlag); + console.info(Tag + '[CAPTURER-CHANGE-ON-003] ResultFlag for element ' + i + ' is: ' + resultFlag); } } }); - await sleep (100); + await sleep(100); await audioCap.stop().then(async function () { - console.info(Tag+'Capturer stopped : SUCCESS'); + console.info(Tag + 'Capturer stopped : SUCCESS'); }).catch((err) => { - console.info(Tag+'Capturer stop:ERROR : '+err.message); + console.info(Tag + 'Capturer stop:ERROR : ' + err.message); }); - await sleep(100); - + await sleep(100); + audioStreamManager.off('audioCapturerChange'); await sleep(100); - console.info(Tag+'[CAPTURER-CHANGE-ON-003] ######### CapturerChange Off is called #########'); + console.info(Tag + '[CAPTURER-CHANGE-ON-003] ######### CapturerChange Off is called #########'); await audioCap.release().then(async function () { - console.info(Tag+'Capturer release : SUCCESS'); + console.info(Tag + 'Capturer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Capturer release :ERROR : '+err.message); + console.info(Tag + 'Capturer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); @@ -338,15 +334,15 @@ describe('audioCapturerChange', function () { }) - /* * - * @tc.number : SUB_AUDIO_ON_CAPTURER_CHANGE_004 - * @tc.name : AudioCapturerChange - ON_STATE_RELEASED - * @tc.desc : AudioCapturerChange - ON_STATE_RELEASED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_ON_CAPTURER_CHANGE_004', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_ON_CAPTURER_CHANGE_0400 + *@tc.name : AudioCapturerChange - ON_STATE_RELEASED + *@tc.desc : AudioCapturerChange - ON_STATE_RELEASED + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_ON_CAPTURER_CHANGE_0400', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_2, @@ -370,79 +366,78 @@ describe('audioCapturerChange', function () { await audio.createAudioCapturer(AudioCapturerOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioCapturer Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioCapturer Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioCapturer Created : ERROR : '+err.message); + console.info(Tag + 'AudioCapturer Created : ERROR : ' + err.message); }); await audioCap.start().then(async function () { - console.info(Tag+'Capturer started :SUCCESS '); + console.info(Tag + 'Capturer started :SUCCESS '); }).catch((err) => { - console.info(Tag+'Capturer start :ERROR : '+err.message); + console.info(Tag + 'Capturer start :ERROR : ' + err.message); }); await audioCap.stop().then(async function () { - console.info(Tag+'Capturer stopped : SUCCESS'); - }).catch((err) => { - console.info(Tag+'Capturer stop:ERROR : '+err.message); - }); - - await sleep (100); - - audioStreamManagerCB.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { - for (let i=0;i { + console.info(Tag + 'Capturer stop:ERROR : ' + err.message); + }); + + await sleep(100); + + audioStreamManagerCB.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + ' ## CapChange on is called for element ' + i + ' ##'); + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + var devDescriptor = AudioCapturerChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioCapturerChangeInfoArray[i].capturerState == 4 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[CAPTURER-CHANGE-ON-004] ResultFlag for element '+i +' is: '+ resultFlag); + console.info(Tag + '[CAPTURER-CHANGE-ON-004] ResultFlag for element ' + i + ' is: ' + resultFlag); } } }); - await sleep (100); + await sleep(100); await audioCap.release().then(async function () { - console.info(Tag+'Capturer release : SUCCESS'); + console.info(Tag + 'Capturer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Capturer release :ERROR : '+err.message); + console.info(Tag + 'Capturer release :ERROR : ' + err.message); }); - await sleep (100); - + await sleep(100); + audioStreamManagerCB.off('audioCapturerChange'); await sleep(100); - console.info(Tag+'[CAPTURER-CHANGE-ON-004] ######### CapturerChange Off is called #########'); + console.info(Tag + '[CAPTURER-CHANGE-ON-004] ######### CapturerChange Off is called #########'); expect(resultFlag).assertTrue(); done(); - }) - - /** - * @tc.number : SUB_AUDIO_ON_CAPTURER_CHANGE_005 - * @tc.name : AudioCapturerChange - ON_SOURCE_TYPE_MIC - * @tc.desc : AudioCapturerChange - ON_SOURCE_TYPE_MIC - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 -**/ - - it('SUB_AUDIO_ON_CAPTURER_CHANGE_005', 0, async function (done) { + }) + + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_ON_CAPTURER_CHANGE_0500 + *@tc.name : AudioCapturerChange - ON_SOURCE_TYPE_MIC + *@tc.desc : AudioCapturerChange - ON_SOURCE_TYPE_MIC + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 0 + */ + it('SUB_MULTIMEDIA_AUDIO_ON_CAPTURER_CHANGE_0500', 0, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_2, @@ -463,68 +458,67 @@ describe('audioCapturerChange', function () { var resultFlag = false; var audioCap; - - audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + ' ## CapChange on is called for element ' + i + ' ##'); + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + var devDescriptor = AudioCapturerChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioCapturerChangeInfoArray[i].capturerInfo.source == 0 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[CAPTURER-CHANGE-ON-005] ResultFlag for element '+i +' is: '+ resultFlag); + console.info(Tag + '[CAPTURER-CHANGE-ON-005] ResultFlag for element ' + i + ' is: ' + resultFlag); } } }); - await sleep (100); - + await sleep(100); + await audio.createAudioCapturer(AudioCapturerOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioCapturer Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioCapturer Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioCapturer Created : ERROR : '+err.message); + console.info(Tag + 'AudioCapturer Created : ERROR : ' + err.message); }); - await sleep(100); - + await sleep(100); + audioStreamManager.off('audioCapturerChange'); await sleep(100); - console.info(Tag+'[CAPTURER-CHANGE-ON-005] ######### CapturerChange Off is called #########'); + console.info(Tag + '[CAPTURER-CHANGE-ON-005] ######### CapturerChange Off is called #########'); await audioCap.release().then(async function () { - console.info(Tag+'Capturer release : SUCCESS'); + console.info(Tag + 'Capturer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Capturer release :ERROR : '+err.message); + console.info(Tag + 'Capturer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); done(); }) - - /** - * @tc.number : SUB_AUDIO_ON_CAPTURER_CHANGE_006 - * @tc.name : AudioCapturerChange - ON_SOURCE_TYPE_VOICE_COMMUNICATION - * @tc.desc : AudioCapturerChange - ON_SOURCE_TYPE_VOICE_COMMUNICATION - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 -**/ - - it('SUB_AUDIO_ON_CAPTURER_CHANGE_006', 0, async function (done) { + + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_ON_CAPTURER_CHANGE_0600 + *@tc.name : AudioCapturerChange - ON_SOURCE_TYPE_VOICE_COMMUNICATION + *@tc.desc : AudioCapturerChange - ON_SOURCE_TYPE_VOICE_COMMUNICATION + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 0 + */ + it('SUB_MULTIMEDIA_AUDIO_ON_CAPTURER_CHANGE_0600', 0, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_2, @@ -546,51 +540,51 @@ describe('audioCapturerChange', function () { var audioCap; - audioStreamManagerCB.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + ' ## CapChange on is called for element ' + i + ' ##'); + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + var devDescriptor = AudioCapturerChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioCapturerChangeInfoArray[i].capturerInfo.source == 7 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[CAPTURER-CHANGE-ON-006] ResultFlag for element '+i +' is: '+ resultFlag); + console.info(Tag + '[CAPTURER-CHANGE-ON-006] ResultFlag for element ' + i + ' is: ' + resultFlag); } } }); - await sleep (100); - - await audio.createAudioCapturer(AudioCapturerOptions).then(async function (data) { + await sleep(100); + + await audio.createAudioCapturer(AudioCapturerOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioCapturer Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioCapturer Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioCapturer Created : ERROR : '+err.message); + console.info(Tag + 'AudioCapturer Created : ERROR : ' + err.message); }); - await sleep (100); - - audioStreamManagerCB.off('audioCapturerChange'); await sleep(100); - console.info(Tag+'[CAPTURER-CHANGE-ON-006] ######### CapturerChange Off is called #########'); - - + + audioStreamManagerCB.off('audioCapturerChange'); + await sleep(100); + console.info(Tag + '[CAPTURER-CHANGE-ON-006] ######### CapturerChange Off is called #########'); + + await audioCap.release().then(async function () { - console.info(Tag+'Capturer release : SUCCESS'); + console.info(Tag + 'Capturer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Capturer release :ERROR : '+err.message); + console.info(Tag + 'Capturer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); @@ -598,16 +592,16 @@ describe('audioCapturerChange', function () { }) - /* * - * @tc.number : SUB_AUDIO_ON_CAPTURER_CHANGE_007 - * @tc.name : AudioCapturerChange - STREAMID - * @tc.desc : AudioCapturerChange - STREAMID - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_ON_CAPTURER_CHANGE_007', 0, async function (done) { - var audioCap ; + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_ON_CAPTURER_CHANGE_0700 + *@tc.name : AudioCapturerChange - STREAMID + *@tc.desc : AudioCapturerChange - STREAMID + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 0 + */ + it('SUB_MULTIMEDIA_AUDIO_ON_CAPTURER_CHANGE_0700', 0, async function (done) { + var audioCap; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_2, @@ -626,67 +620,67 @@ describe('audioCapturerChange', function () { } var resultFlag = false; - audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + ' ## CapChange on is called for element ' + i + ' ##'); + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + var devDescriptor = AudioCapturerChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioCapturerChangeInfoArray[i].streamId != undefined && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[CAPTURER-CHANGE-ON-007] ResultFlag for element '+i +' is: '+ resultFlag); + console.info(Tag + '[CAPTURER-CHANGE-ON-007] ResultFlag for element ' + i + ' is: ' + resultFlag); } } }); - await sleep (100); + await sleep(100); await audio.createAudioCapturer(AudioCapturerOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioCapturer Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioCapturer Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioCapturer Created : ERROR : '+err.message); + console.info(Tag + 'AudioCapturer Created : ERROR : ' + err.message); }); - await sleep(100); - + await sleep(100); + audioStreamManager.off('audioCapturerChange'); await sleep(100); - console.info(Tag+'[CAPTURER-CHANGE-ON-007] ######### CapturerChange Off is called #########'); - - await audioCap.release().then(async function () { - console.info(Tag+'Capturer release : SUCCESS'); + console.info(Tag + '[CAPTURER-CHANGE-ON-007] ######### CapturerChange Off is called #########'); + + await audioCap.release().then(async function () { + console.info(Tag + 'Capturer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Capturer release :ERROR : '+err.message); + console.info(Tag + 'Capturer release :ERROR : ' + err.message); }); - - expect(resultFlag).assertTrue(); + + expect(resultFlag).assertTrue(); done(); }) - - /* * - * @tc.number : SUB_AUDIO_ON_CAPTURER_CHANGE_008 - * @tc.name : AudioCapturerChange - CLIENTUID AND CAPTURERFLAG - * @tc.desc : AudioCapturerChange - CLIENTUID AND CAPTURERFLAG - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_ON_CAPTURER_CHANGE_008', 0, async function (done) { - var audioCap ; + + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_ON_CAPTURER_CHANGE_0800 + *@tc.name : AudioCapturerChange - CLIENTUID AND CAPTURERFLAG + *@tc.desc : AudioCapturerChange - CLIENTUID AND CAPTURERFLAG + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_ON_CAPTURER_CHANGE_0800', 2, async function (done) { + var audioCap; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_2, @@ -705,68 +699,68 @@ describe('audioCapturerChange', function () { } var resultFlag = false; - audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + ' ## CapChange on is called for element ' + i + ' ##'); + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + var clientUid = AudioCapturerChangeInfoArray[i].clientUid; + var capFlags = AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags; + var devDescriptor = AudioCapturerChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (clientUid != undefined && capFlags == 0 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[CAPTURER-CHANGE-ON-008] ResultFlag for element '+i +' is: '+ resultFlag); + console.info(Tag + '[CAPTURER-CHANGE-ON-008] ResultFlag for element ' + i + ' is: ' + resultFlag); } } }); - await sleep (100); + await sleep(100); await audio.createAudioCapturer(AudioCapturerOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioCapturer Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioCapturer Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioCapturer Created : ERROR : '+err.message); + console.info(Tag + 'AudioCapturer Created : ERROR : ' + err.message); }); - await sleep(100); - + await sleep(100); + audioStreamManager.off('audioCapturerChange'); await sleep(100); - console.info(Tag+'[CAPTURER-CHANGE-ON-008] ######### CapturerChange Off is called #########'); - - await audioCap.release().then(async function () { - console.info(Tag+'Capturer release : SUCCESS'); + console.info(Tag + '[CAPTURER-CHANGE-ON-008] ######### CapturerChange Off is called #########'); + + await audioCap.release().then(async function () { + console.info(Tag + 'Capturer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Capturer release :ERROR : '+err.message); + console.info(Tag + 'Capturer release :ERROR : ' + err.message); }); - - expect(resultFlag).assertTrue(); + + expect(resultFlag).assertTrue(); done(); }) - /* * - * @tc.number : SUB_AUDIO_ON_CAPTURER_CHANGE_009 - * @tc.name : AudioCapturerChange - DeviceDescriptor - * @tc.desc : AudioCapturerChange - DeviceDescriptor - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_ON_CAPTURER_CHANGE_009', 0, async function (done) { - var audioCap ; + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_ON_CAPTURER_CHANGE_0900 + *@tc.name : AudioCapturerChange - DeviceDescriptor + *@tc.desc : AudioCapturerChange - DeviceDescriptor + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_ON_CAPTURER_CHANGE_0900', 2, async function (done) { + var audioCap; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_2, @@ -785,72 +779,70 @@ describe('audioCapturerChange', function () { } var resultFlag = false; - audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { - for (let i=0;i 0 && dType == 15 && dRole == 1 && sRate!= null && cCount != null && cMask != null) { - resultFlag = true; - } - } + audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + ' ## CapChange on is called for element ' + i + ' ##'); + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + var Id = AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id; + var dType = AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType; + var dRole = AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole; + var sRate = AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]; + var cCount = AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]; + var cMask = AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks; + console.info(Tag + 'Id:' + i + ':' + Id); + console.info(Tag + 'Type:' + i + ':' + dType); + console.info(Tag + 'Role:' + i + ':' + dRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + sRate); + console.info(Tag + 'CC:' + i + ':' + cCount); + console.info(Tag + 'CM:' + i + ':' + cMask); + if (Id > 0 && dType == 15 && dRole == 1 && sRate != null && cCount != null && cMask != null) { + resultFlag = true; + } + } } }); - await sleep (100); + await sleep(100); await audio.createAudioCapturer(AudioCapturerOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioCapturer Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioCapturer Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioCapturer Created : ERROR : '+err.message); + console.info(Tag + 'AudioCapturer Created : ERROR : ' + err.message); }); - await sleep(100); - + await sleep(100); + audioStreamManager.off('audioCapturerChange'); await sleep(100); - console.info(Tag+'[CAPTURER-CHANGE-ON-009] ######### CapturerChange Off is called #########'); - - await audioCap.release().then(async function () { - console.info(Tag+'Capturer release : SUCCESS'); + console.info(Tag + '[CAPTURER-CHANGE-ON-009] ######### CapturerChange Off is called #########'); + + await audioCap.release().then(async function () { + console.info(Tag + 'Capturer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Capturer release :ERROR : '+err.message); + console.info(Tag + 'Capturer release :ERROR : ' + err.message); }); - - expect(resultFlag).assertTrue(); + + expect(resultFlag).assertTrue(); done(); }) - - /* * - * @tc.number : SUB_AUDIO_OFF_CAPTURER_CHANGE_001 - * @tc.name : AudioCapturerChange - OFF_STATE_PREPARED - * @tc.desc : AudioCapturerChange - OFF_STATE_PREPARED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - * */ - - it('SUB_AUDIO_OFF_CAPTURER_CHANGE_001', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_OFF_CAPTURER_CHANGE_0100 + *@tc.name : AudioCapturerChange - OFF_STATE_PREPARED + *@tc.desc : AudioCapturerChange - OFF_STATE_PREPARED + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('SUB_MULTIMEDIA_AUDIO_OFF_CAPTURER_CHANGE_0100', 1, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -873,45 +865,45 @@ describe('audioCapturerChange', function () { var audioCap; - audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + ' ## CapChange on is called for element ' + i + ' ##'); + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } resultFlag = false; } }); - await sleep (100); + await sleep(100); audioStreamManager.off('audioCapturerChange'); await sleep(100); - console.info(Tag+'[CAPTURER-CHANGE-OFF-001] ######### CapturerChange Off is called #########'); - console.info(Tag+'[CAPTURER-CHANGE-OFF-001] ResultFlag is: '+ resultFlag); + console.info(Tag + '[CAPTURER-CHANGE-OFF-001] ######### CapturerChange Off is called #########'); + console.info(Tag + '[CAPTURER-CHANGE-OFF-001] ResultFlag is: ' + resultFlag); await audio.createAudioCapturer(AudioCapturerOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioCapturer Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioCapturer Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioCapturer Created : ERROR : '+err.message); + console.info(Tag + 'AudioCapturer Created : ERROR : ' + err.message); }); await audioCap.release().then(async function () { - console.info(Tag+'Capturer release : SUCCESS'); + console.info(Tag + 'Capturer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Capturer release :ERROR : '+err.message); + console.info(Tag + 'Capturer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); @@ -919,17 +911,15 @@ describe('audioCapturerChange', function () { }) - /* * - * @tc.number : SUB_AUDIO_OFF_CAPTURER_CHANGE_002 - * @tc.name : AudioCapturerChange - OFF_STATE_RUNNING - * @tc.desc : AudioCapturerChange - OFF_STATE_RUNNING - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - * */ - - - it('SUB_AUDIO_OFF_CAPTURER_CHANGE_002', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_OFF_CAPTURER_CHANGE_0200 + *@tc.name : AudioCapturerChange - OFF_STATE_RUNNING + *@tc.desc : AudioCapturerChange - OFF_STATE_RUNNING + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('SUB_MULTIMEDIA_AUDIO_OFF_CAPTURER_CHANGE_0200', 1, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -953,51 +943,51 @@ describe('audioCapturerChange', function () { await audio.createAudioCapturer(AudioCapturerOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioCapturer Created : Success : Stream Type: SUCCESS'); - }).catch((err) => { - console.info(Tag+'AudioCapturer Created : ERROR : '+err.message); - }); - - await sleep (100); - - audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { - for (let i=0;i { + console.info(Tag + 'AudioCapturer Created : ERROR : ' + err.message); + }); + + await sleep(100); + + audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + ' ## CapChange on is called for element ' + i + ' ##'); + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } resultFlag = false; } }); - await sleep (100); + await sleep(100); audioStreamManager.off('audioCapturerChange'); await sleep(100); - console.info(Tag+'[CAPTURER-CHANGE-OFF-002] ######### CapturerChange Off is called #########'); - console.info(Tag+'[CAPTURER-CHANGE-OFF-002] ResultFlag is: '+ resultFlag); + console.info(Tag + '[CAPTURER-CHANGE-OFF-002] ######### CapturerChange Off is called #########'); + console.info(Tag + '[CAPTURER-CHANGE-OFF-002] ResultFlag is: ' + resultFlag); await audioCap.start().then(async function () { - console.info(Tag+'Capturer started :SUCCESS '); + console.info(Tag + 'Capturer started :SUCCESS '); }).catch((err) => { - console.info(Tag+'Capturer start :ERROR : '+err.message); + console.info(Tag + 'Capturer start :ERROR : ' + err.message); }); await audioCap.release().then(async function () { - console.info(Tag+'Capturer release : SUCCESS'); + console.info(Tag + 'Capturer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Capturer release :ERROR : '+err.message); + console.info(Tag + 'Capturer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); @@ -1005,17 +995,15 @@ describe('audioCapturerChange', function () { }) - /* * - * @tc.number : SUB_AUDIO_OFF_CAPTURER_CHANGE_003 - * @tc.name : AudioCapturerChange - OFF_STATE_STOPPED - * @tc.desc : AudioCapturerChange - OFF_STATE_STOPPED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - * */ - - - it('SUB_AUDIO_OFF_CAPTURER_CHANGE_003', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_OFF_CAPTURER_CHANGE_0300 + *@tc.name : AudioCapturerChange - OFF_STATE_STOPPED + *@tc.desc : AudioCapturerChange - OFF_STATE_STOPPED + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_OFF_CAPTURER_CHANGE_0300', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -1039,57 +1027,57 @@ describe('audioCapturerChange', function () { await audio.createAudioCapturer(AudioCapturerOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioCapturer Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioCapturer Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioCapturer Created : ERROR : '+err.message); + console.info(Tag + 'AudioCapturer Created : ERROR : ' + err.message); }); await audioCap.start().then(async function () { - console.info(Tag+'Capturer started :SUCCESS '); - }).catch((err) => { - console.info(Tag+'Capturer start :ERROR : '+err.message); - }); - - await sleep (100); - - audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { - for (let i=0;i { + console.info(Tag + 'Capturer start :ERROR : ' + err.message); + }); + + await sleep(100); + + audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + ' ## CapChange on is called for element ' + i + ' ##'); + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } resultFlag = false; } }); - await sleep (100); + await sleep(100); audioStreamManager.off('audioCapturerChange'); await sleep(100); - console.info(Tag+'[CAPTURER-CHANGE-OFF-003] ######### CapturerChange Off is called #########'); - console.info(Tag+'[CAPTURER-CHANGE-OFF-003] ResultFlag is: '+ resultFlag); + console.info(Tag + '[CAPTURER-CHANGE-OFF-003] ######### CapturerChange Off is called #########'); + console.info(Tag + '[CAPTURER-CHANGE-OFF-003] ResultFlag is: ' + resultFlag); await audioCap.stop().then(async function () { - console.info(Tag+'Capturer stopped : SUCCESS'); + console.info(Tag + 'Capturer stopped : SUCCESS'); }).catch((err) => { - console.info(Tag+'Capturer stop:ERROR : '+err.message); + console.info(Tag + 'Capturer stop:ERROR : ' + err.message); }); await audioCap.release().then(async function () { - console.info(Tag+'Capturer release : SUCCESS'); + console.info(Tag + 'Capturer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Capturer release :ERROR : '+err.message); + console.info(Tag + 'Capturer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); @@ -1098,17 +1086,15 @@ describe('audioCapturerChange', function () { }) - /* * - * @tc.number : SUB_AUDIO_OFF_CAPTURER_CHANGE_004 - * @tc.name : AudioCapturerChange - OFF_STATE_RELEASED - * @tc.desc : AudioCapturerChange - OFF_STATE_RELEASED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - * */ - - - it('SUB_AUDIO_OFF_CAPTURER_CHANGE_004', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_OFF_CAPTURER_CHANGE_0400 + *@tc.name : AudioCapturerChange - OFF_STATE_RELEASED + *@tc.desc : AudioCapturerChange - OFF_STATE_RELEASED + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_OFF_CAPTURER_CHANGE_0400', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -1132,75 +1118,73 @@ describe('audioCapturerChange', function () { await audio.createAudioCapturer(AudioCapturerOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioCapturer Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioCapturer Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioCapturer Created : ERROR : '+err.message); + console.info(Tag + 'AudioCapturer Created : ERROR : ' + err.message); }); await audioCap.start().then(async function () { - console.info(Tag+'Capturer started :SUCCESS '); + console.info(Tag + 'Capturer started :SUCCESS '); }).catch((err) => { - console.info(Tag+'Capturer start :ERROR : '+err.message); + console.info(Tag + 'Capturer start :ERROR : ' + err.message); }); await audioCap.stop().then(async function () { - console.info(Tag+'Capturer stopped : SUCCESS'); - }).catch((err) => { - console.info(Tag+'Capturer stop:ERROR : '+err.message); - }); - - await sleep (100); - - audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { - for (let i=0;i { + console.info(Tag + 'Capturer stop:ERROR : ' + err.message); + }); + + await sleep(100); + + audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + ' ## CapChange on is called for element ' + i + ' ##'); + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } resultFlag = false; } }); - await sleep (100); + await sleep(100); audioStreamManager.off('audioCapturerChange'); await sleep(100); console.info('AFCapturerChangeLog: [CAP-CH-OFF-004] ## CapCh Off is called ##'); - console.info(Tag+'[CAPTURER-CHANGE-OFF-004] ResultFlag is: '+ resultFlag); + console.info(Tag + '[CAPTURER-CHANGE-OFF-004] ResultFlag is: ' + resultFlag); await audioCap.release().then(async function () { - console.info(Tag+'Capturer release : SUCCESS'); + console.info(Tag + 'Capturer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Capturer release :ERROR : '+err.message); + console.info(Tag + 'Capturer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); done(); }) - - /* * - * @tc.number : SUB_AUDIO_OFF_CAPTURER_CHANGE_005 - * @tc.name : AudioCapturerChange - DeviceDescriptor - * @tc.desc : AudioCapturerChange - DeviceDescriptor - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - * */ - - it('SUB_AUDIO_OFF_CAPTURER_CHANGE_005', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_OFF_CAPTURER_CHANGE_0500 + *@tc.name : AudioCapturerChange - DeviceDescriptor + *@tc.desc : AudioCapturerChange - DeviceDescriptor + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_OFF_CAPTURER_CHANGE_0500', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -1223,70 +1207,70 @@ describe('audioCapturerChange', function () { var audioCap; - audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { - for (let i=0;i 0 && dType == 15 && dRole == 1 && sRate!= null && cCount != null && cMask != null) { - resultFlag = false; - } - } + audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + ' ## CapChange on is called for element ' + i + ' ##'); + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + var Id = AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id; + var dType = AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType; + var dRole = AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole; + var sRate = AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]; + var cCount = AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]; + var cMask = AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks; + console.info(Tag + 'Id:' + i + ':' + Id); + console.info(Tag + 'Type:' + i + ':' + dType); + console.info(Tag + 'Role:' + i + ':' + dRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + sRate); + console.info(Tag + 'CC:' + i + ':' + cCount); + console.info(Tag + 'CM:' + i + ':' + cMask); + if (Id > 0 && dType == 15 && dRole == 1 && sRate != null && cCount != null && cMask != null) { + resultFlag = false; + } + } } }); - await sleep (100); + await sleep(100); audioStreamManager.off('audioCapturerChange'); await sleep(100); - console.info(Tag+'[CAPTURER-CHANGE-OFF-005] ######### CapturerChange Off is called #########'); - console.info(Tag+'[CAPTURER-CHANGE-OFF-005] ResultFlag is: '+ resultFlag); + console.info(Tag + '[CAPTURER-CHANGE-OFF-005] ######### CapturerChange Off is called #########'); + console.info(Tag + '[CAPTURER-CHANGE-OFF-005] ResultFlag is: ' + resultFlag); await audio.createAudioCapturer(AudioCapturerOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioCapturer Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioCapturer Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioCapturer Created : ERROR : '+err.message); + console.info(Tag + 'AudioCapturer Created : ERROR : ' + err.message); }); await audioCap.release().then(async function () { - console.info(Tag+'Capturer release : SUCCESS'); + console.info(Tag + 'Capturer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Capturer release :ERROR : '+err.message); + console.info(Tag + 'Capturer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); done(); }) - - /* * - * @tc.number : SUB_AUDIO_GET_CAPTURER_CHANGE_PROMISE_001 - * @tc.name : AudioCapturerChange - GET_STATE_PREPARED - * @tc.desc : AudioCapturerChange - GET_STATE_PREPARED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_GET_CAPTURER_CHANGE_PROMISE_001', 0, async function (done) { - var audioCap ; + + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_GET_CAPTURER_CHANGE_PROMISE_0100 + *@tc.name : AudioCapturerChange - GET_STATE_PREPARED + *@tc.desc : AudioCapturerChange - GET_STATE_PREPARED + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_AUDIO_GET_CAPTURER_CHANGE_PROMISE_0100', 2, async function (done) { + var audioCap; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_2, @@ -1305,93 +1289,91 @@ describe('audioCapturerChange', function () { } var resultFlag = false; - audioStreamManagerCB.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + ' ## CapChange on is called for element ' + i + ' ##'); + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } } }); - await sleep (100); + await sleep(100); await audio.createAudioCapturer(AudioCapturerOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioCapturer Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioCapturer Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioCapturer Created : ERROR : '+err.message); + console.info(Tag + 'AudioCapturer Created : ERROR : ' + err.message); }); - await sleep(100); - - await audioStreamManagerCB.getCurrentAudioCapturerInfoArray().then( function (AudioCapturerChangeInfoArray) { + await sleep(100); + + await audioStreamManagerCB.getCurrentAudioCapturerInfoArray().then(function (AudioCapturerChangeInfoArray) { console.info('AFCapturerChangeLog: [GET_CAP_STA_1_PR] **** Get Promise Called ****'); - if (AudioCapturerChangeInfoArray!=null) { - for (let i=0;i { - console.log(Tag+'getCurrentAudioCapturerInfoArray :ERROR: '+err.message); + console.log(Tag + 'getCurrentAudioCapturerInfoArray :ERROR: ' + err.message); resultFlag = false; }); - + audioStreamManagerCB.off('audioCapturerChange'); await sleep(100); - console.info(Tag+'[GET_CAPTURER_STATE_1_PR] ## CapCh Off is called ##'); - - await audioCap.release().then(async function () { - console.info(Tag+'Capturer release : SUCCESS'); + console.info(Tag + '[GET_CAPTURER_STATE_1_PR] ## CapCh Off is called ##'); + + await audioCap.release().then(async function () { + console.info(Tag + 'Capturer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Capturer release :ERROR : '+err.message); + console.info(Tag + 'Capturer release :ERROR : ' + err.message); }); - - expect(resultFlag).assertTrue(); + + expect(resultFlag).assertTrue(); done(); }) - /* * - * @tc.number : SUB_AUDIO_GET_CAPTURER_CHANGE_PROMISE_002 - * @tc.name : AudioCapturerChange - GET_STATE_RUNNING - * @tc.desc : AudioCapturerChange - GET_STATE_RUNNING - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - * */ - - - it('SUB_AUDIO_GET_CAPTURER_CHANGE_PROMISE_002', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_PROMISE_0200 + *@tc.name : AudioCapturerChange - GET_STATE_RUNNING + *@tc.desc : AudioCapturerChange - GET_STATE_RUNNING + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_PROMISE_0200', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -1416,82 +1398,82 @@ describe('audioCapturerChange', function () { await audio.createAudioCapturer(AudioCapturerOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioCapturer Created : Success : Stream Type: SUCCESS'); - }).catch((err) => { - console.info(Tag+'AudioCapturer Created : ERROR : '+err.message); - }); - - await sleep(100); - - audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { - for (let i=0;i { + console.info(Tag + 'AudioCapturer Created : ERROR : ' + err.message); + }); + + await sleep(100); + + audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + ' ## CapChange on is called for element ' + i + ' ##'); + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } } }); - await sleep (100); + await sleep(100); await audioCap.start().then(async function () { - console.info(Tag+'Capturer started :SUCCESS '); - }).catch((err) => { - console.info(Tag+'Capturer start :ERROR : '+err.message); - }); - - await sleep(100); - - await audioStreamManager.getCurrentAudioCapturerInfoArray().then( function (AudioCapturerChangeInfoArray) { - console.info(Tag+'[GET_CAPTURER_STATE_2_PROMISE] **** Get Promise Called ****'); - if (AudioCapturerChangeInfoArray!=null) { - for (let i=0;i { + console.info(Tag + 'Capturer start :ERROR : ' + err.message); + }); + + await sleep(100); + + await audioStreamManager.getCurrentAudioCapturerInfoArray().then(function (AudioCapturerChangeInfoArray) { + console.info(Tag + '[GET_CAPTURER_STATE_2_PROMISE] **** Get Promise Called ****'); + if (AudioCapturerChangeInfoArray != null) { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + var devDescriptor = AudioCapturerChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioCapturerChangeInfoArray[i].capturerState == 2 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'State : '+AudioCapturerChangeInfoArray[i].capturerState); + console.info(Tag + 'State : ' + AudioCapturerChangeInfoArray[i].capturerState); } } } }).catch((err) => { - console.log(Tag+'getCurrentAudioCapturerInfoArray :ERROR: '+err.message); + console.log(Tag + 'getCurrentAudioCapturerInfoArray :ERROR: ' + err.message); resultFlag = false; }); - + audioStreamManager.off('audioCapturerChange'); await sleep(100); - console.info(Tag+'[GET_CAPTURER_STATE_2_PROMISE] ######### CapturerChange Off is called #########'); + console.info(Tag + '[GET_CAPTURER_STATE_2_PROMISE] ######### CapturerChange Off is called #########'); await audioCap.release().then(async function () { - console.info(Tag+'Capturer release : SUCCESS'); + console.info(Tag + 'Capturer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Capturer release :ERROR : '+err.message); + console.info(Tag + 'Capturer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); @@ -1499,17 +1481,15 @@ describe('audioCapturerChange', function () { }) - /* * - * @tc.number : SUB_AUDIO_GET_CAPTURER_CHANGE_PROMISE_003 - * @tc.name : AudioCapturerChange - GET_STATE_STOPPED - * @tc.desc : AudioCapturerChange - GET_STATE_STOPPED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - * */ - - - it('SUB_AUDIO_GET_CAPTURER_CHANGE_PROMISE_003', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_PROMISE_0300 + *@tc.name : AudioCapturerChange - GET_STATE_STOPPED + *@tc.desc : AudioCapturerChange - GET_STATE_STOPPED + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_PROMISE_0300', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -1534,106 +1514,106 @@ describe('audioCapturerChange', function () { await audio.createAudioCapturer(AudioCapturerOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioCapturer Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioCapturer Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioCapturer Created : ERROR : '+err.message); + console.info(Tag + 'AudioCapturer Created : ERROR : ' + err.message); }); - + await audioCap.start().then(async function () { - console.info(Tag+'Capturer started :SUCCESS '); - }).catch((err) => { - console.info(Tag+'Capturer start :ERROR : '+err.message); - }); - - await sleep(100); - - audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { - for (let i=0;i { + console.info(Tag + 'Capturer start :ERROR : ' + err.message); + }); + + await sleep(100); + + audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + ' ## CapChange on is called for element ' + i + ' ##'); + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } } }); - await sleep (100); + await sleep(100); await audioCap.stop().then(async function () { - console.info(Tag+'Capturer stopped : SUCCESS'); - }).catch((err) => { - console.info(Tag+'Capturer stop:ERROR : '+err.message); - }); - - await sleep(100); - - await audioStreamManager.getCurrentAudioCapturerInfoArray().then( function (AudioCapturerChangeInfoArray) { - console.info(Tag+'[GET_CAPTURER_STATE_3_PROMISE] **** Get Promise Called ****'); - if (AudioCapturerChangeInfoArray!=null) { - for (let i=0;i { + console.info(Tag + 'Capturer stop:ERROR : ' + err.message); + }); + + await sleep(100); + + await audioStreamManager.getCurrentAudioCapturerInfoArray().then(function (AudioCapturerChangeInfoArray) { + console.info(Tag + '[GET_CAPTURER_STATE_3_PROMISE] **** Get Promise Called ****'); + if (AudioCapturerChangeInfoArray != null) { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + var devDescriptor = AudioCapturerChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioCapturerChangeInfoArray[i].capturerState == 3 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'State : '+AudioCapturerChangeInfoArray[i].capturerState); + console.info(Tag + 'State : ' + AudioCapturerChangeInfoArray[i].capturerState); } } } }).catch((err) => { - console.log(Tag+'getCurrentAudioCapturerInfoArray :ERROR: '+err.message); + console.log(Tag + 'getCurrentAudioCapturerInfoArray :ERROR: ' + err.message); resultFlag = false; }); - + audioStreamManager.off('audioCapturerChange'); await sleep(100); - console.info(Tag+'[GET_CAPTURER_STATE_3_PROMISE] ######### CapturerChange Off is called #########'); + console.info(Tag + '[GET_CAPTURER_STATE_3_PROMISE] ######### CapturerChange Off is called #########'); await audioCap.release().then(async function () { - console.info(Tag+'Capturer release : SUCCESS'); + console.info(Tag + 'Capturer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Capturer release :ERROR : '+err.message); + console.info(Tag + 'Capturer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); done(); }) - - /* * - * @tc.number : SUB_AUDIO_GET_CAPTURER_CHANGE_PROMISE_004 - * @tc.name : AudioCapturerChange - DEVICE DESCRIPTOR - * @tc.desc : AudioCapturerChange - DEVICE DESCRIPTOR - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_GET_CAPTURER_CHANGE_PROMISE_004', 0, async function (done) { - var audioCap ; + + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_PROMISE_0400 + *@tc.name : AudioCapturerChange - DEVICE DESCRIPTOR + *@tc.desc : AudioCapturerChange - DEVICE DESCRIPTOR + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_PROMISE_0400', 2, async function (done) { + var audioCap; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_2, @@ -1652,96 +1632,96 @@ describe('audioCapturerChange', function () { } var resultFlag = false; - audioStreamManagerCB.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + ' ## CapChange on is called for element ' + i + ' ##'); + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } } }); - await sleep (100); + await sleep(100); await audio.createAudioCapturer(AudioCapturerOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioCapturer Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioCapturer Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioCapturer Created : ERROR : '+err.message); + console.info(Tag + 'AudioCapturer Created : ERROR : ' + err.message); }); - await sleep(100); - - await audioStreamManagerCB.getCurrentAudioCapturerInfoArray().then( function (AudioCapturerChangeInfoArray) { + await sleep(100); + + await audioStreamManagerCB.getCurrentAudioCapturerInfoArray().then(function (AudioCapturerChangeInfoArray) { console.info('AFCapturerChangeLog: [GET_CAP_DD_PR] **** Get Promise Called ****'); - if (AudioCapturerChangeInfoArray!=null) { - for (let i=0;i 0 && dType == 15 && dRole == 1 && sRate!= null && cCount != null && cMask != null) { - resultFlag = true; - } - } + if (AudioCapturerChangeInfoArray != null) { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + var Id = AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id; + var dType = AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType; + var dRole = AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole; + var sRate = AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]; + var cCount = AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]; + var cMask = AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks; + console.info(Tag + 'Id:' + i + ':' + Id); + console.info(Tag + 'Type:' + i + ':' + dType); + console.info(Tag + 'Role:' + i + ':' + dRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + sRate); + console.info(Tag + 'CC:' + i + ':' + cCount); + console.info(Tag + 'CM:' + i + ':' + cMask); + if (Id > 0 && dType == 15 && dRole == 1 && sRate != null && cCount != null && cMask != null) { + resultFlag = true; + } + } } } }).catch((err) => { - console.log(Tag+'getCurrentAudioCapturerInfoArray :ERROR: '+err.message); + console.log(Tag + 'getCurrentAudioCapturerInfoArray :ERROR: ' + err.message); resultFlag = false; }); - + audioStreamManagerCB.off('audioCapturerChange'); await sleep(100); - console.info(Tag+'[GET_CAPTURER_DD_PR] ## CapCh Off is called ##'); - - await audioCap.release().then(async function () { - console.info(Tag+'Capturer release : SUCCESS'); + console.info(Tag + '[GET_CAPTURER_DD_PR] ## CapCh Off is called ##'); + + await audioCap.release().then(async function () { + console.info(Tag + 'Capturer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Capturer release :ERROR : '+err.message); + console.info(Tag + 'Capturer release :ERROR : ' + err.message); }); - - expect(resultFlag).assertTrue(); + + expect(resultFlag).assertTrue(); done(); }) - - /* * - * @tc.number : SUB_AUDIO_GET_CAPTURER_CHANGE_CALLBACK_001 - * @tc.name : AudioCapturerChange - GET_STATE_PREPARED - * @tc.desc : AudioCapturerChange - GET_STATE_PREPARED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_GET_CAPTURER_CHANGE_CALLBACK_001', 0, async function (done) { - var audioCap ; + + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_CALLBACK_0100 + *@tc.name : AudioCapturerChange - GET_STATE_PREPARED + *@tc.desc : AudioCapturerChange - GET_STATE_PREPARED + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_CALLBACK_0100', 2, async function (done) { + var audioCap; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_2, @@ -1760,66 +1740,66 @@ describe('audioCapturerChange', function () { } var resultFlag = false; - audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + ' ## CapChange on is called for element ' + i + ' ##'); + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } + } + }); + await sleep(100); await audio.createAudioCapturer(AudioCapturerOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioCapturer Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioCapturer Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioCapturer Created : ERROR : '+err.message); + console.info(Tag + 'AudioCapturer Created : ERROR : ' + err.message); }); - await sleep(100); - - audioStreamManager.getCurrentAudioCapturerInfoArray(async (err, AudioCapturerChangeInfoArray) => { - console.info(Tag+'[GET_CAPTURER_STATE_1_CALLBACK] **** Get Callback Called ****'); + await sleep(100); + + audioStreamManager.getCurrentAudioCapturerInfoArray(async (err, AudioCapturerChangeInfoArray) => { + console.info(Tag + '[GET_CAPTURER_STATE_1_CALLBACK] **** Get Callback Called ****'); await sleep(100); if (err) { - console.log(Tag+'getCurrentAudioCapturerInfoArray :ERROR: '+err.message); + console.log(Tag + 'getCurrentAudioCapturerInfoArray :ERROR: ' + err.message); resultFlag = false; } else { - if (AudioCapturerChangeInfoArray !=null) { - for (let i=0;i { - console.info(Tag+'Capturer release :ERROR : '+err.message); + console.info(Tag + 'Capturer release :ERROR : ' + err.message); }); - - expect(resultFlag).assertTrue(); + + expect(resultFlag).assertTrue(); done(); }) - /* * - * @tc.number : SUB_AUDIO_GET_CAPTURER_CHANGE_CALLBACK_002 - * @tc.name : AudioCapturerChange - GET_STATE_RUNNING - * @tc.desc : AudioCapturerChange - GET_STATE_RUNNING - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - * */ - - - it('SUB_AUDIO_GET_CAPTURER_CHANGE_CALLBACK_002', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_CALLBACK_0200 + *@tc.name : AudioCapturerChange - GET_STATE_RUNNING + *@tc.desc : AudioCapturerChange - GET_STATE_RUNNING + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_CALLBACK_0200', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -1877,72 +1855,72 @@ describe('audioCapturerChange', function () { await audio.createAudioCapturer(AudioCapturerOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioCapturer Created : Success : Stream Type: SUCCESS'); - }).catch((err) => { - console.info(Tag+'AudioCapturer Created : ERROR : '+err.message); - }); - - await sleep(100); - - audioStreamManagerCB.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { - for (let i=0;i { + console.info(Tag + 'AudioCapturer Created : ERROR : ' + err.message); + }); + + await sleep(100); + + audioStreamManagerCB.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + ' ## CapChange on is called for element ' + i + ' ##'); + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } } }); - await sleep (100); + await sleep(100); await audioCap.start().then(async function () { - console.info(Tag+'Capturer started :SUCCESS '); + console.info(Tag + 'Capturer started :SUCCESS '); }).catch((err) => { - console.info(Tag+'Capturer start :ERROR : '+err.message); + console.info(Tag + 'Capturer start :ERROR : ' + err.message); }); - await sleep(100); - - audioStreamManagerCB.getCurrentAudioCapturerInfoArray(async (err, AudioCapturerChangeInfoArray) => { - console.info(Tag+'[GET_CAPTURER_STATE_2_CALLBACK] **** Get Callback Called ****'); + await sleep(100); + + audioStreamManagerCB.getCurrentAudioCapturerInfoArray(async (err, AudioCapturerChangeInfoArray) => { + console.info(Tag + '[GET_CAPTURER_STATE_2_CALLBACK] **** Get Callback Called ****'); await sleep(100); if (err) { - console.log(Tag+'getCurrentAudioCapturerInfoArray :ERROR: '+err.message); + console.log(Tag + 'getCurrentAudioCapturerInfoArray :ERROR: ' + err.message); resultFlag = false; } else { - if (AudioCapturerChangeInfoArray !=null) { - for (let i=0;i { - console.info(Tag+'Capturer release :ERROR : '+err.message); + console.info(Tag + 'Capturer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); @@ -1966,17 +1944,15 @@ describe('audioCapturerChange', function () { }) - /* * - * @tc.number : SUB_AUDIO_GET_CAPTURER_CHANGE_CALLBACK_003 - * @tc.name : AudioCapturerChange - GET_STATE_STOPPED - * @tc.desc : AudioCapturerChange - GET_STATE_STOPPED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - * */ - - - it('SUB_AUDIO_GET_CAPTURER_CHANGE_CALLBACK_003', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_CALLBACK_0300 + *@tc.name : AudioCapturerChange - GET_STATE_STOPPED + *@tc.desc : AudioCapturerChange - GET_STATE_STOPPED + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_CALLBACK_0300', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -2001,79 +1977,79 @@ describe('audioCapturerChange', function () { await audio.createAudioCapturer(AudioCapturerOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioCapturer Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioCapturer Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioCapturer Created : ERROR : '+err.message); + console.info(Tag + 'AudioCapturer Created : ERROR : ' + err.message); }); - + await audioCap.start().then(async function () { - console.info(Tag+'Capturer started :SUCCESS '); - }).catch((err) => { - console.info(Tag+'Capturer start :ERROR : '+err.message); - }); - - await sleep(100); - - audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { - for (let i=0;i { + console.info(Tag + 'Capturer start :ERROR : ' + err.message); + }); + + await sleep(100); + + audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + ' ## CapChange on is called for element ' + i + ' ##'); + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } } }); - await sleep (100); + await sleep(100); await audioCap.stop().then(async function () { - console.info(Tag+'Capturer stopped : SUCCESS'); + console.info(Tag + 'Capturer stopped : SUCCESS'); }).catch((err) => { - console.info(Tag+'Capturer stop:ERROR : '+err.message); + console.info(Tag + 'Capturer stop:ERROR : ' + err.message); }); - await sleep(100); - - audioStreamManager.getCurrentAudioCapturerInfoArray(async (err, AudioCapturerChangeInfoArray) => { - console.info(Tag+'[GET_CAPTURER_STATE_3_CALLBACK] **** Get Callback Called ****'); + await sleep(100); + + audioStreamManager.getCurrentAudioCapturerInfoArray(async (err, AudioCapturerChangeInfoArray) => { + console.info(Tag + '[GET_CAPTURER_STATE_3_CALLBACK] **** Get Callback Called ****'); await sleep(100); if (err) { - console.log(Tag+'getCurrentAudioCapturerInfoArray :ERROR: '+err.message); + console.log(Tag + 'getCurrentAudioCapturerInfoArray :ERROR: ' + err.message); resultFlag = false; } else { - if (AudioCapturerChangeInfoArray !=null) { - for (let i=0;i { - console.info(Tag+'Capturer release :ERROR : '+err.message); + console.info(Tag + 'Capturer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); done(); }) - - /* * - * @tc.number : SUB_AUDIO_GET_CAPTURER_CHANGE_CALLBACK_004 - * @tc.name : AudioCapturerChange - DEVICE DESCRIPTOR - * @tc.desc : AudioCapturerChange - DEVICE DESCRIPTOR - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_GET_CAPTURER_CHANGE_CALLBACK_004', 0, async function (done) { - var audioCap ; + + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_CALLBACK_0400 + *@tc.name : AudioCapturerChange - DEVICE DESCRIPTOR + *@tc.desc : AudioCapturerChange - DEVICE DESCRIPTOR + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_GET_CAPTURER_CHANGE_CALLBACK_0400', 2, async function (done) { + var audioCap; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_2, @@ -2125,89 +2101,89 @@ describe('audioCapturerChange', function () { } var resultFlag = false; - audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + ' ## CapChange on is called for element ' + i + ' ##'); + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } + } + }); + await sleep(100); await audio.createAudioCapturer(AudioCapturerOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioCapturer Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioCapturer Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioCapturer Created : ERROR : '+err.message); + console.info(Tag + 'AudioCapturer Created : ERROR : ' + err.message); }); - await sleep(100); - - audioStreamManager.getCurrentAudioCapturerInfoArray(async (err, AudioCapturerChangeInfoArray) => { - console.info(Tag+'[GET_CAPTURER_DD_CALLBACK] **** Get Callback Called ****'); + await sleep(100); + + audioStreamManager.getCurrentAudioCapturerInfoArray(async (err, AudioCapturerChangeInfoArray) => { + console.info(Tag + '[GET_CAPTURER_DD_CALLBACK] **** Get Callback Called ****'); await sleep(100); if (err) { - console.log(Tag+'getCurrentAudioCapturerInfoArray :ERROR: '+err.message); + console.log(Tag + 'getCurrentAudioCapturerInfoArray :ERROR: ' + err.message); resultFlag = false; } else { - if (AudioCapturerChangeInfoArray !=null) { - for (let i=0;i 0 && dType == 15 && dRole == 1 && sRate!= null && cCount != null && cMask!=null){ - resultFlag = true; - } - } + if (AudioCapturerChangeInfoArray != null) { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(Tag + 'StrId for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].streamId); + console.info(Tag + 'CUid for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].clientUid); + console.info(Tag + 'Src for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.source); + console.info(Tag + 'Flag ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags); + console.info(Tag + 'State for ' + i + 'is:' + AudioCapturerChangeInfoArray[i].capturerState); + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + var Id = AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id; + var dType = AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType; + var dRole = AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole; + var sRate = AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]; + var cCount = AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]; + var cMask = AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks; + console.info(Tag + 'Id:' + i + ':' + Id); + console.info(Tag + 'Type:' + i + ':' + dType); + console.info(Tag + 'Role:' + i + ':' + dRole); + console.info(Tag + 'Nam:' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + '' + i + ':' + AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + sRate); + console.info(Tag + 'CC:' + i + ':' + cCount); + console.info(Tag + 'CM:' + i + ':' + cMask); + if (Id > 0 && dType == 15 && dRole == 1 && sRate != null && cCount != null && cMask != null) { + resultFlag = true; + } + } } } } }); await sleep(1000); - + audioStreamManager.off('audioCapturerChange'); await sleep(100); - console.info(Tag+'[GET_CAPTURER_DD_CALLBACK] ######### CapturerChange Off is called #########'); - - await audioCap.release().then(async function () { - console.info(Tag+'Capturer release : SUCCESS'); + console.info(Tag + '[GET_CAPTURER_DD_CALLBACK] ######### CapturerChange Off is called #########'); + + await audioCap.release().then(async function () { + console.info(Tag + 'Capturer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Capturer release :ERROR : '+err.message); + console.info(Tag + 'Capturer release :ERROR : ' + err.message); }); - - expect(resultFlag).assertTrue(); + + expect(resultFlag).assertTrue(); done(); }) diff --git a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioEventManagement.test.js b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioEventManagement.test.js index cd4fd7f9c9fd7c8d1f612a0b80fdb2d12209c64a..2d0583cc01eaf00efed89074a7cd868e6f72375c 100644 --- a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioEventManagement.test.js +++ b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioEventManagement.test.js @@ -14,47 +14,47 @@ */ import audio from '@ohos.multimedia.audio'; -import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'; +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index'; describe('audioEM', function () { console.info('AudioFrameworkTest: Create AudioManger Object JS Framework'); const audioManager = audio.getAudioManager(); var deviceRoleValue = null; var deviceTypeValue = null; - function sleep (ms) { + function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } function displayDeviceProp(value, index, array) { var devRoleName; var devTypeName; - if (value.deviceRole==1) { + if (value.deviceRole == 1) { devRoleName = 'INPUT_DEVICE'; } - else if (value.deviceRole==2) { + else if (value.deviceRole == 2) { devRoleName = 'OUTPUT_DEVICE '; } else { - devRoleName = 'ERROR : UNKNOWN : '+value.deviceRole; + devRoleName = 'ERROR : UNKNOWN : ' + value.deviceRole; } if (value.deviceType == 1) { devTypeName = 'EARPIECE'; } - else if (value.deviceType == 2){ + else if (value.deviceType == 2) { devTypeName = 'SPEAKER'; } - else if (value.deviceType == 3){ + else if (value.deviceType == 3) { devTypeName = 'WIRED_HEADSET'; } - else if (value.deviceType == 8){ + else if (value.deviceType == 8) { devTypeName = 'BLUETOOTH_A2DP'; } - else if (value.deviceType == 15){ + else if (value.deviceType == 15) { devTypeName = 'MIC'; } else { - devTypeName = 'ERROR : UNKNOWN :'+value.deviceType; + devTypeName = 'ERROR : UNKNOWN :' + value.deviceType; } console.info(`AudioFrameworkTest: device role: ${devRoleName}`); @@ -83,20 +83,20 @@ describe('audioEM', function () { }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getAudioManger_001 - * @tc.name : getAudioManger is Not returned Empty - * @tc.desc : Check getAudioManger is not empty - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getAudioManger_001', 0, function (done) { - if(audioManager!=null){ + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_GETAUDIOMANAGER_0100 + *@tc.name : getAudioManger is Not returned Empty + *@tc.desc : Check getAudioManger is not empty + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 0 + */ + it('SUB_MULTIMEDIA_AUDIO_MANAGER_GETAUDIOMANAGER_0100', 0, function (done) { + if (audioManager != null) { console.info('AudioFrameworkTest: getAudioManger : PASS'); expect(true).assertTrue(); } - else{ + else { console.info('AudioFrameworkTest: getAudioManger : FAIL'); expect(false).assertTrue(); } @@ -104,15 +104,15 @@ describe('audioEM', function () { }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_PR_getDevices_output_001 - * @tc.name : getDevices - Output device - Promise - ENAME - * @tc.desc : getDevices - Output device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_PR_getDevices_output_001', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_0100 + *@tc.name : getDevices - Output device - Promise - ENAME + *@tc.desc : getDevices - Output device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 0 + */ + it('SUB_MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_0100', 0, async function (done) { deviceRoleValue = null; deviceTypeValue = null; const promise = audioManager.getDevices(audio.DeviceFlag.OUTPUT_DEVICES_FLAG) @@ -120,11 +120,11 @@ describe('audioEM', function () { console.info('AudioFrameworkTest: Promise: getDevices OUTPUT_DEVICES_FLAG'); value.forEach(displayDeviceProp); - if (deviceTypeValue != null && deviceRoleValue != null){ + if (deviceTypeValue != null && deviceRoleValue != null) { console.info('AudioFrameworkTest: Promise: getDevices : OUTPUT_DEVICES_FLAG : PASS'); expect(true).assertTrue(); } - else{ + else { console.info('AudioFrameworkTest: Promise: getDevices : OUTPUT_DEVICES_FLAG : FAIL'); expect(false).assertTrue(); } @@ -133,15 +133,15 @@ describe('audioEM', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_PR_getDevices_output_enum_002 - * @tc.name : getDevices - Output device - Promise - ENAME - - * @tc.desc : getDevices - Output device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_PR_getDevices_output_enum_002', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_PR_GETDEVICES_OUTPUT_ENUM_0100 + *@tc.name : getDevices - Output device - Promise - ENAME - + *@tc.desc : getDevices - Output device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 0 + */ + it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_PR_GETDEVICES_OUTPUT_ENUM_0100', 0, async function (done) { deviceRoleValue = null; deviceTypeValue = null; const promise = audioManager.getDevices(1) @@ -149,11 +149,11 @@ describe('audioEM', function () { console.info('AudioFrameworkTest: Promise: getDevices OUTPUT_DEVICES_FLAG'); value.forEach(displayDeviceProp); - if (deviceTypeValue != null && deviceRoleValue != null){ + if (deviceTypeValue != null && deviceRoleValue != null) { console.info('AudioFrameworkTest: Promise: getDevices : OUTPUT_DEVICES_FLAG : PASS'); expect(true).assertTrue(); } - else{ + else { console.info('AudioFrameworkTest: Promise: getDevices : OUTPUT_DEVICES_FLAG : FAIL'); expect(false).assertTrue(); } @@ -162,26 +162,26 @@ describe('audioEM', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_PR_getDevices_input_003 - * @tc.name : getDevices - Input device - Promise - ENAME - * @tc.desc : getDevices - Input device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_PR_getDevices_input_003', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_PR_GETDEVICES_INPUT_0100 + *@tc.name : getDevices - Input device - Promise - ENAME + *@tc.desc : getDevices - Input device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 0 + */ + it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_PR_GETDEVICES_INPUT_0100', 0, async function (done) { deviceRoleValue = null; deviceTypeValue = null; const promise = audioManager.getDevices(audio.DeviceFlag.INPUT_DEVICES_FLAG); promise.then(function (value) { console.info('AudioFrameworkTest: Promise: getDevices INPUT_DEVICES_FLAG'); value.forEach(displayDeviceProp); - if (deviceTypeValue != null && deviceRoleValue != null){ + if (deviceTypeValue != null && deviceRoleValue != null) { console.info('AudioFrameworkTest: Promise: getDevices : INPUT_DEVICES_FLAG : PASS'); expect(true).assertTrue(); } - else{ + else { console.info('AudioFrameworkTest: Promise: getDevices : INPUT_DEVICES_FLAG : FAIL'); expect(false).assertTrue(); } @@ -190,15 +190,15 @@ describe('audioEM', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_PR_getDevices_input_enum_004 - * @tc.name : getDevices - Input device - Promise - ENAME - * @tc.desc : getDevices - Input device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_PR_getDevices_input_enum_004', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_PR_GETDEVICES_INTPUT_ENUM_0100 + *@tc.name : getDevices - Input device - Promise - ENAME + *@tc.desc : getDevices - Input device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 0 + */ + it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_PR_GETDEVICES_INTPUT_ENUM_0100', 0, async function (done) { deviceRoleValue = null; deviceTypeValue = null; const promise = audioManager.getDevices(2); @@ -206,11 +206,11 @@ describe('audioEM', function () { console.info('AudioFrameworkTest: Promise: getDevices INPUT_DEVICES_FLAG'); value.forEach(displayDeviceProp); - if (deviceTypeValue != null && deviceRoleValue != null){ + if (deviceTypeValue != null && deviceRoleValue != null) { console.info('AudioFrameworkTest: Promise: getDevices : INPUT_DEVICES_FLAG : PASS'); expect(true).assertTrue(); } - else{ + else { console.info('AudioFrameworkTest: Promise: getDevices : INPUT_DEVICES_FLAG : FAIL'); expect(false).assertTrue(); } @@ -219,15 +219,15 @@ describe('audioEM', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_PR_getDevices_all_005 - * @tc.name : getDevices - ALL device - Promise - ENAME - * @tc.desc : getDevices - ALL device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_PR_getDevices_all_005', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_PR_GETDEVICES_ALL_0100 + *@tc.name : getDevices - ALL device - Promise - ENAME + *@tc.desc : getDevices - ALL device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 0 + */ + it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_PR_GETDEVICES_ALL_0100', 0, async function (done) { deviceRoleValue = null; deviceTypeValue = null; const promise = audioManager.getDevices(audio.DeviceFlag.ALL_DEVICES_FLAG); @@ -235,11 +235,11 @@ describe('audioEM', function () { console.info('AudioFrameworkTest: Promise: getDevices ALL_DEVICES_FLAG'); value.forEach(displayDeviceProp); - if (deviceTypeValue != null && deviceRoleValue != null){ + if (deviceTypeValue != null && deviceRoleValue != null) { console.info('AudioFrameworkTest: Promise: getDevices : ALL_DEVICES_FLAG : PASS'); expect(true).assertTrue(); } - else{ + else { console.info('AudioFrameworkTest: Promise: getDevices : ALL_DEVICES_FLAG : FAIL'); expect(false).assertTrue(); } @@ -248,15 +248,15 @@ describe('audioEM', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_PR_getDevices_all_enum_006 - * @tc.name : getDevices - ALL device - Promise - ENAME - * @tc.desc : getDevices - ALL device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_PR_getDevices_all_enum_006', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_PR_GETDEVICES_ALL_ENUM_0100 + *@tc.name : getDevices - ALL device - Promise - ENAME + *@tc.desc : getDevices - ALL device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 0 + */ + it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_PR_GETDEVICES_ALL_ENUM_0100', 0, async function (done) { deviceRoleValue = null; deviceTypeValue = null; const promise = audioManager.getDevices(3); @@ -264,11 +264,11 @@ describe('audioEM', function () { console.info('AudioFrameworkTest: Promise: getDevices ALL_DEVICES_FLAG'); value.forEach(displayDeviceProp); - if (deviceTypeValue != null && deviceRoleValue != null){ + if (deviceTypeValue != null && deviceRoleValue != null) { console.info('AudioFrameworkTest: Promise: getDevices : ALL_DEVICES_FLAG : PASS'); expect(true).assertTrue(); } - else{ + else { console.info('AudioFrameworkTest: Promise: getDevices : ALL_DEVICES_FLAG : FAIL'); expect(false).assertTrue(); } @@ -277,15 +277,15 @@ describe('audioEM', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_CB_getDevices_OUT_007 - * @tc.name : getDevices - Output device - Callback - ENAME - * @tc.desc : getDevices - Output device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_CB_getDevices_OUT_007', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_CB_GETDEVICES_OUTPUT_0100 + *@tc.name : getDevices - Output device - Callback - ENAME + *@tc.desc : getDevices - Output device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 0 + */ + it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_CB_GETDEVICES_OUTPUT_0100', 0, async function (done) { deviceRoleValue = null; deviceTypeValue = null; audioManager.getDevices(audio.DeviceFlag.OUTPUT_DEVICES_FLAG, (err, value) => { @@ -294,14 +294,14 @@ describe('audioEM', function () { console.error(`AudioFrameworkTest: Callback: OUTPUT_DEVICES_FLAG: failed to get devices ${err.message}`); expect().assertFail(); } - else{ + else { console.info('AudioFrameworkTest: Callback: getDevices OUTPUT_DEVICES_FLAG'); value.forEach(displayDeviceProp); - if (deviceTypeValue != null && deviceRoleValue != null){ + if (deviceTypeValue != null && deviceRoleValue != null) { console.info('AudioFrameworkTest: Callback: getDevices : OUTPUT_DEVICES_FLAG : PASS'); expect(true).assertTrue(); } - else{ + else { console.info('AudioFrameworkTest: Callback: getDevices : OUTPUT_DEVICES_FLAG : FAIL'); expect(false).assertTrue(); } @@ -310,15 +310,15 @@ describe('audioEM', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_CB_getDevices_OUT_ENUM_008 - * @tc.name : getDevices - Output device - Callback - ENAME - * @tc.desc : getDevices - Output device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_CB_getDevices_OUT_ENUM_008', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_CB_GETDEVICES_OUTPUT_ENUM_0100 + *@tc.name : getDevices - Output device - Callback - ENAME + *@tc.desc : getDevices - Output device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_CB_GETDEVICES_OUTPUT_ENUM_0100', 2, async function (done) { deviceRoleValue = null; deviceTypeValue = null; audioManager.getDevices(1, (err, value) => { @@ -327,14 +327,14 @@ describe('audioEM', function () { console.error(`AudioFrameworkTest: Callback: OUTPUT_DEVICES_FLAG: failed to get devices ${err.message}`); expect().assertFail(); } - else{ + else { console.info('AudioFrameworkTest: Callback: getDevices OUTPUT_DEVICES_FLAG'); value.forEach(displayDeviceProp); - if (deviceTypeValue != null && deviceRoleValue != null){ + if (deviceTypeValue != null && deviceRoleValue != null) { console.info('AudioFrameworkTest: Callback: getDevices : OUTPUT_DEVICES_FLAG : PASS'); expect(true).assertTrue(); } - else{ + else { console.info('AudioFrameworkTest: Callback: getDevices : OUTPUT_DEVICES_FLAG : FAIL'); expect(false).assertTrue(); } @@ -343,15 +343,15 @@ describe('audioEM', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_CB_getDevices_INPUT_009 - * @tc.name : getDevices - Input device - Callback - ENAME - * @tc.desc : getDevices - Input device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_CB_getDevices_INPUT_009', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_CB_GETDEVICES_INPUT_0100 + *@tc.name : getDevices - Input device - Callback - ENAME + *@tc.desc : getDevices - Input device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 0 + */ + it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_CB_GETDEVICES_INPUT_0100', 0, async function (done) { deviceRoleValue = null; deviceTypeValue = null; audioManager.getDevices(audio.DeviceFlag.INPUT_DEVICES_FLAG, (err, value) => { @@ -360,15 +360,15 @@ describe('audioEM', function () { console.error(`AudioFrameworkTest: Callback: INPUT_DEVICES_FLAG: failed to get devices ${err.message}`); expect().assertFail(); } - else{ + else { console.info('AudioFrameworkTest: Callback: getDevices INPUT_DEVICES_FLAG'); value.forEach(displayDeviceProp); - if (deviceTypeValue != null && deviceRoleValue != null){ + if (deviceTypeValue != null && deviceRoleValue != null) { console.info('AudioFrameworkTest: Callback: getDevices : INPUT_DEVICES_FLAG: PASS'); expect(true).assertTrue(); } - else{ + else { console.info('AudioFrameworkTest: Callback: getDevices : INPUT_DEVICES_FLAG: FAIL'); expect(false).assertTrue(); } @@ -377,15 +377,15 @@ describe('audioEM', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_CB_getDevices_INPUT_ENUM_010 - * @tc.name : getDevices - Input device - Callback - ENAME - * @tc.desc : getDevices - Input device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_CB_getDevices_INPUT_ENUM_010', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_CB_GETDEVICES_INPUT_ENUM_0100 + *@tc.name : getDevices - Input device - Callback - ENAME + *@tc.desc : getDevices - Input device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 0 + */ + it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_CB_GETDEVICES_INPUT_ENUM_0100', 0, async function (done) { deviceRoleValue = null; deviceTypeValue = null; audioManager.getDevices(2, (err, value) => { @@ -394,15 +394,15 @@ describe('audioEM', function () { console.error(`AudioFrameworkTest: Callback: INPUT_DEVICES_FLAG: failed to get devices ${err.message}`); expect().assertFail(); } - else{ + else { console.info('AudioFrameworkTest: Callback: getDevices INPUT_DEVICES_FLAG'); value.forEach(displayDeviceProp); - if (deviceTypeValue != null && deviceRoleValue != null){ + if (deviceTypeValue != null && deviceRoleValue != null) { console.info('AudioFrameworkTest: Callback: getDevices : INPUT_DEVICES_FLAG: PASS'); expect(true).assertTrue(); } - else{ + else { console.info('AudioFrameworkTest: Callback: getDevices : INPUT_DEVICES_FLAG: FAIL'); expect(false).assertTrue(); } @@ -411,15 +411,15 @@ describe('audioEM', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_CB_getDevices_All_011 - * @tc.name : getDevices - ALL device - Callback - ENAME - * @tc.desc : getDevices - ALL device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getDevices_All_011', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_CB_GETDEVICES_ALL_0100 + *@tc.name : getDevices - ALL device - Callback - ENAME + *@tc.desc : getDevices - ALL device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 0 + */ + it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_CB_GETDEVICES_ALL_0100', 0, async function (done) { deviceRoleValue = null; deviceTypeValue = null; audioManager.getDevices(audio.DeviceFlag.ALL_DEVICES_FLAG, (err, value) => { @@ -428,14 +428,14 @@ describe('audioEM', function () { console.error(`AudioFrameworkTest: Callback: ALL_DEVICES_FLAG: failed to get devices ${err.message}`); expect().assertFail(); } - else{ + else { console.info('AudioFrameworkTest: Callback: getDevices ALL_DEVICES_FLAG'); value.forEach(displayDeviceProp); - if (deviceTypeValue != null && deviceRoleValue != null){ + if (deviceTypeValue != null && deviceRoleValue != null) { console.info('AudioFrameworkTest: Callback: getDevices : ALL_DEVICES_FLAG: PASS'); expect(true).assertTrue(); } - else{ + else { console.info('AudioFrameworkTest: Callback: getDevices : ALL_DEVICES_FLAG: FAIL'); expect(false).assertTrue(); } @@ -444,15 +444,15 @@ describe('audioEM', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_CB_getDevices_All_ENUM_012 - * @tc.name : getDevices - ALL device - Callback - ENAME - * @tc.desc : getDevices - ALL device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_CB_getDevices_All_ENUM_012', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_CB_GETDEVICES_ALL_ENUM_0100 + *@tc.name : getDevices - ALL device - Callback - ENAME + *@tc.desc : getDevices - ALL device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_CB_GETDEVICES_ALL_ENUM_0100', 2, async function (done) { deviceRoleValue = null; deviceTypeValue = null; audioManager.getDevices(3, (err, value) => { @@ -461,14 +461,14 @@ describe('audioEM', function () { console.error(`AudioFrameworkTest: Callback: ALL_DEVICES_FLAG: failed to get devices ${err.message}`); expect().assertFail(); } - else{ + else { console.info('AudioFrameworkTest: Callback: getDevices ALL_DEVICES_FLAG'); value.forEach(displayDeviceProp); - if (deviceTypeValue != null && deviceRoleValue != null){ + if (deviceTypeValue != null && deviceRoleValue != null) { console.info('AudioFrameworkTest: Callback: getDevices : ALL_DEVICES_FLAG: PASS'); expect(true).assertTrue(); } - else{ + else { console.info('AudioFrameworkTest: Callback: getDevices : ALL_DEVICES_FLAG: FAIL'); expect(false).assertTrue(); } @@ -476,26 +476,26 @@ describe('audioEM', function () { done(); }); }) - - /* * - * @tc.number : SUB_AUDIO_MANAGER_setDeviceActive_PR_Deactivate_015 - * @tc.name : setDeviceActive - SPEAKER - deactivate - Promise - * @tc.desc : Deactivate speaker - Promise - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setDeviceActive_PR_Deactivate_015', 0, async function (done) { - await audioManager.setDeviceActive(audio.ActiveDeviceType.SPEAKER,false).then(function (){ + + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_PR_DEACTIVATE_0100 + *@tc.name : setDeviceActive - SPEAKER - deactivate - Promise + *@tc.desc : Deactivate speaker - Promise + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_PR_DEACTIVATE_0100', 2, async function (done) { + await audioManager.setDeviceActive(audio.ActiveDeviceType.SPEAKER, false).then(function () { // Setting device active ENUM 2 = SPEAKER console.info('AudioFrameworkTest: Device Test: Promise : setDeviceActive : SPEAKER: Deactivate'); - audioManager.isDeviceActive(audio.ActiveDeviceType.SPEAKER).then(function (value){ - if(value==false){ - console.info('AudioFrameworkTest: Device Test: Promise : isDeviceActive : SPEAKER: Deactivate : PASS :' +value); + audioManager.isDeviceActive(audio.ActiveDeviceType.SPEAKER).then(function (value) { + if (value == false) { + console.info('AudioFrameworkTest: Device Test: Promise : isDeviceActive : SPEAKER: Deactivate : PASS :' + value); expect(true).assertTrue(); } - else{ - console.info('AudioFrameworkTest: Device Test: Promise : isDeviceActive : SPEAKER: Deactivate : FAIL :' +value); + else { + console.info('AudioFrameworkTest: Device Test: Promise : isDeviceActive : SPEAKER: Deactivate : FAIL :' + value); expect(false).assertTrue(); } }); @@ -506,28 +506,28 @@ describe('audioEM', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setDeviceActive_PR_Deactivate_ENUM_016 - * @tc.name : setDeviceActive - SPEAKER - deactivate - Promise - * @tc.desc : Deactivate speaker - Promise - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setDeviceActive_PR_Deactivate_ENUM_016', 0, async function (done) { - await audioManager.setDeviceActive(2,true).then(function (){ + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_PR_DEACTIVATE_ENUM_0100 + *@tc.name : setDeviceActive - SPEAKER - deactivate - Promise + *@tc.desc : Deactivate speaker - Promise + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_PR_DEACTIVATE_ENUM_0100', 2, async function (done) { + await audioManager.setDeviceActive(2, true).then(function () { console.info('AudioFrameworkTest: Device Test: Promise : setDeviceActive : SPEAKER: Active'); }); - await audioManager.setDeviceActive(2,false).then(function (){ + await audioManager.setDeviceActive(2, false).then(function () { // Setting device active ENUM 2 = SPEAKER console.info('AudioFrameworkTest: Device Test: Promise : setDeviceActive : SPEAKER: Deactivate'); - audioManager.isDeviceActive(2).then(function (value){ - if(value==false){ - console.info('AudioFrameworkTest: Device Test: Promise : isDeviceActive : SPEAKER: Deactivate : PASS :' +value); + audioManager.isDeviceActive(2).then(function (value) { + if (value == false) { + console.info('AudioFrameworkTest: Device Test: Promise : isDeviceActive : SPEAKER: Deactivate : PASS :' + value); expect(true).assertTrue(); } - else{ - console.info('AudioFrameworkTest: Device Test: Promise : isDeviceActive : SPEAKER: Deactivate : FAIL :' +value); + else { + console.info('AudioFrameworkTest: Device Test: Promise : isDeviceActive : SPEAKER: Deactivate : FAIL :' + value); expect(false).assertTrue(); } }); @@ -538,24 +538,24 @@ describe('audioEM', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setDeviceActive_PR_Activate_017 - * @tc.name : setDeviceActive - SPEAKER - Activate - Promise - * @tc.desc : Activate speaker - Promise - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setDeviceActive_PR_Activate_017', 0, async function (done) { - await audioManager.setDeviceActive(audio.ActiveDeviceType.SPEAKER,true).then(function (){ + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_PR_ACTIVATE_0100 + *@tc.name : setDeviceActive - SPEAKER - Activate - Promise + *@tc.desc : Activate speaker - Promise + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_PR_ACTIVATE_0100', 2, async function (done) { + await audioManager.setDeviceActive(audio.ActiveDeviceType.SPEAKER, true).then(function () { console.info('AudioFrameworkTest: Device Test: Promise : setDeviceActive : SPEAKER: Activate'); - audioManager.isDeviceActive(audio.ActiveDeviceType.SPEAKER).then(function (value){ - if(value==true){ - console.info('AudioFrameworkTest: Device Test: Promise : isDeviceActive : SPEAKER: Activate : PASS :' +value); + audioManager.isDeviceActive(audio.ActiveDeviceType.SPEAKER).then(function (value) { + if (value == true) { + console.info('AudioFrameworkTest: Device Test: Promise : isDeviceActive : SPEAKER: Activate : PASS :' + value); expect(true).assertTrue(); } - else{ - console.info('AudioFrameworkTest: Device Test: Promise : isDeviceActive : SPEAKER: Activate : FAIL :' +value); + else { + console.info('AudioFrameworkTest: Device Test: Promise : isDeviceActive : SPEAKER: Activate : FAIL :' + value); expect(false).assertTrue(); } }); @@ -566,24 +566,24 @@ describe('audioEM', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setDeviceActive_PR_Activate_ENUM_018 - * @tc.name : setDeviceActive - SPEAKER - Activate - Promise - * @tc.desc : Activate speaker - Promise - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setDeviceActive_PR_Activate_ENUM_018', 0, async function (done) { - await audioManager.setDeviceActive(2,true).then(function (){ + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_PR_ACTIVATE_ENUM_0100 + *@tc.name : setDeviceActive - SPEAKER - Activate - Promise + *@tc.desc : Activate speaker - Promise + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_PR_ACTIVATE_ENUM_0100', 2, async function (done) { + await audioManager.setDeviceActive(2, true).then(function () { console.info('AudioFrameworkTest: Device Test: Promise : setDeviceActive : SPEAKER: Activate'); - audioManager.isDeviceActive(2).then(function (value){ - if(value==true){ - console.info('AudioFrameworkTest: Device Test: Promise : isDeviceActive : SPEAKER: Activate : PASS :' +value); + audioManager.isDeviceActive(2).then(function (value) { + if (value == true) { + console.info('AudioFrameworkTest: Device Test: Promise : isDeviceActive : SPEAKER: Activate : PASS :' + value); expect(true).assertTrue(); } - else{ - console.info('AudioFrameworkTest: Device Test: Promise : isDeviceActive : SPEAKER: Activate : FAIL :' +value); + else { + console.info('AudioFrameworkTest: Device Test: Promise : isDeviceActive : SPEAKER: Activate : FAIL :' + value); expect(false).assertTrue(); } }); @@ -594,33 +594,33 @@ describe('audioEM', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setDeviceActive_CB_DEACTIVATE_023 - * @tc.name : setDeviceActive - SPEAKER - deactivate - Callback - * @tc.desc : Deactivate speaker - Callback - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setDeviceActive_CB_DEACTIVATE_023', 0, async function (done) { - audioManager.setDeviceActive(audio.ActiveDeviceType.SPEAKER,false, (err) => { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_CB_DEACTIVATE_0100 + *@tc.name : setDeviceActive - SPEAKER - deactivate - Callback + *@tc.desc : Deactivate speaker - Callback + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_CB_DEACTIVATE_0100', 2, async function (done) { + audioManager.setDeviceActive(audio.ActiveDeviceType.SPEAKER, false, (err) => { if (err) { console.error(`AudioFrameworkTest: Device Test: Callback : setDeviceActive : SPEAKER: Deactivate: Error: ${err.message}`); expect(false).assertTrue(); } else { console.info('AudioFrameworkTest: Device Test: Callback : setDeviceActive : SPEAKER: Active'); - audioManager.isDeviceActive(audio.ActiveDeviceType.SPEAKER,(err, value) => { + audioManager.isDeviceActive(audio.ActiveDeviceType.SPEAKER, (err, value) => { if (err) { console.error(`AudioFrameworkTest: Device Test: Callback : isDeviceActive : SPEAKER: Deactivate: Error: ${err.message}`); expect(false).assertTrue(); } - else if(value==false){ - console.info('AudioFrameworkTest: Device Test: Callback : isDeviceActive : SPEAKER: Deactivate : PASS :' +value); + else if (value == false) { + console.info('AudioFrameworkTest: Device Test: Callback : isDeviceActive : SPEAKER: Deactivate : PASS :' + value); expect(true).assertTrue(); } - else{ - console.info('AudioFrameworkTest: Device Test: Callback : isDeviceActive : SPEAKER: Deactivate : FAIL :' +value); + else { + console.info('AudioFrameworkTest: Device Test: Callback : isDeviceActive : SPEAKER: Deactivate : FAIL :' + value); expect(false).assertTrue(); } done(); @@ -630,36 +630,36 @@ describe('audioEM', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setDeviceActive_CB_DEACTIVATE_ENUM_024 - * @tc.name : setDeviceActive - SPEAKER - deactivate - Callback - * @tc.desc : Deactivate speaker - Callback - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setDeviceActive_CB_DEACTIVATE_ENUM_024', 0, async function (done) { - await audioManager.setDeviceActive(2,true).then(function (){ + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_CB_DEACTIVATE_ENUM_0100 + *@tc.name : setDeviceActive - SPEAKER - deactivate - Callback + *@tc.desc : Deactivate speaker - Callback + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_CB_DEACTIVATE_ENUM_0100', 2, async function (done) { + await audioManager.setDeviceActive(2, true).then(function () { console.info('AudioFrameworkTest: Device Test: Promise : setDeviceActive : SPEAKER : Active'); }); - audioManager.setDeviceActive(2,false, (err) => { + audioManager.setDeviceActive(2, false, (err) => { if (err) { console.error(`AudioFrameworkTest: Device Test: Callback : setDeviceActive : SPEAKER: Deactivate: Error: ${err.message}`); expect(false).assertTrue(); } else { console.info('AudioFrameworkTest: Device Test: Callback : setDeviceActive : SPEAKER: Active'); - audioManager.isDeviceActive(2,(err, value) => { + audioManager.isDeviceActive(2, (err, value) => { if (err) { console.error(`AudioFrameworkTest: Device Test: Callback : isDeviceActive : SPEAKER: Deactivate: Error: ${err.message}`); expect(false).assertTrue(); } - else if(value==false){ - console.info('AudioFrameworkTest: Device Test: Callback : isDeviceActive : SPEAKER: Deactivate : PASS :' +value); + else if (value == false) { + console.info('AudioFrameworkTest: Device Test: Callback : isDeviceActive : SPEAKER: Deactivate : PASS :' + value); expect(true).assertTrue(); } - else{ - console.info('AudioFrameworkTest: Device Test: Callback : isDeviceActive : SPEAKER: Deactivate : FAIL :' +value); + else { + console.info('AudioFrameworkTest: Device Test: Callback : isDeviceActive : SPEAKER: Deactivate : FAIL :' + value); expect(false).assertTrue(); } done(); @@ -670,33 +670,33 @@ describe('audioEM', function () { }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setDeviceActive_CB_ACTIVATE_025 - * @tc.name : setDeviceActive - SPEAKER - activate - Callback - * @tc.desc : Activate speaker - Callback - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setDeviceActive_CB_ACTIVATE_025', 0, async function (done) { - audioManager.setDeviceActive(audio.ActiveDeviceType.SPEAKER,true, (err) => { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_CB_ACTIVATE_0100 + *@tc.name : setDeviceActive - SPEAKER - activate - Callback + *@tc.desc : Activate speaker - Callback + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_CB_ACTIVATE_0100', 2, async function (done) { + audioManager.setDeviceActive(audio.ActiveDeviceType.SPEAKER, true, (err) => { if (err) { console.error(`AudioFrameworkTest: Device Test: Callback : setDeviceActive : SPEAKER: Active: Error: ${err.message}`); expect(false).assertTrue(); } else { console.info('AudioFrameworkTest: Device Test: Callback : setDeviceActive : SPEAKER: Active'); - audioManager.isDeviceActive(audio.ActiveDeviceType.SPEAKER,(err, value) => { + audioManager.isDeviceActive(audio.ActiveDeviceType.SPEAKER, (err, value) => { if (err) { console.error(`AudioFrameworkTest: Device Test: Callback : isDeviceActive : SPEAKER: Active: Error: ${err.message}`); expect(false).assertTrue(); } - else if(value==true){ - console.info('AudioFrameworkTest: Device Test: Callback : isDeviceActive : SPEAKER: Active : PASS :' +value); + else if (value == true) { + console.info('AudioFrameworkTest: Device Test: Callback : isDeviceActive : SPEAKER: Active : PASS :' + value); expect(true).assertTrue(); } - else{ - console.info('AudioFrameworkTest: Device Test: Callback : isDeviceActive : SPEAKER: Active : FAIL :' +value); + else { + console.info('AudioFrameworkTest: Device Test: Callback : isDeviceActive : SPEAKER: Active : FAIL :' + value); expect(false).assertTrue(); } done(); @@ -706,33 +706,33 @@ describe('audioEM', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setDeviceActive_CB_ACTIVATE_ENUM_026 - * @tc.name : setDeviceActive - SPEAKER - activate - Callback - * @tc.desc : Activate speaker - Callback - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setDeviceActive_CB_ACTIVATE_ENUM_026 ', 0, async function (done) { - audioManager.setDeviceActive(2,true, (err) => { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_CB_ACTIVATE_ENUM_0100 + *@tc.name : setDeviceActive - SPEAKER - activate - Callback + *@tc.desc : Activate speaker - Callback + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_AUDIO_MANAGER_SETDEVICEACTIVE_CB_ACTIVATE_ENUM_0100 ', 2, async function (done) { + audioManager.setDeviceActive(2, true, (err) => { if (err) { console.error(`AudioFrameworkTest: Device Test: Callback : setDeviceActive : SPEAKER: Active: Error: ${err.message}`); expect(false).assertTrue(); } else { console.info('AudioFrameworkTest: Device Test: Callback : setDeviceActive : SPEAKER: Active'); - audioManager.isDeviceActive(2,(err, value) => { + audioManager.isDeviceActive(2, (err, value) => { if (err) { console.error(`AudioFrameworkTest: Device Test: Callback : isDeviceActive : SPEAKER: Active: Error: ${err.message}`); expect(false).assertTrue(); } - else if(value==true){ - console.info('AudioFrameworkTest: Device Test: Callback : isDeviceActive : SPEAKER: Active : PASS :' +value); + else if (value == true) { + console.info('AudioFrameworkTest: Device Test: Callback : isDeviceActive : SPEAKER: Active : PASS :' + value); expect(true).assertTrue(); } - else{ - console.info('AudioFrameworkTest: Device Test: Callback : isDeviceActive : SPEAKER: Active : FAIL :' +value); + else { + console.info('AudioFrameworkTest: Device Test: Callback : isDeviceActive : SPEAKER: Active : FAIL :' + value); expect(false).assertTrue(); } done(); @@ -742,29 +742,29 @@ describe('audioEM', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_DeviceChangeType_001 - * @tc.name : DeviceChangeType - CONNECT - * @tc.desc : DeviceChangeType - CONNECT - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_DeviceChangeType_001', 0, async function (done) { + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_DEVICECHANGETYPE_0100 + *@tc.name : DeviceChangeType - CONNECT + *@tc.desc : DeviceChangeType - CONNECT + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_MANAGER_DEVICECHANGETYPE_0100', 2, async function (done) { expect(audio.DeviceChangeType.CONNECT).assertEqual(0); await sleep(50); done(); }) - - /* * - * @tc.number : SUB_AUDIO_MANAGER_DeviceChangeType_002 - * @tc.name : DeviceChangeType - DISCONNECT - * @tc.desc : DeviceChangeType - DISCONNECT - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_DeviceChangeType_002', 0, async function (done) { + + /** + *@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_DEVICECHANGETYPE_0200 + *@tc.name : DeviceChangeType - DISCONNECT + *@tc.desc : DeviceChangeType - DISCONNECT + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_MANAGER_DEVICECHANGETYPE_0200', 2, async function (done) { expect(audio.DeviceChangeType.DISCONNECT).assertEqual(1); await sleep(50); done(); 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 8c8c164e8a663afcbf9e364b6a2c9666da52a6af..2039a935b9cb7c290553d6ede8e1736e579467f5 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 @@ -110,15 +110,15 @@ describe('audioManager', function () { console.info('AudioFrameworkTest: afterAll: Test suite-level cleanup condition'); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getAudioManger_001 - * @tc.name : getAudioManger is Not returned Empty - * @tc.desc : Check getAudioManger is not empty - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getAudioManger_001', 0, function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETAUDIOMANAGER_0100 + *@tc.name : getAudioManger is Not returned Empty + *@tc.desc : Check getAudioManger is not empty + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 0 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETAUDIOMANAGER_0100', 0, function (done) { if (audioManager != null) { console.info('AudioFrameworkTest: getAudioManger : PASS'); expect(true).assertTrue(); @@ -130,15 +130,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getAudioManger_002 - * @tc.name : getAudioManger - Multiple instance - * @tc.desc : multiple times with different instance - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getAudioManger_002', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETAUDIOMANAGER_0200 + *@tc.name : getAudioManger - Multiple instance + *@tc.desc : multiple times with different instance + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETAUDIOMANAGER_0200', 1, async function (done) { const audioManager1 = audio.getAudioManager(); const audioManager2 = audio.getAudioManager(); const audioManager3 = audio.getAudioManager(); @@ -189,15 +189,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_001 - * @tc.name : setVolume - Media - Promise - * @tc.desc : Setvol to 1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_001', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_0100 + *@tc.name : setVolume - Media - Promise + *@tc.desc : Setvol to 1 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_0100', 1, async function (done) { const promise = audioManager.setVolume(audioMedia, lowVol); promise.then(function () { console.info('AudioFrameworkTest: Media setVolume promise: successful'); @@ -216,15 +216,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_002 - * @tc.name : setVolume - Media - Promise - MAX Volume - * @tc.desc : Setvol to 15 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_002', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_0200 + *@tc.name : setVolume - Media - Promise - MAX Volume + *@tc.desc : Setvol to 15 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_0200', 2, async function (done) { const promise = audioManager.setVolume(audioMedia, maxVol); promise.then(function () { console.info('AudioFrameworkTest: Media setVolume promise: successful'); @@ -243,15 +243,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_003 - * @tc.name : setVolume - Media - Promise - Mute Volume - * @tc.desc : Setvol to 0 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_003', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_0300 + *@tc.name : setVolume - Media - Promise - Mute Volume + *@tc.desc : Setvol to 0 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_0300', 2, async function (done) { const promise = audioManager.setVolume(audioMedia, minVol); promise.then(function () { console.info('AudioFrameworkTest: Media setVolume promise: successful'); @@ -271,15 +271,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_004 - * @tc.name : setVolume - Media - Promise - Out of range Volume - * @tc.desc : Setvol to 28 (More than 15) - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_004', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_0400 + *@tc.name : setVolume - Media - Promise - Out of range Volume + *@tc.desc : Setvol to 28 (More than 15) + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_0400', 2, async function (done) { console.info('AudioFrameworkTest: Media setVolume Promise:Out of range: Setvol 100'); await audioManager.setVolume(audioMedia, outOfRangeVol).then(() => { console.info('AudioFrameworkTest: Media setVolume Promise:Out of range: FAIL'); @@ -291,15 +291,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_005 - * @tc.name : setVolume - Media - Callback - * @tc.desc : Setvol to 14 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_005', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_0500 + *@tc.name : setVolume - Media - Callback + *@tc.desc : Setvol to 14 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_0500', 2, async function (done) { audioManager.setVolume(audioMedia, highVol, (err) => { if (err) { console.error(`AudioFrameworkTest: failed to set volume: Callback: ${err.message}`); @@ -327,15 +327,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_006 - * @tc.name : setVolume - Media - Callback - MAX Volume - * @tc.desc : Setvol to 15 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_006', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_0600 + *@tc.name : setVolume - Media - Callback - MAX Volume + *@tc.desc : Setvol to 15 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_0600', 2, async function (done) { audioManager.setVolume(audioMedia, maxVol, (err) => { if (err) { console.error(`AudioFrameworkTest: failed to set volume: Callback: ${err.message}`); @@ -363,15 +363,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_007 - * @tc.name : setVolume - Media - Callback - Mute Volume - * @tc.desc : Setvol to 0 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_007', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_0700 + *@tc.name : setVolume - Media - Callback - Mute Volume + *@tc.desc : Setvol to 0 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_0700', 2, async function (done) { audioManager.setVolume(audioMedia, minVol, (err) => { if (err) { console.error(`AudioFrameworkTest: failed to set volume: Callback: ${err.message}`); @@ -399,15 +399,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_008 - * @tc.name : setVolume - Media - Callback - Out of range Volume - * @tc.desc : Setvol to 20 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_008', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_0800 + *@tc.name : setVolume - Media - Callback - Out of range Volume + *@tc.desc : Setvol to 20 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_0800', 2, async function (done) { audioManager.setVolume(audioMedia, outOfRangeVol, (err) => { if (err) { console.error(`AudioFrameworkTest: setVolume: Out of range: Callback: PASS: ${err.message}`); @@ -421,15 +421,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_009 - * @tc.name : setVolume - Ringtone - Promise - * @tc.desc : Setvol to 5 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_009', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_0900 + *@tc.name : setVolume - Ringtone - Promise + *@tc.desc : Setvol to 5 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_0900', 2, async function (done) { const promise = audioManager.setVolume(audioRingtone, lowVol); promise.then(function () { console.info('AudioFrameworkTest: Ringtone setVolume promise: successful'); @@ -448,15 +448,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_010 - * @tc.name : setVolume - Ringtone - Promise - MAX Volume - * @tc.desc : Setvol to 15 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_010', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_1000 + *@tc.name : setVolume - Ringtone - Promise - MAX Volume + *@tc.desc : Setvol to 15 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_1000', 2, async function (done) { const promise = audioManager.setVolume(audioRingtone, maxVol); promise.then(function () { console.info('AudioFrameworkTest: Ringtone setVolume promise: successful'); @@ -475,15 +475,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_011 - * @tc.name : setVolume - Ringtone - Promise - Mute Volume - * @tc.desc : Setvol to 0 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_011', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_1100 + *@tc.name : setVolume - Ringtone - Promise - Mute Volume + *@tc.desc : Setvol to 0 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_1100', 2, async function (done) { const promise = audioManager.setVolume(audioRingtone, minVol); promise.then(function () { console.info('AudioFrameworkTest: Ringtone setVolume promise: successful'); @@ -502,15 +502,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_012 - * @tc.name : setVolume - Ringtone - Promise - Out of range Volume - * @tc.desc : Setvol to 30 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_012', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_1200 + *@tc.name : setVolume - Ringtone - Promise - Out of range Volume + *@tc.desc : Setvol to 30 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_1200', 2, async function (done) { console.info('AudioFrameworkTest: Ringtone setVolume Promise: Out of range: Setvol 30'); await audioManager.setVolume(audioRingtone, outOfRangeVol).then(() => { console.info('AudioFrameworkTest: Ringtone setVolume Promise:Out of range: FAIL'); @@ -522,15 +522,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_013 - * @tc.name : setVolume - Ringtone - Callback - * @tc.desc : Setvol to 7 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_013', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_1300 + *@tc.name : setVolume - Ringtone - Callback + *@tc.desc : Setvol to 7 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_1300', 2, async function (done) { audioManager.setVolume(audioRingtone, highVol, (err) => { if (err) { console.error(`AudioFrameworkTest: failed to set volume: Callback: ${err.message}`); @@ -558,15 +558,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_014 - * @tc.name : setVolume - Ringtone - Callback - MAX Volume - * @tc.desc : Setvol to 15 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_014', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_1400 + *@tc.name : setVolume - Ringtone - Callback - MAX Volume + *@tc.desc : Setvol to 15 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_1400', 2, async function (done) { audioManager.setVolume(audioRingtone, maxVol, (err) => { if (err) { console.error(`AudioFrameworkTest: failed to set volume: Callback: ${err.message}`); @@ -595,15 +595,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_015 - * @tc.name : setVolume - Ringtone - Callback - Mute Volume - * @tc.desc : Setvol to 0 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_015', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_1500 + *@tc.name : setVolume - Ringtone - Callback - Mute Volume + *@tc.desc : Setvol to 0 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_1500', 2, async function (done) { audioManager.setVolume(audioRingtone, minVol, (err) => { if (err) { console.error(`AudioFrameworkTest: failed to set volume: Callback: ${err.message}`); @@ -631,15 +631,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_016 - * @tc.name : setVolume - Ringtone - Callback - Out of range Volume - * @tc.desc : Setvol to 28 (more than max volume 15) - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_016', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_1600 + *@tc.name : setVolume - Ringtone - Callback - Out of range Volume + *@tc.desc : Setvol to 28 (more than max volume 15) + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_1600', 2, async function (done) { audioManager.setVolume(audioRingtone, outOfRangeVol, (err) => { if (err) { console.error(`AudioFrameworkTest: Out of range Volume: Callback: ${err.message}`); @@ -653,15 +653,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_017 - * @tc.name : setVolume - Media - Promise - Negative Value - * @tc.desc : Setvol to -1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_017', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_1700 + *@tc.name : setVolume - Media - Promise - Negative Value + *@tc.desc : Setvol to -1 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_1700', 2, async function (done) { console.info('AudioFrameworkTest: Media setVolume promise: Negative Value -1'); await audioManager.setVolume(audioMedia, -1).then(() => { // Setting negative audio volume for error Scenario @@ -674,15 +674,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_018 - * @tc.name : setVolume - Media - Callback - Negative Value - * @tc.desc : Setvol to -1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_018', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_1800 + *@tc.name : setVolume - Media - Callback - Negative Value + *@tc.desc : Setvol to -1 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_1800', 2, async function (done) { audioManager.setVolume(audioMedia, -1, (err) => { // Setting negative audio volume for error Scenario if (err) { @@ -697,15 +697,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_019 - * @tc.name : setVolume - Ringtone - Promise - Negative Value - * @tc.desc : Setvol to -1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_019', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_1900 + *@tc.name : setVolume - Ringtone - Promise - Negative Value + *@tc.desc : Setvol to -1 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_1900', 2, async function (done) { console.info('AudioFrameworkTest: Ringtone setVolume promise: Negative'); await audioManager.setVolume(audioRingtone, -1).then(() => { // Setting negative audio volume for error Scenario @@ -718,15 +718,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_020 - * @tc.name : setVolume - Ringtone - Callback - Negative Value - * @tc.desc : Setvol to -1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_020', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_2000 + *@tc.name : setVolume - Ringtone - Callback - Negative Value + *@tc.desc : Setvol to -1 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_2000', 2, async function (done) { audioManager.setVolume(audioRingtone, -1, (err) => { // Setting negative audio volume for error Scenario if (err) { @@ -741,15 +741,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_021 - * @tc.name : setVolume - Media - Promise - ENAME - * @tc.desc : Setvol to 5 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_021', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_2100 + *@tc.name : setVolume - Media - Promise - ENAME + *@tc.desc : Setvol to 5 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_2100', 2, async function (done) { const promise = audioManager.setVolume(audio.AudioVolumeType.MEDIA, lowVol); promise.then(function () { audioManager.getVolume(audio.AudioVolumeType.MEDIA).then(function (data) { @@ -767,15 +767,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_022 - * @tc.name : setVolume - Media - Callback - ENAME - * @tc.desc : Setvol to 14 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_022', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_2200 + *@tc.name : setVolume - Media - Callback - ENAME + *@tc.desc : Setvol to 14 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_2200', 2, async function (done) { audioManager.setVolume(audio.AudioVolumeType.MEDIA, highVol, (err) => { if (err) { console.error(`AudioFrameworkTest: failed to set volume: Callback: ENAME : ${err.message}`); @@ -803,15 +803,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_023 - * @tc.name : setVolume - Ringtone - Promise - ENAME - * @tc.desc : Setvol to 14 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_023', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_2300 + *@tc.name : setVolume - Ringtone - Promise - ENAME + *@tc.desc : Setvol to 14 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_2300', 2, async function (done) { const promise = audioManager.setVolume(audio.AudioVolumeType.RINGTONE, highVol); promise.then(function () { console.info('AudioFrameworkTest: Ringtone setVolume promise: ENAME: successful'); @@ -830,15 +830,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_024 - * @tc.name : setVolume - Ringtone - Callback - ENAME - * @tc.desc : Setvol to 5 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_024', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_2400 + *@tc.name : setVolume - Ringtone - Callback - ENAME + *@tc.desc : Setvol to 5 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_2400', 2, async function (done) { audioManager.setVolume(audio.AudioVolumeType.RINGTONE, lowVol, (err) => { if (err) { console.error(`AudioFrameworkTest: failed to set volume: Callback: ENAME: ${err.message}`); @@ -866,15 +866,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_025 - * @tc.name : setVolume - Media - Promise - Change Ringtone vol - * @tc.desc : Setvol to 5 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_025', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_2500 + *@tc.name : setVolume - Media - Promise - Change Ringtone vol + *@tc.desc : Setvol to 5 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_2500', 2, async function (done) { const promise = audioManager.setVolume(audio.AudioVolumeType.MEDIA, lowVol); promise.then(function () { audioManager.setVolume(audio.AudioVolumeType.RINGTONE, maxVol); @@ -893,15 +893,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_026 - * @tc.name : setVolume - Media - Callback - Change Ringtone vol - * @tc.desc : Setvol to 14 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_026', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_2600 + *@tc.name : setVolume - Media - Callback - Change Ringtone vol + *@tc.desc : Setvol to 14 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_2600', 2, async function (done) { audioManager.setVolume(audio.AudioVolumeType.MEDIA, highVol, (err) => { if (err) { console.error(`AudioFrameworkTest: failed to set volume: Callback: ENAME : ${err.message}`); @@ -930,15 +930,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_027 - * @tc.name : setVolume - Ringtone - Promise - Change Media vol - * @tc.desc : Setvol to 14 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_027', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_2700 + *@tc.name : setVolume - Ringtone - Promise - Change Media vol + *@tc.desc : Setvol to 14 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_2700', 2, async function (done) { const promise = audioManager.setVolume(audio.AudioVolumeType.RINGTONE, highVol); promise.then(function () { console.info('AudioFrameworkTest: Ringtone setVolume promise: ENAME: successful'); @@ -958,15 +958,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_SetVolume_028 - * @tc.name : setVolume - Ringtone - Callback - Change Media vol - * @tc.desc : Setvol to 5 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_SetVolume_028', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_2800 + *@tc.name : setVolume - Ringtone - Callback - Change Media vol + *@tc.desc : Setvol to 5 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETVOLUME_2800', 2, async function (done) { audioManager.setVolume(audio.AudioVolumeType.RINGTONE, lowVol, (err) => { if (err) { console.error(`AudioFrameworkTest: failed to set volume: Callback: ENAME: ${err.message}`); @@ -995,15 +995,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getMaxVolume_001 - * @tc.name : getMaxVolume - Media - Promise - * @tc.desc : getMaxVolume for Media - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getMaxVolume_001', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETMAXVOLUME_0100 + *@tc.name : getMaxVolume - Media - Promise + *@tc.desc : getMaxVolume for Media + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETMAXVOLUME_0100', 1, async function (done) { const promise = audioManager.getMaxVolume(audioMedia); promise.then(function (data) { if (data == maxVol) { @@ -1019,15 +1019,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getMaxVolume_002 - * @tc.name : getMaxVolume - Media - Callback - * @tc.desc : getMaxVolume for Media - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getMaxVolume_002', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETMAXVOLUME_0200 + *@tc.name : getMaxVolume - Media - Callback + *@tc.desc : getMaxVolume for Media + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETMAXVOLUME_0200', 1, async function (done) { audioManager.getMaxVolume(audioMedia, (err, value) => { if (err) { console.error(`AudioFrameworkTest: callback : Media : failed to getMaxVolume ${err.message}`); @@ -1045,15 +1045,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getMaxVolume_003 - * @tc.name : getMaxVolume - Ringtone - Promise - * @tc.desc : getMaxVolume for Ringtone - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getMaxVolume_003', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETMAXVOLUME_0300 + *@tc.name : getMaxVolume - Ringtone - Promise + *@tc.desc : getMaxVolume for Ringtone + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETMAXVOLUME_0300', 2, async function (done) { const promise = audioManager.getMaxVolume(audioRingtone); promise.then(function (data) { if (data == maxVol) { @@ -1069,15 +1069,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getMaxVolume_004 - * @tc.name : getMaxVolume - Ringtone - Callback - * @tc.desc : getMaxVolume for Ringtone - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getMaxVolume_004', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETMAXVOLUME_0400 + *@tc.name : getMaxVolume - Ringtone - Callback + *@tc.desc : getMaxVolume for Ringtone + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETMAXVOLUME_0400', 2, async function (done) { audioManager.getMaxVolume(audioRingtone, (err, value) => { if (err) { console.error(`AudioFrameworkTest: callback : Ringtone : failed to getMaxVolume ${err.message}`); @@ -1095,15 +1095,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getMaxVolume_005 - * @tc.name : getMaxVolume - Media - Promise - Change Ringtone Volume and check - * @tc.desc : getMaxVolume for Media - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getMaxVolume_005', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETMAXVOLUME_0500 + *@tc.name : getMaxVolume - Media - Promise - Change Ringtone Volume and check + *@tc.desc : getMaxVolume for Media + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETMAXVOLUME_0500', 2, async function (done) { audioManager.setVolume(audioRingtone, lowVol); const promise = audioManager.getMaxVolume(audioMedia); promise.then(function (data) { @@ -1120,15 +1120,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getMaxVolume_006 - * @tc.name : getMaxVolume - Ringtone - Promise - Change Media Volume and check - * @tc.desc : getMaxVolume for Media - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getMaxVolume_006', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETMAXVOLUME_0600 + *@tc.name : getMaxVolume - Ringtone - Promise - Change Media Volume and check + *@tc.desc : getMaxVolume for Media + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETMAXVOLUME_0600', 2, async function (done) { audioManager.setVolume(audioMedia, lowVol); const promise = audioManager.getMaxVolume(audioRingtone); promise.then(function (data) { @@ -1146,15 +1146,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getMaxVolume_007 - * @tc.name : getMaxVolume - Media - Callback- Change Ringtone Volume and check - * @tc.desc : getMaxVolume for Media - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getMaxVolume_007', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETMAXVOLUME_0700 + *@tc.name : getMaxVolume - Media - Callback- Change Ringtone Volume and check + *@tc.desc : getMaxVolume for Media + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETMAXVOLUME_0700', 2, async function (done) { audioManager.setVolume(audioRingtone, lowVol); audioManager.getMaxVolume(audioMedia, (err, value) => { if (err) { @@ -1174,15 +1174,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getMaxVolume_008 - * @tc.name : getMaxVolume - Ringtone - Callback - Callback- Change media Volume and check - * @tc.desc : getMaxVolume for Ringtone - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getMaxVolume_008', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETMAXVOLUME_0800 + *@tc.name : getMaxVolume - Ringtone - Callback - Callback- Change media Volume and check + *@tc.desc : getMaxVolume for Ringtone + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETMAXVOLUME_0800', 2, async function (done) { audioManager.setVolume(audioMedia, lowVol); audioManager.getMaxVolume(audioRingtone, (err, value) => { if (err) { @@ -1201,15 +1201,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getMaxVolume_009 - * @tc.name : getMaxVolume - Media - Promise - Change media Volume and check - * @tc.desc : getMaxVolume for Media - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getMaxVolume_009', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETMAXVOLUME_0900 + *@tc.name : getMaxVolume - Media - Promise - Change media Volume and check + *@tc.desc : getMaxVolume for Media + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETMAXVOLUME_0900', 2, async function (done) { audioManager.setVolume(audioMedia, lowVol); const promise = audioManager.getMaxVolume(audioMedia); promise.then(function (data) { @@ -1226,15 +1226,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getMaxVolume_010 - * @tc.name : getMaxVolume - Ringtone - Promise - Change Ringtone Volume and check - * @tc.desc : getMaxVolume for Media - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getMaxVolume_010', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETMAXVOLUME_1000 + *@tc.name : getMaxVolume - Ringtone - Promise - Change Ringtone Volume and check + *@tc.desc : getMaxVolume for Media + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETMAXVOLUME_1000', 2, async function (done) { audioManager.setVolume(audioRingtone, lowVol); const promise = audioManager.getMaxVolume(audioRingtone); promise.then(function (data) { @@ -1251,15 +1251,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getMaxVolume_011 - * @tc.name : getMaxVolume - Media - Callback- Change media Volume and check - * @tc.desc : getMaxVolume for Media - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getMaxVolume_011', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETMAXVOLUME_1100 + *@tc.name : getMaxVolume - Media - Callback- Change media Volume and check + *@tc.desc : getMaxVolume for Media + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETMAXVOLUME_1100', 2, async function (done) { audioManager.setVolume(audioMedia, highVol); audioManager.getMaxVolume(audioMedia, (err, value) => { if (err) { @@ -1278,15 +1278,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getMaxVolume_012 - * @tc.name : getMaxVolume - Ringtone - Callback - Callback- Change ringtone Volume and check - * @tc.desc : getMaxVolume for Ringtone - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getMaxVolume_012', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETMAXVOLUME_1200 + *@tc.name : getMaxVolume - Ringtone - Callback - Callback- Change ringtone Volume and check + *@tc.desc : getMaxVolume for Ringtone + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETMAXVOLUME_1200', 2, async function (done) { audioManager.setVolume(audioRingtone, highVol); audioManager.getMaxVolume(audioRingtone, (err, value) => { if (err) { @@ -1305,15 +1305,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getMinVolume_001 - * @tc.name : getMinVolume - Media - Promise - * @tc.desc : getMinVolume for Media - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getMinVolume_001', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETMINVOLUME_0100 + *@tc.name : getMinVolume - Media - Promise + *@tc.desc : getMinVolume for Media + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETMINVOLUME_0100', 1, async function (done) { const promise = audioManager.getMinVolume(audioMedia); promise.then(function (data) { if (data == minVol) { @@ -1329,15 +1329,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getMinVolume_002 - * @tc.name : getMinVolume - Media - Callback - * @tc.desc : getMinVolume for Media - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getMinVolume_002', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETMINVOLUME_0200 + *@tc.name : getMinVolume - Media - Callback + *@tc.desc : getMinVolume for Media + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETMINVOLUME_0200', 1, async function (done) { audioManager.getMinVolume(audioMedia, (err, value) => { if (err) { console.error(`AudioFrameworkTest: callback : Media : failed to getMinVolume ${err.message}`); @@ -1355,15 +1355,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getMinVolume_003 - * @tc.name : getMinVolume - Ringtone - Promise - * @tc.desc : getMinVolume for Ringtone - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getMinVolume_003', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETMINVOLUME_0300 + *@tc.name : getMinVolume - Ringtone - Promise + *@tc.desc : getMinVolume for Ringtone + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETMINVOLUME_0300', 2, async function (done) { const promise = audioManager.getMinVolume(audioRingtone); promise.then(function (data) { if (data == minVol) { @@ -1380,15 +1380,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getMinVolume_004 - * @tc.name : getMinVolume - Ringtone - Callback - * @tc.desc : getMinVolume for Ringtone - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getMinVolume_004', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETMINVOLUME_0400 + *@tc.name : getMinVolume - Ringtone - Callback + *@tc.desc : getMinVolume for Ringtone + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETMINVOLUME_0400', 2, async function (done) { audioManager.getMinVolume(audioRingtone, (err, value) => { if (err) { console.error(`AudioFrameworkTest: callback : Ringtone : failed to getMinVolume ${err.message}`); @@ -1406,15 +1406,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getMinVolume_005 - * @tc.name : getMinVolume - Media - Promise - Change Ringtone Volume and check - * @tc.desc : getMinVolume for Media - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getMinVolume_005', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETMINVOLUME_0500 + *@tc.name : getMinVolume - Media - Promise - Change Ringtone Volume and check + *@tc.desc : getMinVolume for Media + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETMINVOLUME_0500', 2, async function (done) { audioManager.setVolume(audioRingtone, lowVol); const promise = audioManager.getMinVolume(audioMedia); promise.then(function (data) { @@ -1431,15 +1431,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getMinVolume_006 - * @tc.name : getMinVolume - Media - Callback - Change Ringtone Volume and check - * @tc.desc : getMinVolume for Media - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getMinVolume_006', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETMINVOLUME_0600 + *@tc.name : getMinVolume - Media - Callback - Change Ringtone Volume and check + *@tc.desc : getMinVolume for Media + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETMINVOLUME_0600', 2, async function (done) { audioManager.setVolume(audioRingtone, lowVol); audioManager.getMinVolume(audioMedia, (err, value) => { if (err) { @@ -1458,15 +1458,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getMinVolume_007 - * @tc.name : getMinVolume - Ringtone - Promise - Change Media Volume and check - * @tc.desc : getMinVolume for Ringtone - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getMinVolume_007', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETMINVOLUME_0700 + *@tc.name : getMinVolume - Ringtone - Promise - Change Media Volume and check + *@tc.desc : getMinVolume for Ringtone + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETMINVOLUME_0700', 2, async function (done) { audioManager.setVolume(audioMedia, highVol); const promise = audioManager.getMinVolume(audioRingtone); promise.then(function (data) { @@ -1483,15 +1483,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getMinVolume_008 - * @tc.name : getMinVolume - Ringtone - Callback - Change Media Volume and check - * @tc.desc : getMinVolume for Ringtone - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getMinVolume_008', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETMINVOLUME_0800 + *@tc.name : getMinVolume - Ringtone - Callback - Change Media Volume and check + *@tc.desc : getMinVolume for Ringtone + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETMINVOLUME_0800', 2, async function (done) { audioManager.setVolume(audioMedia, lowVol); audioManager.getMinVolume(audioRingtone, (err, value) => { if (err) { @@ -1510,15 +1510,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getMinVolume_009 - * @tc.name : getMinVolume - Media - Promise - Change Media Volume and check - * @tc.desc : getMinVolume for Media - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getMinVolume_009', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETMINVOLUME_0900 + *@tc.name : getMinVolume - Media - Promise - Change Media Volume and check + *@tc.desc : getMinVolume for Media + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETMINVOLUME_0900', 2, async function (done) { audioManager.setVolume(audioMedia, lowVol); const promise = audioManager.getMinVolume(audioMedia); promise.then(function (data) { @@ -1535,15 +1535,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getMinVolume_010 - * @tc.name : getMinVolume - Media - Callback - Change Media Volume and check - * @tc.desc : getMinVolume for Media - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getMinVolume_010', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETMINVOLUME_1000 + *@tc.name : getMinVolume - Media - Callback - Change Media Volume and check + *@tc.desc : getMinVolume for Media + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETMINVOLUME_1000', 2, async function (done) { audioManager.setVolume(audioMedia, highVol); audioManager.getMinVolume(audioMedia, (err, value) => { if (err) { @@ -1562,15 +1562,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getMinVolume_011 - * @tc.name : getMinVolume - Ringtone - Promise - Change Ringtone Volume and check - * @tc.desc : getMinVolume for Ringtone - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getMinVolume_011', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETMINVOLUME_1100 + *@tc.name : getMinVolume - Ringtone - Promise - Change Ringtone Volume and check + *@tc.desc : getMinVolume for Ringtone + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETMINVOLUME_1100', 2, async function (done) { audioManager.setVolume(audioRingtone, lowVol); const promise = audioManager.getMinVolume(audioRingtone) promise.then(function (data) { @@ -1587,15 +1587,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getMinVolume_012 - * @tc.name : getMinVolume - Ringtone - Callback - Change Ringtone Volume and check - * @tc.desc : getMinVolume for Ringtone - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getMinVolume_012', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETMINVOLUME_1200 + *@tc.name : getMinVolume - Ringtone - Callback - Change Ringtone Volume and check + *@tc.desc : getMinVolume for Ringtone + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETMINVOLUME_1200', 2, async function (done) { audioManager.setVolume(audioRingtone, lowVol); audioManager.getMinVolume(audioRingtone, (err, value) => { if (err) { @@ -1614,15 +1614,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getDevices_001 - * @tc.name : getDevices - Output device - Promise - * @tc.desc : getDevices - Output device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getDevices_001', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_0100 + *@tc.name : getDevices - Output device - Promise + *@tc.desc : getDevices - Output device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_0100', 1, async function (done) { dRValue = null; dTValue = null; devId = null; @@ -1649,15 +1649,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getDevices_002 - * @tc.name : getDevices - Input device - Promise - * @tc.desc : getDevices - Input device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getDevices_002', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_0200 + *@tc.name : getDevices - Input device - Promise + *@tc.desc : getDevices - Input device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_0200', 1, async function (done) { dRValue = null; dTValue = null; devId = null; @@ -1685,15 +1685,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getDevices_003 - * @tc.name : getDevices - ALL device - Promise - * @tc.desc : getDevices - ALL device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getDevices_003', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_0300 + *@tc.name : getDevices - ALL device - Promise + *@tc.desc : getDevices - ALL device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_0300', 2, async function (done) { dRValue = null; dTValue = null; devId = null; @@ -1721,15 +1721,15 @@ describe('audioManager', function () { await promise; done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getDevices_004 - * @tc.name : getDevices - Output device - Callback - * @tc.desc : getDevices - Output device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getDevices_004', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_0400 + *@tc.name : getDevices - Output device - Callback + *@tc.desc : getDevices - Output device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_0400', 2, async function (done) { dRValue = null; dTValue = null; devId = null; @@ -1763,15 +1763,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getDevices_005 - * @tc.name : getDevices - Input device - Callback - * @tc.desc : getDevices - Input device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getDevices_005', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_0500 + *@tc.name : getDevices - Input device - Callback + *@tc.desc : getDevices - Input device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_0500', 2, async function (done) { dRValue = null; dTValue = null; devId = null; @@ -1806,15 +1806,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getDevices_006 - * @tc.name : getDevices - ALL device - Callback - * @tc.desc : getDevices - ALL device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getDevices_006', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_0600 + *@tc.name : getDevices - ALL device - Callback + *@tc.desc : getDevices - ALL device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_0600', 2, async function (done) { dRValue = null; dTValue = null; devId = null; @@ -1849,15 +1849,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getDevices_007 - * @tc.name : getDevices - Output device - Promise - ENAME - * @tc.desc : getDevices - Output device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getDevices_007', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_0700 + *@tc.name : getDevices - Output device - Promise - ENAME + *@tc.desc : getDevices - Output device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_0700', 2, async function (done) { dRValue = null; dTValue = null; devId = null; @@ -1884,15 +1884,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getDevices_008 - * @tc.name : getDevices - Input device - Promise - ENAME - * @tc.desc : getDevices - Input device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getDevices_008', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_0800 + *@tc.name : getDevices - Input device - Promise - ENAME + *@tc.desc : getDevices - Input device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_0800', 2, async function (done) { dRValue = null; dTValue = null; devId = null; @@ -1919,15 +1919,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getDevices_009 - * @tc.name : getDevices - ALL device - Promise - ENAME - * @tc.desc : getDevices - ALL device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getDevices_009', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_0900 + *@tc.name : getDevices - ALL device - Promise - ENAME + *@tc.desc : getDevices - ALL device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_0900', 2, async function (done) { dRValue = null; dTValue = null; devId = null; @@ -1954,15 +1954,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getDevices_010 - * @tc.name : getDevices - Output device - Callback - ENAME - * @tc.desc : getDevices - Output device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getDevices_010', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_1000 + *@tc.name : getDevices - Output device - Callback - ENAME + *@tc.desc : getDevices - Output device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_1000', 2, async function (done) { dRValue = null; dTValue = null; devId = null; @@ -1993,15 +1993,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getDevices_011 - * @tc.name : getDevices - Input device - Callback - ENAME - * @tc.desc : getDevices - Input device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getDevices_011', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_1100 + *@tc.name : getDevices - Input device - Callback - ENAME + *@tc.desc : getDevices - Input device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_1100', 2, async function (done) { dRValue = null; dTValue = null; devId = null; @@ -2033,15 +2033,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getDevices_012 - * @tc.name : getDevices - ALL device - Callback - ENAME - * @tc.desc : getDevices - ALL device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getDevices_012', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_1200 + *@tc.name : getDevices - ALL device - Callback - ENAME + *@tc.desc : getDevices - ALL device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETDEVICES_1200', 2, async function (done) { dRValue = null; dTValue = null; devId = null; @@ -2072,15 +2072,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setRingerMode_001 - * @tc.name : setRingerMode - Normal Mode - Promise - * @tc.desc : setRingerMode - Set Ring more to Normal Mode - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setRingerMode_001', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETRINGERMODE_0100 + *@tc.name : setRingerMode - Normal Mode - Promise + *@tc.desc : setRingerMode - Set Ring more to Normal Mode + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETRINGERMODE_0100', 1, async function (done) { const promise = audioManager.setRingerMode(2); // Setting Ringtone Mode to Normal ENUM 2 = RINGER_MODE_NORMAL promise.then(function () { @@ -2100,15 +2100,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setRingerMode_002 - * @tc.name : setRingerMode - Silent Mode - Promise - * @tc.desc : setRingerMode - Set Ring more to Silent Mode - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setRingerMode_002', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETRINGERMODE_0200 + *@tc.name : setRingerMode - Silent Mode - Promise + *@tc.desc : setRingerMode - Set Ring more to Silent Mode + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETRINGERMODE_0200', 1, async function (done) { const promise = audioManager.setRingerMode(0); // Setting Ringtone Mode to Silent ENUM 0 = RINGER_MODE_SILENT promise.then(function () { @@ -2128,15 +2128,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setRingerMode_003 - * @tc.name : setRingerMode - Vibration Mode - Promise - * @tc.desc : setRingerMode - Set Ring more to Vibration Mode - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setRingerMode_003', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETRINGERMODE_0300 + *@tc.name : setRingerMode - Vibration Mode - Promise + *@tc.desc : setRingerMode - Set Ring more to Vibration Mode + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETRINGERMODE_0300', 2, async function (done) { const promise = audioManager.setRingerMode(1); // Setting Ringtone Mode to Vibration ENUM 1 = RINGER_MODE_VIBRATE promise.then(function () { @@ -2156,15 +2156,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setRingerMode_004 - * @tc.name : setRingerMode - Normal Mode - Callback - * @tc.desc : setRingerMode - Set Ring more to Normal Mode - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setRingerMode_004', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETRINGERMODE_0400 + *@tc.name : setRingerMode - Normal Mode - Callback + *@tc.desc : setRingerMode - Set Ring more to Normal Mode + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETRINGERMODE_0400', 2, async function (done) { audioManager.setRingerMode(2, (err) => { // Setting Ringtone Mode to Normal ENUM 2 = RINGER_MODE_NORMAL console.info('AudioFrameworkTest: Callback : setRingerMode RINGER_MODE_NORMAL'); @@ -2193,15 +2193,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setRingerMode_005 - * @tc.name : setRingerMode - Silent Mode - Callback - * @tc.desc : setRingerMode - Set Ring more to Silent Mode - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setRingerMode_005', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETRINGERMODE_0500 + *@tc.name : setRingerMode - Silent Mode - Callback + *@tc.desc : setRingerMode - Set Ring more to Silent Mode + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETRINGERMODE_0500', 2, async function (done) { audioManager.setRingerMode(0, (err) => { // Setting Ringtone Mode to Silent ENUM 0 = RINGER_MODE_SILENT console.info('AudioFrameworkTest: Callback : setRingerMode RINGER_MODE_SILENT'); @@ -2231,15 +2231,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setRingerMode_006 - * @tc.name : setRingerMode - Vibration Mode - Callback - * @tc.desc : setRingerMode - Set Ring more to Vibration Mode - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setRingerMode_006', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETRINGERMODE_0600 + *@tc.name : setRingerMode - Vibration Mode - Callback + *@tc.desc : setRingerMode - Set Ring more to Vibration Mode + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETRINGERMODE_0600', 2, async function (done) { audioManager.setRingerMode(1, (err) => { // Setting Ringtone Mode to Vibration ENUM 1 = RINGER_MODE_VIBRATE console.info('AudioFrameworkTest: Callback : setRingerMode RINGER_MODE_VIBRATE'); @@ -2269,15 +2269,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setRingerMode_007 - * @tc.name : setRingerMode - Normal Mode - Promise - ENAME - * @tc.desc : setRingerMode - Set Ring more to Normal Mode - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setRingerMode_007', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETRINGERMODE_0700 + *@tc.name : setRingerMode - Normal Mode - Promise - ENAME + *@tc.desc : setRingerMode - Set Ring more to Normal Mode + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETRINGERMODE_0700', 2, async function (done) { const promise = audioManager.setRingerMode(audio.AudioRingMode.RINGER_MODE_NORMAL); promise.then(function () { console.info('AudioFrameworkTest: Promise: setRingerMode RINGER_MODE_NORMAL'); @@ -2296,15 +2296,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setRingerMode_008 - * @tc.name : setRingerMode - Silent Mode - Promise - ENAME - * @tc.desc : setRingerMode - Set Ring more to Silent Mode - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setRingerMode_008', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETRINGERMODE_0800 + *@tc.name : setRingerMode - Silent Mode - Promise - ENAME + *@tc.desc : setRingerMode - Set Ring more to Silent Mode + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETRINGERMODE_0800', 2, async function (done) { const promise = audioManager.setRingerMode(audio.AudioRingMode.RINGER_MODE_SILENT); promise.then(function () { console.info('AudioFrameworkTest: Promise: setRingerMode RINGER_MODE_SILENT'); @@ -2323,15 +2323,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setRingerMode_009 - * @tc.name : setRingerMode - Vibration Mode - Promise - NAME - * @tc.desc : setRingerMode - Set Ring more to Vibration Mode - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setRingerMode_009', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETRINGERMODE_0900 + *@tc.name : setRingerMode - Vibration Mode - Promise - NAME + *@tc.desc : setRingerMode - Set Ring more to Vibration Mode + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETRINGERMODE_0900', 2, async function (done) { const promise = audioManager.setRingerMode(audio.AudioRingMode.RINGER_MODE_VIBRATE); promise.then(function () { console.info('AudioFrameworkTest: Promise: setRingerMode RINGER_MODE_VIBRATE'); @@ -2350,15 +2350,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setRingerMode_010 - * @tc.name : setRingerMode - Normal Mode - Callback - ENAME - * @tc.desc : setRingerMode - Set Ring more to Normal Mode - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setRingerMode_010', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETRINGERMODE_1000 + *@tc.name : setRingerMode - Normal Mode - Callback - ENAME + *@tc.desc : setRingerMode - Set Ring more to Normal Mode + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETRINGERMODE_1000', 2, async function (done) { audioManager.setRingerMode(audio.AudioRingMode.RINGER_MODE_NORMAL, (err) => { console.info('AudioFrameworkTest: Callback : setRingerMode RINGER_MODE_NORMAL'); if (err) { @@ -2386,15 +2386,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setRingerMode_0011 - * @tc.name : setRingerMode - Silent Mode - Callback - ENAME - * @tc.desc : setRingerMode - Set Ring more to Silent Mode - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setRingerMode_011', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETRINGERMODE_1100 + *@tc.name : setRingerMode - Silent Mode - Callback - ENAME + *@tc.desc : setRingerMode - Set Ring more to Silent Mode + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETRINGERMODE_1100', 2, async function (done) { audioManager.setRingerMode(audio.AudioRingMode.RINGER_MODE_SILENT, (err) => { console.info('AudioFrameworkTest: Callback : setRingerMode RINGER_MODE_SILENT'); if (err) { @@ -2423,15 +2423,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setRingerMode_012 - * @tc.name : setRingerMode - Vibration Mode - Callback - * @tc.desc : setRingerMode - Set Ring more to Vibration Mode - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setRingerMode_012', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETRINGERMODE_1200 + *@tc.name : setRingerMode - Vibration Mode - Callback + *@tc.desc : setRingerMode - Set Ring more to Vibration Mode + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETRINGERMODE_1200', 2, async function (done) { audioManager.setRingerMode(audio.AudioRingMode.RINGER_MODE_VIBRATE, (err, value) => { console.info('AudioFrameworkTest: Callback : setRingerMode RINGER_MODE_VIBRATE'); if (err) { @@ -2460,15 +2460,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_mute_006 - * @tc.name : mute - Media - callback - * @tc.desc : mute - Media - callback - Disable mute - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_mute_006', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_MUTE_0100 + *@tc.name : mute - Media - callback + *@tc.desc : mute - Media - callback - Disable mute + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_MUTE_0100', 1, async function (done) { await audioManager.setVolume(audioMedia, highVol); audioManager.mute(audioMedia, true, (err) => { if (err) { @@ -2516,15 +2516,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_mute_005 - * @tc.name : mute - Media - Promise - * @tc.desc : mute - Media - Promise - Disable mute - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_mute_005', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_MUTE_0200 + *@tc.name : mute - Media - Promise + *@tc.desc : mute - Media - Promise - Disable mute + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_MUTE_0200', 1, async function (done) { await audioManager.setVolume(audioMedia, lowVol); await audioManager.mute(audioMedia, true).then(() => { console.log('AudioFrameworkTest: Promise returned to indicate that the stream is muted.'); @@ -2565,15 +2565,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_mute_008 - * @tc.name : mute - Ringtone - callback - * @tc.desc : mute - Ringtone - callback - Disable mute - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_mute_008', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_MUTE_0300 + *@tc.name : mute - Ringtone - callback + *@tc.desc : mute - Ringtone - callback - Disable mute + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_MUTE_0300', 2, async function (done) { await audioManager.setVolume(audioRingtone, highVol); audioManager.mute(audioRingtone, true, (err) => { if (err) { @@ -2621,15 +2621,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_mute_007 - * @tc.name : mute - Ringtone - Promise - * @tc.desc : mute - Ringtone - Promise - disable mute - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_mute_007', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_MUTE_0400 + *@tc.name : mute - Ringtone - Promise + *@tc.desc : mute - Ringtone - Promise - disable mute + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_MUTE_0400', 2, async function (done) { await audioManager.setVolume(audioRingtone, lowVol); await audioManager.mute(audioRingtone, true).then(() => { console.log('AudioFrameworkTest: Promise returned to indicate that the stream is muted.'); @@ -2670,15 +2670,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_mute_015 - * @tc.name : mute - Media - callback - ENAME - * @tc.desc : mute - Media - callback - Disable mute - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_mute_015', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_MUTE_0500 + *@tc.name : mute - Media - callback - ENAME + *@tc.desc : mute - Media - callback - Disable mute + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_MUTE_0500', 2, async function (done) { await audioManager.setVolume(audio.AudioVolumeType.MEDIA, highVol); audioManager.mute(audio.AudioVolumeType.MEDIA, true, (err) => { if (err) { @@ -2726,15 +2726,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_mute_011 - * @tc.name : mute - Media - Promise - ENAME - * @tc.desc : mute - Media - Promise - Disable mute - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_mute_011', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_MUTE_0600 + *@tc.name : mute - Media - Promise - ENAME + *@tc.desc : mute - Media - Promise - Disable mute + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_MUTE_0600', 2, async function (done) { await audioManager.setVolume(audio.AudioVolumeType.MEDIA, lowVol); await audioManager.mute(audio.AudioVolumeType.MEDIA, true).then(() => { console.log('AudioFrameworkTest: Promise returned to indicate that the stream is muted.'); @@ -2775,15 +2775,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_mute_016 - * @tc.name : mute - Ringtone - callback - ENAME - * @tc.desc : mute - Ringtone - callback - Disable mute - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_mute_016', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_MUTE_0700 + *@tc.name : mute - Ringtone - callback - ENAME + *@tc.desc : mute - Ringtone - callback - Disable mute + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_MUTE_0700', 2, async function (done) { await audioManager.setVolume(audio.AudioVolumeType.RINGTONE, highVol); audioManager.mute(audio.AudioVolumeType.RINGTONE, true, (err) => { if (err) { @@ -2831,15 +2831,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_mute_014 - * @tc.name : mute - RINGTONE - Promise - ENAME: - * @tc.desc : mute - RINGTONE - Promise - Disable mute - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_mute_014', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_MUTE_0800 + *@tc.name : mute - RINGTONE - Promise - ENAME: + *@tc.desc : mute - RINGTONE - Promise - Disable mute + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_MUTE_0800', 2, async function (done) { await audioManager.setVolume(audio.AudioVolumeType.RINGTONE, lowVol); await audioManager.mute(audio.AudioVolumeType.RINGTONE, true).then(() => { console.log('AudioFrameworkTest: Promise returned to indicate that the stream is muted.'); @@ -2880,15 +2880,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_mute_021 - * @tc.name : mute - VOICE_CALL - callback - ENAME - * @tc.desc : mute - VOICE_CALL - callback - Disable mute - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_mute_021', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_MUTE_0900 + *@tc.name : mute - VOICE_CALL - callback - ENAME + *@tc.desc : mute - VOICE_CALL - callback - Disable mute + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_MUTE_0900', 2, async function (done) { await audioManager.setVolume(audio.AudioVolumeType.VOICE_CALL, highVol); audioManager.mute(audio.AudioVolumeType.VOICE_CALL, true, (err) => { if (err) { @@ -2936,15 +2936,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_mute_022 - * @tc.name : mute - VOICE_CALL - Promise - ENAME - * @tc.desc : mute - VOICE_CALL - Promise - Disable mute - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_mute_022', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_MUTE_1000 + *@tc.name : mute - VOICE_CALL - Promise - ENAME + *@tc.desc : mute - VOICE_CALL - Promise - Disable mute + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_MUTE_1000', 2, async function (done) { await audioManager.setVolume(audio.AudioVolumeType.VOICE_CALL, lowVol); await audioManager.mute(audio.AudioVolumeType.VOICE_CALL, true).then(() => { console.log('AudioFrameworkTest: Promise returned to indicate that the stream is muted.'); @@ -2985,15 +2985,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_mute_023 - * @tc.name : mute - VOICE_ASSISTANT - callback - ENAME - * @tc.desc : mute - VOICE_ASSISTANT - callback - Disable mute - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_mute_023', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_MUTE_1100 + *@tc.name : mute - VOICE_ASSISTANT - callback - ENAME + *@tc.desc : mute - VOICE_ASSISTANT - callback - Disable mute + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_MUTE_1100', 2, async function (done) { await audioManager.setVolume(audio.AudioVolumeType.VOICE_ASSISTANT, highVol); audioManager.mute(audio.AudioVolumeType.VOICE_ASSISTANT, true, (err) => { if (err) { @@ -3041,15 +3041,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_mute_024 - * @tc.name : mute - VOICE_ASSISTANT - Promise - ENAME - * @tc.desc : mute - VOICE_ASSISTANT - Promise - Disable mute - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_mute_024', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_MUTE_1200 + *@tc.name : mute - VOICE_ASSISTANT - Promise - ENAME + *@tc.desc : mute - VOICE_ASSISTANT - Promise - Disable mute + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_MUTE_1200', 2, async function (done) { await audioManager.setVolume(audio.AudioVolumeType.VOICE_ASSISTANT, lowVol); await audioManager.mute(audio.AudioVolumeType.VOICE_ASSISTANT, true).then(() => { console.log('AudioFrameworkTest: Promise returned to indicate that the stream is muted.'); @@ -3090,15 +3090,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_mute_017 - * @tc.name : mute - Media - Promise - SetVolume - * @tc.desc : mute - Media - Promise - Enable mute -SetVolume - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_mute_017', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_MUTE_1300 + *@tc.name : mute - Media - Promise - SetVolume + *@tc.desc : mute - Media - Promise - Enable mute -SetVolume + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_MUTE_1300', 2, async function (done) { await audioManager.setVolume(audioMedia, highVol); await audioManager.mute(audioMedia, true).then(async function () { console.log('AudioFrameworkTest: Set Stream Mute: Media: Promise: TRUE'); @@ -3133,15 +3133,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_mute_018 - * @tc.name : mute - Media - callback - SetVolume - * @tc.desc : mute - Media - callback - Enable mute - SetVolume - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_mute_018', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_MUTE_1400 + *@tc.name : mute - Media - callback - SetVolume + *@tc.desc : mute - Media - callback - Enable mute - SetVolume + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_MUTE_1400', 2, async function (done) { await audioManager.setVolume(audioMedia, lowVol); audioManager.mute(audioMedia, true, async (err) => { if (err) { @@ -3182,15 +3182,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_mute_019 - * @tc.name : mute - Ringtone - Promise - SetVolume - * @tc.desc : mute - Ringtone - Promise - Enable mute - SetVolume - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_mute_019', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_MUTE_1500 + *@tc.name : mute - Ringtone - Promise - SetVolume + *@tc.desc : mute - Ringtone - Promise - Enable mute - SetVolume + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_MUTE_1500', 2, async function (done) { await audioManager.setVolume(audioRingtone, lowVol); await audioManager.mute(audioRingtone, true).then(async function () { console.log('AudioFrameworkTest: Set Stream Mute: Ringtone: Promise: SetVolume'); @@ -3225,15 +3225,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_mute_020 - * @tc.name : mute - Ringtone - callback - SetVolume - * @tc.desc : mute - Ringtone - callback - Enable mute - SetVolume - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_mute_020', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_MUTE_1600 + *@tc.name : mute - Ringtone - callback - SetVolume + *@tc.desc : mute - Ringtone - callback - Enable mute - SetVolume + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_MUTE_1600', 2, async function (done) { await audioManager.setVolume(audioRingtone, highVol); audioManager.mute(audioRingtone, true, async (err) => { if (err) { @@ -3274,15 +3274,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_mute_025 - * @tc.name : mute - VOICE_CALL - Promise - SetVolume - * @tc.desc : mute - VOICE_CALL - Promise - Enable mute -SetVolume - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_mute_025', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_MUTE_1700 + *@tc.name : mute - VOICE_CALL - Promise - SetVolume + *@tc.desc : mute - VOICE_CALL - Promise - Enable mute -SetVolume + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_MUTE_1700', 2, async function (done) { await audioManager.setVolume(audio.AudioVolumeType.VOICE_CALL, highVol); await audioManager.mute(audio.AudioVolumeType.VOICE_CALL, true).then(async function () { console.log('AudioFrameworkTest: Set Stream Mute: VOICE_CALL: Promise: TRUE'); @@ -3317,15 +3317,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_mute_026 - * @tc.name : mute - VOICE_CALL - callback - SetVolume - * @tc.desc : mute - VOICE_CALL - callback - Enable mute - SetVolume - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_mute_026', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_MUTE_1800 + *@tc.name : mute - VOICE_CALL - callback - SetVolume + *@tc.desc : mute - VOICE_CALL - callback - Enable mute - SetVolume + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_MUTE_1800', 2, async function (done) { await audioManager.setVolume(audio.AudioVolumeType.VOICE_CALL, highVol); audioManager.mute(audio.AudioVolumeType.VOICE_CALL, true, async (err) => { if (err) { @@ -3366,15 +3366,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_mute_027 - * @tc.name : mute - VOICE_ASSISTANT - Promise - SetVolume - * @tc.desc : mute - VOICE_ASSISTANT - Promise - Enable mute -SetVolume - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_mute_027', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_MUTE_1900 + *@tc.name : mute - VOICE_ASSISTANT - Promise - SetVolume + *@tc.desc : mute - VOICE_ASSISTANT - Promise - Enable mute -SetVolume + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_MUTE_1900', 2, async function (done) { await audioManager.setVolume(audio.AudioVolumeType.VOICE_ASSISTANT, highVol); await audioManager.mute(audio.AudioVolumeType.VOICE_ASSISTANT, true).then(async function () { console.log('AudioFrameworkTest: Set Stream Mute: VOICE_ASSISTANT: Promise: TRUE'); @@ -3409,15 +3409,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_mute_028 - * @tc.name : mute - VOICE_ASSISTANT - callback - SetVolume - * @tc.desc : mute - VOICE_ASSISTANT - callback - Enable mute - SetVolume - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_mute_028', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_MUTE_2000 + *@tc.name : mute - VOICE_ASSISTANT - callback - SetVolume + *@tc.desc : mute - VOICE_ASSISTANT - callback - Enable mute - SetVolume + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_MUTE_2000', 2, async function (done) { await audioManager.setVolume(audio.AudioVolumeType.VOICE_ASSISTANT, highVol); audioManager.mute(audio.AudioVolumeType.VOICE_ASSISTANT, true, async (err) => { if (err) { @@ -3456,15 +3456,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_isActive_005 - * @tc.name : isActive - Media - Promise - * @tc.desc : isActive - Media - Promise - When stream is NOT playing - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_isActive_005', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_ISACTIVE_0100 + *@tc.name : isActive - Media - Promise + *@tc.desc : isActive - Media - Promise - When stream is NOT playing + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_ISACTIVE_0100', 1, async function (done) { console.log('AudioFrameworkTest: Promise : isActive Media: NOTE: audio NOT PLAYING as MEDIA for the test case to PASS'); const promise = audioManager.isActive(audioMedia); promise.then(function (data) { @@ -3481,15 +3481,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_isActive_006 - * @tc.name : isActive - Media - Callback - * @tc.desc : isActive - Media - Callback - When stream is NOT playing - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_isActive_006', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_ISACTIVE_0200 + *@tc.name : isActive - Media - Callback + *@tc.desc : isActive - Media - Callback - When stream is NOT playing + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_ISACTIVE_0200', 1, async function (done) { console.log('AudioFrameworkTest: Callback : isActive Media: NOTE: audio NOT PLAYING as MEDIA for the test case to PASS'); audioManager.isActive(audioMedia, (err, data) => { if (err) { @@ -3508,15 +3508,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_isActive_007 - * @tc.name : isActive - Ringtone - Promise - * @tc.desc : isActive - Ringtone - Promise - When stream is NOT playing - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_isActive_007', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_ISACTIVE_0300 + *@tc.name : isActive - Ringtone - Promise + *@tc.desc : isActive - Ringtone - Promise - When stream is NOT playing + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_ISACTIVE_0300', 2, async function (done) { console.log('AudioFrameworkTest: Promise : isActive Ringtone: NOTE: audio NOT PLAYING as MEDIA for the test case to PASS'); const promise = audioManager.isActive(audioRingtone); promise.then(function (data) { @@ -3533,15 +3533,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_isActive_008 - * @tc.name : isActive - Ringtone - Callback - * @tc.desc : isActive - Ringtone - Callback - When stream is NOT playing - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_isActive_008', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_ISACTIVE_0400 + *@tc.name : isActive - Ringtone - Callback + *@tc.desc : isActive - Ringtone - Callback - When stream is NOT playing + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_ISACTIVE_0400', 2, async function (done) { console.log('AudioFrameworkTest: Callback : isActive Ringtone: NOTE: audio NOT PLAYING as MEDIA for the test case to PASS'); audioManager.isActive(audioRingtone, (err, data) => { if (err) { @@ -3560,15 +3560,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_isActive_013 - * @tc.name : isActive - Media - Promise - ENAME: - * @tc.desc : isActive - Media - Promise - When stream is NOT playing - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_isActive_013', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_ISACTIVE_0500 + *@tc.name : isActive - Media - Promise - ENAME: + *@tc.desc : isActive - Media - Promise - When stream is NOT playing + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_ISACTIVE_0500', 2, async function (done) { console.log('AudioFrameworkTest: Promise : isActive Media: ENAME: NOTE: audio NOT PLAYING as MEDIA for the test case to PASS'); const promise = audioManager.isActive(audio.AudioVolumeType.MEDIA); promise.then(function (data) { @@ -3585,15 +3585,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_isActive_014 - * @tc.name : isActive - Media - Callback - ENAME - * @tc.desc : isActive - Media - Callback - When stream is NOT playing - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_isActive_014', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_ISACTIVE_0600 + *@tc.name : isActive - Media - Callback - ENAME + *@tc.desc : isActive - Media - Callback - When stream is NOT playing + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_ISACTIVE_0600', 2, async function (done) { console.log('AudioFrameworkTest: Callback : isActive Media: ENAME: NOTE: audio NOT PLAYING as MEDIA for the test case to PASS'); audioManager.isActive(audio.AudioVolumeType.MEDIA, (err, data) => { if (err) { @@ -3612,15 +3612,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_isActive_015 - * @tc.name : isActive - Ringtone - Promise - ENAME - * @tc.desc : isActive - Ringtone - Promise - When stream is NOT playing - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_isActive_015', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_ISACTIVE_0700 + *@tc.name : isActive - Ringtone - Promise - ENAME + *@tc.desc : isActive - Ringtone - Promise - When stream is NOT playing + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_ISACTIVE_0700', 2, async function (done) { console.log('AudioFrameworkTest: Promise : isActive Ringtone: ENAME: NOTE: audio NOT PLAYING as MEDIA for the test case to PASS'); const promise = audioManager.isActive(audio.AudioVolumeType.RINGTONE); promise.then(function (data) { @@ -3637,15 +3637,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_isActive_016 - * @tc.name : isActive - Ringtone - Callback - ENAME - * @tc.desc : isActive - Ringtone - Callback - When stream is NOT playing - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_isActive_016', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_ISACTIVE_0800 + *@tc.name : isActive - Ringtone - Callback - ENAME + *@tc.desc : isActive - Ringtone - Callback - When stream is NOT playing + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_ISACTIVE_0800', 2, async function (done) { console.log('AudioFrameworkTest: Callback : isActive Ringtone: ENAME: NOTE: audio NOT PLAYING as MEDIA for the test case to PASS'); audioManager.isActive(audio.AudioVolumeType.RINGTONE, (err, data) => { if (err) { @@ -3664,15 +3664,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setMicrophoneMute_001 - * @tc.name : setMicrophoneMute - true - Promise - * @tc.desc : Enable mic mute - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setMicrophoneMute_001', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETMICROPHONEMUTE_0100 + *@tc.name : setMicrophoneMute - true - Promise + *@tc.desc : Enable mic mute + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETMICROPHONEMUTE_0100', 1, async function (done) { await audioManager.setMicrophoneMute(true).then(function () { console.log('AudioFrameworkTest: setMicrophoneMute: Promise: TRUE'); audioManager.isMicrophoneMute().then(function (data) { @@ -3692,15 +3692,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setMicrophoneMute_002 - * @tc.name : setMicrophoneMute - false - Promise - * @tc.desc : Disable mic mute - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setMicrophoneMute_002', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETMICROPHONEMUTE_0200 + *@tc.name : setMicrophoneMute - false - Promise + *@tc.desc : Disable mic mute + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETMICROPHONEMUTE_0200', 1, async function (done) { await audioManager.setMicrophoneMute(false).then(function () { console.log('AudioFrameworkTest: setMicrophoneMute: Promise: FALSE'); audioManager.isMicrophoneMute().then(function (data) { @@ -3720,15 +3720,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setMicrophoneMute_003 - * @tc.name : setMicrophoneMute - true - Callback - * @tc.desc : Enable mic mute - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setMicrophoneMute_003', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETMICROPHONEMUTE_0300 + *@tc.name : setMicrophoneMute - true - Callback + *@tc.desc : Enable mic mute + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETMICROPHONEMUTE_0300', 1, async function (done) { audioManager.setMicrophoneMute(true, (err) => { if (err) { console.error(`AudioFrameworkTest: setMicrophoneMute: Callback : TRUE: Error : ${err.message}`); @@ -3756,15 +3756,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setMicrophoneMute_004 - * @tc.name : setMicrophoneMute - false - Callback - * @tc.desc : Disable mic mute - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setMicrophoneMute_004', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETMICROPHONEMUTE_0400 + *@tc.name : setMicrophoneMute - false - Callback + *@tc.desc : Disable mic mute + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETMICROPHONEMUTE_0400', 1, async function (done) { audioManager.setMicrophoneMute(false, (err) => { if (err) { console.error(`AudioFrameworkTest: setMicrophoneMute: Callback : FALSE: Error : ${err.message}`); @@ -3792,15 +3792,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setDeviceActive_002 - * @tc.name : setDeviceActive - SPEAKER - deactivate - Promise - * @tc.desc : Deactivate speaker - Promise - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setDeviceActive_002', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_0100 + *@tc.name : setDeviceActive - SPEAKER - deactivate - Promise + *@tc.desc : Deactivate speaker - Promise + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_0100', 1, async function (done) { await audioManager.setDeviceActive(2, false).then(function () { // Setting device active ENUM 2 = SPEAKER console.info('AudioFrameworkTest: Device Test: Promise : setDeviceActive : SPEAKER: Deactivate'); @@ -3821,15 +3821,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setDeviceActive_003 - * @tc.name : setDeviceActive - SPEAKER - Activate - Promise - * @tc.desc : Activate speaker - Promise - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setDeviceActive_003', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_0200 + *@tc.name : setDeviceActive - SPEAKER - Activate - Promise + *@tc.desc : Activate speaker - Promise + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_0200', 1, async function (done) { await audioManager.setDeviceActive(audio.ActiveDeviceType.SPEAKER, true).then(function () { console.info('AudioFrameworkTest: Device Test: Promise : setDeviceActive : SPEAKER: Activate'); audioManager.isDeviceActive(2).then(function (value) { @@ -3850,15 +3850,15 @@ describe('audioManager', function () { }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setDeviceActive_006 - * @tc.name : setDeviceActive - SPEAKER - deactivate - Callback - * @tc.desc : Deactivate speaker - Callback - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setDeviceActive_006', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_0300 + *@tc.name : setDeviceActive - SPEAKER - deactivate - Callback + *@tc.desc : Deactivate speaker - Callback + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_0300', 2, async function (done) { audioManager.setDeviceActive(audio.ActiveDeviceType.SPEAKER, false, (err) => { if (err) { console.error(`AudioFrameworkTest: Device Test: Callback : setDeviceActive : SPEAKER: Deactivate: Error: ${err.message}`); @@ -3886,15 +3886,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setDeviceActive_007 - * @tc.name : setDeviceActive - SPEAKER - deactivate - Callback - * @tc.desc : Activate speaker - Callback - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setDeviceActive_007', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_0400 + *@tc.name : setDeviceActive - SPEAKER - deactivate - Callback + *@tc.desc : Activate speaker - Callback + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETDEVICEACTIVE_0400', 2, async function (done) { audioManager.setDeviceActive(audio.ActiveDeviceType.SPEAKER, true, (err) => { if (err) { console.error(`AudioFrameworkTest: Device Test: Callback : setDeviceActive : SPEAKER: Active: Error: ${err.message}`); @@ -3923,15 +3923,15 @@ describe('audioManager', function () { }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setAudioParameter_001 - * @tc.name : setAudioParameter - Promise - Character & Number - * @tc.desc : setAudioParameter - Promise - Character & Number - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setAudioParameter_001', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETAUDIOPARAMETER_0100 + *@tc.name : setAudioParameter - Promise - Character & Number + *@tc.desc : setAudioParameter - Promise - Character & Number + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETAUDIOPARAMETER_0100', 1, async function (done) { const promise = audioManager.setAudioParameter('VOICE_PHONE_STATUS', '8 bit'); promise.then(function () { console.info('AudioFrameworkTest: Audio Parameter Test: Promise : setAudioParameter'); @@ -3950,15 +3950,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setAudioParameter_002 - * @tc.name : setAudioParameter - Promise - Number - * @tc.desc : setAudioParameter - Promise - Number - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setAudioParameter_002', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETAUDIOPARAMETER_0200 + *@tc.name : setAudioParameter - Promise - Number + *@tc.desc : setAudioParameter - Promise - Number + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETAUDIOPARAMETER_0200', 1, async function (done) { const promise = audioManager.setAudioParameter('VOICE_PHONE_STATUS', '4800'); promise.then(function () { console.info('AudioFrameworkTest: Audio Parameter Test: Promise : setAudioParameter'); @@ -3977,15 +3977,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setAudioParameter_003 - * @tc.name : setAudioParameter - Promise - Long Number - * @tc.desc : setAudioParameter - Promise - Long Number - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setAudioParameter_003', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETAUDIOPARAMETER_0300 + *@tc.name : setAudioParameter - Promise - Long Number + *@tc.desc : setAudioParameter - Promise - Long Number + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETAUDIOPARAMETER_0300', 2, async function (done) { const promise = audioManager.setAudioParameter('VOICE_PHONE_STATUS', longValue); promise.then(function () { console.info('AudioFrameworkTest: Audio Parameter Test: Promise : setAudioParameter'); @@ -4004,15 +4004,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setAudioParameter_004 - * @tc.name : setAudioParameter - Promise - Decimal - * @tc.desc : setAudioParameter - Promise - Decimal - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setAudioParameter_004', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETAUDIOPARAMETER_0400 + *@tc.name : setAudioParameter - Promise - Decimal + *@tc.desc : setAudioParameter - Promise - Decimal + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETAUDIOPARAMETER_0400', 2, async function (done) { const promise = audioManager.setAudioParameter('VOICE_PHONE_STATUS', '10.000000234324324324'); promise.then(function () { console.info('AudioFrameworkTest: Audio Parameter Test: Promise : setAudioParameter'); @@ -4031,15 +4031,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setAudioParameter_005 - * @tc.name : setAudioParameter - Promise - Parameter name Number - * @tc.desc : setAudioParameter - Promise - Parameter name Number - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setAudioParameter_005', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETAUDIOPARAMETER_0500 + *@tc.name : setAudioParameter - Promise - Parameter name Number + *@tc.desc : setAudioParameter - Promise - Parameter name Number + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETAUDIOPARAMETER_0500', 2, async function (done) { const promise = audioManager.setAudioParameter('VOICE_PHONE_STATUS', 'PPNumber'); promise.then(function () { console.info('AudioFrameworkTest: Audio Parameter Test: Promise : setAudioParameter'); @@ -4058,15 +4058,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setAudioParameter_006 - * @tc.name : setAudioParameter - Promise - Special Characters - * @tc.desc : setAudioParameter - Promise - Special Characters - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setAudioParameter_006', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETAUDIOPARAMETER_0600 + *@tc.name : setAudioParameter - Promise - Special Characters + *@tc.desc : setAudioParameter - Promise - Special Characters + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETAUDIOPARAMETER_0600', 2, async function (done) { const promise = audioManager.setAudioParameter('VOICE_PHONE_STATUS', '[]\:";<>?,./~!@#$%^*()_+-={}|'); promise.then(function () { console.info('AudioFrameworkTest: Audio Parameter Test: Promise : setAudioParameter'); @@ -4085,15 +4085,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setAudioParameter_007 - * @tc.name : setAudioParameter - Callback - Character & Number - * @tc.desc : setAudioParameter - Callback - Character & Number - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setAudioParameter_007', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETAUDIOPARAMETER_0700 + *@tc.name : setAudioParameter - Callback - Character & Number + *@tc.desc : setAudioParameter - Callback - Character & Number + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETAUDIOPARAMETER_0700', 2, async function (done) { audioManager.setAudioParameter('VOICE_PHONE_STATUS', '16 bit', (err) => { console.info('AudioFrameworkTest: Audio Parameter Test: Callback : setAudioParameter'); if (err) { @@ -4121,15 +4121,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setAudioParameter_008 - * @tc.name : setAudioParameter - Callback - Special Character - * @tc.desc : setAudioParameter - Callback - Special Character - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setAudioParameter_008', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETAUDIOPARAMETER_0800 + *@tc.name : setAudioParameter - Callback - Special Character + *@tc.desc : setAudioParameter - Callback - Special Character + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETAUDIOPARAMETER_0800', 2, async function (done) { audioManager.setAudioParameter('VOICE_PHONE_STATUS', '~!@#$%^*()_+-={}|[]\:";<>?,./', (err) => { console.info('AudioFrameworkTest: Audio Parameter Test: Callback : setAudioParameter'); if (err) { @@ -4157,15 +4157,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setAudioParameter_009 - * @tc.name : setAudioParameter - Callback - Decimal - * @tc.desc : setAudioParameter - Callback - Decimal - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setAudioParameter_009', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETAUDIOPARAMETER_0900 + *@tc.name : setAudioParameter - Callback - Decimal + *@tc.desc : setAudioParameter - Callback - Decimal + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETAUDIOPARAMETER_0900', 2, async function (done) { audioManager.setAudioParameter('VOICE_PHONE_STATUS', '10000.21321432432432', (err) => { console.info('AudioFrameworkTest: Audio Parameter Test: Callback : setAudioParameter'); if (err) { @@ -4193,15 +4193,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setAudioParameter_010 - * @tc.name : setAudioParameter - Callback - Number - * @tc.desc : setAudioParameter - Callback - Number - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setAudioParameter_010', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETAUDIOPARAMETER_1000 + *@tc.name : setAudioParameter - Callback - Number + *@tc.desc : setAudioParameter - Callback - Number + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETAUDIOPARAMETER_1000', 2, async function (done) { audioManager.setAudioParameter('VOICE_PHONE_STATUS', '5454', (err) => { console.info('AudioFrameworkTest: Audio Parameter Test: Callback :VOICE_PHONE_STATUS : setAudioParameter'); if (err) { @@ -4229,15 +4229,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setAudioParameter_011 - * @tc.name : setAudioParameter - Callback - Long Number - * @tc.desc : setAudioParameter - Callback - Long Number - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setAudioParameter_011', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETAUDIOPARAMETER_1100 + *@tc.name : setAudioParameter - Callback - Long Number + *@tc.desc : setAudioParameter - Callback - Long Number + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETAUDIOPARAMETER_1100', 2, async function (done) { audioManager.setAudioParameter('VOICE_PHONE_STATUS', longValue, (err) => { console.info('AudioFrameworkTest: Audio Parameter Test: Callback :VOICE_PHONE_STATUS : setAudioParameter'); if (err) { @@ -4263,15 +4263,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_setAudioParameter_012 - * @tc.name : setAudioParameter - Callback - Parameter name Number - * @tc.desc : setAudioParameter - Callback - Parameter name Number - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_setAudioParameter_012', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_SETAUDIOPARAMETER_1200 + *@tc.name : setAudioParameter - Callback - Parameter name Number + *@tc.desc : setAudioParameter - Callback - Parameter name Number + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_SETAUDIOPARAMETER_1200', 2, async function (done) { audioManager.setAudioParameter('VOICE_PHONE_STATUS', 'xyza', (err) => { console.info('AudioFrameworkTest: Audio Parameter Test: Callback :VOICE_PHONE_STATUS : setAudioParameter'); if (err) { @@ -4297,15 +4297,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getAudioParameter_001 - * @tc.name : getAudioParameter - Promise - Character & Number - * @tc.desc : getAudioParameter - Promise - Character & Number - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getAudioParameter_001', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETAUDIOPARAMETER_0100 + *@tc.name : getAudioParameter - Promise - Character & Number + *@tc.desc : getAudioParameter - Promise - Character & Number + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETAUDIOPARAMETER_0100', 2, async function (done) { const promise = audioManager.setAudioParameter('VOICE_PHONE_STATUS', '8 bit'); promise.then(function () { console.info('AudioFrameworkTest: Audio Parameter Test: Promise : setAudioParameter'); @@ -4324,15 +4324,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getAudioParameter_002 - * @tc.name : getAudioParameter - Promise - Number - * @tc.desc : getAudioParameter - Promise - Number - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getAudioParameter_002', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETAUDIOPARAMETER_0200 + *@tc.name : getAudioParameter - Promise - Number + *@tc.desc : getAudioParameter - Promise - Number + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETAUDIOPARAMETER_0200', 2, async function (done) { const promise = audioManager.setAudioParameter('VOICE_PHONE_STATUS', '4800'); promise.then(function () { console.info('AudioFrameworkTest: Audio Parameter Test: Promise : setAudioParameter'); @@ -4351,15 +4351,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getAudioParameter_003 - * @tc.name : getAudioParameter - Promise - Long Number - * @tc.desc : getAudioParameter - Promise - Long Number - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getAudioParameter_003', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETAUDIOPARAMETER_0300 + *@tc.name : getAudioParameter - Promise - Long Number + *@tc.desc : getAudioParameter - Promise - Long Number + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETAUDIOPARAMETER_0300', 2, async function (done) { const promise = audioManager.setAudioParameter('VOICE_PHONE_STATUS', longValue); promise.then(function () { console.info('AudioFrameworkTest: Audio Parameter Test: Promise : setAudioParameter'); @@ -4378,15 +4378,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getAudioParameter_004 - * @tc.name : getAudioParameter - Promise - Decimal - * @tc.desc : getAudioParameter - Promise - Decimal - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getAudioParameter_004', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETAUDIOPARAMETER_0400 + *@tc.name : getAudioParameter - Promise - Decimal + *@tc.desc : getAudioParameter - Promise - Decimal + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETAUDIOPARAMETER_0400', 2, async function (done) { const promise = audioManager.setAudioParameter('VOICE_PHONE_STATUS', '10.0000000000234'); promise.then(function () { console.info('AudioFrameworkTest: Audio Parameter Test: Promise : setAudioParameter'); @@ -4405,15 +4405,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getAudioParameter_005 - * @tc.name : getAudioParameter - Promise - Parameter name Number - * @tc.desc : getAudioParameter - Promise - Parameter name Number - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getAudioParameter_005', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETAUDIOPARAMETER_0500 + *@tc.name : getAudioParameter - Promise - Parameter name Number + *@tc.desc : getAudioParameter - Promise - Parameter name Number + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETAUDIOPARAMETER_0500', 2, async function (done) { const promise = audioManager.setAudioParameter('VOICE_PHONE_STATUS', 'PPNumber'); promise.then(function () { console.info('AudioFrameworkTest: Audio Parameter Test: Promise : setAudioParameter'); @@ -4432,15 +4432,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getAudioParameter_006 - * @tc.name : getAudioParameter - Promise - Special Characters - * @tc.desc : getAudioParameter - Promise - Special Characters - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getAudioParameter_006', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETAUDIOPARAMETER_0600 + *@tc.name : getAudioParameter - Promise - Special Characters + *@tc.desc : getAudioParameter - Promise - Special Characters + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETAUDIOPARAMETER_0600', 2, async function (done) { const promise = audioManager.setAudioParameter('VOICE_PHONE_STATUS', '[]\:";<>?,./~!@#$%^*()_+-={}|'); promise.then(function () { console.info('AudioFrameworkTest: Audio Parameter Test: Promise : setAudioParameter'); @@ -4459,15 +4459,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getAudioParameter_007 - * @tc.name : getAudioParameter - Callback - Character & Number - * @tc.desc : getAudioParameter - Callback - Character & Number - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getAudioParameter_007', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETAUDIOPARAMETER_0700 + *@tc.name : getAudioParameter - Callback - Character & Number + *@tc.desc : getAudioParameter - Callback - Character & Number + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETAUDIOPARAMETER_0700', 2, async function (done) { audioManager.setAudioParameter('VOICE_PHONE_STATUS', '16 bit', (err) => { console.info('AudioFrameworkTest: Audio Parameter Test: Callback :VOICE_PHONE_STATUS : setAudioParameter'); if (err) { @@ -4493,15 +4493,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getAudioParameter_008 - * @tc.name : getAudioParameter - Callback - Special Character ~!@#$%^*()_+-={}|[]\:";<>?,./ - * @tc.desc : getAudioParameter - Callback - Special Character - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getAudioParameter_008', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETAUDIOPARAMETER_0800 + *@tc.name : getAudioParameter - Callback - Special Character ~!@#$%^*()_+-={}|[]\:";<>?,./ + *@tc.desc : getAudioParameter - Callback - Special Character + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETAUDIOPARAMETER_0800', 2, async function (done) { audioManager.setAudioParameter('VOICE_PHONE_STATUS', '~!@#$%^*()_+-={}|[]\:";<>?,./', (err) => { console.info('AudioFrameworkTest: Audio Parameter Test: Callback :VOICE_PHONE_STATUS : setAudioParameter'); if (err) { @@ -4527,15 +4527,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getAudioParameter_009 - * @tc.name : getAudioParameter - Callback - Decimal - * @tc.desc : getAudioParameter - Callback - Decimal 10000.21321432432432 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getAudioParameter_009', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETAUDIOPARAMETER_0900 + *@tc.name : getAudioParameter - Callback - Decimal + *@tc.desc : getAudioParameter - Callback - Decimal 10000.21321432432432 + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETAUDIOPARAMETER_0900', 2, async function (done) { audioManager.setAudioParameter('VOICE_PHONE_STATUS', '10000.21321432432432', (err) => { console.info('AudioFrameworkTest: Audio Parameter Test: Callback :VOICE_PHONE_STATUS : setAudioParameter'); if (err) { @@ -4561,15 +4561,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getAudioParameter_010 - * @tc.name : getAudioParameter - Callback - Number 5454 - * @tc.desc : getAudioParameter - Callback - Number - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getAudioParameter_010', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETAUDIOPARAMETER_1000 + *@tc.name : getAudioParameter - Callback - Number 5454 + *@tc.desc : getAudioParameter - Callback - Number + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETAUDIOPARAMETER_1000', 2, async function (done) { audioManager.setAudioParameter('VOICE_PHONE_STATUS', '5454', (err) => { console.info('AudioFrameworkTest: Audio Parameter Test: Callback :VOICE_PHONE_STATUS : setAudioParameter'); if (err) { @@ -4595,15 +4595,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getAudioParameter_011 - * @tc.name : getAudioParameter - Callback - Long Number longValue - * @tc.desc : getAudioParameter - Callback - Long Number - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_getAudioParameter_011', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETAUDIOPARAMETER_1100 + *@tc.name : getAudioParameter - Callback - Long Number longValue + *@tc.desc : getAudioParameter - Callback - Long Number + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_GETAUDIOPARAMETER_1100', 2, async function (done) { audioManager.setAudioParameter('VOICE_PHONE_STATUS', longValue, (err) => { console.info('AudioFrameworkTest: Audio Parameter Test: Callback :VOICE_PHONE_STATUS : setAudioParameter'); if (err) { @@ -4630,16 +4630,16 @@ describe('audioManager', function () { }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_getAudioParameter_012 - * @tc.name : getAudioParameter - Callback - Parameter name Number - * @tc.desc : getAudioParameter - Callback - Parameter name Number - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_GETAUDIOPARAMETER_1200 + *@tc.name : getAudioParameter - Callback - Parameter name Number + *@tc.desc : getAudioParameter - Callback - Parameter name Number + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ - it('SUB_AUDIO_MANAGER_getAudioParameter_012', 0, async function (done) { + it('MULTIMEDIA_AUDIO_MANAGER_GETAUDIOPARAMETER_1200', 2, async function (done) { audioManager.setAudioParameter('VOICE_PHONE_STATUS', 'xyza', (err) => { console.info('AudioFrameworkTest: Audio Parameter Test: Callback :VOICE_PHONE_STATUS : setAudioParameter'); if (err) { @@ -4665,16 +4665,15 @@ describe('audioManager', function () { }); }) - - /* * - * @tc.number : SUB_AUDIO_MANAGER_onVolumeChange_001 - * @tc.name : OnVolumeChange - setVolume - MEDIA - * @tc.desc : OnVolumeChange - setVolume - MEDIA - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_onVolumeChange_001', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_ONVOLUMECHANGE_0100 + *@tc.name : OnVolumeChange - setVolume - MEDIA + *@tc.desc : OnVolumeChange - setVolume - MEDIA + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_ONVOLUMECHANGE_0100', 1, async function (done) { audioManager.on('volumeChange', (VolumeEvent) => { @@ -4702,15 +4701,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_onVolumeChange_002 - * @tc.name : OnVolumeChange - setVolume - RINGTONE - * @tc.desc : OnVolumeChange - setVolume - RINGTONE - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_onVolumeChange_002', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_ONVOLUMECHANGE_0200 + *@tc.name : OnVolumeChange - setVolume - RINGTONE + *@tc.desc : OnVolumeChange - setVolume - RINGTONE + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_ONVOLUMECHANGE_0200', 1, async function (done) { audioManager.on('volumeChange', (VolumeEvent) => { @@ -4738,15 +4737,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_onVolumeChange_003 - * @tc.name : OnVolumeChange - setVolume - VOICE_CALL - * @tc.desc : OnVolumeChange - setVolume - VOICE_CALL - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_onVolumeChange_003', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_ONVOLUMECHANGE_0300 + *@tc.name : OnVolumeChange - setVolume - VOICE_CALL + *@tc.desc : OnVolumeChange - setVolume - VOICE_CALL + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_ONVOLUMECHANGE_0300', 2, async function (done) { audioManager.on('volumeChange', (VolumeEvent) => { @@ -4774,15 +4773,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_onVolumeChange_004 - * @tc.name : OnVolumeChange - setVolume - VOICE_ASSISTANT - * @tc.desc : OnVolumeChange - setVolume - VOICE_ASSISTANT - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_onVolumeChange_004', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_ONVOLUMECHANGE_0400 + *@tc.name : OnVolumeChange - setVolume - VOICE_ASSISTANT + *@tc.desc : OnVolumeChange - setVolume - VOICE_ASSISTANT + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_ONVOLUMECHANGE_0400', 2, async function (done) { audioManager.on('volumeChange', (VolumeEvent) => { @@ -4810,15 +4809,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_RingerModeChange_001 - * @tc.name : RingerModeChange - RINGER_MODE_SILENT - * @tc.desc : RingerModeChange - RINGER_MODE_SILENT - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_RingerModeChange_001', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_RINGERMODECHANGE_0100 + *@tc.name : RingerModeChange - RINGER_MODE_SILENT + *@tc.desc : RingerModeChange - RINGER_MODE_SILENT + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_RINGERMODECHANGE_0100', 1, async function (done) { audioManager.on('ringerModeChange', (ringerMode) => { @@ -4839,15 +4838,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_RingerModeChange_002 - * @tc.name : RingerModeChange - RINGER_MODE_VIBRATE - * @tc.desc : RingerModeChange - RINGER_MODE_VIBRATE - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_RingerModeChange_002', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_RINGERMODECHANGE_0200 + *@tc.name : RingerModeChange - RINGER_MODE_VIBRATE + *@tc.desc : RingerModeChange - RINGER_MODE_VIBRATE + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 1 + */ + it('MULTIMEDIA_AUDIO_MANAGER_RINGERMODECHANGE_0200', 1, async function (done) { audioManager.on('ringerModeChange', (ringerMode) => { @@ -4868,15 +4867,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_RingerModeChange_001 - * @tc.name : RingerModeChange - RINGER_MODE_SILENT - * @tc.desc : RingerModeChange - RINGER_MODE_SILENT - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_RingerModeChange_001', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_RINGERMODECHANGE_0300 + *@tc.name : RingerModeChange - RINGER_MODE_SILENT + *@tc.desc : RingerModeChange - RINGER_MODE_SILENT + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_RINGERMODECHANGE_0300', 2, async function (done) { audioManager.on('ringerModeChange', (ringerMode) => { console.log('AudioFrameworkTest: RingerModeChange is called'); @@ -4895,211 +4894,211 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_INTERRUPT_001 - * @tc.name : InterruptType - INTERRUPT_TYPE_BEGIN - * @tc.desc : InterruptType - INTERRUPT_TYPE_BEGIN - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_INTERRUPT_001', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_INTERRUPT_0100 + *@tc.name : InterruptType - INTERRUPT_TYPE_BEGIN + *@tc.desc : InterruptType - INTERRUPT_TYPE_BEGIN + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_INTERRUPT_0100', 2, async function (done) { expect(audio.InterruptType.INTERRUPT_TYPE_BEGIN).assertEqual(1); await sleep(50); done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_INTERRUPT_002 - * @tc.name : InterruptType - INTERRUPT_TYPE_END - * @tc.desc : InterruptType - INTERRUPT_TYPE_END - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_INTERRUPT_002', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_INTERRUPT_0200 + *@tc.name : InterruptType - INTERRUPT_TYPE_END + *@tc.desc : InterruptType - INTERRUPT_TYPE_END + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_INTERRUPT_0200', 2, async function (done) { expect(audio.InterruptType.INTERRUPT_TYPE_END).assertEqual(2); await sleep(50); done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_INTERRUPT_003 - * @tc.name : InterruptHint - INTERRUPT_HINT_NONE - * @tc.desc : InterruptHint - INTERRUPT_HINT_NONE - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_INTERRUPT_003', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_INTERRUPT_0300 + *@tc.name : InterruptHint - INTERRUPT_HINT_NONE + *@tc.desc : InterruptHint - INTERRUPT_HINT_NONE + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_INTERRUPT_0300', 2, async function (done) { expect(audio.InterruptHint.INTERRUPT_HINT_NONE).assertEqual(0); await sleep(50); done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_INTERRUPT_004 - * @tc.name : InterruptHint - INTERRUPT_HINT_RESUME - * @tc.desc : InterruptHint - INTERRUPT_HINT_RESUME - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_INTERRUPT_004', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_INTERRUPT_0400 + *@tc.name : InterruptHint - INTERRUPT_HINT_RESUME + *@tc.desc : InterruptHint - INTERRUPT_HINT_RESUME + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_INTERRUPT_0400', 2, async function (done) { expect(audio.InterruptHint.INTERRUPT_HINT_RESUME).assertEqual(1); await sleep(50); done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_INTERRUPT_005 - * @tc.name : InterruptHint - INTERRUPT_HINT_PAUSE - * @tc.desc : InterruptHint - INTERRUPT_HINT_PAUSE - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_INTERRUPT_005', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_INTERRUPT_0500 + *@tc.name : InterruptHint - INTERRUPT_HINT_PAUSE + *@tc.desc : InterruptHint - INTERRUPT_HINT_PAUSE + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_INTERRUPT_0500', 2, async function (done) { expect(audio.InterruptHint.INTERRUPT_HINT_PAUSE).assertEqual(2); await sleep(50); done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_INTERRUPT_006 - * @tc.name : InterruptHint - INTERRUPT_HINT_STOP - * @tc.desc : InterruptHint - INTERRUPT_HINT_STOP - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_INTERRUPT_006', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_INTERRUPT_0600 + *@tc.name : InterruptHint - INTERRUPT_HINT_STOP + *@tc.desc : InterruptHint - INTERRUPT_HINT_STOP + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_INTERRUPT_0600', 2, async function (done) { expect(audio.InterruptHint.INTERRUPT_HINT_STOP).assertEqual(3); await sleep(50); done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_INTERRUPT_007 - * @tc.name : InterruptHint - INTERRUPT_HINT_DUCK - * @tc.desc : InterruptHint - INTERRUPT_HINT_DUCK - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_INTERRUPT_007', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_INTERRUPT_0700 + *@tc.name : InterruptHint - INTERRUPT_HINT_DUCK + *@tc.desc : InterruptHint - INTERRUPT_HINT_DUCK + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_INTERRUPT_0700', 2, async function (done) { expect(audio.InterruptHint.INTERRUPT_HINT_DUCK).assertEqual(4); await sleep(50); done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_INTERRUPT_008 - * @tc.name : InterruptHint - INTERRUPT_HINT_UNDUCK - * @tc.desc : InterruptHint - INTERRUPT_HINT_UNDUCK - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_INTERRUPT_008', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_INTERRUPT_0800 + *@tc.name : InterruptHint - INTERRUPT_HINT_UNDUCK + *@tc.desc : InterruptHint - INTERRUPT_HINT_UNDUCK + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_INTERRUPT_0800', 2, async function (done) { expect(audio.InterruptHint.INTERRUPT_HINT_UNDUCK).assertEqual(5); await sleep(50); done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_INTERRUPT_009 - * @tc.name : InterruptForceType - INTERRUPT_FORCE - * @tc.desc : InterruptForceType - INTERRUPT_FORCE - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_INTERRUPT_009', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_INTERRUPT_0900 + *@tc.name : InterruptForceType - INTERRUPT_FORCE + *@tc.desc : InterruptForceType - INTERRUPT_FORCE + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_INTERRUPT_0900', 2, async function (done) { expect(audio.InterruptForceType.INTERRUPT_FORCE).assertEqual(0); await sleep(50); done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_INTERRUPT_010 - * @tc.name : InterruptForceType - INTERRUPT_SHARE - * @tc.desc : InterruptForceType - INTERRUPT_SHARE - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_INTERRUPT_010', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_INTERRUPT_1000 + *@tc.name : InterruptForceType - INTERRUPT_SHARE + *@tc.desc : InterruptForceType - INTERRUPT_SHARE + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_INTERRUPT_1000', 2, async function (done) { expect(audio.InterruptForceType.INTERRUPT_SHARE).assertEqual(1); await sleep(50); done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_INTERRUPT_011 - * @tc.name : ActiveDeviceType - BLUETOOTH_SCO - * @tc.desc : ActiveDeviceType - BLUETOOTH_SCO - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_INTERRUPT_011', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_INTERRUPT_1100 + *@tc.name : ActiveDeviceType - BLUETOOTH_SCO + *@tc.desc : ActiveDeviceType - BLUETOOTH_SCO + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_INTERRUPT_1100', 2, async function (done) { expect(audio.ActiveDeviceType.BLUETOOTH_SCO).assertEqual(7); await sleep(50); done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_INTERRUPT_012 - * @tc.name : ActiveDeviceType - SPEAKER - * @tc.desc : ActiveDeviceType - SPEAKER - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_INTERRUPT_012', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_INTERRUPT_1200 + *@tc.name : ActiveDeviceType - SPEAKER + *@tc.desc : ActiveDeviceType - SPEAKER + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_INTERRUPT_1200', 2, async function (done) { expect(audio.ActiveDeviceType.SPEAKER).assertEqual(2); await sleep(50); done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_InterruptActionType_001 - * @tc.name : InterruptActionType - TYPE_ACTIVATED - * @tc.desc : InterruptActionType - TYPE_ACTIVATED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_InterruptActionType_001', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_INTERRUPTACTIONTYPE_0100 + *@tc.name : InterruptActionType - TYPE_ACTIVATED + *@tc.desc : InterruptActionType - TYPE_ACTIVATED + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_INTERRUPTACTIONTYPE_0100', 2, async function (done) { expect(audio.InterruptActionType.TYPE_ACTIVATED).assertEqual(0); await sleep(50); done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_InterruptActionType_002 - * @tc.name : InterruptActionType - TYPE_INTERRUPT - * @tc.desc : InterruptActionType - TYPE_INTERRUPT - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_INTERRUPTACTIONTYPE_0200 + *@tc.name : InterruptActionType - TYPE_INTERRUPT + *@tc.desc : InterruptActionType - TYPE_INTERRUPT + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 */ - it('SUB_AUDIO_MANAGER_InterruptActionType_002', 0, async function (done) { + it('MULTIMEDIA_AUDIO_MANAGER_INTERRUPTACTIONTYPE_0200', 2, async function (done) { expect(audio.InterruptActionType.TYPE_INTERRUPT).assertEqual(1); await sleep(50); done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_DeviceType_001 - * @tc.name : DeviceType - ALL Device Type - * @tc.desc : DeviceType - ALL Device Type - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_DeviceType_001', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_DEVICETYPE_0100 + *@tc.name : DeviceType - ALL Device Type + *@tc.desc : DeviceType - ALL Device Type + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_DEVICETYPE_0100', 2, async function (done) { expect(audio.DeviceType.INVALID).assertEqual(0); console.info("audio.DeviceType.INVALID:" + audio.DeviceType.INVALID); expect(audio.DeviceType.EARPIECE).assertEqual(1); @@ -5122,15 +5121,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_MANAGER_DeviceRole_001 - * @tc.name : DeviceRole - ALL Device Role - * @tc.desc : DeviceRole - ALL Device Role - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_MANAGER_DeviceRole_001', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_MANAGER_DEVICEROLE_0100 + *@tc.name : DeviceRole - ALL Device Role + *@tc.desc : DeviceRole - ALL Device Role + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_MANAGER_DEVICEROLE_0100', 2, async function (done) { expect(audio.DeviceRole.INPUT_DEVICE).assertEqual(1); console.info("audio.DeviceRole.INPUT_DEVICE :" + audio.DeviceRole.INPUT_DEVICE); expect(audio.DeviceRole.OUTPUT_DEVICE).assertEqual(2); @@ -5139,15 +5138,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_ROUTING_MANAGER_getDevices_001 - * @tc.name : getDevices - Output device - Callback - * @tc.desc : getDevices - Output device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ROUTING_MANAGER_getDevices_001', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_ROUTING_MANAGER_GETDEVICES_0100 + *@tc.name : getDevices - Output device - Callback + *@tc.desc : getDevices - Output device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_ROUTING_MANAGER_GETDEVICES_0100', 2, async function (done) { dRValue = null; dTValue = null; devId = null; @@ -5183,15 +5182,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_ROUTING_MANAGER_getDevices_002 - * @tc.name : getDevices - Input device - Callback - * @tc.desc : getDevices - Input device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ROUTING_MANAGER_getDevices_002', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_ROUTING_MANAGER_GETDEVICES_0200 + *@tc.name : getDevices - Input device - Callback + *@tc.desc : getDevices - Input device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_ROUTING_MANAGER_GETDEVICES_0200', 2, async function (done) { dRValue = null; dTValue = null; devId = null; @@ -5228,15 +5227,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_ROUTING_MANAGER_getDevices_003 - * @tc.name : getDevices - ALL device - Callback - * @tc.desc : getDevices - ALL device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ROUTING_MANAGER_getDevices_003', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_ROUTING_MANAGER_GETDEVICES_0300 + *@tc.name : getDevices - ALL device - Callback + *@tc.desc : getDevices - ALL device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_ROUTING_MANAGER_GETDEVICES_0300', 2, async function (done) { dRValue = null; dTValue = null; devId = null; @@ -5273,15 +5272,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_ROUTING_MANAGER_getDevices_004 - * @tc.name : getDevices - Output device - Callback - ENAME - * @tc.desc : getDevices - Output device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ROUTING_MANAGER_getDevices_004', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_ROUTING_MANAGER_GETDEVICES_0400 + *@tc.name : getDevices - Output device - Callback - ENAME + *@tc.desc : getDevices - Output device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_ROUTING_MANAGER_GETDEVICES_0400', 2, async function (done) { dRValue = null; dTValue = null; devId = null; @@ -5314,15 +5313,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_ROUTING_MANAGER_getDevices_005 - * @tc.name : getDevices - Input device - Callback - ENAME - * @tc.desc : getDevices - Input device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ROUTING_MANAGER_getDevices_005', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_ROUTING_MANAGER_GETDEVICES_0500 + *@tc.name : getDevices - Input device - Callback - ENAME + *@tc.desc : getDevices - Input device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_ROUTING_MANAGER_GETDEVICES_0500', 2, async function (done) { dRValue = null; dTValue = null; devId = null; @@ -5356,15 +5355,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_ROUTING_MANAGER_getDevices_006 - * @tc.name : getDevices - ALL device - Callback - ENAME - * @tc.desc : getDevices - ALL device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ROUTING_MANAGER_getDevices_006', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_ROUTING_MANAGER_GETDEVICES_0600 + *@tc.name : getDevices - ALL device - Callback - ENAME + *@tc.desc : getDevices - ALL device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_ROUTING_MANAGER_GETDEVICES_0600', 2, async function (done) { dRValue = null; dTValue = null; devId = null; @@ -5397,15 +5396,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_ROUTING_MANAGER_getDevices_008 - * @tc.name : getDevices - OUTPUT device - Promise - ENAME - * @tc.desc : getDevices - OUTPUT device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ROUTING_MANAGER_getDevices_008', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_ROUTING_MANAGER_GETDEVICES_0700 + *@tc.name : getDevices - OUTPUT device - Promise - ENAME + *@tc.desc : getDevices - OUTPUT device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_ROUTING_MANAGER_GETDEVICES_0700', 2, async function (done) { dRValue = null; dTValue = null; devId = null; @@ -5430,15 +5429,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_ROUTING_MANAGER_getDevices_009 - * @tc.name : getDevices - INPUT device - Promise - ENAME - * @tc.desc : getDevices - INPUT device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ROUTING_MANAGER_getDevices_009', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_ROUTING_MANAGER_GETDEVICES_0800 + *@tc.name : getDevices - INPUT device - Promise - ENAME + *@tc.desc : getDevices - INPUT device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_ROUTING_MANAGER_GETDEVICES_0800', 2, async function (done) { dRValue = null; dTValue = null; devId = null; @@ -5470,15 +5469,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_ROUTING_MANAGER_getDevices_010 - * @tc.name : getDevices - ALL device - Promise - ENAME - * @tc.desc : getDevices - ALL device - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ROUTING_MANAGER_getDevices_010', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_ROUTING_MANAGER_GETDEVICES_0900 + *@tc.name : getDevices - ALL device - Promise - ENAME + *@tc.desc : getDevices - ALL device + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_ROUTING_MANAGER_GETDEVICES_0900', 2, async function (done) { dRValue = null; dTValue = null; devId = null; @@ -5510,15 +5509,15 @@ describe('audioManager', function () { }); }) - /* * - * @tc.number : SUB_AUDIO_DeviceFlag_001 - * @tc.name : NONE_DEVICES_FLAG - * @tc.desc : NONE_DEVICES_FLAG - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_DeviceFlag_001', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_DEVICEFALG_0100 + *@tc.name : NONE_DEVICES_FLAG + *@tc.desc : NONE_DEVICES_FLAG + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_DEVICEFALG_0100', 2, async function (done) { expect(audio.DeviceFlag.OUTPUT_DEVICES_FLAG).assertEqual(1); expect(audio.DeviceFlag.INPUT_DEVICES_FLAG).assertEqual(2); expect(audio.DeviceFlag.ALL_DEVICES_FLAG).assertEqual(3); @@ -5526,15 +5525,15 @@ describe('audioManager', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_SAMPLE_FORMAT_F32LE_001 - * @tc.name : SAMPLE_FORMAT_F32LE - * @tc.desc : SAMPLE_FORMAT_F32LE - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_SAMPLE_FORMAT_F32LE_001', 0, async function (done) { + /** + *@tc.number : MULTIMEDIA_AUDIO_SAMPLE_FORMAT_F32LE_0100 + *@tc.name : SAMPLE_FORMAT_F32LE + *@tc.desc : SAMPLE_FORMAT_F32LE + *@tc.size : MEDIUM + *@tc.type : Function + *@tc.level : Level 2 + */ + it('MULTIMEDIA_AUDIO_SAMPLE_FORMAT_F32LE_0100', 2, async function (done) { expect(audio.AudioSampleFormat.SAMPLE_FORMAT_F32LE).assertEqual(4); await sleep(50); done(); diff --git a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRenderer.test.js b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRenderer.test.js index 5f4a716a58dde3baf18582af785d802c919f8ec5..111de6d5d023affcda3f2f2959374707d01b9e32 100644 --- a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRenderer.test.js +++ b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRenderer.test.js @@ -1538,15 +1538,15 @@ describe('audioRenderer', function () { } - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_001 - * @tc.name : AudioRenderer-Set1-Media - * @tc.desc : AudioRenderer with parameter set 1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_001', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_0100 + * @tc.name : AudioRenderer-Set1-Media + * @tc.desc : AudioRenderer with parameter set 1 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_0100', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -1576,15 +1576,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_093 - * @tc.name : AudioRenderer - getAudioTime -Before Play - * @tc.desc : AudioRenderer - getAudioTime -Before Play - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_093', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_0200 + * @tc.name : AudioRenderer - getAudioTime -Before Play + * @tc.desc : AudioRenderer - getAudioTime -Before Play + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_0200', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_24000, @@ -1615,15 +1615,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_094 - * @tc.name : AudioRenderer - getAudioTime - During Play - * @tc.desc : AudioRenderer - getAudioTime - During Play - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_094', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_0300 + * @tc.name : AudioRenderer - getAudioTime - During Play + * @tc.desc : AudioRenderer - getAudioTime - During Play + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_0300', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_24000, @@ -1653,15 +1653,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_095 - * @tc.name : AudioRenderer - getAudioTime - after Play - * @tc.desc : AudioRenderer - getAudioTime - after Play - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_095', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_0400 + * @tc.name : AudioRenderer - getAudioTime - after Play + * @tc.desc : AudioRenderer - getAudioTime - after Play + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_0400', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_24000, @@ -1691,15 +1691,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_102 - * @tc.name : AudioRenderer - markReached - On - * @tc.desc : AudioRenderer - markReached - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_102', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_0500 + * @tc.name : AudioRenderer - markReached - On + * @tc.desc : AudioRenderer - markReached + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_0500', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -1730,15 +1730,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_103 - * @tc.name : AudioRenderer - markReached - On - off -on - * @tc.desc : AudioRenderer - markReached - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_103', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_0600 + * @tc.name : AudioRenderer - markReached - On - off -on + * @tc.desc : AudioRenderer - markReached + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_0600', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -1768,15 +1768,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_104 - * @tc.name : AudioRenderer - markReached - on - on - * @tc.desc : AudioRenderer - markReached - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_104', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_0700 + * @tc.name : AudioRenderer - markReached - on - on + * @tc.desc : AudioRenderer - markReached + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_0700', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -1807,15 +1807,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_105 - * @tc.name : AudioRenderer - periodReach - On - * @tc.desc : AudioRenderer - periodReach - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_105', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_0800 + * @tc.name : AudioRenderer - periodReach - On + * @tc.desc : AudioRenderer - periodReach + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_0800', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -1844,15 +1844,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_106 - * @tc.name : AudioRenderer - periodReach - On - off -on - * @tc.desc : AudioRenderer - periodReach - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_106', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_0900 + * @tc.name : AudioRenderer - periodReach - On - off -on + * @tc.desc : AudioRenderer - periodReach + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_0900', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -1882,15 +1882,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_107 - * @tc.name : AudioRenderer - periodReach - on - on - * @tc.desc : AudioRenderer - periodReach - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_107', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_1000 + * @tc.name : AudioRenderer - periodReach - on - on + * @tc.desc : AudioRenderer - periodReach + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_1000', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -1920,15 +1920,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_002 - * @tc.name : AudioRenderer-Set2-Media - * @tc.desc : AudioRenderer with parameter set 2 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_002', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_1100 + * @tc.name : AudioRenderer-Set2-Media + * @tc.desc : AudioRenderer with parameter set 2 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_1100', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_8000, channels: audio.AudioChannel.CHANNEL_1, @@ -1958,15 +1958,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_003 - * @tc.name : AudioRenderer-Set3-Media - * @tc.desc : AudioRenderer with parameter set 3 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_003', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_1200 + * @tc.name : AudioRenderer-Set3-Media + * @tc.desc : AudioRenderer with parameter set 3 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_1200', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_32000, channels: audio.AudioChannel.CHANNEL_1, @@ -1996,15 +1996,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_004 - * @tc.name : AudioRenderer-Set4-Media - * @tc.desc : AudioRenderer with parameter set 4 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_004', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_1300 + * @tc.name : AudioRenderer-Set4-Media + * @tc.desc : AudioRenderer with parameter set 4 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_1300', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_64000, channels: audio.AudioChannel.CHANNEL_1, @@ -2033,15 +2033,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_005 - * @tc.name : AudioRenderer-Set5-Media - * @tc.desc : AudioRenderer with parameter set 5 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_005', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_1400 + * @tc.name : AudioRenderer-Set5-Media + * @tc.desc : AudioRenderer with parameter set 5 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_1400', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_96000, channels: audio.AudioChannel.CHANNEL_1, @@ -2070,15 +2070,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_006 - * @tc.name : AudioRenderer-Set6-Media - * @tc.desc : AudioRenderer with parameter set 6 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_006', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_1500 + * @tc.name : AudioRenderer-Set6-Media + * @tc.desc : AudioRenderer with parameter set 6 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_1500', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_11025, channels: audio.AudioChannel.CHANNEL_2, @@ -2107,15 +2107,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_007 - * @tc.name : AudioRenderer-Set7-Media - * @tc.desc : AudioRenderer with parameter set 7 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_007', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_1600 + * @tc.name : AudioRenderer-Set7-Media + * @tc.desc : AudioRenderer with parameter set 7 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_1600', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_12000, channels: audio.AudioChannel.CHANNEL_2, @@ -2144,15 +2144,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_011 - * @tc.name : AudioRenderer-Set11-Media - * @tc.desc : AudioRenderer with parameter set 11 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_011', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_1700 + * @tc.name : AudioRenderer-Set11-Media + * @tc.desc : AudioRenderer with parameter set 11 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_1700', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -2181,15 +2181,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_012 - * @tc.name : AudioRenderer-isStreamActive - UNKNOWN - UNKNOWN - * @tc.desc : AudioRenderer-isStreamActive - UNKNOWN - UNKNOWN - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_012', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_1800 + * @tc.name : AudioRenderer-isStreamActive - UNKNOWN - UNKNOWN + * @tc.desc : AudioRenderer-isStreamActive - UNKNOWN - UNKNOWN + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_1800', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -2229,15 +2229,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_013 - * @tc.name : AudioRenderer-isStreamActive - SPEECH - UNKNOWN - * @tc.desc : AudioRenderer-isStreamActive - SPEECH - UNKNOWN - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_013', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_1900 + * @tc.name : AudioRenderer-isStreamActive - SPEECH - UNKNOWN + * @tc.desc : AudioRenderer-isStreamActive - SPEECH - UNKNOWN + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_1900', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -2276,15 +2276,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_014 - * @tc.name : AudioRenderer-isStreamActive - MUSIC - UNKNOWN - * @tc.desc : AudioRenderer-isStreamActive - MUSIC - UNKNOWN - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_014', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_2000 + * @tc.name : AudioRenderer-isStreamActive - MUSIC - UNKNOWN + * @tc.desc : AudioRenderer-isStreamActive - MUSIC - UNKNOWN + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_2000', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -2323,15 +2323,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_015 - * @tc.name : AudioRenderer-isStreamActive - MOVIE - UNKNOWN - * @tc.desc : AudioRenderer-isStreamActive - MOVIE - UNKNOWN - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_015', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_2100 + * @tc.name : AudioRenderer-isStreamActive - MOVIE - UNKNOWN + * @tc.desc : AudioRenderer-isStreamActive - MOVIE - UNKNOWN + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_2100', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -2371,15 +2371,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_016 - * @tc.name : AudioRenderer-isStreamActive - SONIFICATION - UNKNOWN - * @tc.desc : AudioRenderer-isStreamActive - SONIFICATION - UNKNOWN - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_016', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_2200 + * @tc.name : AudioRenderer-isStreamActive - SONIFICATION - UNKNOWN + * @tc.desc : AudioRenderer-isStreamActive - SONIFICATION - UNKNOWN + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_2200', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -2418,15 +2418,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_017 - * @tc.name : AudioRenderer-isStreamActive - RINGTONE - UNKNOWN - * @tc.desc : AudioRenderer-isStreamActive - RINGTONE - UNKNOWN - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_017', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_2300 + * @tc.name : AudioRenderer-isStreamActive - RINGTONE - UNKNOWN + * @tc.desc : AudioRenderer-isStreamActive - RINGTONE - UNKNOWN + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_2300', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -2465,15 +2465,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_018 - * @tc.name : AudioRenderer-isStreamActive - UNKNOWN - MEDIA - * @tc.desc : AudioRenderer-isStreamActive - UNKNOWN - MEDIA - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_018', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_2400 + * @tc.name : AudioRenderer-isStreamActive - UNKNOWN - MEDIA + * @tc.desc : AudioRenderer-isStreamActive - UNKNOWN - MEDIA + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_2400', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -2512,15 +2512,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_019 - * @tc.name : AudioRenderer-isStreamActive - SPEECH - MEDIA - * @tc.desc : AudioRenderer-isStreamActive - SPEECH - MEDIA - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_019', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_2500 + * @tc.name : AudioRenderer-isStreamActive - SPEECH - MEDIA + * @tc.desc : AudioRenderer-isStreamActive - SPEECH - MEDIA + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_2500', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -2559,15 +2559,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_020 - * @tc.name : AudioRenderer-isStreamActive - MUSIC - MEDIA - * @tc.desc : AudioRenderer-isStreamActive - MUSIC - MEDIA - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_020', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_2600 + * @tc.name : AudioRenderer-isStreamActive - MUSIC - MEDIA + * @tc.desc : AudioRenderer-isStreamActive - MUSIC - MEDIA + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_2600', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -2607,15 +2607,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_021 - * @tc.name : AudioRenderer-isStreamActive - MOVIE - MEDIA - * @tc.desc : AudioRenderer-isStreamActive - MOVIE - MEDIA - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_021', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_2700 + * @tc.name : AudioRenderer-isStreamActive - MOVIE - MEDIA + * @tc.desc : AudioRenderer-isStreamActive - MOVIE - MEDIA + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_2700', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -2654,15 +2654,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_022 - * @tc.name : AudioRenderer-isStreamActive - SONIFICATION - MEDIA - * @tc.desc : AudioRenderer-isStreamActive - SONOTIFICATION - MEDIA - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_022', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_2800 + * @tc.name : AudioRenderer-isStreamActive - SONIFICATION - MEDIA + * @tc.desc : AudioRenderer-isStreamActive - SONOTIFICATION - MEDIA + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_2800', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -2701,15 +2701,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_023 - * @tc.name : AudioRenderer-isStreamActive - RINGTONE - MEDIA - * @tc.desc : AudioRenderer-isStreamActive - RINGTONE - MEDIA - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_023', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_2900 + * @tc.name : AudioRenderer-isStreamActive - RINGTONE - MEDIA + * @tc.desc : AudioRenderer-isStreamActive - RINGTONE - MEDIA + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_2900', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -2748,15 +2748,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_024 - * @tc.name : AudioRenderer-isStreamActive - UNKNOWN - VOICE_COMMUNICATION - * @tc.desc : AudioRenderer-isStreamActive - UNKNOWN - VOICE_COMMUNICATION - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_024', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_3000 + * @tc.name : AudioRenderer-isStreamActive - UNKNOWN - VOICE_COMMUNICATION + * @tc.desc : AudioRenderer-isStreamActive - UNKNOWN - VOICE_COMMUNICATION + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_3000', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -2795,15 +2795,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_025 - * @tc.name : AudioRenderer-isStreamActive - SPEECH - VOICE_COMMUNICATION - * @tc.desc : AudioRenderer-isStreamActive - SPEECH - VOICE_COMMUNICATION - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_025', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_3100 + * @tc.name : AudioRenderer-isStreamActive - SPEECH - VOICE_COMMUNICATION + * @tc.desc : AudioRenderer-isStreamActive - SPEECH - VOICE_COMMUNICATION + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_3100', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -2842,15 +2842,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_026 - * @tc.name : AudioRenderer-isStreamActive - MUSIC - VOICE_COMMUNICATION - * @tc.desc : AudioRenderer-isStreamActive - MUSIC - VOICE_COMMUNICATION - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_026', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_3200 + * @tc.name : AudioRenderer-isStreamActive - MUSIC - VOICE_COMMUNICATION + * @tc.desc : AudioRenderer-isStreamActive - MUSIC - VOICE_COMMUNICATION + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_3200', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -2889,15 +2889,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_027 - * @tc.name : AudioRenderer-isStreamActive - MOVIE - VOICE_COMMUNICATION - * @tc.desc : AudioRenderer-isStreamActive - MOVIE - VOICE_COMMUNICATION - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_027', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_3300 + * @tc.name : AudioRenderer-isStreamActive - MOVIE - VOICE_COMMUNICATION + * @tc.desc : AudioRenderer-isStreamActive - MOVIE - VOICE_COMMUNICATION + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_3300', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -2936,15 +2936,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_028 - * @tc.name : AudioRenderer-isStreamActive - SONOTIFICATION - VOICE_COMMUNICATION - * @tc.desc : AudioRenderer-isStreamActive - SONOTIFICATION - VOICE_COMMUNICATION - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_028', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_3400 + * @tc.name : AudioRenderer-isStreamActive - SONOTIFICATION - VOICE_COMMUNICATION + * @tc.desc : AudioRenderer-isStreamActive - SONOTIFICATION - VOICE_COMMUNICATION + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_3400', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -2983,15 +2983,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_029 - * @tc.name : AudioRenderer-isStreamActive - RINGTONE - VOICE_COMMUNICATION - * @tc.desc : AudioRenderer-isStreamActive - RINGTONE - VOICE_COMMUNICATION - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_029', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_3500 + * @tc.name : AudioRenderer-isStreamActive - RINGTONE - VOICE_COMMUNICATION + * @tc.desc : AudioRenderer-isStreamActive - RINGTONE - VOICE_COMMUNICATION + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_3500', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -3030,15 +3030,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_030 - * @tc.name : AudioRenderer-isStreamActive - UNKNOWN - NOTIFICATION_RINGTONE - * @tc.desc : AudioRenderer-isStreamActive - UNKNOWN - NOTIFICATION_RINGTONE - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_030', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_3600 + * @tc.name : AudioRenderer-isStreamActive - UNKNOWN - NOTIFICATION_RINGTONE + * @tc.desc : AudioRenderer-isStreamActive - UNKNOWN - NOTIFICATION_RINGTONE + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_3600', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -3078,15 +3078,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_031 - * @tc.name : AudioRenderer-isStreamActive - SPEECH - NOTIFICATION_RINGTONE - * @tc.desc : AudioRenderer-isStreamActive - SPEECH - NOTIFICATION_RINGTONE - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_031', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_3700 + * @tc.name : AudioRenderer-isStreamActive - SPEECH - NOTIFICATION_RINGTONE + * @tc.desc : AudioRenderer-isStreamActive - SPEECH - NOTIFICATION_RINGTONE + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_3700', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -3126,15 +3126,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_032 - * @tc.name : AudioRenderer-isStreamActive - MUSIC - NOTIFICATION_RINGTONE - * @tc.desc : AudioRenderer-isStreamActive - MUSIC - NOTIFICATION_RINGTONE - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_032', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_3800 + * @tc.name : AudioRenderer-isStreamActive - MUSIC - NOTIFICATION_RINGTONE + * @tc.desc : AudioRenderer-isStreamActive - MUSIC - NOTIFICATION_RINGTONE + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_3800', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -3174,15 +3174,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_033 - * @tc.name : AudioRenderer-isStreamActive - MOVIE - NOTIFICATION_RINGTONE - * @tc.desc : AudioRenderer-isStreamActive - MOVIE - NOTIFICATION_RINGTONE - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_033', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_3900 + * @tc.name : AudioRenderer-isStreamActive - MOVIE - NOTIFICATION_RINGTONE + * @tc.desc : AudioRenderer-isStreamActive - MOVIE - NOTIFICATION_RINGTONE + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_3900', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -3222,15 +3222,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_034 - * @tc.name : AudioRenderer-isStreamActive - SONOTIFICATION - NOTIFICATION_RINGTONE - * @tc.desc : AudioRenderer-isStreamActive - SONOTIFICATION - NOTIFICATION_RINGTONE - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_034', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_4000 + * @tc.name : AudioRenderer-isStreamActive - SONOTIFICATION - NOTIFICATION_RINGTONE + * @tc.desc : AudioRenderer-isStreamActive - SONOTIFICATION - NOTIFICATION_RINGTONE + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_4000', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -3269,15 +3269,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_035 - * @tc.name : AudioRenderer-isStreamActive - RINGTONE - NOTIFICATION_RINGTONE - * @tc.desc : AudioRenderer-isStreamActive - RINGTONE - NOTIFICATION_RINGTONE - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_035', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_4100 + * @tc.name : AudioRenderer-isStreamActive - RINGTONE - NOTIFICATION_RINGTONE + * @tc.desc : AudioRenderer-isStreamActive - RINGTONE - NOTIFICATION_RINGTONE + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_4100', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -3317,15 +3317,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_042 - * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set1 - * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_042', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_4200 + * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set1 + * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set1 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_4200', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -3405,15 +3405,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_043 - * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set2 - * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set2 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_043', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_4300 + * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set2 + * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set2 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_4300', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -3495,15 +3495,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_044 - * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set3 - * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set3 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_044', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_4400 + * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set3 + * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set3 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_4400', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -3585,15 +3585,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_045 - * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set4 - * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set4 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_045', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_4500 + * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set4 + * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set4 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_4500', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -3675,15 +3675,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_046 - * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set5 - * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set5 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_046', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_4600 + * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set5 + * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set5 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_4600', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -3765,15 +3765,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_047 - * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set6 - * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set6 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_047', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_4700 + * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set6 + * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set6 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_4700', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -3855,15 +3855,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_048 - * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set7 - * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set7 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_048', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_4800 + * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set7 + * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set7 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_4800', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -3945,15 +3945,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_049 - * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set8 - * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set8 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_049', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_4900 + * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set8 + * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set8 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_4900', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -4035,15 +4035,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_050 - * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set9 - * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set9 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_050', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_5000 + * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set9 + * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set9 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_5000', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -4125,15 +4125,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_051 - * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set10 - * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set10 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_051', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_5100 + * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set10 + * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set10 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_5100', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -4215,15 +4215,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_052 - * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set11 - * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set11 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_052', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_5200 + * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set11 + * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set11 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_5200', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -4305,15 +4305,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_053 - * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set12 - * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set12 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_053', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_5300 + * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set12 + * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set12 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_5300', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -4395,15 +4395,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_054 - * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set13 - * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set13 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_054', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_5400 + * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set13 + * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set13 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_5400', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -4485,15 +4485,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_055 - * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set14 - * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set14 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_055', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_5500 + * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set14 + * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set14 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_5500', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -4575,15 +4575,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_056 - * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set15 - * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set15 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_056', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_5600 + * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set15 + * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set15 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_5600', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -4665,15 +4665,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_057 - * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set16 - * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set16 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_057', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_5700 + * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set16 + * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set16 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_5700', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -4755,15 +4755,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_058 - * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set17 - * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set17 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_058', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_5800 + * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set17 + * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set17 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_5800', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -4845,15 +4845,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_059 - * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set18 - * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set18 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_059', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_5900 + * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set18 + * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set18 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_5900', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -4935,15 +4935,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_060 - * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set19 - * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set19 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_060', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_6000 + * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set19 + * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set19 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_6000', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -5025,15 +5025,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_061 - * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set20 - * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set20 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_061', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_6100 + * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set20 + * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set20 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_6100', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -5115,15 +5115,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_062 - * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set21 - * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set21 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_062', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_6200 + * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set21 + * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set21 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_6200', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -5205,15 +5205,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_063 - * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set22 - * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set22 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_063', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_6300 + * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set22 + * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set22 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_6300', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -5295,15 +5295,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_064 - * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set23 - * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set23 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_064', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_6400 + * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set23 + * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set23 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_6400', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -5385,15 +5385,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_065 - * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set24 - * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set24 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_065', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_6500 + * @tc.name : AudioRenderer-SET & GET AudioRendererInfo - Set24 + * @tc.desc : AudioRenderer-SET & GET AudioRendererInfo - Set24 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_6500', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -5475,15 +5475,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_073 - * @tc.name : AudioRenderer - STATE_PREPARED - * @tc.desc : AudioRenderer - STATE_PREPARED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_073', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_6600 + * @tc.name : AudioRenderer - STATE_PREPARED + * @tc.desc : AudioRenderer - STATE_PREPARED + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_6600', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -5547,15 +5547,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_074 - * @tc.name : AudioRenderer - STATE_RUNNING - * @tc.desc : AudioRenderer - STATE_RUNNING - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_074', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_6700 + * @tc.name : AudioRenderer - STATE_RUNNING + * @tc.desc : AudioRenderer - STATE_RUNNING + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_6700', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -5634,15 +5634,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_075 - * @tc.name : AudioRenderer - STATE_STOPPED - * @tc.desc : AudioRenderer - STATE_STOPPED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_075', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_6800 + * @tc.name : AudioRenderer - STATE_STOPPED + * @tc.desc : AudioRenderer - STATE_STOPPED + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_6800', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -5723,15 +5723,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_076 - * @tc.name : AudioRenderer - STATE_RELEASED - * @tc.desc : AudioRenderer - STATE_RELEASED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_076', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_6900 + * @tc.name : AudioRenderer - STATE_RELEASED + * @tc.desc : AudioRenderer - STATE_RELEASED + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_6900', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -5813,15 +5813,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_077 - * @tc.name : AudioRenderer - STATE_PAUSED - * @tc.desc : AudioRenderer - STATE_PAUSED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_077', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_7000 + * @tc.name : AudioRenderer - STATE_PAUSED + * @tc.desc : AudioRenderer - STATE_PAUSED + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_7000', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -5911,15 +5911,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_078 - * @tc.name : AudioRenderer - SetRenderRate - RENDER_RATE_DOUBLE - * @tc.desc : AudioRenderer - SetRenderRate - RENDER_RATE_DOUBLE - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_078', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_7100 + * @tc.name : AudioRenderer - SetRenderRate - RENDER_RATE_DOUBLE + * @tc.desc : AudioRenderer - SetRenderRate - RENDER_RATE_DOUBLE + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_7100', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, @@ -6090,15 +6090,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_079 - * @tc.name : AudioRenderer - SetRenderRate - RENDER_RATE_HALF - * @tc.desc : AudioRenderer - SetRenderRate - RENDER_RATE_HALF - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_079', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_7200 + * @tc.name : AudioRenderer - SetRenderRate - RENDER_RATE_HALF + * @tc.desc : AudioRenderer - SetRenderRate - RENDER_RATE_HALF + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_7200', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_24000, @@ -6268,15 +6268,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_080 - * @tc.name : AudioRenderer - SetRenderRate - RENDER_RATE_NORMAL - * @tc.desc : AudioRenderer - SetRenderRate - RENDER_RATE_NORMAL - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_080', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_7300 + * @tc.name : AudioRenderer - SetRenderRate - RENDER_RATE_NORMAL + * @tc.desc : AudioRenderer - SetRenderRate - RENDER_RATE_NORMAL + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_7300', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -6424,15 +6424,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_081 - * @tc.name : AudioRenderer - SetRenderRate - DEFAULT - RENDER_RATE_NORMAL - * @tc.desc : AudioRenderer - SetRenderRate - DEFAULT - RENDER_RATE_NORMAL - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_081', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_7400 + * @tc.name : AudioRenderer - SetRenderRate - DEFAULT - RENDER_RATE_NORMAL + * @tc.desc : AudioRenderer - SetRenderRate - DEFAULT - RENDER_RATE_NORMAL + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_7400', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_96000, @@ -6595,15 +6595,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_113 - * @tc.name : AudioRenderer - SetRenderRate - RENDER_RATE_DOUBLE - Callback - * @tc.desc : AudioRenderer - SetRenderRate - RENDER_RATE_DOUBLE - Callback - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_113', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_7500 + * @tc.name : AudioRenderer - SetRenderRate - RENDER_RATE_DOUBLE - Callback + * @tc.desc : AudioRenderer - SetRenderRate - RENDER_RATE_DOUBLE - Callback + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_7500', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_32000, @@ -6634,15 +6634,15 @@ describe('audioRenderer', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_096 - * @tc.name : AudioRenderer - getAudioTime - Error - * @tc.desc : AudioRenderer - getAudioTime - Error - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_096', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_7600 + * @tc.name : AudioRenderer - getAudioTime - Error + * @tc.desc : AudioRenderer - getAudioTime - Error + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_7600', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, @@ -6727,15 +6727,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_097 - * @tc.name : AudioRenderer - STATE_PREPARED -Callback - * @tc.desc : AudioRenderer - STATE_PREPARED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_097', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_7700 + * @tc.name : AudioRenderer - STATE_PREPARED -Callback + * @tc.desc : AudioRenderer - STATE_PREPARED + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_7700', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -6806,15 +6806,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_098 - * @tc.name : AudioRenderer - STATE_RUNNING - Callback - * @tc.desc : AudioRenderer - STATE_RUNNING - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_098', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_7800 + * @tc.name : AudioRenderer - STATE_RUNNING - Callback + * @tc.desc : AudioRenderer - STATE_RUNNING + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_7800', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -6901,15 +6901,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_099 - * @tc.name : AudioRenderer - STATE_STOPPED - Callback - * @tc.desc : AudioRenderer - STATE_STOPPED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_099', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_7900 + * @tc.name : AudioRenderer - STATE_STOPPED - Callback + * @tc.desc : AudioRenderer - STATE_STOPPED + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_7900', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -6998,15 +6998,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_100 - * @tc.name : AudioRenderer - STATE_RELEASED - Callback - * @tc.desc : AudioRenderer - STATE_RELEASED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_100', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_8000 + * @tc.name : AudioRenderer - STATE_RELEASED - Callback + * @tc.desc : AudioRenderer - STATE_RELEASED + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_8000', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -7095,15 +7095,15 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_101 - * @tc.name : AudioRenderer - STATE_PAUSED - Callback - * @tc.desc : AudioRenderer - STATE_PAUSED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_101', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_8100 + * @tc.name : AudioRenderer - STATE_PAUSED - Callback + * @tc.desc : AudioRenderer - STATE_PAUSED + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_8100', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -7197,71 +7197,71 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_108 - * @tc.name : AudioState - STATE_INVALID - * @tc.desc : AudioState - STATE_INVALID - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_108', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_8200 + * @tc.name : AudioState - STATE_INVALID + * @tc.desc : AudioState - STATE_INVALID + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_8200', 2, async function (done) { expect(audio.AudioState.STATE_INVALID).assertEqual(-1); await sleep(50); done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_109 - * @tc.name : AudioState - STATE_NEW - * @tc.desc : AudioState - STATE_NEW - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_109', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_8300 + * @tc.name : AudioState - STATE_NEW + * @tc.desc : AudioState - STATE_NEW + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_8300', 2, async function (done) { expect(audio.AudioState.STATE_NEW).assertEqual(0); await sleep(50); done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_110 - * @tc.name : AudioSampleFormat - STATE_FORMAT_INVALID - * @tc.desc : AudioSampleFormat - STATE_FORMAT_INVALID - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_110', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_8400 + * @tc.name : AudioSampleFormat - STATE_FORMAT_INVALID + * @tc.desc : AudioSampleFormat - STATE_FORMAT_INVALID + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_8400', 2, async function (done) { expect(audio.AudioSampleFormat.SAMPLE_FORMAT_INVALID).assertEqual(-1); await sleep(50); done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_111 - * @tc.name : SourceType - SOURCE_TYPE_INVALID - * @tc.desc : SourceType - SOURCE_TYPE_INVALID - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_111', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_8500 + * @tc.name : SourceType - SOURCE_TYPE_INVALID + * @tc.desc : SourceType - SOURCE_TYPE_INVALID + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_8500', 2, async function (done) { expect(audio.SourceType.SOURCE_TYPE_INVALID).assertEqual(-1); await sleep(50); done(); }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_112 - * @tc.name : AudioRenderer - Pause - Callback - * @tc.desc : AudioRenderer - Pause - Callback - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_112', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_8600 + * @tc.name : AudioRenderer - Pause - Callback + * @tc.desc : AudioRenderer - Pause - Callback + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_8600', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -7358,27 +7358,29 @@ describe('audioRenderer', function () { }) - /* * - * @tc.number : SUB_AUDIO_RENDERER_Play_audio_114 - * @tc.name : AudioEncodingType - ENCODING_TYPE_INVALID - * @tc.desc : AudioEncodingType - ENCODING_TYPE_INVALID - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_RENDERER_Play_audio_114', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_8700 + * @tc.name : AudioEncodingType - ENCODING_TYPE_INVALID + * @tc.desc : AudioEncodingType - ENCODING_TYPE_INVALID + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_RENDERER_PLAY_AUDIO_8700', 2, async function (done) { expect(audio.AudioEncodingType.ENCODING_TYPE_INVALID).assertEqual(-1); await sleep(50); done(); }) - /* - * @tc.name:SUB_AUDIO_SetInterruptMode_001 - * @tc.desc:SetInterruptMode mode 0 callback,is public share mode - * @tc.type: FUNC - * @tc.require: Issue Number - */ - it("SUB_AUDIO_SetInterruptMode_001", 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_SETINTERRUPTMODE_0100 + * @tc.name : SetInterruptMode mode 0 callback,is public share mode + * @tc.desc : SetInterruptMode mode 0 callback,is public share mode + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it("SUB_MULTIMEDIA_AUDIO_SETINTERRUPTMODE_0100", 2, async function (done) { var audioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_1, @@ -7398,24 +7400,24 @@ describe('audioRenderer', function () { let mode = audio.InterruptMode.SHARE_MODE; audioRenderer.setInterruptMode(mode, (err, data) => { if (err) { - console.info(`AudioFrameworkRenderLog: SetInterruptMode SHARE_MODE CALLBACK: error: ${err.message}`); + console.info(`AudioFrameworkRenderLog: SetInterruptMode SHARE_MODE CALLBACK: error: ${err.message}`); expect(false).assertTrue(); done(); return; } - console.info(`AudioFrameworkRenderLog: SetInterruptMode SHARE_MODE CALLBACK: SUCCESS`); + console.info(`AudioFrameworkRenderLog: SetInterruptMode SHARE_MODE CALLBACK: SUCCESS`); expect(true).assertTrue(); done(); }) }) /* - * @tc.name:SUB_AUDIO_SetInterruptMode_002 + * @tc.name:SUB_MULTIMEDIA_AUDIO_SETINTERRUPTMODE_0200 * @tc.desc:SetInterruptMode mode 1 callback,is independent mode * @tc.type: FUNC * @tc.require: Issue Number */ - it("SUB_AUDIO_SetInterruptMode_002", 0, async function (done) { + it("SUB_MULTIMEDIA_AUDIO_SETINTERRUPTMODE_0200", 2, async function (done) { var audioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_1, @@ -7435,24 +7437,24 @@ describe('audioRenderer', function () { let mode = audio.InterruptMode.INDEPENDENT_MODE; audioRenderer.setInterruptMode(mode, (err, data) => { if (err) { - console.info(`AudioFrameworkRenderLog: SetInterruptMode INDEPENDENT_MODE CALLBACK: error: ${err.message}`); + console.info(`AudioFrameworkRenderLog: SetInterruptMode INDEPENDENT_MODE CALLBACK: error: ${err.message}`); expect(false).assertTrue(); done(); return; } - console.info(`AudioFrameworkRenderLog: SetInterruptMode INDEPENDENT_MODE CALLBACK: SUCCESS`); + console.info(`AudioFrameworkRenderLog: SetInterruptMode INDEPENDENT_MODE CALLBACK: SUCCESS`); expect(true).assertTrue(); done(); }) }) /* - * @tc.name:SUB_AUDIO_SetInterruptMode_003 + * @tc.name:SUB_MULTIMEDIA_AUDIO_SETINTERRUPTMODE_0300 * @tc.desc:SetInterruptMode mode 0 promise,is public share mode * @tc.type: FUNC * @tc.require: Issue Number */ - it("SUB_AUDIO_SetInterruptMode_003", 0, async function (done) { + it("SUB_MULTIMEDIA_AUDIO_SETINTERRUPTMODE_0300", 2, async function (done) { var audioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_1, @@ -7471,23 +7473,23 @@ describe('audioRenderer', function () { let audioRenderer = await audio.createAudioRenderer(audioRendererOptions); let mode = audio.InterruptMode.SHARE_MODE; audioRenderer.setInterruptMode(mode).then(data => { - console.info(`AudioFrameworkRenderLog: SetInterruptMode SHARE_MODE PROMISE: SUCCESS`); + console.info(`AudioFrameworkRenderLog: SetInterruptMode SHARE_MODE PROMISE: SUCCESS`); expect(true).assertTrue(); done(); }).catch(err => { - console.info(`AudioFrameworkRenderLog: SetInterruptMode SHARE_MODE PROMISE: error: ${err.message}`); + console.info(`AudioFrameworkRenderLog: SetInterruptMode SHARE_MODE PROMISE: error: ${err.message}`); expect(false).assertTrue(); done(); }) }) /* - * @tc.name:SUB_AUDIO_SetInterruptMode_004 - * @tc.desc:SetInterruptMode mode 1 promise,is independent mode - * @tc.type: FUNC - * @tc.require: Issue Number - */ - it("SUB_AUDIO_SetInterruptMode_004", 0, async function (done) { + * @tc.name:SUB_MULTIMEDIA_AUDIO_SETINTERRUPTMODE_0400 + * @tc.desc:SetInterruptMode mode 1 promise,is independent mode + * @tc.type: FUNC + * @tc.require: Issue Number + */ + it("SUB_MULTIMEDIA_AUDIO_SETINTERRUPTMODE_0400", 2, async function (done) { var audioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_1, @@ -7506,23 +7508,23 @@ describe('audioRenderer', function () { let audioRenderer = await audio.createAudioRenderer(audioRendererOptions); let mode = audio.InterruptMode.INDEPENDENT_MODE; audioRenderer.setInterruptMode(mode).then(data => { - console.info(`AudioFrameworkRenderLog: SetInterruptMode INDEPENDENT_MODE PROMISE: SUCCESS`); + console.info(`AudioFrameworkRenderLog: SetInterruptMode INDEPENDENT_MODE PROMISE: SUCCESS`); expect(true).assertTrue(); done(); }).catch(err => { - console.info(`AudioFrameworkRenderLog: SetInterruptMode INDEPENDENT_MODE PROMISE: error: ${err.message}`); + console.info(`AudioFrameworkRenderLog: SetInterruptMode INDEPENDENT_MODE PROMISE: error: ${err.message}`); expect(false).assertTrue(); done(); }) }) /* - * @tc.name:SUB_AUDIO_SetInterruptMode_005 - * @tc.desc:SetInterruptMode mode '1',will catch error with type error - * @tc.type: FUNC - * @tc.require: Issue Number - */ - it("SUB_AUDIO_SetInterruptMode_005", 0, async function (done) { + * @tc.name:SUB_MULTIMEDIA_AUDIO_SETINTERRUPTMODE_0500 + * @tc.desc:SetInterruptMode mode '1',will catch error with type error + * @tc.type: FUNC + * @tc.require: Issue Number + */ + it("SUB_MULTIMEDIA_AUDIO_SETINTERRUPTMODE_0500", 2, async function (done) { var audioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_1, @@ -7542,23 +7544,23 @@ describe('audioRenderer', function () { let mode = '1'; try { let data = await audioRenderer.setInterruptMode(mode); - console.info(`AudioFrameworkRenderLog: SetInterruptMode STRING PROMISE: SUCCESS`); + console.info(`AudioFrameworkRenderLog: SetInterruptMode STRING PROMISE: SUCCESS`); expect(false).assertTrue(); done(); } catch (err) { - console.info(`AudioFrameworkRenderLog: SetInterruptMode STRING PROMISE: error: ${err.message}`); + console.info(`AudioFrameworkRenderLog: SetInterruptMode STRING PROMISE: error: ${err.message}`); expect(true).assertTrue(); done(); } }) /* - * @tc.name:SUB_AUDIO_SetInterruptMode_006 + * @tc.name:SUB_MULTIMEDIA_AUDIO_SETINTERRUPTMODE_0600 * @tc.desc:SetInterruptMode mode 2,set it to default SHARE_MODE * @tc.type: FUNC * @tc.require: Issue Number */ - it("SUB_AUDIO_SetInterruptMode_006", 0, async function (done) { + it("SUB_MULTIMEDIA_AUDIO_SETINTERRUPTMODE_0600", 2, async function (done) { var audioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_1, @@ -7577,12 +7579,12 @@ describe('audioRenderer', function () { let audioRenderer = await audio.createAudioRenderer(audioRendererOptions); let mode = 2; try { - let data = await audioRenderer.setInterruptMode(mode); - console.info(`AudioFrameworkRenderLog: SetInterruptMode OUT OF BORDER PROMISE: SUCCESS`); + let data = await audioRenderer.setInterruptMode(mode); + console.info(`AudioFrameworkRenderLog: SetInterruptMode OUT OF BORDER PROMISE: SUCCESS`); expect(true).assertTrue(); done(); } catch (err) { - console.info(`AudioFrameworkRenderLog: SetInterruptMode OUT OF BORDER PROMISE: ERROR: ${err.message}`); + console.info(`AudioFrameworkRenderLog: SetInterruptMode OUT OF BORDER PROMISE: ERROR: ${err.message}`); expect(false).assertTrue(); done(); } diff --git a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRendererChangeInfo.test.js b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRendererChangeInfo.test.js index 8d015a7333bd81793e2b0df41259fdfc588945a1..f1b253cc0cee2fff9bd12044f199c9d573082d0c 100644 --- a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRendererChangeInfo.test.js +++ b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRendererChangeInfo.test.js @@ -15,53 +15,53 @@ import audio from '@ohos.multimedia.audio'; import resourceManager from '@ohos.resourceManager'; -import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'; +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index'; describe('audioRendererChange', function () { var audioStreamManager; - var audioStreamManagerCB; + var audioStreamManagerCB; let fdRead; - var Tag = "AFRenLog : "; + var Tag = "AFRenLog : "; const audioManager = audio.getAudioManager(); - console.info(Tag+'Create AudioManger Object JS Framework'); + console.info(Tag + 'Create AudioManger Object JS Framework'); beforeAll(async function () { await audioManager.getStreamManager().then(async function (data) { audioStreamManager = data; - console.info(Tag+'Get AudioStream Manager : Success '); + console.info(Tag + 'Get AudioStream Manager : Success '); }).catch((err) => { - console.info(Tag+'Get AudioStream Manager : ERROR : '+err.message); + console.info(Tag + 'Get AudioStream Manager : ERROR : ' + err.message); }); - - audioManager.getStreamManager((err, data) => { + + audioManager.getStreamManager((err, data) => { if (err) { - console.error(Tag+'Get AudioStream Manager : ERROR : '+err.message); + console.error(Tag + 'Get AudioStream Manager : ERROR : ' + err.message); } else { audioStreamManagerCB = data; - console.info(Tag+'Get AudioStream Manager : Success '); + console.info(Tag + 'Get AudioStream Manager : Success '); } }); await sleep(1000); - - console.info(Tag+'beforeAll: Prerequisites at the test suite level'); + + console.info(Tag + 'beforeAll: Prerequisites at the test suite level'); }) beforeEach(async function () { - console.info(Tag+'beforeEach: Prerequisites at the test case level'); + console.info(Tag + 'beforeEach: Prerequisites at the test case level'); await sleep(1000); }) afterEach(function () { - console.info(Tag+'afterEach: Test case-level clearance conditions'); + console.info(Tag + 'afterEach: Test case-level clearance conditions'); }) afterAll(async function () { - console.info(Tag+'afterAll: Test suite-level cleanup condition'); + console.info(Tag + 'afterAll: Test suite-level cleanup condition'); }) - function sleep (ms) { + function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } @@ -71,7 +71,7 @@ describe('audioRendererChange', function () { await mgr.getRawFileDescriptor(fileName).then(value => { fileDescriptor = { fd: value.fd, offset: value.offset, length: value.length }; }).catch(error => { - console.log(Tag+'case getRawFileDescriptor err: '+error); + console.log(Tag + 'case getRawFileDescriptor err: ' + error); }); }); return fileDescriptor; @@ -80,9 +80,9 @@ describe('audioRendererChange', function () { async function closeFileDescriptor(fileName) { await resourceManager.getResourceManager().then(async (mgr) => { await mgr.closeRawFileDescriptor(fileName).then(value => { - console.log(Tag+'case closeRawFileDescriptor success for file:'+fileName); + console.log(Tag + 'case closeRawFileDescriptor success for file:' + fileName); }).catch(error => { - console.log(Tag+'case closeRawFileDescriptor err: '+error); + console.log(Tag + 'case closeRawFileDescriptor err: ' + error); }); }); } @@ -90,24 +90,24 @@ describe('audioRendererChange', function () { await getFileDescriptor(pathName).then((res) => { if (res == undefined) { expect().assertFail(); - console.info(Tag+'case error fileDescriptor undefined, open file fail'); + console.info(Tag + 'case error fileDescriptor undefined, open file fail'); done(); } else { fdRead = res.fd; - console.info("AFRenLog:case 0 fdRead is: "+fdRead); + console.info("AFRenLog:case 0 fdRead is: " + fdRead); } }) } - /* * - * @tc.number : SUB_AUDIO_ON_RENDERER_CHANGE_001 - * @tc.name : AudioRendererChange - ON_STATE_PREPARED - * @tc.desc : AudioRendererChange - ON_STATE_PREPARED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ON_RENDERER_CHANGE_001', 0,async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_ON_RENDERER_CHANGE_0100 + * @tc.name : AudioRendererChange - ON_STATE_PREPARED + * @tc.desc : AudioRendererChange - ON_STATE_PREPARED + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_ON_RENDERER_CHANGE_0100', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -129,51 +129,51 @@ describe('audioRendererChange', function () { var audioRen; - audioStreamManagerCB.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + var devDescriptor = AudioRendererChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioRendererChangeInfoArray[i].rendererState == 1 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[RENDERER-CHANGE-ON-001] ResultFlag for '+i+' is:'+resultFlag); + console.info(Tag + '[RENDERER-CHANGE-ON-001] ResultFlag for ' + i + ' is:' + resultFlag); } } }); - await sleep (100); + await sleep(100); await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRender Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); }); - await sleep (100); - + await sleep(100); + audioStreamManagerCB.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[RENDERER-CHANGE-ON-001] ######### RendererChange Off is called #########'); + console.info(Tag + '[RENDERER-CHANGE-ON-001] ######### RendererChange Off is called #########'); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); @@ -181,16 +181,15 @@ describe('audioRendererChange', function () { }) - /* * - * @tc.number : SUB_AUDIO_ON_RENDERER_CHANGE_002 - * @tc.name : AudioRendererChange - ON_STATE_RUNNING - * @tc.desc : AudioRendererChange - ON_STATE_RUNNING - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ON_RENDERER_CHANGE_002', 0, async function (done) { - + /** + * @tc.number : SUB_MULTIMEDIA_ON_RENDERER_CHANGE_0200 + * @tc.name : AudioRendererChange - ON_STATE_RUNNING + * @tc.desc : AudioRendererChange - ON_STATE_RUNNING + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_ON_RENDERER_CHANGE_0200', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_1, @@ -215,79 +214,79 @@ describe('audioRendererChange', function () { await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); - }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); - }); - - await sleep (100); - - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); + }); + + await sleep(100); + + audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + var devDescriptor = AudioRendererChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioRendererChangeInfoArray[i].rendererState == 2 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[RENDERER-CHANGE-ON-002] ResultFlag for '+i+' is:'+resultFlag); + console.info(Tag + '[RENDERER-CHANGE-ON-002] ResultFlag for ' + i + ' is:' + resultFlag); } } }); - - await sleep (100); + + await sleep(100); await audioRen.start().then(async function () { - console.info(Tag+'renderInstant started :SUCCESS '); + console.info(Tag + 'renderInstant started :SUCCESS '); }).catch((err) => { - console.info(Tag+'renderInstant start :ERROR : '+err.message); + console.info(Tag + 'renderInstant start :ERROR : ' + err.message); }); - await sleep(100); - + await sleep(100); + audioStreamManager.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[RENDERER-CHANGE-ON-002] ######### RendererChange Off is called #########'); + console.info(Tag + '[RENDERER-CHANGE-ON-002] ######### RendererChange Off is called #########'); await audioRen.stop().then(async function () { - console.info(Tag+'Renderer stopped : SUCCESS'); + console.info(Tag + 'Renderer stopped : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer stop:ERROR : '+err.message); + console.info(Tag + 'Renderer stop:ERROR : ' + err.message); }); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); done(); }) - /* * - * @tc.number : SUB_AUDIO_ON_RENDERER_CHANGE_003 - * @tc.name : AudioRendererChange - ON_STATE_STOPPED - * @tc.desc : AudioRendererChange - ON_STATE_STOPPED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ON_RENDERER_CHANGE_003', 0,async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_ON_RENDERER_CHANGE_0300 + * @tc.name : AudioRendererChange - ON_STATE_STOPPED + * @tc.desc : AudioRendererChange - ON_STATE_STOPPED + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_ON_RENDERER_CHANGE_0300', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_24000, @@ -313,79 +312,79 @@ describe('audioRendererChange', function () { await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRender Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); }); await audioRen.start().then(async function () { - console.info(Tag+'renderInstant started :SUCCESS '); - }).catch((err) => { - console.info(Tag+'renderInstant start :ERROR : '+err.message); - }); - - await sleep (100); - - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + console.info(Tag + 'renderInstant start :ERROR : ' + err.message); + }); + + await sleep(100); + + audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + var devDescriptor = AudioRendererChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioRendererChangeInfoArray[i].rendererState == 3 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[RENDERER-CHANGE-ON-003] ResultFlag for '+i+' is:'+resultFlag); + console.info(Tag + '[RENDERER-CHANGE-ON-003] ResultFlag for ' + i + ' is:' + resultFlag); } } }); - - await sleep (100); + + await sleep(100); await audioRen.stop().then(async function () { - console.info(Tag+'Renderer stopped : SUCCESS'); + console.info(Tag + 'Renderer stopped : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer stop:ERROR : '+err.message); + console.info(Tag + 'Renderer stop:ERROR : ' + err.message); }); - await sleep(100); - + await sleep(100); + audioStreamManager.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[RENDERER-CHANGE-ON-003] ######### RendererChange Off is called #########'); + console.info(Tag + '[RENDERER-CHANGE-ON-003] ######### RendererChange Off is called #########'); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); done(); }) - /* * - * @tc.number : SUB_AUDIO_ON_RENDERER_CHANGE_004 - * @tc.name : AudioRendererChange - ON_STATE_RELEASED - * @tc.desc : AudioRendererChange - ON_STATE_RELEASED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ON_RENDERER_CHANGE_004', 0,async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_ON_RENDERER_CHANGE_0400 + * @tc.name : AudioRendererChange - ON_STATE_RELEASED + * @tc.desc : AudioRendererChange - ON_STATE_RELEASED + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_ON_RENDERER_CHANGE_0400', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, @@ -411,80 +410,79 @@ describe('audioRendererChange', function () { await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRender Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); }); await audioRen.start().then(async function () { - console.info(Tag+'renderInstant started :SUCCESS '); + console.info(Tag + 'renderInstant started :SUCCESS '); }).catch((err) => { - console.info(Tag+'renderInstant start :ERROR : '+err.message); + console.info(Tag + 'renderInstant start :ERROR : ' + err.message); }); await audioRen.stop().then(async function () { - console.info(Tag+'Renderer stopped : SUCCESS'); - }).catch((err) => { - console.info(Tag+'Renderer stop:ERROR : '+err.message); - }); - - await sleep (100); - - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + console.info(Tag + 'Renderer stop:ERROR : ' + err.message); + }); + + await sleep(100); + + audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + var devDescriptor = AudioRendererChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioRendererChangeInfoArray[i].rendererState == 4 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[RENDERER-CHANGE-ON-004] ResultFlag for '+i+' is:'+resultFlag); + console.info(Tag + '[RENDERER-CHANGE-ON-004] ResultFlag for ' + i + ' is:' + resultFlag); } } }); - - await sleep (100); + + await sleep(100); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); - await sleep(100); - + await sleep(100); + audioStreamManager.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[RENDERER-CHANGE-ON-004] ######### RendererChange Off is called #########'); + console.info(Tag + '[RENDERER-CHANGE-ON-004] ######### RendererChange Off is called #########'); expect(resultFlag).assertTrue(); done(); }) - /* * - * @tc.number : SUB_AUDIO_ON_RENDERER_CHANGE_005 - * @tc.name : AudioRendererChange - ON_STATE_PAUSED - * @tc.desc : AudioRendererChange - ON_STATE_PAUSED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ON_RENDERER_CHANGE_005', 0,async function (done) { - + /** + * @tc.number : SUB_MULTIMEDIA_ON_RENDERER_CHANGE_0500 + * @tc.name : AudioRendererChange - ON_STATE_PAUSED + * @tc.desc : AudioRendererChange - ON_STATE_PAUSED + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_ON_RENDERER_CHANGE_0500', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -509,85 +507,85 @@ describe('audioRendererChange', function () { await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRender Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); }); await audioRen.start().then(async function () { - console.info(Tag+'renderInstant started :SUCCESS '); - }).catch((err) => { - console.info(Tag+'renderInstant start :ERROR : '+err.message); - }); - - await sleep (100); - - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + console.info(Tag + 'renderInstant start :ERROR : ' + err.message); + }); + + await sleep(100); + + audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + var devDescriptor = AudioRendererChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioRendererChangeInfoArray[i].rendererState == 5 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[RENDERER-CHANGE-ON-005] ResultFlag for '+i+' is:'+resultFlag); + console.info(Tag + '[RENDERER-CHANGE-ON-005] ResultFlag for ' + i + ' is:' + resultFlag); } } }); - - await sleep (100); + + await sleep(100); await audioRen.pause().then(async function () { - console.info(Tag+'renderInstant Pause :SUCCESS '); + console.info(Tag + 'renderInstant Pause :SUCCESS '); }).catch((err) => { - console.info(Tag+'renderInstant Pause :ERROR : '+err.message); + console.info(Tag + 'renderInstant Pause :ERROR : ' + err.message); }); - await sleep (100); - + await sleep(100); + audioStreamManager.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[RENDERER-CHANGE-ON-005] ######### RendererChange Off is called #########'); + console.info(Tag + '[RENDERER-CHANGE-ON-005] ######### RendererChange Off is called #########'); await audioRen.stop().then(async function () { - console.info(Tag+'Renderer stopped : SUCCESS'); + console.info(Tag + 'Renderer stopped : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer stop:ERROR : '+err.message); + console.info(Tag + 'Renderer stop:ERROR : ' + err.message); }); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); done(); }) - /* * - * @tc.number : SUB_AUDIO_ON_RENDERER_CHANGE_006 - * @tc.name : AudioRendererChange - ON_CONTENT_TYPE_RINGTONE - * @tc.desc : AudioRendererChange - ON_CONTENT_TYPE_RINGTONE - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ON_RENDERER_CHANGE_006', 0,async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_ON_RENDERER_CHANGE_0600 + * @tc.name : AudioRendererChange - ON_CONTENT_TYPE_RINGTONE + * @tc.desc : AudioRendererChange - ON_CONTENT_TYPE_RINGTONE + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_ON_RENDERER_CHANGE_0600', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -609,50 +607,50 @@ describe('audioRendererChange', function () { var audioRen; - audioStreamManagerCB.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + var devDescriptor = AudioRendererChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioRendererChangeInfoArray[i].rendererInfo.content == 5 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[RENDERER-CHANGE-ON-006] ResultFlag for '+i+' is:'+resultFlag); + console.info(Tag + '[RENDERER-CHANGE-ON-006] ResultFlag for ' + i + ' is:' + resultFlag); } } }); - await sleep (100); + await sleep(100); await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRender Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); }); - await sleep(100); + await sleep(100); audioStreamManagerCB.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[RENDERER-CHANGE-ON-006] ######### RendererChange Off is called #########'); + console.info(Tag + '[RENDERER-CHANGE-ON-006] ######### RendererChange Off is called #########'); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); @@ -660,15 +658,15 @@ describe('audioRendererChange', function () { }) -/* * - * @tc.number : SUB_AUDIO_ON_RENDERER_CHANGE_007 - * @tc.name : AudioRendererChange - ON_CONTENT_TYPE_UNKNOWN - * @tc.desc : AudioRendererChange - ON_CONTENT_TYPE_UNKNOWN - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ON_RENDERER_CHANGE_007', 0,async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_ON_RENDERER_CHANGE_0700 + * @tc.name : AudioRendererChange - ON_CONTENT_TYPE_UNKNOWN + * @tc.desc : AudioRendererChange - ON_CONTENT_TYPE_UNKNOWN + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_ON_RENDERER_CHANGE_0700', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -690,70 +688,66 @@ describe('audioRendererChange', function () { var audioRen; - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + var devDescriptor = AudioRendererChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioRendererChangeInfoArray[i].rendererInfo.content == 0 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[RENDERER-CHANGE-ON-007] ResultFlag for '+i+' is:'+resultFlag); + console.info(Tag + '[RENDERER-CHANGE-ON-007] ResultFlag for ' + i + ' is:' + resultFlag); } } }); - await sleep (100); + await sleep(100); await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRender Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); }); - await sleep (100); + await sleep(100); audioStreamManager.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[RENDERER-CHANGE-ON-007] ######### RendererChange Off is called #########'); + console.info(Tag + '[RENDERER-CHANGE-ON-007] ######### RendererChange Off is called #########'); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); done(); }) - - - - - -/* * - * @tc.number : SUB_AUDIO_ON_RENDERER_CHANGE_008 - * @tc.name : AudioRendererChange - ON_CONTENT_TYPE_SPEECH - * @tc.desc : AudioRendererChange - ON_CONTENT_TYPE_SPEECH - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ON_RENDERER_CHANGE_008', 0,async function (done) { + + /** + * @tc.number : SUB_MULTIMEDIA_ON_RENDERER_CHANGE_0800 + * @tc.name : AudioRendererChange - ON_CONTENT_TYPE_SPEECH + * @tc.desc : AudioRendererChange - ON_CONTENT_TYPE_SPEECH + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_ON_RENDERER_CHANGE_0800', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -775,50 +769,50 @@ describe('audioRendererChange', function () { var audioRen; - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + var devDescriptor = AudioRendererChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioRendererChangeInfoArray[i].rendererInfo.content == 1 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[RENDERER-CHANGE-ON-008] ResultFlag for '+i+' is:'+resultFlag); + console.info(Tag + '[RENDERER-CHANGE-ON-008] ResultFlag for ' + i + ' is:' + resultFlag); } } }); - await sleep (100); + await sleep(100); await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRender Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); }); - await sleep (100); + await sleep(100); audioStreamManager.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[RENDERER-CHANGE-ON-008] ######### RendererChange Off is called #########'); + console.info(Tag + '[RENDERER-CHANGE-ON-008] ######### RendererChange Off is called #########'); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); @@ -826,17 +820,15 @@ describe('audioRendererChange', function () { }) - - -/* * - * @tc.number : SUB_AUDIO_ON_RENDERER_CHANGE_009 - * @tc.name : AudioRendererChange - ON_CONTENT_TYPE_MUSIC - * @tc.desc : AudioRendererChange - ON_CONTENT_TYPE_MUSIC - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ON_RENDERER_CHANGE_009', 0,async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_ON_RENDERER_CHANGE_0900 + * @tc.name : AudioRendererChange - ON_CONTENT_TYPE_MUSIC + * @tc.desc : AudioRendererChange - ON_CONTENT_TYPE_MUSIC + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_ON_RENDERER_CHANGE_0900', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -858,50 +850,50 @@ describe('audioRendererChange', function () { var audioRen; - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + var devDescriptor = AudioRendererChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioRendererChangeInfoArray[i].rendererInfo.content == 2 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[RENDERER-CHANGE-ON-009] ResultFlag for '+i+' is:'+resultFlag); + console.info(Tag + '[RENDERER-CHANGE-ON-009] ResultFlag for ' + i + ' is:' + resultFlag); } } }); - await sleep (100); + await sleep(100); await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRender Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); }); - await sleep (100); + await sleep(100); audioStreamManager.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[RENDERER-CHANGE-ON-009] ######### RendererChange Off is called #########'); + console.info(Tag + '[RENDERER-CHANGE-ON-009] ######### RendererChange Off is called #########'); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); @@ -909,16 +901,15 @@ describe('audioRendererChange', function () { }) - -/* * - * @tc.number : SUB_AUDIO_ON_RENDERER_CHANGE_010 - * @tc.name : AudioRendererChange - ON_CONTENT_TYPE_MOVIES - * @tc.desc : AudioRendererChange - ON_CONTENT_TYPE_MOVIES - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ON_RENDERER_CHANGE_010', 0,async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_ON_RENDERER_CHANGE_1000 + * @tc.name : AudioRendererChange - ON_CONTENT_TYPE_MOVIES + * @tc.desc : AudioRendererChange - ON_CONTENT_TYPE_MOVIES + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_ON_RENDERER_CHANGE_1000', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -940,51 +931,51 @@ describe('audioRendererChange', function () { var audioRen; - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + var devDescriptor = AudioRendererChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioRendererChangeInfoArray[i].rendererInfo.content == 3 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[RENDERER-CHANGE-ON-010] ResultFlag for '+i+' is:'+resultFlag); + console.info(Tag + '[RENDERER-CHANGE-ON-010] ResultFlag for ' + i + ' is:' + resultFlag); } } }); - await sleep (100); + await sleep(100); await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRender Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); }); - await sleep (100); + await sleep(100); audioStreamManager.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[RENDERER-CHANGE-ON-010] ######### RendererChange Off is called #########'); + console.info(Tag + '[RENDERER-CHANGE-ON-010] ######### RendererChange Off is called #########'); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); @@ -992,17 +983,15 @@ describe('audioRendererChange', function () { }) - - -/* * - * @tc.number : SUB_AUDIO_ON_RENDERER_CHANGE_011 - * @tc.name : AudioRendererChange - ON_CONTENT_TYPE_SONIFICATION - * @tc.desc : AudioRendererChange - ON_CONTENT_TYPE_SONIFICATION - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ON_RENDERER_CHANGE_011', 0,async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_ON_RENDERER_CHANGE_1100 + * @tc.name : AudioRendererChange - ON_CONTENT_TYPE_SONIFICATION + * @tc.desc : AudioRendererChange - ON_CONTENT_TYPE_SONIFICATION + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_ON_RENDERER_CHANGE_1100', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -1024,51 +1013,51 @@ describe('audioRendererChange', function () { var audioRen; - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + var devDescriptor = AudioRendererChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioRendererChangeInfoArray[i].rendererInfo.content == 4 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[RENDERER-CHANGE-ON-011] ResultFlag for '+i+' is:'+resultFlag); + console.info(Tag + '[RENDERER-CHANGE-ON-011] ResultFlag for ' + i + ' is:' + resultFlag); } } }); - await sleep (100); + await sleep(100); await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRender Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); }); - await sleep (100); + await sleep(100); audioStreamManager.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[RENDERER-CHANGE-ON-011] ######### RendererChange Off is called #########'); + console.info(Tag + '[RENDERER-CHANGE-ON-011] ######### RendererChange Off is called #########'); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); @@ -1076,15 +1065,15 @@ describe('audioRendererChange', function () { }) -/* * - * @tc.number : SUB_AUDIO_ON_RENDERER_CHANGE_012 - * @tc.name : AudioRendererChange - ON_STREAM_USAGE_UNKNOWN - * @tc.desc : AudioRendererChange - ON_STREAM_USAGE_UNKNOWN - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ON_RENDERER_CHANGE_012', 0,async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_ON_RENDERER_CHANGE_1200 + * @tc.name : AudioRendererChange - ON_STREAM_USAGE_UNKNOWN + * @tc.desc : AudioRendererChange - ON_STREAM_USAGE_UNKNOWN + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_ON_RENDERER_CHANGE_1200', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -1106,68 +1095,67 @@ describe('audioRendererChange', function () { var audioRen; - audioStreamManagerCB.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + var devDescriptor = AudioRendererChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioRendererChangeInfoArray[i].rendererInfo.usage == 0 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[RENDERER-CHANGE-ON-012] ResultFlag for '+i+' is:'+resultFlag); + console.info(Tag + '[RENDERER-CHANGE-ON-012] ResultFlag for ' + i + ' is:' + resultFlag); } } }); - await sleep (100); + await sleep(100); await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRender Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); }); - await sleep(100); - + await sleep(100); + audioStreamManagerCB.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[RENDERER-CHANGE-ON-012] ######### RendererChange Off is called #########'); + console.info(Tag + '[RENDERER-CHANGE-ON-012] ######### RendererChange Off is called #########'); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); done(); }) - - -/* * - * @tc.number : SUB_AUDIO_ON_RENDERER_CHANGE_013 - * @tc.name : AudioRendererChange - ON_STREAM_USAGE_MEDIA - * @tc.desc : AudioRendererChange - ON_STREAM_USAGE_MEDIA - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ON_RENDERER_CHANGE_013', 0,async function (done) { + + /** + * @tc.number : SUB_MULTIMEDIA_ON_RENDERER_CHANGE_1300 + * @tc.name : AudioRendererChange - ON_STREAM_USAGE_MEDIA + * @tc.desc : AudioRendererChange - ON_STREAM_USAGE_MEDIA + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_ON_RENDERER_CHANGE_1300', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -1189,69 +1177,67 @@ describe('audioRendererChange', function () { var audioRen; - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + var devDescriptor = AudioRendererChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioRendererChangeInfoArray[i].rendererInfo.usage == 1 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[RENDERER-CHANGE-ON-013] ResultFlag for '+i+' is:'+resultFlag); + console.info(Tag + '[RENDERER-CHANGE-ON-013] ResultFlag for ' + i + ' is:' + resultFlag); } } }); - await sleep (100); + await sleep(100); await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRender Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); }); - await sleep(100); + await sleep(100); audioStreamManager.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[RENDERER-CHANGE-ON-013] ######### RendererChange Off is called #########'); + console.info(Tag + '[RENDERER-CHANGE-ON-013] ######### RendererChange Off is called #########'); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); done(); }) - - - -/* * - * @tc.number : SUB_AUDIO_ON_RENDERER_CHANGE_014 - * @tc.name : AudioRendererChange - ON_STREAM_USAGE_MEDIA - * @tc.desc : AudioRendererChange - ON_STREAM_USAGE_MEDIA - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ON_RENDERER_CHANGE_014', 0,async function (done) { + + /** + * @tc.number : SUB_MULTIMEDIA_ON_RENDERER_CHANGE_1400 + * @tc.name : AudioRendererChange - ON_STREAM_USAGE_MEDIA + * @tc.desc : AudioRendererChange - ON_STREAM_USAGE_MEDIA + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_ON_RENDERER_CHANGE_1400', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -1273,67 +1259,67 @@ describe('audioRendererChange', function () { var audioRen; - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + var devDescriptor = AudioRendererChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioRendererChangeInfoArray[i].rendererInfo.usage == 2 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[RENDERER-CHANGE-ON-014] ResultFlag for '+i+' is:'+resultFlag); + console.info(Tag + '[RENDERER-CHANGE-ON-014] ResultFlag for ' + i + ' is:' + resultFlag); } } }); - await sleep (100); + await sleep(100); await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRender Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); }); - await sleep(100); + await sleep(100); audioStreamManager.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[RENDERER-CHANGE-ON-014] ######### RendererChange Off is called #########'); + console.info(Tag + '[RENDERER-CHANGE-ON-014] ######### RendererChange Off is called #########'); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); done(); }) - -/* * - * @tc.number : SUB_AUDIO_ON_RENDERER_CHANGE_015 - * @tc.name : AudioRendererChange - ON_STREAM_USAGE_MEDIA - * @tc.desc : AudioRendererChange - ON_STREAM_USAGE_MEDIA - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ON_RENDERER_CHANGE_015', 0,async function (done) { + + /** + * @tc.number : SUB_MULTIMEDIA_ON_RENDERER_CHANGE_1500 + * @tc.name : AudioRendererChange - ON_STREAM_USAGE_MEDIA + * @tc.desc : AudioRendererChange - ON_STREAM_USAGE_MEDIA + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_ON_RENDERER_CHANGE_1500', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -1355,50 +1341,50 @@ describe('audioRendererChange', function () { var audioRen; - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + var devDescriptor = AudioRendererChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioRendererChangeInfoArray[i].rendererInfo.usage == 6 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[RENDERER-CHANGE-ON-015] ResultFlag for '+i+' is:'+resultFlag); + console.info(Tag + '[RENDERER-CHANGE-ON-015] ResultFlag for ' + i + ' is:' + resultFlag); } } }); - await sleep (100); + await sleep(100); await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRender Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); }); - await sleep(100); + await sleep(100); audioStreamManager.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[RENDERER-CHANGE-ON-015] ######### RendererChange Off is called #########'); + console.info(Tag + '[RENDERER-CHANGE-ON-015] ######### RendererChange Off is called #########'); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); @@ -1406,15 +1392,15 @@ describe('audioRendererChange', function () { }) -/* * - * @tc.number : SUB_AUDIO_ON_RENDERER_CHANGE_016 - * @tc.name : AudioRendererChange - STREAMID - * @tc.desc : AudioRendererChange - STREAMID - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ON_RENDERER_CHANGE_016', 0,async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_ON_RENDERER_CHANGE_1600 + * @tc.name : AudioRendererChange - STREAMID + * @tc.desc : AudioRendererChange - STREAMID + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_ON_RENDERER_CHANGE_1600', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -1435,68 +1421,67 @@ describe('audioRendererChange', function () { var resultFlag = false; var audioRen; - - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + var devDescriptor = AudioRendererChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioRendererChangeInfoArray[i].streamId != undefined && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[RENDERER-CHANGE-ON-016] StreamId for '+i+' is:'+AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + '[RENDERER-CHANGE-ON-016] StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); } } }); - await sleep (100); + await sleep(100); await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRender Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); }); - await sleep(100); + await sleep(100); audioStreamManager.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[RENDERER-CHANGE-ON-015] ######### RendererChange Off is called #########'); + console.info(Tag + '[RENDERER-CHANGE-ON-015] ######### RendererChange Off is called #########'); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); done(); }) - - - /* * - * @tc.number : SUB_AUDIO_ON_RENDERER_CHANGE_017 - * @tc.name : AudioRendererChange - CLIENTUID & RENDERERFLAG - * @tc.desc : AudioRendererChange - CLIENTUID & RENDERERFLAG - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ON_RENDERER_CHANGE_017', 0,async function (done) { + + /** + * @tc.number : SUB_MULTIMEDIA_ON_RENDERER_CHANGE_1700 + * @tc.name : AudioRendererChange - CLIENTUID & RENDERERFLAG + * @tc.desc : AudioRendererChange - CLIENTUID & RENDERERFLAG + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_ON_RENDERER_CHANGE_1700', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -1518,69 +1503,69 @@ describe('audioRendererChange', function () { var audioRen; - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + var clientUid = AudioRendererChangeInfoArray[i].clientUid; + var renFlags = AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags; + var devDescriptor = AudioRendererChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } + if (clientUid != undefined && renFlags == 0 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'[RENDERER-CHANGE-ON-017] ClientUid for '+i+' is:'+AudioRendererChangeInfoArray[i].clientUid); - console.info(Tag+'[RENDERER-CHANGE-ON-017] Flag '+i+' is:'+AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + '[RENDERER-CHANGE-ON-017] ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + '[RENDERER-CHANGE-ON-017] Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); } } }); - await sleep (100); + await sleep(100); await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRender Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); }); - await sleep(100); + await sleep(100); audioStreamManager.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[RENDERER-CHANGE-ON-015] ######### RendererChange Off is called #########'); + console.info(Tag + '[RENDERER-CHANGE-ON-015] ######### RendererChange Off is called #########'); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); done(); }) - - /* * - * @tc.number : SUB_AUDIO_ON_RENDERER_CHANGE_018 - * @tc.name : AudioRendererChange - DEVICE DESCRIPTOR - * @tc.desc : AudioRendererChange - DEVICE DESCRIPTOR - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_ON_RENDERER_CHANGE_018', 0,async function (done) { + + /** + * @tc.number : SUB_MULTIMEDIA_ON_RENDERER_CHANGE_1800 + * @tc.name : AudioRendererChange - DEVICE DESCRIPTOR + * @tc.desc : AudioRendererChange - DEVICE DESCRIPTOR + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_ON_RENDERER_CHANGE_1800', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -1602,55 +1587,55 @@ describe('audioRendererChange', function () { var audioRen; - audioStreamManagerCB.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i 0 && dType == 2 && dRole == 2 && sRate!= null && cCount != null && cMask != null) { - resultFlag = true; - } - } + audioStreamManagerCB.on('audioRendererChange', (AudioRendererChangeInfoArray) => { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + var Id = AudioRendererChangeInfoArray[i].deviceDescriptors[j].id; + var dType = AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType; + var dRole = AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole; + var sRate = AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]; + var cCount = AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]; + var cMask = AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks; + console.info(Tag + 'Id:' + i + ':' + Id); + console.info(Tag + 'Type:' + i + ':' + dType); + console.info(Tag + 'Role:' + i + ':' + dRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + sRate); + console.info(Tag + 'CC:' + i + ':' + cCount); + console.info(Tag + 'CM:' + i + ':' + cMask); + if (Id > 0 && dType == 2 && dRole == 2 && sRate != null && cCount != null && cMask != null) { + resultFlag = true; + } + } } }); - await sleep (100); + await sleep(100); await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRender Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); }); - await sleep (100); - + await sleep(100); + audioStreamManagerCB.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[RENDERER-CHANGE-ON-018] ######### RendererChange Off is called #########'); + console.info(Tag + '[RENDERER-CHANGE-ON-018] ######### RendererChange Off is called #########'); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); @@ -1658,15 +1643,15 @@ describe('audioRendererChange', function () { }) - /* * - * @tc.number : SUB_AUDIO_OFF_RENDERER_CHANGE_001 - * @tc.name : AudioRendererChange - OFF_STATE_PREPARED - * @tc.desc : AudioRendererChange - OFF_STATE_PREPARED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_OFF_RENDERER_CHANGE_001', 0,async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_OFF_RENDERER_CHANGE_0100 + * @tc.name : AudioRendererChange - OFF_STATE_PREPARED + * @tc.desc : AudioRendererChange - OFF_STATE_PREPARED + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_OFF_RENDERER_CHANGE_0100', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_32000, @@ -1689,61 +1674,61 @@ describe('audioRendererChange', function () { var resultFlag = true; var audioRen; - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } resultFlag = false; } }); - await sleep (100); + await sleep(100); audioStreamManager.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[RENDERER-CHANGE-OFF-001] ######### RendererChange Off is called #########'); - console.info(Tag+'[RENDERER-CHANGE-OFF-001] ResultFlag is:'+resultFlag); + console.info(Tag + '[RENDERER-CHANGE-OFF-001] ######### RendererChange Off is called #########'); + console.info(Tag + '[RENDERER-CHANGE-OFF-001] ResultFlag is:' + resultFlag); await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRender Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); }); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); done(); }) - /* * - * @tc.number : SUB_AUDIO_OFF_RENDERER_CHANGE_002 - * @tc.name : AudioRendererChange - OFF_STATE_RUNNING - * @tc.desc : AudioRendererChange - OFF_STATE_RUNNING - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_OFF_RENDERER_CHANGE_002', 0,async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_OFF_RENDERER_CHANGE_0200 + * @tc.name : AudioRendererChange - OFF_STATE_RUNNING + * @tc.desc : AudioRendererChange - OFF_STATE_RUNNING + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_OFF_RENDERER_CHANGE_0200', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_96000, @@ -1767,67 +1752,67 @@ describe('audioRendererChange', function () { await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); - }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); - }); - - await sleep (100); - - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); + }); + + await sleep(100); + + audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } resultFlag = false; } }); - await sleep (100); + await sleep(100); audioStreamManager.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[RENDERER-CHANGE-OFF-002] ######### RendererChange Off is called #########'); - console.info(Tag+'[RENDERER-CHANGE-OFF-002] ResultFlag is:'+resultFlag); + console.info(Tag + '[RENDERER-CHANGE-OFF-002] ######### RendererChange Off is called #########'); + console.info(Tag + '[RENDERER-CHANGE-OFF-002] ResultFlag is:' + resultFlag); await audioRen.start().then(async function () { - console.info(Tag+'renderInstant started :SUCCESS '); + console.info(Tag + 'renderInstant started :SUCCESS '); }).catch((err) => { - console.info(Tag+'renderInstant start :ERROR : '+err.message); + console.info(Tag + 'renderInstant start :ERROR : ' + err.message); }); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); done(); }) - /* * - * @tc.number : SUB_AUDIO_OFF_RENDERER_CHANGE_003 - * @tc.name : AudioRenderer - OFF_STATE_STOPPED - * @tc.desc : AudioRenderer - OFF_STATE_STOPPED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_OFF_RENDERER_CHANGE_003', 0,async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_OFF_RENDERER_CHANGE_0300 + * @tc.name : AudioRenderer - OFF_STATE_STOPPED + * @tc.desc : AudioRenderer - OFF_STATE_STOPPED + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_OFF_RENDERER_CHANGE_0300', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -1850,73 +1835,73 @@ describe('audioRendererChange', function () { await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRender Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); }); await audioRen.start().then(async function () { - console.info(Tag+'renderInstant started :SUCCESS '); - }).catch((err) => { - console.info(Tag+'renderInstant start :ERROR : '+err.message); - }); - - await sleep (100); - - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + console.info(Tag + 'renderInstant start :ERROR : ' + err.message); + }); + + await sleep(100); + + audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } resultFlag = false; } }); - await sleep (100); + await sleep(100); audioStreamManager.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[RENDERER-CHANGE-OFF-003] ######### RendererChange Off is called #########'); - console.info(Tag+'[RENDERER-CHANGE-OFF-003] ResultFlag is:'+resultFlag); + console.info(Tag + '[RENDERER-CHANGE-OFF-003] ######### RendererChange Off is called #########'); + console.info(Tag + '[RENDERER-CHANGE-OFF-003] ResultFlag is:' + resultFlag); await audioRen.stop().then(async function () { - console.info(Tag+'Renderer stopped : SUCCESS'); + console.info(Tag + 'Renderer stopped : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer stop:ERROR : '+err.message); + console.info(Tag + 'Renderer stop:ERROR : ' + err.message); }); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); done(); }) - /* * - * @tc.number : SUB_AUDIO_OFF_RENDERER_CHANGE_004 - * @tc.name : AudioRendererChange - OFF_STATE_RELEASED - * @tc.desc : AudioRendererChange - OFF_STATE_RELEASED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_OFF_RENDERER_CHANGE_004', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_OFF_RENDERER_CHANGE_0400 + * @tc.name : AudioRendererChange - OFF_STATE_RELEASED + * @tc.desc : AudioRendererChange - OFF_STATE_RELEASED + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_OFF_RENDERER_CHANGE_0400', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_8000, @@ -1941,73 +1926,73 @@ describe('audioRendererChange', function () { await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRender Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); }); await audioRen.start().then(async function () { - console.info(Tag+'renderInstant started :SUCCESS '); + console.info(Tag + 'renderInstant started :SUCCESS '); }).catch((err) => { - console.info(Tag+'renderInstant start :ERROR : '+err.message); + console.info(Tag + 'renderInstant start :ERROR : ' + err.message); }); await audioRen.stop().then(async function () { - console.info(Tag+'Renderer stopped : SUCCESS'); - }).catch((err) => { - console.info(Tag+'Renderer stop:ERROR : '+err.message); - }); - - await sleep (100); - - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + console.info(Tag + 'Renderer stop:ERROR : ' + err.message); + }); + + await sleep(100); + + audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '[RENDERER-CHANGE-OFF-004] ######### RendererChange on is called for ' + i + ' ##########'); + console.info(Tag + '[RENDERER-CHANGE-OFF-004] StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + '[RENDERER-CHANGE-OFF-004] ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + '[RENDERER-CHANGE-OFF-004] Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + '[RENDERER-CHANGE-OFF-004] Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + '[RENDERER-CHANGE-OFF-004] Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + '[RENDERER-CHANGE-OFF-004] State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } resultFlag = false; } }); - await sleep (100); + await sleep(100); audioStreamManager.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[RENDERER-CHANGE-OFF-004] ######### RendererChange Off is called #########'); - console.info(Tag+'[RENDERER-CHANGE-OFF-004] ResultFlag is:'+resultFlag); + console.info(Tag + '[RENDERER-CHANGE-OFF-004] ######### RendererChange Off is called #########'); + console.info(Tag + '[RENDERER-CHANGE-OFF-004] ResultFlag is:' + resultFlag); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); done(); }) - /* * - * @tc.number : SUB_AUDIO_OFF_RENDERER_CHANGE_005 - * @tc.name : AudioRendererChange - OFF_STATE_PAUSED - * @tc.desc : AudioRendererChange - OFF_STATE_PAUSED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_OFF_RENDERER_CHANGE_005', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_OFF_RENDERER_CHANGE_0500 + * @tc.name : AudioRendererChange - OFF_STATE_PAUSED + * @tc.desc : AudioRendererChange - OFF_STATE_PAUSED + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_OFF_RENDERER_CHANGE_0500', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_8000, @@ -2032,80 +2017,80 @@ describe('audioRendererChange', function () { await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRender Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); }); await audioRen.start().then(async function () { - console.info(Tag+'renderInstant started :SUCCESS '); - }).catch((err) => { - console.info(Tag+'renderInstant start :ERROR : '+err.message); - }); - - await sleep (100); - - audioStreamManagerCB.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + console.info(Tag + 'renderInstant start :ERROR : ' + err.message); + }); + + await sleep(100); + + audioStreamManagerCB.on('audioRendererChange', (AudioRendererChangeInfoArray) => { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } resultFlag = false; } }); - await sleep (100); + await sleep(100); audioStreamManagerCB.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[RENDERER-CHANGE-OFF-005] ######### RendererChange Off is called #########'); - console.info(Tag+'[RENDERER-CHANGE-OFF-005] ResultFlag is:'+resultFlag); + console.info(Tag + '[RENDERER-CHANGE-OFF-005] ######### RendererChange Off is called #########'); + console.info(Tag + '[RENDERER-CHANGE-OFF-005] ResultFlag is:' + resultFlag); await audioRen.pause().then(async function () { - console.info(Tag+'renderInstant Pause :SUCCESS '); + console.info(Tag + 'renderInstant Pause :SUCCESS '); }).catch((err) => { - console.info(Tag+'renderInstant Pause :ERROR : '+err.message); + console.info(Tag + 'renderInstant Pause :ERROR : ' + err.message); }); await audioRen.stop().then(async function () { - console.info(Tag+'Renderer stopped : SUCCESS'); + console.info(Tag + 'Renderer stopped : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer stop:ERROR : '+err.message); + console.info(Tag + 'Renderer stop:ERROR : ' + err.message); }); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); done(); }) - - /* * - * @tc.number : SUB_AUDIO_OFF_RENDERER_CHANGE_006 - * @tc.name : AudioRendererChange - DEVICE DESCRIPTOR - * @tc.desc : AudioRendererChange - DEVICE DESCRIPTOR - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_OFF_RENDERER_CHANGE_006', 0,async function (done) { + + /** + * @tc.number : SUB_MULTIMEDIA_OFF_RENDERER_CHANGE_0600 + * @tc.name : AudioRendererChange - DEVICE DESCRIPTOR + * @tc.desc : AudioRendererChange - DEVICE DESCRIPTOR + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_OFF_RENDERER_CHANGE_0600', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_32000, @@ -2128,70 +2113,70 @@ describe('audioRendererChange', function () { var resultFlag = true; var audioRen; - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i 0 && dType == 2 && dRole == 2 && sRate!= null && cCount != null && cMask != null) { - resultFlag = false; - } - } + audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + var Id = AudioRendererChangeInfoArray[i].deviceDescriptors[j].id; + var dType = AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType; + var dRole = AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole; + var sRate = AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]; + var cCount = AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]; + var cMask = AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks; + console.info(Tag + 'Id:' + i + ':' + Id); + console.info(Tag + 'Type:' + i + ':' + dType); + console.info(Tag + 'Role:' + i + ':' + dRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + sRate); + console.info(Tag + 'CC:' + i + ':' + cCount); + console.info(Tag + 'CM:' + i + ':' + cMask); + if (Id > 0 && dType == 2 && dRole == 2 && sRate != null && cCount != null && cMask != null) { + resultFlag = false; + } + } } }); - await sleep (100); + await sleep(100); audioStreamManager.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[RENDERER-CHANGE-OFF-006] ######### RendererChange Off is called #########'); - console.info(Tag+'[RENDERER-CHANGE-OFF-006] ResultFlag is:'+resultFlag); + console.info(Tag + '[RENDERER-CHANGE-OFF-006] ######### RendererChange Off is called #########'); + console.info(Tag + '[RENDERER-CHANGE-OFF-006] ResultFlag is:' + resultFlag); await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRender Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); }); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); done(); }) - /* * - * @tc.number : SUB_AUDIO_GET_RENDERER_CHANGE_PROMISE_001 - * @tc.name : AudioRendererChange - GET_STATE_PREPARED - * @tc.desc : AudioRendererChange - GET_STATE_PREPARED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_GET_RENDERER_CHANGE_PROMISE_001', 0, async function (done) { - var audioCap ; + /** + * @tc.number : SUB_MULTIMEDIA_GET_RENDERER_CHANGE_PROMISE_0100 + * @tc.name : AudioRendererChange - GET_STATE_PREPARED + * @tc.desc : AudioRendererChange - GET_STATE_PREPARED + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_GET_RENDERER_CHANGE_PROMISE_0100', 2, async function (done) { + var audioCap; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_2, @@ -2211,95 +2196,93 @@ describe('audioRendererChange', function () { } var resultFlag = false; - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } } }); - await sleep (100); + await sleep(100); await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioRenderer Created : Success : Stream Type: SUCCESS'); - }).catch((err) => { - console.info(Tag+'AudioRenderer Created : ERROR : '+err.message); - }); - - await sleep(100); - - await audioStreamManager.getCurrentAudioRendererInfoArray().then( function (AudioRendererChangeInfoArray) { - console.info(Tag+'[GET_RENDERER_STATE_1_PROMISE] ######### Get Promise is called ##########'); - if (AudioRendererChangeInfoArray!=null) { - for (let i=0;i { + console.info(Tag + 'AudioRenderer Created : ERROR : ' + err.message); + }); + + await sleep(100); + + await audioStreamManager.getCurrentAudioRendererInfoArray().then(function (AudioRendererChangeInfoArray) { + console.info(Tag + '[GET_RENDERER_STATE_1_PROMISE] ######### Get Promise is called ##########'); + if (AudioRendererChangeInfoArray != null) { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Con ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + '' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + var devDescriptor = AudioRendererChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioRendererChangeInfoArray[i].rendererState == 1 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'State : '+AudioRendererChangeInfoArray[i].rendererState); + console.info(Tag + 'State : ' + AudioRendererChangeInfoArray[i].rendererState); } } } }).catch((err) => { - console.log(Tag+'getCurrentAudioRendererInfoArray :ERROR: '+err.message); + console.log(Tag + 'getCurrentAudioRendererInfoArray :ERROR: ' + err.message); resultFlag = false; }); - + audioStreamManager.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[GET_RENDERER_STATE_1_PROMISE] ######### RendererChange Off is called #########'); - - await audioCap.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + '[GET_RENDERER_STATE_1_PROMISE] ######### RendererChange Off is called #########'); + + await audioCap.release().then(async function () { + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); - - expect(resultFlag).assertTrue(); + + expect(resultFlag).assertTrue(); done(); }) - /* * - * @tc.number : SUB_AUDIO_GET_RENDERER_CHANGE_PROMISE_002 - * @tc.name : AudioRendererChange - GET_STATE_RUNNING - * @tc.desc : AudioRendererChange - GET_STATE_RUNNING - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - * */ - - - it('SUB_AUDIO_GET_RENDERER_CHANGE_PROMISE_002', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_GET_RENDERER_CHANGE_PROMISE_0200 + * @tc.name : AudioRendererChange - GET_STATE_RUNNING + * @tc.desc : AudioRendererChange - GET_STATE_RUNNING + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_GET_RENDERER_CHANGE_PROMISE_0200', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -2325,84 +2308,84 @@ describe('audioRendererChange', function () { await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioRenderer Created : Success : Stream Type: SUCCESS'); - }).catch((err) => { - console.info(Tag+'AudioRenderer Created : ERROR : '+err.message); - }); - - await sleep(100); - - audioStreamManagerCB.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + console.info(Tag + 'AudioRenderer Created : ERROR : ' + err.message); + }); + + await sleep(100); + + audioStreamManagerCB.on('audioRendererChange', (AudioRendererChangeInfoArray) => { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } } }); - await sleep (100); + await sleep(100); await audioCap.start().then(async function () { - console.info(Tag+'Renderer started :SUCCESS '); - }).catch((err) => { - console.info(Tag+'Renderer start :ERROR : '+err.message); - }); - - await sleep(100); - - await audioStreamManagerCB.getCurrentAudioRendererInfoArray().then( function (AudioRendererChangeInfoArray) { - console.info(Tag+'[GET_RENDERER_STATE_2_PROMISE] ######### Get Promise is called ##########'); - if (AudioRendererChangeInfoArray!=null) { - for (let i=0;i { + console.info(Tag + 'Renderer start :ERROR : ' + err.message); + }); + + await sleep(100); + + await audioStreamManagerCB.getCurrentAudioRendererInfoArray().then(function (AudioRendererChangeInfoArray) { + console.info(Tag + '[GET_RENDERER_STATE_2_PROMISE] ######### Get Promise is called ##########'); + if (AudioRendererChangeInfoArray != null) { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Con ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + '' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + var devDescriptor = AudioRendererChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioRendererChangeInfoArray[i].rendererState == 2 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'State : '+AudioRendererChangeInfoArray[i].rendererState); + console.info(Tag + 'State : ' + AudioRendererChangeInfoArray[i].rendererState); } } } }).catch((err) => { - console.log(Tag+'getCurrentAudioRendererInfoArray :ERROR: '+err.message); + console.log(Tag + 'getCurrentAudioRendererInfoArray :ERROR: ' + err.message); resultFlag = false; }); - + audioStreamManagerCB.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[GET_RENDERER_STATE_2_PROMISE] ######### RendererChange Off is called #########'); + console.info(Tag + '[GET_RENDERER_STATE_2_PROMISE] ######### RendererChange Off is called #########'); await audioCap.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); @@ -2410,17 +2393,15 @@ describe('audioRendererChange', function () { }) - /* * - * @tc.number : SUB_AUDIO_GET_RENDERER_CHANGE_PROMISE_003 - * @tc.name : AudioRendererChange - GET_STATE_STOPPED - * @tc.desc : AudioRendererChange - GET_STATE_STOPPED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - * */ - - - it('SUB_AUDIO_GET_RENDERER_CHANGE_PROMISE_003', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_GET_RENDERER_CHANGE_PROMISE_0300 + * @tc.name : AudioRendererChange - GET_STATE_STOPPED + * @tc.desc : AudioRendererChange - GET_STATE_STOPPED + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_GET_RENDERER_CHANGE_PROMISE_0300', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -2446,107 +2427,107 @@ describe('audioRendererChange', function () { await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioRenderer Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRenderer Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRenderer Created : ERROR : '+err.message); + console.info(Tag + 'AudioRenderer Created : ERROR : ' + err.message); }); - + await audioCap.start().then(async function () { - console.info(Tag+'Renderer started :SUCCESS '); - }).catch((err) => { - console.info(Tag+'Renderer start :ERROR : '+err.message); - }); - - await sleep(100); - - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + console.info(Tag + 'Renderer start :ERROR : ' + err.message); + }); + + await sleep(100); + + audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } } }); - await sleep (100); + await sleep(100); await audioCap.stop().then(async function () { - console.info(Tag+'Renderer stopped : SUCCESS'); - }).catch((err) => { - console.info(Tag+'Renderer stop:ERROR : '+err.message); - }); - - await sleep(100); - - await audioStreamManager.getCurrentAudioRendererInfoArray().then( function (AudioRendererChangeInfoArray) { - console.info(Tag+'[GET_RENDERER_STATE_3_PROMISE] ######### Get Promise is called ##########'); - if (AudioRendererChangeInfoArray!=null) { - for (let i=0;i { + console.info(Tag + 'Renderer stop:ERROR : ' + err.message); + }); + + await sleep(100); + + await audioStreamManager.getCurrentAudioRendererInfoArray().then(function (AudioRendererChangeInfoArray) { + console.info(Tag + '[GET_RENDERER_STATE_3_PROMISE] ######### Get Promise is called ##########'); + if (AudioRendererChangeInfoArray != null) { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Con ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + '' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + var devDescriptor = AudioRendererChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioRendererChangeInfoArray[i].rendererState == 3 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'State : '+AudioRendererChangeInfoArray[i].rendererState); + console.info(Tag + 'State : ' + AudioRendererChangeInfoArray[i].rendererState); } } } }).catch((err) => { - console.log(Tag+'getCurrentAudioRendererInfoArray :ERROR: '+err.message); + console.log(Tag + 'getCurrentAudioRendererInfoArray :ERROR: ' + err.message); resultFlag = false; }); - + audioStreamManager.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[GET_RENDERER_STATE_3_PROMISE] ######### RendererChange Off is called #########'); + console.info(Tag + '[GET_RENDERER_STATE_3_PROMISE] ######### RendererChange Off is called #########'); await audioCap.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); done(); }) - - /* * - * @tc.number : SUB_AUDIO_GET_RENDERER_CHANGE_PROMISE_004 - * @tc.name : AudioRendererChange - GET_STATE_PAUSED - * @tc.desc : AudioRendererChange - GET_STATE_PAUSED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_GET_RENDERER_CHANGE_PROMISE_004', 0,async function (done) { + + /** + * @tc.number : SUB_MULTIMEDIA_GET_RENDERER_CHANGE_PROMISE_0400 + * @tc.name : AudioRendererChange - GET_STATE_PAUSED + * @tc.desc : AudioRendererChange - GET_STATE_PAUSED + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_GET_RENDERER_CHANGE_PROMISE_0400', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, @@ -2572,113 +2553,113 @@ describe('audioRendererChange', function () { await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRender Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); }); await audioRen.start().then(async function () { - console.info(Tag+'renderInstant started :SUCCESS '); - }).catch((err) => { - console.info(Tag+'renderInstant start :ERROR : '+err.message); - }); - - await sleep (100); - - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + console.info(Tag + 'renderInstant start :ERROR : ' + err.message); + }); + + await sleep(100); + + audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } } }); - - await sleep (100); + + await sleep(100); await audioRen.pause().then(async function () { - console.info(Tag+'renderInstant Pause :SUCCESS '); - }).catch((err) => { - console.info(Tag+'renderInstant Pause :ERROR : '+err.message); - }); - - await sleep (100); - - await audioStreamManager.getCurrentAudioRendererInfoArray().then( function (AudioRendererChangeInfoArray) { - console.info(Tag+'[GET_RENDERER_STATE_5_PROMISE] ######### Get Promise is called ##########'); - if (AudioRendererChangeInfoArray!=null) { - for (let i=0;i { + console.info(Tag + 'renderInstant Pause :ERROR : ' + err.message); + }); + + await sleep(100); + + await audioStreamManager.getCurrentAudioRendererInfoArray().then(function (AudioRendererChangeInfoArray) { + console.info(Tag + '[GET_RENDERER_STATE_5_PROMISE] ######### Get Promise is called ##########'); + if (AudioRendererChangeInfoArray != null) { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Con ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + '' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + var devDescriptor = AudioRendererChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } if (AudioRendererChangeInfoArray[i].rendererState == 5 && devDescriptor != null) { resultFlag = true; - console.info(Tag+'State : '+AudioRendererChangeInfoArray[i].rendererState); + console.info(Tag + 'State : ' + AudioRendererChangeInfoArray[i].rendererState); } } } }).catch((err) => { - console.log(Tag+'getCurrentAudioRendererInfoArray :ERROR: '+err.message); + console.log(Tag + 'getCurrentAudioRendererInfoArray :ERROR: ' + err.message); resultFlag = false; }); - + audioStreamManager.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[GET_RENDERER_STATE_5_PROMISE] ######### RendererChange Off is called #########'); + console.info(Tag + '[GET_RENDERER_STATE_5_PROMISE] ######### RendererChange Off is called #########'); await audioRen.stop().then(async function () { - console.info(Tag+'Renderer stopped : SUCCESS'); + console.info(Tag + 'Renderer stopped : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer stop:ERROR : '+err.message); + console.info(Tag + 'Renderer stop:ERROR : ' + err.message); }); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); done(); }) -/* * - * @tc.number : SUB_AUDIO_GET_RENDERER_CHANGE_PROMISE_005 - * @tc.name : AudioRendererChange - DEVICE DESCRIPTOR - * @tc.desc : AudioRendererChange - DEVICE DESCRIPTOR - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_GET_RENDERER_CHANGE_PROMISE_005', 0, async function (done) { - var audioCap ; + /** + * @tc.number : SUB_MULTIMEDIA_GET_RENDERER_CHANGE_PROMISE_0500 + * @tc.name : AudioRendererChange - DEVICE DESCRIPTOR + * @tc.desc : AudioRendererChange - DEVICE DESCRIPTOR + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_GET_RENDERER_CHANGE_PROMISE_0500', 2, async function (done) { + var audioCap; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_2, @@ -2698,98 +2679,98 @@ describe('audioRendererChange', function () { } var resultFlag = false; - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } } }); - await sleep (100); + await sleep(100); await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioRenderer Created : Success : Stream Type: SUCCESS'); - }).catch((err) => { - console.info(Tag+'AudioRenderer Created : ERROR : '+err.message); - }); - - await sleep(100); - - await audioStreamManager.getCurrentAudioRendererInfoArray().then( function (AudioRendererChangeInfoArray) { - console.info(Tag+'[GET_RENDERER_DD_PROMISE] ######### Get Promise is called ##########'); - if (AudioRendererChangeInfoArray!=null) { - for (let i=0;i 0 && dType == 2 && dRole == 2 && sRate!= null && cCount != null && cMask != null) { - resultFlag = true; - } - } + console.info(Tag + 'AudioRenderer Created : Success : Stream Type: SUCCESS'); + }).catch((err) => { + console.info(Tag + 'AudioRenderer Created : ERROR : ' + err.message); + }); + + await sleep(100); + + await audioStreamManager.getCurrentAudioRendererInfoArray().then(function (AudioRendererChangeInfoArray) { + console.info(Tag + '[GET_RENDERER_DD_PROMISE] ######### Get Promise is called ##########'); + if (AudioRendererChangeInfoArray != null) { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Con ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + '' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + var Id = AudioRendererChangeInfoArray[i].deviceDescriptors[j].id; + var dType = AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType; + var dRole = AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole; + var sRate = AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]; + var cCount = AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]; + var cMask = AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks; + console.info(Tag + 'Id:' + i + ':' + Id); + console.info(Tag + 'Type:' + i + ':' + dType); + console.info(Tag + 'Role:' + i + ':' + dRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + sRate); + console.info(Tag + 'CC:' + i + ':' + cCount); + console.info(Tag + 'CM:' + i + ':' + cMask); + if (Id > 0 && dType == 2 && dRole == 2 && sRate != null && cCount != null && cMask != null) { + resultFlag = true; + } + } } } }).catch((err) => { - console.log(Tag+'getCurrentAudioRendererInfoArray :ERROR: '+err.message); + console.log(Tag + 'getCurrentAudioRendererInfoArray :ERROR: ' + err.message); resultFlag = false; }); - + audioStreamManager.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[GET_RENDERER_DD_PROMISE] ######### RendererChange Off is called #########'); - - await audioCap.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + '[GET_RENDERER_DD_PROMISE] ######### RendererChange Off is called #########'); + + await audioCap.release().then(async function () { + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); - - expect(resultFlag).assertTrue(); + + expect(resultFlag).assertTrue(); done(); }) - /* * - * @tc.number : SUB_AUDIO_GET_RENDERER_CHANGE_CALLBACK_001 - * @tc.name : AudioRendererChange - GET_STATE_PREPARED - * @tc.desc : AudioRendererChange - GET_STATE_PREPARED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_GET_RENDERER_CHANGE_CALLBACK_001', 0, async function (done) { - var audioCap ; + /** + * @tc.number : SUB_MULTIMEDIA_GET_RENDERER_CHANGE_CALLBACK_0100 + * @tc.name : AudioRendererChange - GET_STATE_PREPARED + * @tc.desc : AudioRendererChange - GET_STATE_PREPARED + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_GET_RENDERER_CHANGE_CALLBACK_0100', 2, async function (done) { + var audioCap; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_2, @@ -2809,68 +2790,68 @@ describe('audioRendererChange', function () { } var resultFlag = false; - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } } }); - await sleep (100); + await sleep(100); await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioRenderer Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRenderer Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRenderer Created : ERROR : '+err.message); + console.info(Tag + 'AudioRenderer Created : ERROR : ' + err.message); }); - await sleep(100); - - audioStreamManager.getCurrentAudioRendererInfoArray(async (err, AudioRendererChangeInfoArray) => { - console.info(Tag+'[GET_RENDERER_STATE_1_CALLBACK] **** Get Callback Called ****'); + await sleep(100); + + audioStreamManager.getCurrentAudioRendererInfoArray(async (err, AudioRendererChangeInfoArray) => { + console.info(Tag + '[GET_RENDERER_STATE_1_CALLBACK] **** Get Callback Called ****'); await sleep(100); if (err) { - console.log(Tag+'getCurrentAudioRendererInfoArray :ERROR: '+err.message); + console.log(Tag + 'getCurrentAudioRendererInfoArray :ERROR: ' + err.message); resultFlag = false; } else { - if (AudioRendererChangeInfoArray !=null) { - for (let i=0;i { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); - - expect(resultFlag).assertTrue(); + + expect(resultFlag).assertTrue(); done(); }) - /* * - * @tc.number : SUB_AUDIO_GET_RENDERER_CHANGE_CALLBACK_002 - * @tc.name : AudioRendererChange - GET_STATE_RUNNING - * @tc.desc : AudioRendererChange - GET_STATE_RUNNING - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - * */ - - - it('SUB_AUDIO_GET_RENDERER_CHANGE_CALLBACK_002', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_GET_RENDERER_CHANGE_CALLBACK_0200 + * @tc.name : AudioRendererChange - GET_STATE_RUNNING + * @tc.desc : AudioRendererChange - GET_STATE_RUNNING + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_GET_RENDERER_CHANGE_CALLBACK_0200', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -2929,74 +2908,74 @@ describe('audioRendererChange', function () { await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioRenderer Created : Success : Stream Type: SUCCESS'); - }).catch((err) => { - console.info(Tag+'AudioRenderer Created : ERROR : '+err.message); - }); - - await sleep(100); - - audioStreamManagerCB.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + console.info(Tag + 'AudioRenderer Created : ERROR : ' + err.message); + }); + + await sleep(100); + + audioStreamManagerCB.on('audioRendererChange', (AudioRendererChangeInfoArray) => { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } } }); - await sleep (100); + await sleep(100); await audioCap.start().then(async function () { - console.info(Tag+'Renderer started :SUCCESS '); + console.info(Tag + 'Renderer started :SUCCESS '); }).catch((err) => { - console.info(Tag+'Renderer start :ERROR : '+err.message); + console.info(Tag + 'Renderer start :ERROR : ' + err.message); }); - await sleep(100); - - audioStreamManagerCB.getCurrentAudioRendererInfoArray(async (err, AudioRendererChangeInfoArray) => { - console.info(Tag+'[GET_RENDERER_STATE_2_CALLBACK] **** Get Callback Called ****'); + await sleep(100); + + audioStreamManagerCB.getCurrentAudioRendererInfoArray(async (err, AudioRendererChangeInfoArray) => { + console.info(Tag + '[GET_RENDERER_STATE_2_CALLBACK] **** Get Callback Called ****'); await sleep(100); if (err) { - console.log(Tag+'getCurrentAudioRendererInfoArray :ERROR: '+err.message); + console.log(Tag + 'getCurrentAudioRendererInfoArray :ERROR: ' + err.message); resultFlag = false; } else { - if (AudioRendererChangeInfoArray !=null) { - for (let i=0;i { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); @@ -3020,18 +2999,15 @@ describe('audioRendererChange', function () { }) - /* * - * @tc.number : SUB_AUDIO_GET_RENDERER_CHANGE_CALLBACK_003 - * @tc.name : AudioRendererChange - GET_STATE_STOPPED - * @tc.desc : AudioRendererChange - GET_STATE_STOPPED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - * */ - - - it('SUB_AUDIO_GET_RENDERER_CHANGE_CALLBACK_003', 0, async function (done) { - + /** + * @tc.number : SUB_MULTIMEDIA_GET_RENDERER_CHANGE_CALLBACK_0300 + * @tc.name : AudioRendererChange - GET_STATE_STOPPED + * @tc.desc : AudioRendererChange - GET_STATE_STOPPED + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_GET_RENDERER_CHANGE_CALLBACK_0300', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_2, @@ -3056,81 +3032,81 @@ describe('audioRendererChange', function () { await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioRenderer Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRenderer Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRenderer Created : ERROR : '+err.message); + console.info(Tag + 'AudioRenderer Created : ERROR : ' + err.message); }); - + await audioCap.start().then(async function () { - console.info(Tag+'Renderer started :SUCCESS '); - }).catch((err) => { - console.info(Tag+'Renderer start :ERROR : '+err.message); - }); - - await sleep(100); - - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + console.info(Tag + 'Renderer start :ERROR : ' + err.message); + }); + + await sleep(100); + + audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } } }); - await sleep (100); + await sleep(100); await audioCap.stop().then(async function () { - console.info(Tag+'Renderer stopped : SUCCESS'); + console.info(Tag + 'Renderer stopped : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer stop:ERROR : '+err.message); + console.info(Tag + 'Renderer stop:ERROR : ' + err.message); }); - await sleep(100); - - audioStreamManager.getCurrentAudioRendererInfoArray(async (err, AudioRendererChangeInfoArray) => { - console.info(Tag+'[GET_RENDERER_STATE_3_CALLBACK] **** Get Callback Called ****'); + await sleep(100); + + audioStreamManager.getCurrentAudioRendererInfoArray(async (err, AudioRendererChangeInfoArray) => { + console.info(Tag + '[GET_RENDERER_STATE_3_CALLBACK] **** Get Callback Called ****'); await sleep(100); if (err) { - console.log(Tag+'getCurrentAudioRendererInfoArray :ERROR: '+err.message); + console.log(Tag + 'getCurrentAudioRendererInfoArray :ERROR: ' + err.message); resultFlag = false; } else { - if (AudioRendererChangeInfoArray !=null) { - for (let i=0;i { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); done(); }) - - /* * - * @tc.number : SUB_AUDIO_GET_RENDERER_CHANGE_CALLBACK_004 - * @tc.name : AudioRendererChange - GET_STATE_PAUSED - * @tc.desc : AudioRendererChange - GET_STATE_PAUSED - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_GET_RENDERER_CHANGE_CALLBACK_004', 0,async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_GET_RENDERER_CHANGE_CALLBACK_0400 + * @tc.name : AudioRendererChange - GET_STATE_PAUSED + * @tc.desc : AudioRendererChange - GET_STATE_PAUSED + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_GET_RENDERER_CHANGE_CALLBACK_0400', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, @@ -3188,81 +3163,81 @@ describe('audioRendererChange', function () { await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioRen = data; - console.info(Tag+'AudioRender Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRender Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRender Created : ERROR : '+err.message); + console.info(Tag + 'AudioRender Created : ERROR : ' + err.message); }); await audioRen.start().then(async function () { - console.info(Tag+'renderInstant started :SUCCESS '); - }).catch((err) => { - console.info(Tag+'renderInstant start :ERROR : '+err.message); - }); - - await sleep (100); - - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + console.info(Tag + 'renderInstant start :ERROR : ' + err.message); + }); + + await sleep(100); + + audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } } }); - - await sleep (100); + + await sleep(100); await audioRen.pause().then(async function () { - console.info(Tag+'renderInstant Pause :SUCCESS '); + console.info(Tag + 'renderInstant Pause :SUCCESS '); }).catch((err) => { - console.info(Tag+'renderInstant Pause :ERROR : '+err.message); + console.info(Tag + 'renderInstant Pause :ERROR : ' + err.message); }); - await sleep (100); - - audioStreamManager.getCurrentAudioRendererInfoArray(async (err, AudioRendererChangeInfoArray) => { - console.info(Tag+'[GET_RENDERER_STATE_5_CALLBACK] **** Get Callback Called ****'); + await sleep(100); + + audioStreamManager.getCurrentAudioRendererInfoArray(async (err, AudioRendererChangeInfoArray) => { + console.info(Tag + '[GET_RENDERER_STATE_5_CALLBACK] **** Get Callback Called ****'); await sleep(100); if (err) { - console.log(Tag+'getCurrentAudioRendererInfoArray :ERROR: '+err.message); + console.log(Tag + 'getCurrentAudioRendererInfoArray :ERROR: ' + err.message); resultFlag = false; } else { - if (AudioRendererChangeInfoArray !=null) { - for (let i=0;i { - console.info(Tag+'Renderer stop:ERROR : '+err.message); + console.info(Tag + 'Renderer stop:ERROR : ' + err.message); }); await audioRen.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); expect(resultFlag).assertTrue(); done(); }) - - /* * - * @tc.number : SUB_AUDIO_GET_RENDERER_CHANGE_CALLBACK_005 - * @tc.name : AudioRendererChange - DEVICE DESCRIPTOR - * @tc.desc : AudioRendererChange - DEVICE DESCRIPTOR - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0*/ - - it('SUB_AUDIO_GET_RENDERER_CHANGE_CALLBACK_005', 0, async function (done) { - var audioCap ; + + /** + * @tc.number : SUB_MULTIMEDIA_GET_RENDERER_CHANGE_CALLBACK_0500 + * @tc.name : AudioRendererChange - DEVICE DESCRIPTOR + * @tc.desc : AudioRendererChange - DEVICE DESCRIPTOR + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_GET_RENDERER_CHANGE_CALLBACK_0500', 2, async function (done) { + var audioCap; var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_2, @@ -3320,93 +3295,93 @@ describe('audioRendererChange', function () { } var resultFlag = false; - audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i=0;i { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + '## RendererChange on is called for ' + i + ' ##'); + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Content for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + 'Flag ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(Tag + 'Id:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].id); + console.info(Tag + 'Type:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType); + console.info(Tag + 'Role:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole); + console.info(Tag + 'Name:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + 'Addr:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]); + console.info(Tag + 'C' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); + console.info(Tag + 'CM:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); + } } }); - await sleep (100); + await sleep(100); await audio.createAudioRenderer(AudioRendererOptions).then(async function (data) { audioCap = data; - console.info(Tag+'AudioRenderer Created : Success : Stream Type: SUCCESS'); + console.info(Tag + 'AudioRenderer Created : Success : Stream Type: SUCCESS'); }).catch((err) => { - console.info(Tag+'AudioRenderer Created : ERROR : '+err.message); + console.info(Tag + 'AudioRenderer Created : ERROR : ' + err.message); }); - await sleep(100); - - audioStreamManager.getCurrentAudioRendererInfoArray(async (err, AudioRendererChangeInfoArray) => { - console.info(Tag+'[GET_RENDERER_DD_CALLBACK] **** Get Callback Called ****'); + await sleep(100); + + audioStreamManager.getCurrentAudioRendererInfoArray(async (err, AudioRendererChangeInfoArray) => { + console.info(Tag + '[GET_RENDERER_DD_CALLBACK] **** Get Callback Called ****'); await sleep(100); if (err) { - console.log(Tag+'getCurrentAudioRendererInfoArray :ERROR: '+err.message); + console.log(Tag + 'getCurrentAudioRendererInfoArray :ERROR: ' + err.message); resultFlag = false; } else { - if (AudioRendererChangeInfoArray !=null) { - for (let i=0;i 0 && dType == 2 && dRole == 2 && sRate!= null && cCount != null && cMask!=null){ - resultFlag = true; - } - } + if (AudioRendererChangeInfoArray != null) { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(Tag + 'StreamId for ' + i + ' is:' + AudioRendererChangeInfoArray[i].streamId); + console.info(Tag + 'ClientUid for ' + i + ' is:' + AudioRendererChangeInfoArray[i].clientUid); + console.info(Tag + 'Con ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.content); + console.info(Tag + 'Stream' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.usage); + console.info(Tag + '' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); + console.info(Tag + 'State for ' + i + ' is:' + AudioRendererChangeInfoArray[i].rendererState); + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + var Id = AudioRendererChangeInfoArray[i].deviceDescriptors[j].id; + var dType = AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType; + var dRole = AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole; + var sRate = AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]; + var cCount = AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]; + var cMask = AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks; + console.info(Tag + 'Id:' + i + ':' + Id); + console.info(Tag + 'Type:' + i + ':' + dType); + console.info(Tag + 'Role:' + i + ':' + dRole); + console.info(Tag + 'Nam:' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].name); + console.info(Tag + '' + i + ':' + AudioRendererChangeInfoArray[i].deviceDescriptors[j].address); + console.info(Tag + 'SR:' + i + ':' + sRate); + console.info(Tag + 'CC:' + i + ':' + cCount); + console.info(Tag + 'CM:' + i + ':' + cMask); + if (Id > 0 && dType == 2 && dRole == 2 && sRate != null && cCount != null && cMask != null) { + resultFlag = true; + } + } } } } }); await sleep(1000); - + audioStreamManager.off('audioRendererChange'); await sleep(100); - console.info(Tag+'[GET_RENDERER_DD_CALLBACK] ######### RendererChange Off is called #########'); - - await audioCap.release().then(async function () { - console.info(Tag+'Renderer release : SUCCESS'); + console.info(Tag + '[GET_RENDERER_DD_CALLBACK] ######### RendererChange Off is called #########'); + + await audioCap.release().then(async function () { + console.info(Tag + 'Renderer release : SUCCESS'); }).catch((err) => { - console.info(Tag+'Renderer release :ERROR : '+err.message); + console.info(Tag + 'Renderer release :ERROR : ' + err.message); }); - - expect(resultFlag).assertTrue(); + + expect(resultFlag).assertTrue(); done(); }) - + }) \ No newline at end of file diff --git a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioVOIP.test.js b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioVOIP.test.js index 053d449cfd60f17540a33f8f121f6337fe0dde4c..1ca791c8d005d4fd12c1b1ee1645f82187317fde 100644 --- a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioVOIP.test.js +++ b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioVOIP.test.js @@ -360,15 +360,15 @@ describe('audioVoip', function () { } - /* * - * @tc.number : SUB_AUDIO_VOIP_Play_001 - * @tc.name : AudioRenderer-Set1-Media - * @tc.desc : AudioRenderer with parameter set 1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_VOIP_Play_001', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_PLAY_0100 + * @tc.name : AudioRenderer-Set1-Media + * @tc.desc : AudioRenderer with parameter set 1 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_PLAY_0100', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -397,15 +397,15 @@ describe('audioVoip', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_Rec_001 - * @tc.name : AudioCapturer-Set1-Media - * @tc.desc : AudioCapturer with parameter set 1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_VOIP_Rec_001', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_0100 + * @tc.name : AudioCapturer-Set1-Media + * @tc.desc : AudioCapturer with parameter set 1 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_0100', 2, async function (done) { var AudioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, @@ -432,15 +432,15 @@ describe('audioVoip', function () { done(); }) - /* * - * @tc.number : SUB_AUDIO_VOIP_RecPlay_001 - * @tc.name : AudioCapturer-Set1-Media - * @tc.desc : AudioCapturer with parameter set 1 - * @tc.size : MEDIUM - * @tc.type : Function - * @tc.level : Level 0 - */ - it('SUB_AUDIO_VOIP_RecPlay_001', 0, async function (done) { + /** + * @tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_RECPLAY_0100 + * @tc.name : AudioCapturer-Set1-Media + * @tc.desc : AudioCapturer with parameter set 1 + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_AUDIO_VOIP_RECPLAY_0100', 2, async function (done) { var AudioStreamInfoCap = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, diff --git a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/getPermission.test.js b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/getPermission.test.js index 31d080975f8e50f3b12538958c45a8ea1b6c3413..88b597422fea0c1ea5ab1717eb5ac67d0add0051 100644 --- a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/getPermission.test.js +++ b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/getPermission.test.js @@ -13,42 +13,41 @@ * limitations under the License. */ -import { describe, beforeAll,afterAll, it, expect } from 'deccjsunit/index'; +import { describe, beforeAll, afterAll, it, expect } from 'deccjsunit/index'; import abilityAccessCtrl from '@ohos.abilityAccessCtrl'; import bundle from '@ohos.bundle'; import account from '@ohos.account.osAccount'; describe("get_permission", function () { - let userId ; - async function getUserId () { - await account.getAccountManager().getOsAccountLocalIdFromProcess().then(account => { - console.info("getOsAccountLocalIdFromProcess userid ==========" + account); - userId = account; - }).catch(err=>{ - console.info("getOsAccountLocalIdFromProcess err ==========" + JSON.stringify(err)); - }) - } + let userId; + async function getUserId() { + await account.getAccountManager().getOsAccountLocalIdFromProcess().then(account => { + console.info("getOsAccountLocalIdFromProcess userid ==========" + account); + userId = account; + }).catch(err => { + console.info("getOsAccountLocalIdFromProcess err ==========" + JSON.stringify(err)); + }) + } /** - * @tc.number SUB_DF_GRANT_USER_GRANTED_PERMISSION_0000 - * @tc.name grant_user_granted_permission_async_000 - * @tc.desc Test grantUserGrantedPermission() interfaces, grant permission. - * @tc.size MEDIUM - * @tc.type Function - * @tc.level Level 0 - * @tc.require - */ + * @tc.number SUB_DF_GRANT_USER_GRANTED_PERMISSION_0000 + * @tc.name grant_user_granted_permission_async_000 + * @tc.desc Test grantUserGrantedPermission() interfaces, grant permission. + * @tc.size MEDIUM + * @tc.type Function + * @tc.level Level 0 + */ it("grant_user_granted_permission_async_000", 0, async function (done) { await getUserId(); let appInfo = await bundle.getApplicationInfo('ohos.acts.multimedia.audio.audiomanager', 0, userId); let tokenID = appInfo.accessTokenId; let atManager = abilityAccessCtrl.createAtManager(); - let result1 = await atManager.grantUserGrantedPermission(tokenID, "ohos.permission.MEDIA_LOCATION",1); - let result2 = await atManager.grantUserGrantedPermission(tokenID, "ohos.permission.READ_MEDIA",1); - let result3 = await atManager.grantUserGrantedPermission(tokenID, "ohos.permission.WRITE_MEDIA",1); - let result4 = await atManager.grantUserGrantedPermission(tokenID, "ohos.permission.GRANT_SENSITIVE_PERMISSIONS",1); - let result5 = await atManager.grantUserGrantedPermission(tokenID, "ohos.permission.REVOKE_SENSITIVE_PERMISSIONS",1); - let result6 = await atManager.grantUserGrantedPermission(tokenID, "ohos.permission.MICROPHONE",1); - let result7 = await atManager.grantUserGrantedPermission(tokenID, "ohos.permission.ACCESS_NOTIFICATION_POLICY",1); - let result8 = await atManager.grantUserGrantedPermission(tokenID, "ohos.permission.MODIFY_AUDIO_SETTINGS",1); + let result1 = await atManager.grantUserGrantedPermission(tokenID, "ohos.permission.MEDIA_LOCATION", 1); + let result2 = await atManager.grantUserGrantedPermission(tokenID, "ohos.permission.READ_MEDIA", 1); + let result3 = await atManager.grantUserGrantedPermission(tokenID, "ohos.permission.WRITE_MEDIA", 1); + let result4 = await atManager.grantUserGrantedPermission(tokenID, "ohos.permission.GRANT_SENSITIVE_PERMISSIONS", 1); + let result5 = await atManager.grantUserGrantedPermission(tokenID, "ohos.permission.REVOKE_SENSITIVE_PERMISSIONS", 1); + let result6 = await atManager.grantUserGrantedPermission(tokenID, "ohos.permission.MICROPHONE", 1); + let result7 = await atManager.grantUserGrantedPermission(tokenID, "ohos.permission.ACCESS_NOTIFICATION_POLICY", 1); + let result8 = await atManager.grantUserGrantedPermission(tokenID, "ohos.permission.MODIFY_AUDIO_SETTINGS", 1); let isGranted1 = await atManager.verifyAccessToken(tokenID, "ohos.permission.MEDIA_LOCATION"); let isGranted2 = await atManager.verifyAccessToken(tokenID, "ohos.permission.READ_MEDIA"); let isGranted3 = await atManager.verifyAccessToken(tokenID, "ohos.permission.WRITE_MEDIA"); @@ -57,22 +56,22 @@ describe("get_permission", function () { let isGranted6 = await atManager.verifyAccessToken(tokenID, "ohos.permission.MICROPHONE"); let isGranted7 = await atManager.verifyAccessToken(tokenID, "ohos.permission.ACCESS_NOTIFICATION_POLICY"); let isGranted8 = await atManager.verifyAccessToken(tokenID, "ohos.permission.MODIFY_AUDIO_SETTINGS"); - console.info("AudioManagerLog: Perm1:"+result1); - console.info("AudioManagerLog: Perm2:"+result2); - console.info("AudioManagerLog: Perm3:"+result3); - console.info("AudioManagerLog: Perm1G:"+isGranted1); - console.info("AudioManagerLog: Perm2G:"+isGranted2); - console.info("AudioManagerLog: Perm3G:"+isGranted3); - console.info("AudioManagerLog: Perm4:"+result4); - console.info("AudioManagerLog: Perm5:"+result5); - console.info("AudioManagerLog: Perm6:"+result6); - console.info("AudioManagerLog: Perm4G:"+isGranted4); - console.info("AudioManagerLog: Perm5G:"+isGranted5); - console.info("AudioManagerLog: Perm6G:"+isGranted6); - console.info("AudioManagerLog: Perm7:"+result7); - console.info("AudioManagerLog: Perm8:"+result8); - console.info("AudioManagerLog: Perm7G:"+isGranted7); - console.info("AudioManagerLog: Perm8G:"+isGranted8); + console.info("AudioManagerLog: Perm1:" + result1); + console.info("AudioManagerLog: Perm2:" + result2); + console.info("AudioManagerLog: Perm3:" + result3); + console.info("AudioManagerLog: Perm1G:" + isGranted1); + console.info("AudioManagerLog: Perm2G:" + isGranted2); + console.info("AudioManagerLog: Perm3G:" + isGranted3); + console.info("AudioManagerLog: Perm4:" + result4); + console.info("AudioManagerLog: Perm5:" + result5); + console.info("AudioManagerLog: Perm6:" + result6); + console.info("AudioManagerLog: Perm4G:" + isGranted4); + console.info("AudioManagerLog: Perm5G:" + isGranted5); + console.info("AudioManagerLog: Perm6G:" + isGranted6); + console.info("AudioManagerLog: Perm7:" + result7); + console.info("AudioManagerLog: Perm8:" + result8); + console.info("AudioManagerLog: Perm7G:" + isGranted7); + console.info("AudioManagerLog: Perm8G:" + isGranted8); done(); }); }); \ No newline at end of file