diff --git a/api/@ohos.batteryinfo.d.ts b/api/@ohos.batteryinfo.d.ts index e0e4ec4e401ad59278d8330555c35bcec32c43ee..19689de4aa078a05f23973c1e2bc59c961fa6c5e 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 204ef53743347ffeb76f3422be73ef43ac2ab2ba..594086be7879127d212c9e99325d4ae4770cdcab 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 9d1d90d18872c0fcf15700cfb5148b86a1399717..bc0eddb084742668d99dd980d825e35d7957399d 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 b8cddbeadb003b619d8aadb7245eaa70908bb2a3..98114d2e974acf6a66641927ebf8f708769e142e 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 {