Searched refs:batteryCapacityLevel (Results 1 – 2 of 2) sorted by relevance
608 BatteryCapacityLevel batteryCapacityLevel = BatteryCapacityLevel::LEVEL_NONE; in GetCapacityLevel() local611 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()
171 int32_t batteryCapacityLevel = (int32_t)g_battClient.GetCapacityLevel(); in GetCapacityLevel() local173 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() local438 …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()