Home | History | Annotate | Download | only in util

Lines Matching refs:cmd

75         public CreationAndCompletionThread(final Command cmd) {
77 mCmd = cmd;
117 private void startSound(final Command cmd) {
136 mCompletionThread = new CreationAndCompletionThread(cmd);
144 final long delay = SystemClock.elapsedRealtime() - cmd.requestTime;
149 LogUtil.w(mTag, "error loading sound for " + cmd.uri, e);
153 private void stopSound(final Command cmd) {
157 final long delay = SystemClock.elapsedRealtime() - cmd.requestTime;
164 if (cmd.releaseFocus && mAudioManager != null) {
181 Command cmd = null;
187 cmd = mCmdQueue.removeFirst();
190 switch (cmd.code) {
195 startSound(cmd);
201 stopSound(cmd);
279 final Command cmd = new Command();
280 cmd.requestTime = SystemClock.elapsedRealtime();
281 cmd.code = PLAY;
282 cmd.uri = uri;
283 cmd.looping = looping;
284 cmd.stream = stream;
285 cmd.volume = volume;
287 enqueueLocked(cmd);
307 final Command cmd = new Command();
308 cmd.requestTime = SystemClock.elapsedRealtime();
309 cmd.code = STOP;
310 cmd.releaseFocus = releaseAudioFocus;
311 enqueueLocked(cmd);
317 private void enqueueLocked(final Command cmd) {
318 mCmdQueue.add(cmd);