/aosp12/bootable/recovery/tests/unit/ |
H A D | commands_test.cpp | 30 ASSERT_EQ(Command::Type::NEW, Command::ParseType("new")); in TEST() 172 Command command = Command::Parse(input, 0, &err); in TEST() 184 Command command = Command::Parse(input, 0, &err); in TEST() 196 Command command = Command::Parse(input, 1, &err); in TEST() 216 Command command = Command::Parse(input, 2, &err); in TEST() 232 Command command = Command::Parse(input, 3, &err); in TEST() 253 Command command = Command::Parse(input, 4, &err); in TEST() 275 Command command = Command::Parse(input, 5, &err); in TEST() 295 Command command = Command::Parse(input, 6, &err); in TEST() 311 Command command = Command::Parse(input, 7, &err); in TEST() [all …]
|
/aosp12/system/bt/gd/security/ |
H A D | smp_packets.pdl | 22 packet Command { 55 packet PairingRequest : Command (code = PAIRING_REQUEST) { 59 packet PairingResponse : Command (code = PAIRING_RESPONSE) { 63 packet PairingConfirm : Command (code = PAIRING_CONFIRM) { 67 packet PairingRandom : Command (code = PAIRING_RANDOM) { 88 packet PairingFailed : Command (code = PAIRING_FAILED) { 101 packet IdentityInformation : Command (code = IDENTITY_INFORMATION) { 115 packet SigningInformation : Command (code = SIGNING_INFORMATION) { 119 packet SecurityRequest : Command (code = SECURITY_REQUEST) { 123 packet PairingPublicKey : Command (code = PAIRING_PUBLIC_KEY) { [all …]
|
/aosp12/build/soong/cmd/sbox/sbox_proto/ |
H A D | sbox.pb.go | 75 type Command struct { struct 98 func (m *Command) Reset() { *m = Command{} } 100 func (*Command) ProtoMessage() {} 114 func (m *Command) XXX_Size() int { 117 func (m *Command) XXX_DiscardUnknown() { 130 func (m *Command) GetChdir() bool { 137 func (m *Command) GetCommand() string { 138 if m != nil && m.Command != nil { 139 return *m.Command 144 func (m *Command) GetCopyAfter() []*Copy { [all …]
|
/aosp12/frameworks/base/cmds/svc/src/com/android/commands/svc/ |
H A D | Svc.java | 21 public static abstract class Command { class in Svc 24 public Command(String name) { in Command() method in Svc.Command 39 Command c = lookupCommand(args[0]); in main() 48 private static Command lookupCommand(String name) { in lookupCommand() 51 Command c = COMMANDS[i]; in lookupCommand() 59 public static final Command COMMAND_HELP = new Command("help") { 68 Command c = lookupCommand(args[1]); 79 Command c = COMMANDS[i]; 87 Command c = COMMANDS[i]; 93 public static final Command[] COMMANDS = new Command[] {
|
/aosp12/system/vold/bench/inodeop_bench/ |
H A D | inodeop_bench.cpp | 69 struct Command { struct 84 Command() { reset(); } in Command() argument 119 Command command; in usage() 122 ostr << "WORKLOAD_T = {" << Command::CREATE << ", " << Command::DELETE << ", " << Command::MOVE in usage() 123 << ", " << Command::HARDLINK << ", " << Command::SYMLINK << "}\n"; in usage() 128 ostr << "\t-d DIR\t\t: Work directory for " << Command::CREATE << "/" << Command::DELETE in usage() 130 ostr << "\t-f FROM-DIR\t: Source directory for " << Command::MOVE << "/" << Command::SYMLINK in usage() 371 {Command::CREATE, create_workload}, {Command::DELETE, delete_workload}, 372 {Command::MOVE, move_workload}, {Command::HARDLINK, hardlink_workload}, 373 {Command::SYMLINK, symlink_workload}, {Command::READDIR, readdir_workload}}; [all …]
|
/aosp12/frameworks/base/cmds/uiautomator/cmds/uiautomator/src/com/android/commands/uiautomator/ |
H A D | Launcher.java | 36 public static abstract class Command { class in Launcher 39 public Command(String name) { in Command() method in Launcher.Command 76 Command command = findCommand(args[0]); in main() 90 private static Command findCommand(String name) { in findCommand() 91 for (Command command : COMMANDS) { in findCommand() 99 private static Command HELP_COMMAND = new Command("help") { 104 for (Command command : COMMANDS) { 129 private static Command[] COMMANDS = new Command[] {
|
/aosp12/hardware/interfaces/graphics/composer/2.1/utils/command-buffer/include/composer-command-buffer/2.1/ |
H A D | ComposerCommandBuffer.h | 79 IComposerClient::Command getCommand(uint32_t offset) { in getCommand() 81 return static_cast<IComposerClient::Command>( in getCommand() 157 beginCommand(IComposerClient::Command::SET_ERROR, kSetErrorLength); in setError() 271 beginCommand(IComposerClient::Command::PRESENT_OR_VALIDATE_DISPLAY, in presentOrvalidateDisplay() 290 beginCommand(IComposerClient::Command::SET_LAYER_CURSOR_POSITION, in setLayerCursorPosition() 336 beginCommand(IComposerClient::Command::SET_LAYER_COMPOSITION_TYPE, in setLayerCompositionType() 349 beginCommand(IComposerClient::Command::SET_LAYER_DISPLAY_FRAME, in setLayerDisplayFrame() 364 beginCommand(IComposerClient::Command::SET_LAYER_SIDEBAND_STREAM, in setLayerSidebandStream() 417 beginCommand(IComposerClient::Command::SET_CLIENT_TARGET, length); in setClientTargetInternal() 643 static_cast<uint32_t>(IComposerClient::Command::OPCODE_MASK); in beginCommandBase() [all …]
|
/aosp12/hardware/qcom/sm7250/display/composer/ |
H A D | QtiComposerCommandBuffer.h | 83 IQtiComposerClient::Command getCommand(uint32_t offset) { in getCommand() 85 return static_cast<IQtiComposerClient::Command>(val & in getCommand() 86 static_cast<uint32_t>(IQtiComposerClient::Command::OPCODE_MASK)); in getCommand() 161 beginCommand(IQtiComposerClient::Command::SET_ERROR, kSetErrorLength); in setError() 256 beginCommand(IQtiComposerClient::Command::SET_CLIENT_TARGET, length); in setClientTarget() 307 beginCommand(IQtiComposerClient::Command::SET_LAYER_CURSOR_POSITION, in setLayerCursorPosition() 354 beginCommand(IQtiComposerClient::Command::SET_LAYER_COMPOSITION_TYPE, in setLayerCompositionType() 383 beginCommand(IQtiComposerClient::Command::SET_LAYER_SIDEBAND_STREAM, in setLayerSidebandStream() 452 beginCommand(IQtiComposerClient::Command::SET_LAYER_COLOR_TRANSFORM, in setLayerColorTransform() 725 static_cast<uint32_t>(IQtiComposerClient::Command::OPCODE_MASK); in beginCommand() [all …]
|
/aosp12/build/soong/android/ |
H A D | defs.go | 38 Command: "# phony $out", 47 Command: "# generated $out", 55 Command: "rm -f $out && cp $cpPreserveSymlinks $cpFlags $in $out", 63 Command: "if ! cmp -s $in $out; then cp $in $out; fi", 71 Command: "rm -f $out && cp $cpPreserveSymlinks $cpFlags $in $out && chmod +x $out", 79 Command: "touch $out", 86 Command: "rm -f $out && ln -f -s $fromPath $out", 94 Command: `echo "$error" && false`, 101 Command: "cat $in > $out", 110 Command: `/bin/bash -c 'echo -e -n "$$0" > $out' $content`,
|
H A D | rule_builder_test.go | 52 rule.Command(). 78 rule.Command(). 104 rule.Command(). 108 rule.Command(). 131 rule.Command(). 135 rule.Command(). 161 rule.Command(). 180 rule.Command(). 331 rule.Command(). 346 rule.Command(). [all …]
|
/aosp12/hardware/interfaces/graphics/composer/2.1/utils/hal/include/composer-hal/2.1/ |
H A D | ComposerCommandEngine.h | 59 IComposerClient::Command command; in execute() 94 case IComposerClient::Command::SELECT_DISPLAY: in executeCommand() 96 case IComposerClient::Command::SELECT_LAYER: in executeCommand() 98 case IComposerClient::Command::SET_COLOR_TRANSFORM: in executeCommand() 100 case IComposerClient::Command::SET_CLIENT_TARGET: in executeCommand() 102 case IComposerClient::Command::SET_OUTPUT_BUFFER: in executeCommand() 104 case IComposerClient::Command::VALIDATE_DISPLAY: in executeCommand() 110 case IComposerClient::Command::PRESENT_DISPLAY: in executeCommand() 114 case IComposerClient::Command::SET_LAYER_BUFFER: in executeCommand() 120 case IComposerClient::Command::SET_LAYER_COLOR: in executeCommand() [all …]
|
/aosp12/frameworks/base/tools/aapt2/cmd/ |
H A D | Command.cpp | 54 void Command::AddRequiredFlag(const StringPiece& name, const StringPiece& description, in AddRequiredFlag() 57 *value = (flags & Command::kPath) ? GetSafePath(arg) : arg.to_string(); in AddRequiredFlag() 67 value->push_back((flags & Command::kPath) ? GetSafePath(arg) : arg.to_string()); in AddRequiredFlagList() 74 void Command::AddOptionalFlag(const StringPiece& name, const StringPiece& description, in AddOptionalFlag() 77 *value = (flags & Command::kPath) ? GetSafePath(arg) : arg.to_string(); in AddOptionalFlag() 87 value->push_back((flags & Command::kPath) ? GetSafePath(arg) : arg.to_string()); in AddOptionalFlagList() 104 void Command::AddOptionalSwitch(const StringPiece& name, const StringPiece& description, in AddOptionalSwitch() 114 void Command::AddOptionalSubcommand(std::unique_ptr<Command>&& subcommand, bool experimental) { in AddOptionalSubcommand() 123 void Command::SetDescription(const StringPiece& description) { in SetDescription() 127 void Command::Usage(std::ostream* out) { in Usage() [all …]
|
H A D | Command.h | 32 class Command { 34 explicit Command(const android::StringPiece& name) : name_(name.to_string()), in Command() function 38 explicit Command(const android::StringPiece& name, const android::StringPiece& short_name) in Command() function 42 virtual ~Command() = default; 74 void AddOptionalSubcommand(std::unique_ptr<Command>&& subcommand, bool experimental = false); 90 DISALLOW_COPY_AND_ASSIGN(Command); 113 std::vector<std::unique_ptr<Command>> subcommands_; 114 std::vector<std::unique_ptr<Command>> experimental_subcommands_;
|
H A D | Compile.h | 45 class CompileCommand : public Command { 47 explicit CompileCommand(IDiagnostics* diagnostic) : Command("compile", "c"), in CompileCommand() 50 AddRequiredFlag("-o", "Output path", &options_.output_path, Command::kPath); in CompileCommand() 51 AddOptionalFlag("--dir", "Directory to scan for resources", &options_.res_dir, Command::kPath); in CompileCommand() 53 &options_.res_zip, Command::kPath); in CompileCommand() 56 "specified file", &options_.generate_text_symbols_path, Command::kPath); in CompileCommand()
|
/aosp12/hardware/interfaces/graphics/composer/2.1/utils/vts/ |
H A D | TestCommandReader.cpp | 43 IComposerClient::Command command = static_cast<IComposerClient::Command>(commandRaw); in parseSingleCommand() 46 case IComposerClient::Command::SELECT_DISPLAY: in parseSingleCommand() 50 case IComposerClient::Command::SET_ERROR: { in parseSingleCommand() 57 case IComposerClient::Command::SET_CHANGED_COMPOSITION_TYPES: in parseSingleCommand() 67 case IComposerClient::Command::SET_DISPLAY_REQUESTS: in parseSingleCommand() 77 case IComposerClient::Command::SET_PRESENT_FENCE: in parseSingleCommand() 81 case IComposerClient::Command::SET_RELEASE_FENCES: in parseSingleCommand()
|
/aosp12/system/extras/simpleperf/ |
H A D | cmd_help.cpp | 28 class HelpCommand : public Command { 31 : Command("help", "print help information for simpleperf", in HelpCommand() 43 void PrintLongHelpForOneCommand(const Command& cmd); 50 std::unique_ptr<Command> cmd = CreateCommandInstance(args[0]); in Run() 81 std::unique_ptr<Command> cmd = CreateCommandInstance(cmd_name); in PrintShortHelp() 86 void HelpCommand::PrintLongHelpForOneCommand(const Command& command) { in PrintLongHelpForOneCommand() 93 RegisterCommand("help", [] { return std::unique_ptr<Command>(new HelpCommand); }); in RegisterHelpCommand()
|
/aosp12/frameworks/base/tools/bit/ |
H A D | command.cpp | 32 Command::Command(const string& prog) in Command() function in Command 37 Command::~Command() in ~Command() 42 Command::AddArg(const string& arg) in AddArg() 48 Command::AddEnv(const string& name, const string& value) in AddEnv() 54 Command::GetProg() const in GetProg() 60 Command::GetArgv() const in GetArgv() 73 Command::GetEnv() const in GetEnv() 101 get_command_output(const Command& command, int* err, bool quiet) in get_command_output() 160 run_command(const Command& command) in run_command()
|
H A D | command.h | 26 struct Command struct 28 explicit Command(const string& prog); 29 ~Command(); 49 string get_command_output(const Command& command, int* err, bool quiet=false); argument 55 int run_command(const Command& command);
|
/aosp12/system/chre/host/common/test/power_test/ |
H A D | chre_power_test_client.cc | 172 {"unloadall", Command::kUnloadAll}, {"load", Command::kLoad}, 173 {"unload", Command::kUnload}, {"timer", Command::kTimer}, 174 {"wifi", Command::kWifi}, {"gnss", Command::kGnss}, 175 {"cell", Command::kCell}, {"audio", Command::kAudio}, 176 {"sensor", Command::kSensor}, {"breakit", Command::kBreakIt}, 831 case Command::kTimer: { in createRequestMessage() 835 case Command::kWifi: { in createRequestMessage() 839 case Command::kGnss: { in createRequestMessage() 843 case Command::kCell: { in createRequestMessage() 847 case Command::kAudio: { in createRequestMessage() [all …]
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/util/ |
H A D | NotificationPlayer.java | 47 private static final class Command { class in NotificationPlayer 63 private final LinkedList<Command> mCmdQueue = new LinkedList<Command>(); 74 public Command mCmd; 75 public CreationAndCompletionThread(final Command cmd) { in CreationAndCompletionThread() 117 private void startSound(final Command cmd) { in startSound() 153 private void stopSound(final Command cmd) { in stopSound() 181 Command cmd = null; in run() 279 final Command cmd = new Command(); in play() 307 final Command cmd = new Command(); in stop() 317 private void enqueueLocked(final Command cmd) { in enqueueLocked()
|
/aosp12/build/soong/java/ |
H A D | lint_test.go | 43 if !strings.Contains(*sboxProto.Commands[0].Command, "--baseline lint-baseline.xml") { 65 if strings.Contains(*sboxProto.Commands[0].Command, "--baseline") { 112 if !strings.Contains(*sboxProto.Commands[0].Command, "--baseline mybaseline.xml") { 116 if !strings.Contains(*sboxProto.Commands[0].Command, "--error_check NewApi") { 120 if !strings.Contains(*sboxProto.Commands[0].Command, "--error_check SomeCheck") { 210 if !strings.Contains(*sboxProto.Commands[0].Command, 217 if !strings.Contains(*sboxProto.Commands[0].Command, 251 if strings.Contains(*sboxProto.Commands[0].Command, 255 if !strings.Contains(*sboxProto.Commands[0].Command, 287 if !strings.Contains(*sboxProto.Commands[0].Command, [all …]
|
/aosp12/frameworks/base/media/java/android/media/ |
H A D | AsyncPlayer.java | 38 private static final class Command { class in AsyncPlayer 52 private final LinkedList<Command> mCmdQueue = new LinkedList(); 54 private void startSound(Command cmd) { in startSound() 87 Command cmd = null; in run() 198 Command cmd = new Command(); in play() 220 Command cmd = new Command(); in stop() 229 private void enqueueLocked(Command cmd) { in enqueueLocked()
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/commandline/ |
H A D | CommandSupplier.java | 25 public abstract class CommandSupplier implements Supplier<ImmutableMap<String, Command>> { 31 public abstract ImmutableMap<String, Command> commands(); in commands() 34 public ImmutableMap<String, Command> get() { in get() 42 abstract ImmutableMap.Builder<String, Command> commandsBuilder(); in commandsBuilder() 44 public Builder addCommand(String key, Command command) { in addCommand()
|
/aosp12/build/soong/filesystem/ |
H A D | filesystem.go | 163 builder.Command().Text("rm -rf").Text(rootDir.String()) 208 zipCommand := builder.Command().BuiltTool("soong_zip") 221 builder.Command().Text("rm -rf").Text(rootDir.String()) 234 builder.Command(). 242 builder.Command(). 250 builder.Command().BuiltTool("build_image"). 266 builder.Command().BuiltTool("sefcontext_compile"). 328 builder.Command(). 353 builder.Command(). 361 builder.Command(). [all …]
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
H A D | NotificationPlayer.java | 48 private static final class Command { class in NotificationPlayer 62 private final LinkedList<Command> mCmdQueue = new LinkedList<Command>(); 77 public Command mCmd; 78 public CreationAndCompletionThread(Command cmd) { in CreationAndCompletionThread() 183 private void startSound(Command cmd) { in startSound() 226 Command cmd = null; in run() 392 Command cmd = new Command(); in play() 420 Command cmd = new Command(); in play() 443 Command cmd = new Command(); in stop() 453 private void enqueueLocked(Command cmd) { in enqueueLocked()
|