Home
last modified time | relevance | path

Searched refs:scriptLength (Results 1 – 16 of 16) sorted by relevance

/ohos5.0/base/web/webview/test/unittest/ohos_adapter/flowbuffer_adapter_impl_test/
H A Dflowbuffer_adapter_impl_test.cpp75 size_t scriptLength = 10; variable
91 size_t scriptLength = 10; variable
92 flowbufferAdapter->CreateAshmem(scriptLength, PROT_READ | PROT_WRITE, fd);
138 size_t scriptLength = 10; variable
140 flowbufferAdapter->CreateAshmem(scriptLength, PROT_READ | PROT_WRITE, fd);
142 flowbufferAdapter->CreateAshmem(scriptLength, PROT_READ | PROT_WRITE, fd);
143 scriptLength = 1024;
157 size_t scriptLength = 10; variable
159 flowbufferAdapter->CreateAshmemWithFd(fd, scriptLength, PROT_READ);
161 flowbufferAdapter->CreateAshmemWithFd(fd, scriptLength, PROT_READ);
[all …]
/ohos5.0/base/web/webview/interfaces/kits/napi/common/
H A Dnapi_parse_utils.cpp528 …apiParseUtils::ConstructStringFlowbuf(napi_env env, napi_value argv, int& fd, size_t& scriptLength) in ConstructStringFlowbuf() argument
537 napi_get_value_string_utf8(env, argv, nullptr, 0, &scriptLength); in ConstructStringFlowbuf()
538 if (scriptLength + 1 > MAX_FLOWBUF_DATA_SIZE) { in ConstructStringFlowbuf()
549 auto ashmem = flowbufferAdapter->CreateAshmem(scriptLength + 1, PROT_READ | PROT_WRITE, fd); in ConstructStringFlowbuf()
556 …napi_get_value_string_utf8(env, argv, static_cast<char*>(ashmem), scriptLength + 1, &jsStringLengt… in ConstructStringFlowbuf()
557 if (jsStringLength != scriptLength) { in ConstructStringFlowbuf()
574 napi_get_arraybuffer_info(env, argv, (void**)&arrBuf, &scriptLength); in ConstructArrayBufFlowbuf()
580 if (scriptLength + 1 > MAX_FLOWBUF_DATA_SIZE) { in ConstructArrayBufFlowbuf()
591 auto ashmem = flowbufferAdapter->CreateAshmem(scriptLength + 1, PROT_READ | PROT_WRITE, fd); in ConstructArrayBufFlowbuf()
597 if (memcpy_s(ashmem, scriptLength + 1, arrBuf, scriptLength) != EOK) { in ConstructArrayBufFlowbuf()
[all …]
H A Dnapi_parse_utils.h58 …tatic ErrCode ConstructStringFlowbuf(napi_env env, napi_value argv, int& fd, size_t& scriptLength);
59 …tic ErrCode ConstructArrayBufFlowbuf(napi_env env, napi_value argv, int& fd, size_t& scriptLength);
/ohos5.0/base/web/webview/test/fuzztest/ohos_adapter/flowbufferadapter_fuzzer/
H A Dflowbufferadapter_fuzzer.cpp35 size_t scriptLength = 10; in FlowBufferAdapterFuzzTest() local
36 flowbufferAdapter->CreateAshmem(scriptLength, PROT_READ | PROT_WRITE, fd); in FlowBufferAdapterFuzzTest()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/base/
H A Djs_fwk_common.cpp670 int32_t scriptLength = 0; in ReadFile() local
671 if (!CheckFileLength(fullPath, scriptLength)) { in ReadFile()
682 scriptBuffer = static_cast<char *>(ace_malloc(scriptLength + 1)); in ReadFile()
685 scriptLength); in ReadFile()
688 if (EOK != memset_s(scriptBuffer, (scriptLength + 1), 0, (scriptLength + 1))) { in ReadFile()
691 int32_t count = read(fd, scriptBuffer, scriptLength); in ReadFile()
692 if ((count <= 0) || (count > scriptLength)) { in ReadFile()
694 scriptLength, fullPath); in ReadFile()
/ohos5.0/base/global/i18n_lite/frameworks/i18n/src/
H A Dlocale_info.cpp39 int scriptLength = LenCharArray(newScript); in Init() local
40 if (scriptLength == SCRIPT_LENGTH) { in Init()
41 script = NewArrayAndCopy(newScript, scriptLength); in Init()
/ohos5.0/base/web/webview/interfaces/kits/napi/webviewcontroller/
H A Dwebview_controller.h229 const int fd, const size_t scriptLength, napi_env env, napi_ref jsCallback, bool extention);
232 … const int fd, const size_t scriptLength, napi_env env, napi_deferred deferred, bool extention);
H A Dwebview_controller.cpp1007 const int fd, const size_t scriptLength, napi_env env, napi_ref jsCallback, bool extention) in RunJavaScriptCallbackExt() argument
1031 nweb_ptr->ExecuteJavaScriptExt(fd, scriptLength, callbackImpl, extention); in RunJavaScriptCallbackExt()
1035 const int fd, const size_t scriptLength, napi_env env, napi_deferred deferred, bool extention) in RunJavaScriptPromiseExt() argument
1052 nweb_ptr->ExecuteJavaScriptExt(fd, scriptLength, callbackImpl, extention); in RunJavaScriptPromiseExt()
H A Dnapi_webview_controller.h189 static ErrCode ConstructFlowbuf(napi_env env, napi_value argv, int& fd, size_t& scriptLength);
H A Dnapi_webview_controller.cpp3437 …piWebviewController::ConstructFlowbuf(napi_env env, napi_value argv, int& fd, size_t& scriptLength) in ConstructFlowbuf() argument
3449 NapiParseUtils::ConstructStringFlowbuf(env, argv, fd, scriptLength) : in ConstructFlowbuf()
3450 NapiParseUtils::ConstructArrayBufFlowbuf(env, argv, fd, scriptLength); in ConstructFlowbuf()
3482 size_t scriptLength; in RunJavaScriptInternalExt() local
3483 ErrCode constructResult = ConstructFlowbuf(env, argv[INTEGER_ZERO], fd, scriptLength); in RunJavaScriptInternalExt()
3506 …webviewController->RunJavaScriptCallbackExt(fd, scriptLength, env, std::move(jsCallback), extentio… in RunJavaScriptInternalExt()
3516 webviewController->RunJavaScriptPromiseExt(fd, scriptLength, env, deferred, extention); in RunJavaScriptInternalExt()
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webcore/
H A Dark_web_nweb_impl.cpp878 …const int fd, const size_t scriptLength, ArkWebRefPtr<ArkWebMessageValueCallback> callback, bool e… in ExecuteJavaScriptExt() argument
881 nweb_nweb_->ExecuteJavaScriptExt(fd, scriptLength, nullptr, extention); in ExecuteJavaScriptExt()
886 fd, scriptLength, std::make_shared<ArkWebMessageValueCallbackWrapper>(callback), extention); in ExecuteJavaScriptExt()
H A Dark_web_nweb_impl.h973 void ExecuteJavaScriptExt(const int fd, const size_t scriptLength,
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/
H A Dark_web_nweb_wrapper.cpp1018 void ArkWebNWebWrapper::ExecuteJavaScriptExt(const int fd, const size_t scriptLength, in ExecuteJavaScriptExt() argument
1022 ark_web_nweb_->ExecuteJavaScriptExt(fd, scriptLength, nullptr, extention); in ExecuteJavaScriptExt()
1024 …ark_web_nweb_->ExecuteJavaScriptExt(fd, scriptLength, new ArkWebMessageValueCallbackImpl(callback)… in ExecuteJavaScriptExt()
H A Dark_web_nweb_wrapper.h983 void ExecuteJavaScriptExt(const int fd, const size_t scriptLength,
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/include/
H A Dark_web_nweb.h1199 const size_t scriptLength,
/ohos5.0/base/web/webview/ohos_interface/include/ohos_nweb/
H A Dnweb.h382 virtual void ExecuteJavaScriptExt(const int fd, const size_t scriptLength,