Home
last modified time | relevance | path

Searched refs:CommandParser (Results 1 – 13 of 13) sorted by relevance

/ide/tools/previewer/util/
DCommandParser.cpp26 CommandParser* CommandParser::example = nullptr;
27 CommandParser::CommandParser() in CommandParser() function in CommandParser
41 screenMode(CommandParser::ScreenMode::DYNAMIC), in CommandParser()
83 CommandParser& CommandParser::GetInstance() in GetInstance()
85 static CommandParser instance; in GetInstance()
92 bool CommandParser::ProcessCommand(std::vector<std::string> strs) in ProcessCommand()
110 bool CommandParser::IsCommandValid() in IsCommandValid()
128 bool CommandParser::IsSet(string key) in IsSet()
136 string CommandParser::Value(string key) in Value()
145 vector<string> CommandParser::Values(string key) in Values()
[all …]
DCommandParser.h23 class CommandParser {
25 CommandParser(const CommandParser&) = delete;
26 CommandParser& operator=(const CommandParser&) = delete;
27 static CommandParser& GetInstance();
48 CommandParser::ScreenMode GetScreenMode() const;
61 CommandParser();
62 ~CommandParser() {} in ~CommandParser()
67 static CommandParser* example;
100 CommandParser::ScreenMode screenMode;
DTraceTool.cpp88 val["detail"]["ProjectId"] = CommandParser::GetInstance().GetProjectID(); in GetBaseInfo()
89 val["detail"]["device"] = CommandParser::GetInstance().GetDeviceType(); in GetBaseInfo()
96 return CommandParser::GetInstance().Value("ts"); in GetTracePipeName()
DBUILD.gn18 "CommandParser.cpp",
68 "CommandParser.cpp",
/ide/tools/previewer/
DRichPreviewer.cpp39 CommandParser& parser = CommandParser::GetInstance(); in InitDeviceOrientation()
51 CommandParser& parser = CommandParser::GetInstance(); in InitJsApp()
127 CommandParser& parser = CommandParser::GetInstance(); in InitSharedData()
150 CommandParser& parser = CommandParser::GetInstance(); in main()
DThinPreviewer.cpp44 CommandParser& parser = CommandParser::GetInstance(); in InitSettings()
58 CommandParser& parser = CommandParser::GetInstance(); in InitJsApp()
149 CommandParser& parser = CommandParser::GetInstance(); in main()
/ide/tools/previewer/mock/lite/
DVirtualScreenImpl.cpp38 if (CommandParser::GetInstance().GetDeviceType() == "liteWearable") { in InitAll()
43 if ((!CommandParser::GetInstance().IsResolutionValid(orignalResolutionWidth)) || in InitAll()
44 (!CommandParser::GetInstance().IsResolutionValid(orignalResolutionHeight))) { in InitAll()
120 if (CommandParser::GetInstance().IsRegionRefresh()) { in ScheduleBufferSend()
148 if (CommandParser::GetInstance().GetScreenMode() == CommandParser::ScreenMode::STATIC in Send()
/ide/tools/previewer/mock/
DVirtualScreen.cpp125 int32_t orignalWidth = CommandParser::GetInstance().GetOrignalResolutionWidth(); in InitVirtualScreen()
126 int32_t orignalHeight = CommandParser::GetInstance().GetOrignalResolutionHeight(); in InitVirtualScreen()
127 int32_t compressionWidth = CommandParser::GetInstance().GetCompressionResolutionWidth(); in InitVirtualScreen()
128 int32_t compressionHeight = CommandParser::GetInstance().GetCompressionResolutionHeight(); in InitVirtualScreen()
246 if (CommandParser::GetInstance().GetScreenMode() == CommandParser::ScreenMode::STATIC) { in JudgeStaticImage()
/ide/tools/previewer/jsapp/rich/
DJsAppImpl.cpp83 AdaptDeviceType(aceRunArgs, CommandParser::GetInstance().GetDeviceType(), in OrientationChanged()
127 SetPageProfile(args, CommandParser::GetInstance().GetPages()); in SetJsAppArgs()
137 CommandParser::GetInstance().GetDeviceType()); in SetJsAppArgs()
142 SetAppResourcesPath(args, CommandParser::GetInstance().GetAppResourcePath()); in SetJsAppArgs()
143 SetFormsEnabled(args, CommandParser::GetInstance().IsCardDisplay()); in SetJsAppArgs()
144 SetContainerSdkPath(args, CommandParser::GetInstance().GetContainerSdkPath()); in SetJsAppArgs()
145 AdaptDeviceType(args, CommandParser::GetInstance().GetDeviceType(), in SetJsAppArgs()
150 SetComponentModeEnabled(args, CommandParser::GetInstance().IsComponentMode()); in SetJsAppArgs()
225 int idxVal = CommandParser::GetInstance().GetProjectModelEnumValue(); in SetProjectModel()
226 ILOG("ProjectModel: %s", CommandParser::GetInstance().GetProjectModelEnumName(idxVal).c_str()); in SetProjectModel()
[all …]
/ide/tools/previewer/cli/
DCommandLineFactory.cpp31 CommandParser& cmdParser = CommandParser::GetInstance(); in InitCommandMap()
DCommandLine.cpp188 if (CommandParser::GetInstance().GetScreenMode() == CommandParser::ScreenMode::STATIC) { in RunAction()
214 if (CommandParser::GetInstance().GetScreenMode() == CommandParser::ScreenMode::STATIC) { in RunAction()
229 if (CommandParser::GetInstance().GetScreenMode() == CommandParser::ScreenMode::STATIC) { in RunAction()
264 if (CommandParser::GetInstance().GetScreenMode() == CommandParser::ScreenMode::STATIC) { in RunAction()
571 bool isLiteDevice = JsApp::IsLiteDevice(CommandParser::GetInstance().GetDeviceType()); in IsStrValVailid()
663 CommandParser& cmdParser = CommandParser::GetInstance(); in IsSetArgValid()
710 string deviceType = CommandParser::GetInstance().GetDeviceType(); in RunGet()
1296 if (CommandParser::GetInstance().GetScreenMode() == CommandParser::ScreenMode::STATIC) { in RunAction()
/ide/tools/previewer/mock/rich/
DVirtualScreenImpl.cpp185 if (CommandParser::GetInstance().GetScreenMode() == CommandParser::ScreenMode::STATIC in Send()
252 if (!CommandParser::GetInstance().IsRegionRefresh()) { in SendPixmap()
/ide/tools/previewer/jsapp/lite/
DJsAppImpl.cpp110 std::string deviceType = CommandParser::GetInstance().GetDeviceType(); in InitFontEngine()