/frameworks/base/core/java/android/nfc/tech/ |
D | MifareClassic.java | 368 byte[] cmd = new byte[12]; in authenticate() 372 cmd[0] = 0x60; // phHal_eMifareAuthentA in authenticate() 374 cmd[0] = 0x61; // phHal_eMifareAuthentB in authenticate() 380 cmd[1] = (byte) sectorToBlock(sector); in authenticate() 384 System.arraycopy(uid, uid.length - 4, cmd, 2, 4); in authenticate() 387 System.arraycopy(key, 0, cmd, 6, 6); in authenticate() 390 if (transceive(cmd, false) != null) { in authenticate() 419 byte[] cmd = { 0x30, (byte) blockIndex }; in readBlock() 420 return transceive(cmd, false); in readBlock() 444 byte[] cmd = new byte[data.length + 2]; in writeBlock() [all …]
|
D | MifareUltralight.java | 153 byte[] cmd = { 0x30, (byte) pageOffset}; in readPages() 154 return transceive(cmd, false); in readPages() 178 byte[] cmd = new byte[data.length + 2]; in writePage() 179 cmd[0] = (byte) 0xA2; in writePage() 180 cmd[1] = (byte) pageOffset; in writePage() 181 System.arraycopy(data, 0, cmd, 2, data.length); in writePage() 183 transceive(cmd, false); in writePage()
|
/frameworks/base/media/java/android/media/ |
D | AsyncPlayer.java | 54 private void startSound(Command cmd) { in startSound() argument 61 player.setAudioStreamType(cmd.stream); in startSound() 62 player.setDataSource(cmd.context, cmd.uri); in startSound() 63 player.setLooping(cmd.looping); in startSound() 70 long delay = SystemClock.uptimeMillis() - cmd.requestTime; in startSound() 76 Log.w(mTag, "error loading sound for " + cmd.uri, e); in startSound() 87 Command cmd = null; in run() local 91 cmd = mCmdQueue.removeFirst(); in run() 94 switch (cmd.code) { in run() 97 startSound(cmd); in run() [all …]
|
/frameworks/base/libs/rs/ |
D | rsHandcode.h | 11 RS_CMD_AllocationData *cmd = static_cast<RS_CMD_AllocationData *>(io->mToCore.reserve(size)); in rsHCAPI_AllocationData() local 12 cmd->va = va; in rsHCAPI_AllocationData() 13 cmd->bytes = sizeBytes; in rsHCAPI_AllocationData() 14 cmd->data = data; in rsHCAPI_AllocationData() 16 cmd->data = (void *)(cmd+1); in rsHCAPI_AllocationData() 17 memcpy(cmd+1, data, sizeBytes); in rsHCAPI_AllocationData() 32 …RS_CMD_Allocation1DSubData *cmd = static_cast<RS_CMD_Allocation1DSubData *>(io->mToCore.reserve(si… in rsHCAPI_Allocation1DSubData() local 33 cmd->va = va; in rsHCAPI_Allocation1DSubData() 34 cmd->xoff = xoff; in rsHCAPI_Allocation1DSubData() 35 cmd->count = count; in rsHCAPI_Allocation1DSubData() [all …]
|
/frameworks/base/services/java/com/android/server/ |
D | NotificationPlayer.java | 74 public CreationAndCompletionThread(Command cmd) { in CreationAndCompletionThread() argument 76 mCmd = cmd; in CreationAndCompletionThread() 118 private void startSound(Command cmd) { in startSound() argument 135 mCompletionThread = new CreationAndCompletionThread(cmd); in startSound() 143 long delay = SystemClock.uptimeMillis() - cmd.requestTime; in startSound() 149 Log.w(mTag, "error loading sound for " + cmd.uri, e); in startSound() 160 Command cmd = null; in run() local 164 cmd = mCmdQueue.removeFirst(); in run() 167 switch (cmd.code) { in run() 170 startSound(cmd); in run() [all …]
|
D | NativeDaemonConnectorException.java | 34 public NativeDaemonConnectorException(int code, String cmd, String error) in NativeDaemonConnectorException() argument 36 super(String.format("Cmd {%s} failed with code %d : {%s}", cmd, code, error)); in NativeDaemonConnectorException() 38 mCmd = cmd; in NativeDaemonConnectorException()
|
D | Installer.java | 116 byte[] cmd = _cmd.getBytes(); in writeCommand() 117 int len = cmd.length; in writeCommand() 123 mOut.write(cmd, 0, len); in writeCommand() 132 private synchronized String transaction(String cmd) { in transaction() argument 138 if (!writeCommand(cmd)) { in transaction() 145 if (!connect() || !writeCommand(cmd)) { in transaction() 160 private int execute(String cmd) { in execute() argument 161 String res = transaction(cmd); in execute()
|
D | NativeDaemonConnector.java | 221 public synchronized ArrayList<String> doCommand(String cmd) in doCommand() argument 224 sendCommand(cmd); in doCommand() 259 code, cmd, response.get(response.size()-1).substring(4)); in doCommand() 267 public String[] doListCommand(String cmd, int expectedResponseCode) in doListCommand() argument 270 ArrayList<String> rsp = doCommand(cmd); in doListCommand() 285 … Slog.w(TAG, String.format("Recv'd %d lines after end of list {%s}", (last-i), cmd)); in doListCommand()
|
D | NetworkManagementService.java | 314 String cmd = String.format("interface setcfg %s %s %s %s", iface, in setInterfaceConfig() local 317 mConnector.doCommand(cmd); in setInterfaceConfig() 376 String cmd = "tether start"; in startTethering() local 378 cmd += " " + d; in startTethering() 382 mConnector.doCommand(cmd); in startTethering() 464 String cmd = "tether dns set"; in setDnsForwarders() local 466 cmd += " " + InetAddress.getByName(s).getHostAddress(); in setDnsForwarders() 469 mConnector.doCommand(cmd); in setDnsForwarders()
|
/frameworks/base/tools/localize/ |
D | Perforce.cpp | 19 Perforce::RunCommand(const string& cmd, string* result, bool printOnFailure) in RunCommand() argument 26 log_printf("Perforce::RunCommand: %s\n", cmd.c_str()); in RunCommand() 46 cmd.c_str(), in RunCommand() 105 stringstream cmd; in GetResourceFileNames() local 107 cmd << "p4 files"; in GetResourceFileNames() 111 cmd << " \"" << base << '/' << apps[i] << "/res/values/strings.xml@" << version << '"'; in GetResourceFileNames() 114 err = RunCommand(cmd.str(), &text, printOnFailure); in GetResourceFileNames() 148 stringstream cmd; in GetFile() local 149 cmd << "p4 print -q \"" << file << '@' << version << '"'; in GetFile() 150 return RunCommand(cmd.str(), result, printOnFailure); in GetFile() [all …]
|
D | Perforce.h | 12 static int RunCommand(const string& cmd, string* result, bool printOnFailure);
|
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/forwarder/ |
D | AdbUtils.java | 66 String cmd = "dns:" + host; in resolve() 68 if(!sendAdbCmd(dis, os, cmd)) in resolve() 89 String cmd) throws IOException { in sendAdbCmd() argument 92 cmd = String.format("%04X", cmd.length()) + cmd; in sendAdbCmd() 93 os.write(cmd.getBytes()); in sendAdbCmd() 116 String cmd = "tcp:" + remotePort + ":" + convert(remoteAddress); in getForwardedSocket() local 117 if(!sendAdbCmd(socket.getInputStream(), socket.getOutputStream(), cmd)) { in getForwardedSocket()
|
/frameworks/base/libs/binder/ |
D | IPCThreadState.cpp | 170 const int32_t* cmd = (const int32_t*)_cmd; in printReturnCommand() local 171 int32_t code = *cmd++; in printReturnCommand() 173 out << "BR_ERROR: " << (void*)(*cmd++) << endl; in printReturnCommand() 174 return cmd; in printReturnCommand() 177 return cmd; in printReturnCommand() 185 cmd = (const int32_t *)printBinderTransactionData(out, cmd); in printReturnCommand() 190 const int32_t res = *cmd++; in printReturnCommand() 198 const int32_t b = *cmd++; in printReturnCommand() 199 const int32_t c = *cmd++; in printReturnCommand() 204 const int32_t p = *cmd++; in printReturnCommand() [all …]
|
/frameworks/base/cmds/servicemanager/ |
D | binder.c | 60 const char *cmd_name(uint32_t cmd) in cmd_name() argument 62 switch(cmd) { in cmd_name() 201 uint32_t cmd = *ptr++; in binder_parse() local 203 fprintf(stderr,"%s:\n", cmd_name(cmd)); in binder_parse() 205 switch(cmd) { in binder_parse() 269 LOGE("parse: OOPS %d\n", cmd); in binder_parse() 279 uint32_t cmd[2]; in binder_acquire() local 280 cmd[0] = BC_ACQUIRE; in binder_acquire() 281 cmd[1] = (uint32_t) ptr; in binder_acquire() 282 binder_write(bs, cmd, sizeof(cmd)); in binder_acquire() [all …]
|
/frameworks/base/core/java/android/nfc/ |
D | ApduList.java | 46 byte[] cmd = new byte[length]; in ApduList() 47 in.readByteArray(cmd); in ApduList() 48 commands.add(cmd); in ApduList() 61 for (byte[] cmd : commands) { in writeToParcel() 62 dest.writeInt(cmd.length); in writeToParcel() 63 dest.writeByteArray(cmd); in writeToParcel()
|
/frameworks/base/cmds/installd/ |
D | installd.c | 181 static int execute(int s, char cmd[BUFFER_MAX]) in execute() 196 arg[0] = cmd; in execute() 197 while (*cmd) { in execute() 198 if (isspace(*cmd)) { in execute() 199 *cmd++ = 0; in execute() 201 arg[n] = cmd; in execute() 207 cmd++; in execute() 225 n = snprintf(cmd, BUFFER_MAX, "%d %s", ret, reply); in execute() 227 n = snprintf(cmd, BUFFER_MAX, "%d", ret); in execute() 234 if (writex(s, cmd, count)) return -1; in execute()
|
/frameworks/base/media/libmedia/ |
D | IEffectClient.cpp | 117 char *cmd = NULL; in onTransact() local 119 cmd = (char *)malloc(cmdSize); in onTransact() 120 data.read(cmd, cmdSize); in onTransact() 128 commandExecuted(cmdCode, cmdSize, cmd, replySize, resp); in onTransact() 129 if (cmd) { in onTransact() 130 free(cmd); in onTransact()
|
D | IEffect.cpp | 145 char *cmd = NULL; in onTransact() local 147 cmd = (char *)malloc(cmdSize); in onTransact() 148 data.read(cmd, cmdSize); in onTransact() 156 status_t status = command(cmdCode, cmdSize, cmd, &replySz, resp); in onTransact() 165 if (cmd) { in onTransact() 166 free(cmd); in onTransact()
|
/frameworks/base/core/java/android/service/wallpaper/ |
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) { in doCommand() argument 732 result = onCommand(cmd.action, cmd.x, cmd.y, cmd.z, in doCommand() [all …]
|
/frameworks/base/packages/VpnServices/src/com/android/server/vpn/ |
D | DaemonProxy.java | 119 String cmd = SVC_STATE_CMD_PREFIX + mName; in isStopped() local 120 return SVC_STATE_STOPPED.equals(SystemProperties.get(cmd)); in isStopped() 169 String cmd = SVC_STATE_CMD_PREFIX + mName; in blockUntil() local 173 if (expectedState.equals(SystemProperties.get(cmd))) { in blockUntil() 182 return expectedState.equals(SystemProperties.get(cmd)); in blockUntil()
|
/frameworks/base/core/jni/ |
D | android_net_wifi_Wifi.cpp | 50 static int doCommand(const char *cmd, char *replybuf, int replybuflen) in doCommand() argument 54 if (::wifi_command(cmd, replybuf, &reply_len) != 0) in doCommand() 66 static jint doIntCommand(const char *cmd) in doIntCommand() argument 70 if (doCommand(cmd, reply, sizeof(reply)) != 0) { in doIntCommand() 77 static jboolean doBooleanCommand(const char *cmd, const char *expect) in doBooleanCommand() argument 81 if (doCommand(cmd, reply, sizeof(reply)) != 0) { in doBooleanCommand() 89 static jstring doStringCommand(JNIEnv *env, const char *cmd) in doStringCommand() argument 93 if (doCommand(cmd, reply, sizeof(reply)) != 0) { in doStringCommand() 214 const char *cmd = disableOthers ? "SELECT_NETWORK" : "ENABLE_NETWORK"; in android_net_wifi_enableNetworkCommand() local 216 int numWritten = snprintf(cmdstr, sizeof(cmdstr), "%s %d", cmd, netId); in android_net_wifi_enableNetworkCommand() [all …]
|
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/mockril/ |
D | MockRilTest.java | 212 RilCtrlCmds.CtrlReqSetMTCall cmd = new RilCtrlCmds.CtrlReqSetMTCall(); in testStartIncomingCallAndHangup() local 215 cmd.setPhoneNumber(incomingCall); in testStartIncomingCallAndHangup() 216 Msg.send(mMockRilChannel, RilCtrlCmds.CTRL_CMD_SET_MT_CALL, 0, 0, cmd); in testStartIncomingCallAndHangup() 247 RilCtrlCmds.CtrlSetCallTransitionFlag cmd = new RilCtrlCmds.CtrlSetCallTransitionFlag(); in testSetCallTransitionFlag() local 248 cmd.setFlag(true); in testSetCallTransitionFlag() 249 Msg.send(mMockRilChannel, RilCtrlCmds.CTRL_CMD_SET_CALL_TRANSITION_FLAG, 0, 0, cmd); in testSetCallTransitionFlag() 298 cmd.setFlag(false); in testSetCallTransitionFlag() 299 Msg.send(mMockRilChannel, RilCtrlCmds.CTRL_CMD_SET_CALL_TRANSITION_FLAG, 0, 0, cmd); in testSetCallTransitionFlag()
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothProfileState.java | 131 int cmd = msg.arg1; in dispatchMessage() local 134 deviceProfileMgr.sendMessage(cmd); in dispatchMessage() 137 deferMsg.arg1 = cmd; in dispatchMessage()
|
/frameworks/base/services/jni/ |
D | com_android_server_UsbService.cpp | 59 static void set_accessory_string(JNIEnv *env, int fd, int cmd, jobjectArray strArray, int index) in set_accessory_string() argument 64 int length = ioctl(fd, cmd, buffer); in set_accessory_string()
|
/frameworks/base/telephony/mockril/src/com/android/internal/telephony/mockril/ |
D | MockRilController.java | 62 private boolean sendCtrlCommand(int cmd, long token, int status, MessageMicro pbData) { in sendCtrlCommand() argument 64 Msg.send(mRilChannel, cmd, token, status, pbData); in sendCtrlCommand()
|