Home
last modified time | relevance | path

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

/base/web/webview/test/unittest/ohos_adapter/flowbuffer_adapter_impl_test/
H A Dflowbuffer_adapter_impl_test.cpp75 size_t scriptLength = 10; in HWTEST_F() local
76 auto ashmem = flowbufferAdapter->CreateAshmem(scriptLength, PROT_READ | PROT_WRITE, fd); in HWTEST_F()
93 size_t scriptLength = 10; in HWTEST_F() local
94 flowbufferAdapter->CreateAshmem(scriptLength, PROT_READ | PROT_WRITE, fd); in HWTEST_F()
95 auto ashmem = flowbufferAdapter->CreateAshmemWithFd(fd, scriptLength, PROT_READ); in HWTEST_F()
99 ashmem = flowbufferAdapter->CreateAshmemWithFd(-1, scriptLength, PROT_READ); in HWTEST_F()
144 size_t scriptLength = 10; in HWTEST_F() local
146 flowbufferAdapter->CreateAshmem(scriptLength, PROT_READ | PROT_WRITE, fd); in HWTEST_F()
148 flowbufferAdapter->CreateAshmem(scriptLength, PROT_READ | PROT_WRITE, fd); in HWTEST_F()
149 scriptLength in HWTEST_F()
163 size_t scriptLength = 10; HWTEST_F() local
[all...]
/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()
H A Dflowbufferadapterimpl_fuzzer.cpp35 size_t scriptLength = 10; in ApplyFlowBufferAdapterImplFuzzTest() local
36 auto ashmem = flowbufferAdapter->CreateAshmem(scriptLength, PROT_READ | PROT_WRITE, fd); in ApplyFlowBufferAdapterImplFuzzTest()
/base/web/webview/interfaces/kits/napi/common/
H A Dnapi_parse_utils.cpp508 ErrCode NapiParseUtils::ConstructStringFlowbuf(napi_env env, napi_value argv, int& fd, size_t& scriptLength) in ConstructStringFlowbuf() argument
517 napi_get_value_string_utf8(env, argv, nullptr, 0, &scriptLength); in ConstructStringFlowbuf()
518 if (scriptLength + 1 > MAX_FLOWBUF_DATA_SIZE) { in ConstructStringFlowbuf()
529 auto ashmem = flowbufferAdapter->CreateAshmem(scriptLength + 1, PROT_READ | PROT_WRITE, fd); in ConstructStringFlowbuf()
536 napi_get_value_string_utf8(env, argv, static_cast<char*>(ashmem), scriptLength + 1, &jsStringLength); in ConstructStringFlowbuf()
537 if (jsStringLength != scriptLength) { in ConstructStringFlowbuf()
545 ErrCode NapiParseUtils::ConstructArrayBufFlowbuf(napi_env env, napi_value argv, int& fd, size_t& scriptLength) in ConstructArrayBufFlowbuf() argument
554 napi_get_arraybuffer_info(env, argv, (void**)&arrBuf, &scriptLength); in ConstructArrayBufFlowbuf()
560 if (scriptLength + 1 > MAX_FLOWBUF_DATA_SIZE) { in ConstructArrayBufFlowbuf()
571 auto ashmem = flowbufferAdapter->CreateAshmem(scriptLength in ConstructArrayBufFlowbuf()
[all...]
H A Dnapi_parse_utils.h57 static ErrCode ConstructStringFlowbuf(napi_env env, napi_value argv, int& fd, size_t& scriptLength);
58 static ErrCode ConstructArrayBufFlowbuf(napi_env env, napi_value argv, int& fd, size_t& scriptLength);
/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()
/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()
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()
1052 nweb_ptr->ExecuteJavaScriptExt(fd, scriptLength, callbackImpl, extention); in RunJavaScriptPromiseExt()
1006 RunJavaScriptCallbackExt( const int fd, const size_t scriptLength, napi_env env, napi_ref jsCallback, bool extention) RunJavaScriptCallbackExt() argument
1034 RunJavaScriptPromiseExt( const int fd, const size_t scriptLength, napi_env env, napi_deferred deferred, bool extention) RunJavaScriptPromiseExt() argument
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.cpp3439 ErrCode NapiWebviewController::ConstructFlowbuf(napi_env env, napi_value argv, int& fd, size_t& scriptLength) in ConstructFlowbuf() argument
3451 NapiParseUtils::ConstructStringFlowbuf(env, argv, fd, scriptLength) : in ConstructFlowbuf()
3452 NapiParseUtils::ConstructArrayBufFlowbuf(env, argv, fd, scriptLength); in ConstructFlowbuf()
3484 size_t scriptLength; in RunJavaScriptInternalExt() local
3485 ErrCode constructResult = ConstructFlowbuf(env, argv[INTEGER_ZERO], fd, scriptLength); in RunJavaScriptInternalExt()
3508 webviewController->RunJavaScriptCallbackExt(fd, scriptLength, env, std::move(jsCallback), extention); in RunJavaScriptInternalExt()
3518 webviewController->RunJavaScriptPromiseExt(fd, scriptLength, env, deferred, extention); in RunJavaScriptInternalExt()
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webcore/
H A Dark_web_nweb_impl.cpp879 const int fd, const size_t scriptLength, ArkWebRefPtr<ArkWebMessageValueCallback> callback, bool extention) in ExecuteJavaScriptExt()
882 nweb_nweb_->ExecuteJavaScriptExt(fd, scriptLength, nullptr, extention); in ExecuteJavaScriptExt()
887 fd, scriptLength, std::make_shared<ArkWebMessageValueCallbackWrapper>(callback), extention); in ExecuteJavaScriptExt()
878 ExecuteJavaScriptExt( const int fd, const size_t scriptLength, ArkWebRefPtr<ArkWebMessageValueCallback> callback, bool extention) ExecuteJavaScriptExt() argument
H A Dark_web_nweb_impl.h969 * @param scriptLength javascript code length
973 void ExecuteJavaScriptExt(const int fd, const size_t scriptLength,
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/
H A Dark_web_nweb_wrapper.cpp1019 void ArkWebNWebWrapper::ExecuteJavaScriptExt(const int fd, const size_t scriptLength, in ExecuteJavaScriptExt() argument
1023 ark_web_nweb_->ExecuteJavaScriptExt(fd, scriptLength, nullptr, extention); in ExecuteJavaScriptExt()
1025 ark_web_nweb_->ExecuteJavaScriptExt(fd, scriptLength, new ArkWebMessageValueCallbackImpl(callback), extention); in ExecuteJavaScriptExt()
H A Dark_web_nweb_wrapper.h979 * @param scriptLength javascript code length
983 void ExecuteJavaScriptExt(const int fd, const size_t scriptLength,
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/include/
H A Dark_web_nweb.h1123 * @param scriptLength javascript code length
1129 const int fd, const size_t scriptLength, ArkWebRefPtr<ArkWebMessageValueCallback> callback, bool extention) = 0;
/base/web/webview/ohos_interface/include/ohos_nweb/
H A Dnweb.h394 * @param scriptLength javascript code length
398 virtual void ExecuteJavaScriptExt(const int fd, const size_t scriptLength,

Completed in 31 milliseconds