/foundation/arkui/ace_engine_lite/frameworks/module_manager/ |
D | module_manager.cpp | 39 JSIValue moduleObj; in RequireModule() local 42 moduleObj = GetModuleObject(name, OHOS_MODULES, moduleCount, requiredSystemModules); in RequireModule() 44 if ((JSI::ValueIsUndefined(moduleObj)) && (productModulesGetter_ != nullptr)) { in RequireModule() 47 moduleObj = GetModuleObject(name, prodModules, prodModCount, requiredSystemModules); in RequireModule() 51 if ((JSI::ValueIsUndefined(moduleObj)) && (privateModulesGetter_ != nullptr)) { in RequireModule() 53 moduleObj = GetModuleObject(name, nullptr, 0, requiredSystemModules, bundleName); in RequireModule() 57 moduleObj = JSI::CreateUndefined(); in RequireModule() 65 return moduleObj; in RequireModule() 183 JSIValue moduleObj = JSI::GetNamedProperty(categoryObj, name); in InitModuleObject() local 184 if (JSI::ValueIsUndefined(moduleObj)) { in InitModuleObject() [all …]
|
D | module_manager.h | 150 void InsertTerminateCallback(const char * const name, const JSIValue& moduleObj);
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/modules/ |
D | jsi_router_module.cpp | 192 void InitRouterModule(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj) in InitRouterModule() argument 194 moduleObj->SetProperty(runtime, ROUTE_PAGE_PUSH, runtime->NewFunction(PagePush)); in InitRouterModule() 195 moduleObj->SetProperty(runtime, ROUTE_PAGE_REPLACE, runtime->NewFunction(PageReplace)); in InitRouterModule() 196 moduleObj->SetProperty(runtime, ROUTE_PAGE_BACK, runtime->NewFunction(PageBack)); in InitRouterModule() 197 moduleObj->SetProperty(runtime, ROUTE_PAGE_CLEAR, runtime->NewFunction(PageClear)); in InitRouterModule() 198 moduleObj->SetProperty(runtime, ROUTE_PAGE_GET_LENGTH, runtime->NewFunction(PageGetLength)); in InitRouterModule() 199 moduleObj->SetProperty(runtime, ROUTE_PAGE_GET_STATE, runtime->NewFunction(PageGetState)); in InitRouterModule() 200 moduleObj->SetProperty(runtime, ROUTE_PAGE_GET_PARAMS, runtime->NewFunction(PageGetParams)); in InitRouterModule() 210 moduleObj->SetProperty(runtime, in InitRouterModule() 212 moduleObj->SetProperty(runtime, in InitRouterModule()
|
D | jsi_app_module.cpp | 220 void InitAppModule(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj) in InitAppModule() argument 222 moduleObj->SetProperty(runtime, APP_GET_INFO, runtime->NewFunction(AppGetInfo)); in InitAppModule() 223 moduleObj->SetProperty(runtime, APP_TERMINATE, runtime->NewFunction(AppTerminate)); in InitAppModule() 224 …moduleObj->SetProperty(runtime, APP_SET_IMAGE_CACHE_COUNT, runtime->NewFunction(AppSetImageCacheCo… in InitAppModule() 225 moduleObj->SetProperty( in InitAppModule() 227 …moduleObj->SetProperty(runtime, APP_SET_IMAGE_FILE_CACHE_SIZE, runtime->NewFunction(AppSetImageFil… in InitAppModule() 229 …moduleObj->SetProperty(runtime, APP_REQUEST_FULL_WINDOW, runtime->NewFunction(AppRequestFullWindow… in InitAppModule() 230 … moduleObj->SetProperty(runtime, APP_SCREEN_ON_VISIBLE, runtime->NewFunction(AppScreenOnVisible)); in InitAppModule()
|
D | jsi_curves_module.cpp | 393 void InitCurvesModule(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj) in InitCurvesModule() argument 395 moduleObj->SetProperty(runtime, CURVES_INIT, runtime->NewFunction(CurvesInit)); in InitCurvesModule() 396 moduleObj->SetProperty(runtime, INIT_CURVE, runtime->NewFunction(InitCurve)); in InitCurvesModule() 397 moduleObj->SetProperty(runtime, CURVES_CUBIC_BEZIER, runtime->NewFunction(CurvesBezier)); in InitCurvesModule() 398 moduleObj->SetProperty(runtime, CUBIC_BEZIER_CURVE, runtime->NewFunction(BezierCurve)); in InitCurvesModule() 399 moduleObj->SetProperty(runtime, CURVES_SPRING, runtime->NewFunction(CurvesSpring)); in InitCurvesModule() 400 moduleObj->SetProperty(runtime, SPRING_CURVE, runtime->NewFunction(SpringCurve)); in InitCurvesModule() 401 …moduleObj->SetProperty(runtime, INTERPOLATING_SPRING, runtime->NewFunction(InterpolatingSpringCurv… in InitCurvesModule() 402 moduleObj->SetProperty(runtime, CURVES_STEPS, runtime->NewFunction(CurvesSteps)); in InitCurvesModule() 403 moduleObj->SetProperty(runtime, STEPS_CURVE, runtime->NewFunction(StepsCurve)); in InitCurvesModule() [all …]
|
D | jsi_timer_module.cpp | 167 …iTimerModule::InitTimerModule(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj) in InitTimerModule() argument 169 moduleObj->SetProperty(runtime, SET_TIMEOUT, runtime->NewFunction(SetTimeout)); in InitTimerModule() 170 moduleObj->SetProperty(runtime, SET_INTERVAL, runtime->NewFunction(SetInterval)); in InitTimerModule() 171 moduleObj->SetProperty(runtime, CLEAR_TIMEOUT, runtime->NewFunction(ClearTimeout)); in InitTimerModule() 172 moduleObj->SetProperty(runtime, CLEAR_INTERVAL, runtime->NewFunction(ClearInterval)); in InitTimerModule()
|
D | jsi_syscap_module.cpp | 84 …yscapModule::InitSyscapModule(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj) in InitSyscapModule() argument 86 moduleObj->SetProperty(runtime, CAN_IUSE, runtime->NewFunction(CanIUse)); in InitSyscapModule()
|
D | jsi_context_module.cpp | 59 …e::InitContextModule(const std::shared_ptr<JsRuntime>& runtime, std::shared_ptr<JsValue> moduleObj) in InitContextModule() argument 62 … moduleObj->SetProperty(runtime, "getContext", runtime->NewFunction(JsiContextModule::GetContext)); in InitContextModule()
|
D | jsi_matrix4_module.h | 26 void InitMatrix4Module(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj);
|
D | jsi_app_module.h | 26 void InitAppModule(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj);
|
D | jsi_router_module.h | 26 void InitRouterModule(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj);
|
D | jsi_curves_module.h | 26 void InitCurvesModule(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj);
|
D | jsi_syscap_module.h | 32 void InitSyscapModule(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj);
|
D | jsi_context_module.h | 34 …d InitContextModule(const std::shared_ptr<JsRuntime>& runtime, std::shared_ptr<JsValue> moduleObj);
|
D | jsi_timer_module.h | 34 void InitTimerModule(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj);
|
D | jsi_matrix4_module.cpp | 286 void InitMatrix4Module(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj) in InitMatrix4Module() argument 288 … moduleObj->SetProperty(runtime, MATRIX_4X4, ConvertToJSValue(runtime, Matrix4::CreateIdentity())); in InitMatrix4Module() 289 moduleObj->SetProperty(runtime, MATRIX_INIT, runtime->NewFunction(Init)); in InitMatrix4Module() 290 moduleObj->SetProperty(runtime, MATRIX_IDENTITY, runtime->NewFunction(Identity)); in InitMatrix4Module()
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/presets/ |
D | require_module.cpp | 42 jerry_value_t moduleObj = (jerry_value_t)(uintptr_t)(moduleManager->RequireModule(name)); in ImportModule() local 45 return moduleObj; in ImportModule()
|
/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/app/ |
D | js_ability_stage.cpp | 99 auto moduleObj = jsRuntime.LoadModule(moduleName, srcPath, hapModuleInfo.hapPath, in Create() local 101 return std::make_shared<JsAbilityStage>(jsRuntime, std::move(moduleObj)); in Create() 104 std::unique_ptr<NativeReference> moduleObj; in Create() local 110 moduleObj = jsRuntime.LoadModule(moduleName, srcPath, hapModuleInfo.hapPath, in Create() 114 return std::make_shared<JsAbilityStage>(jsRuntime, std::move(moduleObj)); in Create()
|