Lines Matching refs:OHOS
30 namespace OHOS {
68 OHOS::Ace::WindowSizeChangeReason ConvertResizeReason(std::string reason);
85 void UpdateAvoidArea2Ide(const std::string& key, const OHOS::Rosen::Rect& value);
86 OHOS::Rosen::Window* GetWindow() const;
89 void DispatchKeyEvent(const std::shared_ptr<OHOS::MMI::KeyEvent>& keyEvent) const;
90 void DispatchPointerEvent(const std::shared_ptr<OHOS::MMI::PointerEvent>& pointerEvent) const;
91 void DispatchAxisEvent(const std::shared_ptr<OHOS::MMI::AxisEvent>& axisEvent) const;
97 void CalculateAvoidAreaByType(OHOS::Rosen::WindowType type,
98 const OHOS::Rosen::SystemBarProperty& property);
99 void InitAvoidAreas(OHOS::Rosen::Window* window);
106 void SetJsAppArgs(OHOS::Ace::Platform::AceRunArgs& args);
120 void SetAssetPath(OHOS::Ace::Platform::AceRunArgs& args, const std::string) const;
121 void SetProjectModel(OHOS::Ace::Platform::AceRunArgs& args) const;
122 void SetPageProfile(OHOS::Ace::Platform::AceRunArgs& args, const std::string) const;
123 void SetDeviceWidth(OHOS::Ace::Platform::AceRunArgs& args, const int32_t) const;
124 void SetDeviceHeight(OHOS::Ace::Platform::AceRunArgs& args, const int32_t) const;
125 void SetWindowTitle(OHOS::Ace::Platform::AceRunArgs& args, const std::string) const;
126 void SetUrl(OHOS::Ace::Platform::AceRunArgs& args, const std::string) const;
127 void SetConfigChanges(OHOS::Ace::Platform::AceRunArgs& args, const std::string) const;
129 void SetComponentTestConfig(OHOS::Ace::Platform::AceRunArgs& args, const std::string) const;
131 void SetColorMode(OHOS::Ace::Platform::AceRunArgs& args, const std::string) const;
132 void SetOrientation(OHOS::Ace::Platform::AceRunArgs& args, const std::string) const;
133 void SetAceVersionArgs(OHOS::Ace::Platform::AceRunArgs& args, const std::string) const;
134 void SetLanguage(OHOS::Ace::Platform::AceRunArgs& args, const std::string) const;
135 void SetRegion(OHOS::Ace::Platform::AceRunArgs& args, const std::string) const;
136 void SetScript(OHOS::Ace::Platform::AceRunArgs& args, const std::string) const;
137 void SetSystemResourcesPath(OHOS::Ace::Platform::AceRunArgs& args) const;
138 void SetAppResourcesPath(OHOS::Ace::Platform::AceRunArgs& args, const std::string) const;
139 void SetFormsEnabled(OHOS::Ace::Platform::AceRunArgs& args, bool formsEnabled) const;
140 void SetContainerSdkPath(OHOS::Ace::Platform::AceRunArgs& args, const std::string) const;
141 void SetOnRouterChange(OHOS::Ace::Platform::AceRunArgs& args) const;
142 void SetOnError(OHOS::Ace::Platform::AceRunArgs& args) const;
143 void SetComponentModeEnabled(OHOS::Ace::Platform::AceRunArgs& args, bool isComponentMode) const;
146 void AdaptDeviceType(OHOS::Ace::Platform::AceRunArgs& args, const std::string,
148 void ParseSystemParams(OHOS::Ace::Platform::AceRunArgs& args, const Json2::Value& paramObj);
149 void SetSystemParams(OHOS::Ace::Platform::SystemParams& args, const Json2::Value& paramObj);
151 std::string GetDeviceTypeName(const OHOS::Ace::DeviceType) const;
152 OHOS::Rosen::FoldStatus ConvertFoldStatus(std::string value) const;
154 std::unique_ptr<OHOS::Ace::Platform::AceAbility> ability;
161 OHOS::Ace::Platform::AceRunArgs aceRunArgs;
162 std::shared_ptr<OHOS::Rosen::GlfwRenderContext> glfwRenderContext;
167 std::shared_ptr<OHOS::AbilityRuntime::Simulator> simulator;
169 void SetSimulatorParams(OHOS::AbilityRuntime::Options& options);
170 void SetSimulatorCommonParams(OHOS::AbilityRuntime::Options& options);
171 std::shared_ptr<OHOS::AppExecFwk::Configuration> UpdateConfiguration(OHOS::Ace::Platform::AceRunArgs& args);
173 std::shared_ptr<OHOS::Previewer::PreviewerWindowModel> windowModel;
176 T SetDevice(const OHOS::Ace::DeviceType& deviceType) const
180 case OHOS::Ace::DeviceType::WATCH:
182 case OHOS::Ace::DeviceType::TV:
184 case OHOS::Ace::DeviceType::CAR:
186 case OHOS::Ace::DeviceType::TABLET:
188 case OHOS::Ace::DeviceType::PHONE:
195 T SetColorMode(const OHOS::Ace::ColorMode& colorMode) const
198 if (colorMode == OHOS::Ace::ColorMode::LIGHT) {
200 } else if (colorMode == OHOS::Ace::ColorMode::DARK) {
207 T SetOrientation(const OHOS::Ace::DeviceOrientation& orientation) const
210 if (orientation == OHOS::Ace::DeviceOrientation::PORTRAIT) {
212 } else if (orientation == OHOS::Ace::DeviceOrientation::LANDSCAPE) {