Searched refs:command (Results 1 - 25 of 58) sorted by relevance

123

/packages/apps/Camera2/src/com/android/camera/one/v2/commands/
H A DRunnableCameraCommand.java27 public RunnableCameraCommand(CameraCommandExecutor executor, CameraCommand command) { argument
29 mCommand = command;
H A DResettingRunnableCameraCommand.java29 * restarts the command if it was already running.
39 * The future corresponding to any currently-executing command.
44 public ResettingRunnableCameraCommand(CameraCommandExecutor executor, CameraCommand command) { argument
46 mCommand = command;
54 // Cancel, via interruption, the already-running command, one has
H A DCameraCommandExecutor.java44 public CommandRunnable(CameraCommand command) { argument
45 mCommand = command;
51 mLog.d("Executing command: " + mCommand + " START");
53 mLog.d("Executing command: " + mCommand + " END");
55 // This may indicate that the command would have otherwise
57 // or the command was aborted because the necessary resources
63 mLog.d("Interrupted while executing command: " + mCommand);
65 // If the camera was closed and the command failed, just return.
66 mLog.d("Unable to connect to camera while executing command: " + mCommand);
68 // If the session was closed and the command faile
100 execute(CameraCommand command) argument
[all...]
/packages/apps/Dialer/java/com/android/incallui/async/
H A DPausableExecutorImpl.java37 public void execute(Runnable command) { argument
38 Executors.newSingleThreadExecutor().execute(command);
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
H A DTestImmediateExecutor.java24 * An {@link Executor} that executes command in place.
28 public void execute(Runnable command) { argument
29 command.run();
H A DTestScheduledExecutorService.java115 public void execute(Runnable command) { argument
116 schedule(command, 0, TimeUnit.MILLISECONDS);
120 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { argument
121 TestFuture future = new TestFuture(command, delay, unit);
132 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, argument
138 public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, argument
/packages/apps/Dialer/java/com/android/voicemail/impl/protocol/
H A DCvvmProtocol.java47 public String getCommand(String command) { argument
48 if (command == OmtpConstants.IMAP_CHANGE_TUI_PWD_FORMAT) {
51 if (command == OmtpConstants.IMAP_CLOSE_NUT) {
54 if (command == OmtpConstants.IMAP_CHANGE_VM_LANG_FORMAT) {
57 return super.getCommand(command);
H A DVisualVoicemailProtocol.java78 * Translate an OMTP IMAP command to the protocol specific one. For example, changing the TUI
81 * @param command A String command in {@link OmtpConstants}, the exact
83 * @returns Translated command, or {@code null} if not available in this protocol
85 public String getCommand(String command) { argument
86 return command;
/packages/apps/Music/src/com/android/music/
H A DMediaButtonIntentReceiver.java80 String command = null;
83 command = MediaPlaybackService.CMDSTOP;
87 command = MediaPlaybackService.CMDTOGGLEPAUSE;
90 command = MediaPlaybackService.CMDNEXT;
93 command = MediaPlaybackService.CMDPREVIOUS;
96 command = MediaPlaybackService.CMDPAUSE;
99 command = MediaPlaybackService.CMDPLAY;
103 if (command != null) {
106 if ((MediaPlaybackService.CMDTOGGLEPAUSE.equals(command)
107 || MediaPlaybackService.CMDPLAY.equals(command))
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/
H A DProviderExecutor.java86 public void execute(Runnable command) {
87 assert(command != null);
88 mQueue.add(command);
93 public void execute(Runnable command) { argument
95 assert(command != null);
96 mQueue.add(command);
103 final Runnable command = mQueue.take();
104 command.run();
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
H A DMockExecutor.java55 Runnable command = mQueue.removeFirst();
56 command.run();
/packages/apps/TV/src/com/android/tv/util/
H A DNetworkTrafficTags.java46 public void execute(final @NonNull Runnable command) { argument
54 command.run();
/packages/services/Car/obd2-lib/src/com/android/car/obd2/
H A DObd2LiveFrameGenerator.java80 for (LiveFrameCommand<Integer> command : mIntegerCommands) {
82 Optional<Integer> result = command.run(mConnection);
85 jsonWriter.name("id").value(command.getPid());
94 command.getPid(), e));
101 for (LiveFrameCommand<Float> command : mFloatCommands) {
103 Optional<Float> result = command.run(mConnection);
106 jsonWriter.name("id").value(command.getPid());
115 command.getPid(), e));
H A DObd2FreezeFrameGenerator.java131 FreezeFrameCommand<Integer> command =
134 Optional<Integer> result = command.run(mConnection);
137 jsonWriter.name("id").value(command.getPid());
146 command.getPid(), e));
153 FreezeFrameCommand<Float> command =
156 Optional<Float> result = command.run(mConnection);
159 jsonWriter.name("id").value(command.getPid());
168 command.getPid(), e));
H A DObd2Connection.java119 private String runImpl(String command) throws IOException, InterruptedException { argument
124 Log.i(TAG, "runImpl(" + command + ")");
127 out.write((command + "\r").getBytes());
169 public int[] run(String command) throws IOException, InterruptedException { argument
170 String responseValue = runImpl(command);
172 String unspacedCommand = command.replaceAll(" ", "");
203 "conversion error: command: '%s', original response: '%s'"
205 command, originalResponseValue, responseValue));
280 int command = basePid + 8 * byteIndex + 7 - bitIndex;
282 Log.i(TAG, "command "
[all...]
/packages/apps/Test/connectivity/sl4n/utils/
H A Dcommand_receiver.h35 static void RegisterCommand(std::string name, MFP command);
H A Dcommand_receiver.cpp63 void CommandReceiver::RegisterCommand(std::string name, MFP command) { argument
68 _funcMap->insert(std::make_pair(name, command));
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DMessageInviteView.java65 Integer command = null;
76 command = UIProvider.MessageOperations.RESPOND_ACCEPT;
78 command = UIProvider.MessageOperations.RESPOND_TENTATIVE;
80 command = UIProvider.MessageOperations.RESPOND_DECLINE;
83 if (command != null) {
85 LogUtils.w("UnifiedEmail", "SENDING INVITE COMMAND, VALUE=%s", command);
86 params.put(UIProvider.MessageOperations.RESPOND_COLUMN, command);
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
H A DDicttool.java91 System.out.println("Syntax: dicttool <command [arguments]>\nAvailable commands:\n");
106 throw new RuntimeException("Unknown command : " + commandName);
108 final Command command = getCommandInstance(commandName);
110 command.setArgs(argsArray);
111 return command;
115 * Executes the specified command with the specified arguments.
120 final Command command = getCommand(arguments);
122 command.run();
125 System.out.println("Exception while processing command "
126 + command
[all...]
/packages/apps/Contacts/src/com/android/contacts/util/concurrent/
H A DContactsExecutors.java111 public ScheduledFuture<?> schedule(final Runnable command, long delay, TimeUnit unit) { argument
113 .fromRunnable(mHandler, delay, unit, command);
128 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, argument
135 public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, argument
165 public void execute(Runnable command) { argument
166 mHandler.post(command);
232 final Runnable command) {
236 command.run();
231 fromRunnable(Handler handler, long delay, TimeUnit unit, final Runnable command) argument
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/
H A DShellCommandRule.java31 * Test rule which executes a shell command at the start of the test.
46 public static void runShellCommand(String command) throws IOException { argument
48 .executeShellCommand(command);
/packages/apps/Email/provider_src/com/android/email/mail/transport/
H A DDiscourseLogger.java78 public void addSentCommand(String command) { argument
79 addLine(command);
/packages/apps/Launcher3/src/com/android/launcher3/util/
H A DViewOnDrawExecutor.java66 public void execute(Runnable command) { argument
67 mTasks.add(command);
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
H A DRequestPinItemTest.java97 Intent command = RequestPinItemActivity.getCommandIntent(
109 }, command);
128 Intent command = RequestPinItemActivity.getCommandIntent(
139 }, command);
169 for (Intent command : commandIntents) {
170 mTargetContext.sendBroadcast(command);
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/
H A DImapConnection.java51 static final String IMAP_REDACTED_LOG = "[IMAP command redacted]";
76 * @return the login command string to sent to the IMAP server
331 public List<ImapResponse> executeSimpleCommand(String command) argument
333 return executeSimpleCommand(command, false);
337 * Send a single command to the server. The command will be preceded by an IMAP command tag and
338 * followed by \r\n (caller need not supply them). Execute a simple command at the server, a
339 * simple command being one that is sent in a single line of text
341 * @param command th
347 executeSimpleCommand(String command, boolean sensitive) argument
355 sendCommand(String command, boolean sensitive) argument
[all...]

Completed in 663 milliseconds

123