summaryrefslogtreecommitdiffstats
path: root/src/com
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Merge "Check for navigation bar when cropping Beam screenshot." into ics-mr1Martijn Coenen2011-11-041-4/+7
| |\ \ | | |/
| | * Check for navigation bar when cropping Beam screenshot.Martijn Coenen2011-11-031-4/+7
| | | | | | | | | | | | | | | This fixes the Beam animation on crespo. Change-Id: I1bc374dc532a4e83622c62b31ee5b4de2b5fa3ba
* | | am 304a7304: Merge "Don\'t finish Beam animation again." into ics-mr1Martijn Coenen2011-11-052-2/+6
|\ \ \ | |/ / | | | | | | | | | * commit '304a7304fe4aeab2b915024a531238f1c3f246a8': Don't finish Beam animation again.
| * | Don't finish Beam animation again.Martijn Coenen2011-11-032-2/+6
| |/ | | | | | | | | Bug: 5553836 Change-Id: I1bfd7e0aa3a1420decea7d793e851f44cb433cf2
| * Add event logs for NFC events. DO NOT MERGEJeff Hamilton2011-10-283-9/+105
| | | | | | | | | | Bug: 5128799 Change-Id: I5607abe5d28ef9682afa084651c50aa651655b60
* | Changes semantics of isNdefPushEnabled() - require NFC to be enabled.Nick Pelly2011-10-311-1/+1
| | | | | | | | Change-Id: I065411644c19e30f01ce93560fc7e37efe817fe0
* | Add event logs for NFC events.Jeff Hamilton2011-10-253-9/+105
|/ | | | Change-Id: I5607abe5d28ef9682afa084651c50aa651655b60
* Merge "NFC: Enable guard host timeout." into ics-mr0Martijn Coenen2011-10-213-0/+9
|\
| * NFC: Enable guard host timeout.Martijn Coenen2011-10-213-0/+9
| | | | | | | | | | | | | | Set to 255 ms, increase number of retries to 64. Add dump() interface to native library Change-Id: Ib3a32f70453f7f8b79ff89394410f56b4b9dd7a2
* | Merge "Start all NFC activities from a dedicated root task." into ics-mr0Martijn Coenen2011-10-212-37/+76
|\ \ | |/ |/|
| * Start all NFC activities from a dedicated root task.Martijn Coenen2011-10-172-37/+76
| | | | | | | | | | | | | | | | 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
* | Fix crash when turning screen off and NFC is off.Martijn Coenen2011-10-191-6/+4
| | | | | | | | | | Bug: 5480404 Change-Id: I52add3c89fc535bfc37bc8c12ed0f8f905cbe304
* | Make the crash on screen off less frequent.Jeff Hamilton2011-10-171-16/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The LLCP stack is still using globals without holding the concurrency lock. When turning the screen off we were previously disabling the NFCEE routing before disconnecting the active target. The routing code would grab the lock and then touch the globals, which the LLCP was using illegally, causing a crash when the LLCP triggered callbacks are delivered. This change reorders the shutdown at screen off to disconnect the remote target before issuing the change to the NFCEE routing in an attempt to stop the ongoing LLCP transactions, thereby avoiding the crash. Since the callbacks are asynchronous the race is still there, but it's hit more like 10% of the time instead of 100% of the time. Bug: 5366024 Change-Id: I31230166c1c5bf116195db350ac6605feb90e87f
* | Final NFC animation tweaks.Martijn Coenen2011-10-141-2/+15
|/ | | | | Bug: 5318512 Change-Id: Iae150be1210bf25c1fc58b41ec24dc301547cf7f
* NFC: Remove statusbar/navbar from animated screenshot.Martijn Coenen2011-10-112-23/+39
| | | | | | | | | | | | This just crops the status bar and the navbar from the screenshot we take. This makes the animation look right in all cases, except for when we are full screen: in that scenario we're cropping away too much. Also removed the clone view (was no longer used) and cleaned FireflyRenderer a bit. Bug: 5318512 Change-Id: I37189a576f19937c2cae4ec368f26ac0725a1b62
* Merge "NFC screenshot animation adjustments: - eliminate discontinuous jump ↵Brandon Keely2011-10-101-25/+44
|\ | | | | | | when starting failure animation (mScaleUpAnimator) - simplify success animation: fade live app in at scale=1, rather than scaling it back up - minor timing and motion curve tweaks"
| * NFC screenshot animation adjustments:Brandon Keely2011-10-071-25/+44
| | | | | | | | | | | | | | | | - eliminate discontinuous jump when starting failure animation (mScaleUpAnimator) - simplify success animation: fade live app in at scale=1, rather than scaling it back up - minor timing and motion curve tweaks Change-Id: I1fd5989a6e58e493087653d3a865f774cfc2b32d
* | Updated FireflyRenderThread to be more subtle and depthy.Brandon Keely2011-10-071-55/+34
|/ | | | Change-Id: I833c466e867b1c1c787654b0b3a42ebca27b7c14
* Add DUMP permissions checkKenny Root2011-09-301-0/+9
| | | | | Bug: 5389201 Change-Id: I8ddb60ebe63bcc01e0695868286ad4c7da4afa69
* NfcService: call enableAppSwitches for additional events.mike wakerly2011-09-282-7/+16
| | | | | | This addresses the responsiveness issue identified in b/5140941 Change-Id: I8fad061be2e3f1006e4e2910db84c0a3360e2a0a
* Fix NFC to only be enabled when the lockscreen is dismissed.Jeff Hamilton2011-09-261-1/+1
| | | | | Bug: 5300713 Change-Id: I93f0d75d159b3456e6fa8fc376d10493f25e3233
* Show NFC call-to-action text immediately.Nick Pelly2011-09-212-63/+6
| | | | | | | | | Pull out all the code the track success/failure for the hint. Doing this as a standalone commit so we can easily revert if we want it back. Bug: 5350022 Change-Id: Ieb70af10ebaabdf82421c128d72ed1fc374130d2
* Fix fireflies on prime.Martijn Coenen2011-09-221-2/+4
| | | | | | | | | | | mStartTime was not initialized, which would cause a very large positive value in mTimeRemaining, because it was only an int and it wrapped. This caused the scale to be all wrong. Fixed both issues. Bug: 5350022 Change-Id: I49c987fb905c90998f5b9083b9c7590225b751c7
* Remove first-share notification.Martijn Coenen2011-09-151-36/+0
| | | | | Bug: 5296866 Change-Id: I90ccb7127b61aa2242fdb5252cdacccc049d5081
* Manually port d77e05f7 from gingerbread:Jeff Hamilton2011-09-143-1/+75
| | | | | | | | | Patch to perform a download at NfcService boot time This patch permit, when NFC is off, to perform a download if the PN544 is not up to date Change-Id: Iaa01e218ccd1e4cb18ef77d58c18348823135b1e
* Include stopped apps when broadcasting SE events.Jeff Hamilton2011-09-061-6/+11
| | | | | Bug: 5249686 Change-Id: I5b3f2708ef28de58655ac2901f85f0575210f01c
* Move receive animation back to scale up.Martijn Coenen2011-09-021-1/+8
| | | | Change-Id: I00382a2cd085aa4c65eba33e9eab51c57882b838
* Render fireflies with OpenGL.Martijn Coenen2011-09-022-19/+514
| | | | | | | - Show a static (scaling in) background in case we're not hw-accelerated. - Modify the cloning animation a bit. Change-Id: I808238fb515c2c8d7832a4ab8bc70a37e1198de5
* Remove this unneeded (and gone) flag.Dianne Hackborn2011-09-021-2/+1
| | | | Change-Id: I5f6840359502ee1982ff84e9905b95f4c0ad094c
* Latest zeroclick animations.Martijn Coenen2011-09-012-18/+56
| | | | | | | | | | | | | - Only hw-accelerate when we have the resources for it; - Disallow status bar interaction; - Remove background; - On failure, gradually scale back up; - On receive, slide out to the right. TODO: - OpenGL fireflies Change-Id: I1deae65f24f40a226c8a575130ca22b72ff9e05e
* Merge "NFC service updates for moving NDEF push to a fragment."Nick Pelly2011-08-263-64/+31
|\
| * NFC service updates for moving NDEF push to a fragment.Nick Pelly2011-08-253-64/+31
| | | | | | | | | | | | | | enable()/disable() -> set() ZeroClick -> NdefPush Change-Id: I21806665b8fd29e4580bd2e3200858d834605f6f
* | Support for getMaxTransceiveLength() API.Martijn Coenen2011-08-264-6/+70
|/ | | | | Maximum transceive length is enforced in calls to transceive. Change-Id: I94a4f16283e5fd5df9143b02e52c16f868b1c3ab
* Touch to send hint for NdefPush.Martijn Coenen2011-08-242-11/+87
| | | | | | | | | Show hint when: - First time sharing (until successful again). - 3 share failures (until successful again). - 3 seconds in p2p range and no confirmation (fade in). Change-Id: I413d45b76ee8588d4aa99351e34212ecc38d8f8e
* NdefPush animations.Martijn Coenen2011-08-243-31/+127
| | | | | | | | | | | | | | | | | | | | | | | | | - Sound + vibration whenever devices enter range. - Rebuilt old send animation - clone off in the background. - Scale back up for receive, then call startActivity(). - Slowed down animations - Split sending in two parts: first part is slow and played during the actual send. When the send is done, the animation is accelerated and finished. This has as an advantage that there is an immediate response to the touch (instead of waiting till the send is done). - Lock rotation. TODO: - Integrate firefly background. - Touch to send hint. - Tweak debounce time - somehow it still happens a lot that the link is tore down, the debounce comes in, and the link comes back up again just after 750ms, causing flapping anyway. - After a lot of tapping things seem to become very slow; I'm not sure yet if this is due to NFC or other ICS code. - See if we can really do without TYPE_SYSTEM_OVERLAY window params. Change-Id: I93d472ed566b8201b65e9eee049467995f66e683
* Fix GB<->ICS sharing.Martijn Coenen2011-08-191-1/+5
| | | | | | | | Should throw an IOException() whenever recv() failed. Also changed recv error return value to be -1, to be more in line with common sockets. Change-Id: If65fe9e22c76f0a4558a9a6dedc0662bac038ee8
* First cut at reverting to tap-to-share.Nick Pelly2011-08-183-179/+24
| | | | | | | A lot more polish to go, but this gest the basic tap-to-share behavior working again. Change-Id: Ic1f1df4200c9a1424018df7602fe5cb278cdc1e6
* Initialize LPF with first value, so that we have a betterNick Pelly2011-08-181-17/+19
| | | | | | chance of immediately triggering after 10 samples Change-Id: I7884204c7e3aeaf6191f5bb05f60153f07b800c7
* Latest ShareTap UI: low-pass filter and animations.Martijn Coenen2011-08-183-14/+39
| | | | Change-Id: If0c04284e1e6f1126f85a8bb58014ce553f4e52b
* 0-click UI updateNick Pelly2011-08-175-627/+365
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o New start sound o Vibrate only when - starting send - send success - receive success o Play sound only when - starting send - send success - send failure (out of range before complete) - receive success o Introduce HoldingItWrongUi with the new image o P2pAnimationActivity -> SendUi, and a huge cleanup of it - no longer an activity. It took 350ms to inflate the views on first onCreate() as an activity, but we can cache this ahead of time as a window. - Use ObjectAnimator instead of ViewAnimator, much less code o Use ACCELEROMETER instead of GRAVITY to get faster tilt detection. TODO (in order of priority) o LLCP has started crashing a lot again. About 1/10 times I come into P2P range the stack crashes now on my Nexus S TMO. At first I thought it was because I was doing animations during LLCP send, which might affect timing to pn544 due to CPU load. So I changed my first implementation (one animation) to split it into a pre-send and post-send, so we don't do any work during the actual send. Still seems to crash though. We really need to make it solid again. o Change notification text and settings text+image as per Rachel's email o Do some simple low-pass filter on ACCELEROMETER so we don't get caught out when the user shakes the phone o Plumb through a starting receive callback, and play sound + vibrate o Prevent touch during send animations. Not a big deal right now because we complete it so fast. o Prevent notification shade from being pulled during HoldingItWrongUi and SendUi o Prevent orientation change during SendUi Change-Id: Ieec1efb741244c68270e34a712c15c58621b1446
* Prevent NFC task transition animations.Martijn Coenen2011-08-161-4/+1
| | | | | | | | | | | This fixes the "black flashes" when starting/finishing the NFC animation activity. TODO: - The status bar is "animated in" still, causing a brief white rectangle where the status bar is. Change-Id: Id99f3ecfe8695edcb6c02caa611731fa6e58a560
* Prevent rotation in animation activity.Martijn Coenen2011-08-152-10/+8
| | | | | | | | | Turns out setting configChanges="orientation" does not actually prevent the orientation change - it just prevents the activity from being restarted with a new intent. Restored old code for locking orientation. Change-Id: I136888f6424d3caf5081dd0a55087e263ccc88e4
* Implement Tap-to-Share and Tilt-to-Share (DropShare).Nick Pelly2011-08-123-78/+107
| | | | | | | | | | | | | | | | | | | o Text says "Tap to Share", but tilting (the phone on top sends) also works. o Move text to top. Remove arrows. o First Accelerometer value takes ~700ms :( o Only call onP2pSendComplete on success. If the send failed, we retry quietly. This improves perceived reliability. o Reduce debounce from 1000ms to 750ms. TODO o Never do orientation change while in the animation activity o Get rid of black transition when entering/leaivng activity o Figure out why it takes 700ms to get first accelerometer value o Improve launch time of animation activity (sometimes it takes 3+ seconds) o Consider going back to a window overlay? o Make it snappy snappy snappy Change-Id: Idbc8e4bb744051b7b69d234a51a3ce69e23b699f
* Tweak arrow rotation.Nick Pelly2011-08-111-3/+10
| | | | | | Longer path, faster. Change-Id: I09facd4a439c145f495e03c7145f7005c9e8a08a
* Latest UX animations and cleanup of P2pAnimationActivity.Martijn Coenen2011-08-112-76/+115
| | | | Change-Id: Ib24ea71f46087b6415204b222213fc9c8348f5fb
* Decouple P2P link management from P2P UX management.Nick Pelly2011-08-108-617/+757
| | | | | | | | | | | | | | | | | | | 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
* Address code review comments for "Increase priority of EnableDisableTask..."Nick Pelly2011-08-101-0/+3
| | | | | | Restore THREAD_PRIORITY_BACKGROUND. Change-Id: Id33b3c9d38e04fd61a758b81e46d26ec22a1aae0
* Move 0-click animations to activity.Martijn Coenen2011-08-104-310/+268
| | | | | | | | | - 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
* Increase priority of EnableDisableTask thread to fix FW download failures.Nick Pelly2011-08-091-0/+10
| | | | | | | | | | | | | | AsyncTask uses THREAD_PRIORITY_BACKGROUND, which is not responsive enough to execute software I2C firmware download with the NXP PN544. Use THREAD_PRIORITY_DEFAULT instead. Software I2C uses the host processor to manually toggle the transport line to indicate each bit. With THREAD_PRIORITY_BACKGROUND there might be high latency between bits. The observed result is that we do not receive the expected "00 00 00" response to a firmware write command - we hang and timeout. Change-Id: I525759837d26009c01304f60a420b5213443d959
* Fix bug where NfcAdapterExtras.get() always fails.Nick Pelly2011-08-091-2/+7
| | | | | | And improve some logging while we're at it. Change-Id: Ia1f5c1a451690bfcf5b9af75e855c09164460561