summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2012-03-29 13:25:52 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-03-29 13:25:52 -0700
commit788afc415ce874e47a696e572565761c8ec0b7f5 (patch)
tree4cd33215cda3e6b959ee484ecd044f4290d93762 /src/com/android
parent2b8c4b2f4bc578f76b6dc0da33ef3aab70f3ba64 (diff)
parent0ec8bb7e59bad813e1423bff0c756fafe85b011c (diff)
downloadpackages_apps_nfc-788afc415ce874e47a696e572565761c8ec0b7f5.zip
packages_apps_nfc-788afc415ce874e47a696e572565761c8ec0b7f5.tar.gz
packages_apps_nfc-788afc415ce874e47a696e572565761c8ec0b7f5.tar.bz2
Merge "Get rid of getLastError()."
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/nfc/DeviceHost.java2
-rwxr-xr-xsrc/com/android/nfc/NfcService.java5
-rwxr-xr-xsrc/com/android/nfc/nxp/NativeNfcManager.java4
3 files changed, 2 insertions, 9 deletions
diff --git a/src/com/android/nfc/DeviceHost.java b/src/com/android/nfc/DeviceHost.java
index 8081f3c..82c711c 100644
--- a/src/com/android/nfc/DeviceHost.java
+++ b/src/com/android/nfc/DeviceHost.java
@@ -185,8 +185,6 @@ public interface DeviceHost {
public void doDeselectSecureElement();
- public int doGetLastError();
-
public LlcpConnectionlessSocket createLlcpConnectionlessSocket(int nSap, String sn)
throws LlcpException;
diff --git a/src/com/android/nfc/NfcService.java b/src/com/android/nfc/NfcService.java
index 10cd1ad..660126c 100755
--- a/src/com/android/nfc/NfcService.java
+++ b/src/com/android/nfc/NfcService.java
@@ -1055,11 +1055,6 @@ public class NfcService extends Application implements DeviceHostListener {
}
@Override
- public int getLastError(int nativeHandle) throws RemoteException {
- return(mDeviceHost.doGetLastError());
- }
-
- @Override
public boolean ndefIsWritable(int nativeHandle) throws RemoteException {
throw new UnsupportedOperationException();
}
diff --git a/src/com/android/nfc/nxp/NativeNfcManager.java b/src/com/android/nfc/nxp/NativeNfcManager.java
index 2573ff6..25a6b87 100755
--- a/src/com/android/nfc/nxp/NativeNfcManager.java
+++ b/src/com/android/nfc/nxp/NativeNfcManager.java
@@ -66,6 +66,8 @@ public class NativeNfcManager implements DeviceHost {
private native boolean doDownload();
+ public native int doGetLastError();
+
@Override
public void checkFirmware() {
// Check that the NFC controller firmware is up to date. This
@@ -131,8 +133,6 @@ public class NativeNfcManager implements DeviceHost {
@Override
public native void doDeselectSecureElement();
- @Override
- public native int doGetLastError();
private native NativeLlcpConnectionlessSocket doCreateLlcpConnectionlessSocket(int nSap,
String sn);