Lines Matching defs:selector

41  * router.addCallback(selector, callback, MediaRouter.CALLBACK_FLAG_REQUEST_DISCOVERY);
51 * An empty media route selector that will not match any routes.
61 * Gets the list of {@link MediaControlIntent media control categories} in the selector.
80 * Returns true if the selector contains the specified category.
99 * Returns true if the selector matches at least one of the specified control filters.
126 * Returns true if this selector contains all of the capabilities described
127 * by the specified selector.
129 * @param selector The selector to be examined.
130 * @return True if this selector contains all of the capabilities described
131 * by the specified selector.
133 public boolean contains(MediaRouteSelector selector) {
134 if (selector != null) {
136 selector.ensureControlCategories();
137 return mControlCategories.containsAll(selector.mControlCategories);
143 * Returns true if the selector does not specify any capabilities.
151 * Returns true if the selector has all of the required fields.
214 * Creates an empty media route selector builder.
220 * Creates a media route selector descriptor builder whose initial contents are
221 * copied from an existing selector.
223 public Builder(MediaRouteSelector selector) {
224 if (selector == null) {
225 throw new IllegalArgumentException("selector must not be null");
228 selector.ensureControlCategories();
229 if (!selector.mControlCategories.isEmpty()) {
230 mControlCategories = new ArrayList<String>(selector.mControlCategories);
276 * Adds the contents of an existing media route selector to the builder.
278 * @param selector The media route selector whose contents are to be added.
281 public Builder addSelector(MediaRouteSelector selector) {
282 if (selector == null) {
283 throw new IllegalArgumentException("selector must not be null");
286 addControlCategories(selector.getControlCategories());
291 * Builds the {@link MediaRouteSelector media route selector}.