Home
last modified time | relevance | path

Searched refs:thisVar (Results 1 – 19 of 19) sorted by relevance

/commonlibrary/ets_utils/js_api_module/uri/
Dnative_module_uri.cpp31 napi_value thisVar = nullptr; in UriConstructor() local
36 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, argv, &thisVar, &data)); in UriConstructor()
47 NAPI_CALL(env, napi_wrap(env, thisVar, object, in UriConstructor()
54 return thisVar; in UriConstructor()
59 napi_value thisVar = nullptr; in Normalize() local
60 NAPI_CALL(env, napi_get_cb_info(env, info, nullptr, nullptr, &thisVar, nullptr)); in Normalize()
62 NAPI_CALL(env, napi_unwrap(env, thisVar, reinterpret_cast<void**>(&muri))); in Normalize()
72 napi_value thisVar = nullptr; in Equals() local
76 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, argv, &thisVar, nullptr)); in Equals()
79 NAPI_CALL(env, napi_unwrap(env, thisVar, reinterpret_cast<void**>(&muri))); in Equals()
[all …]
/commonlibrary/ets_utils/js_api_module/url/
Dnative_module_url.cpp31 napi_value thisVar = nullptr; in UrlStructor() local
35 napi_get_cb_info(env, info, &argc, nullptr, &thisVar, &data); in UrlStructor()
36 napi_get_cb_info(env, info, &argc, argv, &thisVar, &data); in UrlStructor()
86 napi_value thisVar = nullptr; in UrlConstructor() local
91 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, nullptr, &thisVar, &data)); in UrlConstructor()
93 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, argv, &thisVar, &data)); in UrlConstructor()
118 env, thisVar, object, in UrlConstructor()
126 return thisVar; in UrlConstructor()
131 napi_value thisVar = nullptr; in GetHostname() local
132 NAPI_CALL(env, napi_get_cb_info(env, info, nullptr, nullptr, &thisVar, nullptr)); in GetHostname()
[all …]
/commonlibrary/ets_utils/js_sys_module/process/
Dnative_module_process.cpp83 napi_value thisVar = nullptr; in ChildProcessConstructor() local
87 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, &thisVar, &data)); in ChildProcessConstructor()
97 env, thisVar, objectInfo, in ChildProcessConstructor()
107 return thisVar; in ChildProcessConstructor()
112 napi_value thisVar = nullptr; in Wait() local
113 NAPI_CALL(env, napi_get_cb_info(env, info, nullptr, nullptr, &thisVar, nullptr)); in Wait()
116 NAPI_CALL(env, napi_unwrap(env, thisVar, reinterpret_cast<void**>(&object))); in Wait()
124 napi_value thisVar = nullptr; in GetOutput() local
125 NAPI_CALL(env, napi_get_cb_info(env, info, nullptr, nullptr, &thisVar, nullptr)); in GetOutput()
128 NAPI_CALL(env, napi_unwrap(env, thisVar, reinterpret_cast<void**>(&object))); in GetOutput()
[all …]
/commonlibrary/ets_utils/js_util_module/util/
Dnative_module_util.cpp231 napi_value thisVar = nullptr; in GetErrorString() local
236 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, &argv, &thisVar, nullptr)); in GetErrorString()
246 napi_value thisVar = nullptr; in RandomUUID() local
250 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, &thisVar, nullptr)); in RandomUUID()
263 napi_value thisVar = nullptr; in RandomBinaryUUID() local
267 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, &thisVar, nullptr)); in RandomBinaryUUID()
277 napi_value thisVar = nullptr; in ParseUUID() local
281 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, &thisVar, nullptr)); in ParseUUID()
363 napi_value thisVar = nullptr; in CreateTextDecoder() local
364 napi_get_cb_info(env, info, &tempArgc, nullptr, &thisVar, nullptr); in CreateTextDecoder()
[all …]
/commonlibrary/ets_utils/js_api_module/xml/
Dnative_module_xml.cpp27 napi_value thisVar = nullptr; in XmlSerializerConstructor() local
35 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, nullptr, &thisVar, &data)); in XmlSerializerConstructor()
37 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, &thisVar, &data)); in XmlSerializerConstructor()
66 env, thisVar, object, in XmlSerializerConstructor()
74 return thisVar; in XmlSerializerConstructor()
79 napi_value thisVar = nullptr; in XmlPullParserConstructor() local
84 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, nullptr, &thisVar, &data)); in XmlPullParserConstructor()
86 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, &thisVar, &data)); in XmlPullParserConstructor()
123 env, thisVar, object, in XmlPullParserConstructor()
131 return thisVar; in XmlPullParserConstructor()
[all …]
Djs_xml.cpp482 bool XmlPullParser::ParseToken(napi_env env, napi_value thisVar) const in ParseToken()
505 napi_set_named_property(env, parseInfo, "MainInfo", thisVar); in ParseToken()
517 bool XmlPullParser::ParseAttri(napi_env env, napi_value thisVar) const in ParseAttri()
530 napi_value argv[3] = {key, value, thisVar}; in ParseAttri()
541 void XmlPullParser::Parse(napi_env env, napi_value thisVar) in Parse() argument
556 napi_value argv[3] = {key, value, thisVar}; in Parse()
564 bRec = ParseAttri(env, thisVar); in Parse()
571 bRec = ParseToken(env, thisVar); in Parse()
1699 napi_value thisVar = nullptr; in GetColumnNumber() local
1701 NAPI_CALL(env, napi_get_cb_info(env, info, nullptr, nullptr, &thisVar, nullptr)); in GetColumnNumber()
[all …]
Djs_xml.h328 void Parse(napi_env env, napi_value thisVar);
361 bool ParseAttri(napi_env env, napi_value thisVar) const;
362 bool ParseToken(napi_env env, napi_value thisVar) const;
/commonlibrary/ets_utils/js_api_module/buffer/
Dnative_module_buffer.cpp93 static napi_value FromStringUtf8(napi_env env, napi_value thisVar, napi_value str) in FromStringUtf8() argument
97 NAPI_CALL(env, napi_unwrap(env, thisVar, reinterpret_cast<void **>(&buffer))); in FromStringUtf8()
100 return thisVar; in FromStringUtf8()
103 static napi_value FromStringASCII(napi_env env, napi_value thisVar, napi_value str, uint32_t size) in FromStringASCII() argument
107 NAPI_CALL(env, napi_unwrap(env, thisVar, reinterpret_cast<void **>(&buffer))); in FromStringASCII()
110 return thisVar; in FromStringASCII()
120 static napi_value FromStringUtf16LE(napi_env env, napi_value thisVar, napi_value str) in FromStringUtf16LE() argument
124 NAPI_CALL(env, napi_unwrap(env, thisVar, reinterpret_cast<void **>(&buffer))); in FromStringUtf16LE()
129 return thisVar; in FromStringUtf16LE()
139 static napi_value FromStringBase64(napi_env env, napi_value thisVar, napi_value str, uint32_t size) in FromStringBase64() argument
[all …]
/commonlibrary/ets_utils/js_concurrent_module/taskpool/
Dtask_group.cpp29 napi_value thisVar; in TaskGroupConstructor() local
30 napi_get_cb_info(env, cbinfo, nullptr, nullptr, &thisVar, nullptr); in TaskGroupConstructor()
37 DECLARE_NAPI_FUNCTION_WITH_DATA("addTask", AddTask, thisVar), in TaskGroupConstructor()
39 napi_define_properties(env, thisVar, sizeof(properties) / sizeof(properties[0]), properties); in TaskGroupConstructor()
42 napi_wrap(env, thisVar, data, Destructor, nullptr, nullptr); in TaskGroupConstructor()
44 return thisVar; in TaskGroupConstructor()
68 napi_value thisVar; in AddTask() local
69 napi_get_cb_info(env, cbinfo, &argc, args, &thisVar, nullptr); in AddTask()
70 napi_value groupIdVal = NapiHelper::GetNameProperty(env, thisVar, GROUP_ID_STR); in AddTask()
Dtask.cpp40 napi_value thisVar; in TaskConstructor() local
41 napi_get_cb_info(env, cbinfo, &argc, args, &thisVar, nullptr); in TaskConstructor()
46 CreateTaskByFunc(env, thisVar, args[0], args, argc); in TaskConstructor()
47 return thisVar; in TaskConstructor()
76 napi_value thisVar; in SetTransferList() local
77 napi_get_cb_info(env, cbinfo, &argc, args, &thisVar, nullptr); in SetTransferList()
105 napi_set_named_property(env, thisVar, TRANSFERLIST_STR, args[0]); in SetTransferList()
/commonlibrary/ets_utils/js_api_module/convertxml/
Dnative_module_convertxml.cpp28 napi_value thisVar = nullptr; in ConvertXmlConstructor() local
30 napi_get_cb_info(env, info, nullptr, nullptr, &thisVar, &data); in ConvertXmlConstructor()
33 env, thisVar, objectInfo, in ConvertXmlConstructor()
41 return thisVar; in ConvertXmlConstructor()
46 napi_value thisVar = nullptr; in Convert() local
51 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, &thisVar, nullptr)); in Convert()
57 NAPI_CALL(env, napi_unwrap(env, thisVar, reinterpret_cast<void**>(&object))); in Convert()
/commonlibrary/ets_utils/js_concurrent_module/worker/
Dworker_new.cpp32 NewWorker::NewWorker(napi_env env, napi_ref thisVar) in NewWorker() argument
33 : hostEnv_(env), workerRef_(thisVar) in NewWorker()
104 napi_value thisVar = nullptr; in WorkerConstructor() local
108 napi_get_cb_info(env, cbinfo, &argc, args, &thisVar, &data); in WorkerConstructor()
194 env, thisVar, worker, in WorkerConstructor()
229 return thisVar; in WorkerConstructor()
243 napi_value thisVar = nullptr; in PostMessage() local
244 napi_get_cb_info(env, cbinfo, &argc, argv, &thisVar, nullptr); in PostMessage()
246 napi_unwrap(env, thisVar, reinterpret_cast<void**>(&worker)); in PostMessage()
277 napi_value thisVar = nullptr; in Terminate() local
[all …]
Dworker.cpp32 Worker::Worker(napi_env env, napi_ref thisVar) in Worker() argument
33 : hostEnv_(env), workerRef_(thisVar) in Worker()
595 napi_value thisVar = nullptr; in PostMessage() local
596 napi_get_cb_info(env, cbinfo, &argc, argv, &thisVar, nullptr); in PostMessage()
598 napi_unwrap(env, thisVar, reinterpret_cast<void**>(&worker)); in PostMessage()
699 napi_value thisVar = nullptr; in Terminate() local
700 napi_get_cb_info(env, cbinfo, nullptr, nullptr, &thisVar, nullptr); in Terminate()
702 napi_unwrap(env, thisVar, reinterpret_cast<void**>(&worker)); in Terminate()
737 napi_value thisVar = nullptr; in CancelTask() local
738 napi_get_cb_info(env, cbinfo, nullptr, nullptr, &thisVar, nullptr); in CancelTask()
[all …]
Dworker.h92 Worker(napi_env env, napi_ref thisVar);
Dworker_new.h92 NewWorker(napi_env env, napi_ref thisVar);
/commonlibrary/ets_utils/js_concurrent_module/test/
Dtest_concurrent.cpp112 napi_value thisVar; in __anonf97c62d50202() local
121 napi_get_cb_info(env, info, &argc, argv, &thisVar, &data); in __anonf97c62d50202()
181 napi_value thisVar; in __anonf97c62d50302() local
190 napi_get_cb_info(env, info, &argc, argv, &thisVar, &data); in __anonf97c62d50302()
223 napi_value thisVar; in __anonf97c62d50402() local
232 napi_get_cb_info(env, info, &argc, argv, &thisVar, &data); in __anonf97c62d50402()
451 napi_value thisVar = nullptr; in __anonf97c62d50502() local
452 napi_get_cb_info(env, info, nullptr, nullptr, &thisVar, nullptr); in __anonf97c62d50502()
454 return thisVar; in __anonf97c62d50502()
/commonlibrary/ets_utils/js_api_module/xml/test/
Dtest_xml.cpp45 napi_value thisVar = nullptr; in Method() local
48 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, nullptr, &thisVar, nullptr)); in Method()
49 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, &thisVar, nullptr)); in Method()
75 napi_value thisVar = nullptr; in TokenValueCallbackFunction() local
78 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, nullptr, &thisVar, nullptr)); in TokenValueCallbackFunction()
79 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, &thisVar, nullptr)); in TokenValueCallbackFunction()
95 napi_call_function(env, thisVar, value3, 0, nullptr, &returnVal); in TokenValueCallbackFunction()
104 napi_value thisVar = nullptr; in TokenValueCallbackFunc() local
107 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, nullptr, &thisVar, nullptr)); in TokenValueCallbackFunc()
108 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, &thisVar, nullptr)); in TokenValueCallbackFunc()
[all …]
/commonlibrary/ets_utils/js_sys_module/timer/
Dtimer.cpp173 napi_value thisVar = nullptr; in SetTimeoutInner() local
174 napi_get_cb_info(env, cbinfo, &argc, argv, &thisVar, nullptr); in SetTimeoutInner()
/commonlibrary/ets_utils/js_sys_module/test/unittest/
Dtest_process.cpp52 napi_value thisVar = nullptr; in Method() local
55 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, nullptr, &thisVar, nullptr)); in Method()
56 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, &thisVar, nullptr)); in Method()