Lines Matching refs:intent

285         public boolean onControlRequest(Intent intent, ControlRequestCallback callback) {  in onControlRequest()  argument
286 Log.d(TAG, mRouteId + ": Received control request " + intent); in onControlRequest()
287 String action = intent.getAction(); in onControlRequest()
288 if (intent.hasCategory(MediaControlIntent.CATEGORY_REMOTE_PLAYBACK)) { in onControlRequest()
291 success = handlePlay(intent, callback); in onControlRequest()
293 success = handleEnqueue(intent, callback); in onControlRequest()
295 success = handleRemove(intent, callback); in onControlRequest()
297 success = handleSeek(intent, callback); in onControlRequest()
299 success = handleGetStatus(intent, callback); in onControlRequest()
301 success = handlePause(intent, callback); in onControlRequest()
303 success = handleResume(intent, callback); in onControlRequest()
305 success = handleStop(intent, callback); in onControlRequest()
307 success = handleStartSession(intent, callback); in onControlRequest()
309 success = handleGetSessionStatus(intent, callback); in onControlRequest()
311 success = handleEndSession(intent, callback); in onControlRequest()
318 && intent.hasCategory(CATEGORY_SAMPLE_ROUTE)) { in onControlRequest()
340 private boolean handlePlay(Intent intent, ControlRequestCallback callback) { in handlePlay() argument
341 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handlePlay()
349 return handleEnqueue(intent, callback); in handlePlay()
352 private boolean handleEnqueue(Intent intent, ControlRequestCallback callback) { in handleEnqueue() argument
353 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handleEnqueue()
359 Uri uri = intent.getData(); in handleEnqueue()
365 boolean enqueue = intent.getAction().equals(MediaControlIntent.ACTION_ENQUEUE); in handleEnqueue()
366 String mime = intent.getType(); in handleEnqueue()
367 long pos = intent.getLongExtra(MediaControlIntent.EXTRA_ITEM_CONTENT_POSITION, 0); in handleEnqueue()
368 Bundle metadata = intent.getBundleExtra(MediaControlIntent.EXTRA_ITEM_METADATA); in handleEnqueue()
369 Bundle headers = intent.getBundleExtra(MediaControlIntent.EXTRA_ITEM_HTTP_HEADERS); in handleEnqueue()
370 PendingIntent receiver = (PendingIntent)intent.getParcelableExtra( in handleEnqueue()
398 private boolean handleRemove(Intent intent, ControlRequestCallback callback) { in handleRemove() argument
399 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handleRemove()
404 String iid = intent.getStringExtra(MediaControlIntent.EXTRA_ITEM_ID); in handleRemove()
420 private boolean handleSeek(Intent intent, ControlRequestCallback callback) { in handleSeek() argument
421 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handleSeek()
426 String iid = intent.getStringExtra(MediaControlIntent.EXTRA_ITEM_ID); in handleSeek()
427 long pos = intent.getLongExtra(MediaControlIntent.EXTRA_ITEM_CONTENT_POSITION, 0); in handleSeek()
444 private boolean handleGetStatus(Intent intent, ControlRequestCallback callback) { in handleGetStatus() argument
445 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handleGetStatus()
446 String iid = intent.getStringExtra(MediaControlIntent.EXTRA_ITEM_ID); in handleGetStatus()
463 private boolean handlePause(Intent intent, ControlRequestCallback callback) { in handlePause() argument
464 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handlePause()
478 private boolean handleResume(Intent intent, ControlRequestCallback callback) { in handleResume() argument
479 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handleResume()
493 private boolean handleStop(Intent intent, ControlRequestCallback callback) { in handleStop() argument
494 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handleStop()
508 private boolean handleStartSession(Intent intent, ControlRequestCallback callback) { in handleStartSession() argument
518 mSessionReceiver = (PendingIntent)intent.getParcelableExtra( in handleStartSession()
528 private boolean handleGetSessionStatus(Intent intent, ControlRequestCallback callback) { in handleGetSessionStatus() argument
529 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handleGetSessionStatus()
545 private boolean handleEndSession(Intent intent, ControlRequestCallback callback) { in handleEndSession() argument
546 String sid = intent.getStringExtra(MediaControlIntent.EXTRA_SESSION_ID); in handleEndSession()
572 Intent intent = new Intent(); in handleStatusChange() local
573 intent.putExtra(MediaControlIntent.EXTRA_SESSION_ID, item.getSessionId()); in handleStatusChange()
574 intent.putExtra(MediaControlIntent.EXTRA_ITEM_ID, item.getItemId()); in handleStatusChange()
575 intent.putExtra(MediaControlIntent.EXTRA_ITEM_STATUS, in handleStatusChange()
578 receiver.send(getContext(), 0, intent); in handleStatusChange() local
589 Intent intent = new Intent(); in handleSessionStatusChange() local
590 intent.putExtra(MediaControlIntent.EXTRA_SESSION_ID, sid); in handleSessionStatusChange()
591 intent.putExtra(MediaControlIntent.EXTRA_SESSION_STATUS, in handleSessionStatusChange()
594 mSessionReceiver.send(getContext(), 0, intent); in handleSessionStatusChange() local