Home
last modified time | relevance | path

Searched refs:batteryCapacityLevel (Results 1 – 2 of 2) sorted by relevance

/base/powermgr/battery_manager/services/native/src/
Dbattery_service.cpp608 BatteryCapacityLevel batteryCapacityLevel = BatteryCapacityLevel::LEVEL_NONE; in GetCapacityLevel() local
611 batteryCapacityLevel = BatteryCapacityLevel::LEVEL_SHUTDOWN; in GetCapacityLevel()
614 batteryCapacityLevel = BatteryCapacityLevel::LEVEL_CRITICAL; in GetCapacityLevel()
617 batteryCapacityLevel = BatteryCapacityLevel::LEVEL_WARNING; in GetCapacityLevel()
620 batteryCapacityLevel = BatteryCapacityLevel::LEVEL_LOW; in GetCapacityLevel()
623 batteryCapacityLevel = BatteryCapacityLevel::LEVEL_NORMAL; in GetCapacityLevel()
626 batteryCapacityLevel = BatteryCapacityLevel::LEVEL_HIGH; in GetCapacityLevel()
629 batteryCapacityLevel = BatteryCapacityLevel::LEVEL_FULL; in GetCapacityLevel()
631 return batteryCapacityLevel; in GetCapacityLevel()
/base/powermgr/battery_manager/frameworks/napi/
Dbattery_info.cpp171 int32_t batteryCapacityLevel = (int32_t)g_battClient.GetCapacityLevel(); in GetCapacityLevel() local
173 NAPI_CALL(env, napi_create_int32(env, batteryCapacityLevel, &napiValue)); in GetCapacityLevel()
175 BATTERY_HILOGD(FEATURE_BATT_INFO, "batteryCapacityLevel %{public}d", batteryCapacityLevel); in GetCapacityLevel()
425 napi_value batteryCapacityLevel = nullptr; in CreateEventBatteryChangedCode() local
438 …i_create_int32(env, (int32_t)BatteryInfo::COMMON_EVENT_CODE_CAPACITY_LEVEL, &batteryCapacityLevel); in CreateEventBatteryChangedCode()
452 DECLARE_NAPI_STATIC_PROPERTY("EXTRA_CAPACITY_LEVEL", batteryCapacityLevel), in CreateEventBatteryChangedCode()