summaryrefslogtreecommitdiffstats
path: root/res
Commit message (Collapse)AuthorAgeFilesLines
...
* Initialize LPF with first value, so that we have a betterNick Pelly2011-08-181-1/+1
| | | | | | chance of immediately triggering after 10 samples Change-Id: I7884204c7e3aeaf6191f5bb05f60153f07b800c7
* Latest ShareTap UI: low-pass filter and animations.Martijn Coenen2011-08-188-1/+28
| | | | Change-Id: If0c04284e1e6f1126f85a8bb58014ce553f4e52b
* 0-click UI updateNick Pelly2011-08-174-20/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Implement Tap-to-Share and Tilt-to-Share (DropShare).Nick Pelly2011-08-126-25/+3
| | | | | | | | | | | | | | | | | | | 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
* Latest UX animations and cleanup of P2pAnimationActivity.Martijn Coenen2011-08-118-7/+42
| | | | Change-Id: Ib24ea71f46087b6415204b222213fc9c8348f5fb
* Move 0-click animations to activity.Martijn Coenen2011-08-102-2/+2
| | | | | | | | | - 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
* 0-click animations: "tap to send" and "tilt to send".Martijn Coenen2011-08-082-1/+9
| | | | Change-Id: I771b97bc090ebce07eeb46807c8fb337be703513
* Merge "Update NFC sounds."Nick Pelly2011-08-023-0/+0
|\
| * Update NFC sounds.Nick Pelly2011-08-023-0/+0
| | | | | | | | Change-Id: Ibe3199e532fc2945fd8237ba71c26b32e9df242f
* | Animations for 0-click send success / failure.Martijn Coenen2011-08-021-1/+5
|/ | | | | | | | | | | | | | | | | | This implements the following behavior: - The first part of the animation (the screen scaling down) is always played and finished. - Depending on the result, the following animation will either pop the screen back to front (failure), or "clone and swap" (success). Both animations will be fully played, except if there is a new start() request, in which case they are ended immediately. The main reason to fully play both animations is that the LLCP transfer typically completes very quickly, and with me profile removed, none of the animations would ever be visible. I think the animations are short enough not to be annoying, but we can tweak depending on user feedback. Change-Id: Iecd883fec43fad3eeb35f03b6076562b36a10fef
* Pop up notification on first succesful Tap to Share.Martijn Coenen2011-07-281-0/+6
| | | | Change-Id: Id2ddeea908af1159e5738e52a92f7f9818496761
* Play an animation for outbound NFC P2P.Jeff Hamilton2011-07-261-0/+27
| | | | | | | | | Clean up NFC service sound playing. Cancel P2P tasks when the LLCP link is broken. Bug: 4941390 Change-Id: I0710bc7dd9d09ed47a540cb4739890bcc3a4f905
* Adding content description for accessibility.Svetoslav Ganov2011-07-211-0/+4
| | | | Change-Id: If4b8b63a702de6f048b6476e8f08d6d5442a72d5
* Bluetooth dropbox for out-of-band transfersBen Dodson2011-07-204-0/+13
| | | | | | | | Use dropbox for ME profile. Transiently turn on Bluetooth. Change-Id: I81556a67872e7e0ac7c66c0376549adc5f0c168d
* Play sounds for start, end, and error.Jeff Hamilton2011-06-173-0/+0
| | | | | | | This needs some cleanup to handle the error states better, but works ok for now. Change-Id: I803c339de593acfe5bb7f1007a965f203e0e1a30
* Fix bad merge from gingerbread:Jeff Hamilton2011-05-242-0/+0
| | | | | | Show an icon in the status bar when the NfcAdapter is in card emulation mode. Change-Id: I64805f1b5f9d4bd9784791ed3a67d76b9e3788f3
* am 93d8a69c: Add com.android.nfc.permission.NFCEE_ADMIN.Jeff Hamilton2011-03-301-0/+5
|\ | | | | | | | | * commit '93d8a69ccadfa01b0a5ec3d7edeb921a1da4bce8': Add com.android.nfc.permission.NFCEE_ADMIN.
| * Add com.android.nfc.permission.NFCEE_ADMIN.Jeff Hamilton2011-03-251-0/+5
| | | | | | | | | | | | | | | | | | | | It controls permissions for NFCEE administration and is checked based on the signature of Nfc.apk and the caller. The NFCEE admin permission checking is currently set to check the stock NFC permission. Change-Id: I164511d8f6850034ca0fc1f6f7f75c5ef212fbc2
| * DO NOT MERGE - Updating Nfc assets -- should rename actual assets at some ↵Justin Ho2010-10-284-0/+0
| | | | | | | | | | | | point... Change-Id: I437bbe42eb3f17bd8bbc6e0ca111f6c7557a85d7
* | Removed unused assets.Gilles Debunne2010-11-168-0/+0
|/ | | | Change-Id: I95a11aaabd4e1c03462bc1fbba8bc22af8dde965
* Show an icon in the status bar when the NfcAdapter is in card emulation mode.Jeff Hamilton2010-10-252-0/+0
| | | | Change-Id: Ia54094291726fa4fac152a49b1b182d73ff9958f
* Enable NFC service as an application service.Nick Pelly2010-10-151-0/+1
| | | | | | | | | | | | | Uses ServiceManager.addService() to register the service. Uses BOOT_COMPLETE to start the service. Uses sharedUserId com.android.nfc so that it has a fixed uid. Uses android:persistant so that the process is not killed. Change-Id: If4264baf5dc457ee0a3ad5788c5945e84173b1ea Signed-off-by: Nick Pelly <npelly@google.com>
* NFC application.Nick Pelly2010-10-149-0/+4
NFC application contains the NFC service code that implements NFC API and talks to NFC hardware. This is the first cut at moving NFC service code out of frameworks/base into application service. Android.mk are renamed to Android.mk.hide at this commit because it does not work yet. Signed-off-by: Nick Pelly <npelly@google.com>