From 9197cf147a1c67d7df5ad226117f4567eb98c29c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=96=87=E8=BF=AA?= Date: Wed, 16 Mar 2022 16:37:20 +0800 Subject: [PATCH] delete api9 in release MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张文迪 --- api/@ohos.commonEvent.d.ts | 35 ----------------- api/@ohos.storageStatistics.d.ts | 16 -------- api/@ohos.volumeManager.d.ts | 65 -------------------------------- 3 files changed, 116 deletions(-) delete mode 100644 api/@ohos.volumeManager.d.ts diff --git a/api/@ohos.commonEvent.d.ts b/api/@ohos.commonEvent.d.ts index f6a59b218e..a017a91324 100644 --- a/api/@ohos.commonEvent.d.ts +++ b/api/@ohos.commonEvent.d.ts @@ -893,41 +893,6 @@ declare namespace commonEvent { */ COMMON_EVENT_DISK_EJECT = "usual.event.data.DISK_EJECT", - /** - * The external storage was removed. - * This is a protected common event that can only be sent by system. - * @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 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 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 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 9 - */ - COMMON_EVENT_VOLUME_EJECT = "usual.event.data.VOLUME_EJECT", - /** * The visible of account was updated. * This is a protected common event that can only be sent by system. diff --git a/api/@ohos.storageStatistics.d.ts b/api/@ohos.storageStatistics.d.ts index be578883e2..bba0bfd943 100644 --- a/api/@ohos.storageStatistics.d.ts +++ b/api/@ohos.storageStatistics.d.ts @@ -39,22 +39,6 @@ declare namespace storageStatistics { */ function getFreeSizeOfVolume(volumeUuid: string, callback: AsyncCallback): void; function getFreeSizeOfVolume(volumeUuid: string): Promise; - - /** - * Get the bundlestat - * - * @since 9 - * @systemapi - */ - - export interface BundleStats { - appSize: number; - cacheSize: number; - dataSize: number; -} - function getBundleStats(packageName: string, callback: AsyncCallback): void; - function getBundleStats(packageName: string): Promise; - } export default storageStatistics; diff --git a/api/@ohos.volumeManager.d.ts b/api/@ohos.volumeManager.d.ts deleted file mode 100644 index ec710a259d..0000000000 --- a/api/@ohos.volumeManager.d.ts +++ /dev/null @@ -1,65 +0,0 @@ -/* -* Copyright (C) 2021 Huawei Device Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import {AsyncCallback, Callback} from "./basic"; - -/** - * Provides volumemanager statistics APIs - * - * @since 9 - * @syscap SystemCapability.FileManagement.StorageService.Volume - * @systemapi - */ -declare namespace volumeManager { - -/** - * Get All Volumes - * - * @since 9 - * @systemapi - */ - export interface Volume { - id: string; - uuid: string; - description: string; - removeAble: boolean; - state: number; - path: string; -} -function getAllVolumes(callback: AsyncCallback>): void; -function getAllVolumes(): Promise>; - - - /** - * Mount - * - * @since 9 - * @systemapi - */ -function mount(volumeId: string, callback: AsyncCallback): void; -function mount(volumeId: string): Promise; - -/** - * UnMount - * - * @since 9 - * @systemapi - */ -function unmount(volumeId: string, callback: AsyncCallback): void; -function unmount(volumeId: string): Promise; - -} - -export default volumeManager; -- Gitee