Lines Matching defs:command

22  * An AT (Hayes command) Parser based on (a subset of) the ITU-T V.250 standard.
31 * invoked when command lines are processed by AtParser's process() method.<p>
33 * The AtParser object accepts a new command line to parse via its process()
34 * method. It breaks each command line into one or more commands. Each command
38 * The command types are<ul>
39 * <li>Basic Command. For example "ATDT1234567890". Basic command names are a
42 * <li>Action Command. For example "AT+CIMI". The command name is "CIMI", and
44 * <li>Read Command. For example "AT+VGM?". The command name is "VGM", and there
46 * <li>Set Command. For example "AT+VGM=14". The command name is "VGM", and
53 * In V.250 the last four command types are known as Extended Commands, and
59 * use we would need to improve this class to allow Basic command chaining -
61 * command chaining.<p>
70 * intermediate responses may be returned), and as soon as one command in the
73 * Handlers are registered by there command name via register(Char c, ...) or
74 * register(String s, ...). Handlers for Basic command should be registered by
75 * the basic command character, and handlers for Extended commands should be
88 // Extended command type enumeration, only used internally
97 private String mLastInput; // for "A/" (repeat last command) support
110 * Register a Basic command handler.<p>
111 * Basic command handlers are later called via their
113 * @param command Command name - a single character
116 public void register(Character command, AtCommandHandler handler) {
117 mBasicHandlers.put(command, handler);
121 * Register an Extended command handler.<p>
122 * Extended command handlers are later called via:<ul>
128 * Only one method will be called for each command processed.
129 * @param command Command name - can be multiple characters
132 public void register(String command, AtCommandHandler handler) {
133 mExtHandlers.put(command, handler);
213 * the extended command name. Uses the V.250 spec for allowed command
220 // V.250 defines the following chars as legal extended command
241 * Processes an incoming AT command line.<p>
242 * This method will invoke zero or one command handler methods for each
243 * command in the command line.<p>
245 * @return Result object for this command line. This can be
270 // Ok we have a command that starts with AT. Process it
298 // we don't handle this command name.
309 // Search for end of this command - this is usually the end of
313 // Determine what type of command this is.
336 // Call this command. Short-circuit as soon as a command fails
359 // Can't tell if this is a basic or extended command.