Home | History | Annotate | Download | only in cardemulation

Lines Matching refs:service

55      * card emulation service for a certain category. This will
57 * replace the current default service with the service
74 * The service {@link ComponentName} object passed in as an
95 * <p>In this mode, the user has set a default service for this
101 * that the default service has registered in this category,
102 * that service will automatically be bound to to handle
112 * is selected, the user is asked which service he wants to use to handle
113 * the transaction, even if there is only one matching service.
121 * or {@link OffHostApduService}, the user will only be asked to select a service
123 * services. If there is only one service that has registered for the AID,
124 * that service will be invoked directly.
134 private CardEmulation(Context context, INfcCardEmulation service) {
136 sService = service;
171 // Get card emu service
172 INfcCardEmulation service = adapter.getCardEmulationService();
173 if (service == null) {
177 manager = new CardEmulation(context, service);
184 * Allows an application to query whether a service is currently
185 * the default service to handle a card emulation category.
193 * {@link #isDefaultServiceForAid(ComponentName, String)} to determine whether a service
196 * @param service The ComponentName of the service
198 * @return whether service is currently the default service for the category.
202 public boolean isDefaultServiceForCategory(ComponentName service, String category) {
204 return sService.isDefaultServiceForCategory(mContext.getUserId(), service, category);
213 return sService.isDefaultServiceForCategory(mContext.getUserId(), service,
224 * Allows an application to query whether a service is currently
227 * @param service The ComponentName of the service
229 * @return whether the service is the default handler for the specified AID
233 public boolean isDefaultServiceForAid(ComponentName service, String aid) {
235 return sService.isDefaultServiceForAid(mContext.getUserId(), service, aid);
244 return sService.isDefaultServiceForAid(mContext.getUserId(), service, aid);
254 * specified category to be handled by a service that is preferred
261 * @return whether AIDs in the category can be handled by a service
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.
287 * to pick a service if there is a conflict.
307 * specified service.
310 * registered for this service (either statically
314 * <p>Note that you can only register AIDs for a service that
317 * package as the service itself, though UIDs can also
320 * @param service The component name of the service
325 public boolean registerAidsForService(ComponentName service, String category,
329 return sService.registerAidGroupForService(mContext.getUserId(), service, aidGroup);
338 return sService.registerAidGroupForService(mContext.getUserId(), service,
349 * category for a service.
356 * @param service The component name of the service
361 public List<String> getAidsForService(ComponentName service, String category) {
363 AidGroup group = sService.getAidGroupForService(mContext.getUserId(), service,
373 AidGroup group = sService.getAidGroupForService(mContext.getUserId(), service,
385 * service provided.
394 * @param service The component name of the service
398 public boolean removeAidsForService(ComponentName service, String category) {
400 service, category);
409 return sService.removeAidGroupForService(mContext.getUserId(), service, category);
418 * Allows a foreground application to specify which card emulation service
427 * <li> If the service registers one or more AIDs in the {@link #CATEGORY_PAYMENT}
429 * to override the default payment service.
430 * <li> If the service registers one or more AIDs in the {@link #CATEGORY_OTHER}
431 * category that are also handled by the default payment service, and the
433 * default payment service.
437 * whether foreground apps can override the default payment service.
442 * @param activity The activity which prefers this service to be invoked
443 * @param service The service to be preferred while this activity is in the foreground
446 public boolean setPreferredService(Activity activity, ComponentName service) {
448 if (activity == null || service == null) {
449 throw new NullPointerException("activity or service or category is null");
455 return sService.setPreferredService(service);
464 return sService.setPreferredService(service);
473 * Unsets the preferred service for the specified Activity.
479 * @param activity The activity which the service was registered for
538 public boolean setDefaultServiceForCategory(ComponentName service, String category) {
540 return sService.setDefaultServiceForCategory(mContext.getUserId(), service, category);
549 return sService.setDefaultServiceForCategory(mContext.getUserId(), service,
561 public boolean setDefaultForNextTap(ComponentName service) {
563 return sService.setDefaultForNextTap(mContext.getUserId(), service);
572 return sService.setDefaultForNextTap(mContext.getUserId(), service);