/frameworks/base/libs/rs/ |
H A D | rsHandcode.h | 11 RS_CMD_AllocationData *cmd = static_cast<RS_CMD_AllocationData *>(io->mToCore.reserve(size)); local 12 cmd->va = va; 13 cmd->bytes = sizeBytes; 14 cmd->data = data; 16 cmd->data = (void *)(cmd+1); 17 memcpy(cmd+1, data, sizeBytes); 32 RS_CMD_Allocation1DSubData *cmd = static_cast<RS_CMD_Allocation1DSubData *>(io->mToCore.reserve(size)); local 33 cmd->va = va; 34 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/base/services/java/com/android/server/ |
H A D | NativeDaemonConnectorException.java | 34 public NativeDaemonConnectorException(int code, String cmd, String error) argument 36 super(String.format("Cmd {%s} failed with code %d : {%s}", cmd, code, error)); 38 mCmd = cmd;
|
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...] |
H A D | Installer.java | 116 byte[] cmd = _cmd.getBytes(); 117 int len = cmd.length; 123 mOut.write(cmd, 0, len); 132 private synchronized String transaction(String cmd) { argument 138 if (!writeCommand(cmd)) { 145 if (!connect() || !writeCommand(cmd)) { 149 // Slog.i(TAG,"send: '"+cmd+"'"); 160 private int execute(String cmd) { argument 161 String res = transaction(cmd);
|
H A D | NativeDaemonConnector.java | 58 // The range of 400 -> 599 is reserved for cmd failures 221 public synchronized ArrayList<String> doCommand(String cmd) argument 224 sendCommand(cmd); 259 code, cmd, response.get(response.size()-1).substring(4)); 267 public String[] doListCommand(String cmd, int expectedResponseCode) argument 270 ArrayList<String> rsp = doCommand(cmd); 285 Slog.w(TAG, String.format("Recv'd %d lines after end of list {%s}", (last-i), cmd));
|
H A D | NetworkManagementService.java | 314 String cmd = String.format("interface setcfg %s %s %s %s", iface, 317 mConnector.doCommand(cmd); 374 // cmd is "tether start first_start first_stop second_start second_stop ..." 376 String cmd = "tether start"; 378 cmd += " " + d; 382 mConnector.doCommand(cmd); 464 String cmd = "tether dns set"; 466 cmd += " " + InetAddress.getByName(s).getHostAddress(); 469 mConnector.doCommand(cmd);
|
/frameworks/base/core/java/android/nfc/tech/ |
H A D | MifareClassic.java | 368 byte[] cmd = new byte[12]; 372 cmd[0] = 0x60; // phHal_eMifareAuthentA 374 cmd[0] = 0x61; // phHal_eMifareAuthentB 380 cmd[1] = (byte) sectorToBlock(sector); 384 System.arraycopy(uid, uid.length - 4, cmd, 2, 4); 387 System.arraycopy(key, 0, cmd, 6, 6); 390 if (transceive(cmd, false) != null) { 419 byte[] cmd = { 0x30, (byte) blockIndex }; 420 return transceive(cmd, false); 444 byte[] cmd [all...] |
H A D | MifareUltralight.java | 153 byte[] cmd = { 0x30, (byte) pageOffset}; 154 return transceive(cmd, false); 178 byte[] cmd = new byte[data.length + 2]; 179 cmd[0] = (byte) 0xA2; 180 cmd[1] = (byte) pageOffset; 181 System.arraycopy(data, 0, cmd, 2, data.length); 183 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/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/base/tools/localize/ |
H A D | Perforce.cpp | 19 Perforce::RunCommand(const string& cmd, string* result, bool printOnFailure) argument 26 log_printf("Perforce::RunCommand: %s\n", cmd.c_str()); 46 cmd.c_str(), 105 stringstream cmd; local 107 cmd << "p4 files"; 111 cmd << " \"" << base << '/' << apps[i] << "/res/values/strings.xml@" << version << '"'; 114 err = RunCommand(cmd.str(), &text, printOnFailure); 148 stringstream cmd; local 149 cmd << "p4 print -q \"" << file << '@' << version << '"'; 150 return RunCommand(cmd 180 stringstream cmd; local 215 string cmd = "p4 where "; local [all...] |
H A D | Perforce.h | 12 static int RunCommand(const string& cmd, string* result, bool printOnFailure);
|
/frameworks/base/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 | 145 char *cmd = NULL; local 147 cmd = (char *)malloc(cmdSize); 148 data.read(cmd, cmdSize); 156 status_t status = command(cmdCode, cmdSize, cmd, &replySz, resp); 165 if (cmd) { 166 free(cmd);
|
/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 LOGE("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:__anon7 441 uint32_t cmd[2]; local [all...] |
/frameworks/base/libs/binder/ |
H A D | IPCThreadState.cpp | 170 const int32_t* cmd = (const int32_t*)_cmd; local 171 int32_t code = *cmd++; 173 out << "BR_ERROR: " << (void*)(*cmd++) << endl; 174 return cmd; 177 return cmd; 185 cmd = (const int32_t *)printBinderTransactionData(out, cmd); 190 const int32_t res = *cmd++; 198 const int32_t b = *cmd++; 199 const int32_t c = *cmd 226 const int32_t* cmd = (const int32_t*)_cmd; local 422 int32_t cmd; local 652 int32_t cmd; local 836 writeTransactionData(int32_t cmd, uint32_t binderFlags, int32_t handle, uint32_t code, const Parcel& data, status_t* statusBuffer) argument 875 executeCommand(int32_t cmd) argument [all...] |
/frameworks/base/cmds/installd/ |
H A D | installd.c | 181 static int execute(int s, char cmd[BUFFER_MAX]) argument 190 // LOGI("execute('%s')\n", cmd); 196 arg[0] = cmd; 197 while (*cmd) { 198 if (isspace(*cmd)) { 199 *cmd++ = 0; 201 arg[n] = cmd; 207 cmd++; 225 n = snprintf(cmd, BUFFER_MAX, "%d %s", ret, reply); 227 n = snprintf(cmd, BUFFER_MA [all...] |
/frameworks/base/packages/VpnServices/src/com/android/server/vpn/ |
H A D | DaemonProxy.java | 119 String cmd = SVC_STATE_CMD_PREFIX + mName; 120 return SVC_STATE_STOPPED.equals(SystemProperties.get(cmd)); 169 String cmd = SVC_STATE_CMD_PREFIX + mName; 173 if (expectedState.equals(SystemProperties.get(cmd))) { 182 return expectedState.equals(SystemProperties.get(cmd));
|
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothProfileState.java | 131 int cmd = msg.arg1; 134 deviceProfileMgr.sendMessage(cmd); 137 deferMsg.arg1 = cmd;
|
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/mockril/ |
H A D | MockRilTest.java | 96 assertTrue(String.format("expected mhd.header.cmd == 0 was %d",respMsg.getCmd()), 127 assertTrue(String.format("expected cmd == 12345 was %d", mhResult.getCmd()), 141 assertTrue(String.format("expected cmd == 12345 was %d", mhResult.getCmd()), 164 assertTrue(String.format("expected cmd == 1 was %d", resp.getCmd()), 212 RilCtrlCmds.CtrlReqSetMTCall cmd = new RilCtrlCmds.CtrlReqSetMTCall(); 215 cmd.setPhoneNumber(incomingCall); 216 Msg.send(mMockRilChannel, RilCtrlCmds.CTRL_CMD_SET_MT_CALL, 0, 0, cmd); 247 RilCtrlCmds.CtrlSetCallTransitionFlag cmd = new RilCtrlCmds.CtrlSetCallTransitionFlag(); 248 cmd.setFlag(true); 249 Msg.send(mMockRilChannel, RilCtrlCmds.CTRL_CMD_SET_CALL_TRANSITION_FLAG, 0, 0, cmd); [all...] |
/frameworks/base/core/jni/ |
H A D | android_net_wifi_Wifi.cpp | 50 static int doCommand(const char *cmd, char *replybuf, int replybuflen) argument 54 if (::wifi_command(cmd, replybuf, &reply_len) != 0) 66 static jint doIntCommand(const char *cmd) argument 70 if (doCommand(cmd, reply, sizeof(reply)) != 0) { 77 static jboolean doBooleanCommand(const char *cmd, const char *expect) argument 81 if (doCommand(cmd, reply, sizeof(reply)) != 0) { 89 static jstring doStringCommand(JNIEnv *env, const char *cmd) argument 93 if (doCommand(cmd, reply, sizeof(reply)) != 0) { 214 const char *cmd = disableOthers ? "SELECT_NETWORK" : "ENABLE_NETWORK"; local 216 int numWritten = snprintf(cmdstr, sizeof(cmdstr), "%s %d", cmd, netI 316 android_net_wifi_getRssiHelper(const char *cmd) argument [all...] |
/frameworks/base/core/java/android/service/wallpaper/ |
H A D | WallpaperService.java | 278 WallpaperCommand cmd = new WallpaperCommand(); 279 cmd.action = action; 280 cmd.x = x; 281 cmd.y = y; 282 cmd.z = z; 283 cmd.extras = extras; 284 cmd.sync = sync; 286 msg.obj = cmd; 729 void doCommand(WallpaperCommand cmd) { argument 732 result = onCommand(cmd [all...] |
/frameworks/base/include/camera/ |
H A D | ICamera.h | 92 virtual status_t sendCommand(int32_t cmd, int32_t arg1, int32_t arg2) = 0;
|
/frameworks/base/services/jni/ |
H A D | com_android_server_UsbService.cpp | 59 static void set_accessory_string(JNIEnv *env, int fd, int cmd, jobjectArray strArray, int index) argument 64 int length = ioctl(fd, cmd, buffer);
|