summaryrefslogtreecommitdiffstats
path: root/src/com/android/nfc/ndefpush
Commit message (Collapse)AuthorAgeFilesLines
* Fix race conditions in NdefPushServer.Martijn Coenen2012-08-031-19/+48
| | | | | | | | Exposed by the new stack; need to take locks around mRunning and mLlcpServerSocket. Bug: 6922853 Change-Id: Ic8e3b90d1a1c9d77b27308e3f18bf8871843206f
* NfcService: some trivial cleanups.mike wakerly2011-12-121-2/+2
| | | | | | | | | | | | I noticed these while looking at something else. - Removes unused imports; unthrown exceptions on some non-visible methods; dead code. - Tags a few stray interface implementations that lacked @Override. - Removes unnecessary semicolons in a few place. - Fixes one instance of ArrayList being used as a raw type. Change-Id: I860921a3a4d003fd6d6fc1381c0813599f3caf26
* Decouple P2P link management from P2P UX management.Nick Pelly2011-08-101-6/+0
| | | | | | | | | | | | | | | | | | | The goal is to make it easier to track the state of the P2P transfer, and to make it easier to fine-tune UX (sound, vibration, animation) for P2P transfer. NdefP2pManager -> P2pLinkManager It now only handles LLCP and NDEF logic (and no UX). It has a state machine to track the state of the LLCP link, send and receive. It does debouncing on the LLCP link. Events are surfaced to P2pEventManager through the P2pEventListener interface. P2pEventManager Handles all UX (sound, vibration, animation) and send confirmation. The current implementation uses Rotation to confirm send, and P2pAnimationActivity to animate the send. Change-Id: Ie498219857afe69403e90f09c77f4d6d1b24ffeb
* Move 0-click animations to activity.Martijn Coenen2011-08-101-0/+6
| | | | | | | | | - Start activity instead of window overlay; - Implement "the real twist": need to twist back to share; - Implement receive animation (slide out); - General cleanup. Change-Id: I3f6a015c2a73f309892a8c5c3b1ea1b133b54d42
* New NFC animations.Martijn Coenen2011-08-051-2/+10
| | | | Change-Id: If62df6f07d1282fe39a6f3ac3a67c7a264e2be77
* Remove the binder interface for LLCP.Jeff Hamilton2011-08-012-21/+30
| | | Change-Id: I8d5fd546ecb07f005322eb5f173975dff7820439
* Play an animation for outbound NFC P2P.Jeff Hamilton2011-07-261-3/+5
| | | | | | | | | Clean up NFC service sound playing. Cancel P2P tasks when the LLCP link is broken. Bug: 4941390 Change-Id: I0710bc7dd9d09ed47a540cb4739890bcc3a4f905
* Exchange me profile over NFC using android SNEP service.Martijn Coenen2011-06-221-2/+6
| | | | | | | | | This is Ben's patch with some small modifications: - Added code to retrieve the me profile and transmit/receive it; - Moved local SAP definitions for more clarity. - Removed sending of my tag. Change-Id: Ica85b4491206526e89bc34c23479f9d4489ed1cf
* Merge snep p2p to masterBen Dodson2011-06-151-144/+44
| | | | Change-Id: Ic629c9a2ad348c1f352f39d7fc2be04edcf627e7
* Implement callback interface for Ndef push.Jason parks2011-05-241-0/+38
| | | | Change-Id: I829c95436b69f41bc473f8085f18247fedac48c5
* Tweak dispatching a bit.Jeff Hamilton2011-01-231-0/+6
| | | | | | | | | | | | Foreground dispatch overrides now interpret null for the filters as "catch all". Foreground NDEF push disables standard dispatch and only honors foreground dispatching so that two NDEF push apps don't end up just swapping between each other when the push happens. Change-Id: Ic305d4a3a593fff732b8d88ae72e09b4a03d6286
* Fixed misuse of Arrays.copyOfRange() method.Sylvain Fonteneau2011-01-191-1/+1
| | | | | | | This method takes the buffer, the start offset and the end offset as parameters. Change-Id: I52e33d7083a26bea57e0f3c819c40c8daa4e3816
* Set LLCP MIU parameter to optimal value.Sylvain Fonteneau2011-01-181-1/+1
| | | | | | | | | | | | At the NFCIP-1 level, the LLCP frames are splitted in 251-bytes packets. Knowing that NFCIP-1 packets have a 3-bytes header, the optimal size for a LLCP packet is 248-bytes. With the previous value (256), each LLCP frame was splitted in two NFCIP-1 packets, one 248+3 bytes and another one of 8+3 bytes. This was leading to less-than-optimal performances. Change-Id: Ide31b1ee24efc910c71d690a8ae100331b62ccf8
* NDEF Push Protocol implementation.Jeff Hamilton2011-01-183-0/+482
The protocol allows pushing NDEF messages over LLCP in order to simulate a card read wihtout having to use card emulation. This also allows for 2 way transfer of meesages. The protocol allows for a single immediate message, to be dispatched upon arrival as if it were read from a tag, and any number of deferred dispatch messages. The handling of deferred dispatch messages is up to the receiver and not implemented in this patch. Change-Id: Ib99e4fc01532cc741debab370a417f94669b62ac