History log of /packages/apps/Nfc/src/com/android/nfc/handover/HandoverManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f5a9550725ea1882b9e03d2e5f92c995d09cd84b 30-Jul-2013 Martijn Coenen <maco@google.com> Don't bind to handover service persistently.

Bug: 8870470
Change-Id: I084bdfb68452530ac8a8c124d1d703902c09847e
/packages/apps/Nfc/src/com/android/nfc/handover/HandoverManager.java
7d8987f233985a5ff29226890e11012275d325f5 07-Mar-2013 Martijn Coenen <maco@google.com> Allow incoming provisioning intents while in setup wizard.

When the device is in setup wizard, the keyguard state
registers as locked, hence in this state NFC was not
enabled.

This change adds some resource settings to enable
NFC in setup wizard, and allow a set of mime-types
to be received while in that mode.

Bug: 8275527
Change-Id: Iab6cd8438fa77764b0cc9c96cbf1a36e95d79524
/packages/apps/Nfc/src/com/android/nfc/handover/HandoverManager.java
97fe497ede803f09d45253ee5fba51bf03cb724a 18-Jan-2013 Martijn Coenen <maco@google.com> Add a bit more logging for Bluetooth Beam.

This allows easily ruling out wrong Mac addresses
etc.

Bug: 7903517
Change-Id: I6864527fe547347890d5ad319d1535a3f8ddf4d0
/packages/apps/Nfc/src/com/android/nfc/handover/HandoverManager.java
d54fb08755f4ffa9c148484187bd2a7cd4df0b57 16-Jan-2013 Amith Yamasani <yamasani@google.com> Use bindServiceAsUser() to follow API change.

Change-Id: If99f32a43c0e4c13e0d2390142dc1dc7679a02f3
/packages/apps/Nfc/src/com/android/nfc/handover/HandoverManager.java
be1939b4b6003ac7a65fcb95a3912f5e1ce8e75f 14-Dec-2012 The Android Open Source Project <initial-contribution@android.com> Snapshot b80adb2c263702442cf2f2d771168400e6ceb9f8

Change-Id: I391d8e1be1a61e68b01f0db371dbb4ed3e5b5933
/packages/apps/Nfc/src/com/android/nfc/handover/HandoverManager.java
525c260303268a83da4c3413b953d13c9084e834 14-Dec-2012 The Android Open Source Project <initial-contribution@android.com> Snapshot 1a6bcf3cca90fedfbad33c1cdd6d05af5774fc01

Change-Id: I3ccb25bf7cde2c22f52260cae0e9957517e6bb5f
/packages/apps/Nfc/src/com/android/nfc/handover/HandoverManager.java
63cccc4b5096fd9cbcb08410e69f7932375b4bc6 23-Jul-2012 Martijn Coenen <maco@google.com> Fix type of collision resolution record.

Bug: 6759842
Change-Id: I0fe1e6859d8792b959a1306404bd239ab33dd3b4
/packages/apps/Nfc/src/com/android/nfc/handover/HandoverManager.java
f5a196b643c654c7ea98a5e2935e3bff6683399b 11-Jul-2012 Martijn Coenen <maco@google.com> Implement connection handover LLCP service.

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
/packages/apps/Nfc/src/com/android/nfc/handover/HandoverManager.java
0015304ebb1fda453f8b2ef660c39bf4f11dc771 06-Jun-2012 Martijn Coenen <maco@google.com> Don't assume Bluetooth is present.

Bug: 6620788
Change-Id: I39f7b106885b1bb932353c47c3b0f7370c56e8c4
/packages/apps/Nfc/src/com/android/nfc/handover/HandoverManager.java
4fe787c0237d00e96018ac2185961451c6d4851d 24-May-2012 Martijn Coenen <maco@google.com> Use new handover intent actions.

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
/packages/apps/Nfc/src/com/android/nfc/handover/HandoverManager.java
befa3d6d8bca86f28968069128d6f454b39ed9a8 22-May-2012 Martijn Coenen <maco@google.com> Show time in NFC handover notifications.

Notification sorting is coupled to the time associated
with the notifications, and there's no way to hide the
time in the notification without setting the time to zero.

Since we prefer a proper sorting over hiding the time,
just show the time again.

Change-Id: I3188a80f8d7b7fcac54ffa790df58faa53241557
/packages/apps/Nfc/src/com/android/nfc/handover/HandoverManager.java
0de2737031fd18aeeadcbc8f46cd0ebcb18ee730 18-May-2012 Martijn Coenen <maco@google.com> Bluetooth Beam: generate unique filenames.

When moving files to beam/, make sure the destination
file is unique.

Also, give the transfer a little more time to be initiated;
OPP can take quite some time to startup, especially with
debug logging.

Change-Id: I304c297587e3ad2f339438201bb0b53152084af4
/packages/apps/Nfc/src/com/android/nfc/handover/HandoverManager.java
3bf04bd4f04b217768b3799dadb4a775b5a31f1a 17-May-2012 Martijn Coenen <maco@google.com> Allow cancelling of Bluetooth Beam transfers.

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
/packages/apps/Nfc/src/com/android/nfc/handover/HandoverManager.java
402da07068333f9393fd960a4c90df39b34bf668 14-May-2012 Martijn Coenen <maco@google.com> Bluetooth Beam handover: deal with multi-file transfers.

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
/packages/apps/Nfc/src/com/android/nfc/handover/HandoverManager.java
d82d9db81f30ccecd29a0531e6db9b49c9c2cd95 08-May-2012 Martijn Coenen <maco@google.com> Bluetooth Beam bug fixes, UX and i18n.

- 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
/packages/apps/Nfc/src/com/android/nfc/handover/HandoverManager.java
0af2f3baa4b58419f6d4268fb83d9a2952dceba0 27-Apr-2012 Martijn Coenen <maco@google.com> Call right Bluetooth enable API.

Change-Id: Iff926bce1d3b00fe301195b6e3d341631c58fe29
/packages/apps/Nfc/src/com/android/nfc/handover/HandoverManager.java
226307d8c2952c42855005d7c0107b42b066bc9a 12-Apr-2012 Martijn Coenen <maco@google.com> Latest changes for Bluetooth Beam.

- 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
/packages/apps/Nfc/src/com/android/nfc/handover/HandoverManager.java
83558889207858d7ce8500f9fce8a707a86b495e 13-Apr-2012 Martijn Coenen <maco@google.com> Support for the new Uri[] Beam push API.

Support multiple URIs, move query for the mime type to NFC service.

Change-Id: Ib055efca843b41f6d29cda7d67b23f4b9946113c
/packages/apps/Nfc/src/com/android/nfc/handover/HandoverManager.java
43f2fa7ad4c72ef4849f2d2b78a963c1925c63a3 04-Apr-2012 Nick Pelly <npelly@google.com> First cut at Bluetooth Beam

Change-Id: I616fd57b7822d703280ec960b84cf8c5ced6719d
/packages/apps/Nfc/src/com/android/nfc/handover/HandoverManager.java
a2908a164eec02c34efc39db2e3ee0e38ebbfdb1 01-Mar-2012 Nick Pelly <npelly@google.com> Implement NFC-BT handover for Bluetooth headsets, such as Nokia BH-505.

Touch once to turn BT on, pair, connect HFP and A2DP, and start the music.
Touch again to disconnect HFP and A2DP.

Change-Id: Icfe120606aae5e80b04cc4aba3b03331a1213676
TODO: enable Bluetooth without causing auto-connection to *other* devices
TOOD: disable Bluetooth when disconnecting if it was enabled for this device
TODO: il8n / UI review
TODO: check security issues around auto-on BT and auto-pair
/packages/apps/Nfc/src/com/android/nfc/handover/HandoverManager.java