Lines Matching refs:JsAppImpl
16 #include "JsAppImpl.h"
56 JsAppImpl::GetInstance().CalculateAvoidAreaByType(type, property);
65 JsAppImpl::JsAppImpl() noexcept : ability(nullptr), isStop(false)
72 JsAppImpl::~JsAppImpl() {}
74 JsAppImpl& JsAppImpl::GetInstance()
76 static JsAppImpl instance;
80 void JsAppImpl::Start()
96 ILOG("JsAppImpl::Interrupt finished");
100 void JsAppImpl::Restart()
105 std::string JsAppImpl::GetJSONTree()
111 std::string JsAppImpl::GetDefaultJSONTree()
119 void JsAppImpl::OrientationChanged(std::string commandOrientation)
143 void JsAppImpl::ColorModeChanged(const std::string commandColorMode)
156 void JsAppImpl::Interrupt()
161 void JsAppImpl::SetJsAppArgs(OHOS::Ace::Platform::AceRunArgs& args)
198 void JsAppImpl::RunJsApp()
228 void JsAppImpl::RunNormalAbility()
265 void JsAppImpl::RunDebugAbility()
317 void JsAppImpl::SetSimulatorParams(OHOS::AbilityRuntime::Options& options)
334 void JsAppImpl::SetSimulatorCommonParams(OHOS::AbilityRuntime::Options& options)
375 std::shared_ptr<AppExecFwk::Configuration> JsAppImpl::UpdateConfiguration(OHOS::Ace::Platform::AceRunArgs& args)
396 void JsAppImpl::SetWindowParams() const
409 void JsAppImpl::RunDebugAbility()
416 void JsAppImpl::AdaptDeviceType(Platform::AceRunArgs& args, const std::string type,
465 void JsAppImpl::SetAssetPath(Platform::AceRunArgs& args, const std::string assetPath) const
470 void JsAppImpl::SetProjectModel(Platform::AceRunArgs& args) const
477 void JsAppImpl::SetPageProfile(Platform::AceRunArgs& args, const std::string pageProfile) const
482 void JsAppImpl::SetDeviceWidth(Platform::AceRunArgs& args, const int32_t deviceWidth) const
487 void JsAppImpl::SetDeviceHeight(Platform::AceRunArgs& args, const int32_t deviceHeight) const
492 void JsAppImpl::SetWindowTitle(Platform::AceRunArgs& args, const std::string windowTitle) const
497 void JsAppImpl::SetUrl(Platform::AceRunArgs& args, const std::string urlPath) const
502 void JsAppImpl::SetConfigChanges(Platform::AceRunArgs& args, const std::string configChanges) const
507 void JsAppImpl::SetColorMode(Platform::AceRunArgs& args, const std::string colorMode) const
509 ILOG("JsAppImpl::RunJsApp SetColorMode: %s", colorMode.c_str());
517 void JsAppImpl::SetOrientation(Platform::AceRunArgs& args, const std::string orientation) const
519 ILOG("JsAppImpl::RunJsApp SetOrientation: %s", orientation.c_str());
527 void JsAppImpl::SetAceVersionArgs(Platform::AceRunArgs& args, const std::string aceVersion) const
529 ILOG("JsAppImpl::RunJsApp SetAceVersionArgs: %s", aceVersion.c_str());
537 void JsAppImpl::SetLanguage(Platform::AceRunArgs& args, const std::string language) const
542 void JsAppImpl::SetRegion(Platform::AceRunArgs& args, const std::string region) const
547 void JsAppImpl::SetScript(Platform::AceRunArgs& args, const std::string script) const
552 void JsAppImpl::SetSystemResourcesPath(Platform::AceRunArgs& args) const
562 void JsAppImpl::SetAppResourcesPath(Platform::AceRunArgs& args, const std::string appResourcesPath) const
567 void JsAppImpl::SetFormsEnabled(Platform::AceRunArgs& args, bool formsEnabled) const
572 void JsAppImpl::SetContainerSdkPath(Platform::AceRunArgs& args, const std::string containerSdkPath) const
577 void JsAppImpl::SetOnRouterChange(Platform::AceRunArgs& args) const
582 void JsAppImpl::SetOnError(Platform::AceRunArgs& args) const
587 void JsAppImpl::SetComponentModeEnabled(Platform::AceRunArgs& args, bool isComponentMode) const
592 void JsAppImpl::AssignValueForWidthAndHeight(const int32_t origWidth,
604 void JsAppImpl::ResolutionChanged(ResolutionParam& param, int32_t screenDensity, std::string reason)
641 WindowSizeChangeReason JsAppImpl::ConvertResizeReason(std::string reason)
652 void JsAppImpl::SetResolutionParams(int32_t changedOriginWidth, int32_t changedOriginHeight, int32_t changedWidth,
663 JsAppImpl::GetInstance().SetDeviceOrentation("portrait");
665 JsAppImpl::GetInstance().SetDeviceOrentation("landscape");
673 void JsAppImpl::SetArgsColorMode(const std::string& value)
678 void JsAppImpl::SetArgsAceVersion(const std::string& value)
683 void JsAppImpl::SetDeviceOrentation(const std::string& value)
688 std::string JsAppImpl::GetOrientation() const
693 std::string JsAppImpl::GetColorMode() const
698 void JsAppImpl::SetDeviceScreenDensity(const int32_t screenDensity, const std::string type)
728 void JsAppImpl::ReloadRuntimePage(const std::string currentPage)
736 void JsAppImpl::SetScreenDensity(const std::string value)
741 void JsAppImpl::SetConfigChanges(const std::string value)
746 bool JsAppImpl::MemoryRefresh(const std::string memoryRefreshArgs) const
755 void JsAppImpl::ParseSystemParams(OHOS::Ace::Platform::AceRunArgs& args, const Json2::Value& paramObj)
784 void JsAppImpl::SetSystemParams(OHOS::Ace::Platform::SystemParams& params, const Json2::Value& paramObj)
799 void JsAppImpl::LoadDocument(const std::string filePath,
825 void JsAppImpl::DispatchBackPressedEvent() const
829 void JsAppImpl::DispatchKeyEvent(const std::shared_ptr<OHOS::MMI::KeyEvent>& keyEvent) const
844 void JsAppImpl::DispatchPointerEvent(const std::shared_ptr<OHOS::MMI::PointerEvent>& pointerEvent) const
859 void JsAppImpl::DispatchAxisEvent(const std::shared_ptr<OHOS::MMI::AxisEvent>& axisEvent) const
863 void JsAppImpl::DispatchInputMethodEvent(const unsigned int codePoint) const
868 std::string JsAppImpl::GetDeviceTypeName(const OHOS::Ace::DeviceType type) const
886 void JsAppImpl::InitGlfwEnv()
898 void JsAppImpl::SetMockJsonInfo()
910 void JsAppImpl::SetPkgContextInfo()
916 void JsAppImpl::FoldStatusChanged(const std::string commandFoldStatus, int32_t currentWidth, int32_t currentHeight)
933 OHOS::Rosen::FoldStatus JsAppImpl::ConvertFoldStatus(std::string value) const
948 void JsAppImpl::SetAvoidArea(const AvoidAreas& areas)
953 void JsAppImpl::CalculateAvoidAreaByType(OHOS::Rosen::WindowType type,
992 void JsAppImpl::UpdateAvoidArea2Ide(const std::string& key, const OHOS::Rosen::Rect& value)
1004 OHOS::Rosen::Window* JsAppImpl::GetWindow() const
1017 void JsAppImpl::InitAvoidAreas(OHOS::Rosen::Window* window)
1025 void JsAppImpl::InitJsApp()
1064 JsAppImpl::GetInstance().SetComponentTestModeConfig(parser.Value("componentTest"));
1072 void JsAppImpl::SetComponentTestConfig(Platform::AceRunArgs& args, const std::string componentTest) const
1078 void JsAppImpl::SetComponentTestModeConfig(const std::string value)
1084 void JsAppImpl::StopAbility()
1110 void JsAppImpl::InitCommandInfo()
1115 void JsAppImpl::InitScreenInfo()