Lines Matching refs:env_
55 Brightness::Brightness(napi_env env, std::shared_ptr<RunningLock> runningLock) : env_(env), running… in Brightness()
82 result_.ThrowError(env_, DisplayErrors::ERR_PARAM_INVALID); in SetValue()
87 if (napi_ok != napi_get_value_int32(env_, napiBrightness, &value)) { in SetValue()
92 result_.ThrowError(env_, DisplayErrors::ERR_PARAM_INVALID); in SetValue()
99 result_.ThrowError(env_, error); in SetValue()
112 napi_get_reference_value(env_, napiValRef_, &napiVal); in SystemSetValue()
113 napi_get_value_int32(env_, napiVal, &brightness); in SystemSetValue()
135 napi_get_reference_value(env_, napiValRef_, &napiMode); in SetMode()
136 napi_get_value_int32(env_, napiMode, &mode); in SetMode()
152 napi_get_reference_value(env_, napiValRef_, &napiKeep); in SetKeepScreenOn()
154 napi_get_value_bool(env_, napiKeep, &screenOn); in SetKeepScreenOn()
167 if (napi_ok != napi_get_cb_info(env_, info, &argc, argv, &thisVar, &data)) { in GetCallbackInfo()
188 napi_create_reference(env_, succCallBack, 1, &successRef_); in CreateCallbackRef()
193 napi_create_reference(env_, failCallBack, 1, &failRef_); in CreateCallbackRef()
198 napi_create_reference(env_, completeCallBack, 1, &completeRef_); in CreateCallbackRef()
207 napi_create_reference(env_, value, 1, &napiValRef_); in CreateValueRef()
333 napi_value result = result_.GetResult(env_); in ExecuteCallback()
342 result_.GetError(env_, argv, argc); in ExecuteCallback()
352 napi_typeof(env_, value, &valueType); in CheckValueType()
363 napi_status status = napi_get_named_property(env_, options, name.c_str(), &property); in GetOptions()
381 napi_get_reference_value(env_, callbackRef, &callback); in CallFunction()
382 napi_status status = napi_call_function(env_, nullptr, callback, argc, response, &callResult); in CallFunction()
392 napi_delete_reference(env_, ref); in ReleaseReference()