Home | History | Annotate | Download | only in cardemulation

Lines Matching refs:service

76     // Variables below are for a non-payment service,
82 // Variables below are for a payment service,
90 // mActiveService denotes the service interface
92 // comes in that may be resolved to a different service.
109 public void onPreferredPaymentServiceChanged(ComponentName service) {
111 if (service != null) {
112 bindPaymentServiceLocked(ActivityManager.getCurrentUser(), service);
119 public void onPreferredForegroundServiceChanged(ComponentName service) {
121 if (service != null) {
122 bindServiceIfNeededLocked(service);
211 Log.d(TAG, "Binding to existing service");
215 // Waiting for service to be bound
216 Log.d(TAG, "Waiting for new service.");
236 // Waiting for service to be bound
244 // No SELECT AID and no active service.
245 Log.d(TAG, "Service no longer bound, dropping APDU");
270 // Don't bother telling, we're not bound to any service yet
286 Messenger bindServiceIfNeededLocked(ComponentName service) {
287 if (mPaymentServiceName != null && mPaymentServiceName.equals(service)) {
288 Log.d(TAG, "Service already bound as payment service.");
290 } else if (mServiceName != null && mServiceName.equals(service)) {
291 Log.d(TAG, "Service already bound as regular service.");
294 Log.d(TAG, "Binding to service " + service);
297 aidIntent.setComponent(service);
302 Log.e(TAG, "Could not bind service.");
308 void sendDataToServiceLocked(Messenger service, byte[] data) {
309 if (service != mActiveService) {
311 mActiveService = service;
312 if (service.equals(mPaymentService)) {
326 Log.e(TAG, "Remote service has died, dropping APDU");
350 void bindPaymentServiceLocked(int userId, ComponentName service) {
354 intent.setComponent(service);
355 mLastBoundPaymentServiceName = service;
360 Log.e(TAG, "Could not bind (persistent) payment service.");
366 Log.d(TAG, "Unbinding from service " + mServiceName);
374 void launchTapAgain(ApduServiceInfo service, String category) {
377 dialogIntent.putExtra(TapAgainDialog.EXTRA_APDU_SERVICE, service);
420 public void onServiceConnected(ComponentName name, IBinder service) {
422 /* Preferred Payment Service has been changed. */
427 mPaymentService = new Messenger(service);
443 public void onServiceConnected(ComponentName name, IBinder service) {
445 /* Service is already deactivated, don't bind */
449 mService = new Messenger(service);
451 Log.d(TAG, "Service bound");
464 Log.d(TAG, "Service unbound");
476 Log.d(TAG, "Dropping service response message; service no longer active.");
479 Log.d(TAG, "Dropping service response message; service no longer bound.");