Home
last modified time | relevance | path

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

123456

/frameworks/base/media/java/android/media/
DAsyncPlayer.java52 private void startSound(Command cmd) { in startSound() argument
59 player.setAudioStreamType(cmd.stream); in startSound()
60 player.setDataSource(cmd.context, cmd.uri); in startSound()
61 player.setLooping(cmd.looping); in startSound()
68 long delay = SystemClock.uptimeMillis() - cmd.requestTime; in startSound()
74 Log.w(mTag, "error loading sound for " + cmd.uri, e); in startSound()
85 Command cmd = null; in run() local
89 cmd = mCmdQueue.removeFirst(); in run()
92 switch (cmd.code) { in run()
95 startSound(cmd); in run()
[all …]
/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/packages/SystemUI/src/com/android/systemui/media/
DNotificationPlayer.java70 public CreationAndCompletionThread(Command cmd) { in CreationAndCompletionThread() argument
72 mCmd = cmd; in CreationAndCompletionThread()
130 private void startSound(Command cmd) { in startSound() argument
147 mCompletionThread = new CreationAndCompletionThread(cmd); in startSound()
155 long delay = SystemClock.uptimeMillis() - cmd.requestTime; in startSound()
161 Log.w(mTag, "error loading sound for " + cmd.uri, e); in startSound()
172 Command cmd = null; in run() local
176 cmd = mCmdQueue.removeFirst(); in run()
179 switch (cmd.code) { in run()
182 startSound(cmd); in run()
[all …]
/frameworks/native/opengl/tools/glgen2/
Dglgen.py108 def genCmd(self, cmd, name): argument
109 reg.OutputGenerator.genCmd(self, cmd, name)
111 rtype, fname = parseTypedName(cmd.elem.find('proto'))
112 params = [parseTypedName(p) for p in cmd.elem.findall('param')]
134 def genCmd(self, cmd, name): argument
135 reg.OutputGenerator.genCmd(self, cmd, name)
136 rtype, fname = parseTypedName(cmd.elem.find('proto'))
137 params = [parseTypedName(p) for p in cmd.elem.findall('param')]
176 for cmd in self.cmds:
177 if len(cmds) == 0 or cmd != cmds[-1]:
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DAdapterHelper.java95 switch (op.cmd) { in preProcess()
225 if (op.cmd == UpdateOp.ADD || op.cmd == UpdateOp.MOVE) { in dispatchAndUpdateViewHolders()
239 int tmpStart = updatePositionWithPostponed(op.positionStart, op.cmd); in dispatchAndUpdateViewHolders()
246 switch (op.cmd) { in dispatchAndUpdateViewHolders()
258 int updatedPos = updatePositionWithPostponed(pos, op.cmd); in dispatchAndUpdateViewHolders()
263 switch (op.cmd) { in dispatchAndUpdateViewHolders()
275 UpdateOp tmp = obtainUpdateOp(op.cmd, tmpStart, tmpCnt); in dispatchAndUpdateViewHolders()
281 if (op.cmd == UpdateOp.UPDATE) { in dispatchAndUpdateViewHolders()
290 UpdateOp tmp = obtainUpdateOp(op.cmd, tmpStart, tmpCnt); in dispatchAndUpdateViewHolders()
309 switch (op.cmd) { in dispatchFirstPassAndUpdateViewHolders()
[all …]
/frameworks/base/services/core/java/com/android/server/hdmi/
DDeviceDiscoveryAction.java217 boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument
220 if (cmd.getOpcode() == Constants.MESSAGE_REPORT_PHYSICAL_ADDRESS) { in processCommand()
221 handleReportPhysicalAddress(cmd); in processCommand()
226 if (cmd.getOpcode() == Constants.MESSAGE_SET_OSD_NAME) { in processCommand()
227 handleSetOsdName(cmd); in processCommand()
232 if (cmd.getOpcode() == Constants.MESSAGE_DEVICE_VENDOR_ID) { in processCommand()
233 handleVendorId(cmd); in processCommand()
244 private void handleReportPhysicalAddress(HdmiCecMessage cmd) { in handleReportPhysicalAddress() argument
248 if (current.mLogicalAddress != cmd.getSource()) { in handleReportPhysicalAddress()
250 cmd.getSource()); in handleReportPhysicalAddress()
[all …]
DVolumeControlAction.java122 boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument
123 if (mState != STATE_WAIT_FOR_NEXT_VOLUME_PRESS || cmd.getSource() != mAvrAddress) { in processCommand()
127 switch (cmd.getOpcode()) { in processCommand()
129 return handleReportAudioStatus(cmd); in processCommand()
131 return handleFeatureAbort(cmd); in processCommand()
137 private boolean handleReportAudioStatus(HdmiCecMessage cmd) { in handleReportAudioStatus() argument
138 byte params[] = cmd.getParams(); in handleReportAudioStatus()
167 private boolean handleFeatureAbort(HdmiCecMessage cmd) { in handleFeatureAbort() argument
168 int originalOpcode = cmd.getParams()[0] & 0xFF; in handleFeatureAbort()
DTimerRecordingAction.java98 boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument
103 if (cmd.getSource() != mRecorderAddress) { in processCommand()
107 switch (cmd.getOpcode()) { in processCommand()
109 return handleTimerStatus(cmd); in processCommand()
111 return handleFeatureAbort(cmd); in processCommand()
116 private boolean handleTimerStatus(HdmiCecMessage cmd) { in handleTimerStatus() argument
117 byte[] timerStatusData = cmd.getParams(); in handleTimerStatus()
131 private boolean handleFeatureAbort(HdmiCecMessage cmd) { in handleFeatureAbort() argument
132 byte[] params = cmd.getParams(); in handleFeatureAbort()
DOneTouchRecordAction.java79 boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument
84 switch (cmd.getOpcode()) { in processCommand()
86 return handleRecordStatus(cmd); in processCommand()
92 private boolean handleRecordStatus(HdmiCecMessage cmd) { in handleRecordStatus() argument
94 if (cmd.getSource() != mRecorderAddress) { in handleRecordStatus()
98 int recordStatus = cmd.getParams()[0]; in handleRecordStatus()
100 Slog.i(TAG, "Got record status:" + recordStatus + " from " + cmd.getSource()); in handleRecordStatus()
DRequestArcAction.java50 boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument
52 || !HdmiUtils.checkCommandSource(cmd, mAvrAddress, TAG)) { in processCommand()
55 int opcode = cmd.getOpcode(); in processCommand()
61 int originalOpcode = cmd.getParams()[0] & 0xFF; in processCommand()
DSystemAudioStatusAction.java81 boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument
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()
DPowerStatusMonitorAction.java66 boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument
70 return handleReportPowerStatus(cmd); in processCommand()
73 private boolean handleReportPowerStatus(HdmiCecMessage cmd) { in handleReportPowerStatus() argument
74 int sourceAddress = cmd.getSource(); in handleReportPowerStatus()
80 int newStatus = cmd.getParams()[0] & 0xFF; in handleReportPowerStatus()
DSystemAudioAction.java127 final boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument
130 if (cmd.getOpcode() == Constants.MESSAGE_FEATURE_ABORT in processCommand()
131 && (cmd.getParams()[0] & 0xFF) in processCommand()
138 if (cmd.getOpcode() != Constants.MESSAGE_SET_SYSTEM_AUDIO_MODE in processCommand()
139 || !HdmiUtils.checkCommandSource(cmd, mAvrLogicalAddress, TAG)) { in processCommand()
142 boolean receivedStatus = HdmiUtils.parseCommandParamSystemAudioStatus(cmd); in processCommand()
/frameworks/native/libs/binder/
DIPCThreadState.cpp159 const int32_t* cmd = (const int32_t*)_cmd; in printReturnCommand() local
160 int32_t code = *cmd++; in printReturnCommand()
163 out << "BR_ERROR: " << (void*)(*cmd++) << endl; in printReturnCommand()
164 return cmd; in printReturnCommand()
167 return cmd; in printReturnCommand()
175 cmd = (const int32_t *)printBinderTransactionData(out, cmd); in printReturnCommand()
180 const int32_t res = *cmd++; in printReturnCommand()
188 const int32_t b = *cmd++; in printReturnCommand()
189 const int32_t c = *cmd++; in printReturnCommand()
194 const int32_t p = *cmd++; in printReturnCommand()
[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/rs/
DrsThreadIO.cpp109 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/
DMedia.java139 String cmd = nextArgRequired(); in runDispatch() local
141 if ("play".equals(cmd)) { in runDispatch()
143 } else if ("pause".equals(cmd)) { in runDispatch()
145 } else if ("play-pause".equals(cmd)) { in runDispatch()
147 } else if ("mute".equals(cmd)) { in runDispatch()
149 } else if ("headsethook".equals(cmd)) { in runDispatch()
151 } else if ("stop".equals(cmd)) { in runDispatch()
153 } else if ("next".equals(cmd)) { in runDispatch()
155 } else if ("previous".equals(cmd)) { in runDispatch()
157 } else if ("rewind".equals(cmd)) { in runDispatch()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DInstallerConnection.java48 public synchronized String transact(String cmd) { in transact() argument
54 if (!writeCommand(cmd)) { in transact()
61 if (!connect() || !writeCommand(cmd)) { in transact()
66 Slog.i(TAG, "send: '" + cmd + "'"); in transact()
84 public int execute(String cmd) { in execute() argument
85 String res = transact(cmd); in execute()
203 final byte[] cmd = cmdString.getBytes(); in writeCommand()
204 final int len = cmd.length; in writeCommand()
213 mOut.write(cmd, 0, len); in writeCommand()
/frameworks/base/services/core/java/com/android/server/
DNativeDaemonConnector.java270 String cmd, Object... args) { in makeCommand() argument
271 if (cmd.indexOf('\0') >= 0) { in makeCommand()
272 throw new IllegalArgumentException("Unexpected command: " + cmd); in makeCommand()
274 if (cmd.indexOf(' ') >= 0) { in makeCommand()
278 rawBuilder.append(sequenceNumber).append(' ').append(cmd); in makeCommand()
279 logBuilder.append(sequenceNumber).append(' ').append(cmd); in makeCommand()
309 public NativeDaemonEvent execute(Command cmd) throws NativeDaemonConnectorException { in execute() argument
310 return execute(cmd.mCmd, cmd.mArguments.toArray()); in execute()
323 public NativeDaemonEvent execute(String cmd, Object... args) in execute() argument
325 final NativeDaemonEvent[] events = executeForList(cmd, args); in execute()
[all …]
/frameworks/native/cmds/servicemanager/
Dbinder.c61 const char *cmd_name(uint32_t cmd) in cmd_name() argument
63 switch(cmd) { in cmd_name()
208 uint32_t cmd = *(uint32_t *) ptr; in binder_parse() local
211 fprintf(stderr,"%s:\n", cmd_name(cmd)); in binder_parse()
213 switch(cmd) { in binder_parse()
278 ALOGE("parse: OOPS %d\n", cmd); in binder_parse()
288 uint32_t cmd[2]; in binder_acquire() local
289 cmd[0] = BC_ACQUIRE; in binder_acquire()
290 cmd[1] = target; in binder_acquire()
291 binder_write(bs, cmd, sizeof(cmd)); in binder_acquire()
[all …]
/frameworks/native/opengl/tests/hwc/
DhwcColorEquiv.cpp133 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()
402 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_START_FRAMEWORK); in main()
403 if (rv >= (signed) sizeof(cmd) - 1) { in main()
407 testExecCmd(cmd); in main()
424 void printSyntax(const char *cmd) in printSyntax() argument
426 testPrintE(" %s [options] graphicFormat", cmd); in printSyntax()
DhwcRects.cpp175 void printSyntax(const char *cmd);
209 char cmd[MAXCMD]; in main() local
238 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_STOP_FRAMEWORK); in main()
239 if (rv >= (signed) sizeof(cmd) - 1) { in main()
243 testExecCmd(cmd); in main()
350 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_START_FRAMEWORK); in main()
351 if (rv >= (signed) sizeof(cmd) - 1) { in main()
355 testExecCmd(cmd); in main()
543 void printSyntax(const char *cmd) in printSyntax() argument
546 cmd); in printSyntax()
[all …]
/frameworks/av/media/libmedia/
DIEffectClient.cpp117 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/
DFileBridge.java98 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()

123456