Searched refs:cmd (Results 1 - 25 of 95) sorted by relevance

1234

/frameworks/opt/telephony/tools/
H A Dtdi8 cmd=$1
14 echo "Usage: $file_name $cmd <dc> <count> <cause> <retry-time>"
44 case ${cmd} in
/frameworks/base/media/java/android/media/
H A DAsyncPlayer.java54 private void startSound(Command cmd) { argument
61 player.setAudioStreamType(cmd.stream);
62 player.setDataSource(cmd.context, cmd.uri);
63 player.setLooping(cmd.looping);
70 long delay = SystemClock.uptimeMillis() - cmd.requestTime;
76 Log.w(mTag, "error loading sound for " + cmd.uri, e);
87 Command cmd = null;
91 cmd = mCmdQueue.removeFirst();
94 switch (cmd
197 enqueueLocked(Command cmd) argument
[all...]
/frameworks/testing/uiautomator/cmds/uiautomator/
H A Duiautomator49 cmd=${1}
52 cmd="help"
69 if [ "${cmd}" == "runtest" ]; then
74 cmd="help"
90 cmd="help"
109 # if cmd is not 'runtest', just take the rest of the args
113 args="${cmd} ${args}"
/frameworks/uiautomator/cmds/uiautomator/
H A Duiautomator49 cmd=${1}
52 cmd="help"
69 if [ "${cmd}" == "runtest" ]; then
74 cmd="help"
90 cmd="help"
109 # if cmd is not 'runtest', just take the rest of the args
113 args="${cmd} ${args}"
/frameworks/base/core/java/android/nfc/tech/
H A DMifareClassic.java373 byte[] cmd = new byte[12];
377 cmd[0] = 0x60; // phHal_eMifareAuthentA
379 cmd[0] = 0x61; // phHal_eMifareAuthentB
385 cmd[1] = (byte) sectorToBlock(sector);
389 System.arraycopy(uid, uid.length - 4, cmd, 2, 4);
392 System.arraycopy(key, 0, cmd, 6, 6);
395 if (transceive(cmd, false) != null) {
424 byte[] cmd = { 0x30, (byte) blockIndex };
425 return transceive(cmd, false);
449 byte[] cmd
[all...]
H A DMifareUltralight.java163 byte[] cmd = { 0x30, (byte) pageOffset};
164 return transceive(cmd, false);
188 byte[] cmd = new byte[data.length + 2];
189 cmd[0] = (byte) 0xA2;
190 cmd[1] = (byte) pageOffset;
191 System.arraycopy(data, 0, cmd, 2, data.length);
193 transceive(cmd, false);
/frameworks/base/services/java/com/android/server/
H A DNativeDaemonConnectorException.java37 public NativeDaemonConnectorException(String cmd, NativeDaemonEvent event) { argument
38 super("command '" + cmd + "' failed with '" + event + "'");
39 mCmd = cmd;
H A DNativeDaemonConnector.java237 String cmd, Object... args) {
238 if (cmd.indexOf('\0') >= 0) {
239 throw new IllegalArgumentException("Unexpected command: " + cmd);
241 if (cmd.indexOf(' ') >= 0) {
245 rawBuilder.append(sequenceNumber).append(' ').append(cmd);
246 logBuilder.append(sequenceNumber).append(' ').append(cmd);
276 public NativeDaemonEvent execute(Command cmd) throws NativeDaemonConnectorException { argument
277 return execute(cmd.mCmd, cmd.mArguments.toArray());
290 public NativeDaemonEvent execute(String cmd, Objec argument
236 makeCommand(StringBuilder rawBuilder, StringBuilder logBuilder, int sequenceNumber, String cmd, Object... args) argument
310 executeForList(Command cmd) argument
325 executeForList(String cmd, Object... args) argument
342 execute(int timeout, String cmd, Object... args) argument
451 Command(String cmd, Object... args) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
H A DNotificationPlayer.java69 public CreationAndCompletionThread(Command cmd) { argument
71 mCmd = cmd;
127 private void startSound(Command cmd) { argument
144 mCompletionThread = new CreationAndCompletionThread(cmd);
152 long delay = SystemClock.uptimeMillis() - cmd.requestTime;
158 Log.w(mTag, "error loading sound for " + cmd.uri, e);
169 Command cmd = null;
173 cmd = mCmdQueue.removeFirst();
176 switch (cmd.code) {
179 startSound(cmd);
316 enqueueLocked(Command cmd) argument
[all...]
/frameworks/base/core/java/android/nfc/
H A DApduList.java46 byte[] cmd = new byte[length];
47 in.readByteArray(cmd);
48 commands.add(cmd);
61 for (byte[] cmd : commands) {
62 dest.writeInt(cmd.length);
63 dest.writeByteArray(cmd);
/frameworks/rs/
H A DrsThreadIO.cpp109 const CoreCmdHeader *cmd = (const CoreCmdHeader *)&buf[0]; local
139 mToCore.read(&buf[sizeof(CoreCmdHeader)], cmd->bytes);
145 r = mToCore.read((void *)&cmd->cmdID, sizeof(cmd->cmdID));
153 //ALOGV("playCoreCommands 3 %i %i", cmd->cmdID, cmd->bytes);
155 if (cmd->cmdID >= (sizeof(gPlaybackFuncs) / sizeof(void *))) {
156 rsAssert(cmd->cmdID < (sizeof(gPlaybackFuncs) / sizeof(void *)));
157 ALOGE("playCoreCommands error con %p, cmd %i", con, cmd
[all...]
/frameworks/av/media/libmedia/
H A DIEffectClient.cpp117 char *cmd = NULL; local
119 cmd = (char *)malloc(cmdSize);
120 data.read(cmd, cmdSize);
128 commandExecuted(cmdCode, cmdSize, cmd, replySize, resp);
129 if (cmd) {
130 free(cmd);
H A DIEffect.cpp152 char *cmd = NULL; local
154 cmd = (char *)malloc(cmdSize);
155 data.read(cmd, cmdSize);
163 status_t status = command(cmdCode, cmdSize, cmd, &replySz, resp);
172 if (cmd) {
173 free(cmd);
/frameworks/base/cmds/media/src/com/android/commands/media/
H A DMedia.java94 String cmd = nextArgRequired();
96 if ("play".equals(cmd)) {
98 } else if ("pause".equals(cmd)) {
100 } else if ("play-pause".equals(cmd)) {
102 } else if ("mute".equals(cmd)) {
104 } else if ("headsethook".equals(cmd)) {
106 } else if ("stop".equals(cmd)) {
108 } else if ("next".equals(cmd)) {
110 } else if ("previous".equals(cmd)) {
112 } else if ("rewind".equals(cmd)) {
[all...]
/frameworks/native/cmds/servicemanager/
H A Dbinder.c60 const char *cmd_name(uint32_t cmd) argument
62 switch(cmd) {
201 uint32_t cmd = *ptr++; local
203 fprintf(stderr,"%s:\n", cmd_name(cmd));
205 switch(cmd) {
269 ALOGE("parse: OOPS %d\n", cmd);
279 uint32_t cmd[2]; local
280 cmd[0] = BC_ACQUIRE;
281 cmd[1] = (uint32_t) ptr;
282 binder_write(bs, cmd, sizeo
287 uint32_t cmd[2]; local
295 uint32_t cmd[3]; local
310 uint32_t cmd; member in struct:__anon1326
441 uint32_t cmd[2]; local
[all...]
/frameworks/native/libs/binder/
H A DIPCThreadState.cpp160 const int32_t* cmd = (const int32_t*)_cmd; local
161 int32_t code = *cmd++;
164 out << "BR_ERROR: " << (void*)(*cmd++) << endl;
165 return cmd;
168 return cmd;
176 cmd = (const int32_t *)printBinderTransactionData(out, cmd);
181 const int32_t res = *cmd++;
189 const int32_t b = *cmd++;
190 const int32_t c = *cmd
221 const int32_t* cmd = (const int32_t*)_cmd; local
424 int32_t cmd; local
706 int32_t cmd; local
896 writeTransactionData(int32_t cmd, uint32_t binderFlags, int32_t handle, uint32_t code, const Parcel& data, status_t* statusBuffer) argument
938 executeCommand(int32_t cmd) argument
[all...]
/frameworks/native/opengl/tests/hwc/
H A DhwcColorEquiv.cpp134 void printSyntax(const char *cmd);
171 char cmd[MAXCMD]; local
282 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_STOP_FRAMEWORK);
283 if (rv >= (signed) sizeof(cmd) - 1) {
287 testExecCmd(cmd);
403 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_START_FRAMEWORK);
404 if (rv >= (signed) sizeof(cmd) - 1) {
408 testExecCmd(cmd);
425 printSyntax(const char *cmd) argument
[all...]
H A DhwcRects.cpp176 void printSyntax(const char *cmd);
210 char cmd[MAXCMD]; local
239 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_STOP_FRAMEWORK);
240 if (rv >= (signed) sizeof(cmd) - 1) {
244 testExecCmd(cmd);
351 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_START_FRAMEWORK);
352 if (rv >= (signed) sizeof(cmd) - 1) {
356 testExecCmd(cmd);
544 printSyntax(const char *cmd) argument
[all...]
/frameworks/webview/chromium/tools/
H A Dmerge_common.py89 def __init__(self, returncode, cmd, cwd, stdout, stderr):
92 self.cmd = cmd
100 (self.cmd, self.returncode, self.cwd, self.stdout, self.stderr))
/frameworks/base/services/java/com/android/server/pm/
H A DInstaller.java131 byte[] cmd = _cmd.getBytes();
132 int len = cmd.length;
139 mOut.write(cmd, 0, len);
148 private synchronized String transaction(String cmd) { argument
154 if (!writeCommand(cmd)) {
161 if (!connect() || !writeCommand(cmd)) {
166 Slog.i(TAG, "send: '" + cmd + "'");
182 private int execute(String cmd) { argument
183 String res = transaction(cmd);
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayerStreamListener.h37 Command cmd, bool synchronous, const sp<AMessage> &extra);
/frameworks/native/opengl/libs/GLES_trace/src/
H A Dgltrace_eglapi.cpp91 uint32_t cmd = ntohl(*(uint32_t*)cmdBuf); local
93 bool collectFbOnEglSwap = (cmd & READ_FB_ON_EGLSWAP_MASK) != 0;
94 bool collectFbOnGlDraw = (cmd & READ_FB_ON_GLDRAW_MASK) != 0;
95 bool collectTextureData = (cmd & READ_TEXTURE_DATA_ON_GLTEXIMAGE_MASK) != 0;
/frameworks/base/media/mca/
H A Dstructgen.py205 cmd = linecomps[0]
206 if cmd == "@name":
213 elif cmd == "@package":
216 elif cmd == "@libname":
219 elif cmd == "@structname":
222 elif cmd == "@javaclassname":
225 elif cmd == "@field":
238 raise ParseError(lineno, "Unknown command: '%s'!" % cmd)
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
H A DDcAsyncChannel.java83 // Convert cmd to string or null if unknown
84 protected static String cmdToString(int cmd) { argument
85 cmd -= BASE;
86 if ((cmd >= 0) && (cmd < sCmdToString.length)) {
87 return sCmdToString[cmd];
89 return AsyncChannel.cmdToString(cmd + BASE);
/frameworks/native/cmds/installd/
H A Dinstalld.c192 static int execute(int s, char cmd[BUFFER_MAX]) argument
201 // ALOGI("execute('%s')\n", cmd);
207 arg[0] = cmd;
208 while (*cmd) {
209 if (isspace(*cmd)) {
210 *cmd++ = 0;
212 arg[n] = cmd;
218 cmd++;
236 n = snprintf(cmd, BUFFER_MAX, "%d %s", ret, reply);
238 n = snprintf(cmd, BUFFER_MA
[all...]

Completed in 1402 milliseconds

1234