| /ide/tools/previewer/mock/lite/ |
| H A D | HalSysParam.cpp | 34 ILOG("Get productType, result: %s", ModelManager::GetConfig().deviceType.c_str()); in HalGetDeviceType() 35 if (ModelManager::GetConfig().deviceType.empty()) { in HalGetDeviceType() 39 return ModelManager::GetConfig().deviceType.c_str(); in HalGetDeviceType()
|
| /ide/tools/previewer/test/unittest/cli/ |
| H A D | CommandLineFactoryTest.cpp | 31 std::string deviceType = "phone"; in TEST() local 32 CommandParser::GetInstance().deviceType = deviceType; in TEST()
|
| H A D | CommandLineInterfaceTest.cpp | 241 void InitSharedData(std::string deviceType) in InitSharedData() argument 243 if (deviceType == "liteWearable" || "smartVersion") { in InitSharedData() 276 std::string deviceType = "liteWearable"; in TEST() local 277 CommandParser::GetInstance().deviceType = deviceType; in TEST() 283 instance.Init(deviceType); in TEST() 284 InitSharedData(deviceType); in TEST() 349 std::string deviceType = "phone"; in TEST() local 350 CommandParser::GetInstance().deviceType = deviceType; in TEST() 361 std::string deviceType = "liteWearable"; TEST() local [all...] |
| H A D | CommandLineTest.cpp | 368 "deviceType":"phone","dpi":480}})"; in TEST_F() 381 "deviceType" : "phone", "dpi" : 720}})"; in TEST_F() 391 CommandParser::GetInstance().deviceType = "phone"; in TEST_F() 395 "deviceType" : "phone", "dpi" : 480}})"; in TEST_F() 405 "deviceType" : "phone", "dpi" : 480}})"; in TEST_F() 414 "deviceType" : "phone", "dpi" : 480}})"; in TEST_F() 420 // deviceType error in TEST_F() 423 "deviceType" : "liteWearable", "dpi" : 480}})"; in TEST_F() 434 CommandParser::GetInstance().deviceType = "phone"; in TEST_F() 437 "deviceType" in TEST_F() [all...] |
| /ide/tools/previewer/test/unittest/util/ |
| H A D | ModelManagerTest.cpp | 38 EXPECT_EQ(config.deviceType, device); in TEST() 52 EXPECT_EQ(config.deviceType, device); in TEST()
|
| H A D | CommandParserTest.cpp | 1141 EXPECT_EQ(info.deviceType, "phone"); in TEST_F()
|
| /ide/tools/previewer/test/fuzztest/jsonparse_fuzzer/ |
| H A D | GetHspAceModuleBuildFuzzer.cpp | 31 "deviceType": "phone,tablet,2in1", 36 "deviceType": "phone,tablet,2in1",
|
| H A D | DeviceConfigParseFuzzer.cpp | 61 CommandParser::GetInstance().deviceType = "phone"; in TEST()
|
| /ide/tools/previewer/util/ |
| H A D | ModelConfig.h | 24 std::string deviceType; member
|
| H A D | ModelManager.cpp | 56 if (config.deviceType == device) { in GetConfig()
|
| H A D | CommandParser.cpp | 33 deviceType("liteWearable"), in CommandParser() 188 return deviceType; in GetDeviceType() 436 deviceType = Value("device"); in IsDeviceValid() 437 ILOG("CommandParser device: %s", deviceType.c_str()); in IsDeviceValid() 841 if (deviceType == "liteWearable" || deviceType == "smartVision") { in IsAbilityPathValid() 863 if (deviceType == "liteWearable" || deviceType == "smartVision") { in IsAbilityNameValid() 1023 info.deviceType = GetDeviceType(); in GetCommandInfo()
|
| H A D | CommandParser.h | 25 std::string deviceType; member in CommandInfo 136 std::string deviceType; member in CommandParser::ScreenMode
|
| /ide/tools/previewer/test/fuzztest/commandparse_fuzzer/ |
| H A D | RichCommandParseFuzzer.cpp | 45 "deviceType":"phone","dpi":480}})"}, 64 CommandParser::GetInstance().deviceType = "phone"; in TEST()
|
| H A D | CommonCommandParseFuzzer.cpp | 48 CommandParser::GetInstance().deviceType = "common"; in TEST()
|
| H A D | LiteCommandParseFuzzer.cpp | 52 CommandParser::GetInstance().deviceType = "liteWearable"; in TEST()
|
| /ide/tools/previewer/test/mock/jsapp/ |
| H A D | MockJsApp.cpp | 21 bool JsApp::IsLiteDevice(std::string deviceType) in IsLiteDevice() argument 24 auto iter = find(liteDevice.begin(), liteDevice.end(), deviceType); in IsLiteDevice()
|
| /ide/tools/previewer/jsapp/rich/ |
| H A D | JsAppImpl.cpp | 124 AdaptDeviceType(aceRunArgs, commandInfo.deviceType, aceRunArgs.deviceWidth); in OrientationChanged() 178 SetDeviceScreenDensity(atoi(screenDensity.c_str()), commandInfo.deviceType); in SetJsAppArgs() 186 AdaptDeviceType(args, commandInfo.deviceType, ConvertFoldStatus(screenInfo.foldStatus) == in SetJsAppArgs() 357 deviceCfg.deviceType = SetDevice<OHOS::AbilityRuntime::DeviceType>(aceRunArgs.deviceConfig.deviceType); in SetSimulatorCommonParams() 404 windowModel->deviceType = SetDevice<OHOS::Previewer::DeviceType>(aceRunArgs.deviceConfig.deviceType); in SetWindowParams() 420 args.deviceConfig.deviceType = DeviceType::WATCH; in AdaptDeviceType() 427 args.deviceConfig.deviceType = DeviceType::TV; in AdaptDeviceType() 434 args.deviceConfig.deviceType in AdaptDeviceType() 775 std::string deviceType = paramObj["deviceType"].AsString(); ParseSystemParams() local 776 SetDeviceScreenDensity(atoi(screenDensity.c_str()), deviceType); ParseSystemParams() local [all...] |
| H A D | JsAppImpl.h | 176 T SetDevice(const OHOS::Ace::DeviceType& deviceType) const in SetDevice() 179 switch (deviceType) { in SetDevice()
|
| /ide/tools/previewer/jsapp/ |
| H A D | JsApp.cpp | 63 bool JsApp::IsLiteDevice(std::string deviceType) in IsLiteDevice() argument 65 auto iter = find(liteDevice.begin(), liteDevice.end(), deviceType); in IsLiteDevice()
|
| H A D | JsApp.h | 129 static bool IsLiteDevice(std::string deviceType);
|
| /ide/tools/previewer/cli/ |
| H A D | CommandLineFactory.cpp | 30 std::string deviceType = cmdParser.GetDeviceType(); in InitCommandMap() local 31 bool isLiteDevice = JsApp::IsLiteDevice(deviceType); in InitCommandMap()
|
| H A D | CommandLine.cpp | 611 !previewParam["orientation"].IsString() || !previewParam["deviceType"].IsString()) { in IsSetArgValid() 654 if (std::find(LoadDocDevs.begin(), LoadDocDevs.end(), previewParam["deviceType"].AsString()) == in IsStrValVailid() 739 std::string deviceType = cmdParser.GetDeviceType(); in IsSetArgValid() local 740 bool isLiteDevice = JsApp::IsLiteDevice(deviceType); in IsSetArgValid() 785 std::string deviceType = CommandParser::GetInstance().GetDeviceType(); in RunGet() local 786 bool isLiteDevice = JsApp::IsLiteDevice(deviceType); in RunGet() 787 if (!deviceType.empty() && !isLiteDevice) { in RunGet()
|
| /ide/tools/previewer/test/unittest/jsapp/ |
| H A D | JsAppImplTest.cpp | 163 CommandParser::GetInstance().deviceType = "phone"; in TEST_F() 603 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceConfig.deviceType, OHOS::Ace::DeviceType::WATCH); in TEST_F() 606 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceConfig.deviceType, OHOS::Ace::DeviceType::TV); in TEST_F() 609 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceConfig.deviceType, OHOS::Ace::DeviceType::PHONE); in TEST_F() 612 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceConfig.deviceType, OHOS::Ace::DeviceType::PHONE); in TEST_F() 615 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceConfig.deviceType, OHOS::Ace::DeviceType::TWO_IN_ONE); in TEST_F() 618 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceConfig.deviceType, OHOS::Ace::DeviceType::TABLET); in TEST_F() 621 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceConfig.deviceType, OHOS::Ace::DeviceType::CAR); in TEST_F() 664 paramObj2.Add("deviceType", "phone"); in TEST_F()
|
| /ide/tools/previewer/jsapp/lite/ |
| H A D | JsAppImpl.cpp | 78 std::string deviceType = CommandParser::GetInstance().GetDeviceType(); in InitFontEngine() local
|
| /ide/tools/previewer/test/unittest/mock_lite/ |
| H A D | VirtualScreenImplTest.cpp | 110 CommandParser::GetInstance().deviceType = "liteWearable"; in TEST_F()
|