From eade842cfdd7121d6239107f940d840545fa356a Mon Sep 17 00:00:00 2001 From: qiuxiangdong Date: Mon, 26 Jun 2023 17:22:45 +0800 Subject: [PATCH] feat: SystemCapability added Lite support Signed-off-by: qiuxiangdong Change-Id: I3ca2162bb9016616563d370efa44cc9856dd36bd --- .../reference/apis/js-apis-system-battery.md | 6 ++--- .../apis/js-apis-system-brightness.md | 24 +++++++++---------- en/application-dev/reference/syscap-list.md | 8 +++++++ .../reference/apis/js-apis-system-battery.md | 6 ++--- .../apis/js-apis-system-brightness.md | 24 +++++++++---------- .../application-dev/reference/syscap-list.md | 8 +++++++ 6 files changed, 46 insertions(+), 30 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-system-battery.md b/en/application-dev/reference/apis/js-apis-system-battery.md index 8eef0562cd..ec63058c99 100644 --- a/en/application-dev/reference/apis/js-apis-system-battery.md +++ b/en/application-dev/reference/apis/js-apis-system-battery.md @@ -21,7 +21,7 @@ getStatus(options?: GetStatusOptions): void; Obtains the current charging state and battery level. -**System capability**: SystemCapability.PowerManager.BatteryManager.Core +**System capability**: SystemCapability.PowerManager.BatteryManager.Lite **Parameters** @@ -46,7 +46,7 @@ battery.getStatus({ Object that contains the API calling result. -**System capability**: SystemCapability.PowerManager.BatteryManager.Core +**System capability**: SystemCapability.PowerManager.BatteryManager.Lite | Name | Type | Mandatory| Description | | -------- | --------------------------------------------------- | ---- | ------------------------------------------------------------ | @@ -58,7 +58,7 @@ Object that contains the API calling result. Defines a response that returns the charging status and remaining power of the device. -**System capability**: SystemCapability.PowerManager.BatteryManager.Core +**System capability**: SystemCapability.PowerManager.BatteryManager.Lite | Name| Type| Readable| Writable| Description| | -------- | -------- | -------- | -------- | -------- | diff --git a/en/application-dev/reference/apis/js-apis-system-brightness.md b/en/application-dev/reference/apis/js-apis-system-brightness.md index 01a1defec2..55b0bdee44 100644 --- a/en/application-dev/reference/apis/js-apis-system-brightness.md +++ b/en/application-dev/reference/apis/js-apis-system-brightness.md @@ -22,7 +22,7 @@ getValue(options?: GetBrightnessOptions): void Obtains the current screen brightness. -**System capability**: SystemCapability.PowerManager.DisplayPowerManager +**System capability**: SystemCapability.PowerManager.DisplayPowerManager.Lite **Parameters** @@ -50,7 +50,7 @@ setValue(options?: SetBrightnessOptions): void Sets the screen brightness. -**System capability**: SystemCapability.PowerManager.DisplayPowerManager +**System capability**: SystemCapability.PowerManager.DisplayPowerManager.Lite **Parameters** @@ -79,7 +79,7 @@ getMode(options?: GetBrightnessModeOptions): void Obtains the screen brightness adjustment mode. -**System capability**: SystemCapability.PowerManager.DisplayPowerManager +**System capability**: SystemCapability.PowerManager.DisplayPowerManager.Lite **Parameters** @@ -107,7 +107,7 @@ setMode(options?: SetBrightnessModeOptions): void Sets the screen brightness adjustment mode. -**System capability**: SystemCapability.PowerManager.DisplayPowerManager +**System capability**: SystemCapability.PowerManager.DisplayPowerManager.Lite **Parameters** | Name| Type| Mandatory| Description| @@ -137,7 +137,7 @@ setKeepScreenOn(options?: SetKeepScreenOnOptions): void Sets whether to always keep the screen on. Call this API in **onShow()**. -**System capability**: SystemCapability.PowerManager.DisplayPowerManager +**System capability**: SystemCapability.PowerManager.DisplayPowerManager.Lite **Parameters** @@ -162,7 +162,7 @@ Sets whether to always keep the screen on. Call this API in **onShow()**. Defines the options for obtaining the screen brightness. -**System capability**: SystemCapability.PowerManager.DisplayPowerManager +**System capability**: SystemCapability.PowerManager.DisplayPowerManager.Lite | Name | Type | Mandatory| Description | | -------- | --------------------------------------------------------- | ---- | ------------------------------------------------------------ | @@ -174,7 +174,7 @@ Defines the options for obtaining the screen brightness. Defines the options for setting the screen brightness. -**System capability**: SystemCapability.PowerManager.DisplayPowerManager +**System capability**: SystemCapability.PowerManager.DisplayPowerManager.Lite | Name | Type | Mandatory| Description | | -------- | ------------------------------------ | ---- | ------------------------------------------------------------ | @@ -187,7 +187,7 @@ Defines the options for setting the screen brightness. Defines a response that returns the screen brightness. -**System capability**: SystemCapability.PowerManager.DisplayPowerManager +**System capability**: SystemCapability.PowerManager.DisplayPowerManager.Lite | Name| Type| Readable| Writable| Description| | -------- | -------- | -------- | -------- | -------- | @@ -197,7 +197,7 @@ Defines a response that returns the screen brightness. Defines the options for obtaining the screen brightness mode. -**System capability**: SystemCapability.PowerManager.DisplayPowerManager +**System capability**: SystemCapability.PowerManager.DisplayPowerManager.Lite | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | @@ -209,7 +209,7 @@ Defines the options for obtaining the screen brightness mode. Defines the options for setting the screen brightness mode. -**System capability**: SystemCapability.PowerManager.DisplayPowerManager +**System capability**: SystemCapability.PowerManager.DisplayPowerManager.Lite | Name | Type | Mandatory| Description | | -------- | ------------------------------------ | ---- | ------------------------------------------------------ | @@ -222,7 +222,7 @@ Defines the options for setting the screen brightness mode. Defines a response that returns the screen brightness mode. -**System capability**: SystemCapability.PowerManager.DisplayPowerManager +**System capability**: SystemCapability.PowerManager.DisplayPowerManager.Lite | Name| Type| Readable| Writable| Description| | -------- | -------- | -------- | -------- | -------- | @@ -232,7 +232,7 @@ Defines a response that returns the screen brightness mode. Defines the options for setting the screen to be steady on. -**System capability**: SystemCapability.PowerManager.DisplayPowerManager +**System capability**: SystemCapability.PowerManager.DisplayPowerManager.Lite | Name | Type | Mandatory| Description | | ------------ | ------------------------------------ | ---- | ------------------------------------------------------ | diff --git a/en/application-dev/reference/syscap-list.md b/en/application-dev/reference/syscap-list.md index f550259f41..bf294b95d9 100644 --- a/en/application-dev/reference/syscap-list.md +++ b/en/application-dev/reference/syscap-list.md @@ -359,6 +359,14 @@ Power management display | ------- | ------ | ------ | ---- | ---- | ------ | ------------ | ------ | | Yes | No | Yes | Yes | No | Yes | No | No | +## SystemCapability.PowerManager.DisplayPowerManager.Lite + +Lite device capabilities of the system power management display + +| Default | Sports Watch| Smart Watch| Tablet| Head Unit| Smart TV| Smart Vision | Router | +| ------- | ------ | ------ | ---- | ---- | ------ | ------------ | ------ | +| Yes | Yes | Yes | Yes | No | Yes | No | No | + ## SystemCapability.PowerManager.ThermalManager Temperature control diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-battery.md b/zh-cn/application-dev/reference/apis/js-apis-system-battery.md index a14490915d..73ea1bcd74 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-battery.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-battery.md @@ -21,7 +21,7 @@ getStatus(options?: GetStatusOptions): void; 获取设备当前的充电状态及剩余电量。 -**系统能力:** SystemCapability.PowerManager.BatteryManager.Core +**系统能力:** SystemCapability.PowerManager.BatteryManager.Lite **参数:** @@ -46,7 +46,7 @@ battery.getStatus({ 包含接口调用结果的对象。 -**系统能力:** SystemCapability.PowerManager.BatteryManager.Core +**系统能力:** SystemCapability.PowerManager.BatteryManager.Lite | 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------------------------------------- | ---- | ------------------------------------------------------------ | @@ -58,7 +58,7 @@ battery.getStatus({ 包含充电状态及剩余电量的对象。 -**系统能力:** SystemCapability.PowerManager.BatteryManager.Core +**系统能力:** SystemCapability.PowerManager.BatteryManager.Lite | 参数名 | 类型 | 可读 | 可写 | 说明 | | -------- | -------- | -------- | -------- | -------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-brightness.md b/zh-cn/application-dev/reference/apis/js-apis-system-brightness.md index 9097f8f38d..107005a04c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-brightness.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-brightness.md @@ -22,7 +22,7 @@ getValue(options?: GetBrightnessOptions): void 获得设备当前的屏幕亮度值。 -**系统能力:** SystemCapability.PowerManager.DisplayPowerManager +**系统能力:** SystemCapability.PowerManager.DisplayPowerManager.Lite **参数:** @@ -50,7 +50,7 @@ setValue(options?: SetBrightnessOptions): void 设置设备当前的屏幕亮度值。 -**系统能力:** SystemCapability.PowerManager.DisplayPowerManager +**系统能力:** SystemCapability.PowerManager.DisplayPowerManager.Lite **参数:** @@ -79,7 +79,7 @@ getMode(options?: GetBrightnessModeOptions): void 获得当前屏幕亮度模式。 -**系统能力:** SystemCapability.PowerManager.DisplayPowerManager +**系统能力:** SystemCapability.PowerManager.DisplayPowerManager.Lite **参数:** @@ -107,7 +107,7 @@ setMode(options?: SetBrightnessModeOptions): void 设置设备当前的屏幕亮度模式。 -**系统能力:** SystemCapability.PowerManager.DisplayPowerManager +**系统能力:** SystemCapability.PowerManager.DisplayPowerManager.Lite **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -137,7 +137,7 @@ setKeepScreenOn(options?: SetKeepScreenOnOptions): void 设置屏幕是否保持常亮状态,开启常亮模式推荐在onShow()阶段调用。 -**系统能力:** SystemCapability.PowerManager.DisplayPowerManager +**系统能力:** SystemCapability.PowerManager.DisplayPowerManager.Lite **参数:** @@ -162,7 +162,7 @@ setKeepScreenOn(options?: SetKeepScreenOnOptions): void 获取屏幕亮度的参数对象。 -**系统能力:** SystemCapability.PowerManager.DisplayPowerManager +**系统能力:** SystemCapability.PowerManager.DisplayPowerManager.Lite | 名称 | 类型 | 必填 | 说明 | | -------- | --------------------------------------------------------- | ---- | ------------------------------------------------------------ | @@ -174,7 +174,7 @@ setKeepScreenOn(options?: SetKeepScreenOnOptions): void 设置屏幕亮度的参数对象。 -**系统能力:** SystemCapability.PowerManager.DisplayPowerManager +**系统能力:** SystemCapability.PowerManager.DisplayPowerManager.Lite | 名称 | 类型 | 必填 | 说明 | | -------- | ------------------------------------ | ---- | ------------------------------------------------------------ | @@ -187,7 +187,7 @@ setKeepScreenOn(options?: SetKeepScreenOnOptions): void 包含屏幕亮度的对象。 -**系统能力:** SystemCapability.PowerManager.DisplayPowerManager +**系统能力:** SystemCapability.PowerManager.DisplayPowerManager.Lite | 名称 | 类型 | 可读 | 可写 | 说明 | | -------- | -------- | -------- | -------- | -------- | @@ -197,7 +197,7 @@ setKeepScreenOn(options?: SetKeepScreenOnOptions): void 获取屏幕亮度模式的参数对象。 -**系统能力:** SystemCapability.PowerManager.DisplayPowerManager +**系统能力:** SystemCapability.PowerManager.DisplayPowerManager.Lite | 名称 | 类型 | 必填 | 说明 | | -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | @@ -209,7 +209,7 @@ setKeepScreenOn(options?: SetKeepScreenOnOptions): void 设置屏幕亮度模式的参数对象。 -**系统能力:** SystemCapability.PowerManager.DisplayPowerManager +**系统能力:** SystemCapability.PowerManager.DisplayPowerManager.Lite | 名称 | 类型 | 必填 | 说明 | | -------- | ------------------------------------ | ---- | ------------------------------------------------------ | @@ -222,7 +222,7 @@ setKeepScreenOn(options?: SetKeepScreenOnOptions): void 包含屏幕亮度模式的对象。 -**系统能力:** SystemCapability.PowerManager.DisplayPowerManager +**系统能力:** SystemCapability.PowerManager.DisplayPowerManager.Lite | 名称 | 类型 | 可读 | 可写 | 说明 | | -------- | -------- | -------- | -------- | -------- | @@ -232,7 +232,7 @@ setKeepScreenOn(options?: SetKeepScreenOnOptions): void 设置屏幕常亮的参数对象。 -**系统能力:** SystemCapability.PowerManager.DisplayPowerManager +**系统能力:** SystemCapability.PowerManager.DisplayPowerManager.Lite | 名称 | 类型 | 必填 | 说明 | | ------------ | ------------------------------------ | ---- | ------------------------------------------------------ | diff --git a/zh-cn/application-dev/reference/syscap-list.md b/zh-cn/application-dev/reference/syscap-list.md index 46fb2e3981..4e29560662 100644 --- a/zh-cn/application-dev/reference/syscap-list.md +++ b/zh-cn/application-dev/reference/syscap-list.md @@ -359,6 +359,14 @@ GNSS硬件相关能力 | ------- | ------ | ------ | ---- | ---- | ------ | ------------ | ------ | | 是 | 否 | 是 | 是 | 否 | 是 | 否 | 否 | +## SystemCapability.PowerManager.DisplayPowerManager.Lite + +轻设备系统显示能效管理 + +| Default | 运动表 | 智能表 | 平板 | 车机 | 智慧屏 | Smart-Vision | Router | +| ------- | ------ | ------ | ---- | ---- | ------ | ------------ | ------ | +| 是 | 是 | 是 | 是 | 否 | 是 | 否 | 否 | + ## SystemCapability.PowerManager.ThermalManager 温控服务 -- GitLab