From f37e0284e7b02ac11aca91190331e9091be5dbd5 Mon Sep 17 00:00:00 2001 From: wanghang Date: Wed, 23 Mar 2022 15:52:43 +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: Ie52ce56034b5d9f3f20c6d39f31360c2164b70ad --- 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 ea605c4560..084d89151b 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