/base/location/frameworks/native/source/ |
D | locator_callback_host.cpp | 120 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()
|
D | gnss_status_callback_host.cpp | 123 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()
|
D | cached_locations_callback_host.cpp | 128 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()
|
D | country_code_callback_host.cpp | 120 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()
|
D | locating_required_data_callback_host.cpp | 143 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()
|
D | location_switch_callback_host.cpp | 119 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()
|
D | nmea_message_callback_host.cpp | 131 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/ |
D | update_session.cpp | 264 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/ |
D | location_napi_system.cpp | 135 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()
|