/frameworks/base/core/java/android/nfc/tech/ |
D | MifareClassic.java | 373 byte[] cmd = new byte[12]; in authenticate() 377 cmd[0] = 0x60; // phHal_eMifareAuthentA in authenticate() 379 cmd[0] = 0x61; // phHal_eMifareAuthentB in authenticate() 385 cmd[1] = (byte) sectorToBlock(sector); in authenticate() 389 System.arraycopy(uid, uid.length - 4, cmd, 2, 4); in authenticate() 392 System.arraycopy(key, 0, cmd, 6, 6); in authenticate() 395 if (transceive(cmd, false) != null) { in authenticate() 424 byte[] cmd = { 0x30, (byte) blockIndex }; in readBlock() 425 return transceive(cmd, false); in readBlock() 449 byte[] cmd = new byte[data.length + 2]; in writeBlock() [all …]
|
D | MifareUltralight.java | 163 byte[] cmd = { 0x30, (byte) pageOffset}; in readPages() 164 return transceive(cmd, false); in readPages() 188 byte[] cmd = new byte[data.length + 2]; in writePage() 189 cmd[0] = (byte) 0xA2; in writePage() 190 cmd[1] = (byte) pageOffset; in writePage() 191 System.arraycopy(data, 0, cmd, 2, data.length); in writePage() 193 transceive(cmd, false); in writePage()
|
/frameworks/base/media/java/android/media/ |
D | AsyncPlayer.java | 53 private void startSound(Command cmd) { in startSound() argument 60 player.setAudioAttributes(cmd.attributes); in startSound() 61 player.setDataSource(cmd.context, cmd.uri); in startSound() 62 player.setLooping(cmd.looping); in startSound() 69 long delay = SystemClock.uptimeMillis() - cmd.requestTime; in startSound() 75 Log.w(mTag, "error loading sound for " + cmd.uri, e); in startSound() 86 Command cmd = null; in run() local 90 cmd = mCmdQueue.removeFirst(); in run() 93 switch (cmd.code) { in run() 96 startSound(cmd); in run() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | NotificationPlayer.java | 71 public CreationAndCompletionThread(Command cmd) { in CreationAndCompletionThread() argument 73 mCmd = cmd; in CreationAndCompletionThread() 132 private void startSound(Command cmd) { in startSound() argument 149 mCompletionThread = new CreationAndCompletionThread(cmd); in startSound() 157 long delay = SystemClock.uptimeMillis() - cmd.requestTime; in startSound() 163 Log.w(mTag, "error loading sound for " + cmd.uri, e); in startSound() 174 Command cmd = null; in run() local 178 cmd = mCmdQueue.removeFirst(); in run() 181 switch (cmd.code) { in run() 184 startSound(cmd); in run() [all …]
|
/frameworks/native/opengl/tools/glgen2/ |
D | glgen.py | 122 def genCmd(self, cmd, name): argument 123 reg.OutputGenerator.genCmd(self, cmd, name) 125 rtype, fname = parseTypedName(cmd.elem.find('proto')) 126 params = [parseTypedName(p) for p in cmd.elem.findall('param')] 148 def genCmd(self, cmd, name): argument 149 reg.OutputGenerator.genCmd(self, cmd, name) 150 rtype, fname = parseTypedName(cmd.elem.find('proto')) 151 params = [parseTypedName(p) for p in cmd.elem.findall('param')] 190 for cmd in self.cmds: 191 if len(cmds) == 0 or cmd != cmds[-1]: [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | AdapterHelper.java | 95 switch (op.cmd) { in preProcess() 228 if (op.cmd == UpdateOp.ADD || op.cmd == UpdateOp.MOVE) { in dispatchAndUpdateViewHolders() 242 int tmpStart = updatePositionWithPostponed(op.positionStart, op.cmd); in dispatchAndUpdateViewHolders() 249 switch (op.cmd) { in dispatchAndUpdateViewHolders() 261 int updatedPos = updatePositionWithPostponed(pos, op.cmd); in dispatchAndUpdateViewHolders() 266 switch (op.cmd) { in dispatchAndUpdateViewHolders() 278 UpdateOp tmp = obtainUpdateOp(op.cmd, tmpStart, tmpCnt, op.payload); in dispatchAndUpdateViewHolders() 284 if (op.cmd == UpdateOp.UPDATE) { in dispatchAndUpdateViewHolders() 294 UpdateOp tmp = obtainUpdateOp(op.cmd, tmpStart, tmpCnt, payload); in dispatchAndUpdateViewHolders() 313 switch (op.cmd) { in dispatchFirstPassAndUpdateViewHolders() [all …]
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | DeviceDiscoveryAction.java | 219 boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument 222 if (cmd.getOpcode() == Constants.MESSAGE_REPORT_PHYSICAL_ADDRESS) { in processCommand() 223 handleReportPhysicalAddress(cmd); in processCommand() 228 if (cmd.getOpcode() == Constants.MESSAGE_SET_OSD_NAME) { in processCommand() 229 handleSetOsdName(cmd); in processCommand() 234 if (cmd.getOpcode() == Constants.MESSAGE_DEVICE_VENDOR_ID) { in processCommand() 235 handleVendorId(cmd); in processCommand() 246 private void handleReportPhysicalAddress(HdmiCecMessage cmd) { in handleReportPhysicalAddress() argument 250 if (current.mLogicalAddress != cmd.getSource()) { in handleReportPhysicalAddress() 252 cmd.getSource()); in handleReportPhysicalAddress() [all …]
|
D | OneTouchRecordAction.java | 79 boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument 80 if (mState != STATE_WAITING_FOR_RECORD_STATUS || mRecorderAddress != cmd.getSource()) { in processCommand() 84 switch (cmd.getOpcode()) { in processCommand() 86 return handleRecordStatus(cmd); in processCommand() 91 private boolean handleRecordStatus(HdmiCecMessage cmd) { in handleRecordStatus() argument 93 if (cmd.getSource() != mRecorderAddress) { in handleRecordStatus() 97 int recordStatus = cmd.getParams()[0]; in handleRecordStatus() 99 Slog.i(TAG, "Got record status:" + recordStatus + " from " + cmd.getSource()); in handleRecordStatus()
|
D | TimerRecordingAction.java | 98 boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument 100 || cmd.getSource() != mRecorderAddress) { in processCommand() 104 switch (cmd.getOpcode()) { in processCommand() 106 return handleTimerStatus(cmd); in processCommand() 108 return handleFeatureAbort(cmd); in processCommand() 113 private boolean handleTimerStatus(HdmiCecMessage cmd) { in handleTimerStatus() argument 114 byte[] timerStatusData = cmd.getParams(); in handleTimerStatus() 128 private boolean handleFeatureAbort(HdmiCecMessage cmd) { in handleFeatureAbort() argument 129 byte[] params = cmd.getParams(); in handleFeatureAbort()
|
D | VolumeControlAction.java | 126 boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument 127 if (mState != STATE_WAIT_FOR_NEXT_VOLUME_PRESS || cmd.getSource() != mAvrAddress) { in processCommand() 131 switch (cmd.getOpcode()) { in processCommand() 133 return handleReportAudioStatus(cmd); in processCommand() 135 return handleFeatureAbort(cmd); in processCommand() 140 private boolean handleReportAudioStatus(HdmiCecMessage cmd) { in handleReportAudioStatus() argument 141 byte params[] = cmd.getParams(); in handleReportAudioStatus() 173 private boolean handleFeatureAbort(HdmiCecMessage cmd) { in handleFeatureAbort() argument 174 int originalOpcode = cmd.getParams()[0] & 0xFF; in handleFeatureAbort()
|
D | SystemAudioStatusAction.java | 81 boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument 82 if (mState != STATE_WAIT_FOR_REPORT_AUDIO_STATUS || mAvrAddress != cmd.getSource()) { in processCommand() 86 switch (cmd.getOpcode()) { in processCommand() 88 handleReportAudioStatus(cmd); in processCommand() 95 private void handleReportAudioStatus(HdmiCecMessage cmd) { in handleReportAudioStatus() argument 96 byte[] params = cmd.getParams(); in handleReportAudioStatus()
|
D | PowerStatusMonitorAction.java | 66 boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument 68 && cmd.getOpcode() == Constants.MESSAGE_REPORT_POWER_STATUS) { in processCommand() 69 return handleReportPowerStatus(cmd); in processCommand() 74 private boolean handleReportPowerStatus(HdmiCecMessage cmd) { in handleReportPowerStatus() argument 75 int sourceAddress = cmd.getSource(); in handleReportPowerStatus() 81 int newStatus = cmd.getParams()[0] & 0xFF; in handleReportPowerStatus()
|
D | SystemAudioAction.java | 140 final boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument 141 if (cmd.getSource() != mAvrLogicalAddress) { in processCommand() 146 if (cmd.getOpcode() == Constants.MESSAGE_FEATURE_ABORT in processCommand() 147 && (cmd.getParams()[0] & 0xFF) in processCommand() 154 if (cmd.getOpcode() != Constants.MESSAGE_SET_SYSTEM_AUDIO_MODE in processCommand() 155 || !HdmiUtils.checkCommandSource(cmd, mAvrLogicalAddress, TAG)) { in processCommand() 158 boolean receivedStatus = HdmiUtils.parseCommandParamSystemAudioStatus(cmd); in processCommand()
|
/frameworks/native/libs/binder/ |
D | IPCThreadState.cpp | 142 const int32_t* cmd = (const int32_t*)_cmd; in printReturnCommand() local 143 uint32_t code = (uint32_t)*cmd++; in printReturnCommand() 146 out << "BR_ERROR: " << (void*)(long)(*cmd++) << endl; in printReturnCommand() 147 return cmd; in printReturnCommand() 150 return cmd; in printReturnCommand() 158 cmd = (const int32_t *)printBinderTransactionData(out, cmd); in printReturnCommand() 163 const int32_t res = *cmd++; in printReturnCommand() 171 const int32_t b = *cmd++; in printReturnCommand() 172 const int32_t c = *cmd++; in printReturnCommand() 177 const int32_t p = *cmd++; in printReturnCommand() [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/services/core/java/com/android/server/ |
D | NativeDaemonConnector.java | 285 String cmd, Object... args) { in makeCommand() argument 286 if (cmd.indexOf('\0') >= 0) { in makeCommand() 287 throw new IllegalArgumentException("Unexpected command: " + cmd); in makeCommand() 289 if (cmd.indexOf(' ') >= 0) { in makeCommand() 293 rawBuilder.append(sequenceNumber).append(' ').append(cmd); in makeCommand() 294 logBuilder.append(sequenceNumber).append(' ').append(cmd); in makeCommand() 324 public NativeDaemonEvent execute(Command cmd) throws NativeDaemonConnectorException { in execute() argument 325 return execute(cmd.mCmd, cmd.mArguments.toArray()); in execute() 338 public NativeDaemonEvent execute(String cmd, Object... args) in execute() argument 340 return execute(DEFAULT_TIMEOUT, cmd, args); in execute() [all …]
|
/frameworks/rs/ |
D | rsThreadIO.cpp | 109 const CoreCmdHeader *cmd = (const CoreCmdHeader *)&buf[0]; in playCoreCommands() local 139 mToCore.read(&buf[sizeof(CoreCmdHeader)], cmd->bytes); in playCoreCommands() 145 r = mToCore.read((void *)&cmd->cmdID, sizeof(cmd->cmdID)); in playCoreCommands() 155 if (cmd->cmdID >= (sizeof(gPlaybackFuncs) / sizeof(void *))) { in playCoreCommands() 156 rsAssert(cmd->cmdID < (sizeof(gPlaybackFuncs) / sizeof(void *))); in playCoreCommands() 157 ALOGE("playCoreCommands error con %p, cmd %i", con, cmd->cmdID); in playCoreCommands() 161 gPlaybackFuncs[cmd->cmdID](con, data, cmd->bytes); in playCoreCommands() 163 gPlaybackRemoteFuncs[cmd->cmdID](con, this); in playCoreCommands()
|
/frameworks/base/cmds/media/src/com/android/commands/media/ |
D | Media.java | 138 String cmd = nextArgRequired(); in runDispatch() local 140 if ("play".equals(cmd)) { in runDispatch() 142 } else if ("pause".equals(cmd)) { in runDispatch() 144 } else if ("play-pause".equals(cmd)) { in runDispatch() 146 } else if ("mute".equals(cmd)) { in runDispatch() 148 } else if ("headsethook".equals(cmd)) { in runDispatch() 150 } else if ("stop".equals(cmd)) { in runDispatch() 152 } else if ("next".equals(cmd)) { in runDispatch() 154 } else if ("previous".equals(cmd)) { in runDispatch() 156 } else if ("rewind".equals(cmd)) { in runDispatch() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | InstallerConnection.java | 49 public synchronized String transact(String cmd) { in transact() argument 55 if (!writeCommand(cmd)) { in transact() 62 if (!connect() || !writeCommand(cmd)) { in transact() 67 Slog.i(TAG, "send: '" + cmd + "'"); in transact() 85 public int execute(String cmd) { in execute() argument 86 String res = transact(cmd); in execute() 193 final byte[] cmd = cmdString.getBytes(); in writeCommand() 194 final int len = cmd.length; in writeCommand() 203 mOut.write(cmd, 0, len); in writeCommand()
|
/frameworks/native/cmds/servicemanager/ |
D | binder.c | 62 const char *cmd_name(uint32_t cmd) in cmd_name() argument 64 switch(cmd) { in cmd_name() 211 uint32_t cmd = *(uint32_t *) ptr; in binder_parse() local 214 fprintf(stderr,"%s:\n", cmd_name(cmd)); in binder_parse() 216 switch(cmd) { in binder_parse() 281 ALOGE("parse: OOPS %d\n", cmd); in binder_parse() 291 uint32_t cmd[2]; in binder_acquire() local 292 cmd[0] = BC_ACQUIRE; in binder_acquire() 293 cmd[1] = target; in binder_acquire() 294 binder_write(bs, cmd, sizeof(cmd)); in binder_acquire() [all …]
|
/frameworks/native/opengl/tests/hwc/ |
D | hwcColorEquiv.cpp | 133 void printSyntax(const char *cmd); 169 char cmd[MAXCMD]; in main() local 280 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_STOP_FRAMEWORK); in main() 281 if (rv >= (signed) sizeof(cmd) - 1) { in main() 285 testExecCmd(cmd); in main() 399 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_START_FRAMEWORK); in main() 400 if (rv >= (signed) sizeof(cmd) - 1) { in main() 404 testExecCmd(cmd); in main() 421 void printSyntax(const char *cmd) in printSyntax() argument 423 testPrintE(" %s [options] graphicFormat", cmd); in printSyntax()
|
D | hwcRects.cpp | 175 void printSyntax(const char *cmd); 208 char cmd[MAXCMD]; in main() local 237 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_STOP_FRAMEWORK); in main() 238 if (rv >= (signed) sizeof(cmd) - 1) { in main() 242 testExecCmd(cmd); in main() 349 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_START_FRAMEWORK); in main() 350 if (rv >= (signed) sizeof(cmd) - 1) { in main() 354 testExecCmd(cmd); in main() 541 void printSyntax(const char *cmd) in printSyntax() argument 544 cmd); in printSyntax() [all …]
|
/frameworks/av/media/libmedia/ |
D | IEffect.cpp | 157 char *cmd = NULL; in onTransact() local 159 cmd = (char *)calloc(cmdSize, 1); in onTransact() 160 if (cmd == NULL) { in onTransact() 164 data.read(cmd, cmdSize); in onTransact() 172 free(cmd); in onTransact() 177 status_t status = command(cmdCode, cmdSize, cmd, &replySz, resp); in onTransact() 188 if (cmd) { in onTransact() 189 free(cmd); in onTransact()
|
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()
|
/frameworks/base/core/java/android/os/ |
D | FileBridge.java | 98 final int cmd = Memory.peekInt(temp, 0, ByteOrder.BIG_ENDIAN); in run() local 99 if (cmd == CMD_WRITE) { in run() 112 } else if (cmd == CMD_FSYNC) { in run() 117 } else if (cmd == CMD_CLOSE) { in run() 163 private void writeCommandAndBlock(int cmd, String cmdString) throws IOException { in writeCommandAndBlock() argument 164 Memory.pokeInt(mTemp, 0, cmd, ByteOrder.BIG_ENDIAN); in writeCommandAndBlock() 169 if (Memory.peekInt(mTemp, 0, ByteOrder.BIG_ENDIAN) == cmd) { in writeCommandAndBlock()
|