From 42f33dc129ca3fa4faf12bb3b9dbc2e496c82707 Mon Sep 17 00:00:00 2001 From: wangxuanxuan Date: Thu, 19 Jan 2023 14:34:20 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E4=B8=8A=E6=8A=A5=E8=AE=A4=E8=AF=81=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangxuanxuan --- ...hos.distributedHardware.deviceManager.d.ts | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/api/@ohos.distributedHardware.deviceManager.d.ts b/api/@ohos.distributedHardware.deviceManager.d.ts index dae24964f1..393e1c4abb 100644 --- a/api/@ohos.distributedHardware.deviceManager.d.ts +++ b/api/@ohos.distributedHardware.deviceManager.d.ts @@ -56,6 +56,43 @@ declare namespace deviceManager { * The distance of discovered device, in centimeter(cm). */ range: number; + + /** + * Indicates the device's trusted type + * @syscap SystemCapability.DistributedHardware.DeviceManager + * @since 10 + */ + trustedType: TrustedType; + } + + /** + * Device trusted type definitions + * @enum {number} + * @syscap SystemCapability.DistributedHardware.DeviceManager + * @systemapi this method can be used only by system applications. + * @since 10 + */ + enum TrustedType { + /** + * Indicates identical account trusted device type. + * @syscap SystemCapability.DistributedHardware.DeviceManager + * @since 10 + */ + IDENTICAL_ACCOUNT = 0, + + /** + * Indicates peer to peer account trusted device type. + * @syscap SystemCapability.DistributedHardware.DeviceManager + * @since 10 + */ + PEER_TO_PEER = 1, + + /** + * Indicates across account trusted device type. + * @syscap SystemCapability.DistributedHardware.DeviceManager + * @since 10 + */ + ACROSS_ACCOUNT = 2 } /** -- Gitee From 0bf98b7414fcd230cc3e465296fe65702e9fff31 Mon Sep 17 00:00:00 2001 From: wangxuanxuan Date: Sun, 29 Jan 2023 09:44:18 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangxuanxuan --- api/@ohos.distributedHardware.deviceManager.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.distributedHardware.deviceManager.d.ts b/api/@ohos.distributedHardware.deviceManager.d.ts index 393e1c4abb..2a1b80d374 100644 --- a/api/@ohos.distributedHardware.deviceManager.d.ts +++ b/api/@ohos.distributedHardware.deviceManager.d.ts @@ -81,7 +81,7 @@ declare namespace deviceManager { IDENTICAL_ACCOUNT = 0, /** - * Indicates peer to peer account trusted device type. + * Indicates peer to peer trusted device type without account. * @syscap SystemCapability.DistributedHardware.DeviceManager * @since 10 */ -- Gitee From 2f1e4889a3080d048eb06345696d460c2618a91b Mon Sep 17 00:00:00 2001 From: wangxuanxuan Date: Mon, 30 Jan 2023 09:30:55 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9E=9A=E4=B8=BE?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E5=92=8C=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangxuanxuan --- ...@ohos.distributedHardware.deviceManager.d.ts | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/api/@ohos.distributedHardware.deviceManager.d.ts b/api/@ohos.distributedHardware.deviceManager.d.ts index 2a1b80d374..621adb62db 100644 --- a/api/@ohos.distributedHardware.deviceManager.d.ts +++ b/api/@ohos.distributedHardware.deviceManager.d.ts @@ -62,7 +62,7 @@ declare namespace deviceManager { * @syscap SystemCapability.DistributedHardware.DeviceManager * @since 10 */ - trustedType: TrustedType; + authForm: AuthForm; } /** @@ -72,20 +72,27 @@ declare namespace deviceManager { * @systemapi this method can be used only by system applications. * @since 10 */ - enum TrustedType { + enum AuthForm { /** - * Indicates identical account trusted device type. + * Indicates invalid trusted device type. * @syscap SystemCapability.DistributedHardware.DeviceManager * @since 10 */ - IDENTICAL_ACCOUNT = 0, + INVALID_TYPE = -1, /** * Indicates peer to peer trusted device type without account. * @syscap SystemCapability.DistributedHardware.DeviceManager * @since 10 */ - PEER_TO_PEER = 1, + PEER_TO_PEER = 0, + + /** + * Indicates identical account trusted device type. + * @syscap SystemCapability.DistributedHardware.DeviceManager + * @since 10 + */ + IDENTICAL_ACCOUNT = 1, /** * Indicates across account trusted device type. -- Gitee