From c86f82fc286eb187471b4a1faa9441a4792efcb9 Mon Sep 17 00:00:00 2001 From: wanghang Date: Wed, 23 Mar 2022 15:42:51 +0800 Subject: [PATCH] IssueNo:#I4Z7E1:Interface consistency Description:Interface consistency Sig:SIG_ApplicaitonFramework Feature or Bugfix:Feature Binary Source:No Signed-off-by: wanghang Change-Id: Ib8057008d313e0287b0c22eaefc17ae3e089f94c --- api/@ohos.bundle.d.ts | 9 +++++---- api/bundle/bundleInstaller.d.ts | 6 +++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/api/@ohos.bundle.d.ts b/api/@ohos.bundle.d.ts index 2bacf03f78..e56baa2565 100644 --- a/api/@ohos.bundle.d.ts +++ b/api/@ohos.bundle.d.ts @@ -381,6 +381,7 @@ declare namespace bundle { * @syscap SystemCapability.BundleManager.BundleFramework * @return Returns the IBundleInstaller interface. * @permission ohos.permission.INSTALL_BUNDLE + * @systemapi Hide this for inner system use */ function getBundleInstaller(callback: AsyncCallback): void; function getBundleInstaller(): Promise; @@ -436,15 +437,15 @@ declare namespace bundle { * * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @param bundlelFlag Indicates the flag used to specify information contained in the BundleInfo that will be + * @param bundleFlag Indicates the flag used to specify information contained in the BundleInfo that will be * returned. * @param userId Indicates the user id. * @return Returns a list of BundleInfo objects. * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED */ - function getAllBundleInfo(bundlelFlag: BundleFlag, userId: number, callback: AsyncCallback>) : void; - function getAllBundleInfo(bundlelFlag: BundleFlag, callback: AsyncCallback>) : void; - function getAllBundleInfo(bundlelFlag: BundleFlag, userId?: number) : Promise>; + function getAllBundleInfo(bundleFlag: BundleFlag, userId: number, callback: AsyncCallback>) : void; + function getAllBundleInfo(bundleFlag: BundleFlag, callback: AsyncCallback>) : void; + function getAllBundleInfo(bundleFlag: BundleFlag, userId?: number) : Promise>; /** * Obtains information about all installed applications of a specified user. diff --git a/api/bundle/bundleInstaller.d.ts b/api/bundle/bundleInstaller.d.ts index e70342173f..6717988243 100644 --- a/api/bundle/bundleInstaller.d.ts +++ b/api/bundle/bundleInstaller.d.ts @@ -21,7 +21,7 @@ import bundle from './../@ohos.bundle'; * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * + * @systemapi Hide this for inner system use */ export interface InstallParam { /** @@ -51,7 +51,7 @@ export interface InstallParam { * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * + * @systemapi Hide this for inner system use */ export interface InstallStatus { @@ -75,7 +75,7 @@ export interface InstallStatus { * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * + * @systemapi Hide this for inner system use */ export interface BundleInstaller { /** -- Gitee