Lines Matching refs:command

25  * An AT (Hayes command) Parser based on (a subset of) the ITU-T V.250 standard.
34 * invoked when command lines are processed by AtParser's process() method.<p>
36 * The AtParser object accepts a new command line to parse via its process()
37 * method. It breaks each command line into one or more commands. Each command
41 * The command types are<ul>
42 * <li>Basic Command. For example "ATDT1234567890". Basic command names are a
45 * <li>Action Command. For example "AT+CIMI". The command name is "CIMI", and
47 * <li>Read Command. For example "AT+VGM?". The command name is "VGM", and there
49 * <li>Set Command. For example "AT+VGM=14". The command name is "VGM", and
56 * In V.250 the last four command types are known as Extended Commands, and
62 * use we would need to improve this class to allow Basic command chaining -
64 * command chaining.<p>
73 * intermediate responses may be returned), and as soon as one command in the
76 * Handlers are registered by there command name via register(Char c, ...) or
77 * register(String s, ...). Handlers for Basic command should be registered by
78 * the basic command character, and handlers for Extended commands should be
91 // Extended command type enumeration, only used internally
100 private String mLastInput; // for "A/" (repeat last command) support
113 * Register a Basic command handler.<p>
114 * Basic command handlers are later called via their
116 * @param command Command name - a single character
119 public void register(Character command, AtCommandHandler handler) {
120 mBasicHandlers.put(command, handler);
124 * Register an Extended command handler.<p>
125 * Extended command handlers are later called via:<ul>
131 * Only one method will be called for each command processed.
132 * @param command Command name - can be multiple characters
135 public void register(String command, AtCommandHandler handler) {
136 mExtHandlers.put(command, handler);
216 * the extended command name. Uses the V.250 spec for allowed command
223 // V.250 defines the following chars as legal extended command
244 * Processes an incoming AT command line.<p>
245 * This method will invoke zero or one command handler methods for each
246 * command in the command line.<p>
248 * @return Result object for this command line. This can be
273 // Ok we have a command that starts with AT. Process it
301 // handle this command name.
312 // Search for end of this command - this is usually the end of
316 // Determine what type of command this is.
339 // Call this command. Short-circuit as soon as a command fails
362 // Can't tell if this is a basic or extended command.