Home
last modified time | relevance | path

Searched refs:deviceType (Results 1 - 25 of 25) sorted by relevance

/ide/tools/previewer/mock/lite/
H A DHalSysParam.cpp34 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 DCommandLineFactoryTest.cpp31 std::string deviceType = "phone"; in TEST() local
32 CommandParser::GetInstance().deviceType = deviceType; in TEST()
H A DCommandLineInterfaceTest.cpp241 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 DCommandLineTest.cpp368 "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 DModelManagerTest.cpp38 EXPECT_EQ(config.deviceType, device); in TEST()
52 EXPECT_EQ(config.deviceType, device); in TEST()
H A DCommandParserTest.cpp1141 EXPECT_EQ(info.deviceType, "phone"); in TEST_F()
/ide/tools/previewer/test/fuzztest/jsonparse_fuzzer/
H A DGetHspAceModuleBuildFuzzer.cpp31 "deviceType": "phone,tablet,2in1",
36 "deviceType": "phone,tablet,2in1",
H A DDeviceConfigParseFuzzer.cpp61 CommandParser::GetInstance().deviceType = "phone"; in TEST()
/ide/tools/previewer/util/
H A DModelConfig.h24 std::string deviceType; member
H A DModelManager.cpp56 if (config.deviceType == device) { in GetConfig()
H A DCommandParser.cpp33 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 DCommandParser.h25 std::string deviceType; member in CommandInfo
136 std::string deviceType; member in CommandParser::ScreenMode
/ide/tools/previewer/test/fuzztest/commandparse_fuzzer/
H A DRichCommandParseFuzzer.cpp45 "deviceType":"phone","dpi":480}})"},
64 CommandParser::GetInstance().deviceType = "phone"; in TEST()
H A DCommonCommandParseFuzzer.cpp48 CommandParser::GetInstance().deviceType = "common"; in TEST()
H A DLiteCommandParseFuzzer.cpp52 CommandParser::GetInstance().deviceType = "liteWearable"; in TEST()
/ide/tools/previewer/test/mock/jsapp/
H A DMockJsApp.cpp21 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 DJsAppImpl.cpp124 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 DJsAppImpl.h176 T SetDevice(const OHOS::Ace::DeviceType& deviceType) const in SetDevice()
179 switch (deviceType) { in SetDevice()
/ide/tools/previewer/jsapp/
H A DJsApp.cpp63 bool JsApp::IsLiteDevice(std::string deviceType) in IsLiteDevice() argument
65 auto iter = find(liteDevice.begin(), liteDevice.end(), deviceType); in IsLiteDevice()
H A DJsApp.h129 static bool IsLiteDevice(std::string deviceType);
/ide/tools/previewer/cli/
H A DCommandLineFactory.cpp30 std::string deviceType = cmdParser.GetDeviceType(); in InitCommandMap() local
31 bool isLiteDevice = JsApp::IsLiteDevice(deviceType); in InitCommandMap()
H A DCommandLine.cpp611 !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 DJsAppImplTest.cpp163 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 DJsAppImpl.cpp78 std::string deviceType = CommandParser::GetInstance().GetDeviceType(); in InitFontEngine() local
/ide/tools/previewer/test/unittest/mock_lite/
H A DVirtualScreenImplTest.cpp110 CommandParser::GetInstance().deviceType = "liteWearable"; in TEST_F()

Completed in 17 milliseconds