History log of /packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
43f2fa7ad4c72ef4849f2d2b78a963c1925c63a3 04-Apr-2012 Nick Pelly <npelly@google.com> First cut at Bluetooth Beam

Change-Id: I616fd57b7822d703280ec960b84cf8c5ced6719d
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
020b17588c85e9a55539ccbb20081754272c724b 29-Mar-2012 Martijn Coenen <maco@google.com> Merge "Fix NPE when there's NDEF data we can't dispatch."
bfaee054834ade31c52002f00553c63701f1c0b0 08-Mar-2012 Martijn Coenen <maco@google.com> Fix NPE when there's NDEF data we can't dispatch.

Bug: 6135087
Change-Id: Ib2161c6125b6592db8ca2d89a1959e20f54455eb
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.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/NfcDispatcher.java
ea78e5beebff19ece23870b4ff5e5fd69d61aaa1 24-Jan-2012 Nick Pelly <npelly@google.com> Don't need to pass the NdefMessage in dispatch().

Change-Id: Ib1463aa51b1ce48cf7217866cb7c11ab8caa4e06
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
391cfe2479eca2080c14d1832599ad51cafae918 05-Jan-2012 Nick Pelly <npelly@google.com> Rewrite NDEF dispatch path. It was getting pretty messy.

The dispatch sequence is identical, but the hierarchy of functions has been
collapsed. The flow now is:

dipsatchTag() ->
tryOverrides() ->
*** NDEF override ***
*** TECH override ***
*** TAG override ***
tryNdef() ->
*** AAR to NDEF ***
*** AAR to application launch ***
*** AAR to market launch ***
*** regular NDEF ***
tryTech() ->
*** TECH ***
*** TAG ***

o Fix bug where cancelling a pending intent would disable further foreground dispatch.
o Fix bug where a foreground process dying would not cancel override
o Assume one NdefMessage per tag in implementation methods

Change-Id: Iaf7a0a83076e4f540a5e55c9e628490570116b01
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
f955ec07aefda9d15b9a64afabedd8d927e0aff7 13-Oct-2011 Martijn Coenen <maco@google.com> Start all NFC activities from a dedicated root task.

Instead of launching NFC into existing tasks, always launch
into a clean task that is owned and controlled by the NFC process.

Bug: 5122560
Change-Id: Iea6022bb754bcc46e7ab3adb1b9ccc7fe20797e3
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
8e85fe445d229fba5d101b4f95fe0dfa34a8601e 28-Sep-2011 mike wakerly <mikey@google.com> NfcService: call enableAppSwitches for additional events.

This addresses the responsiveness issue identified in b/5140941

Change-Id: I8fad061be2e3f1006e4e2910db84c0a3360e2a0a
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
0b3b8ab69835cb66c96691dae3ba9b75705980a5 24-Aug-2011 Nick Pelly <npelly@google.com> NFC service updates for moving NDEF push to a fragment.

enable()/disable() -> set()
ZeroClick -> NdefPush

Change-Id: I21806665b8fd29e4580bd2e3200858d834605f6f
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
77d0b56bfa6a4e4e1449c476a1141a7486f34ad9 11-Aug-2011 Nick Pelly <npelly@google.com> Decouple P2P link management from P2P UX management.

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
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
222b8c18c4a9cf800f2dd615ef116f796ef7942c 03-Aug-2011 Martijn Coenen <maco@google.com> Launch application if already installed.

If app doesn't have a foreground NDEF message, both a Market URL
and an Android App NdefRecord will now be sent instead.
On the receiving side, if the app is already
installed, try to launch the apps main activity. If not possible,
go to market instead.

Change-Id: Iac1d27151d2cae8c561090c92177bca7bb5daa92
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
f2500d4518ac7c8b41a0f2ab5d0926196fbae6e1 03-Aug-2011 Nick Pelly <npelly@google.com> Allow NDEF swap.

Try normal NDEF dispatch even if the foreground activity pushed NDEF.

Change-Id: I6fd17ae14ff3e15b43ffdc9b0304c374ca981c51
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
f39dd4cf73e846cdc9523f70df5c12984930751f 01-Aug-2011 Nick Pelly <npelly@google.com> Fix bug: use foreground dispatch when ndef push is enabled via callback.

The previous code only checked for a static message, not the callback.

Change-Id: Ib0f2db42423ca8b11ece7f4b20adb7969911c8ba
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
ea9898eb8041802bca345b59de9e0e9302e8232b 13-Jul-2011 Ben Dodson <bjdodson@google.com> Launch ACTION_MAIN intents that don't support CATEGORY_DEFAULT.

Change-Id: Ie191aaff29d11fe9f65038f8ed5a5c13b3c54ed1
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
b442e5fc49f235c228d3989c73e333d58caa2ade 06-Jul-2011 Ben Dodson <bjdodson@google.com> Allow dispatch to a specific package

Change-Id: I511dd319dd1568ef7b59621b30a2ff144978e69c
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
d704c298a5a1e783c71db6f39b2eef0a909b0e88 17-Jun-2011 Jeff Hamilton <jham@android.com> Play sounds for start, end, and error.

This needs some cleanup to handle the
error states better, but works ok for now.

Change-Id: I803c339de593acfe5bb7f1007a965f203e0e1a30
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
2ef360deaff9f17aa72d5749ceee283cc80897af 15-Jun-2011 Ben Dodson <bjdodson@google.com> Merge snep p2p to master

Change-Id: Ic629c9a2ad348c1f352f39d7fc2be04edcf627e7
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
76a412f47ff57ce05d84fd51adbf8e72fd37a448 08-Jun-2011 Nick Pelly <npelly@google.com> Slay the NfcService beast, part one.

Split out dispatch code into NfcDispatcher.java. It can be pulled out
cleanly.

Move URI field construction into framework.

Change-Id: Ia70c06c5f469b370c532905e1c02f71149cb9ecc
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java