Home | History | Annotate | Download | only in cardemulation

Lines Matching refs:service

146     public boolean isDefaultServiceForAid(int userId, ComponentName service, String aid) {
150 serviceFound = mServiceCache.hasService(userId, service);
153 // If we don't know about this service yet, it may have just been enabled
156 // calls to our APIs referencing that service to fail.
157 // Hence, update the cache in case we don't know about the service.
158 if (DBG) Log.d(TAG, "Didn't find passed in service, invalidating cache.");
167 return service.equals(resolveInfo.defaultService.getComponent());
169 return service.equals(resolveInfo.services.get(0).getComponent());
171 // More than one service, not the default
176 public boolean setDefaultServiceForCategory(int userId, ComponentName service,
186 if (service == null || mServiceCache.hasService(userId, service)) {
189 service != null ? service.flattenToString() : null, userId);
191 Log.e(TAG, "Could not find default service to make default: " + service);
198 ComponentName service) {
201 // If we don't know about this service yet, it may have just been enabled
204 // calls to our APIs referencing that service to fail.
205 // Hence, update the cache in case we don't know about the service.
206 serviceFound = mServiceCache.hasService(userId, service);
209 if (DBG) Log.d(TAG, "Didn't find passed in service, invalidating cache.");
214 return (defaultService != null && defaultService.equals(service));
229 ComponentName service = ComponentName.unflattenFromString(name);
230 if (!validateInstalled || service == null) {
231 return service;
233 return mServiceCache.hasService(userId, service) ? service : null;
245 public boolean setDefaultForNextTap(int userId, ComponentName service) {
247 if (service != null) {
248 mNextTapComponent = service;
264 if (DBG) Log.d(TAG, "Could not resolve AID " + aid + " to any service.");
278 // This AID has been registered as a payment AID by at least one service.
287 if (DBG) Log.d(TAG, "resolveAidLocked: resolved single service " +
295 // So..since we resolved to only one service, and this AID
296 // is a payment AID, we know that this service is the only
297 // service that has registered for this AID and in fact claimed
326 // Allow this service to handle, but don't set as default
337 for (ApduServiceInfo service : resolvedServices) {
338 if (service.getComponent().equals(defaultComponent)) {
340 + service.getComponent());
341 resolveInfo.defaultService = service;
353 for (ApduServiceInfo service : resolvedServices) {
354 if (service.getComponent().equals(defaultComponent)) {
356 "routing to (default) " + service.getComponent());
357 resolveInfo.defaultService = service;
379 for (ApduServiceInfo service : services) {
380 if (DBG) Log.d(TAG, "generateAidTree component: " + service.getComponent());
381 for (String aid : service.getAids()) {
386 aidServices.add(service);
390 aidServices.add(service);
401 for (ApduServiceInfo service : services) {
402 ArrayList<AidGroup> aidGroups = service.getAidGroups();
455 // There is a default service set, route to that service
458 // Only one service, but not the default, must route to host
490 for (ApduServiceInfo service : services) {
491 if (service.hasCategory(CardEmulation.CATEGORY_PAYMENT)) {
493 lastFoundPaymentService = service.getComponent();
505 if (DBG) Log.d(TAG, "Default removed, making remaining service default.");
521 for (ApduServiceInfo service : services) {
522 if (service.hasCategory(CardEmulation.CATEGORY_PAYMENT)) {
524 lastFoundPaymentService = service.getComponent();
528 // More than one service left, leave default unset
529 if (DBG) Log.d(TAG, "No default set, more than one service left.");
531 // Make single found payment service the default
532 if (DBG) Log.d(TAG, "No default set, making single service default.");
537 if (DBG) Log.d(TAG, "No default set, last payment service removed.");
549 Log.e(TAG, "Default payment service unexpectedly removed.");
552 if (DBG) Log.d(TAG, "Default payment service had payment category removed");
556 if (DBG) Log.d(TAG, "Default payment service still ok.");
559 // A payment service may have been removed, leaving only one;
609 for (ApduServiceInfo service : entry.getValue().services) {
611 if (service.getComponent().equals(defaultComponent)) {
614 sb.append(service.getComponent() +
615 " (Description: " + service.getDescription() + ")\n");