Lines Matching defs:category

55      * card emulation service for a certain category. This will
59 * {@link #EXTRA_SERVICE_COMPONENT}, for the category
67 * The category extra for {@link #ACTION_CHANGE_DEFAULT}.
71 public static final String EXTRA_CATEGORY = "category";
96 * category.
101 * that the default service has registered in this category,
111 * or {@link OffHostApduService}, whenever an Application ID (AID) of this category
185 * the default service to handle a card emulation category.
190 * selection modes a default can't be set at the category level. For categories where
197 * @param category The category
198 * @return whether service is currently the default service for the category.
202 public boolean isDefaultServiceForCategory(ComponentName service, String category) {
204 return sService.isDefaultServiceForCategory(UserHandle.myUserId(), service, category);
214 category);
254 * specified category to be handled by a service that is preferred
260 * @param category The category, e.g. {@link #CATEGORY_PAYMENT}
261 * @return whether AIDs in the category can be handled by a service
264 public boolean categoryAllowsForegroundPreference(String category) {
265 if (CATEGORY_PAYMENT.equals(category)) {
280 * Returns the service selection mode for the passed in category.
283 * service for this category, which will be preferred.
285 * every time what service he would like to use in this category.
288 * @param category The category, for example {@link #CATEGORY_PAYMENT}
289 * @return the selection mode for the passed in category
291 public int getSelectionModeForCategory(String category) {
292 if (CATEGORY_PAYMENT.equals(category)) {
306 * Registers a list of AIDs for a specific category for the
309 * <p>If a list of AIDs for that category was previously
321 * @param category The category of AIDs to be registered
325 public boolean registerAidsForService(ComponentName service, String category,
327 AidGroup aidGroup = new AidGroup(aids, category);
349 * category for a service.
357 * @param category The category for which the AIDs were registered,
359 * @return The list of AIDs registered for this category, or null if it couldn't be found.
361 public List<String> getAidsForService(ComponentName service, String category) {
364 category);
374 category);
384 * Removes a previously registered list of AIDs for the specified category for the
391 * this method, and a statically registered AID group for the same category
395 * @param category The category of the AIDs to be removed, e.g. {@link #CATEGORY_PAYMENT}
398 public boolean removeAidsForService(ComponentName service, String category) {
400 return sService.removeAidGroupForService(UserHandle.myUserId(), service, category);
409 return sService.removeAidGroupForService(UserHandle.myUserId(), service, category);
428 * category, but the user has indicated that foreground apps are not allowed
431 * category that are also handled by the default payment service, and the
449 throw new NullPointerException("activity or service or category is null");
538 public boolean setDefaultServiceForCategory(ComponentName service, String category) {
540 return sService.setDefaultServiceForCategory(UserHandle.myUserId(), service, category);
550 category);
583 public List<ApduServiceInfo> getServices(String category) {
585 return sService.getServices(UserHandle.myUserId(), category);
594 return sService.getServices(UserHandle.myUserId(), category);