/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/support/v7/recyclerview/src/android/support/v7/widget/ |
D | AdapterHelper.java | 98 switch (op.cmd) { in preProcess() 232 if (op.cmd == UpdateOp.ADD || op.cmd == UpdateOp.MOVE) { in dispatchAndUpdateViewHolders() 246 int tmpStart = updatePositionWithPostponed(op.positionStart, op.cmd); in dispatchAndUpdateViewHolders() 253 switch (op.cmd) { in dispatchAndUpdateViewHolders() 265 int updatedPos = updatePositionWithPostponed(pos, op.cmd); in dispatchAndUpdateViewHolders() 270 switch (op.cmd) { in dispatchAndUpdateViewHolders() 282 UpdateOp tmp = obtainUpdateOp(op.cmd, tmpStart, tmpCnt, op.payload); in dispatchAndUpdateViewHolders() 288 if (op.cmd == UpdateOp.UPDATE) { in dispatchAndUpdateViewHolders() 298 UpdateOp tmp = obtainUpdateOp(op.cmd, tmpStart, tmpCnt, payload); in dispatchAndUpdateViewHolders() 317 switch (op.cmd) { in dispatchFirstPassAndUpdateViewHolders() [all …]
|
/frameworks/native/opengl/tools/glgen2/ |
D | glgen.py | 119 def genCmd(self, cmd, name): argument 120 reg.OutputGenerator.genCmd(self, cmd, name) 122 rtype, fname = parseProto(cmd.elem.find('proto')) 123 params = [parseParam(p) for p in cmd.elem.findall('param')] 144 def genCmd(self, cmd, name): argument 145 reg.OutputGenerator.genCmd(self, cmd, name) 146 rtype, fname = parseProto(cmd.elem.find('proto')) 147 params = [parseParam(p) for p in cmd.elem.findall('param')] 186 for cmd in self.cmds: 187 if len(cmds) == 0 or cmd != cmds[-1]: [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 | 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 | 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 | SystemAudioStatusAction.java | 79 boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument 80 if (mState != STATE_WAIT_FOR_REPORT_AUDIO_STATUS || mAvrAddress != cmd.getSource()) { in processCommand() 84 switch (cmd.getOpcode()) { in processCommand() 86 handleReportAudioStatus(cmd); in processCommand() 93 private void handleReportAudioStatus(HdmiCecMessage cmd) { in handleReportAudioStatus() argument 94 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/cmds/installd/ |
D | otapreopt_script.sh | 53 PREPARE=$(cmd otadexopt prepare) 58 PROGRESS=$(cmd otadexopt progress) 63 DEXOPT_PARAMS=$(cmd otadexopt next) 67 PROGRESS=$(cmd otadexopt progress) 70 DONE=$(cmd otadexopt done) 79 DONE=$(cmd otadexopt done) 87 cmd otadexopt cleanup
|
D | otapreopt.cpp | 425 std::vector<std::string> cmd; in PatchoatBootImage() local 426 cmd.push_back("/system/bin/patchoat"); in PatchoatBootImage() 428 cmd.push_back("--input-image-location=/system/framework/boot.art"); in PatchoatBootImage() 429 cmd.push_back(StringPrintf("--output-image-file=%s", art_path.c_str())); in PatchoatBootImage() 431 cmd.push_back(StringPrintf("--instruction-set=%s", isa)); in PatchoatBootImage() 435 cmd.push_back(StringPrintf("--base-offset-delta=%d", base_offset)); in PatchoatBootImage() 438 bool result = Exec(cmd, &error_msg); in PatchoatBootImage() 450 std::vector<std::string> cmd; in Dex2oatBootImage() local 451 cmd.push_back("/system/bin/dex2oat"); in Dex2oatBootImage() 452 cmd.push_back(StringPrintf("--image=%s", art_path.c_str())); in Dex2oatBootImage() [all …]
|
/frameworks/native/libs/binder/ |
D | IPCThreadState.cpp | 144 const int32_t* cmd = (const int32_t*)_cmd; in printReturnCommand() local 145 uint32_t code = (uint32_t)*cmd++; in printReturnCommand() 148 out << "BR_ERROR: " << (void*)(long)(*cmd++) << endl; in printReturnCommand() 149 return cmd; in printReturnCommand() 152 return cmd; in printReturnCommand() 160 cmd = (const int32_t *)printBinderTransactionData(out, cmd); in printReturnCommand() 165 const int32_t res = *cmd++; in printReturnCommand() 173 const int32_t b = *cmd++; in printReturnCommand() 174 const int32_t c = *cmd++; in printReturnCommand() 179 const int32_t p = *cmd++; in printReturnCommand() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | WakeupMessage.java | 53 String cmdName, int cmd, int arg1, int arg2, Object obj) { in WakeupMessage() argument 57 mCmd = cmd; in WakeupMessage() 63 public WakeupMessage(Context context, Handler handler, String cmdName, int cmd, int arg1) { in WakeupMessage() argument 64 this(context, handler, cmdName, cmd, arg1, 0, null); in WakeupMessage() 68 String cmdName, int cmd, int arg1, int arg2) { in WakeupMessage() argument 69 this(context, handler, cmdName, cmd, arg1, arg2, null); in WakeupMessage() 72 public WakeupMessage(Context context, Handler handler, String cmdName, int cmd) { in WakeupMessage() argument 73 this(context, handler, cmdName, cmd, 0, 0, null); in WakeupMessage()
|
/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/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/android/os/ |
D | ShellCommand.java | 78 String cmd; in exec() local 81 cmd = args[0]; in exec() 84 cmd = null; in exec() 88 mCmd = cmd; in exec() 260 public int handleDefaultCommands(String cmd) { in handleDefaultCommands() argument 261 if ("dump".equals(cmd)) { in handleDefaultCommands() 266 } else if (cmd == null || "help".equals(cmd) || "-h".equals(cmd)) { in handleDefaultCommands() 269 getOutPrintWriter().println("Unknown command: " + cmd); in handleDefaultCommands() 292 public abstract int onCommand(String cmd); in onCommand() argument
|
/frameworks/base/services/core/java/com/android/server/ |
D | NativeDaemonConnector.java | 317 String cmd, Object... args) { in makeCommand() argument 318 if (cmd.indexOf('\0') >= 0) { in makeCommand() 319 throw new IllegalArgumentException("Unexpected command: " + cmd); in makeCommand() 321 if (cmd.indexOf(' ') >= 0) { in makeCommand() 325 rawBuilder.append(sequenceNumber).append(' ').append(cmd); in makeCommand() 326 logBuilder.append(sequenceNumber).append(' ').append(cmd); in makeCommand() 380 public NativeDaemonEvent execute(Command cmd) throws NativeDaemonConnectorException { in execute() argument 381 return execute(cmd.mCmd, cmd.mArguments.toArray()); in execute() 394 public NativeDaemonEvent execute(String cmd, Object... args) in execute() argument 396 return execute(DEFAULT_TIMEOUT, cmd, args); in execute() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | InstallerConnection.java | 65 public synchronized String transact(String cmd) { in transact() argument 76 if (!writeCommand(cmd)) { in transact() 83 if (!connect() || !writeCommand(cmd)) { in transact() 88 Slog.i(TAG, "send: '" + cmd + "'"); in transact() 106 public String[] execute(String cmd, Object... args) throws InstallerException { in execute() argument 107 final StringBuilder builder = new StringBuilder(cmd); in execute() 117 "Invalid argument while executing " + cmd + " " + Arrays.toString(args)); in execute() 132 "Failed to execute " + cmd + " " + Arrays.toString(args) + ": " + res); in execute() 256 final byte[] cmd = cmdString.getBytes(); in writeCommand() 257 final int len = cmd.length; in writeCommand() [all …]
|
/frameworks/av/media/libmedia/ |
D | IEffect.cpp | 160 char *cmd = NULL; in onTransact() local 166 cmd = (char *)calloc(cmdSize, 1); in onTransact() 167 if (cmd == NULL) { in onTransact() 171 data.read(cmd, cmdSize); in onTransact() 178 free(cmd); in onTransact() 184 free(cmd); in onTransact() 189 status_t status = command(cmdCode, cmdSize, cmd, &replySz, resp); in onTransact() 200 if (cmd) { in onTransact() 201 free(cmd); in onTransact()
|
/frameworks/native/opengl/tests/hwc/ |
D | hwcColorEquiv.cpp | 134 void printSyntax(const char *cmd); 170 char cmd[MAXCMD]; in main() local 281 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_STOP_FRAMEWORK); in main() 282 if (rv >= (signed) sizeof(cmd) - 1) { in main() 286 testExecCmd(cmd); in main() 400 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_START_FRAMEWORK); in main() 401 if (rv >= (signed) sizeof(cmd) - 1) { in main() 405 testExecCmd(cmd); in main() 422 void printSyntax(const char *cmd) in printSyntax() argument 424 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 …]
|