• Home
  • Raw
  • Download

Lines Matching refs:napiValue

33     napi_value napiValue = nullptr;  in BatterySOC()  local
36 NAPI_CALL(env, napi_create_int32(env, capacity, &napiValue)); in BatterySOC()
39 return napiValue; in BatterySOC()
44 napi_value napiValue = nullptr; in GetChargingState() local
47 NAPI_CALL(env, napi_create_int32(env, chargingState, &napiValue)); in GetChargingState()
51 return napiValue; in GetChargingState()
56 napi_value napiValue = nullptr; in GetHealthState() local
59 NAPI_CALL(env, napi_create_int32(env, healthStatus, &napiValue)); in GetHealthState()
63 return napiValue; in GetHealthState()
68 napi_value napiValue = nullptr; in GetPluggedType() local
71 NAPI_CALL(env, napi_create_int32(env, pluggedType, &napiValue)); in GetPluggedType()
75 return napiValue; in GetPluggedType()
80 napi_value napiValue = nullptr; in GetVoltage() local
83 NAPI_CALL(env, napi_create_int32(env, voltage, &napiValue)); in GetVoltage()
87 return napiValue; in GetVoltage()
92 napi_value napiValue = nullptr; in GetTechnology() local
96 NAPI_CALL(env, napi_create_string_utf8(env, technologyStr, strlen(technologyStr), &napiValue)); in GetTechnology()
99 return napiValue; in GetTechnology()
104 napi_value napiValue = nullptr; in GetBatteryTemperature() local
107 NAPI_CALL(env, napi_create_int32(env, temperature, &napiValue)); in GetBatteryTemperature()
111 return napiValue; in GetBatteryTemperature()
116 napi_value napiValue = nullptr; in GetBatteryPresent() local
119 NAPI_CALL(env, napi_get_boolean(env, present, &napiValue)); in GetBatteryPresent()
123 return napiValue; in GetBatteryPresent()
128 napi_value napiValue = nullptr; in GetBatteryNowCurrent() local
131 NAPI_CALL(env, napi_create_int32(env, curNow, &napiValue)); in GetBatteryNowCurrent()
134 return napiValue; in GetBatteryNowCurrent()
139 napi_value napiValue = nullptr; in GetBatteryRemainEnergy() local
142 NAPI_CALL(env, napi_create_int32(env, remainEnergy, &napiValue)); in GetBatteryRemainEnergy()
145 return napiValue; in GetBatteryRemainEnergy()
150 napi_value napiValue = nullptr; in GetRemainingChargeTime() local
153 NAPI_CALL(env, napi_create_int64(env, time, &napiValue)); in GetRemainingChargeTime()
154 return napiValue; in GetRemainingChargeTime()
159 napi_value napiValue = nullptr; in GetTotalEnergy() local
162 NAPI_CALL(env, napi_create_int32(env, totalEnergy, &napiValue)); in GetTotalEnergy()
165 return napiValue; in GetTotalEnergy()
170 napi_value napiValue = nullptr; in GetCapacityLevel() local
173 NAPI_CALL(env, napi_create_int32(env, batteryCapacityLevel, &napiValue)); in GetCapacityLevel()
176 return napiValue; in GetCapacityLevel()