From bdf8750b5a6e3f2fb0dff4c577ecd77832a4ba9e Mon Sep 17 00:00:00 2001 From: zhanganxiang Date: Tue, 1 Apr 2025 19:50:29 +0800 Subject: [PATCH 01/12] =?UTF-8?q?=E5=8D=95=E5=BA=94=E7=94=A8=E6=8A=95?= =?UTF-8?q?=E7=A5=A8=E9=9F=B3=E9=87=8F=E8=B0=83=E8=8A=82=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhanganxiang --- api/@ohos.multimedia.audio.d.ts | 44 +++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/api/@ohos.multimedia.audio.d.ts b/api/@ohos.multimedia.audio.d.ts index 62ec8b3b16..efe03c8d07 100644 --- a/api/@ohos.multimedia.audio.d.ts +++ b/api/@ohos.multimedia.audio.d.ts @@ -4813,22 +4813,24 @@ declare namespace audio { * @param { AudioVolumeType } volumeType - Audio stream type. * @param { number } volume - Volume to set. The value range can be obtained by calling getMinVolume and getMaxVolume. * @param { AsyncCallback } callback - Callback used to return the result. + * @param { number } callingUid - Uid of the stream owner. * @syscap SystemCapability.Multimedia.Audio.Volume * @systemapi * @since 9 */ - setVolume(volumeType: AudioVolumeType, volume: number, callback: AsyncCallback): void; + setVolume(volumeType: AudioVolumeType, volume: number, callback: AsyncCallback, callingUid?: number): void; /** * Sets the volume for a stream. This method uses a promise to return the result. * @permission ohos.permission.ACCESS_NOTIFICATION_POLICY * @param { AudioVolumeType } volumeType - Audio stream type. * @param { number } volume - Volume to set. The value range can be obtained by calling getMinVolume and getMaxVolume. * @returns { Promise } Promise used to return the result. + * @param { number } callingUid - Uid of the stream owner. * @syscap SystemCapability.Multimedia.Audio.Volume * @systemapi * @since 9 */ - setVolume(volumeType: AudioVolumeType, volume: number): Promise; + setVolume(volumeType: AudioVolumeType, volume: number, callingUid?: number): Promise; /** * Sets the volume for a stream. This method uses a promise to return the result. @@ -4918,6 +4920,44 @@ declare namespace audio { */ getVolumeSync(volumeType: AudioVolumeType): number; + /** + * Obtains the volume of a stream. This method uses an asynchronous callback to return the query result. + * @permission ohos.permission.ACCESS_NOTIFICATION_POLICY + * @param { AudioVolumeType } volumeType - Audio stream type. + * @param { number } callingUid - Uid of the stream owner. + * @param { AsyncCallback } callback - Callback used to return the volume. + * @syscap SystemCapability.Multimedia.Audio.Volume + * @systemapi + * @since 20 + */ + getVolumeForUid(volumeType: AudioVolumeType, callingUid: number, callback: AsyncCallback): void; + /** + * Obtains the volume of a stream. This method uses a promise to return the query result. + * @permission ohos.permission.ACCESS_NOTIFICATION_POLICY + * @param { AudioVolumeType } volumeType - Audio stream type. + * @param { number } callingUid - Uid of the stream owner. + * @returns { Promise } Promise used to return the volume. + * @syscap SystemCapability.Multimedia.Audio.Volume + * @systemapi + * @since 20 + */ + getVolumeForUid(volumeType: AudioVolumeType, callingUid: number): Promise; + /** + * Obtains the volume of a stream. + * @permission ohos.permission.ACCESS_NOTIFICATION_POLICY + * @param { AudioVolumeType } volumeType - Audio stream type. + * @param { number } callingUid - Uid of the stream owner. + * @returns { number } Current system volume level. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + * 1.Mandatory parameters are left unspecified; + * 2.Incorrect parameter types. + * @throws { BusinessError } 6800101 - Parameter verification failed. + * @syscap SystemCapability.Multimedia.Audio.Volume + * @systemapi + * @since 20 + */ + getVolumeForUid(volumeType: AudioVolumeType, callingUid: number): number; + /** * Obtains the minimum volume allowed for a stream. This method uses an asynchronous callback to return the query result. * @param { AudioVolumeType } volumeType - Audio stream type. -- Gitee From 452f81a3e25ce4790cad2c635966505923ca5d81 Mon Sep 17 00:00:00 2001 From: zhanganxiang Date: Wed, 2 Apr 2025 09:36:07 +0800 Subject: [PATCH 02/12] =?UTF-8?q?=E5=8D=95=E5=BA=94=E7=94=A8=E6=8A=95?= =?UTF-8?q?=E7=A5=A8=E9=9F=B3=E9=87=8F=E8=B0=83=E8=8A=82=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhanganxiang --- api/@ohos.multimedia.audio.d.ts | 35 +++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/api/@ohos.multimedia.audio.d.ts b/api/@ohos.multimedia.audio.d.ts index efe03c8d07..c6220d01a0 100644 --- a/api/@ohos.multimedia.audio.d.ts +++ b/api/@ohos.multimedia.audio.d.ts @@ -4813,11 +4813,21 @@ declare namespace audio { * @param { AudioVolumeType } volumeType - Audio stream type. * @param { number } volume - Volume to set. The value range can be obtained by calling getMinVolume and getMaxVolume. * @param { AsyncCallback } callback - Callback used to return the result. - * @param { number } callingUid - Uid of the stream owner. * @syscap SystemCapability.Multimedia.Audio.Volume * @systemapi * @since 9 */ + /** + * Sets the volume for a stream. This method uses an asynchronous callback to return the result. + * @permission ohos.permission.ACCESS_NOTIFICATION_POLICY + * @param { AudioVolumeType } volumeType - Audio stream type. + * @param { number } volume - Volume to set. The value range can be obtained by calling getMinVolume and getMaxVolume. + * @param { AsyncCallback } callback - Callback used to return the result. + * @param { number } callingUid - Uid of the stream owner. + * @syscap SystemCapability.Multimedia.Audio.Volume + * @systemapi + * @since 20 + */ setVolume(volumeType: AudioVolumeType, volume: number, callback: AsyncCallback, callingUid?: number): void; /** * Sets the volume for a stream. This method uses a promise to return the result. @@ -4825,11 +4835,21 @@ declare namespace audio { * @param { AudioVolumeType } volumeType - Audio stream type. * @param { number } volume - Volume to set. The value range can be obtained by calling getMinVolume and getMaxVolume. * @returns { Promise } Promise used to return the result. - * @param { number } callingUid - Uid of the stream owner. * @syscap SystemCapability.Multimedia.Audio.Volume * @systemapi * @since 9 */ + /** + * Sets the volume for a stream. This method uses a promise to return the result. + * @permission ohos.permission.ACCESS_NOTIFICATION_POLICY + * @param { AudioVolumeType } volumeType - Audio stream type. + * @param { number } volume - Volume to set. The value range can be obtained by calling getMinVolume and getMaxVolume. + * @returns { Promise } Promise used to return the result. + * @param { number } callingUid - Uid of the stream owner. + * @syscap SystemCapability.Multimedia.Audio.Volume + * @systemapi + * @since 20 + */ setVolume(volumeType: AudioVolumeType, volume: number, callingUid?: number): Promise; /** @@ -4920,17 +4940,6 @@ declare namespace audio { */ getVolumeSync(volumeType: AudioVolumeType): number; - /** - * Obtains the volume of a stream. This method uses an asynchronous callback to return the query result. - * @permission ohos.permission.ACCESS_NOTIFICATION_POLICY - * @param { AudioVolumeType } volumeType - Audio stream type. - * @param { number } callingUid - Uid of the stream owner. - * @param { AsyncCallback } callback - Callback used to return the volume. - * @syscap SystemCapability.Multimedia.Audio.Volume - * @systemapi - * @since 20 - */ - getVolumeForUid(volumeType: AudioVolumeType, callingUid: number, callback: AsyncCallback): void; /** * Obtains the volume of a stream. This method uses a promise to return the query result. * @permission ohos.permission.ACCESS_NOTIFICATION_POLICY -- Gitee From d2193ae626e25b0a96d79e9cd823bead2be92159 Mon Sep 17 00:00:00 2001 From: zhanganxiang Date: Wed, 2 Apr 2025 09:40:51 +0800 Subject: [PATCH 03/12] =?UTF-8?q?=E5=8D=95=E5=BA=94=E7=94=A8=E6=8A=95?= =?UTF-8?q?=E7=A5=A8=E9=9F=B3=E9=87=8F=E8=B0=83=E8=8A=82=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhanganxiang --- api/@ohos.multimedia.audio.d.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/api/@ohos.multimedia.audio.d.ts b/api/@ohos.multimedia.audio.d.ts index c6220d01a0..f6968e49f6 100644 --- a/api/@ohos.multimedia.audio.d.ts +++ b/api/@ohos.multimedia.audio.d.ts @@ -4817,18 +4817,7 @@ declare namespace audio { * @systemapi * @since 9 */ - /** - * Sets the volume for a stream. This method uses an asynchronous callback to return the result. - * @permission ohos.permission.ACCESS_NOTIFICATION_POLICY - * @param { AudioVolumeType } volumeType - Audio stream type. - * @param { number } volume - Volume to set. The value range can be obtained by calling getMinVolume and getMaxVolume. - * @param { AsyncCallback } callback - Callback used to return the result. - * @param { number } callingUid - Uid of the stream owner. - * @syscap SystemCapability.Multimedia.Audio.Volume - * @systemapi - * @since 20 - */ - setVolume(volumeType: AudioVolumeType, volume: number, callback: AsyncCallback, callingUid?: number): void; + setVolume(volumeType: AudioVolumeType, volume: number, callback: AsyncCallback): void; /** * Sets the volume for a stream. This method uses a promise to return the result. * @permission ohos.permission.ACCESS_NOTIFICATION_POLICY -- Gitee From 44d50cd84d04e6c0c9dde228990f469842c7360c Mon Sep 17 00:00:00 2001 From: zhanganxiang Date: Wed, 2 Apr 2025 09:56:50 +0800 Subject: [PATCH 04/12] =?UTF-8?q?=E5=8D=95=E5=BA=94=E7=94=A8=E6=8A=95?= =?UTF-8?q?=E7=A5=A8=E9=9F=B3=E9=87=8F=E8=B0=83=E8=8A=82=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhanganxiang --- api/@ohos.multimedia.audio.d.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/api/@ohos.multimedia.audio.d.ts b/api/@ohos.multimedia.audio.d.ts index f6968e49f6..ea178f4e71 100644 --- a/api/@ohos.multimedia.audio.d.ts +++ b/api/@ohos.multimedia.audio.d.ts @@ -4929,26 +4929,12 @@ declare namespace audio { */ getVolumeSync(volumeType: AudioVolumeType): number; - /** - * Obtains the volume of a stream. This method uses a promise to return the query result. - * @permission ohos.permission.ACCESS_NOTIFICATION_POLICY - * @param { AudioVolumeType } volumeType - Audio stream type. - * @param { number } callingUid - Uid of the stream owner. - * @returns { Promise } Promise used to return the volume. - * @syscap SystemCapability.Multimedia.Audio.Volume - * @systemapi - * @since 20 - */ - getVolumeForUid(volumeType: AudioVolumeType, callingUid: number): Promise; /** * Obtains the volume of a stream. * @permission ohos.permission.ACCESS_NOTIFICATION_POLICY * @param { AudioVolumeType } volumeType - Audio stream type. * @param { number } callingUid - Uid of the stream owner. * @returns { number } Current system volume level. - * @throws { BusinessError } 401 - Parameter error. Possible causes: - * 1.Mandatory parameters are left unspecified; - * 2.Incorrect parameter types. * @throws { BusinessError } 6800101 - Parameter verification failed. * @syscap SystemCapability.Multimedia.Audio.Volume * @systemapi -- Gitee From 17f72b2fa7f9c3f8281a226250a906b4472735d9 Mon Sep 17 00:00:00 2001 From: zhanganxiang Date: Mon, 7 Apr 2025 14:42:42 +0800 Subject: [PATCH 05/12] =?UTF-8?q?=E5=8D=95=E5=BA=94=E7=94=A8=E6=8A=95?= =?UTF-8?q?=E7=A5=A8=E9=9F=B3=E9=87=8F=E8=B0=83=E8=8A=82=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhanganxiang --- api/@ohos.multimedia.audio.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/api/@ohos.multimedia.audio.d.ts b/api/@ohos.multimedia.audio.d.ts index ea178f4e71..896b5ee374 100644 --- a/api/@ohos.multimedia.audio.d.ts +++ b/api/@ohos.multimedia.audio.d.ts @@ -4935,6 +4935,7 @@ declare namespace audio { * @param { AudioVolumeType } volumeType - Audio stream type. * @param { number } callingUid - Uid of the stream owner. * @returns { number } Current system volume level. + * @throws { BusinessError } 202 - Not system App. * @throws { BusinessError } 6800101 - Parameter verification failed. * @syscap SystemCapability.Multimedia.Audio.Volume * @systemapi -- Gitee From 39bc502fd47da885cebc53ea5aa07edb0cbe0dfe Mon Sep 17 00:00:00 2001 From: zhanganxiang Date: Mon, 7 Apr 2025 14:49:25 +0800 Subject: [PATCH 06/12] =?UTF-8?q?=E5=8D=95=E5=BA=94=E7=94=A8=E6=8A=95?= =?UTF-8?q?=E7=A5=A8=E9=9F=B3=E9=87=8F=E8=B0=83=E8=8A=82=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhanganxiang --- api/@ohos.multimedia.audio.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/@ohos.multimedia.audio.d.ts b/api/@ohos.multimedia.audio.d.ts index 896b5ee374..3ed1257c9f 100644 --- a/api/@ohos.multimedia.audio.d.ts +++ b/api/@ohos.multimedia.audio.d.ts @@ -4833,8 +4833,9 @@ declare namespace audio { * @permission ohos.permission.ACCESS_NOTIFICATION_POLICY * @param { AudioVolumeType } volumeType - Audio stream type. * @param { number } volume - Volume to set. The value range can be obtained by calling getMinVolume and getMaxVolume. - * @returns { Promise } Promise used to return the result. * @param { number } callingUid - Uid of the stream owner. + * @returns { Promise } Promise used to return the result. + * @throws { BusinessError } 202 - Not system App. * @syscap SystemCapability.Multimedia.Audio.Volume * @systemapi * @since 20 -- Gitee From 0abe4bef8bb4de160007dedde39c17c68c37835f Mon Sep 17 00:00:00 2001 From: zhanganxiang Date: Mon, 7 Apr 2025 15:27:45 +0800 Subject: [PATCH 07/12] =?UTF-8?q?=E5=8D=95=E5=BA=94=E7=94=A8=E6=8A=95?= =?UTF-8?q?=E7=A5=A8=E9=9F=B3=E9=87=8F=E8=B0=83=E8=8A=82=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhanganxiang --- api/@ohos.multimedia.audio.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/@ohos.multimedia.audio.d.ts b/api/@ohos.multimedia.audio.d.ts index 3ed1257c9f..4091dbfc90 100644 --- a/api/@ohos.multimedia.audio.d.ts +++ b/api/@ohos.multimedia.audio.d.ts @@ -4828,6 +4828,8 @@ declare namespace audio { * @systemapi * @since 9 */ + setVolume(volumeType: AudioVolumeType, volume: number): Promise; + /** * Sets the volume for a stream. This method uses a promise to return the result. * @permission ohos.permission.ACCESS_NOTIFICATION_POLICY @@ -4840,7 +4842,7 @@ declare namespace audio { * @systemapi * @since 20 */ - setVolume(volumeType: AudioVolumeType, volume: number, callingUid?: number): Promise; + setVolumeForUid(volumeType: AudioVolumeType, volume: number, callingUid: number): Promise; /** * Sets the volume for a stream. This method uses a promise to return the result. -- Gitee From 4ca1d27a6f5262ac289910f85d1bcb6048980000 Mon Sep 17 00:00:00 2001 From: zhanganxiang Date: Mon, 7 Apr 2025 16:00:12 +0800 Subject: [PATCH 08/12] =?UTF-8?q?=E5=8D=95=E5=BA=94=E7=94=A8=E6=8A=95?= =?UTF-8?q?=E7=A5=A8=E9=9F=B3=E9=87=8F=E8=B0=83=E8=8A=82=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhanganxiang --- api/@ohos.multimedia.audio.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/@ohos.multimedia.audio.d.ts b/api/@ohos.multimedia.audio.d.ts index 4091dbfc90..0fcb0ec930 100644 --- a/api/@ohos.multimedia.audio.d.ts +++ b/api/@ohos.multimedia.audio.d.ts @@ -4837,6 +4837,7 @@ declare namespace audio { * @param { number } volume - Volume to set. The value range can be obtained by calling getMinVolume and getMaxVolume. * @param { number } callingUid - Uid of the stream owner. * @returns { Promise } Promise used to return the result. + * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not system App. * @syscap SystemCapability.Multimedia.Audio.Volume * @systemapi @@ -4938,6 +4939,7 @@ declare namespace audio { * @param { AudioVolumeType } volumeType - Audio stream type. * @param { number } callingUid - Uid of the stream owner. * @returns { number } Current system volume level. + * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not system App. * @throws { BusinessError } 6800101 - Parameter verification failed. * @syscap SystemCapability.Multimedia.Audio.Volume -- Gitee From 9e7bcc218e64dbf57df5c83ad81e6a90cb386be5 Mon Sep 17 00:00:00 2001 From: zhanganxiang Date: Tue, 8 Apr 2025 09:26:55 +0800 Subject: [PATCH 09/12] =?UTF-8?q?=E5=8D=95=E5=BA=94=E7=94=A8=E6=8A=95?= =?UTF-8?q?=E7=A5=A8=E9=9F=B3=E9=87=8F=E8=B0=83=E8=8A=82=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhanganxiang --- api/@ohos.multimedia.audio.d.ts | 69 +++++++++++++++++++-------------- 1 file changed, 39 insertions(+), 30 deletions(-) diff --git a/api/@ohos.multimedia.audio.d.ts b/api/@ohos.multimedia.audio.d.ts index 0fcb0ec930..805ec4569b 100644 --- a/api/@ohos.multimedia.audio.d.ts +++ b/api/@ohos.multimedia.audio.d.ts @@ -4688,6 +4688,45 @@ declare namespace audio { */ setAppVolumePercentage(volume: number): Promise; + /** + * Sets the volume for a stream. This method uses a promise to return the result. + * @permission ohos.permission.ACCESS_NOTIFICATION_POLICY + * @param { AudioVolumeType } volumeType - Audio stream type. + * @param { number } volume - Volume to set. The value range can be obtained by calling getMinVolume and getMaxVolume. + * @param { number } callingUid - Uid of the stream owner. + * @returns { Promise } Promise used to return the result. + * @throws { BusinessError } 201 - Permission denied. + * @throws { BusinessError } 202 - Not system App. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + * 1.Mandatory parameters are left unspecified. + * 2.Incorrect parameter types. + * @throws { BusinessError } 6800101 - Parameter verification failed. + * @throws { BusinessError } 6800301 - Crash or blocking occurs in system process. + * @syscap SystemCapability.Multimedia.Audio.Volume + * @systemapi + * @since 20 + */ + setSystemVolumeFromUid(volumeType: AudioVolumeType, volume: number, callingUid: number): Promise; + + /** + * Obtains the volume of a stream. + * @permission ohos.permission.ACCESS_NOTIFICATION_POLICY + * @param { AudioVolumeType } volumeType - Audio stream type. + * @param { number } callingUid - Uid of the stream owner. + * @returns { number } Current system volume level. + * @throws { BusinessError } 201 - Permission denied. + * @throws { BusinessError } 202 - Not system App. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + * 1.Mandatory parameters are left unspecified. + * 2.Incorrect parameter types. + * @throws { BusinessError } 6800101 - Parameter verification failed. + * @throws { BusinessError } 6800301 - Crash or blocking occurs in system process. + * @syscap SystemCapability.Multimedia.Audio.Volume + * @systemapi + * @since 20 + */ + getSystemVolumeFromUid(volumeType: AudioVolumeType, callingUid: number): number; + /** * Listens for system volume change events. This method uses a callback to get volume change events. * @param { 'volumeChange' } type - Type of the event to listen for. Only the volumeChange event is supported. @@ -4830,21 +4869,6 @@ declare namespace audio { */ setVolume(volumeType: AudioVolumeType, volume: number): Promise; - /** - * Sets the volume for a stream. This method uses a promise to return the result. - * @permission ohos.permission.ACCESS_NOTIFICATION_POLICY - * @param { AudioVolumeType } volumeType - Audio stream type. - * @param { number } volume - Volume to set. The value range can be obtained by calling getMinVolume and getMaxVolume. - * @param { number } callingUid - Uid of the stream owner. - * @returns { Promise } Promise used to return the result. - * @throws { BusinessError } 201 - Permission denied. - * @throws { BusinessError } 202 - Not system App. - * @syscap SystemCapability.Multimedia.Audio.Volume - * @systemapi - * @since 20 - */ - setVolumeForUid(volumeType: AudioVolumeType, volume: number, callingUid: number): Promise; - /** * Sets the volume for a stream. This method uses a promise to return the result. * @permission ohos.permission.ACCESS_NOTIFICATION_POLICY @@ -4933,21 +4957,6 @@ declare namespace audio { */ getVolumeSync(volumeType: AudioVolumeType): number; - /** - * Obtains the volume of a stream. - * @permission ohos.permission.ACCESS_NOTIFICATION_POLICY - * @param { AudioVolumeType } volumeType - Audio stream type. - * @param { number } callingUid - Uid of the stream owner. - * @returns { number } Current system volume level. - * @throws { BusinessError } 201 - Permission denied. - * @throws { BusinessError } 202 - Not system App. - * @throws { BusinessError } 6800101 - Parameter verification failed. - * @syscap SystemCapability.Multimedia.Audio.Volume - * @systemapi - * @since 20 - */ - getVolumeForUid(volumeType: AudioVolumeType, callingUid: number): number; - /** * Obtains the minimum volume allowed for a stream. This method uses an asynchronous callback to return the query result. * @param { AudioVolumeType } volumeType - Audio stream type. -- Gitee From 6db4af16ad68f5db8ce7078ddaf523933135adc9 Mon Sep 17 00:00:00 2001 From: zhanganxiang Date: Tue, 8 Apr 2025 12:01:12 +0800 Subject: [PATCH 10/12] =?UTF-8?q?=E5=8D=95=E5=BA=94=E7=94=A8=E6=8A=95?= =?UTF-8?q?=E7=A5=A8=E9=9F=B3=E9=87=8F=E8=B0=83=E8=8A=82=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhanganxiang --- api/@ohos.multimedia.audio.d.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/api/@ohos.multimedia.audio.d.ts b/api/@ohos.multimedia.audio.d.ts index 805ec4569b..43d6a65dc8 100644 --- a/api/@ohos.multimedia.audio.d.ts +++ b/api/@ohos.multimedia.audio.d.ts @@ -4697,9 +4697,6 @@ declare namespace audio { * @returns { Promise } Promise used to return the result. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not system App. - * @throws { BusinessError } 401 - Parameter error. Possible causes: - * 1.Mandatory parameters are left unspecified. - * 2.Incorrect parameter types. * @throws { BusinessError } 6800101 - Parameter verification failed. * @throws { BusinessError } 6800301 - Crash or blocking occurs in system process. * @syscap SystemCapability.Multimedia.Audio.Volume @@ -4716,9 +4713,6 @@ declare namespace audio { * @returns { number } Current system volume level. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not system App. - * @throws { BusinessError } 401 - Parameter error. Possible causes: - * 1.Mandatory parameters are left unspecified. - * 2.Incorrect parameter types. * @throws { BusinessError } 6800101 - Parameter verification failed. * @throws { BusinessError } 6800301 - Crash or blocking occurs in system process. * @syscap SystemCapability.Multimedia.Audio.Volume -- Gitee From cd805336af112fa33e5943c5097d30d74f932d51 Mon Sep 17 00:00:00 2001 From: zhanganxiang Date: Tue, 8 Apr 2025 16:07:32 +0800 Subject: [PATCH 11/12] =?UTF-8?q?=E5=8D=95=E5=BA=94=E7=94=A8=E6=8A=95?= =?UTF-8?q?=E7=A5=A8=E9=9F=B3=E9=87=8F=E8=B0=83=E8=8A=82=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhanganxiang --- api/@ohos.multimedia.audio.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@ohos.multimedia.audio.d.ts b/api/@ohos.multimedia.audio.d.ts index 43d6a65dc8..2572795cc5 100644 --- a/api/@ohos.multimedia.audio.d.ts +++ b/api/@ohos.multimedia.audio.d.ts @@ -4703,7 +4703,7 @@ declare namespace audio { * @systemapi * @since 20 */ - setSystemVolumeFromUid(volumeType: AudioVolumeType, volume: number, callingUid: number): Promise; + setSystemVolumeForUid(volumeType: AudioVolumeType, volume: number, callingUid: number): Promise; /** * Obtains the volume of a stream. @@ -4719,7 +4719,7 @@ declare namespace audio { * @systemapi * @since 20 */ - getSystemVolumeFromUid(volumeType: AudioVolumeType, callingUid: number): number; + getSystemVolumeForUid(volumeType: AudioVolumeType, callingUid: number): number; /** * Listens for system volume change events. This method uses a callback to get volume change events. -- Gitee From bf71f3a3ff5e9005b8af8af97ea3bba80aa9ac32 Mon Sep 17 00:00:00 2001 From: zhanganxiang Date: Tue, 8 Apr 2025 17:21:42 +0800 Subject: [PATCH 12/12] =?UTF-8?q?=E5=8D=95=E5=BA=94=E7=94=A8=E6=8A=95?= =?UTF-8?q?=E7=A5=A8=E9=9F=B3=E9=87=8F=E8=B0=83=E8=8A=82=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhanganxiang --- api/@ohos.multimedia.audio.d.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/api/@ohos.multimedia.audio.d.ts b/api/@ohos.multimedia.audio.d.ts index 2572795cc5..9db2d58bae 100644 --- a/api/@ohos.multimedia.audio.d.ts +++ b/api/@ohos.multimedia.audio.d.ts @@ -4707,7 +4707,6 @@ declare namespace audio { /** * Obtains the volume of a stream. - * @permission ohos.permission.ACCESS_NOTIFICATION_POLICY * @param { AudioVolumeType } volumeType - Audio stream type. * @param { number } callingUid - Uid of the stream owner. * @returns { number } Current system volume level. -- Gitee