/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 | 54 private void startSound(Command cmd) { in startSound() argument 61 player.setAudioAttributes(cmd.attributes); 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/packages/SystemUI/src/com/android/systemui/media/ |
D | NotificationPlayer.java | 72 public CreationAndCompletionThread(Command cmd) { in CreationAndCompletionThread() argument 74 mCmd = cmd; in CreationAndCompletionThread() 146 private void startSound(Command cmd) { in startSound() argument 163 mCompletionThread = new CreationAndCompletionThread(cmd); in startSound() 171 long delay = SystemClock.uptimeMillis() - cmd.requestTime; in startSound() 177 Log.w(mTag, "error loading sound for " + cmd.uri, e); in startSound() 188 Command cmd = null; in run() local 192 cmd = mCmdQueue.removeFirst(); in run() 195 switch (cmd.code) { in run() 198 startSound(cmd); in run() [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | AdapterHelper.java | 96 switch (op.cmd) { in preProcess() 230 if (op.cmd == UpdateOp.ADD || op.cmd == UpdateOp.MOVE) { in dispatchAndUpdateViewHolders() 244 int tmpStart = updatePositionWithPostponed(op.positionStart, op.cmd); in dispatchAndUpdateViewHolders() 251 switch (op.cmd) { in dispatchAndUpdateViewHolders() 263 int updatedPos = updatePositionWithPostponed(pos, op.cmd); in dispatchAndUpdateViewHolders() 268 switch (op.cmd) { in dispatchAndUpdateViewHolders() 280 UpdateOp tmp = obtainUpdateOp(op.cmd, tmpStart, tmpCnt, op.payload); in dispatchAndUpdateViewHolders() 286 if (op.cmd == UpdateOp.UPDATE) { in dispatchAndUpdateViewHolders() 296 UpdateOp tmp = obtainUpdateOp(op.cmd, tmpStart, tmpCnt, payload); in dispatchAndUpdateViewHolders() 315 switch (op.cmd) { in dispatchFirstPassAndUpdateViewHolders() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | AdapterHelper.java | 96 switch (op.cmd) { in preProcess() 230 if (op.cmd == UpdateOp.ADD || op.cmd == UpdateOp.MOVE) { in dispatchAndUpdateViewHolders() 244 int tmpStart = updatePositionWithPostponed(op.positionStart, op.cmd); in dispatchAndUpdateViewHolders() 251 switch (op.cmd) { in dispatchAndUpdateViewHolders() 263 int updatedPos = updatePositionWithPostponed(pos, op.cmd); in dispatchAndUpdateViewHolders() 268 switch (op.cmd) { in dispatchAndUpdateViewHolders() 280 UpdateOp tmp = obtainUpdateOp(op.cmd, tmpStart, tmpCnt, op.payload); in dispatchAndUpdateViewHolders() 286 if (op.cmd == UpdateOp.UPDATE) { in dispatchAndUpdateViewHolders() 296 UpdateOp tmp = obtainUpdateOp(op.cmd, tmpStart, tmpCnt, payload); in dispatchAndUpdateViewHolders() 315 switch (op.cmd) { in dispatchFirstPassAndUpdateViewHolders() [all …]
|
/frameworks/base/tools/bit/ |
D | make.cpp | 54 Command cmd("make"); in get_build_var() local 55 cmd.AddArg("--no-print-directory"); in get_build_var() 56 cmd.AddArg(string("-j") + std::to_string(get_thread_count())); in get_build_var() 57 cmd.AddArg("-C"); in get_build_var() 58 cmd.AddArg(buildTop); in get_build_var() 59 cmd.AddArg("-f"); in get_build_var() 60 cmd.AddArg("build/core/config.mk"); in get_build_var() 61 cmd.AddArg(string("dumpvar-") + name); in get_build_var() 62 cmd.AddEnv("CALLED_FROM_SETUP", "true"); in get_build_var() 63 cmd.AddEnv("BUILD_SYSTEM", "build/core"); in get_build_var() [all …]
|
D | adb.cpp | 50 Command cmd("adb"); in run_adb() local 56 cmd.AddArg(first); in run_adb() 65 cmd.AddArg(arg); in run_adb() 69 return run_command(cmd); in run_adb() 75 Command cmd("adb"); in get_system_property() local 76 cmd.AddArg("shell"); in get_system_property() 77 cmd.AddArg("getprop"); in get_system_property() 78 cmd.AddArg(name); in get_system_property() 80 return trim(get_command_output(cmd, err, false)); in get_system_property() 280 Command cmd("adb"); in run_instrumentation_test() local [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/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
|
/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 | 97 boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument 99 || cmd.getSource() != mRecorderAddress) { in processCommand() 103 switch (cmd.getOpcode()) { in processCommand() 105 return handleTimerStatus(cmd); in processCommand() 107 return handleFeatureAbort(cmd); in processCommand() 112 private boolean handleTimerStatus(HdmiCecMessage cmd) { in handleTimerStatus() argument 113 byte[] timerStatusData = cmd.getParams(); in handleTimerStatus() 127 private boolean handleFeatureAbort(HdmiCecMessage cmd) { in handleFeatureAbort() argument 128 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()
|
/frameworks/native/libs/binder/ |
D | IPCThreadState.cpp | 111 static const char* getReturnString(uint32_t cmd) in getReturnString() argument 113 size_t idx = cmd & 0xff; in getReturnString() 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() [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/rs/tests/lldb/tests/harness/ |
D | util_android.py | 87 cmd = '{0} -s {1} {2}'.format(self._path_adb, self.device, args) 89 cmd = '{0} {1}'.format(self._path_adb, args) 91 self._log.debug('Execute ADB: %s', cmd) 95 return_code, output = UtilAndroid._execute_command_local(cmd, async) 103 return_code, output = UtilAndroid._execute_command_remote(cmd, 107 self._log.warn('[ADB] The command timed out: %s', cmd) 111 self._adb_log_output(cmd, output, return_code) 156 def _adb_log_output(self, cmd, output, return_code): argument 175 self._log.warn("[ADB] Command executed: {0}".format(cmd)) 206 cmd = "echo {0}".format(token) [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/media/src/com/android/commands/media/ |
D | VolumeCtrl.java | 67 public static void run(BaseCommand cmd) throws Exception { in run() argument 81 while ((option = cmd.nextOption()) != null) { in run() 91 stream = Integer.decode(cmd.nextArgRequired()).intValue(); in run() 95 volIndex = Integer.decode(cmd.nextArgRequired()).intValue(); in run() 101 adjustment = cmd.nextArgRequired(); in run() 113 cmd.showError("Error: no valid volume adjustment (null)"); in run() 121 cmd.showError("Error: no valid volume adjustment, was " + adjustment in run() 142 cmd.showError(String.format("Error: invalid volume index %d for stream %d " in run() 153 final String pack = cmd.getClass().getPackage().getName(); in run()
|
D | Media.java | 144 String cmd = nextArgRequired(); in runDispatch() local 146 if ("play".equals(cmd)) { in runDispatch() 148 } else if ("pause".equals(cmd)) { in runDispatch() 150 } else if ("play-pause".equals(cmd)) { in runDispatch() 152 } else if ("mute".equals(cmd)) { in runDispatch() 154 } else if ("headsethook".equals(cmd)) { in runDispatch() 156 } else if ("stop".equals(cmd)) { in runDispatch() 158 } else if ("next".equals(cmd)) { in runDispatch() 160 } else if ("previous".equals(cmd)) { in runDispatch() 162 } else if ("rewind".equals(cmd)) { in runDispatch() [all …]
|
/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/android/os/ |
D | ShellCommand.java | 80 String cmd; in exec() local 83 cmd = args[0]; in exec() 86 cmd = null; in exec() 90 mCmd = cmd; in exec() 288 public int handleDefaultCommands(String cmd) { in handleDefaultCommands() argument 289 if ("dump".equals(cmd)) { in handleDefaultCommands() 294 } else if (cmd == null || "help".equals(cmd) || "-h".equals(cmd)) { in handleDefaultCommands() 297 getOutPrintWriter().println("Unknown command: " + cmd); in handleDefaultCommands() 320 public abstract int onCommand(String cmd); in onCommand() argument
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerManagerShellCommand.java | 36 public int onCommand(String cmd) { in onCommand() argument 37 if (cmd == null) { in onCommand() 38 return handleDefaultCommands(cmd); in onCommand() 43 switch(cmd) { in onCommand() 47 return handleDefaultCommands(cmd); in onCommand()
|
/frameworks/av/media/libaudioclient/ |
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()
|