Searched refs:CommandLineOptions (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/cmds/idmap2/tests/ |
D | CommandLineOptionsTests.cpp | 43 CommandLineOptions opts = in TEST() 44 CommandLineOptions("test").OptionalFlag("--foo", "", &foo).OptionalFlag("--bar", "", &bar); in TEST() 61 CommandLineOptions opts = CommandLineOptions("test") in TEST() 75 CommandLineOptions opts = CommandLineOptions("test").MandatoryOption("--foo", "", &foo); in TEST() 83 CommandLineOptions opts = CommandLineOptions("test").MandatoryOption("--foo", "", &args); in TEST() 94 CommandLineOptions opts = CommandLineOptions("test") in TEST() 119 CommandLineOptions opts = CommandLineOptions("test") in TEST() 168 CommandLineOptions opts = CommandLineOptions("test") in TEST() 191 std::unique_ptr<std::vector<std::string>> v = CommandLineOptions::ConvertArgvToVector(3, argv); in TEST() 202 std::unique_ptr<std::vector<std::string>> v = CommandLineOptions::ConvertArgvToVector(1, argv); in TEST() [all …]
|
/frameworks/base/cmds/idmap2/include/idmap2/ |
D | CommandLineOptions.h | 34 class CommandLineOptions { 38 explicit CommandLineOptions(const std::string& name) : name_(name) { in CommandLineOptions() function 41 CommandLineOptions& OptionalFlag(const std::string& name, const std::string& description, 43 CommandLineOptions& MandatoryOption(const std::string& name, const std::string& description, 45 CommandLineOptions& MandatoryOption(const std::string& name, const std::string& description, 47 CommandLineOptions& OptionalOption(const std::string& name, const std::string& description, 49 CommandLineOptions& OptionalOption(const std::string& name, const std::string& description,
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | CommandLineOptions.cpp | 35 std::unique_ptr<std::vector<std::string>> CommandLineOptions::ConvertArgvToVector( in ConvertArgvToVector() 40 CommandLineOptions& CommandLineOptions::OptionalFlag(const std::string& name, in OptionalFlag() 48 CommandLineOptions& CommandLineOptions::MandatoryOption(const std::string& name, in MandatoryOption() 57 CommandLineOptions& CommandLineOptions::MandatoryOption(const std::string& name, in MandatoryOption() 66 CommandLineOptions& CommandLineOptions::OptionalOption(const std::string& name, in OptionalOption() 75 CommandLineOptions& CommandLineOptions::OptionalOption(const std::string& name, in OptionalOption() 84 Result<Unit> CommandLineOptions::Parse(const std::vector<std::string>& argv) const { in Parse() 142 void CommandLineOptions::Usage(std::ostream& out) const { in Usage()
|
/frameworks/base/cmds/idmap2/idmap2/ |
D | Dump.cpp | 31 using android::idmap2::CommandLineOptions; 44 const CommandLineOptions opts = in Dump() 45 CommandLineOptions("idmap2 dump") in Dump()
|
D | Create.cpp | 35 using android::idmap2::CommandLineOptions; 58 const CommandLineOptions opts = in Create() 59 CommandLineOptions("idmap2 create") in Create()
|
D | CreateMultiple.cpp | 39 using android::idmap2::CommandLineOptions; 59 const CommandLineOptions opts = in CreateMultiple() 60 CommandLineOptions("idmap2 create-multiple") in CreateMultiple()
|
D | Main.cpp | 31 using android::idmap2::CommandLineOptions; 66 CommandLineOptions::ConvertArgvToVector(argc - 1, const_cast<const char**>(argv + 1)); in main()
|
D | Lookup.cpp | 51 using android::idmap2::CommandLineOptions; 158 const CommandLineOptions opts = in Lookup() 159 CommandLineOptions("idmap2 lookup") in Lookup()
|