Home
last modified time | relevance | path

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

1234567891011

/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.java55 private void startSound(Command cmd) { in startSound() argument
62 player.setAudioAttributes(cmd.attributes); in startSound()
63 player.setDataSource(cmd.context, cmd.uri); in startSound()
64 player.setLooping(cmd.looping); in startSound()
71 long delay = SystemClock.uptimeMillis() - cmd.requestTime; in startSound()
77 Log.w(mTag, "error loading sound for " + cmd.uri, e); in startSound()
88 Command cmd = null; in run() local
92 cmd = mCmdQueue.removeFirst(); in run()
95 switch (cmd.code) { in run()
98 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 …]
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()
DSystemAudioStatusAction.java79 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()
95 boolean mute = HdmiUtils.isAudioStatusMute(cmd); in handleReportAudioStatus()
96 int volume = HdmiUtils.getAudioStatusVolume(cmd); in handleReportAudioStatus()
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/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/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/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/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/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/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/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/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/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()
/frameworks/native/libs/binder/
DIPCThreadState.cpp117 static const char* getReturnString(uint32_t cmd) in getReturnString() argument
119 size_t idx = cmd & 0xff; in getReturnString()
148 const int32_t* cmd = (const int32_t*)_cmd; in printReturnCommand() local
149 uint32_t code = (uint32_t)*cmd++; in printReturnCommand()
152 out << "BR_ERROR: " << (void*)(long)(*cmd++) << endl; in printReturnCommand()
153 return cmd; in printReturnCommand()
156 return cmd; in printReturnCommand()
164 cmd = (const int32_t *)printBinderTransactionData(out, cmd); in printReturnCommand()
169 const int32_t res = *cmd++; in printReturnCommand()
177 const int32_t b = *cmd++; in printReturnCommand()
[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/base/services/appprediction/java/com/android/server/appprediction/
DAppPredictionManagerServiceShellCommand.java39 public int onCommand(String cmd) { in onCommand() argument
40 if (cmd == null) { in onCommand()
41 return handleDefaultCommands(cmd); in onCommand()
44 switch (cmd) { in onCommand()
65 return handleDefaultCommands(cmd); in onCommand()
/frameworks/base/services/core/java/com/android/server/
DNativeDaemonConnector.java327 String cmd, Object... args) { in makeCommand() argument
328 if (cmd.indexOf('\0') >= 0) { in makeCommand()
329 throw new IllegalArgumentException("Unexpected command: " + cmd); in makeCommand()
331 if (cmd.indexOf(' ') >= 0) { in makeCommand()
335 rawBuilder.append(sequenceNumber).append(' ').append(cmd); in makeCommand()
336 logBuilder.append(sequenceNumber).append(' ').append(cmd); in makeCommand()
390 public NativeDaemonEvent execute(Command cmd) throws NativeDaemonConnectorException { in execute() argument
391 return execute(cmd.mCmd, cmd.mArguments.toArray()); in execute()
404 public NativeDaemonEvent execute(String cmd, Object... args) in execute() argument
406 return execute(DEFAULT_TIMEOUT, cmd, args); in execute()
[all …]
/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()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerShellCommand.java36 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()
49 return handleDefaultCommands(cmd); in onCommand()

1234567891011