Home
last modified time | relevance | path

Searched refs:moduleObj (Results 1 – 18 of 18) sorted by relevance

/foundation/arkui/ace_engine_lite/frameworks/module_manager/
Dmodule_manager.cpp39 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 …]
Dmodule_manager.h150 void InsertTerminateCallback(const char * const name, const JSIValue& moduleObj);
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/modules/
Djsi_router_module.cpp192 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()
Djsi_app_module.cpp220 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()
224moduleObj->SetProperty(runtime, APP_SET_IMAGE_CACHE_COUNT, runtime->NewFunction(AppSetImageCacheCo… in InitAppModule()
225 moduleObj->SetProperty( in InitAppModule()
227moduleObj->SetProperty(runtime, APP_SET_IMAGE_FILE_CACHE_SIZE, runtime->NewFunction(AppSetImageFil… in InitAppModule()
229moduleObj->SetProperty(runtime, APP_REQUEST_FULL_WINDOW, runtime->NewFunction(AppRequestFullWindow… in InitAppModule()
230moduleObj->SetProperty(runtime, APP_SCREEN_ON_VISIBLE, runtime->NewFunction(AppScreenOnVisible)); in InitAppModule()
Djsi_curves_module.cpp393 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()
401moduleObj->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 …]
Djsi_timer_module.cpp167 …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()
Djsi_syscap_module.cpp84 …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()
Djsi_context_module.cpp59 …e::InitContextModule(const std::shared_ptr<JsRuntime>& runtime, std::shared_ptr<JsValue> moduleObj) in InitContextModule() argument
62moduleObj->SetProperty(runtime, "getContext", runtime->NewFunction(JsiContextModule::GetContext)); in InitContextModule()
Djsi_matrix4_module.h26 void InitMatrix4Module(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj);
Djsi_app_module.h26 void InitAppModule(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj);
Djsi_router_module.h26 void InitRouterModule(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj);
Djsi_curves_module.h26 void InitCurvesModule(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj);
Djsi_syscap_module.h32 void InitSyscapModule(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj);
Djsi_context_module.h34 …d InitContextModule(const std::shared_ptr<JsRuntime>& runtime, std::shared_ptr<JsValue> moduleObj);
Djsi_timer_module.h34 void InitTimerModule(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj);
Djsi_matrix4_module.cpp286 void InitMatrix4Module(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj) in InitMatrix4Module() argument
288moduleObj->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/
Drequire_module.cpp42 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/
Djs_ability_stage.cpp99 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()