Home
last modified time | relevance | path

Searched refs:orientation (Results 1 - 11 of 11) sorted by relevance

/ide/tools/previewer/jsapp/rich/
H A DJsAppImpl.cpp126 aceRunArgs.deviceConfig.orientation = DeviceOrientation::PORTRAIT; in OrientationChanged()
128 aceRunArgs.deviceConfig.orientation = DeviceOrientation::LANDSCAPE; in OrientationChanged()
131 orientation = commandOrientation; in OrientationChanged()
132 ILOG("OrientationChanged: %s %d %d %f", orientation.c_str(), aceRunArgs.deviceWidth, in OrientationChanged()
138 ability->SurfaceChanged(aceRunArgs.deviceConfig.orientation, aceRunArgs.deviceConfig.density, in OrientationChanged()
176 SetOrientation(args, orientation); in SetJsAppArgs()
358 deviceCfg.orientation = SetOrientation<OHOS::AbilityRuntime::DeviceOrientation>( in SetSimulatorCommonParams()
359 aceRunArgs.deviceConfig.orientation); in SetSimulatorCommonParams()
386 if (aceRunArgs.deviceConfig.orientation == DeviceOrientation::LANDSCAPE) { in UpdateConfiguration()
387 orientation in UpdateConfiguration()
[all...]
H A DJsAppImpl.h207 T SetOrientation(const OHOS::Ace::DeviceOrientation& orientation) const in SetOrientation()
210 if (orientation == OHOS::Ace::DeviceOrientation::PORTRAIT) { in SetOrientation()
212 } else if (orientation == OHOS::Ace::DeviceOrientation::LANDSCAPE) { in SetOrientation()
/ide/tools/previewer/jsapp/
H A DJsApp.cpp37 orientation(""), in JsApp()
166 return orientation; in GetOrientation()
171 orientation = commandOrientation; in OrientationChanged()
H A DJsApp.h154 std::string orientation; member in JsApp
/ide/tools/previewer/test/mock/window/
H A DMockWindowModel.cpp31 Rosen::Orientation PreviewerWindow::TransOrientation(Previewer::Orientation orientation) in TransOrientation() argument
/ide/tools/previewer/test/mock/jsapp/
H A DMockJsAppImpl.cpp38 return orientation; in GetOrientation()
43 orientation = commandOrientation; in OrientationChanged()
/ide/tools/previewer/test/fuzztest/commandparse_fuzzer/
H A DRichCommandParseFuzzer.cpp44 "height":2340,"locale":"zh_CN","colorMode":"light","orientation":"portrait",
/ide/tools/previewer/test/mock/arkui/
H A DMockAceAbility.cpp68 const DeviceOrientation& orientation, const double& resolution, int32_t& width, int32_t& height, in SurfaceChanged()
67 SurfaceChanged( const DeviceOrientation& orientation, const double& resolution, int32_t& width, int32_t& height, WindowSizeChangeReason type) SurfaceChanged() argument
/ide/tools/previewer/test/unittest/jsapp/
H A DJsAppImplTest.cpp122 EXPECT_EQ(JsAppImpl::GetInstance().orientation, "portrait"); in TEST_F()
126 EXPECT_EQ(JsAppImpl::GetInstance().orientation, "landscape"); in TEST_F()
174 EXPECT_EQ(JsAppImpl::GetInstance().orientation, "portrait"); in TEST_F()
175 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceConfig.orientation, in TEST_F()
187 EXPECT_EQ(JsAppImpl::GetInstance().orientation, "landscape"); in TEST_F()
188 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceConfig.orientation, in TEST_F()
207 EXPECT_EQ("landscape", JsAppImpl::GetInstance().orientation); in TEST_F()
212 JsAppImpl::GetInstance().orientation = "portrait"; in TEST_F()
663 paramObj2.Add("orientation", ""); in TEST_F()
/ide/tools/previewer/util/
H A DCommandParser.cpp73 Register("-o", 1, "Set orientation for the display."); in CommandParser()
633 std::string orientation = Value("o"); in IsOrientationValid() local
634 if (orientation != "portrait" && orientation != "landscape") { in IsOrientationValid()
635 errorInfo = std::string("The orientation argument unsupported."); in IsOrientationValid()
/ide/tools/previewer/test/unittest/cli/
H A DCommandLineTest.cpp103 JsAppImpl::GetInstance().orientation = ""; in TEST_F()
367 "height":"2340","locale":"zh_CN","colorMode":"light","orientation":"portrait", in TEST_F()
380 "height" : 2340, "locale" : "zh_CN" , "colorMode" : "light", "orientation" : "portrait", in TEST_F()
394 "height" : 2340, "locale" : "aa_PP", "colorMode" : "light", "orientation" : "portrait", in TEST_F()
404 "height" : 2340, "locale" : "zh_CN", "colorMode" : "aaa", "orientation" : "portrait", in TEST_F()
413 "height" : 2340, "locale" : "zh_CN", "colorMode" : "dark", "orientation" : "aaa", in TEST_F()
422 "height" : 2340, "locale" : "zh_CN", "colorMode" : "dark", "orientation" : "landscape", in TEST_F()
436 "height":2340,"locale":"zh_CN","colorMode":"light","orientation":"portrait", in TEST_F()
446 "height":2340,"locale":"zh_CN","colorMode":"light","orientation":"portrait", in TEST_F()

Completed in 10 milliseconds