Home
last modified time | relevance | path

Searched refs:args (Results 1 – 22 of 22) sorted by relevance

/ide/tools/previewer/cli/
DCommandLine.cpp42 : args(arg), cliSocket(socket), type(commandType), commandName("") in CommandLine()
49 args.clear(); in ~CommandLine()
195 if (args.isNull() || !args.isMember("x") || !args.isMember("y") || in IsActionArgValid()
196 !args["x"].isInt() || !args["y"].isInt()) { in IsActionArgValid()
199 int32_t pointX = args["x"].asInt(); in IsActionArgValid()
200 int32_t pointY = args["y"].asInt(); in IsActionArgValid()
221 param.x = atof(args["x"].asString().data()); in RunAction()
222 param.y = atof(args["y"].asString().data()); in RunAction()
235 …if (args.isNull() || !args.isMember("rotate") || !IsOneDigitFloatType(args["rotate"].asString(), t… in IsActionArgValid()
251 MouseWheelImpl::GetInstance().SetRotate(atof(args["rotate"].asString().data())); in RunAction()
[all …]
DCommandLineFactory.h30 Json::Value args,
DCommandLineFactory.cpp105 … const Json::Value& args, const LocalSocket& socket) in CreateObject() argument
107 return make_unique<T>(type, args, socket); in CreateObject()
DCommandLineInterface.cpp88 Json::Value args; in SendWebsocketStartupSignal() local
90 args["port"] = VirtualScreen::webSocketPort; in SendWebsocketStartupSignal()
91 result["args"] = args; in SendWebsocketStartupSignal()
DCommandLine.h43 Json::Value args;
206 bool IsIntValValid(const Json::Value& args) const;
/ide/tools/previewer/jsapp/rich/
DJsAppImpl.cpp172 void JsAppImpl::SetJsAppArgs(OHOS::Ace::Platform::AceRunArgs& args) in SetJsAppArgs() argument
174 SetAssetPath(args, jsAppPath); in SetJsAppArgs()
175 SetProjectModel(args); in SetJsAppArgs()
176 SetPageProfile(args, CommandParser::GetInstance().GetPages()); in SetJsAppArgs()
177 SetDeviceWidth(args, width); in SetJsAppArgs()
178 SetDeviceHeight(args, height); in SetJsAppArgs()
179 SetWindowTitle(args, "Ace"); in SetJsAppArgs()
180 SetUrl(args, urlPath); in SetJsAppArgs()
181 SetConfigChanges(args, configChanges); in SetJsAppArgs()
182 SetColorMode(args, colorMode); in SetJsAppArgs()
[all …]
DJsAppImpl.h85 void SetJsAppArgs(OHOS::Ace::Platform::AceRunArgs& args);
97 void SetAssetPath(OHOS::Ace::Platform::AceRunArgs& args, const std::string) const;
98 void SetProjectModel(OHOS::Ace::Platform::AceRunArgs& args) const;
99 void SetPageProfile(OHOS::Ace::Platform::AceRunArgs& args, const std::string) const;
100 void SetDeviceWidth(OHOS::Ace::Platform::AceRunArgs& args, const int32_t) const;
101 void SetDeviceHeight(OHOS::Ace::Platform::AceRunArgs& args, const int32_t) const;
102 void SetWindowTitle(OHOS::Ace::Platform::AceRunArgs& args, const std::string) const;
103 void SetUrl(OHOS::Ace::Platform::AceRunArgs& args, const std::string) const;
104 void SetConfigChanges(OHOS::Ace::Platform::AceRunArgs& args, const std::string) const;
105 void SetColorMode(OHOS::Ace::Platform::AceRunArgs& args, const std::string) const;
[all …]
/ide/tools/previewer/automock/mock-generate/src/declaration-node/
DmethodSignatureDeclaration.ts29 const args: Array<ParameterEntity> = []; constant
33 args.push(getParameter(value, sourceFile));
39 args: args
46 args: Array<ParameterEntity> property
DcallSignatureDeclaration.ts29 const args: Array<ParameterEntity> = []; constant
36 args.push(getParameter(value, sourceFile));
42 args: args
49 args: Array<ParameterEntity> property
DfunctionDeclaration.ts29 const args: Array<ParameterEntity> = []; constant
33 args.push(getParameter(value, sourceFile));
39 args: args
46 args: Array<ParameterEntity> property
DmethodDeclaration.ts37 const args: Array<ParameterEntity> = []; constant
53 args.push(getParameter(value, sourceFile));
60 args: args
73 args: Array<ParameterEntity> property
/ide/tools/previewer/automock/mock-generate/src/generate/
DgenerateExportFunction.ts37 const args = functionEntity.args; constant
38 const len = args.length;
39 if (args.length > 0 && args[len - 1].paramName.toLowerCase().includes('callback')) {
DgenerateStaticFunction.ts46 const args = methodEntity.args; constant
47 const len = args.length;
48 if (args.length > 0 && args[len - 1].paramName === 'callback') {
49 methodBody += getCallbackStatement(mockApi, args[len - 1]?.paramTypeString);
DgenerateCommonMethodSignature.ts47 const args = methodEntity.args; constant
48 const len = args.length;
49 if (args.length > 0 && args[len - 1].paramName.toLowerCase().includes('callback')) {
50 methodSignatureBody += getCallbackStatement(mockApi, args[len - 1]?.paramTypeString);
67 value.args.forEach(arg => {
DgenerateCommonFunction.ts54 const args = functionEntity.args; constant
55 const len = args.length;
56 if (args.length > 0 && args[len - 1].paramName.toLowerCase().includes('callback')) {
57 functionBody += getCallbackStatement(mockApi, args[len - 1]?.paramTypeString);
76 value.args.forEach(arg => {
DgenerateCommonMethod.ts56 const args = methodEntity.args; constant
57 const len = args.length;
58 if (args.length > 0 && args[len - 1].paramName.toLowerCase().includes('callback')) {
59 methodBody += getCallbackStatement(mockApi, args[len - 1]?.paramTypeString);
76 value.args.forEach(arg => {
DgenerateCommonUtil.ts495 functionBody.args.forEach(arg => {
/ide/tools/previewer/util/
DCppTimer.h38 … explicit CppTimer(Function callback, Args... args) : interval(0), shotTimes(-1), isRunning(false) in CppTimer() argument
40 functional = [callback, args...]() { return callback(args...); }; in CppTimer()
47 …CppTimer(Function callback, Args... args, int shotTimes) : interval(0), shotTimes(-1), isRunning(f… in CppTimer() argument
49 functional = [callback, args...]() { return callback(args...); }; in CppTimer()
DCommandParser.cpp143 auto args = argsMap[string("-") + key]; in Value() local
144 if (args.size() > 0) { in Value()
145 return args[0]; in Value()
155 vector<string> args = argsMap[key]; in Values() local
156 return args; in Values()
763 vector<string> args; in ProcessingCommand() local
766 args.push_back(""); in ProcessingCommand()
769 args.push_back(strs[++i]); in ProcessingCommand()
771 argsMap[index] = args; in ProcessingCommand()
/ide/tools/previewer/
DThinPreviewer.cpp59 string args = parser.GetConfigPath(); in InitJsApp() local
60 if (args.empty()) { in InitJsApp()
64 CommandLineInterface::GetInstance().ReadAndApplyConfig(args); in InitJsApp()
/ide/tools/previewer/automock/
DBUILD.gn25 args = []
59 args = [
/ide/tools/previewer/automock/mock-generate/
D.eslintrc89 "no-unused-vars": [2, { "vars": "all", "args": "none" }],