summaryrefslogtreecommitdiffstats
path: root/src/com/android/nfc/handover/BluetoothOppHandover.java
Commit message (Collapse)AuthorAgeFilesLines
* Snapshot b80adb2c263702442cf2f2d771168400e6ceb9f8The Android Open Source Project2012-12-131-58/+14
| | | | Change-Id: I391d8e1be1a61e68b01f0db371dbb4ed3e5b5933
* Implement connection handover LLCP service.Martijn Coenen2012-07-161-1/+17
| | | | | | | | | | | | | | The Connection Handover specification dictates that we should exchange Hr/Hs records over a dedicated LLCP service. This adds the service, and starts using it by default. It will fall back to the SNEP GET method to remain compatible with Android 4.1 devices. SNEP GET on these devices will return "Not Implemented", also per the SNEP spec. Also fixed a bug in endianness of the OOB record. Bug: 6759842 Change-Id: Iafe67ab119e933df5dfa0a5645a95bc59badd8ae
* Use new handover intent actions.Martijn Coenen2012-05-251-13/+10
| | | | | | | | | | | | Use the new handover intent actions that allow us to select any mime-type. Also, add unique filename counter before extension instead of after it. Bug: 6561169 Change-Id: I04b83460099b42ba6220d7eb4dcff7a095022304
* Allow cancelling of Bluetooth Beam transfers.Martijn Coenen2012-05-161-4/+6
| | | | | | | | | | | Add an action to the notification entry that allows cancelling Beam transfers. Also, each transfer now has a generic timer that marks the transfer as failed, in case no updates happen on the transfer at all for 10 seconds. Change-Id: I9670e4e782e5c1b846a07f7e490a2f317a45fb70
* Bluetooth Beam handover: deal with multi-file transfers.Martijn Coenen2012-05-151-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | A handover transfer object no longer represents a single file, but all the files associated with the handover. This association is based on the source address of the transfer and a timer; if a new file transfer from the same source is started within this timer, it is considered to be part of the same handover transfer. Received files are stored in beam/. If multiple files are transferred, they are stored in their own subdirectory of beam. We now use the mediaScanner for mime-types that the platform can deal with by default. The advantage of this is that the mediaScanner can already gather meta-data for these files, and (platform) apps can query for and populate views with such data. 3rd party applications can also query the mediaScanner for meta-data on the received files. A handover transfer object has a single notification associated with it; upon launching the notification, a single ACTION_VIEW intent is launched. If multiple files were transferred as part of this handover, ACTION_VIEW is launched on the first file in the set. Change-Id: I00c23e58736f6dbe96726a1ec56fbc8c984a215d
* Bluetooth Beam bug fixes, UX and i18n.Martijn Coenen2012-05-101-8/+47
| | | | | | | | | | - Implemented handover select with carrier power state - Delay OPP send if remote carrier is activating - I18n for all handover components - Cleanup old handover transfers Bug: 6411485 Change-Id: I84aac3a7c7e703a1fcb423b6016cd9fa3d33d9b1
* Latest changes for Bluetooth Beam.Martijn Coenen2012-04-201-9/+69
| | | | | | | | | | | | | | - Receive transfer notifications and status info from Bluetooth, to show progress using Notifications. - Added power manager, to keep track of BT power state, and turn BT off if possible. TODO: - UI for failed operations (ie transfer failed, Bluetooth enable failed). - Cleanup of transfer list - Make sure BT doesn't connect to other peripherals or isn't connectable. Change-Id: I31450f589bbaeb72ee8c450c5019f00f0190b7aa
* Support for the new Uri[] Beam push API.Martijn Coenen2012-04-121-13/+41
| | | | | | Support multiple URIs, move query for the mime type to NFC service. Change-Id: Ib055efca843b41f6d29cda7d67b23f4b9946113c
* Force bluetooth OPP to handle ACTION_SEND.Martijn Coenen2012-04-051-1/+2
| | | | Change-Id: Ib9520b53d699a79d9a7c09cdb3eb27c4e001d7fd
* First cut at Bluetooth BeamNick Pelly2012-04-041-0/+46
Change-Id: I616fd57b7822d703280ec960b84cf8c5ced6719d