Searched defs:cmd (Results 1 - 25 of 85) sorted by relevance

1234

/frameworks/base/services/core/java/com/android/server/
H A DNativeDaemonConnectorException.java37 public NativeDaemonConnectorException(String cmd, NativeDaemonEvent event) { argument
38 super("command '" + cmd + "' failed with '" + event + "'");
39 mCmd = cmd;
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DRequestArcAction.java50 boolean processCommand(HdmiCecMessage cmd) { argument
52 || !HdmiUtils.checkCommandSource(cmd, mAvrAddress, TAG)) {
55 int opcode = cmd.getOpcode();
61 int originalOpcode = cmd.getParams()[0] & 0xFF;
H A DSetArcTransmissionStateAction.java106 boolean processCommand(HdmiCecMessage cmd) { argument
111 int opcode = cmd.getOpcode();
113 int originalOpcode = cmd.getParams()[0] & 0xFF;
H A DSystemAudioAutoInitiationAction.java60 boolean processCommand(HdmiCecMessage cmd) { argument
62 || mAvrAddress != cmd.getSource()) {
66 if (cmd.getOpcode() == Constants.MESSAGE_SYSTEM_AUDIO_MODE_STATUS) {
H A DDevicePowerStatusAction.java72 boolean processCommand(HdmiCecMessage cmd) { argument
74 || mTargetAddress != cmd.getSource()) {
77 if (cmd.getOpcode() == Constants.MESSAGE_REPORT_POWER_STATUS) {
78 int status = cmd.getParams()[0];
H A DOneTouchPlayAction.java94 boolean processCommand(HdmiCecMessage cmd) { argument
96 || mTargetAddress != cmd.getSource()) {
99 if (cmd.getOpcode() == Constants.MESSAGE_REPORT_POWER_STATUS) {
100 int status = cmd.getParams()[0];
H A DOneTouchRecordAction.java79 boolean processCommand(HdmiCecMessage cmd) { argument
80 if (mState != STATE_WAITING_FOR_RECORD_STATUS || mRecorderAddress != cmd.getSource()) {
84 switch (cmd.getOpcode()) {
86 return handleRecordStatus(cmd);
91 private boolean handleRecordStatus(HdmiCecMessage cmd) { argument
93 if (cmd.getSource() != mRecorderAddress) {
97 int recordStatus = cmd.getParams()[0];
99 Slog.i(TAG, "Got record status:" + recordStatus + " from " + cmd.getSource());
H A DPowerStatusMonitorAction.java66 boolean processCommand(HdmiCecMessage cmd) { argument
68 && cmd.getOpcode() == Constants.MESSAGE_REPORT_POWER_STATUS) {
69 return handleReportPowerStatus(cmd);
74 private boolean handleReportPowerStatus(HdmiCecMessage cmd) { argument
75 int sourceAddress = cmd.getSource();
81 int newStatus = cmd.getParams()[0] & 0xFF;
H A DSendKeyAction.java159 public boolean processCommand(HdmiCecMessage cmd) { argument
H A DSystemAudioStatusAction.java81 boolean processCommand(HdmiCecMessage cmd) { argument
82 if (mState != STATE_WAIT_FOR_REPORT_AUDIO_STATUS || mAvrAddress != cmd.getSource()) {
86 switch (cmd.getOpcode()) {
88 handleReportAudioStatus(cmd);
95 private void handleReportAudioStatus(HdmiCecMessage cmd) { argument
96 byte[] params = cmd.getParams();
H A DTimerRecordingAction.java98 boolean processCommand(HdmiCecMessage cmd) { argument
100 || cmd.getSource() != mRecorderAddress) {
104 switch (cmd.getOpcode()) {
106 return handleTimerStatus(cmd);
108 return handleFeatureAbort(cmd);
113 private boolean handleTimerStatus(HdmiCecMessage cmd) { argument
114 byte[] timerStatusData = cmd.getParams();
128 private boolean handleFeatureAbort(HdmiCecMessage cmd) { argument
129 byte[] params = cmd.getParams();
H A DDeviceSelectAction.java110 public boolean processCommand(HdmiCecMessage cmd) { argument
111 if (cmd.getSource() != getTargetAddress()) {
114 int opcode = cmd.getOpcode();
115 byte[] params = cmd.getParams();
H A DHdmiUtils.java130 * @param cmd the CEC message to check
135 static boolean checkCommandSource(HdmiCecMessage cmd, int expectedAddress, String tag) { argument
136 int src = cmd.getSource();
147 * @param cmd the CEC message to parse
150 static boolean parseCommandParamSystemAudioStatus(HdmiCecMessage cmd) { argument
151 return cmd.getParams()[0] == Constants.SYSTEM_AUDIO_STATUS_ON;
H A DNewDeviceAction.java94 public boolean processCommand(HdmiCecMessage cmd) { argument
99 int opcode = cmd.getOpcode();
100 int src = cmd.getSource();
101 byte[] params = cmd.getParams();
H A DRoutingControlAction.java95 public boolean processCommand(HdmiCecMessage cmd) { argument
96 int opcode = cmd.getOpcode();
97 byte[] params = cmd.getParams();
114 handleReportPowerStatus(cmd.getParams()[0]);
H A DSystemAudioAction.java140 final boolean processCommand(HdmiCecMessage cmd) { argument
141 if (cmd.getSource() != mAvrLogicalAddress) {
146 if (cmd.getOpcode() == Constants.MESSAGE_FEATURE_ABORT
147 && (cmd.getParams()[0] & 0xFF)
154 if (cmd.getOpcode() != Constants.MESSAGE_SET_SYSTEM_AUDIO_MODE
155 || !HdmiUtils.checkCommandSource(cmd, mAvrLogicalAddress, TAG)) {
158 boolean receivedStatus = HdmiUtils.parseCommandParamSystemAudioStatus(cmd);
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayerStreamListener.cpp75 Command cmd, bool synchronous, const sp<AMessage> &extra) {
80 entry.mCommand = cmd;
74 issueCommand( Command cmd, bool synchronous, const sp<AMessage> &extra) argument
/frameworks/av/media/libstagefright/omx/
H A DSimpleSoftOMXComponent.cpp58 OMX_COMMANDTYPE cmd, OMX_U32 param, OMX_PTR data) {
62 msg->setInt32("cmd", cmd);
341 int32_t cmd, param;
342 CHECK(msg->findInt32("cmd", &cmd));
345 onSendCommand((OMX_COMMANDTYPE)cmd, (OMX_U32)param);
393 OMX_COMMANDTYPE cmd, OMX_U32 param) {
394 switch (cmd) {
404 onPortEnable(param, cmd
57 sendCommand( OMX_COMMANDTYPE cmd, OMX_U32 param, OMX_PTR data) argument
[all...]
/frameworks/av/media/libmedia/
H A DIEffectClient.cpp117 char *cmd = NULL; local
119 cmd = (char *)malloc(cmdSize);
120 data.read(cmd, cmdSize);
128 commandExecuted(cmdCode, cmdSize, cmd, replySize, resp);
129 if (cmd) {
130 free(cmd);
H A DIEffect.cpp155 char *cmd = NULL; local
157 cmd = (char *)malloc(cmdSize);
158 data.read(cmd, cmdSize);
166 status_t status = command(cmdCode, cmdSize, cmd, &replySz, resp);
175 if (cmd) {
176 free(cmd);
H A DIStreamSource.cpp155 Command cmd, bool synchronous, const sp<AMessage> &msg) {
158 data.writeInt32(static_cast<int32_t>(cmd));
190 Command cmd = static_cast<Command>(data.readInt32()); local
200 issueCommand(cmd, synchronous, msg);
154 issueCommand( Command cmd, bool synchronous, const sp<AMessage> &msg) argument
/frameworks/base/core/java/android/os/
H A DFileBridge.java98 final int cmd = Memory.peekInt(temp, 0, ByteOrder.BIG_ENDIAN);
99 if (cmd == CMD_WRITE) {
112 } else if (cmd == CMD_FSYNC) {
117 } else if (cmd == CMD_CLOSE) {
163 private void writeCommandAndBlock(int cmd, String cmdString) throws IOException { argument
164 Memory.pokeInt(mTemp, 0, cmd, ByteOrder.BIG_ENDIAN);
169 if (Memory.peekInt(mTemp, 0, ByteOrder.BIG_ENDIAN) == cmd) {
/frameworks/base/core/java/com/android/internal/os/
H A DInstallerConnection.java48 public synchronized String transact(String cmd) { argument
54 if (!writeCommand(cmd)) {
61 if (!connect() || !writeCommand(cmd)) {
66 Slog.i(TAG, "send: '" + cmd + "'");
84 public int execute(String cmd) { argument
85 String res = transact(cmd);
203 final byte[] cmd = cmdString.getBytes();
204 final int len = cmd.length;
213 mOut.write(cmd, 0, len);
/frameworks/base/libs/common_time/
H A Ddiag_thread.cpp250 uint8_t cmd; local
251 if (read(data_fd_, &cmd, sizeof(cmd)) > 0) {
252 switch(cmd) {
/frameworks/base/media/java/android/media/
H A DAsyncPlayer.java52 private void startSound(Command cmd) { argument
59 player.setAudioStreamType(cmd.stream);
60 player.setDataSource(cmd.context, cmd.uri);
61 player.setLooping(cmd.looping);
68 long delay = SystemClock.uptimeMillis() - cmd.requestTime;
74 Log.w(mTag, "error loading sound for " + cmd.uri, e);
85 Command cmd = null;
89 cmd = mCmdQueue.removeFirst();
92 switch (cmd
195 enqueueLocked(Command cmd) argument
[all...]

Completed in 272 milliseconds

1234