Home
last modified time | relevance | path

Searched refs:jsEvent (Results 1 – 9 of 9) sorted by relevance

/base/location/frameworks/native/source/
Dlocator_callback_host.cpp120 napi_value jsEvent = nullptr; in DoSendWork() local
121 …CHK_NAPI_ERR_CLOSE_SCOPE(context->env, napi_create_object(context->env, &jsEvent), scope, context,… in DoSendWork()
123 SystemLocationToJs(context->env, context->loc, jsEvent); in DoSendWork()
125 LocationToJs(context->env, context->loc, jsEvent); in DoSendWork()
134 … if (napi_call_function(context->env, nullptr, handler, 1, &jsEvent, &undefine) != napi_ok) { in DoSendWork()
139 … ((jsEvent != nullptr) ? napi_resolve_deferred(context->env, context->deferred, jsEvent) : in DoSendWork()
140 napi_reject_deferred(context->env, context->deferred, jsEvent)), in DoSendWork()
Dgnss_status_callback_host.cpp123 napi_value jsEvent = nullptr; in UvQueueWork() local
125 CHK_NAPI_ERR_CLOSE_SCOPE(context->env, napi_create_object(context->env, &jsEvent), in UvQueueWork()
127 SatelliteStatusToJs(context->env, context->statusInfo, jsEvent); in UvQueueWork()
137 &jsEvent, &undefine) != napi_ok) { in UvQueueWork()
Dcached_locations_callback_host.cpp128 napi_value jsEvent = nullptr; in UvQueueWork() local
129 CHK_NAPI_ERR_CLOSE_SCOPE(context->env, napi_create_object(context->env, &jsEvent), in UvQueueWork()
131 LocationsToJs(context->env, context->locationList, jsEvent); in UvQueueWork()
140 &jsEvent, &undefine) != napi_ok) { in UvQueueWork()
Dcountry_code_callback_host.cpp120 napi_value jsEvent; in UvQueueWork() local
121 CHK_NAPI_ERR_CLOSE_SCOPE(context->env, napi_create_object(context->env, &jsEvent), in UvQueueWork()
124 CountryCodeToJs(context->env, context->country, jsEvent); in UvQueueWork()
137 &jsEvent, &undefine) != napi_ok) { in UvQueueWork()
Dlocating_required_data_callback_host.cpp143 napi_value jsEvent = nullptr; in UvQueueWork() local
145 … napi_create_array_with_length(context->env, context->locatingRequiredDataList_.size(), &jsEvent), in UvQueueWork()
147 LocatingRequiredDataToJsObj(context->env, context->locatingRequiredDataList_, jsEvent); in UvQueueWork()
156 &jsEvent, &undefine) != napi_ok) { in UvQueueWork()
Dlocation_switch_callback_host.cpp119 napi_value jsEvent; in UvQueueWork() local
120 … CHK_NAPI_ERR_CLOSE_SCOPE(context->env, napi_get_boolean(context->env, context->enable, &jsEvent), in UvQueueWork()
136 &jsEvent, &undefine) != napi_ok) { in UvQueueWork()
Dnmea_message_callback_host.cpp131 napi_value jsEvent; in UvQueueWork() local
133 … napi_create_string_utf8(context->env, context->msg.c_str(), NAPI_AUTO_LENGTH, &jsEvent), in UvQueueWork()
144 &jsEvent, &undefine) != napi_ok) { in UvQueueWork()
/base/update/updateservice/frameworks/js/napi/client/
Dupdate_session.cpp264 napi_value jsEvent; in NotifyJS() local
267 int32_t ret = result.buildJSObject(env, jsEvent, result); in NotifyJS()
276 napi_call_function(env, thisVar, handler, 1, &jsEvent, &callResult); in NotifyJS()
282 napi_value jsEvent = nullptr; in NotifyJS() local
283 ClientStatus ret = ClientHelper::BuildEventInfo(env, jsEvent, eventInfo); in NotifyJS()
293 status = napi_call_function(env, thisVar, handler, 1, &jsEvent, &callResult); in NotifyJS()
/base/location/frameworks/js/napi/source/
Dlocation_napi_system.cpp135 napi_value jsEvent = nullptr; in EmitSyncCallbackWork() local
145 NAPI_CALL_BASE(env, napi_create_object(env, &jsEvent), false); in EmitSyncCallbackWork()
146 NAPI_CALL_BASE(env, napi_set_named_property(env, jsEvent, "types", arrString), false); in EmitSyncCallbackWork()
149 …NAPI_CALL_BASE(env, napi_call_function(env, nullptr, successHandler, 1, &jsEvent, &undefine), fals… in EmitSyncCallbackWork()