Lines Matching defs:selector

336      * Returns the selected route if it matches the specified selector, otherwise
339 * @param selector The selector to match.
340 * @return The previously selected route if it matched the selector, otherwise the
348 public RouteInfo updateSelectedRoute(@NonNull MediaRouteSelector selector) {
349 if (selector == null) {
350 throw new IllegalArgumentException("selector must not be null");
355 Log.d(TAG, "updateSelectedRoute: " + selector);
358 if (!route.isDefault() && !route.matchesSelector(selector)) {
406 * Returns true if there is a route that matches the specified selector.
409 * selector regardless of whether they are enabled or disabled. If the
420 * @param selector The selector to match.
427 public boolean isRouteAvailable(@NonNull MediaRouteSelector selector, int flags) {
428 if (selector == null) {
429 throw new IllegalArgumentException("selector must not be null");
433 return sGlobal.isRouteAvailable(selector, flags);
437 * Registers a callback to discover routes that match the selector and to receive
444 * @param selector A route selector that indicates the kinds of routes that the
449 public void addCallback(MediaRouteSelector selector, Callback callback) {
450 addCallback(selector, callback, 0);
454 * Registers a callback to discover routes that match the selector and to receive
457 * The selector describes the kinds of routes that the application wants to
461 * in its selector when it adds a callback to the media router.
462 * The selector may include any number of categories.
464 * If the callback has already been registered, then the selector is added to
468 * that match the specified selector. Event filtering may be disabled by specifying
524 * // Remove the selector on stop to tell the media router that it no longer
538 * @param selector A route selector that indicates the kinds of routes that the
546 public void addCallback(@NonNull MediaRouteSelector selector, @NonNull Callback callback,
548 if (selector == null) {
549 throw new IllegalArgumentException("selector must not be null");
557 Log.d(TAG, "addCallback: selector=" + selector
574 if (!record.mSelector.contains(selector)) {
576 .addSelector(selector)
952 * described by a media route selector.
954 * @param selector The selector that specifies the capabilities to check.
956 * described in the media route selector.
958 public boolean matchesSelector(@NonNull MediaRouteSelector selector) {
959 if (selector == null) {
960 throw new IllegalArgumentException("selector must not be null");
963 return selector.matchesControlFilters(mControlFilters);
1770 public boolean isRouteAvailable(MediaRouteSelector selector, int flags) {
1771 if (selector.isEmpty()) {
1780 // Check whether any existing routes match the selector.
1788 if (route.matchesSelector(selector)) {
1826 MediaRouteSelector selector = discover ? builder.build() : MediaRouteSelector.EMPTY;
1830 && mDiscoveryRequest.getSelector().equals(selector)
1834 if (selector.isEmpty() && !activeScan) {
1842 mDiscoveryRequest = new MediaRouteDiscoveryRequest(selector, activeScan);