From 3f95317db9b1e51b5971ab626580ba5039fc6552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=96=87=E8=BF=AA?= Date: Mon, 28 Feb 2022 10:11:02 +0800 Subject: [PATCH 1/2] change to api9 according to review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张文迪 --- api/@ohos.commonEvent.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/@ohos.commonEvent.d.ts b/api/@ohos.commonEvent.d.ts index e9b04424dc..fa76c35735 100644 --- a/api/@ohos.commonEvent.d.ts +++ b/api/@ohos.commonEvent.d.ts @@ -890,35 +890,35 @@ declare namespace commonEvent { /** * The external storage was removed. * This is a protected common event that can only be sent by system. - * @since 8 + * @since 9 */ COMMON_EVENT_VOLUME_REMOVED = "usual.event.data.VOLUME_REMOVED", /** * The external storage was unmounted. * This is a protected common event that can only be sent by system. - * @since 8 + * @since 9 */ COMMON_EVENT_VOLUME_UNMOUNTED = "usual.event.data.VOLUME_UNMOUNTED", /** * The external storage was mounted. * This is a protected common event that can only be sent by system. - * @since 8 + * @since 9 */ COMMON_EVENT_VOLUME_MOUNTED = "usual.event.data.VOLUME_MOUNTED", /** * The external storage was bad removal. * This is a protected common event that can only be sent by system. - * @since 8 + * @since 9 */ COMMON_EVENT_VOLUME_BAD_REMOVAL = "usual.event.data.VOLUME_BAD_REMOVAL", /** * The external storage was eject. * This is a protected common event that can only be sent by system. - * @since 8 + * @since 9 */ COMMON_EVENT_VOLUME_EJECT = "usual.event.data.VOLUME_EJECT", -- Gitee From 58ff4fce6026d6582297c6ba10096fce6d05c9c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=96=87=E8=BF=AA?= Date: Mon, 28 Feb 2022 15:17:58 +0800 Subject: [PATCH 2/2] change API arg and change to API9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张文迪 --- api/@ohos.storageStatistics.d.ts | 6 +++--- api/@ohos.volumeManager.d.ts | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/api/@ohos.storageStatistics.d.ts b/api/@ohos.storageStatistics.d.ts index 7fb9e06aed..e8fa8d8634 100644 --- a/api/@ohos.storageStatistics.d.ts +++ b/api/@ohos.storageStatistics.d.ts @@ -40,7 +40,7 @@ declare namespace storageStatistics { /** * Get the bundlestat * - * @since 8 + * @since 9 */ export interface BundleStats { @@ -48,8 +48,8 @@ declare namespace storageStatistics { cacheSize: number; dataSize: number; } - function getBundleStats(volumeUuid: string, packageName: string, callback: AsyncCallback): void; - function getBundleStats(volumeUuid: string, packageName: string): Promise; + function getBundleStats(packageName: string, callback: AsyncCallback): void; + function getBundleStats(packageName: string): Promise; } diff --git a/api/@ohos.volumeManager.d.ts b/api/@ohos.volumeManager.d.ts index 0aa1f21277..563201404b 100644 --- a/api/@ohos.volumeManager.d.ts +++ b/api/@ohos.volumeManager.d.ts @@ -18,7 +18,7 @@ import {AsyncCallback, Callback} from "./basic"; /** * Provides volumemanager statistics APIs * - * @since 8 + * @since 9 * @syscap SystemCapability.FileManagement.StorageService.Volume */ declare namespace volumeManager { @@ -26,10 +26,10 @@ declare namespace volumeManager { /** * Get All Volumes * - * @since 8 + * @since 9 */ export interface Volume { - id: number; + id: string; uuid: string; description: string; removeAble: boolean; @@ -43,7 +43,7 @@ function getAllVolumes(): Promise>; /** * Mount * - * @since 8 + * @since 9 */ function mount(volumeId: string, callback: AsyncCallback): void; function mount(volumeId: string): Promise; @@ -51,7 +51,7 @@ function mount(volumeId: string): Promise; /** * UnMount * - * @since 8 + * @since 9 */ function unmount(volumeId: string, callback: AsyncCallback): void; function unmount(volumeId: string): Promise; -- Gitee