/ohos5.0/base/web/webview/test/unittest/ohos_adapter/flowbuffer_adapter_impl_test/ |
H A D | flowbuffer_adapter_impl_test.cpp | 75 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 D | napi_parse_utils.cpp | 528 …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 D | napi_parse_utils.h | 58 …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 D | flowbufferadapter_fuzzer.cpp | 35 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 D | js_fwk_common.cpp | 670 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 D | locale_info.cpp | 39 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 D | webview_controller.h | 229 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 D | webview_controller.cpp | 1007 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 D | napi_webview_controller.h | 189 static ErrCode ConstructFlowbuf(napi_env env, napi_value argv, int& fd, size_t& scriptLength);
|
H A D | napi_webview_controller.cpp | 3437 …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 D | ark_web_nweb_impl.cpp | 878 …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 D | ark_web_nweb_impl.h | 973 void ExecuteJavaScriptExt(const int fd, const size_t scriptLength,
|
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/ |
H A D | ark_web_nweb_wrapper.cpp | 1018 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 D | ark_web_nweb_wrapper.h | 983 void ExecuteJavaScriptExt(const int fd, const size_t scriptLength,
|
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/include/ |
H A D | ark_web_nweb.h | 1199 const size_t scriptLength,
|
/ohos5.0/base/web/webview/ohos_interface/include/ohos_nweb/ |
H A D | nweb.h | 382 virtual void ExecuteJavaScriptExt(const int fd, const size_t scriptLength,
|