/frameworks/base/tests/DumpRenderTree2/assets/ |
H A D | run_layout_tests.py | 39 cmd = adb_cmd + " shell am instrument " 40 cmd += "-e class com.android.dumprendertree2.scriptsupport.Starter#startLayoutTests " 41 cmd += "-e path \"" + path + "\" " 42 cmd += "-w com.android.dumprendertree2/com.android.dumprendertree2.scriptsupport.ScriptTestRunner" 45 logging.debug("Command = %s" % cmd) 46 (stdoutdata, stderrdata) = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() 61 cmd = "rm -f " + summary_txt_tmp_path + ";" 62 cmd += adb_cmd + " pull " + RESULTS_ABSOLUTE_PATH + SUMMARY_TXT + " " + summary_txt_tmp_path 63 subprocess.Popen(cmd, shell=True).wait() 67 cmd [all...] |
/frameworks/base/media/java/android/media/ |
H A D | AsyncPlayer.java | 54 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 D | uiautomator | 49 cmd=${1} 52 cmd="help" 66 if [ "${cmd}" == "runtest" ]; then 82 cmd="help" 101 # if cmd is not 'runtest', just take the rest of the args 105 args="${cmd} ${args}"
|
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/forwarder/ |
H A D | AdbUtils.java | 63 String cmd = "tcp:" + remotePort + ":" + remoteAddress; 64 cmd = String.format("%04X", cmd.length()) + cmd; 67 outputStream.write(cmd.getBytes()); 70 Log.w(LOG_TAG, "adb cmd failed.");
|
/frameworks/base/core/java/android/nfc/tech/ |
H A D | MifareClassic.java | 373 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 D | MifareUltralight.java | 163 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/tests/DumpRenderTree/src/com/android/dumprendertree/forwarder/ |
H A D | AdbUtils.java | 66 String cmd = "dns:" + host; 68 if(!sendAdbCmd(dis, os, cmd)) 84 * @param cmd the adb command to send 89 String cmd) throws IOException { 92 cmd = String.format("%04X", cmd.length()) + cmd; 93 os.write(cmd.getBytes()); 96 Log.w(LOGTAG, "adb cmd faild."); 116 String cmd 88 sendAdbCmd(InputStream is, OutputStream os, String cmd) argument [all...] |
/frameworks/base/services/java/com/android/server/ |
H A D | NativeDaemonConnectorException.java | 37 public NativeDaemonConnectorException(String cmd, NativeDaemonEvent event) { argument 38 super("command '" + cmd + "' failed with '" + event + "'"); 39 mCmd = cmd;
|
H A D | NativeDaemonConnector.java | 205 private void makeCommand(StringBuilder builder, String cmd, Object... args) argument 207 // TODO: eventually enforce that cmd doesn't contain arguments 208 if (cmd.indexOf('\0') >= 0) { 209 throw new IllegalArgumentException("unexpected command: " + cmd); 212 builder.append(cmd); 233 public NativeDaemonEvent execute(Command cmd) throws NativeDaemonConnectorException { argument 234 return execute(cmd.mCmd, cmd.mArguments.toArray()); 246 public NativeDaemonEvent execute(String cmd, Object... args) argument 248 final NativeDaemonEvent[] events = executeForList(cmd, arg 266 executeForList(Command cmd) argument 280 executeForList(String cmd, Object... args) argument 296 execute(int timeout, String cmd, Object... args) argument 358 doCommand(String cmd) argument 372 doListCommand(String cmd, int expectedCode) argument 449 Command(String cmd, Object... args) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
H A D | NotificationPlayer.java | 74 public CreationAndCompletionThread(Command cmd) { argument 76 mCmd = cmd; 118 private void startSound(Command cmd) { argument 135 mCompletionThread = new CreationAndCompletionThread(cmd); 143 long delay = SystemClock.uptimeMillis() - cmd.requestTime; 149 Log.w(mTag, "error loading sound for " + cmd.uri, e); 160 Command cmd = null; 164 cmd = mCmdQueue.removeFirst(); 167 switch (cmd.code) { 170 startSound(cmd); 296 enqueueLocked(Command cmd) argument [all...] |
/frameworks/base/core/java/android/nfc/ |
H A D | ApduList.java | 46 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 D | rsThreadIO.cpp | 109 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 D | IEffectClient.cpp | 117 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 D | IEffect.cpp | 152 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);
|
H A D | IStreamSource.cpp | 136 Command cmd, bool synchronous, const sp<AMessage> &msg) { 139 data.writeInt32(static_cast<int32_t>(cmd)); 171 Command cmd = static_cast<Command>(data.readInt32()); local 181 issueCommand(cmd, synchronous, msg); 135 issueCommand( Command cmd, bool synchronous, const sp<AMessage> &msg) argument
|
/frameworks/base/cmds/servicemanager/ |
H A D | binder.c | 60 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:__anon972 441 uint32_t cmd[2]; local [all...] |
/frameworks/native/libs/binder/ |
H A D | IPCThreadState.cpp | 159 const int32_t* cmd = (const int32_t*)_cmd; local 160 int32_t code = *cmd++; 163 out << "BR_ERROR: " << (void*)(*cmd++) << endl; 164 return cmd; 167 return cmd; 175 cmd = (const int32_t *)printBinderTransactionData(out, cmd); 180 const int32_t res = *cmd++; 188 const int32_t b = *cmd++; 189 const int32_t c = *cmd 220 const int32_t* cmd = (const int32_t*)_cmd; local 438 int32_t cmd; local 670 int32_t cmd; local 855 writeTransactionData(int32_t cmd, uint32_t binderFlags, int32_t handle, uint32_t code, const Parcel& data, status_t* statusBuffer) argument 897 executeCommand(int32_t cmd) argument [all...] |
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcColorEquiv.cpp | 134 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); 401 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_START_FRAMEWORK); 402 if (rv >= (signed) sizeof(cmd) - 1) { 406 testExecCmd(cmd); 423 printSyntax(const char *cmd) argument [all...] |
H A D | hwcRects.cpp | 176 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); 349 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_START_FRAMEWORK); 350 if (rv >= (signed) sizeof(cmd) - 1) { 354 testExecCmd(cmd); 542 printSyntax(const char *cmd) argument [all...] |
/frameworks/native/opengl/libs/GLES_trace/src/ |
H A D | gltrace_eglapi.cpp | 88 uint32_t cmd = ntohl(*(uint32_t*)cmdBuf); local 90 bool collectFbOnEglSwap = (cmd & READ_FB_ON_EGLSWAP_MASK) != 0; 91 bool collectFbOnGlDraw = (cmd & READ_FB_ON_GLDRAW_MASK) != 0; 92 bool collectTextureData = (cmd & READ_TEXTURE_DATA_ON_GLTEXIMAGE_MASK) != 0;
|
/frameworks/base/cmds/installd/ |
H A D | installd.c | 206 static int execute(int s, char cmd[BUFFER_MAX]) argument 215 // ALOGI("execute('%s')\n", cmd); 221 arg[0] = cmd; 222 while (*cmd) { 223 if (isspace(*cmd)) { 224 *cmd++ = 0; 226 arg[n] = cmd; 232 cmd++; 250 n = snprintf(cmd, BUFFER_MAX, "%d %s", ret, reply); 252 n = snprintf(cmd, BUFFER_MA [all...] |
/frameworks/base/services/java/com/android/server/pm/ |
H A D | Installer.java | 131 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/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/ |
H A D | SummarizerDBHelper.java | 54 String cmd; 56 cmd = "create table " + tableName + " (" 60 db.execSQL(cmd);
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayerStreamListener.h | 37 Command cmd, bool synchronous, const sp<AMessage> &extra);
|
/frameworks/base/media/mca/ |
H A D | structgen.py | 205 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)
|