Home
last modified time | relevance | path

Searched refs:subcommand (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/tools/aapt2/cmd/
DCommand.cpp114 void Command::AddOptionalSubcommand(std::unique_ptr<Command>&& subcommand, bool experimental) { in AddOptionalSubcommand() argument
115 subcommand->full_subcommand_name_ = StringPrintf("%s %s", name_.data(), subcommand->name_.data()); in AddOptionalSubcommand()
117 experimental_subcommands_.push_back(std::move(subcommand)); in AddOptionalSubcommand()
119 subcommands_.push_back(std::move(subcommand)); in AddOptionalSubcommand()
147 for (auto& subcommand : subcommands_) { in Usage() local
148 std::string argline = subcommand->name_; in Usage()
153 for (StringPiece line : util::Tokenize(subcommand->description_, '\n')) { in Usage()
190 for (auto& subcommand : subcommands_) { in Execute() local
191 if (arg == subcommand->name_ || (!subcommand->short_name_.empty() in Execute()
192 && arg == subcommand->short_name_)) { in Execute()
[all …]
DCommand.h74 void AddOptionalSubcommand(std::unique_ptr<Command>&& subcommand, bool experimental = false);