/base/web/webview/test/unittest/ohos_adapter/flowbuffer_adapter_impl_test/ |
H A D | flowbuffer_adapter_impl_test.cpp | 75 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 D | flowbufferadapter_fuzzer.cpp | 35 size_t scriptLength = 10; in FlowBufferAdapterFuzzTest() local 36 flowbufferAdapter->CreateAshmem(scriptLength, PROT_READ | PROT_WRITE, fd); in FlowBufferAdapterFuzzTest()
|
H A D | flowbufferadapterimpl_fuzzer.cpp | 35 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 D | napi_parse_utils.cpp | 508 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 D | napi_parse_utils.h | 57 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 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()
|
/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() 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 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 | 3439 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 D | ark_web_nweb_impl.cpp | 879 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 D | ark_web_nweb_impl.h | 969 * @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 D | ark_web_nweb_wrapper.cpp | 1019 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 D | ark_web_nweb_wrapper.h | 979 * @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 D | ark_web_nweb.h | 1123 * @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 D | nweb.h | 394 * @param scriptLength javascript code length 398 virtual void ExecuteJavaScriptExt(const int fd, const size_t scriptLength,
|