Home
last modified time | relevance | path

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

/base/powermgr/battery_manager/services/native/src/
Dbattery_notify.cpp148 auto capacityLevel = batterySrv->GetCapacityLevel(); in PublishChangedEvent() local
149 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()
/base/powermgr/battery_manager/frameworks/napi/
Dbattery_info.cpp379 napi_value capacityLevel = nullptr; in CreateEventBatteryChangedKey() local
389 …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()