/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/ |
H A D | js_value.h | 26 class JsRuntime; 36 virtual int32_t ToInt32(shared_ptr<JsRuntime> runtime) = 0; 37 virtual double ToDouble(shared_ptr<JsRuntime> runtime) = 0; 38 virtual std::string ToString(shared_ptr<JsRuntime> runtime) = 0; 39 virtual bool ToBoolean(shared_ptr<JsRuntime> runtime) = 0; 41 virtual bool IsObject(shared_ptr<JsRuntime> runtime) = 0; 42 virtual bool IsArray(shared_ptr<JsRuntime> runtime) = 0; 43 virtual bool IsUndefined(shared_ptr<JsRuntime> runtime) = 0; 44 virtual bool IsNull(shared_ptr<JsRuntime> runtime) = 0; 45 virtual bool IsNumber(shared_ptr<JsRuntime> runtim [all...] |
H A D | ark_js_value.h | 48 int32_t ToInt32(shared_ptr<JsRuntime> runtime) override; 49 double ToDouble(shared_ptr<JsRuntime> runtime) override; 50 std::string ToString(shared_ptr<JsRuntime> runtime) override; 51 bool ToBoolean(shared_ptr<JsRuntime> runtime) override; 53 bool IsUndefined(shared_ptr<JsRuntime> runtime) override; 54 bool IsNull(shared_ptr<JsRuntime> runtime) override; 55 bool IsBoolean(shared_ptr<JsRuntime> runtime) override; 56 bool IsInt32(shared_ptr<JsRuntime> runtime) override; 57 bool WithinInt32(shared_ptr<JsRuntime> runtime) override; 58 bool IsString(shared_ptr<JsRuntime> runtim [all...] |
H A D | jsi_canvas_bridge.h | 33 void HandleJsContext(const shared_ptr<JsRuntime>& runtime, NodeId id, const std::string& args); 34 void HandleToDataURL(const shared_ptr<JsRuntime>& runtime, NodeId id, const std::string& args); 51 static shared_ptr<JsValue> JsCreateLinearGradient(const shared_ptr<JsRuntime>& runtime, 53 static shared_ptr<JsValue> JsCreateRadialGradient(const shared_ptr<JsRuntime>& runtime, 55 static shared_ptr<JsValue> JsAddColorStop(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, 59 static shared_ptr<JsValue> JsFillRect(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, 61 static shared_ptr<JsValue> JsStrokeRect(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, 63 static shared_ptr<JsValue> JsClearRect(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, 67 static shared_ptr<JsValue> JsFillText(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, 69 static shared_ptr<JsValue> JsStrokeText(const shared_ptr<JsRuntime> [all...] |
H A D | jsi_offscreen_canvas_bridge.h | 37 shared_ptr<JsValue> GetBridge(const shared_ptr<JsRuntime>& runtime); 50 static shared_ptr<JsValue> JsGetContext(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, 52 static shared_ptr<JsValue> JsTransferToImageBitmap(const shared_ptr<JsRuntime>& runtime, 54 static shared_ptr<JsValue> JsToDataURL(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, 58 static shared_ptr<JsValue> JsCreateLinearGradient(const shared_ptr<JsRuntime>& runtime, 60 static shared_ptr<JsValue> JsCreateRadialGradient(const shared_ptr<JsRuntime>& runtime, 62 static shared_ptr<JsValue> JsCreatePattern(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, 64 static shared_ptr<JsValue> JsAddColorStop(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, 66 static shared_ptr<JsValue> JsFillRect(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, 68 static shared_ptr<JsValue> JsClearRect(const shared_ptr<JsRuntime> [all...] |
H A D | jsi_animator_bridge.h | 30 static shared_ptr<JsValue> CreateAnimatorContext(shared_ptr<JsRuntime> runtime, int32_t pageId, int32_t bridgeId); 31 static shared_ptr<JsValue> JsAnimatorPlay(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, 33 static shared_ptr<JsValue> JsAnimatorFinish(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, 35 static shared_ptr<JsValue> JsAnimatorPause(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, 37 static shared_ptr<JsValue> JsAnimatorCancel(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, 39 static shared_ptr<JsValue> JsAnimatorReverse(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, 41 static shared_ptr<JsValue> JsAnimatorUpdate(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, 43 static shared_ptr<JsValue> JsAnimatorReset(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, 51 JsiAnimatorBridge(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& animatorContext); 70 shared_ptr<JsRuntime> GetRuntim [all...] |
H A D | jsi_animation_bridge.h | 32 static shared_ptr<JsValue> CreateAnimationContext(shared_ptr<JsRuntime> runtime, int32_t pageId, NodeId nodeId); 33 static shared_ptr<JsValue> JsAnimationPlay(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, 35 static shared_ptr<JsValue> JsAnimationFinish(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, 37 static shared_ptr<JsValue> JsAnimationPause(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, 39 static shared_ptr<JsValue> JsAnimationCancel(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, 41 static shared_ptr<JsValue> JsAnimationReverse(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, 43 static shared_ptr<JsValue> JsAnimationPlayStateGet(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, 45 static shared_ptr<JsValue> JsAnimationStartTimeGet(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, 47 static shared_ptr<JsValue> JsAnimationPendingGet(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, 49 static shared_ptr<JsValue> JsAnimationPlayStateSet(shared_ptr<JsRuntime> runtim [all...] |
H A D | jsi_base_utils.h | 39 static void ReportJsErrorEvent(std::shared_ptr<JsValue> error, std::shared_ptr<JsRuntime> runtime); 42 static shared_ptr<JsValue> AppDebugLogPrint(const shared_ptr<JsRuntime>& runtime, 45 static shared_ptr<JsValue> AppInfoLogPrint(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, 48 static shared_ptr<JsValue> AppWarnLogPrint(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, 51 static shared_ptr<JsValue> AppErrorLogPrint(const shared_ptr<JsRuntime>& runtime, 55 static shared_ptr<JsValue> JsDebugLogPrint(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, 58 static shared_ptr<JsValue> JsInfoLogPrint(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, 61 static shared_ptr<JsValue> JsWarnLogPrint(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, 64 static shared_ptr<JsValue> JsErrorLogPrint(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, 68 static shared_ptr<JsValue> JsTraceBegin(const shared_ptr<JsRuntime> [all...] |
H A D | ark_js_value.cpp | 20 int32_t ArkJSValue::ToInt32(shared_ptr<JsRuntime> runtime) in ToInt32() 32 double ArkJSValue::ToDouble(shared_ptr<JsRuntime> runtime) in ToDouble() 49 std::string ArkJSValue::ToString(shared_ptr<JsRuntime> runtime) in ToString() 66 bool ArkJSValue::ToBoolean(shared_ptr<JsRuntime> runtime) in ToBoolean() 77 bool ArkJSValue::IsUndefined([[maybe_unused]] shared_ptr<JsRuntime> runtime) in IsUndefined() 82 bool ArkJSValue::IsNull([[maybe_unused]] shared_ptr<JsRuntime> runtime) in IsNull() 87 bool ArkJSValue::IsBoolean([[maybe_unused]] shared_ptr<JsRuntime> runtime) in IsBoolean() 92 bool ArkJSValue::IsInt32([[maybe_unused]] shared_ptr<JsRuntime> runtime) in IsInt32() 97 bool ArkJSValue::WithinInt32([[maybe_unused]] shared_ptr<JsRuntime> runtime) in WithinInt32() 102 bool ArkJSValue::IsString([[maybe_unused]] shared_ptr<JsRuntime> runtim [all...] |
H A D | jsi_component_api_bridge.h | 27 static shared_ptr<JsValue> JsGetScrollOffset(const shared_ptr<JsRuntime>& runtime, NodeId nodeId); 29 static shared_ptr<JsValue> JsGetBoundingRect(const shared_ptr<JsRuntime>& runtime, NodeId nodeId); 31 static shared_ptr<JsValue> JsGetInspector(const shared_ptr<JsRuntime>& runtime, NodeId nodeId); 33 static void JsScrollTo(const shared_ptr<JsRuntime>& runtime, const std::string& arguments, NodeId nodeId);
|
H A D | jsi_group_js_bridge.h | 64 int32_t InitializeGroupJsBridge(const shared_ptr<JsRuntime>& runtime); 99 bool SetEventGroupCallBackFuncs(const shared_ptr<JsRuntime>& runtime, 109 ParseJsDataResult ParseJsPara(const shared_ptr<JsRuntime>& runtime, const std::vector<shared_ptr<JsValue>>& argv, 114 ParseJsDataResult errorType, const shared_ptr<JsRuntime>& runtime, int32_t callbackId); 117 const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& val); 121 static shared_ptr<JsValue> ProcessJsRequest(const shared_ptr<JsRuntime>& runtime, 126 static shared_ptr<JsValue> ProcessJsRequestSync(const shared_ptr<JsRuntime>& runtime, 134 shared_ptr<JsRuntime> runtime_; 137 static const LinearMapNode<void (*)(shared_ptr<JsRuntime>,
|
H A D | jsi_chart_bridge.h | 28 void GetAttrOptionsObject(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& valObject); 30 void ParseAttrSegmentArray(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& valArray); 32 void ParseAttrSingleSegment(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& valArray); 34 void GetAttrDatasets(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& valArray);
|
H A D | jsi_xcomponent_bridge.h | 35 void HandleContext(const shared_ptr<JsRuntime>& runtime, NodeId id, const std::string& args); 47 static shared_ptr<JsValue> JsGetXComponentSurfaceId(const shared_ptr<JsRuntime>& runtime, NodeId nodeId); 49 const shared_ptr<JsRuntime>& runtime, const std::string& arguments, NodeId nodeId);
|
H A D | jsi_canvas_bridge.cpp | 34 RefPtr<PixelMap> CreatePixelMapFromNapiValue(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue> jsValue) in CreatePixelMapFromNapiValue() 99 inline double GetJsDoubleVal(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) in GetJsDoubleVal() 111 inline std::vector<double> GetJsDashValue(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) in GetJsDashValue() 137 const shared_ptr<JsRuntime>& runtime, int32_t argc, const std::vector<shared_ptr<JsValue>>& argv) in GetJsRectParam() 155 inline NodeId GetCurrentNodeId(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) in GetCurrentNodeId() 169 void PushTaskToPage(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, in PushTaskToPage() 193 inline PaintState JsParseTextState(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) in JsParseTextState() 255 void JsiCanvasBridge::HandleJsContext(const shared_ptr<JsRuntime>& runtime, NodeId id, const std::string& args) in HandleJsContext() 354 void JsiCanvasBridge::HandleWebglContext(const shared_ptr<JsRuntime>& runtime, in HandleWebglContext() 460 void JsiCanvasBridge::HandleToDataURL(const shared_ptr<JsRuntime> [all...] |
H A D | jsi_offscreen_canvas_bridge.cpp | 43 inline double GetJsDoubleVal(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) in GetJsDoubleVal() 55 inline std::vector<double> GetJsDashValue(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) in GetJsDashValue() 81 const shared_ptr<JsRuntime>& runtime, int32_t argc, const std::vector<shared_ptr<JsValue>>& argv) in GetJsRectParam() 99 inline int32_t GetCurrentBridgeId(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) in GetCurrentBridgeId() 114 const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) in GetOffscreenCanvasBridge() 128 RefPtr<OffscreenCanvas> GlobalGetOffscreenCanvas(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) in GlobalGetOffscreenCanvas() 137 inline PaintState JsParseTextDirection(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) in JsParseTextDirection() 147 inline PaintState JsParseTextState(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) in JsParseTextState() 214 shared_ptr<JsValue> JsiOffscreenCanvasBridge::GetBridge(const shared_ptr<JsRuntime>& runtime) in GetBridge() 229 shared_ptr<JsValue> JsiOffscreenCanvasBridge::JsGetContext(const shared_ptr<JsRuntime> [all...] |
H A D | jsi_animation_bridge.cpp | 23 RefPtr<FrontendDelegate> GetFrontendDelegate(shared_ptr<JsRuntime>&& runtime) in GetFrontendDelegate() 37 RefPtr<FrontendDelegate> GetFrontendDelegate(std::weak_ptr<JsRuntime> weakRuntime) in GetFrontendDelegate() 42 RefPtr<JsAcePage> GetPageById(const shared_ptr<JsRuntime>& runtime, int32_t pageId) in GetPageById() 56 inline NodeId GetCurrentNodeId(shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& value) in GetCurrentNodeId() 75 inline int32_t GetCurrentPageId(shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& value) in GetCurrentPageId() 94 const shared_ptr<JsRuntime>& runtime, int32_t pageId, int32_t nodeId, AnimationOperation operation) in HandleJsAnimationContext() 124 void CallAnimationFinishJs(const WeakPtr<JsiAnimationBridge>& bridgeWeak, shared_ptr<JsRuntime>&& runtime, in CallAnimationFinishJs() 150 void CallAnimationCancelJs(const WeakPtr<JsiAnimationBridge>& bridgeWeak, shared_ptr<JsRuntime>&& runtime, in CallAnimationCancelJs() 178 shared_ptr<JsRuntime>&& runtime, const WeakPtr<JsiAnimationBridge>& bridgeWeak, const char* state) in JsUpdatePlayState() 202 shared_ptr<JsRuntime> runtim in AddListenerForEventCallback() [all...] |
H A D | jsi_animator_bridge.cpp | 23 RefPtr<FrontendDelegate> GetFrontendDelegate(shared_ptr<JsRuntime>&& runtime) in GetFrontendDelegate() 37 RefPtr<FrontendDelegate> GetFrontendDelegate(std::weak_ptr<JsRuntime> weakRuntime) in GetFrontendDelegate() 42 RefPtr<JsAcePage> GetPageById(const shared_ptr<JsRuntime>& runtime, int32_t pageId) in GetPageById() 56 inline int32_t GetCurrentBridgeId(shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& value) in GetCurrentBridgeId() 71 inline int32_t GetCurrentPageId(shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& value) in GetCurrentPageId() 86 void HandleJsAnimatorContext(const shared_ptr<JsRuntime>& runtime, int32_t pageId, int32_t bridgeId, in HandleJsAnimatorContext() 111 void CallAnimationStartJs(const WeakPtr<JsiAnimatorBridge>& bridgeWeak, shared_ptr<JsRuntime>&& runtime) in CallAnimationStartJs() 136 void CallAnimationFinishJs(const WeakPtr<JsiAnimatorBridge>& bridgeWeak, shared_ptr<JsRuntime>&& runtime) in CallAnimationFinishJs() 161 void CallAnimationCancelJs(const WeakPtr<JsiAnimatorBridge>& bridgeWeak, shared_ptr<JsRuntime>&& runtime) in CallAnimationCancelJs() 186 void CallAnimationRepeatJs(const WeakPtr<JsiAnimatorBridge>& bridgeWeak, shared_ptr<JsRuntime> [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/modules/ |
H A D | jsi_module_manager.cpp | 32 const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& thisObj, const std::string& moduleName) in InitModule() 35 void (*)(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& thisObj)> in InitModule() 37 { "system.router", [](const shared_ptr<JsRuntime>& runtime, in InitModule() 39 { "ohos.router", [](const shared_ptr<JsRuntime>& runtime, in InitModule() 41 { "system.app", [](const shared_ptr<JsRuntime>& runtime, in InitModule() 43 { "ohos.app", [](const shared_ptr<JsRuntime>& runtime, in InitModule() 45 { "system.curves", [](const shared_ptr<JsRuntime>& runtime, in InitModule() 47 { "ohos.curves", [](const shared_ptr<JsRuntime>& runtime, in InitModule() 49 { "system.matrix4", [](const shared_ptr<JsRuntime>& runtime, in InitModule() 51 { "ohos.matrix4", [](const shared_ptr<JsRuntime> in InitModule() [all...] |
H A D | jsi_curves_module.cpp | 27 shared_ptr<JsValue> CurvesInterpolate(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, in CurvesInterpolate() 59 shared_ptr<JsValue> CurvesInitInternal(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, in CurvesInitInternal() 89 shared_ptr<JsValue> CurvesInit(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, in CurvesInit() 95 shared_ptr<JsValue> InitCurve(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, in InitCurve() 101 bool CreateSpringCurve(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, in CreateSpringCurve() 136 bool CreateInterpolatingSpring(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, in CreateInterpolatingSpring() 159 bool CreateCubicCurve(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, in CreateCubicCurve() 188 bool CreateStepsCurve(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, in CreateStepsCurve() 214 bool CreateSpringMotionCurve(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, in CreateSpringMotionCurve() 245 bool CreateResponsiveSpringMotionCurve(const shared_ptr<JsRuntime> [all...] |
H A D | jsi_context_module.h | 34 void InitContextModule(const std::shared_ptr<JsRuntime>& runtime, std::shared_ptr<JsValue> moduleObj); 38 static std::shared_ptr<JsValue> GetContext(const std::shared_ptr<JsRuntime>& runtime, 43 const std::shared_ptr<JsRuntime>& runtime, const std::vector<std::shared_ptr<JsValue>>& argv, int32_t argc);
|
H A D | jsi_app_module.cpp | 25 shared_ptr<JsValue> AppGetInfo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, in AppGetInfo() 49 shared_ptr<JsValue> AppTerminate(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, in AppTerminate() 77 shared_ptr<JsValue> AppSetImageCacheCount(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, in AppSetImageCacheCount() 115 const shared_ptr<JsRuntime>& runtime, in AppSetImageRawDataCacheSize() 153 shared_ptr<JsValue> AppSetImageFileCacheSize(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, in AppSetImageFileCacheSize() 167 shared_ptr<JsValue> AppRequestFullWindow(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, in AppRequestFullWindow() 173 shared_ptr<JsValue> AppScreenOnVisible(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, in AppScreenOnVisible() 179 void InitAppModule(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj) in InitAppModule()
|
/foundation/ability/ability_runtime/frameworks/native/runtime/ |
H A D | js_runtime.cpp | 118 std::atomic<bool> JsRuntime::hasInstance(false); 119 JsRuntime::JsRuntime() in JsRuntime() function in OHOS::AbilityRuntime::JsRuntime 124 JsRuntime::~JsRuntime() in ~JsRuntime() 131 std::unique_ptr<JsRuntime> JsRuntime::Create(const Options& options) in Create() 134 std::unique_ptr<JsRuntime> instance; in Create() 145 instance.reset(static_cast<JsRuntime*>(preloadedInstance.release())); in Create() 147 instance = std::make_unique<JsRuntime>(); in Create() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/ |
H A D | jsi_declarative_group_js_bridge.h | 64 int32_t InitializeGroupJsBridge(const shared_ptr<JsRuntime>& runtime); 97 bool SetEventGroupCallBackFuncs(const shared_ptr<JsRuntime>& runtime, 107 ParseJsDataResult ParseJsPara(const shared_ptr<JsRuntime>& runtime, const std::vector<shared_ptr<JsValue>>& argv, 112 ParseJsDataResult errorType, const shared_ptr<JsRuntime>& runtime, int32_t callbackId); 116 static shared_ptr<JsValue> ProcessJsRequest(const shared_ptr<JsRuntime>& runtime, 121 static shared_ptr<JsValue> ProcessJsRequestSync(const shared_ptr<JsRuntime>& runtime, 125 const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& val); 132 shared_ptr<JsRuntime> runtime_; 135 static const LinearMapNode<void (*)(shared_ptr<JsRuntime>,
|
/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/ |
H A D | js_extension_common.h | 27 class JsRuntime; 34 JsExtensionCommon(JsRuntime &jsRuntime, NativeReference &jsObj, 46 static std::shared_ptr<JsExtensionCommon> Create(JsRuntime &jsRuntime, NativeReference &jsObj, 67 JsRuntime& jsRuntime_;
|
/foundation/ability/ability_runtime/test/unittest/runtime_test/ |
H A D | js_runtime_test.cpp | 82 * @tc.desc: JsRuntime test for JsperfProfilerCommandParse. 87 auto jsRuntime = AbilityRuntime::JsRuntime::Create(options_); in HWTEST_F() 108 * @tc.desc: JsRuntime Test 115 std::unique_ptr<Runtime> jsRuntime = JsRuntime::Create(options_); in HWTEST_F() 120 jsRuntime = JsRuntime::Create(options_); in HWTEST_F() 128 * @tc.desc: JsRuntime Test 138 JsRuntime::SetAppLibPath(appLibPaths); in HWTEST_F() 142 JsRuntime::SetAppLibPath(appLibPaths); in HWTEST_F() 154 auto env = (static_cast<AbilityRuntime::JsRuntime&>(*runtime)).GetNapiEnv(); in HWTEST_F() 180 * @tc.desc: JsRuntime Tes [all...] |
/foundation/ability/ability_runtime/test/unittest/child_process_manager_test/ |
H A D | js_child_process_test.cpp | 57 std::unique_ptr<Runtime> runtime = std::make_unique<JsRuntime>(); in HWTEST_F() 70 std::unique_ptr<Runtime> runtime = std::make_unique<JsRuntime>(); in HWTEST_F() 91 std::unique_ptr<Runtime> runtime = std::make_unique<JsRuntime>(); in HWTEST_F() 107 std::unique_ptr<Runtime> runtime = std::make_unique<JsRuntime>(); in HWTEST_F() 128 std::unique_ptr<Runtime> runtime = std::make_unique<JsRuntime>(); in HWTEST_F() 150 std::unique_ptr<Runtime> runtime = std::make_unique<JsRuntime>(); in HWTEST_F()
|