From f029b161ee3f8e4dfbd6219297740d92249a073a Mon Sep 17 00:00:00 2001 From: toutes Date: Sun, 30 Jan 2022 11:18:04 +0800 Subject: [PATCH] update modify power json interfence Signed-off-by: toutes Change-Id: I5c1743edc182d8971f6c196f6dfc9e229251c8e6 --- api/@ohos.batteryinfo.d.ts | 26 -------------------------- api/@ohos.brightness.d.ts | 1 - api/@ohos.power.d.ts | 3 +-- api/@ohos.runninglock.d.ts | 1 - 4 files changed, 1 insertion(+), 30 deletions(-) diff --git a/api/@ohos.batteryinfo.d.ts b/api/@ohos.batteryinfo.d.ts index e0e4ec4e40..19689de4aa 100644 --- a/api/@ohos.batteryinfo.d.ts +++ b/api/@ohos.batteryinfo.d.ts @@ -20,62 +20,53 @@ * voltage, temperature, model, and charger type. * * @SysCap SystemCapability.PowerMgr.BatteryManager - * @devices phone, tablet, tv, wearable * @since 6 */ declare namespace batteryInfo { /** * Battery state of charge (SoC) of the current device. - * @devices phone, tablet, tv, wearable * @since 6 */ const batterySOC: number; /** * Battery charging status of the current device. - * @devices phone, tablet, tv, wearable * @since 6 */ const chargingStatus: BatteryChargeState; /** * Battery health state of the current device. - * @devices phone, tablet, tv, wearable * @since 6 */ const healthStatus: BatteryHealthState; /** * Charger type of the current device. - * @devices phone, tablet, tv, wearable * @since 6 */ const pluggedType: BatteryPluggedType; /** * Battery voltage of the current device. - * @devices phone, tablet, tv, wearable * @since 6 */ const voltage: number; /** * Battery technology of the current device. - * @devices phone, tablet, tv, wearable * @since 6 */ const technology: string; /** * Battery temperature of the current device. - * @devices phone, tablet, tv, wearable * @since 6 */ const batteryTemperature: number; /** * Battery present state of the current device. - * @devices phone, tablet, tv, wearable * @since 7 */ const isBatteryPresent: boolean; @@ -84,31 +75,26 @@ declare namespace batteryInfo { * Indicates the charger type of a device. * * @SysCap SystemCapability.PowerMgr.BatteryManager - * @devices phone, tablet, tv, wearable * @since 6 */ export enum BatteryPluggedType { /** * Unknown type - * @devices phone, tablet, tv, wearable * @since 6 */ NONE, /** * AC charger - * @devices phone, tablet, tv, wearable * @since 6 */ AC, /** * USB charger - * @devices phone, tablet, tv, wearable * @since 6 */ USB, /** * Wireless charger - * @devices phone, tablet, tv, wearable * @since 6 */ WIRELESS @@ -118,31 +104,26 @@ declare namespace batteryInfo { * Indicates the battery charging status of a device. * * @SysCap SystemCapability.PowerMgr.BatteryManager - * @devices phone, tablet, tv, wearable * @since 6 */ export enum BatteryChargeState { /** * Unknown state. - * @devices phone, tablet, tv, wearable * @since 6 */ NONE, /** * The battery is being charged. - * @devices phone, tablet, tv, wearable * @since 6 */ ENABLE, /** * The battery is not being charged. - * @devices phone, tablet, tv, wearable * @since 6 */ DISABLE, /** * The battery is fully charged. - * @devices phone, tablet, tv, wearable * @since 6 */ FULL @@ -152,43 +133,36 @@ declare namespace batteryInfo { * Indicates the battery health status of a device. * * @SysCap SystemCapability.PowerMgr.BatteryManager - * @devices phone, tablet, tv, wearable * @since 6 */ export enum BatteryHealthState { /** * Unknown state. - * @devices phone, tablet, tv, wearable * @since 6 */ UNKNOWN, /** * The battery is in healthy state. - * @devices phone, tablet, tv, wearable * @since 6 */ GOOD, /** * The battery is overheated. - * @devices phone, tablet, tv, wearable * @since 6 */ OVERHEAT, /** * The battery voltage is over high. - * @devices phone, tablet, tv, wearable * @since 6 */ OVERVOLTAGE, /** * The battery temperature is low. - * @devices phone, tablet, tv, wearable * @since 6 */ COLD, /** * The battery is dead. - * @devices phone, tablet, tv, wearable * @since 6 */ DEAD diff --git a/api/@ohos.brightness.d.ts b/api/@ohos.brightness.d.ts index 204ef53743..594086be78 100644 --- a/api/@ohos.brightness.d.ts +++ b/api/@ohos.brightness.d.ts @@ -28,7 +28,6 @@ declare namespace brightness { * * @param value Brightness value, ranging from 0 to 255. * @SysCap SystemCapability.PowerMgr.DisplayManager - * @devices phone, tablet * @systemapi * @since 7 */ diff --git a/api/@ohos.power.d.ts b/api/@ohos.power.d.ts index 9d1d90d188..bc0eddb084 100644 --- a/api/@ohos.power.d.ts +++ b/api/@ohos.power.d.ts @@ -19,7 +19,6 @@ import {AsyncCallback} from './basic'; * Provides interfaces to manage power. * * @SysCap SystemCapability.PowerMgr.PowerManager - * @devices phone, tablet, tv, wearable * @since 7 */ declare namespace power { @@ -39,7 +38,7 @@ declare namespace power { * *

This method requires the ohos.permission.REBOOT permission. * - * @param reason Indicates the restart reason. For example, "recovery" indicates entering the recovery mode + * @param reason Indicates the restart reason. For example, "updater" indicates entering the updater mode * after the restart. If the parameter is not specified, the system enters the normal mode after the restart. * @since 7 */ diff --git a/api/@ohos.runninglock.d.ts b/api/@ohos.runninglock.d.ts index b8cddbeadb..98114d2e97 100644 --- a/api/@ohos.runninglock.d.ts +++ b/api/@ohos.runninglock.d.ts @@ -25,7 +25,6 @@ import {AsyncCallback} from './basic.d.ts'; * RunningLock} is set. * * @SysCap SystemCapability.PowerMgr.PowerManager - * @devices phone, tablet, tv, wearable * @since 7 */ declare namespace runningLock { -- Gitee