History log of /frameworks/base/core/java/android/gesture/GestureOverlayView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
80756e38882720860db52f1fcc21fa1505a02abf 02-Mar-2015 Tor Norbye <tnorbye@google.com> Annotate ARGB integer parameters with @ColorInt

Change-Id: I307f72a382272cf18ddb6b07d9fcb81228568d9a
/frameworks/base/core/java/android/gesture/GestureOverlayView.java
c2a0b4482d7144e8382346ea4c22c7b89368fec0 02-Oct-2014 Neil Fuller <nfuller@google.com> resolved conflicts for merge of ee665151 to lmp-mr1-dev-plus-aosp

Change-Id: I2588c65b7a9fa43f968151a206924a804f0595a7
33253a4baa6279f81a73425b49dfb6abe5f5416e 01-Oct-2014 Neil Fuller <nfuller@google.com> Switch from FloatMath -> Math and Math.hypot where possible

The motivation is an API change: FloatMath is going to be
deprecated and/or removed. Performance is not the goal of
this change.

That said...

Math is faster than FloatMath with AOT compilation.

While making the change, occurances of:

{Float}Math.sqrt(x * x + y * y) and
{Float}Math.sqrt({Float}Math.pow(x, 2) + {Float}Math.pow(y, 2))

have been replaced with:

{(float)} Math.hypot(x, y)

Right now there is no runtime intrinsic for hypot so is not faster
in all cases for AOT compilation:

Math.sqrt(x * x + y * y) is faster than Math.hypot(x, y) with
AOT, but all other combinations of FloatMath, use of pow() etc.
are slower than hypot().

hypot() has the advantage of being self documenting and
could be optimized in future. None of the behavior differences
around NaN and rounding appear to be important for the cases
looked at: they all assume results and arguments are in range
and usually the results are cast to float.

Different implementations measured on hammerhead / L:

AOT compiled:

[FloatMath.hypot(x, y)]
benchmark=Hypot_FloatMathHypot} 633.85 ns; σ=0.32 ns @ 3 trials

[FloatMath.sqrt(x*x + y*y)]
benchmark=Hypot_FloatMathSqrtMult} 684.17 ns; σ=4.83 ns @ 3 trials

[FloatMath.sqrt(FloatMath.pow(x, 2) + FloatMath.pow(y, 2))]
benchmark=Hypot_FloatMathSqrtPow} 1270.65 ns; σ=12.20 ns @ 6 trials

[(float) Math.hypot(x, y)]
benchmark=Hypot_MathHypot} 96.80 ns; σ=0.05 ns @ 3 trials

[(float) Math.sqrt(x*x + y*y)]
benchmark=Hypot_MathSqrtMult} 23.97 ns; σ=0.01 ns @ 3 trials

[(float) Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2))]
benchmark=Hypot_MathSqrtPow} 156.19 ns; σ=0.12 ns @ 3 trials

Interpreter:

benchmark=Hypot_FloatMathHypot} 1180.54 ns; σ=5.13 ns @ 3 trials
benchmark=Hypot_FloatMathSqrtMult} 1121.05 ns; σ=3.80 ns @ 3 trials
benchmark=Hypot_FloatMathSqrtPow} 3327.14 ns; σ=7.33 ns @ 3 trials
benchmark=Hypot_MathHypot} 856.57 ns; σ=1.41 ns @ 3 trials
benchmark=Hypot_MathSqrtMult} 1028.92 ns; σ=9.11 ns @ 3 trials
benchmark=Hypot_MathSqrtPow} 2539.47 ns; σ=24.44 ns @ 3 trials

Bug: https://code.google.com/p/android/issues/detail?id=36199
Change-Id: I06c91f682095e627cb547d60d936ef87941be692
/frameworks/base/core/java/android/gesture/GestureOverlayView.java
617feb99a06e7ffb3894e86a286bf30e085f321a 10-Sep-2013 Alan Viverette <alanv@google.com> Add View constructor that supplies a default style resource

Also updates the constructor of every class that extends View.

BUG: 10676369
Change-Id: Ifaf27bf82028d180afa4931c0e906df88d858ac3
/frameworks/base/core/java/android/gesture/GestureOverlayView.java
46bfc4811094e5b1e3196246e457d4c6b58332ec 17-Aug-2013 Romain Guy <romainguy@google.com> Fix hardware layers lifecycle
Bug #10075732

Hardware layers could survive across EGL terminate events.

Change-Id: Ie8565d55cb29fe6625fa1584d695edfecd37ab5e
/frameworks/base/core/java/android/gesture/GestureOverlayView.java
3a084af2e90849aaa8beb3a610189e3399c63ea0 07-Nov-2012 Kenny Root <kroot@google.com> Correct executable bit for source files

Many media files and source code files were marked as executable in Git.
Remove those.

Also a shell script and python script were not marked as executable.

Change-Id: Ieb51bafb46c895a21d2e83696f5a901ba752b2c5
/frameworks/base/core/java/android/gesture/GestureOverlayView.java
46c53129c6f27c9193ab195a69cb50591b8c1fa2 04-Feb-2010 Romain Guy <romainguy@android.com> Rename GestureUtilities to GestureUtils.
/frameworks/base/core/java/android/gesture/GestureOverlayView.java
51099c5aa63c8349bb7de6d1720480f2c84f404e 11-Sep-2009 Romain Guy <romainguy@android.com> Add @Widget annotation to GestureOverlayView to make it usable in ADT.

Change-Id: I86251f0d35e38460f09779f047aabfa99d2e97ae
/frameworks/base/core/java/android/gesture/GestureOverlayView.java
e705f2c52e683bdad2e845b50df6b6cbed660614 17-Jun-2009 Romain Guy <romainguy@android.com> Make gestures visible again.
/frameworks/base/core/java/android/gesture/GestureOverlayView.java
b973eef289ee0315dbae147eccb1915d3ed08f43 17-Jun-2009 Romain Guy <romainguy@android.com> Fixes #1899284 and #1899287. Give applications more control over the gesture's path.

This change adds new APIs to control the gesture's path by deciding whether the
path should be drawn and by getting the ability to get the Path itself and
draw it differently.
/frameworks/base/core/java/android/gesture/GestureOverlayView.java
cfbe8cf878f60ab2e3e25c09a91227dd85731718 10-Jun-2009 Romain Guy <romainguy@android.com> Fix the way gestures are rasterized to bitmaps.

It was just not working with multiple strokes.
/frameworks/base/core/java/android/gesture/GestureOverlayView.java
0e1ca5749a96778869ef62f939542a61c034209b 09-Jun-2009 Romain Guy <romainguy@android.com> Add support for gestures in Home.

Adds a new animation style for the gestures pad, and de-normalize
the scores in the recognition engine.
/frameworks/base/core/java/android/gesture/GestureOverlayView.java
27a2b50dedd4315b921d502a30ac0fda51fb6a7c 09-Jun-2009 Romain Guy <romainguy@android.com> Add a hidden API to modify the paint used to draw gestures.
/frameworks/base/core/java/android/gesture/GestureOverlayView.java
03f0b21b5a317aa6c0f0cd4d7ac91cabdf379d3e 09-Jun-2009 Romain Guy <romainguy@android.com> Fix several issues in the gestures libraries.

This mostly fixes how gestures libraries are saved and loaded.
Saving a library twice in a row was erasing the entire library,
which was preventing the sketch test app from working propertly.
/frameworks/base/core/java/android/gesture/GestureOverlayView.java
73d2589d6df34307c22f1adcdfa1debf4c780ecc 09-Jun-2009 Romain Guy <romainguy@android.com> Fix multiple strokes support when fade is disabled.
Multiple strokes would always be accepted after the first one.
/frameworks/base/core/java/android/gesture/GestureOverlayView.java
834f0391b50d33a832bd583fd7763a9a12208e8d 05-Jun-2009 Romain Guy <romainguy@android.com> Fixes #1899273.

When a "ghost" stroke was showing, events would be intercepted in ListView. This patch modifies the logic used to detect when to still events: either the current stroke is a gesture, or the previous stroke was a gesture.
/frameworks/base/core/java/android/gesture/GestureOverlayView.java
9af0b4f7be14f2b3ed0ecc843c57ea47ec288e55 03-Jun-2009 Romain Guy <romainguy@android.com> Add new listener to GestureOverlayView. This listener fires whenever the overlay thinks the user is starting a new gesture. This allows Home to snap the workspace back to its original position during a gesture operation.
/frameworks/base/core/java/android/gesture/GestureOverlayView.java
8d78756c160bda736cccef9ca1a6e2d6a159ac42 30-May-2009 Romain Guy <romainguy@android.com> Fix the build.
/frameworks/base/core/java/android/gesture/GestureOverlayView.java
d1c67d42abdf41d10c9a7589da1e0088af1e123a 29-May-2009 Romain Guy <romainguy@android.com> Fixes #1878499.

Ignore touch up events that happen after a gesture was cancelled. This fix also improves performance by ignoring move events that are within the touch threshold.
/frameworks/base/core/java/android/gesture/GestureOverlayView.java
9edc4e8930273d9bb3b5e9cb73c219e012de8ffb 26-May-2009 Romain Guy <romainguy@android.com> GestureOverlayView was not invalidating itself when calling clear(false). Calling clear(true) was working properly. This change also makes clear(false) and clear(true) both behave similarly when fireActionPerformed == true.
/frameworks/base/core/java/android/gesture/GestureOverlayView.java
e7c36dda7ada30e02f3aa9d75f282a53402aeae7 25-May-2009 Romain Guy <romainguy@android.com> Add new orientation attribute to GestureOverlayView. This can be used to prevent the overlay from interfering with vertically/horizontally scrolling views underneath the overlay.
/frameworks/base/core/java/android/gesture/GestureOverlayView.java
ec25df9fbc685be384f8dd764fa224a4d923e9d8 25-May-2009 Romain Guy <romainguy@android.com> Fix drawing bug: opaque invalidations should not be taken into account when the invalidated view is animating. Also add the ability to disable the auto-fade on the GestureOverlayView.
/frameworks/base/core/java/android/gesture/GestureOverlayView.java
ff686ce11e952a9001b1384d8e7d82127b0529a2 25-May-2009 Romain Guy <romainguy@android.com> Change when gestures listeners are fired.
/frameworks/base/core/java/android/gesture/GestureOverlayView.java
82f3495b146b267f3786997752cef25310176349 25-May-2009 Romain Guy <romainguy@android.com> Cleanup Gestures API and make it easier to use in 3rd party apps. Also fix the events processing in the gestures overlay mechanism. Give better control of the various properties of the overlay through XML attributes.
/frameworks/base/core/java/android/gesture/GestureOverlayView.java
d6a463a9f23b3901bf729f2f27a6bb8f78b95248 22-May-2009 Romain Guy <romainguy@android.com> Add a new API to ListView: setGestures(int). This allows developers to enable gestures to jump inside the list or filter it. This change also introduces a new XML attribute to control this API. It also adds the ability to theme the GestureOverlayView from the gestures library. Finally, this adds a new VERSION header to the binary format used to store the letters for the recognizer.
/frameworks/base/core/java/android/gesture/GestureOverlayView.java
db567c390bd56c05614eaa83c02dbb99f97ad9cc 22-May-2009 Romain Guy <romainguy@android.com> Move the Gestures API to the framework in android.gesture.
/frameworks/base/core/java/android/gesture/GestureOverlayView.java