Lines Matching refs:sid

341             String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID);  in handlePlay()  local
342 if (sid != null && !sid.equals(mSessionManager.getSessionId())) { in handlePlay()
343 Log.d(TAG, "handlePlay fails because of bad sid="+sid); in handlePlay()
353 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handleEnqueue() local
354 if (sid != null && !sid.equals(mSessionManager.getSessionId())) { in handleEnqueue()
355 Log.d(TAG, "handleEnqueue fails because of bad sid="+sid); in handleEnqueue()
376 + ", sid=" + sid in handleEnqueue()
399 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handleRemove() local
400 if (sid == null || !sid.equals(mSessionManager.getSessionId())) { in handleRemove()
414 ", sid=" + sid + ", iid=" + iid, null); in handleRemove()
421 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handleSeek() local
422 if (sid == null || !sid.equals(mSessionManager.getSessionId())) { in handleSeek()
438 ", sid=" + sid + ", iid=" + iid + ", pos=" + pos, null); in handleSeek()
445 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handleGetStatus() local
447 Log.d(TAG, mRouteId + ": Received getStatus request, sid=" + sid + ", iid=" + iid); in handleGetStatus()
457 ", sid=" + sid + ", iid=" + iid, null); in handleGetStatus()
464 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handlePause() local
465 boolean success = (sid != null) && sid.equals(mSessionManager.getSessionId()); in handlePause()
470 handleSessionStatusChange(sid); in handlePause()
472 callback.onError("Failed to pause, sid=" + sid, null); in handlePause()
479 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handleResume() local
480 boolean success = (sid != null) && sid.equals(mSessionManager.getSessionId()); in handleResume()
485 handleSessionStatusChange(sid); in handleResume()
487 callback.onError("Failed to resume, sid=" + sid, null); in handleResume()
494 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handleStop() local
495 boolean success = (sid != null) && sid.equals(mSessionManager.getSessionId()); in handleStop()
500 handleSessionStatusChange(sid); in handleStop()
502 callback.onError("Failed to stop, sid=" + sid, null); in handleStop()
509 String sid = mSessionManager.startSession(); in handleStartSession() local
510 Log.d(TAG, "StartSession returns sessionId "+sid); in handleStartSession()
512 if (sid != null) { in handleStartSession()
514 result.putString(MediaControlIntent.EXTRA_SESSION_ID, sid); in handleStartSession()
516 mSessionManager.getSessionStatus(sid).asBundle()); in handleStartSession()
520 handleSessionStatusChange(sid); in handleStartSession()
525 return (sid != null); in handleStartSession()
529 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handleGetSessionStatus() local
531 MediaSessionStatus sessionStatus = mSessionManager.getSessionStatus(sid); in handleGetSessionStatus()
536 mSessionManager.getSessionStatus(sid).asBundle()); in handleGetSessionStatus()
539 callback.onError("Failed to get session status, sid=" + sid, null); in handleGetSessionStatus()
546 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handleEndSession() local
547 boolean success = (sid != null) && sid.equals(mSessionManager.getSessionId()) in handleEndSession()
556 handleSessionStatusChange(sid); in handleEndSession()
559 callback.onError("Failed to end session, sid=" + sid, null); in handleEndSession()
587 private void handleSessionStatusChange(String sid) { in handleSessionStatusChange() argument
590 intent.putExtra(MediaControlIntent.EXTRA_SESSION_ID, sid); in handleSessionStatusChange()
592 mSessionManager.getSessionStatus(sid).asBundle()); in handleSessionStatusChange()