From 91c4c78d6de5bdabd122b2c7854486b3d2fc2317 Mon Sep 17 00:00:00 2001 From: xuyong Date: Tue, 29 Nov 2022 15:01:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E5=8D=95=E8=AF=8D=E6=8B=BC=E5=86=99=E4=BB=A5=E5=8F=8A=E9=A6=96?= =?UTF-8?q?=E5=AD=97=E6=AF=8D=E5=A4=A7=E5=86=99=E8=A7=84=E8=8C=83=E6=95=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xuyong --- api/@ohos.hiSysEvent.d.ts | 32 ++++++++++++++++---------------- api/@ohos.hiTraceChain.d.ts | 34 +++++++++++++++++----------------- 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/api/@ohos.hiSysEvent.d.ts b/api/@ohos.hiSysEvent.d.ts index cbda18a429..9563232447 100644 --- a/api/@ohos.hiSysEvent.d.ts +++ b/api/@ohos.hiSysEvent.d.ts @@ -135,7 +135,7 @@ declare namespace hiSysEvent { */ enum RuleType { /** - * whole word match + * Whole word match * * @syscap SystemCapability.HiviewDFX.HiSysEvent * @systemapi hide for inner use @@ -144,7 +144,7 @@ declare namespace hiSysEvent { WHOLE_WORD = 1, /** - * prefix match + * Prefix match * * @syscap SystemCapability.HiviewDFX.HiSysEvent * @systemapi hide for inner use @@ -153,7 +153,7 @@ declare namespace hiSysEvent { PREFIX = 2, /** - * regular match + * Regular match * * @syscap SystemCapability.HiviewDFX.HiSysEvent * @systemapi hide for inner use @@ -186,7 +186,7 @@ declare namespace hiSysEvent { tag: string; /** - * the rule of match system event + * The rule of match system event */ ruleType: RuleType; } @@ -200,12 +200,12 @@ declare namespace hiSysEvent { */ interface Watcher { /** - * rule of filter system event + * Rule of filter system event */ rules: WatchRule[]; /** - * receive system event. + * Receive system event. * * @syscap SystemCapability.HiviewDFX.HiSysEvent * @systemapi hide for inner use @@ -216,7 +216,7 @@ declare namespace hiSysEvent { onEvent: (info: SysEventInfo) => void; /** - * hisysevent service shutdown. + * Hisysevent service shutdown. * * @syscap SystemCapability.HiviewDFX.HiSysEvent * @systemapi hide for inner use @@ -237,17 +237,17 @@ declare namespace hiSysEvent { */ interface QueryArg { /** - * begin time + * Begin time */ beginTime: number; /** - * end time + * End time */ endTime: number; /** - * max number of receive system event + * Max number of receive system event */ maxEvents: number; } @@ -266,7 +266,7 @@ declare namespace hiSysEvent { domain: string; /** - * lists of event name + * List of event name */ names: string[]; } @@ -280,7 +280,7 @@ declare namespace hiSysEvent { */ interface Querier { /** - * handle query result, the query result will be send in severval times. + * Handle query result, the query result will be send in several times. * * @syscap SystemCapability.HiviewDFX.HiSysEvent * @systemapi hide for inner use @@ -291,7 +291,7 @@ declare namespace hiSysEvent { onQuery: (infos: SysEventInfo[]) => void; /** - * notify Querier execute query has finished. + * Notify querier execute query has finished. * * @syscap SystemCapability.HiviewDFX.HiSysEvent * @systemapi hide for inner use @@ -304,7 +304,7 @@ declare namespace hiSysEvent { } /** - * add watcher to watch system event + * Add watcher to watch system event * * @syscap SystemCapability.HiviewDFX.HiSysEvent * @systemapi hide for inner use @@ -320,7 +320,7 @@ declare namespace hiSysEvent { function addWatcher(watcher: Watcher): void; /** - * remove watcher + * Remove watcher * * @syscap SystemCapability.HiviewDFX.HiSysEvent * @systemapi hide for inner use @@ -335,7 +335,7 @@ declare namespace hiSysEvent { function removeWatcher(watcher: Watcher): void; /** - * query system event + * Query system event * * @syscap SystemCapability.HiviewDFX.HiSysEvent * @systemapi hide for inner use diff --git a/api/@ohos.hiTraceChain.d.ts b/api/@ohos.hiTraceChain.d.ts index 4c0150cb7d..fc084856f9 100644 --- a/api/@ohos.hiTraceChain.d.ts +++ b/api/@ohos.hiTraceChain.d.ts @@ -31,42 +31,42 @@ declare namespace hiTraceChain { */ enum HiTraceFlag { /** - * default value + * Default value */ DEFAULT = 0, /** - * trace sync and async call. default: trace sync call only. + * Trace sync and async call. default: trace sync call only. */ INCLUDE_ASYNC = 1, /** - * do not create child span. default: create child span. + * Do not create child span. default: create child span. */ DONOT_CREATE_SPAN = 1 << 1, /** - * output tracepoint info in span. default: do not output tracepoint info. + * Output tracepoint info in span. default: do not output tracepoint info. */ TP_INFO = 1 << 2, /** - * do not output begin and end info. default: output begin and end info. + * Do not output begin and end info. default: output begin and end info. */ NO_BE_INFO = 1 << 3, /** - * do not add id to log. default: add id to log. + * Do not add id to log. default: add id to log. */ DISABLE_LOG = 1 << 4, /** - * the trace is triggered by fault. + * The trace is triggered by fault. */ FAILURE_TRIGGER = 1 << 5, /** - * output device-to-device tracepoint info in span only. default: do not output device-to-device tracepoint info. + * Output device-to-device tracepoint info in span only. default: do not output device-to-device tracepoint info. */ D2D_TP_INFO = 1 << 6, } @@ -79,27 +79,27 @@ declare namespace hiTraceChain { */ enum HiTraceTracepointType { /** - * client send + * Client send */ CS = 0, /** - * client receive + * Client receive */ CR = 1, /** - * server send + * Server send */ SS = 2, /** - * server receive + * Server receive */ SR = 3, /** - * general info + * General info */ GENERAL = 4, } @@ -112,22 +112,22 @@ declare namespace hiTraceChain { */ enum HiTraceCommunicationMode { /** - * unspecified + * Unspecified */ DEFAULT = 0, /** - * thread-to-thread + * Thread-to-thread */ THREAD = 1, /** - * process-to-process + * Process-to-process */ PROCESS = 2, /** - * device-to-device + * Device-to-device */ DEVICE = 3, } -- Gitee