未验证 提交 d69bee53 编写于 作者: O openharmony_ci 提交者: Gitee

!8079 update xts for voice volume can not mute

Merge pull request !8079 from AOL/cherry-pick-1679122913
......@@ -3067,7 +3067,7 @@ export default function audioFramework() {
await audioManager.mute(audio.AudioVolumeType.VOICE_CALL, true);
let value = await audioManager.getVolume(audio.AudioVolumeType.VOICE_CALL)
console.info("AudioFrameworkTest: value is " + value);
if (value == 0) {
if (value == highVol) {
expect(true).assertTrue();
} else {
expect(false).assertTrue();
......@@ -3115,7 +3115,7 @@ export default function audioFramework() {
console.error(`Failed to obtain the volume. ${err.message}`);
expect(false).assertTrue();
done();
} else if (value == 0) {
} else if (value == highVol) {
try {
await audioManager.setVolume(audio.AudioVolumeType.VOICE_CALL, lowVol);
} catch (err) {
......@@ -3163,7 +3163,7 @@ export default function audioFramework() {
console.log(`${TagFrmwk}: Set Stream Mute: VOICE_ASSISTANT: Promise: TRUE`);
let value = await audioManager.getVolume(audio.AudioVolumeType.VOICE_ASSISTANT);
console.info("AudioFrameworkTest: value is " + value);
if (value == 0) {
if (value == highVol) {
expect(true).assertTrue();
} else {
expect(false).assertTrue();
......@@ -3207,7 +3207,7 @@ export default function audioFramework() {
console.log(`${TagFrmwk}: Set Stream Mute: VOICE_ASSISTANT: Callback : SetVolume`);
try {
let value = await audioManager.getVolume(audio.AudioVolumeType.VOICE_ASSISTANT);
if (value == 0) {
if (value == highVol) {
console.info("AudioFrameworkTest: value is " + value);
expect(true).assertTrue();
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册