Lines Matching refs:cmd
71 public CreationAndCompletionThread(Command cmd) {
73 mCmd = cmd;
132 private void startSound(Command cmd) {
149 mCompletionThread = new CreationAndCompletionThread(cmd);
157 long delay = SystemClock.uptimeMillis() - cmd.requestTime;
163 Log.w(mTag, "error loading sound for " + cmd.uri, e);
174 Command cmd = null;
178 cmd = mCmdQueue.removeFirst();
181 switch (cmd.code) {
184 startSound(cmd);
189 long delay = SystemClock.uptimeMillis() - cmd.requestTime;
299 Command cmd = new Command();
300 cmd.requestTime = SystemClock.uptimeMillis();
301 cmd.code = PLAY;
302 cmd.context = context;
303 cmd.uri = uri;
304 cmd.looping = looping;
305 cmd.attributes = new AudioAttributes.Builder().setInternalLegacyStreamType(stream).build();
307 enqueueLocked(cmd);
326 Command cmd = new Command();
327 cmd.requestTime = SystemClock.uptimeMillis();
328 cmd.code = PLAY;
329 cmd.context = context;
330 cmd.uri = uri;
331 cmd.looping = looping;
332 cmd.attributes = attributes;
334 enqueueLocked(cmd);
348 Command cmd = new Command();
349 cmd.requestTime = SystemClock.uptimeMillis();
350 cmd.code = STOP;
351 enqueueLocked(cmd);
357 private void enqueueLocked(Command cmd) {
358 mCmdQueue.add(cmd);