/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/common/helper/ |
H A D | path_helper.h | 46 if (script.find(PAG_TAG) == 0 || script.find(NAME_SPACE_TAG) != std::string::npos) { in CheckWorkerPath() 56 while (prev == 0 && script != "") { in CheckWorkerPath() 57 script = script.substr(1); in CheckWorkerPath() 69 ohmurl = PREFIX_BUNDLE + script; in CheckWorkerPath() 77 script = script.substr(0, prev); in CheckWorkerPath() 94 ohmurl = script; in CheckNormalizedWorkerPath() 98 script = script.substr(0, prev); in CheckNormalizedWorkerPath() 104 path = script.substr(prev); in CheckNormalizedWorkerPath() 127 script = moduleName + script; in ConcatFileNameForWorker() 128 script = NormalizePath(script); // remove ../ and .ets in ConcatFileNameForWorker() [all …]
|
/ohos5.0/base/update/updater/test/unittest/script/ |
H A D | BUILD.gn | 57 "${updater_path}/services/include/script", 62 "${updater_path}/services/script/script_instruction", 63 "${updater_path}/services/script/script_interpreter", 64 "${updater_path}/services/script/script_manager", 65 "${updater_path}/services/script/threadpool", 75 "${updater_path}/services/script:gen_yacc", 80 "${updater_path}/test/unittest/script:user_instruction", 110 "${updater_path}/services/include/script", 111 "${updater_path}/services/script/script_instruction", 129 "${updater_path}/services/include/script", [all …]
|
/ohos5.0/base/global/i18n_lite/frameworks/i18n/src/ |
H A D | locale_info.cpp | 61 if ((script != nullptr) && (LenCharArray(script) > 0)) { in InitIdstr() 62 idStr = idStr + "-" + script; in InitIdstr() 106 Init(o.language, o.script, o.region, status); in LocaleInfo() 120 I18nFree(static_cast<void *>(script)); in FreeResource() 132 ret = CompareLocaleItem(script, other.script); in operator ==() 149 if (o.script != nullptr) { in operator =() 150 script = NewArrayAndCopy(o.script, strlen(o.script)); in operator =() 171 return script; in GetScript() 245 if ((script != nullptr) && (LenCharArray(script) > 0)) { in GetMask() 246 if (strcmp(script, "Hans") == 0) { in GetMask() [all …]
|
/ohos5.0/base/update/updater/services/script/ |
H A D | BUILD.gn | 22 script = "${updater_path}/services/script/generate_yacc.py" 23 inputs = [ script ] 47 "${updater_path}/services/include/script", 63 "${updater_path}/services/include/script", 66 "${updater_path}/services/script/script_manager", 67 "${updater_path}/services/script/threadpool", 79 "${updater_path}/services/include/script", 81 "${updater_path}/services/script/script_manager", 82 "${updater_path}/services/script/threadpool", 118 "${updater_path}/services/script:gen_yacc", [all …]
|
/ohos5.0/base/update/updater/test/unittest/ |
H A D | BUILD.gn | 101 "${updater_path}/services/script/script_interpreter/script_context.cpp", 105 "${updater_path}/services/script/script_interpreter/script_param.cpp", 106 "${updater_path}/services/script/script_interpreter/script_scanner.cpp", 109 "${updater_path}/services/script/script_manager/script_utils.cpp", 110 "${updater_path}/services/script/threadpool/threadpool.cpp", 123 "${updater_path}/services/include/script", 127 "${updater_path}/services/script/script_instruction", 128 "${updater_path}/services/script/script_interpreter", 129 "${updater_path}/services/script/script_manager", 130 "${updater_path}/services/script/threadpool", [all …]
|
/ohos5.0/docs/zh-cn/application-dev/web/ |
H A D | web-cross-origin.md | 8 Access to script at 'xxx' from origin 'xxx' has been blocked by CORS policy: Cross origin requests … 17 …script.js置于工程中的rawfile目录下。如果使用resource协议访问index.html,js/script.js将因跨域而被拦截,无法加载。在示例中,使用https:\//www… 31 ["https://www.example.com/js/script.js", "js/script.js"], 36 ["js/script.js", "text/javascript"] 88 <script crossorigin src="./js/script.js"></script> 94 // main/resources/rawfile/js/script.js 159 <script> 161 var file = "file:///data/storage/el1/bundle/entry/resources/resfile/js/script.js"; 182 </script> 196 // main/resources/rawfile/js/script.js
|
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/entrance/ |
H A D | ace_application_info.cpp | 66 auto script = Localization::ComputeScript(language, countryOrRegion); in ChangeLocale() local 67 resConfig->SetLocaleInfo(languageLower.c_str(), script.c_str(), countryOrRegionUpper.c_str()); in ChangeLocale() 70 SetLocale(languageLower, countryOrRegionUpper, (script.empty()) ? "" : script, ""); in ChangeLocale() 74 const std::string& script, const std::string& keywordsAndValues) in SetLocale() argument 78 script_ = script; in SetLocale() 94 …Localization::SetLocale(language_, countryOrRegion_, script, languageList.front(), keywordsAndValu… in SetLocale() 97 …Localization::SetLocale(language_, countryOrRegion_, script, selectLanguage.front(), keywordsAndVa… in SetLocale()
|
/ohos5.0/base/global/i18n/frameworks/intl/src/ |
H A D | locale_util.cpp | 58 uint32_t LocaleUtil::EncodeScript(const char *script) in EncodeScript() argument 60 if (IsStrEmpty(script)) { in EncodeScript() 64 …return ((uint8_t)script[0] << 24) | ((uint8_t)script[1] << 16) | ((uint8_t)script[2] << 8) | (uint… in EncodeScript() 78 uint64_t LocaleUtil::EncodeLocale(const char *language, const char *script, const char *region) in EncodeLocale() argument 81 uint32_t scriptData = EncodeScript(script); in EncodeLocale()
|
/ohos5.0/foundation/arkui/ace_engine/adapter/preview/entrance/ |
H A D | ace_application_info.cpp | 53 auto script = Localization::ComputeScript(language, countryOrRegion); in ChangeLocale() local 54 resConfig->SetLocaleInfo(languageLower.c_str(), script.c_str(), countryOrRegionUpper.c_str()); in ChangeLocale() 57 SetLocale(languageLower, countryOrRegionUpper, (script.empty()) ? "" : script, ""); in ChangeLocale() 61 const std::string& script, const std::string& keywordsAndValues) in SetLocale() argument 65 script_ = (!script.empty()) ? script : Localization::ComputeScript(language, countryOrRegion); in SetLocale()
|
/ohos5.0/docs/zh-cn/application-dev/napi/ |
H A D | use-jsvm-about-primitive.md | 76 let script: string = `coerceToBool("123")`; 78 let result = napitest.runJsVm(script); 132 let result = napitest.runJsVm(script); 185 let result = napitest.runJsVm(script); 238 let result = napitest.runJsVm(script); 305 let result = napitest.runJsVm(script); 314 let result = napitest.runJsVm(script); 372 let result = napitest.runJsVm(script); 380 let result = napitest.runJsVm(script); 439 let script: string = `getGlobal()` [all …]
|
H A D | use-jsvm-about-code-cache.md | 11 通过上述流程, 将会在使用 code cache 的那次编译中, 极大减少编译时间, 其原理为将编译完成的 script 序列化, 然后使用 code cache 编译时就不再需要重新解析/编译已经… 28 JSVM_Script script; 47 OH_JSVM_CompileScript(env, jsSrc, nullptr, 0, true, nullptr, &script); 51 OH_JSVM_RunScript(env, script, &result); 58 OH_JSVM_CreateCodeCache(env, script, &dataPtr, &length); 73 OH_JSVM_CompileScript(env, jsSrc, dataPtr, length, true, &cacheRejected, &script); 77 OH_JSVM_RunScript(env, script, &result); 107 …de cache 进行编译: `OH_JSVM_CompileScript(env, jsSrc, dataPtr, length, true, &cacheRejected, &script);`
|
/ohos5.0/docs/en/application-dev/web/ |
H A D | web-cross-origin.md | 7 Access to script at 'xxx' from origin 'xxx' has been blocked by CORS policy: Cross origin requests … 13 …script.js** files are stored in the **rawfile** folder of the project directory. If the resource p… 28 ["https://www.example.com/js/script.js", "js/script.js"], 33 ["js/script.js", "text/javascript"] 85 <script crossorigin src="./js/script.js"></script> 91 // main/resources/rawfile/js/script.js
|
/ohos5.0/drivers/peripheral/usb/test/moduletest/common/ |
H A D | usb_device_performance_test.cpp | 71 const string script = "usb_watch_process.sh"; variable 77 ASSERT_EQ(access(script.c_str(), F_OK), 0) << "ErrInfo: shell script not exists"; 78 if (access(script.c_str(), X_OK) == -1) { 79 system(("chmod +x " + script).c_str()); 82 ASSERT_EQ(system(("nohup sh " + script + " usbfn_host > /data/nohup.out &").c_str()), 0);
|
H A D | usb_host_performance_test.cpp | 72 const string script = "usb_watch_process.sh"; variable 78 ASSERT_EQ(access(script.c_str(), F_OK), 0) << "ErrInfo: shell script not exists"; 79 if (access(script.c_str(), X_OK) == -1) { 80 system(("chmod +x " + script).c_str()); 83 ASSERT_EQ(system(("nohup sh " + script + " pnp_host > /data/nohup.out &").c_str()), 0);
|
/ohos5.0/docs/en/application-dev/napi/ |
H A D | use-jsvm-about-code-cache.md | 11 …e code cache greatly reduces the compilation time because the serialized script in the code cache … 33 JSVM_Script script; 47 OH_JSVM_CompileScript(env, jsSrc, nullptr, 0, true, nullptr, &script); 51 OH_JSVM_RunScript(env, script, &result); 54 …// Save the script compiled from the JS source code to the cache to prevent repeated compilation a… 55 OH_JSVM_CreateCodeCache(env, script, dataPtr, lengthPtr); 70 OH_JSVM_CompileScript(env, jsSrc, dataPtr, length, true, &cacheRejected, &script); 74 OH_JSVM_RunScript(env, script, &result);
|
H A D | use-jsvm-about-primitive.md | 78 let result = napitest.runJsVm(script); 132 let result = napitest.runJsVm(script); 185 let result = napitest.runJsVm(script); 238 let result = napitest.runJsVm(script); 305 let result = napitest.runJsVm(script); 314 let result = napitest.runJsVm(script); 372 let result = napitest.runJsVm(script); 380 let result = napitest.runJsVm(script); 388 let result = napitest.runJsVm(script); 439 let script: string = `getGlobal()` [all …]
|
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/ |
H A D | utils.cpp | 111 const char *script, in EncodeLocale() argument 115 uint32_t scriptData = Utils::EncodeScript(script); in EncodeLocale() 167 uint32_t Utils::EncodeScript(const char *script) in EncodeScript() argument 169 if (Utils::IsStrEmpty(script)) { in EncodeScript() 172 …return ((uint8_t)script[0] << 24) | ((uint8_t)script[1] << 16) | ((uint8_t)script[2] << 8) | (uint… in EncodeScript()
|
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
H A D | res_locale.cpp | 85 RState ResLocale::SetScript(const char *script, size_t len) in SetScript() argument 101 *(temp + i) = toupper(*(script + i)); in SetScript() 103 *(temp + i) = tolower(*(script + i)); in SetScript() 118 r = this->SetScript(script, scriptLen); in Init() 271 const char *script, in BuildFromParts() argument 295 len = Utils::StrLen(script); in BuildFromParts() 297 if (LocaleMatcher::IsScriptTag(script, len)) { in BuildFromParts() 298 tempScript = script; in BuildFromParts() 393 len = Utils::StrLen(script); in BuildFromParts() 395 if (LocaleMatcher::IsScriptTag(script, len) == 0) { in BuildFromParts() [all …]
|
/ohos5.0/base/update/updater/test/fuzztest/scriptmanager_fuzzer/ |
H A D | BUILD.gn | 40 "${updater_path}/services/include/script", 41 "${updater_path}/services/script/threadpool", 42 "${updater_path}/services/script/script_manager", 43 "${updater_path}/services/script/script_instruction", 44 "${updater_path}/test/unittest/script", 55 "${updater_path}/services/script:libupdaterscript",
|
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/ |
H A D | res_locale.cpp | 89 RState ResLocale::SetScript(const char *script, size_t len) in SetScript() argument 105 *(temp + i) = toupper(*(script + i)); in SetScript() 107 *(temp + i) = tolower(*(script + i)); in SetScript() 115 RState ResLocale::Init(const char *language, size_t languageLen, const char *script, size_t scriptL… in Init() argument 122 r = this->SetScript(script, scriptLen); in Init() 297 len = Utils::StrLen(script); in BuildFromParts() 299 if (!LocaleMatcher::IsScriptTag(script, len)) { in BuildFromParts() 303 tempScript = script; in BuildFromParts() 400 len = Utils::StrLen(script); in BuildFromParts() 402 if (LocaleMatcher::IsScriptTag(script, len) == 0) { in BuildFromParts() [all …]
|
/ohos5.0/build/config/ |
H A D | python.gni | 18 # path/to/your/script.py 63 # A template used for actions that execute a Python script, which has an 66 # - This is very similar to just an action(), except that |script| must point 67 # to a Python script (e.g. "//build/.../foo.py") that has a corresponding 79 _pydeps_file = invoker.script + "deps" 114 # Dependencies are listed relative to the script directory, but inputs 116 _script_dir = get_path_info(script, "dir") 122 _pydeps_file = invoker.script + "deps" 157 # Dependencies are listed relative to the script directory, but inputs 159 _script_dir = get_path_info(script, "dir")
|
/ohos5.0/build/ohos/packages/ |
H A D | BUILD.gn | 59 script = rebase_path("//build/ohos/packages/fs_process.py") 83 script = "//build/ohos/packages/generate_host_symlink.py" 109 script = "//build/ohos/packages/parts_install_info.py" 186 script = "//build/ohos/notice/merge_notice_files.py" 235 script = "//build/lite/run_shell_cmd.py" 258 script = "//build/ohos/packages/modules_install.py" 330 # result is not used in script 365 # result is not used in script 495 script = "//build/ohos/packages/resources_collect.py" 623 script = "//build/ohos/copy_files.py" [all …]
|
/ohos5.0/foundation/arkui/ace_engine/build/ |
H A D | ace_gen_obj.gni | 24 script = "$ace_root/build/tools/build_resource_to_bytecode.py" 27 script = "$ace_root/build/tools/build_resource_to_bytecode.py" 30 script = "$ace_root/build/tools/build_resource_to_bytecode.py" 33 script = "$ace_root/build/tools/run_objcopy.py" 36 script = "$ace_root/build/tools/run_objcopy.py"
|
/ohos5.0/build/ohos/ace/ |
H A D | ace.gni | 32 script = "//build/scripts/run_objcopy_pc_mac.py" 34 script = "//build/scripts/run_objcopy_pc_mac.py" 36 script = "//build/scripts/run_objcopy_pc_mac.py" 38 script = "//build/scripts/run_objcopy.py" 41 script = "//build/scripts/run_objcopy.py"
|
/ohos5.0/base/update/updater/services/applypatch/ |
H A D | BUILD.gn | 27 "${updater_path}/services/include/script", 50 "${updater_path}/services/script/script_manager", 51 "${updater_path}/services/script/threadpool", 54 "${updater_path}/services/include/script", 62 "${updater_path}/services/script:libthreadpool",
|