| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |\ \
| | |/ |
|
| | |
| | |
| | |
| | |
| | | |
This fixes the Beam animation on crespo.
Change-Id: I1bc374dc532a4e83622c62b31ee5b4de2b5fa3ba
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* commit '304a7304fe4aeab2b915024a531238f1c3f246a8':
Don't finish Beam animation again.
|
| |/
| |
| |
| |
| | |
Bug: 5553836
Change-Id: I1bfd7e0aa3a1420decea7d793e851f44cb433cf2
|
| |
| |
| |
| |
| | |
Bug: 5128799
Change-Id: I5607abe5d28ef9682afa084651c50aa651655b60
|
| |
| |
| |
| | |
Change-Id: I065411644c19e30f01ce93560fc7e37efe817fe0
|
|/
|
|
| |
Change-Id: I5607abe5d28ef9682afa084651c50aa651655b60
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
Set to 255 ms, increase number of retries to 64.
Add dump() interface to native library
Change-Id: Ib3a32f70453f7f8b79ff89394410f56b4b9dd7a2
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| | |
Bug: 5480404
Change-Id: I52add3c89fc535bfc37bc8c12ed0f8f905cbe304
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
|
| |
Bug: 5318512
Change-Id: Iae150be1210bf25c1fc58b41ec24dc301547cf7f
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| |
| | |
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"
|
| |
| |
| |
| |
| |
| |
| |
| | |
- 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
|
|/
|
|
| |
Change-Id: I833c466e867b1c1c787654b0b3a42ebca27b7c14
|
|
|
|
|
| |
Bug: 5389201
Change-Id: I8ddb60ebe63bcc01e0695868286ad4c7da4afa69
|
|
|
|
|
|
| |
This addresses the responsiveness issue identified in b/5140941
Change-Id: I8fad061be2e3f1006e4e2910db84c0a3360e2a0a
|
|
|
|
|
| |
Bug: 5300713
Change-Id: I93f0d75d159b3456e6fa8fc376d10493f25e3233
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Bug: 5296866
Change-Id: I90ccb7127b61aa2242fdb5252cdacccc049d5081
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Bug: 5249686
Change-Id: I5b3f2708ef28de58655ac2901f85f0575210f01c
|
|
|
|
| |
Change-Id: I00382a2cd085aa4c65eba33e9eab51c57882b838
|
|
|
|
|
|
|
| |
- Show a static (scaling in) background in case we're not hw-accelerated.
- Modify the cloning animation a bit.
Change-Id: I808238fb515c2c8d7832a4ab8bc70a37e1198de5
|
|
|
|
| |
Change-Id: I5f6840359502ee1982ff84e9905b95f4c0ad094c
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
enable()/disable() -> set()
ZeroClick -> NdefPush
Change-Id: I21806665b8fd29e4580bd2e3200858d834605f6f
|
|/
|
|
|
| |
Maximum transceive length is enforced in calls to transceive.
Change-Id: I94a4f16283e5fd5df9143b02e52c16f868b1c3ab
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
A lot more polish to go, but this gest the basic tap-to-share
behavior working again.
Change-Id: Ic1f1df4200c9a1424018df7602fe5cb278cdc1e6
|
|
|
|
|
|
| |
chance of immediately triggering after 10 samples
Change-Id: I7884204c7e3aeaf6191f5bb05f60153f07b800c7
|
|
|
|
| |
Change-Id: If0c04284e1e6f1126f85a8bb58014ce553f4e52b
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Longer path, faster.
Change-Id: I09facd4a439c145f495e03c7145f7005c9e8a08a
|
|
|
|
| |
Change-Id: Ib24ea71f46087b6415204b222213fc9c8348f5fb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Restore THREAD_PRIORITY_BACKGROUND.
Change-Id: Id33b3c9d38e04fd61a758b81e46d26ec22a1aae0
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
And improve some logging while we're at it.
Change-Id: Ia1f5c1a451690bfcf5b9af75e855c09164460561
|