Searched refs:capacityLevel (Results 1 – 2 of 2) sorted by relevance
148 auto capacityLevel = batterySrv->GetCapacityLevel(); in PublishChangedEvent() local149 if (capacityLevel != g_lastCapacityLevel) { in PublishChangedEvent()150 … want.SetParam(BatteryInfo::COMMON_EVENT_KEY_CAPACITY_LEVEL, static_cast<int32_t>(capacityLevel)); in PublishChangedEvent()151 g_lastCapacityLevel = capacityLevel; in PublishChangedEvent()
379 napi_value capacityLevel = nullptr; in CreateEventBatteryChangedKey() local389 …e_string_utf8(env, BatteryInfo::COMMON_EVENT_KEY_CAPACITY_LEVEL, NAPI_AUTO_LENGTH, &capacityLevel); in CreateEventBatteryChangedKey()400 DECLARE_NAPI_STATIC_PROPERTY("EXTRA_CAPACITY_LEVEL", capacityLevel), in CreateEventBatteryChangedKey()