Tabnine Logo
MediaRouter$RouteInfo.getId
Code IndexAdd Tabnine to your IDE (free)

How to use
getId
method
in
android.support.v7.media.MediaRouter$RouteInfo

Best Java code snippets using android.support.v7.media.MediaRouter$RouteInfo.getId (Showing top 6 results out of 315)

origin: square/assertj-android

public MediaRouterRouteInfoAssert hasId(String id) {
 isNotNull();
 String actualId = actual.getId();
 assertThat(actualId) //
   .overridingErrorMessage("Expected id <%s> but was <%s>.", id, actualId) //
   .isEqualTo(id);
 return this;
}
origin: derry/delion

@Override
protected void onRouteUnselectedEvent(MediaRouter router, RouteInfo route) {
  Log.d(TAG, "Unselected route %s", route);
  // Preserve our best guess as to the final position; this is needed to reset the
  // local position while switching back to local playback.
  mPositionExtrapolator.onPaused();
  if (getCurrentRoute() != null && route.getId().equals(getCurrentRoute().getId())) {
    clearStreamState();
  }
}
origin: derry/delion

  @Override
  public void onRouteUnselected(MediaRouter router, RouteInfo route) {
    onRouteUnselectedEvent(router, route);
    if (getCurrentRoute() != null && !getCurrentRoute().isDefault()
        && route.getId().equals(getCurrentRoute().getId())) {
      RecordCastAction.castEndedTimeRemaining(getDuration(),
          getDuration() - getPosition());
      release();
    }
  }
}
origin: derry/delion

private void sendControlIntent(final Intent intent, final ResultBundleHandler bundleHandler) {
  Log.d(TAG, "Sending intent to %s %s", getCurrentRoute().getName(),
      getCurrentRoute().getId());
  logIntent("sendControlIntent ", intent);
  if (getCurrentRoute().isDefault()) {
    Log.d(TAG, "Route is default, not sending");
    return;
  }
  getCurrentRoute().sendControlRequest(intent, new MediaRouter.ControlRequestCallback() {
    @Override
    public void onResult(Bundle data) {
      if (data != null && bundleHandler != null) bundleHandler.onResult(data);
    }
    @Override
    public void onError(String message, Bundle data) {
      logControlRequestError(intent, message, data);
      int errorCode = 0;
      if (data != null) {
        errorCode = data.getInt(CastMediaControlIntent.EXTRA_ERROR_CODE);
      }
      sendErrorToListeners(errorCode);
      if (bundleHandler != null) bundleHandler.onError(message, data);
    }
  });
}
origin: derry/delion

/**
 * @param route The route information provided by Android.
 * @return A new MediaSink instance corresponding to the specified {@link RouteInfo}.
 */
public static MediaSink fromRoute(MediaRouter.RouteInfo route) {
  return new MediaSink(
    route.getId(),
    route.getName(),
    CastDevice.getFromBundle(route.getExtras()));
}
origin: derry/delion

@RemovableInRelease
private void logRoute(String message, RouteInfo route) {
  if (route != null) {
    Log.d(TAG, message + " " + route.getName() + " " + route.getId());
  }
}
android.support.v7.mediaMediaRouter$RouteInfogetId

Popular methods of MediaRouter$RouteInfo

  • getName
  • getDescription
  • getPlaybackType
  • getVolumeHandling
  • isConnecting
  • isSelected
  • select
  • sendControlRequest
  • supportsControlCategory
  • supportsControlRequest
  • getExtras
  • getPlaybackStream
  • getExtras,
  • getPlaybackStream,
  • getPresentationDisplay,
  • getProvider,
  • getVolume,
  • getVolumeMax,
  • isDefault,
  • isEnabled,
  • matchesSelector

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • startActivity (Activity)
  • setContentView (Activity)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now