diff options
author | Martijn Coenen <maco@google.com> | 2012-08-07 13:05:31 -0700 |
---|---|---|
committer | Martijn Coenen <maco@google.com> | 2012-08-07 18:02:45 -0700 |
commit | 8d6ea79dad7c25f592722faf47709e1b918d4c21 (patch) | |
tree | 56fad763d538efc8608d969a4a0649b4c0aa98ba /nci/src/com/android/nfc/dhimpl | |
parent | 2d57efb70a92553623370786bfede151603d3305 (diff) | |
download | packages_apps_nfc-8d6ea79dad7c25f592722faf47709e1b918d4c21.zip packages_apps_nfc-8d6ea79dad7c25f592722faf47709e1b918d4c21.tar.gz packages_apps_nfc-8d6ea79dad7c25f592722faf47709e1b918d4c21.tar.bz2 |
Allow different default MIU / window sizes.
The new NCI stack can deal with larger MIU and
rw sizes, which give us better p2p throughput.
Change-Id: I6600f28ddafe142b64ead2df896823bb8d242fc5
Diffstat (limited to 'nci/src/com/android/nfc/dhimpl')
-rwxr-xr-x | nci/src/com/android/nfc/dhimpl/NativeNfcManager.java | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/nci/src/com/android/nfc/dhimpl/NativeNfcManager.java b/nci/src/com/android/nfc/dhimpl/NativeNfcManager.java index f732cac..8e53ad1 100755 --- a/nci/src/com/android/nfc/dhimpl/NativeNfcManager.java +++ b/nci/src/com/android/nfc/dhimpl/NativeNfcManager.java @@ -28,8 +28,6 @@ import android.nfc.tech.Ndef; import android.nfc.tech.TagTechnology; import android.util.Log; -import java.io.File; - /** * Native interface to the NFC Manager functions */ @@ -37,6 +35,9 @@ public class NativeNfcManager implements DeviceHost { private static final String TAG = "NativeNfcManager"; static final String PREF = "NciDeviceHost"; + static final int DEFAULT_LLCP_MIU = 1980; + static final int DEFAULT_LLCP_RWSIZE = 2; + static { System.loadLibrary("nfc_nci_jni"); } @@ -262,20 +263,32 @@ public class NativeNfcManager implements DeviceHost { public void setP2pTargetModes(int modes) { doSetP2pTargetModes(modes); } - + @Override public boolean getExtendedLengthApdusSupported() { // TODO check BCM support return false; } + @Override public boolean enablePN544Quirks() { return false; } + @Override public byte[][] getWipeApdus() { return null; } + @Override + public int getDefaultLlcpMiu() { + return DEFAULT_LLCP_MIU; + } + + @Override + public int getDefaultLlcpRwSize() { + return DEFAULT_LLCP_RWSIZE; + } + private native String doDump(); @Override public String dump() { @@ -336,4 +349,5 @@ public class NativeNfcManager implements DeviceHost { private void notifySeMifareAccess(byte[] block) { mListener.onSeMifareAccess(block); } + } |