Home
last modified time | relevance | path

Searched refs:script (Results 1 - 5 of 5) sorted by relevance

/commonlibrary/ets_utils/js_concurrent_module/common/helper/
H A Dpath_helper.h41 static bool CheckWorkerPath(napi_env env, std::string script, std::string fileName, bool isRelativePath) in CheckWorkerPath() argument
46 if (script.find(PAG_TAG) == 0 || script.find(NAME_SPACE_TAG) != std::string::npos) { in CheckWorkerPath()
53 return CheckNormalizedWorkerPath(env, script, fileName, isRelativePath); in CheckWorkerPath()
55 size_t prev = script.find_first_of(SLASH_TAG); in CheckWorkerPath()
56 while (prev == 0 && script != "") { in CheckWorkerPath()
57 script = script.substr(1); in CheckWorkerPath()
58 prev = script.find_first_of(SLASH_TAG); in CheckWorkerPath()
62 bundleName = script in CheckWorkerPath()
84 CheckNormalizedWorkerPath(napi_env env, std::string script, std::string fileName, bool isRelativePath) CheckNormalizedWorkerPath() argument
113 ConcatFileNameForWorker(napi_env env, std::string &script, std::string &fileName, bool &isRelativePath) ConcatFileNameForWorker() argument
[all...]
/commonlibrary/ets_utils/js_concurrent_module/worker/test/
H A Dtest_worker.cpp973 std::string script = "entry/ets/workers/@worker.ts"; in Worker_Constructor() local
974 napi_create_string_utf8(env, script.c_str(), script.length(), &argv[0]); in Worker_Constructor()
1690 std::string script = "entry/ets/workers/@worker.ts"; in HWTEST_F() local
1691 napi_create_string_utf8(workerEnv, script.c_str(), script.length(), &argv[0]); in HWTEST_F()
1731 std::string script = "entry/ets/workers/@worker.ts"; in HWTEST_F() local
1732 napi_create_string_utf8(workerEnv, script.c_str(), script.length(), &argv[0]); in HWTEST_F()
2006 std::string script in HWTEST_F() local
2053 std::string script = "entry/ets/workers/@worker.ts"; HWTEST_F() local
2100 std::string script = "entry/ets/workers/@worker.ts"; HWTEST_F() local
2147 std::string script = "entry/ets/workers/@worker.ts"; HWTEST_F() local
2205 std::string script = "entry/ets/workers/@worker.ts"; HWTEST_F() local
2238 std::string script = "entry/ets/workers/@worker.ts"; HWTEST_F() local
2292 int32_t script = 200; HWTEST_F() local
2346 std::string script = "entry/ets/workers/@worker.ts"; HWTEST_F() local
2370 std::string script = "entry/ets/workers/@worker.ts"; HWTEST_F() local
[all...]
/commonlibrary/ets_utils/js_concurrent_module/worker/
H A Dworker.cpp289 char* script = NapiHelper::GetChars(env, args[0]); in Constructor() local
290 if (script == nullptr) { in Constructor()
298 worker->StartExecuteInThread(env, script); in Constructor()
1208 void Worker::StartExecuteInThread(napi_env env, const char* script) in StartExecuteInThread() argument
1215 CloseHelp::DeletePointer(script, true); in StartExecuteInThread()
1230 // 2. copy the script in StartExecuteInThread()
1231 script_ = std::string(script); in StartExecuteInThread()
1246 HILOG_ERROR("worker:: the file path is invaild, can't find the file : %{public}s.", script); in StartExecuteInThread()
1247 CloseHelp::DeletePointer(script, true); in StartExecuteInThread()
1263 CloseHelp::DeletePointer(script, tru in StartExecuteInThread()
[all...]
H A Dworker.h99 * @param thisVar URL of the script to be executed by the worker.
380 void StartExecuteInThread(napi_env env, const char* script);
/commonlibrary/ets_utils/js_concurrent_module/test/
H A Dtest_concurrent.cpp375 char* script = NapiHelper::GetChars(env, value); in HWTEST_F() local
376 size_t len = strlen(script); in HWTEST_F()
377 delete[] script; in HWTEST_F()

Completed in 25 milliseconds