Lines Matching defs:cmd
52 private void startSound(Command cmd) {
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.code) {
95 startSound(cmd);
100 long delay = SystemClock.uptimeMillis() - cmd.requestTime;
164 Command cmd = new Command();
165 cmd.requestTime = SystemClock.uptimeMillis();
166 cmd.code = PLAY;
167 cmd.context = context;
168 cmd.uri = uri;
169 cmd.looping = looping;
170 cmd.stream = stream;
172 enqueueLocked(cmd);
186 Command cmd = new Command();
187 cmd.requestTime = SystemClock.uptimeMillis();
188 cmd.code = STOP;
189 enqueueLocked(cmd);
195 private void enqueueLocked(Command cmd) {
196 mCmdQueue.add(cmd);