Home
last modified time | relevance | path

Searched refs:command (Results 1 – 25 of 104) sorted by relevance

12345

/packages/apps/SecureElement/src/com/android/se/
DChannel.java115 public byte[] transmit(byte[] command) throws IOException { in transmit() argument
119 if (command == null) { in transmit()
130 CommandApduValidator.execute(command); in transmit()
132 if (((command[0] & (byte) 0x80) == 0) in transmit()
133 && ((command[0] & (byte) 0x60) != (byte) 0x20)) { in transmit()
135 if (command[1] == (byte) 0x70) { in transmit()
138 if ((command[1] == (byte) 0xA4) && (command[2] == (byte) 0x04)) { in transmit()
147 checkCommand(command); in transmit()
150 command[0] = setChannelToClassByte(command[0], mChannelNumber); in transmit()
151 return mTerminal.transmit(command); in transmit()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DProviderExecutor.java86 public void execute(Runnable command) {
87 assert(command != null);
88 mQueue.add(command);
93 public void execute(Runnable command) { in execute() argument
95 assert(command != null); in execute()
96 mQueue.add(command); in execute()
103 final Runnable command = mQueue.take(); in run() local
104 command.run(); in run()
/packages/services/Car/obd2-lib/src/com/android/car/obd2/
DObd2LiveFrameGenerator.java80 for (LiveFrameCommand<Integer> command : mIntegerCommands) { in generate()
82 Optional<Integer> result = command.run(mConnection); in generate()
85 jsonWriter.name("id").value(command.getPid()); in generate()
94 command.getPid(), e)); in generate()
101 for (LiveFrameCommand<Float> command : mFloatCommands) { in generate()
103 Optional<Float> result = command.run(mConnection); in generate()
106 jsonWriter.name("id").value(command.getPid()); in generate()
115 command.getPid(), e)); in generate()
DObd2Connection.java119 private String runImpl(String command) throws IOException, InterruptedException { in runImpl() argument
124 Log.i(TAG, "runImpl(" + command + ")"); in runImpl()
127 out.write((command + "\r").getBytes()); in runImpl()
169 public int[] run(String command) throws IOException, InterruptedException { in run() argument
170 String responseValue = runImpl(command); in run()
172 String unspacedCommand = command.replaceAll(" ", ""); in run()
205 command, originalResponseValue, responseValue)); in run()
280 int command = basePid + 8 * byteIndex + 7 - bitIndex; in getSupportedPIDs() local
282 Log.i(TAG, "command " + command + " found supported"); in getSupportedPIDs()
284 result.add(command); in getSupportedPIDs()
DObd2FreezeFrameGenerator.java131 FreezeFrameCommand<Integer> command = in generate() local
134 Optional<Integer> result = command.run(mConnection); in generate()
137 jsonWriter.name("id").value(command.getPid()); in generate()
146 command.getPid(), e)); in generate()
153 FreezeFrameCommand<Float> command = in generate() local
156 Optional<Float> result = command.run(mConnection); in generate()
159 jsonWriter.name("id").value(command.getPid()); in generate()
168 command.getPid(), e)); in generate()
DObd2Command.java159 String command = String.format("%02X%02X", mMode, mSemanticHandler.getPid()); in run() local
160 int[] data = connection.run(command); in run()
186 String command = in run() local
188 int[] data = connection.run(command); in run()
/packages/apps/Contacts/src/com/android/contacts/util/concurrent/
DContactsExecutors.java111 public ScheduledFuture<?> schedule(final Runnable command, long delay, TimeUnit unit) { in schedule() argument
113 .fromRunnable(mHandler, delay, unit, command); in schedule()
128 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, in scheduleAtFixedRate() argument
135 public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, in scheduleWithFixedDelay() argument
165 public void execute(Runnable command) { in execute() argument
166 mHandler.post(command); in execute()
232 final Runnable command) { in fromRunnable() argument
236 command.run(); in fromRunnable()
/packages/apps/Dialer/java/com/android/dialer/commandline/
DCommandLineReceiver.java52 Command command = in onReceive() local
58 if (command == null) { in onReceive()
66 LogUtil.i(outputTag, "usage:\n" + command.getUsage()); in onReceive()
70 command.run(args), in onReceive()
84 LogUtil.e(outputTag, throwable.getMessage() + "\n\nusage:\n" + command.getUsage()); in onReceive()
91 LogUtil.e(outputTag, e.getMessage() + "\n\nusage:\n" + command.getUsage()); in onReceive()
/packages/apps/Launcher3/src/com/android/launcher3/logging/
DUserEventDispatcher.java195 public void logActionCommand(int command, Target srcTarget) { in logActionCommand() argument
196 logActionCommand(command, srcTarget, null); in logActionCommand()
199 public void logActionCommand(int command, int srcContainerType, int dstContainerType) { in logActionCommand() argument
200 logActionCommand(command, newContainerTarget(srcContainerType), in logActionCommand()
204 public void logActionCommand(int command, int srcContainerType, int dstContainerType, in logActionCommand() argument
208 logActionCommand(command, srcTarget, in logActionCommand()
212 public void logActionCommand(int command, Target srcTarget, Target dstTarget) { in logActionCommand() argument
213 LauncherEvent event = newLauncherEvent(newCommandAction(command), srcTarget); in logActionCommand()
214 if (command == Action.Command.STOP) { in logActionCommand()
232 public void logActionCommand(int command, View itemView, int srcContainerType) { in logActionCommand() argument
[all …]
DLoggerUtils.java82 str += getFieldName(action.command, Action.Command.class); in getActionStr()
87 (action.command == Action.Command.BACK && action.dir != Action.Direction.NONE)) { in getActionStr()
238 public static Action newCommandAction(int command) { in newCommandAction() argument
240 a.command = command; in newCommandAction()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DDicttool.java108 final Command command = getCommandInstance(commandName); in getCommand() local
110 command.setArgs(argsArray); in getCommand()
111 return command; in getCommand()
120 final Command command = getCommand(arguments); in execute() local
122 command.run(); in execute()
126 + command.getClass().getSimpleName() + " : " + e); in execute()
/packages/apps/Dialer/java/com/android/voicemail/impl/protocol/
DCvvmProtocol.java47 public String getCommand(String command) { in getCommand() argument
48 if (command == OmtpConstants.IMAP_CHANGE_TUI_PWD_FORMAT) { in getCommand()
51 if (command == OmtpConstants.IMAP_CLOSE_NUT) { in getCommand()
54 if (command == OmtpConstants.IMAP_CHANGE_VM_LANG_FORMAT) { in getCommand()
57 return super.getCommand(command); in getCommand()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestScheduledExecutorService.java115 public void execute(Runnable command) { in execute() argument
116 schedule(command, 0, TimeUnit.MILLISECONDS); in execute()
120 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { in schedule() argument
121 TestFuture future = new TestFuture(command, delay, unit); in schedule()
132 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, in scheduleAtFixedRate() argument
138 public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, in scheduleWithFixedDelay() argument
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DRequestPinItemTest.java90 Intent command = RequestPinItemActivity.getCommandIntent( in testPinWidgetNoConfig_customPreview() local
97 .equals(AppWidgetNoConfig.class.getName()), command); in testPinWidgetNoConfig_customPreview()
112 Intent command = RequestPinItemActivity.getCommandIntent( in testPinShortcut() local
123 }, command); in testPinShortcut()
151 for (Intent command : commandIntents) { in runTest()
152 mTargetContext.sendBroadcast(command); in runTest()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/
DImapConnection.java331 public List<ImapResponse> executeSimpleCommand(String command) in executeSimpleCommand() argument
333 return executeSimpleCommand(command, false); in executeSimpleCommand()
347 public List<ImapResponse> executeSimpleCommand(String command, boolean sensitive) in executeSimpleCommand() argument
351 sendCommand(command, sensitive); in executeSimpleCommand()
355 public String sendCommand(String command, boolean sensitive) in sendCommand() argument
363 String commandToSend = tag + " " + command; in sendCommand()
364 transport.writeLine(commandToSend, (sensitive ? IMAP_REDACTED_LOG : command)); in sendCommand()
/packages/modules/NetworkStack/tests/hostdriven/host/src/com/android/networkstack/hosttests/
DNetworkStackHostTests.kt143 private fun assertCommandSucceeds(command: String): CommandResult { in assertCommandSucceeds()
144 return mDevice.executeShellV2Command(command).also { in assertCommandSucceeds()
145 assertEquals(CommandStatus.SUCCESS, it.getStatus(), makeErrorMessage(command, it)) in assertCommandSucceeds()
171 private fun makeErrorMessage(command: String, result: CommandResult): String { in makeErrorMessage()
172 return "$command failed; stderr: ${result.getStderr()}; stdout: ${result.stdout}; " + in makeErrorMessage()
/packages/apps/Camera2/src/com/android/camera/one/v2/commands/
DCameraCommandExecutor.java44 public CommandRunnable(CameraCommand command) { in CommandRunnable() argument
45 mCommand = command; in CommandRunnable()
100 public Future<?> execute(CameraCommand command) { in execute() argument
110 return mExecutor.submit(new CommandRunnable(command)); in execute()
/packages/apps/Dialer/java/com/android/dialer/commandline/impl/
DBlockingCommand.java70 String command = args.getPositionals().get(0); in run() local
72 if ("block".equals(command)) { in run()
80 if ("unblock".equals(command)) { in run()
88 if ("isblocked".equals(command)) { in run()
DActiveCallsCommand.java57 String command = args.getPositionals().get(0); in run() local
59 switch (command) { in run()
64 throw new IllegalCommandLineArgumentException("unknown command " + command); in run()
/packages/apps/Launcher3/tests/src/com/android/launcher3/testcomponent/
DTestCommandReceiver.java115 public static Bundle callCommand(String command) { in callCommand() argument
116 return callCommand(command, null); in callCommand()
119 public static Bundle callCommand(String command, String arg) { in callCommand() argument
122 return inst.getTargetContext().getContentResolver().call(uri, command, arg, null); in callCommand()
/packages/apps/Car/libs/car-ui-lib/
Dgradlew.bat27 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
49 @rem Get command-line arguments, handling Windows variants
54 @rem Slurp the command line arguments.
64 @rem Setup the command line
/packages/apps/Car/libs/car-ui-lib/tests/paintbooth/
Dgradlew.bat27 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
49 @rem Get command-line arguments, handling Windows variants
54 @rem Slurp the command line arguments.
64 @rem Setup the command line
/packages/inputmethods/LatinIME/
Dgradlew.bat27 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
49 @rem Get command-line arguments, handling Windowz variants
55 @rem Slurp the command line arguments.
70 @rem Setup the command line
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetPhoneState.java87 mSubscriptionManager.addOnSubscriptionsChangedListener(command -> mHandler.post(command), in HeadsetPhoneState()
158 mPhoneStateListener = new HeadsetPhoneStateListener(command -> mHandler.post(command)); in startListenForPhoneState()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/concurrent/
DExecutors.java40 public void execute(@NonNull Runnable command) {
42 mHandler.post(command);
44 command.run();

12345