Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 25 of 278) sorted by relevance

12345678910>>...12

/frameworks/base/core/java/android/nfc/tech/
DMifareClassic.java373 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 …]
DMifareUltralight.java163 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/
DAsyncPlayer.java54 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/services/core/java/com/android/server/hdmi/
DDeviceDiscoveryAction.java277 boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument
280 if (cmd.getOpcode() == Constants.MESSAGE_REPORT_PHYSICAL_ADDRESS) { in processCommand()
281 handleReportPhysicalAddress(cmd); in processCommand()
286 if (cmd.getOpcode() == Constants.MESSAGE_SET_OSD_NAME) { in processCommand()
287 handleSetOsdName(cmd); in processCommand()
289 } else if ((cmd.getOpcode() == Constants.MESSAGE_FEATURE_ABORT) && in processCommand()
290 ((cmd.getParams()[0] & 0xFF) == Constants.MESSAGE_GIVE_OSD_NAME)) { in processCommand()
291 handleSetOsdName(cmd); in processCommand()
296 if (cmd.getOpcode() == Constants.MESSAGE_DEVICE_VENDOR_ID) { in processCommand()
297 handleVendorId(cmd); in processCommand()
[all …]
DVolumeControlAction.java126 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()
142 boolean mute = HdmiUtils.isAudioStatusMute(cmd); in handleReportAudioStatus()
143 int volume = HdmiUtils.getAudioStatusVolume(cmd); in handleReportAudioStatus()
173 private boolean handleFeatureAbort(HdmiCecMessage cmd) { in handleFeatureAbort() argument
[all …]
DSystemAudioStatusAction.java73 boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument
74 if (mState != STATE_WAIT_FOR_REPORT_AUDIO_STATUS || mAvrAddress != cmd.getSource()) { in processCommand()
78 switch (cmd.getOpcode()) { in processCommand()
80 handleReportAudioStatus(cmd); in processCommand()
87 private void handleReportAudioStatus(HdmiCecMessage cmd) { in handleReportAudioStatus() argument
88 byte[] params = cmd.getParams(); in handleReportAudioStatus()
89 boolean mute = HdmiUtils.isAudioStatusMute(cmd); in handleReportAudioStatus()
90 int volume = HdmiUtils.getAudioStatusVolume(cmd); in handleReportAudioStatus()
DOneTouchRecordAction.java79 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()
DTimerRecordingAction.java97 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DNotificationPlayer.java78 public CreationAndCompletionThread(Command cmd) { in CreationAndCompletionThread() argument
80 mCmd = cmd; in CreationAndCompletionThread()
177 private void startSound(Command cmd) { in startSound() argument
195 mCompletionThread = new CreationAndCompletionThread(cmd); in startSound()
203 long delay = SystemClock.uptimeMillis() - cmd.requestTime; in startSound()
209 Log.w(mTag, "error loading sound for " + cmd.uri, e); in startSound()
220 Command cmd = null; in run() local
224 cmd = mCmdQueue.removeFirst(); in run()
227 switch (cmd.code) { in run()
230 startSound(cmd); in run()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DAdapterHelper.java96 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/
Dadb.cpp50 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/
Dglgen.py119 def genCmd(self, cmd, name): argument
122 reg.OutputGenerator.genCmd(self, cmd, name)
124 rtype, fname = parseProto(cmd.elem.find('proto'))
125 params = [parseParam(p) for p in cmd.elem.findall('param')]
146 def genCmd(self, cmd, name): argument
149 reg.OutputGenerator.genCmd(self, cmd, name)
150 rtype, fname = parseProto(cmd.elem.find('proto'))
151 params = [parseParam(p) for p in cmd.elem.findall('param')]
192 for cmd in self.cmds:
193 if len(cmds) == 0 or cmd != cmds[-1]:
[all …]
/frameworks/native/cmds/installd/
Dotapreopt_script.sh53 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/rs/tests/lldb/tests/harness/
Dutil_android.py87 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/cmds/uiautomator/cmds/uiautomator/
Duiautomator50 cmd=${1}
53 cmd="help"
70 if [ "${cmd}" == "runtest" ]; then
80 cmd="help"
99 cmd="help"
122 args="${cmd} ${args}"
/frameworks/native/libs/binder/
DIPCThreadState.cpp118 static const char* getReturnString(uint32_t cmd) in getReturnString() argument
120 size_t idx = cmd & _IOC_NRMASK; in getReturnString()
149 const int32_t* cmd = (const int32_t*)_cmd; in printReturnCommand() local
150 uint32_t code = (uint32_t)*cmd++; in printReturnCommand()
153 out << "BR_ERROR: " << (void*)(long)(*cmd++) << endl; in printReturnCommand()
154 return cmd; in printReturnCommand()
157 return cmd; in printReturnCommand()
165 cmd = (const int32_t *)printBinderTransactionData(out, cmd); in printReturnCommand()
170 const int32_t res = *cmd++; in printReturnCommand()
178 const int32_t b = *cmd++; in printReturnCommand()
[all …]
/frameworks/base/cmds/media/src/com/android/commands/media/
DVolumeCtrl.java67 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()
DMedia.java154 String cmd = nextArgRequired(); in runDispatch() local
156 if ("play".equals(cmd)) { in runDispatch()
158 } else if ("pause".equals(cmd)) { in runDispatch()
160 } else if ("play-pause".equals(cmd)) { in runDispatch()
162 } else if ("mute".equals(cmd)) { in runDispatch()
164 } else if ("headsethook".equals(cmd)) { in runDispatch()
166 } else if ("stop".equals(cmd)) { in runDispatch()
168 } else if ("next".equals(cmd)) { in runDispatch()
170 } else if ("previous".equals(cmd)) { in runDispatch()
172 } else if ("rewind".equals(cmd)) { in runDispatch()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DWakeupMessage.java54 String cmdName, int cmd, int arg1, int arg2, Object obj) { in WakeupMessage() argument
58 mCmd = cmd; in WakeupMessage()
65 public WakeupMessage(Context context, Handler handler, String cmdName, int cmd, int arg1) { in WakeupMessage() argument
66 this(context, handler, cmdName, cmd, arg1, 0, null); in WakeupMessage()
70 String cmdName, int cmd, int arg1, int arg2) { in WakeupMessage() argument
71 this(context, handler, cmdName, cmd, arg1, arg2, null); in WakeupMessage()
74 public WakeupMessage(Context context, Handler handler, String cmdName, int cmd) { in WakeupMessage() argument
75 this(context, handler, cmdName, cmd, 0, 0, null); in WakeupMessage()
/frameworks/base/core/java/android/nfc/
DApduList.java46 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/native/cmds/cmd/
Dcmd.cpp208 const auto cmd = argv[serviceIdx]; in cmdMain() local
211 String16 serviceName = String16(cmd.data(), cmd.size()); in cmdMain()
224 ALOGW("Can't find service %.*s", static_cast<int>(cmd.size()), cmd.data()); in cmdMain()
226 errorLog << "cmd: Can't find service: " << cmd << endl; in cmdMain()
235 static_cast<int>(cmd.size()), cmd.data(), in, out, err); in cmdMain()
250 ALOGW("Failure calling service %.*s: %s (%d)", static_cast<int>(cmd.size()), cmd.data(), in cmdMain()
253 outputLog << "cmd: Failure calling service " << cmd << ": " << errstr << " (" << (-error) in cmdMain()
/frameworks/base/services/core/java/com/android/server/
DNativeDaemonConnector.java328 String cmd, Object... args) { in makeCommand() argument
329 if (cmd.indexOf('\0') >= 0) { in makeCommand()
330 throw new IllegalArgumentException("Unexpected command: " + cmd); in makeCommand()
332 if (cmd.indexOf(' ') >= 0) { in makeCommand()
336 rawBuilder.append(sequenceNumber).append(' ').append(cmd); in makeCommand()
337 logBuilder.append(sequenceNumber).append(' ').append(cmd); in makeCommand()
391 public NativeDaemonEvent execute(Command cmd) throws NativeDaemonConnectorException { in execute() argument
392 return execute(cmd.mCmd, cmd.mArguments.toArray()); in execute()
405 public NativeDaemonEvent execute(String cmd, Object... args) in execute() argument
407 return execute(DEFAULT_TIMEOUT, cmd, args); in execute()
[all …]
/frameworks/base/services/core/java/com/android/server/content/
DContentShellCommand.java33 public int onCommand(String cmd) { in onCommand() argument
34 if (cmd == null) { in onCommand()
35 return handleDefaultCommands(cmd); in onCommand()
40 switch(cmd) { in onCommand()
44 return handleDefaultCommands(cmd); in onCommand()
/frameworks/base/tests/JankBench/scripts/
Dadbutil.py11 def am(serial, cmd, args): argument
14 full_args = ["am"] + [cmd] + args
17 def pm(serial, cmd, args): argument
20 full_args = ["pm"] + [cmd] + args
44 def shell(serial, cmd): argument
45 __call_adb(serial, cmd, False)
/frameworks/av/media/libaudioclient/
DIEffect.cpp160 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()

12345678910>>...12