3683 Commits

Author SHA1 Message Date
Jeff Brown
b59ab9f41f Velocity Tracker II: The Revenge of Velocity Tracker
Bug: 5265529

Rewrote the velocity tracker to fit a polynomial curve
to pointer movements using least squares linear regression.
The velocity is simply the first derivative of this polynomial.

Clients can also obtain an Estimator that describes the
complete terms of the estimating polynomial including
the coefficient of determination which provides a measure
of the quality of the fit (confidence).

Enhanced PointerLocation to display the movement curve predicted
by the estimator in addition to the velocity vector.

By default, the algorithm computes a 2nd degree (quadratic)
polynomial based on a 100ms recent history horizon.

Change-Id: Id377bef44117fce68fee2c41f90134ce3224d3a1
2011-09-14 19:16:37 -07:00
Jason Sams
5316b9eead Add RS watchdog.
Change-Id: I4c912beb84fa8a37ada0088049f7776132e994b6
2011-09-13 15:41:01 -07:00
Ben Komalo
6c048260f3 Merge "Revert encryption mapping for device wipes." 2011-09-11 16:48:32 -07:00
Jeff Brown
0e23c2efb0 Merge "Tweak VelocityTracker. Bug: 5265529" 2011-09-09 17:01:25 -07:00
Jeff Brown
581761d4aa Tweak VelocityTracker.
Bug: 5265529

Calculate the velocity using the most recent touch sample as the
point of reference instead of the oldest.  This change more heavily
weights recent touch samples and reduces the sample time window
used for calculation.  This significantly improves the accuracy
of fling gesture detection.

Change-Id: Ib1940933e786e5f6a731552a99bcd9400741d55f
2011-09-09 16:04:09 -07:00
Ben Komalo
13c7197da8 Revert encryption mapping for device wipes.
External storage volumes that were emulated+encrypted needed to have
their encryption mapping removed so that it doesn't try to encrypt the
volume after formatting them.

This just wires through an argument through vold, and assumes that vold
will do the right thing even if there is no encryption mapping set.

Bug: 5017638
Change-Id: I858fae3d12cb415bc34637f520f71220ad9daaad
2011-09-09 14:44:40 -07:00
Romain Guy
f5ad309a60 Merge "Add support for 3 new blend modes when blending with framebuffer: Add Multiply Screen" 2011-09-08 15:34:24 -07:00
Romain Guy
2ffefd48e2 Add support for 3 new blend modes when blending with framebuffer:
Add
  Multiply
  Screen

Change-Id: I92a3c2612c86613087568bf0c03cc6f92b5ded44
2011-09-08 15:33:03 -07:00
Andy McFadden
2d719afe81 Merge "Resurrect verbose binder logging" 2011-09-08 09:56:41 -07:00
Romain Guy
8a3957d43b Add reminder in the code to fix T-junctions
Change-Id: I52b112694f930e641f01fb78dc55412986023411
2011-09-07 17:55:15 -07:00
Andy McFadden
3f8cbfeb07 Resurrect verbose binder logging
Updated the command name lists, and masked off the additional bits in
the command word when doing the name lookup.

Made descriptor values easier to grep for and consistent with kernel
output (i.e. decimal rather than hex).  Attempt to show transaction
descriptors as such (they're in a union with a pointer).

Also, the writeLines() function in Static was using a no-op
logging call to write an iovec.  It looks like all callers are using
N=1, so I just added a log for the first string.

Bug 5155269

Change-Id: I417b8d77da3eb6ee1d2069ba94047210f75738bc
2011-09-07 16:45:03 -07:00
Jamie Gennis
08b997c742 Merge "SurfaceTexture: fix a test deadlock" 2011-09-05 14:51:20 -07:00
Pannag Sanketi
e061795908 Error check in queuebuffer in SurfaceTextureClient
In queuebuffer, if the surfacetexture returns an error,
surfacetextureclient should check for that and pass on the error.

Change-Id: Ie6d70e779fac0702f372eb4df5ecb655280875ee
2011-09-02 17:45:50 -07:00
Stephen Hines
79dd90c7bf Merge "Fix remaining .rs.dtor() issue for RS." 2011-09-01 18:10:37 -07:00
Stephen Hines
466bdc4008 Fix remaining .rs.dtor() issue for RS.
BUG=5186750

Change-Id: I74765b844d28ed780f9c9e291b8e0de94352f74b
2011-09-01 18:07:11 -07:00
Robert Ly
d9e075b003 fix rs docs
Change-Id: Id7253737278d5dc4ef3b6d53cd32dbac1a80103d
2011-09-01 15:46:43 -07:00
Stephen Hines
1716fe47bd Merge "Call .rs.dtor() when tearing down Scripts." 2011-09-01 13:49:29 -07:00
Jason Sams
73d50d3edc Merge "Finish the docs for rs_cl." 2011-09-01 12:33:57 -07:00
Wu-cheng Li
98bb251c8b Add video snapshot camera parameter.
The API is still hidden.

bug:5187868

Change-Id: I59e1b5774ca32be049723d1a0887faa90d8884bb
2011-09-01 13:37:14 +08:00
Stephen Hines
514f9790fd Call .rs.dtor() when tearing down Scripts.
BUG=5186750

This allows us to properly reference count any globals (static or extern) that
need to potentially be cleaned up.

Change-Id: I03d2c38c1e7a4ca96c40003d2eeecb6f395d5835
2011-08-31 17:41:39 -07:00
Jason Sams
2f87f36e84 Finish the docs for rs_cl.
Change-Id: I2edaac2ad07fe1de77af58bec0d9ac4cde181f11
2011-08-31 16:44:18 -07:00
Jason Sams
7d71556b18 Merge "Document the basic RS math functions." 2011-08-31 15:20:43 -07:00
Jason Sams
e79f7687dc Document the basic RS math functions.
Change-Id: If7a1b82eab4c4c82443cf8e57b444865f1e3f6b8
2011-08-31 14:52:08 -07:00
Xia Wang
e124e94ee9 Merge "Integreate surfacetexture test into our continuous test framework." 2011-08-31 09:26:34 -07:00
Xia Wang
1d4274eb4c Integreate surfacetexture test into our continuous test framework.
Change-Id: Ic481f3a431166851947676d676749543c7afbbf7
2011-08-30 20:07:59 -07:00
Mathias Agopian
c21843a8b5 Merge "fix Surface positions are not floats" 2011-08-30 19:24:04 -07:00
Jamie Gennis
32704dcff7 SurfaceTexture: fix a test deadlock
This change fixes a test issue that resulted in a deadlock.

Change-Id: I4729e8dd47c8f5fea49bfeff3cea58627ead6d04
Bug: 5174876
2011-08-30 19:06:40 -07:00
Mathias Agopian
34cb9f2a96 fix Surface positions are not floats
Added Surface.setPosition(float, float) which allows to set a surface's
position in float.

Bug: 5239859
Change-Id: I903aef4ad5b5999142202fb8ea30fe216d805711
2011-08-30 18:51:54 -07:00
Romain Guy
853921fa6d Merge "Text would disappear when the font size is 75px. Bug #5230196" 2011-08-30 14:43:06 -07:00
Romain Guy
799833a8b4 Text would disappear when the font size is 75px.
Bug #5230196

Yes, 75px. Any other font size would work. Don't ask.

Change-Id: I96c7db9926a97f65128d60c8238c3640ee2444ba
2011-08-30 14:41:48 -07:00
Glenn Kasten
b4bf90b40e Merge "Add C++ thread API androidGetThreadSchedulingGroup" 2011-08-29 14:38:52 -07:00
Stephen Hines
46e5a03610 Updated time/type docs for Renderscript.
Change-Id: Idb51c64271c4f2b4705ea932c715683003eff4cc
2011-08-26 19:03:16 -07:00
Mathias Agopian
2370d0a14f make sure to re-initialize SurfaceTexture to its default state on disconnect
this caused problems where the NavigationBar would disapear or be
drawn in the wrong orientation.

Change-Id: I083c41338db83a4afd14f427caec2f31c180d734
2011-08-25 17:03:30 -07:00
Romain Guy
27bf191327 Merge "Optimize display lists" 2011-08-25 14:08:13 -07:00
Romain Guy
04c9d8c2ff Optimize display lists
Remove redundant or useless operations

Change-Id: If989b4eaa9143eef4254c38b39959aeed1f2b9ab
2011-08-25 14:01:48 -07:00
Alex Sakhartchouk
0806d51832 Merge "Fixing the lockless fifo destory bug. Removing unused code from element. build." 2011-08-24 14:25:25 -07:00
Romain Guy
9b9783ad60 Merge "Enable linear filter when scaling bitmaps Bug #5205673" 2011-08-24 11:52:55 -07:00
Romain Guy
631582f7f7 Enable linear filter when scaling bitmaps
Bug #5205673

Change-Id: I8b0f90877df6b6c6757d35dcf6cd14e79e840b96
2011-08-24 11:51:35 -07:00
Mathias Agopian
becc91d6b0 Fix an issue where Surface::lock() would never update the output region
this bug was introduced recently. in some situations Surface::lock()
is not able to preserve the content of the back buffer and needs
to tell the caller to redraw everything.

Bug: 5186460
Change-Id: I14e03939ddfc1b7ad2a8b99ad79435314c60e78e
2011-08-23 21:18:36 -07:00
Romain Guy
6816972eb6 Don't use bilinear filtering on unscaled bitmaps
Bug #5198590

Change-Id: I4333d850501ac849eeeeb247e4178dd469b9de3d
2011-08-22 17:33:33 -07:00
Romain Guy
28d8ff6dbc Move constants to the correct header
Change-Id: Id4bd14f72487bd7156cd2e1930eaf97b47896273
2011-08-22 14:01:34 -07:00
Stephen Hines
c3ccfb8eec Merge "Issue proper parameters to root() calls for RS." 2011-08-19 14:17:47 -07:00
Stephen Hines
1222393e35 Issue proper parameters to root() calls for RS.
BUG=5076887

Change-Id: Ic0ce9d45ee20a99add4c780233c0804d05a55e96
2011-08-19 12:27:07 -07:00
Jason Sams
00c0dcb846 Merge "Fix issue with freeing allocation with circular references." 2011-08-19 11:23:46 -07:00
Alex Sakhartchouk
a8bb921c8b Fixing the lockless fifo destory bug.
Removing unused code from element. build.

Change-Id: I4bb324a666486d6d3fa45cc1995d0e96cb99f70a
2011-08-19 09:43:18 -07:00
Jason Sams
777ec2662e Fix issue with freeing allocation with circular references.
Change-Id: I45871c20a192815eafee77f95e17a025f6dcf9d1
2011-08-18 18:01:33 -07:00
Jamie Gennis
c8f4c6a5d0 Merge "SurfaceTexture: fix queues-to-composer" 2011-08-18 14:31:39 -07:00
Wu-cheng Li
fde00591c6 Merge "Add new camera focus mode FOCUS_MODE_CONTINUOUS_PICTURE." 2011-08-17 22:24:53 -07:00
Jamie Gennis
9b8fc65b03 SurfaceTexture: fix queues-to-composer
This change fixes the NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER query of
Surface and SurfaceTextureClient.  Surface now uses the inherited
SurfaceTextureClient implementation of this query.  SurfaceTextureClient
now queries SurfaceFlinger to determine whether buffers that are queued
to its ISurfaceTexture will be sent to SurfaceFlinger (as opposed to
some other process).

Change-Id: Iff187e72f30d454229f07f896b438198978270a8
2011-08-17 18:19:00 -07:00
Jason Sams
24b3522428 Merge "Fix "return 0" behavior in rs 0 was not properly blocking for the next message." 2011-08-17 17:23:16 -07:00