diff options
author | Jason parks <jparks@google.com> | 2011-03-31 13:15:18 -0500 |
---|---|---|
committer | Jason parks <jparks@google.com> | 2011-04-01 14:41:18 -0500 |
commit | ab8f48c2ee524f67e5c3cab5846119e6c8a645b5 (patch) | |
tree | 1ab0692723a82e70a81d733303791b8bb3dd883f /nfc-extras | |
parent | a482d83ccf35ccd6cc29a9e1ace3d77b5f28d013 (diff) | |
download | frameworks_base-ab8f48c2ee524f67e5c3cab5846119e6c8a645b5.zip frameworks_base-ab8f48c2ee524f67e5c3cab5846119e6c8a645b5.tar.gz frameworks_base-ab8f48c2ee524f67e5c3cab5846119e6c8a645b5.tar.bz2 |
Implement teardown script.
Change-Id: I1a3feda3b1007b08fcaa24c3f8dd21abf1efd885
Diffstat (limited to 'nfc-extras')
-rw-r--r-- | nfc-extras/java/com/android/nfc_extras/NfcAdapterExtras.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/nfc-extras/java/com/android/nfc_extras/NfcAdapterExtras.java b/nfc-extras/java/com/android/nfc_extras/NfcAdapterExtras.java index ed1af49..9bd8f36 100644 --- a/nfc-extras/java/com/android/nfc_extras/NfcAdapterExtras.java +++ b/nfc-extras/java/com/android/nfc_extras/NfcAdapterExtras.java @@ -18,6 +18,7 @@ package com.android.nfc_extras; import android.annotation.SdkConstant; import android.annotation.SdkConstant.SdkConstantType; +import android.nfc.ApduList; import android.nfc.INfcAdapterExtras; import android.nfc.NfcAdapter; import android.os.RemoteException; @@ -184,4 +185,20 @@ public final class NfcAdapterExtras { public NfcExecutionEnvironment getEmbeddedExecutionEnvironment() { return sEmbeddedEe; } + + public void registerTearDownApdus(String packageName, ApduList apdus) { + try { + sService.registerTearDownApdus(packageName, apdus); + } catch (RemoteException e) { + Log.e(TAG, "", e); + } + } + + public void unregisterTearDownApdus(String packageName) { + try { + sService.unregisterTearDownApdus(packageName); + } catch (RemoteException e) { + Log.e(TAG, "", e); + } + } } |