/commonlibrary/ets_utils/js_api_module/url/ |
H A D | native_module_url.cpp | 31 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() 98 napi_value thisVar = nullptr;
in UrlConstructor() local 103 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, nullptr, &thisVar, &data));
in UrlConstructor() 105 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, argv, &thisVar, &data));
in UrlConstructor() 134 env, thisVar, object,
in UrlConstructor() 142 return thisVar;
in UrlConstructor() 147 napi_value thisVar = nullptr;
in GetHostname() local 148 NAPI_CALL(env, napi_get_cb_info(env, info, nullptr, nullptr, &thisVar, nullpt in GetHostname() 157 napi_value thisVar = nullptr; GetSearch() local 167 napi_value thisVar = nullptr; GetUsername() local 177 napi_value thisVar = nullptr; GetPassword() local 187 napi_value thisVar = nullptr; GetUrlFragment() local 197 napi_value thisVar = nullptr; GetUrlScheme() local 207 napi_value thisVar = nullptr; GetUrlPort() local 217 napi_value thisVar = nullptr; GetUrlHost() local 227 napi_value thisVar = nullptr; GetUrlPath() local 237 napi_value thisVar = nullptr; GetOnOrOff() local 247 napi_value thisVar = nullptr; GetIsIpv6() local 257 napi_value thisVar = nullptr; SetHref() local 282 napi_value thisVar = nullptr; SetHostname() local 307 napi_value thisVar = nullptr; SetUrlPort() local 332 napi_value thisVar = nullptr; SetUrlHost() local 357 napi_value thisVar = nullptr; SetSearch() local 382 napi_value thisVar = nullptr; SetUrlScheme() local 407 napi_value thisVar = nullptr; SetUrlFragment() local 432 napi_value thisVar = nullptr; SetUsername() local 457 napi_value thisVar = nullptr; SetUrlPath() local 482 napi_value thisVar = nullptr; SetPassword() local 507 napi_value thisVar = nullptr; SeachParamsConstructor() local 529 napi_value thisVar = nullptr; SetArray() local 566 napi_value thisVar = nullptr; GetArray() local 576 napi_value thisVar = nullptr; Get() local 595 napi_value thisVar = nullptr; GetAll() local 614 napi_value thisVar = nullptr; Append() local 634 napi_value thisVar = nullptr; Delete() local 653 napi_value thisVar = nullptr; Entries() local 668 napi_value thisVar = nullptr; IsHas() local 680 napi_value thisVar = nullptr; Set() local 695 napi_value thisVar = nullptr; Sort() local 710 napi_value thisVar = nullptr; IterByKeys() local 725 napi_value thisVar = nullptr; IterByValues() local 823 napi_value thisVar = nullptr; StringParmas() local 852 napi_value thisVar = nullptr; FixUSVstring() local [all...] |
/commonlibrary/ets_utils/js_sys_module/process/ |
H A D | native_module_process.cpp | 83 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_cas in GetOutput() 136 napi_value thisVar = nullptr; Close() local 150 napi_value thisVar = nullptr; GetErrorOutput() local 163 napi_value thisVar = nullptr; Kill() local 189 napi_value thisVar = nullptr; GetKilled() local 201 napi_value thisVar = nullptr; Getpid() local 213 napi_value thisVar = nullptr; Getppid() local 225 napi_value thisVar = nullptr; GetExitCode() local 237 napi_value thisVar = nullptr; RunCommand() local 311 napi_value thisVar = nullptr; Chdir() local 344 napi_value thisVar = nullptr; Exit() local 359 napi_value thisVar = nullptr; On() local 384 napi_value thisVar = nullptr; Off() local 403 napi_value thisVar = nullptr; KillSig() local 425 napi_value thisVar = nullptr; IsAppUid() local 444 napi_value thisVar = nullptr; GetUidForName() local 457 napi_value thisVar = nullptr; GetThreadPriority() local 482 napi_value thisVar = nullptr; GetSystemConfig() local 495 napi_value thisVar = nullptr; GetEnvironmentVar() local 526 GetValueFromInfo(napi_env env, napi_callback_info info, napi_value &thisVar) GetValueFromInfo() argument 538 napi_value thisVar = nullptr; KillSigOfProcess() local 554 napi_value thisVar = nullptr; ExitOfProcess() local 570 napi_value thisVar = nullptr; GetSystemConfigOfProcess() local 584 napi_value thisVar = nullptr; GetThreadPriorityOfProcess() local 598 napi_value thisVar = nullptr; GetUidForNameOfProcess() local 612 napi_value thisVar = nullptr; IsAppUidOfProcess() local 626 napi_value thisVar = nullptr; GetEnvironmentVarOfProcess() local 640 napi_value thisVar = nullptr; ProcessManagerConstructor() local [all...] |
/commonlibrary/ets_utils/js_util_module/util/ |
H A D | native_module_util.cpp | 271 napi_value thisVar = nullptr;
in GetErrorString() local 276 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, &argv, &thisVar, nullptr));
in GetErrorString() 286 napi_value thisVar = nullptr;
in RandomUUID() local 290 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, &thisVar, nullptr));
in RandomUUID() 303 napi_value thisVar = nullptr;
in RandomBinaryUUID() local 307 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, &thisVar, nullptr));
in RandomBinaryUUID() 317 napi_value thisVar = nullptr;
in ParseUUID() local 321 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, &thisVar, nullptr));
in ParseUUID() 332 napi_value thisVar = nullptr;
in GetHash() local 336 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, &thisVar, nullpt in GetHash() 356 napi_value thisVar = nullptr; TextdecoderConstructor() local 412 napi_value thisVar = nullptr; DecodeToString() local 465 napi_value thisVar = nullptr; TextdecoderDecode() local 535 napi_value thisVar = nullptr; TextEncoderConstructor() local 587 napi_value thisVar = nullptr; GetEncoding() local 598 napi_value thisVar = nullptr; Encode() local 628 napi_value thisVar = nullptr; EncodeIntoOne() local 654 napi_value thisVar = nullptr; EncodeIntoTwo() local 685 napi_value thisVar = nullptr; EncodeIntoUint8Array() local 777 napi_value thisVar = nullptr; Base64Constructor() local 795 napi_value thisVar = nullptr; EncodeBase64() local 816 napi_value thisVar = nullptr; EncodeToString() local 837 napi_value thisVar = nullptr; DecodeBase64() local 866 napi_value thisVar = nullptr; EncodeAsync() local 887 napi_value thisVar = nullptr; EncodeToStringAsync() local 907 napi_value thisVar = nullptr; DecodeAsync() local 938 napi_value thisVar = nullptr; EncodeToStringHelper() local 956 napi_value thisVar = nullptr; EncodeBase64Helper() local 973 napi_value thisVar = nullptr; EncodeAsyncHelper() local 987 napi_value thisVar = nullptr; EncodeToStringAsyncHelper() local 1002 napi_value thisVar = nullptr; DecodeBase64Helper() local 1020 napi_value thisVar = nullptr; DecodeAsyncHelper() local 1033 napi_value thisVar = nullptr; TypesConstructor() local 1051 napi_value thisVar = nullptr; IsAnyArrayBuffer() local 1063 napi_value thisVar = nullptr; IsArrayBufferView() local 1075 napi_value thisVar = nullptr; IsArgumentsObject() local 1087 napi_value thisVar = nullptr; IsArrayBuffer() local 1099 napi_value thisVar = nullptr; IsAsyncFunction() local 1111 napi_value thisVar = nullptr; IsBigInt64Array() local 1123 napi_value thisVar = nullptr; IsBigUint64Array() local 1135 napi_value thisVar = nullptr; IsBooleanObject() local 1147 napi_value thisVar = nullptr; IsBoxedPrimitive() local 1159 napi_value thisVar = nullptr; IsDataView() local 1171 napi_value thisVar = nullptr; IsDate() local 1183 napi_value thisVar = nullptr; IsExternal() local 1195 napi_value thisVar = nullptr; IsFloat32Array() local 1207 napi_value thisVar = nullptr; IsFloat64Array() local 1219 napi_value thisVar = nullptr; IsGeneratorFunction() local 1231 napi_value thisVar = nullptr; IsGeneratorObject() local 1245 napi_value thisVar = nullptr; IsInt8Array() local 1259 napi_value thisVar = nullptr; IsInt16Array() local 1273 napi_value thisVar = nullptr; IsInt32Array() local 1287 napi_value thisVar = nullptr; IsMap() local 1301 napi_value thisVar = nullptr; IsMapIterator() local 1315 napi_value thisVar = nullptr; IsModuleNamespaceObject() local 1329 napi_value thisVar = nullptr; IsNativeError() local 1343 napi_value thisVar = nullptr; IsNumberObject() local 1357 napi_value thisVar = nullptr; IsPromise() local 1371 napi_value thisVar = nullptr; IsProxy() local 1385 napi_value thisVar = nullptr; IsRegExp() local 1399 napi_value thisVar = nullptr; IsSet() local 1413 napi_value thisVar = nullptr; IsSetIterator() local 1427 napi_value thisVar = nullptr; IsSharedArrayBuffer() local 1441 napi_value thisVar = nullptr; IsStringObject() local 1455 napi_value thisVar = nullptr; IsSymbolObject() local 1469 napi_value thisVar = nullptr; IsTypedArray() local 1483 napi_value thisVar = nullptr; IsUint8Array() local 1497 napi_value thisVar = nullptr; IsUint8ClampedArray() local 1511 napi_value thisVar = nullptr; IsUint16Array() local 1525 napi_value thisVar = nullptr; IsUint32Array() local 1539 napi_value thisVar = nullptr; IsWeakMap() local 1553 napi_value thisVar = nullptr; IsWeakSet() local 1569 napi_value thisVar = nullptr; StringDecoderConstructor() local 1612 napi_value thisVar = nullptr; Write() local 1628 napi_value thisVar = nullptr; End() local [all...] |
/commonlibrary/ets_utils/js_api_module/uri/ |
H A D | native_module_uri.cpp | 31 napi_value thisVar = nullptr;
in UriConstructor() local 36 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, argv, &thisVar, &data));
in UriConstructor() 51 NAPI_CALL(env, napi_wrap(env, thisVar, object,
in UriConstructor() 58 return thisVar;
in UriConstructor() 63 napi_value thisVar = nullptr;
in Normalize() local 64 NAPI_CALL(env, napi_get_cb_info(env, info, nullptr, nullptr, &thisVar, nullptr));
in Normalize() 66 NAPI_CALL(env, napi_unwrap(env, thisVar, reinterpret_cast<void**>(&muri)));
in Normalize() 76 napi_value thisVar = nullptr;
in Equals() local 80 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, argv, &thisVar, nullptr));
in Equals() 83 NAPI_CALL(env, napi_unwrap(env, thisVar, reinterpret_cas in Equals() 94 napi_value thisVar = nullptr; IsAbsolute() local 106 napi_value thisVar = nullptr; IsFailed() local 119 napi_value thisVar = nullptr; UriToString() local 132 napi_value thisVar = nullptr; IsRelative() local 144 napi_value thisVar = nullptr; IsOpaque() local 156 napi_value thisVar = nullptr; IsHierarchical() local 168 napi_value thisVar = nullptr; AddQueryValue() local 197 napi_value thisVar = nullptr; AddSegment() local 221 napi_value thisVar = nullptr; GetSegment() local 243 napi_value thisVar = nullptr; GetScheme() local 260 napi_value thisVar = nullptr; GetAuthority() local 277 napi_value thisVar = nullptr; GetSsp() local 290 napi_value thisVar = nullptr; GetUserinfo() local 307 napi_value thisVar = nullptr; GetHost() local 324 napi_value thisVar = nullptr; GetPort() local 337 napi_value thisVar = nullptr; GetPath() local 354 napi_value thisVar = nullptr; GetQuery() local 371 napi_value thisVar = nullptr; GetFragment() local 388 napi_value thisVar = nullptr; ClearQuery() local [all...] |
/commonlibrary/ets_utils/js_api_module/xml/ |
H A D | native_module_xml.cpp | 27 napi_value thisVar = nullptr; in XmlSerializerConstructor() local 35 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, &thisVar, &data)); in XmlSerializerConstructor() 74 env, thisVar, object, in XmlSerializerConstructor() 82 return thisVar; in XmlSerializerConstructor() 119 napi_value thisVar = nullptr; in XmlPullParserConstructor() local 124 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, &thisVar, &data)); in XmlPullParserConstructor() 166 env, thisVar, object, in XmlPullParserConstructor() 174 return thisVar; in XmlPullParserConstructor() 179 napi_value thisVar = nullptr; in SetAttributes() local 182 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, &thisVar, nullpt in SetAttributes() 203 napi_value thisVar = nullptr; AddEmptyElement() local 225 napi_value thisVar = nullptr; SetDeclaration() local 239 napi_value thisVar = nullptr; StartElement() local 254 napi_value thisVar = nullptr; EndElement() local 266 napi_value thisVar = nullptr; SetNamespace() local 290 napi_value thisVar = nullptr; SetComment() local 310 napi_value thisVar = nullptr; SetCData() local 330 napi_value thisVar = nullptr; SetText() local 350 napi_value thisVar = nullptr; SetDocType() local 369 napi_value thisVar = nullptr; XmlSerializerError() local 408 napi_value thisVar = nullptr; Parse() local 427 napi_value thisVar = nullptr; XmlPullParserError() local [all...] |
H A D | js_xml.cpp | 497 bool XmlPullParser::ParseToken(napi_env env, napi_value thisVar) const in ParseToken() 520 napi_set_named_property(env, parseInfo, "MainInfo", thisVar); in ParseToken() 532 bool XmlPullParser::ParseAttri(napi_env env, napi_value thisVar) const in ParseAttri() 545 napi_value argv[3] = {key, value, thisVar}; in ParseAttri() 556 void XmlPullParser::Parse(napi_env env, napi_value thisVar) in Parse() argument 573 napi_value argv[3] = {key, value, thisVar}; in Parse() 581 bRec = ParseToken(env, thisVar); in Parse() 587 bRec = ParseAttri(env, thisVar); in Parse() 1755 napi_value thisVar = nullptr; in GetColumnNumber() local 1757 NAPI_CALL(env, napi_get_cb_info(env, info, nullptr, nullptr, &thisVar, nullpt in GetColumnNumber() 1771 napi_value thisVar = nullptr; GetDepth() local 1787 napi_value thisVar = nullptr; GetLineNumber() local 1803 napi_value thisVar = nullptr; GetName() local 1819 napi_value thisVar = nullptr; GetNamespace() local 1835 napi_value thisVar = nullptr; GetPrefix() local 1851 napi_value thisVar = nullptr; GetText() local 1867 napi_value thisVar = nullptr; IsEmptyElementTag() local 1883 napi_value thisVar = nullptr; IsWhitespace() local 1899 napi_value thisVar = nullptr; GetAttributeCount() local [all...] |
H A D | js_xml.h | 339 void Parse(napi_env env, napi_value thisVar); 372 bool ParseAttri(napi_env env, napi_value thisVar) const; 373 bool ParseToken(napi_env env, napi_value thisVar) const;
|
/commonlibrary/ets_utils/js_api_module/buffer/ |
H A D | native_module_buffer.cpp | 94 static napi_value FromStringUtf8(napi_env env, napi_value thisVar, napi_value str) in FromStringUtf8() argument 98 NAPI_CALL(env, napi_unwrap(env, thisVar, reinterpret_cast<void **>(&buffer))); in FromStringUtf8() 101 return thisVar; in FromStringUtf8() 104 static napi_value FromStringASCII(napi_env env, napi_value thisVar, napi_value str, uint32_t size) in FromStringASCII() argument 108 NAPI_CALL(env, napi_unwrap(env, thisVar, reinterpret_cast<void **>(&buffer))); in FromStringASCII() 111 return thisVar; in FromStringASCII() 121 static napi_value FromStringUtf16LE(napi_env env, napi_value thisVar, napi_value str) in FromStringUtf16LE() argument 125 NAPI_CALL(env, napi_unwrap(env, thisVar, reinterpret_cast<void **>(&buffer))); in FromStringUtf16LE() 130 return thisVar; in FromStringUtf16LE() 140 static napi_value FromStringBase64(napi_env env, napi_value thisVar, napi_valu argument 157 FromStringHex(napi_env env, napi_value thisVar, napi_value str) FromStringHex() argument 172 napi_value thisVar = nullptr; FromString() local 235 napi_value thisVar = nullptr; BlobConstructor() local 278 GetBufferWrapValue(napi_env env, napi_value thisVar, Buffer *buffer) GetBufferWrapValue() argument 401 napi_value thisVar = nullptr; BufferConstructor() local 422 napi_value thisVar = nullptr; GetValueOffsetAndBuf() local 437 napi_value thisVar = nullptr; GetOffsetAndBuf() local 477 napi_value thisVar = nullptr; SetArray() local 498 napi_value thisVar = nullptr; GetLength() local 510 napi_value thisVar = nullptr; GetByteOffset() local 522 napi_value thisVar = nullptr; WriteString() local 552 napi_value thisVar = nullptr; FillString() local 579 napi_value thisVar = nullptr; FillNumbers() local 604 napi_value thisVar = nullptr; FillBuffer() local 630 napi_value thisVar = nullptr; Utf8ByteLength() local 645 napi_value thisVar = nullptr; GetBufferData() local 671 napi_value thisVar = nullptr; GetArrayBuffer() local 685 napi_value thisVar = nullptr; Get() local 702 napi_value thisVar = nullptr; Set() local 801 napi_value thisVar = nullptr; SubBuffer() local 824 napi_value thisVar = nullptr; Copy() local 851 napi_value thisVar = nullptr; Compare() local 882 napi_value thisVar = nullptr; ToUtf8() local 904 napi_value thisVar = nullptr; ToBase64() local 923 napi_value thisVar = nullptr; ToBase64Url() local 974 napi_value thisVar = nullptr; IndexOf() local 1016 napi_value thisVar = nullptr; Utf8StringToNumbers() local 1065 napi_value thisVar = nullptr; ArrayBufferAsync() local 1092 napi_value thisVar = nullptr; TextAsync() local 1116 napi_value thisVar = nullptr; GetBytes() local [all...] |
/commonlibrary/ets_utils/js_concurrent_module/taskpool/ |
H A D | sequence_runner.cpp | 30 void SequenceRunner::SeqRunnerConstructorInner(napi_env env, napi_value &thisVar, SequenceRunner *seqRunner) in SeqRunnerConstructorInner() argument 40 napi_define_properties(env, thisVar, sizeof(properties) / sizeof(properties[0]), properties); in SeqRunnerConstructorInner() 45 napi_wrap(env, thisVar, seqRunner, SequenceRunnerDestructor, nullptr, nullptr); in SeqRunnerConstructorInner() 53 napi_value thisVar; in SeqRunnerConstructor() local 54 napi_get_cb_info(env, cbinfo, &argc, args, &thisVar, nullptr); in SeqRunnerConstructor() 88 seqRunner = SequenceRunnerManager::GetInstance().CreateOrGetGlobalRunner(env, thisVar, argc, name, priority); in SeqRunnerConstructor() 96 napi_create_reference(env, thisVar, 0, &seqRunner->seqRunnerRef_); in SeqRunnerConstructor() 99 SeqRunnerConstructorInner(env, thisVar, seqRunner); in SeqRunnerConstructor() 100 return thisVar; in SeqRunnerConstructor() 107 napi_value thisVar; in Execute() local [all...] |
H A D | task_group.cpp | 31 napi_value thisVar; in TaskGroupConstructor() local 32 napi_get_cb_info(env, cbinfo, &argc, args, &thisVar, nullptr); in TaskGroupConstructor() 55 DECLARE_NAPI_FUNCTION_WITH_DATA("addTask", AddTask, thisVar), in TaskGroupConstructor() 57 napi_set_named_property(env, thisVar, NAME, name); in TaskGroupConstructor() 58 napi_define_properties(env, thisVar, sizeof(properties) / sizeof(properties[0]), properties); in TaskGroupConstructor() 59 napi_wrap(env, thisVar, group, TaskGroupDestructor, nullptr, nullptr); in TaskGroupConstructor() 60 napi_create_reference(env, thisVar, 0, &group->groupRef_); in TaskGroupConstructor() 61 return thisVar; in TaskGroupConstructor() 85 napi_value thisVar; in AddTask() local 86 napi_get_cb_info(env, cbinfo, &argc, args, &thisVar, nullpt in AddTask() [all...] |
H A D | task.cpp | 54 napi_value thisVar = nullptr; in TaskConstructor() local 57 napi_get_cb_info(env, cbinfo, &argc, args, &thisVar, nullptr); in TaskConstructor() 77 Task* task = GenerateTask(env, thisVar, func, name, args, argc); in TaskConstructor() 79 napi_wrap(env, thisVar, task, TaskDestructor, nullptr, nullptr); in TaskConstructor() 80 napi_create_reference(env, thisVar, 0, &task->taskRef_); in TaskConstructor() 84 return thisVar; in TaskConstructor() 89 auto thisVar = TaskConstructor(env, cbinfo); in LongTaskConstructor() local 91 napi_unwrap(env, thisVar, reinterpret_cast<void**>(&task)); in LongTaskConstructor() 93 return thisVar; in LongTaskConstructor() 264 napi_value thisVar; in SetTransferList() local 321 napi_value thisVar; SetCloneList() local 390 napi_value thisVar; OnReceiveData() local 705 napi_value thisVar; OnEnqueued() local 742 napi_value thisVar; OnStartExecution() local 792 napi_value thisVar; OnExecutionFailed() local 830 napi_value thisVar; OnExecutionSucceeded() local 867 napi_value thisVar = nullptr; IsDone() local 884 napi_value thisVar = nullptr; GetTaskDuration() local 913 napi_value thisVar = nullptr; GetName() local [all...] |
H A D | sequence_runner.h | 41 static void SeqRunnerConstructorInner(napi_env env, napi_value &thisVar, SequenceRunner *seqRunner);
|
H A D | task_manager.h | 289 SequenceRunner* CreateOrGetGlobalRunner(napi_env env, napi_value thisVar, size_t argc,
|
H A D | task_manager.cpp | 1705 SequenceRunner* SequenceRunnerManager::CreateOrGetGlobalRunner(napi_env env, napi_value thisVar, size_t argc, in CreateOrGetGlobalRunner() argument 1731 napi_create_reference(env, thisVar, 0, &gloableSeqRunnerRef); in CreateOrGetGlobalRunner()
|
/commonlibrary/ets_utils/js_api_module/convertxml/ |
H A D | native_module_convertxml.cpp | 28 napi_value thisVar = nullptr;
in ConvertXmlConstructor() local 30 napi_get_cb_info(env, info, nullptr, nullptr, &thisVar, &data);
in ConvertXmlConstructor() 37 env, thisVar, objectInfo,
in ConvertXmlConstructor() 45 return thisVar;
in ConvertXmlConstructor() 50 napi_value thisVar = nullptr;
in Convert() local 55 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, &thisVar, nullptr));
in Convert() 61 NAPI_CALL(env, napi_unwrap(env, thisVar, reinterpret_cast<void**>(&object)));
in Convert()
|
/commonlibrary/ets_utils/js_concurrent_module/utils/locks/ |
H A D | async_lock_manager.cpp | 41 napi_value thisVar; in AsyncLockOptionsCtor() local 42 NAPI_CALL(env, napi_get_cb_info(env, cbinfo, nullptr, nullptr, &thisVar, nullptr)); in AsyncLockOptionsCtor() 56 NAPI_CALL(env, napi_define_properties(env, thisVar, sizeof(properties) / sizeof(properties[0]), properties)); in AsyncLockOptionsCtor() 58 return thisVar; in AsyncLockOptionsCtor() 160 napi_value thisVar; in Constructor() local 161 NAPI_CALL(env, napi_get_cb_info(env, cbinfo, &argc, args.get(), &thisVar, nullptr)); in Constructor() 191 DECLARE_NAPI_FUNCTION_WITH_DATA("lockAsync", LockAsync, thisVar), in Constructor() 193 NAPI_CALL(env, napi_define_properties(env, thisVar, sizeof(properties) / sizeof(properties[0]), properties)); in Constructor() 194 NAPI_CALL(env, napi_wrap_sendable(env, thisVar, data, Destructor, nullptr)); in Constructor() 196 return thisVar; in Constructor() 240 napi_value thisVar; LockAsync() local [all...] |
/commonlibrary/ets_utils/js_concurrent_module/worker/ |
H A D | worker.cpp | 60 Worker::Worker(napi_env env, napi_ref thisVar) in Worker() argument 61 : hostEnv_(env), workerRef_(thisVar) in Worker() 207 napi_value thisVar = nullptr; in Constructor() local 211 napi_get_cb_info(env, cbinfo, &argc, args, &thisVar, &data); in Constructor() 297 napi_wrap(env, thisVar, worker, WorkerDestructor, nullptr, &worker->workerRef_); in Constructor() 299 return thisVar; in Constructor() 426 napi_value thisVar = nullptr; in CommonPostMessage() local 427 napi_get_cb_info(env, cbinfo, &argc, argv, &thisVar, nullptr); in CommonPostMessage() 429 napi_unwrap(env, thisVar, reinterpret_cast<void**>(&worker)); in CommonPostMessage() 463 napi_value thisVar in Terminate() local 506 napi_value thisVar = nullptr; RegisterGlobalCallObject() local 537 napi_value thisVar = nullptr; UnregisterGlobalCallObject() local 590 napi_value thisVar = nullptr; AddListener() local 639 napi_value thisVar = nullptr; RemoveListener() local 694 napi_value thisVar = nullptr; DispatchEvent() local 747 napi_value thisVar = nullptr; RemoveAllListener() local 763 napi_value thisVar = nullptr; CancelTask() local 2168 napi_value thisVar = NapiHelper::GetReferenceValue(hostEnv_, workerRef_); ReleaseHostThreadContent() local [all...] |
H A D | worker.h | 99 * @param thisVar URL of the script to be executed by the worker. 101 Worker(napi_env env, napi_ref thisVar); 140 * @param thisVar The callback information of the js layer. 148 * @param thisVar The callback information of the js layer. 156 * @param thisVar The callback information of the js layer. 172 * @param thisVar The callback information of the js layer. 180 * @param thisVar The callback information of the js layer.
|
/commonlibrary/ets_utils/js_concurrent_module/test/ |
H A D | test_concurrent.cpp | 150 napi_value thisVar; in HWTEST_F() 159 napi_get_cb_info(env, info, &argc, argv, &thisVar, &data); in HWTEST_F() 219 napi_value thisVar; in HWTEST_F() 228 napi_get_cb_info(env, info, &argc, argv, &thisVar, &data); in HWTEST_F() 261 napi_value thisVar; in HWTEST_F() 270 napi_get_cb_info(env, info, &argc, argv, &thisVar, &data); in HWTEST_F() 524 napi_value thisVar = nullptr; in HWTEST_F() 525 napi_get_cb_info(env, info, nullptr, nullptr, &thisVar, nullptr); in HWTEST_F() 527 return thisVar; in HWTEST_F()
|
/commonlibrary/ets_utils/js_sys_module/timer/ |
H A D | timer.cpp | 241 napi_value thisVar = nullptr; in SetTimeoutInner() local 242 napi_get_cb_info(env, cbinfo, &argc, argv, &thisVar, nullptr); in SetTimeoutInner()
|
/commonlibrary/ets_utils/js_api_module/xml/test/ |
H A D | test_xml.cpp | 45 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, nullpt in TokenValueCallbackFunc() [all...] |
/commonlibrary/ets_utils/js_sys_module/test/ |
H A D | test_process.cpp | 52 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()
|
/commonlibrary/ets_utils/js_concurrent_module/taskpool/test/ |
H A D | test_taskpool.cpp | 40 napi_value GeneratorTask(napi_env env, napi_value thisVar) in GeneratorTask() argument 49 napi_call_function(env, thisVar, cb, 1, argv, &task); in GeneratorTask() 53 napi_value GeneratorTaskGroup(napi_env env, napi_value thisVar) in GeneratorTaskGroup() argument 60 napi_call_function(env, thisVar, cb, 0, argv, &group); in GeneratorTaskGroup() 64 napi_value GeneratorTaskGroupWithName(napi_env env, napi_value thisVar, const char* name) in GeneratorTaskGroupWithName() argument 73 napi_call_function(env, thisVar, cb, 1, argv, &group); in GeneratorTaskGroupWithName() 2382 napi_value thisVar = NapiHelper::CreateObject(env); in HWTEST_F() local 2383 napi_value taskGroupResult = GeneratorTaskGroup(env, thisVar); in HWTEST_F() 2403 napi_value thisVar = NapiHelper::CreateObject(env); in HWTEST_F() local 2404 napi_value taskGroupResult = GeneratorTaskGroup(env, thisVar); in HWTEST_F() 2437 napi_value thisVar = NapiHelper::CreateObject(env); HWTEST_F() local 4274 napi_value thisVar = NapiHelper::CreateObject(env); HWTEST_F() local 4295 napi_value thisVar = NapiHelper::CreateObject(env); HWTEST_F() local 4581 napi_value thisVar = NapiHelper::CreateObject(env); HWTEST_F() local [all...] |
H A D | test.cpp | 49 napi_value thisVar = nullptr;
in CreateSendableClass() 50 napi_get_cb_info(env, info, nullptr, nullptr, &thisVar, nullptr);
in CreateSendableClass() 51 return thisVar;
in CreateSendableClass()
|