Lines Matching refs:category
82 * Returns true if the selector contains the specified category.
84 * @param category The category to check.
85 * @return True if the category is present.
87 public boolean hasControlCategory(String category) {
88 if (category != null) {
92 if (mControlCategories.get(i).equals(category)) {
237 * Adds a {@link MediaControlIntent media control category} to the builder.
239 * @param category The category to add to the set of desired capabilities, such as
244 public Builder addControlCategory(@NonNull String category) {
245 if (category == null) {
246 throw new IllegalArgumentException("category must not be null");
252 if (!mControlCategories.contains(category)) {
253 mControlCategories.add(category);
272 for (String category : categories) {
273 addControlCategory(category);