History log of /frameworks/base/libs/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7fae5216d24ebe67e22777ab933689dbcbc001b9 01-Nov-2012 Chris Craik <ccraik@google.com> Avoid tesselation path when useCenter is set

bug:7458300

The tesselation path doesn't handle sharp joins.

Change-Id: I28bf03f3b72fc584a205daa40934dda17031098f
wui/OpenGLRenderer.cpp
fbba753f62f13a12d9287c67921d1ea60e92768d 24-Oct-2012 Chet Haase <chet@google.com> Merge "Handle offscreen animations correctly" into jb-mr1-dev
3561d062ff01f3455c984e4cfcd101a64a2e902f 23-Oct-2012 Chet Haase <chet@google.com> Handle offscreen animations correctly

A bug in software rendering caused animations on views that are offscreen
to not get drawn, therefore the animation doesn't continue (since old-style
animations depend on the logic in the drawing code to keep running). Fix is
to special case the isAnimating case in ViewRoot to go ahead and schedule
a traversal even if the dirty rect does not intersect with the visible region.

Issue #7396035 Animations starting offscreen don't draw run/end/draw properly (sw rendering only)

Change-Id: Iae25b3a424ddc5a16ba431ecd68cf42d5500db3f
wui/DisplayListRenderer.cpp
41308e2936c768103d0e9c82500e97938d6797f1 23-Oct-2012 Romain Guy <romainguy@google.com> Properly draw the window background on window resize
Bug #7385090

This change gets rid of two silly asumptions:
- That a layer needs to be cleared with opaque black (it shouldn't,
it's already cleared to transparent and the view will cover it up
with its own background)
- The the clip should be dirty at the beginning of a frame only
when the render target is opaque

Change-Id: I415b6d3cab196057fb0281419a53fef601a44e28
wui/OpenGLRenderer.cpp
547e66531d521eb1eadac87edb0f79f8c2f1bbe0 23-Oct-2012 Chet Haase <chet@google.com> Don't null the reference to Bitmap pixels until we're really ready

A change in the VM triggers a native memory error more aggressively than before,
showing that there's a bug in the logic of recycling bitmaps. Since the pixel
memory is allocated on the Java heap, nulling out the reference to that memory
in the Java level Bitmap object can cause that memory to get collected at any time.
Meanwhile, we may have a reference to that memory at the native level for rendering
purposes, causing an error if/when we access that memory after it has been collected
by the VM.

The fix is to avoid setting the reference to the pixels to null unless we are
not referring to it in native code. This is determined at the time we call
recycle() - we return a boolean to indicate whether the native code is still
using the memory. if not, the Java code can null out the reference and allow the
VM to collect it. Otherwise, it will get collected later when the encompassing
Bitmap object is collected.

Issue #7339156 HTML5 tests crash the app (Vellamo)

Change-Id: I3a0d6b9a6c5dd3b86cc2b0ff7719007e774b5e3c
wui/ResourceCache.cpp
wui/ResourceCache.h
7c25aab491707f7324f9941b8cfa9bd2b4b97e76 19-Oct-2012 Romain Guy <romainguy@google.com> Defer layer rendering to avoid stalls
Bug #7326824

When a layer is taken out of the cache and initialized it gets cleared
to prepare it for future rendering. This triggers the following sequence
of operations:

glBindFramebuffer(layer.fbo)
attach texture storage to FBO
glClear()
glBindFramebuffer(defaultFbo)

The clear forces a resolve on tilers which stalls the CPU for a little
while, thus producing jank during animations. This change moves the
clear to the next frame when we know we will have to execute a resolve
anyway.

Change-Id: Ic1939c25df20ed65a4c48dc81ee549b2cd8b6ec3
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/Layer.cpp
wui/Layer.h
wui/LayerRenderer.cpp
wui/LayerRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
b2e2f2470693e78baed20617f989d9a166864ed4 18-Oct-2012 Romain Guy <romainguy@google.com> Take into account the texture layer's transform for clipping
Bug #7370212

Change-Id: Ibdc3161306f54a1cfe66e08458f05ee01a13b1df
wui/Layer.h
wui/OpenGLRenderer.cpp
52439570800891345981c0968b513843edc2b27a 17-Oct-2012 Romain Guy <romainguy@google.com> Enable mipmapping, without a deadlock this time
Bug #7353771

Change-Id: I89a08a58608e374f1c604a26ee0769d5850b2f7b
wui/TextureCache.cpp
wui/TextureCache.h
be29d82f740fea2ed35d89bd9aa4644f4c042762 17-Oct-2012 Chet Haase <chet@google.com> Merge "Correctly adjust clip regions that lie offscreen" into jb-mr1-dev
a33d161250b0787f4e7a3f3f09244451e22496ce 17-Oct-2012 Mathias Agopian <mathias@google.com> workaround to unbreak the build (deadlock during boot)

bug: 7363206
Change-Id: Ie79c309e367ba07336a5299af9fd59c6bd2390e7
wui/TextureCache.cpp
1b85122bd22c4528679ae8bd67077dfc2fdf1847 17-Oct-2012 Romain Guy <romainguy@google.com> Merge "Add API to enable mipmaps on Bitmap Bug #7353771" into jb-mr1-dev
713e1bb9df6bdfc21bd5c40d1a6ecf6c822a4be5 17-Oct-2012 Romain Guy <romainguy@google.com> Add API to enable mipmaps on Bitmap
Bug #7353771

This API can be used when scaling large images down to a small size
to get nicer looking results.

Change-Id: If09087eed36077eee5355f6047a3ca67747d7d9e
wui/OpenGLRenderer.cpp
wui/Texture.h
wui/TextureCache.cpp
wui/TextureCache.h
aa42c9af6ea2158a685ebf9b338e6d2355712268 17-Oct-2012 Chet Haase <chet@google.com> Correctly adjust clip regions that lie offscreen

We were clamping the x/y location of the scissor to 0,0, but not adjusting
the width/height appropriately. This fix adjusts width/height and also clamps
them to 0 to correctly clip out offscreen operations.

Issue #7221524 Top left and top right portions of the screen blanks out after some time

Change-Id: I47f23336ea612409ed86652b9a68e272819ef00e
wui/Caches.cpp
5778cb9a98aacd74c7f915b2d02eccc7189d5946 16-Oct-2012 Romain Guy <romainguy@google.com> Merge "Always use the correct pixel store size Bug #7357394" into jb-mr1-dev
d43b22da291fd08017fac627561091a633c85807 16-Oct-2012 Romain Guy <romainguy@google.com> Always use the correct pixel store size
Bug #7357394

When a bitmap is reused it may change configuration which can lead
to a different pixel store alignment. Our current texture cache
implementation assumes this never happens and keeps the old alignment
which can lead to distorted texture (if the bitmap goes from
ARGB8888 to RGB565 for instance.)

Change-Id: Ic57acf2403411ae4d0924e92f221298350612617
wui/TextureCache.cpp
a92bb4dc9605c86b8773c929412af2dc242b1fa8 16-Oct-2012 Romain Guy <romainguy@google.com> Support clipping in Canvas.drawBitmapMesh()
Bug #7354162

Change-Id: Ifd1d0b365e8a4d88e0ff0629c9ee13f27e1a7331
wui/OpenGLRenderer.cpp
780c12875ce0c0d3fd072484d4b8b3c327cc4f31 04-Oct-2012 Chris Craik <ccraik@google.com> HW Acceleration support for stroked arcs with BUTT caps

bug:4419017

Change-Id: I7371bfb36cef460da861a47d4d945218c6d0c3d0
wui/OpenGLRenderer.cpp
wui/PathRenderer.cpp
wui/PathRenderer.h
3add43ab0e26c9fd44d4dea683092807229eaa59 12-Oct-2012 Chris Craik <ccraik@google.com> Merge "fix stroke sub-hairline threshold" into jb-mr1-dev
2154af209f6d269e29c6e991ce6c1349dfc85b93 12-Oct-2012 Chris Craik <ccraik@google.com> fix stroke sub-hairline threshold

bug:7339943

Change-Id: I4051a03f4cd5bd2c313840208540601fb7a056e2
wui/PathRenderer.cpp
c37f349ecff54f15ed31d57c1b886897c91430af 11-Oct-2012 Romain Guy <romainguy@google.com> Prevent possible divide by 0
Bug #7307304

Should never happen, but eh :))

Change-Id: Ic7a09fd5c7a3622e6b4963f9ee6920e232018e2e
wui/Patch.cpp
41d35aef06c2a570a45474a01ca95a6cb9c29d9e 11-Oct-2012 Romain Guy <romainguy@google.com> Allow 9patches to shrink
Bug #7307304

Change-Id: I1fabf6df99c18c86ab1ec0e1e398a3d6d4098496
wui/Patch.cpp
wui/Patch.h
bb5f014ae805f166328d72cbf826e8f1f17c9daf 08-Oct-2012 Chris Craik <ccraik@google.com> Merge "Use offset in line drawing" into jb-mr1-dev
50ae66a554126fadee2054e0d01a9e57150cedb5 07-Oct-2012 Romain Guy <romainguy@google.com> Work around a possible driver bug
Bug #7296475

When re-enabling the scissor the driver seems to ignore the already
existing scissor box. This change resets the scissor box when the
test state changes.

Change-Id: I3a68433164f99d21fbab769a26c56fe416c1539a
wui/Caches.cpp
b30cb10a0c75c2295e89b1b30d91a73f38ee09fb 06-Oct-2012 Chris Craik <ccraik@google.com> Use offset in line drawing

Partial revert of cb4d6009

bug:7299070
Change-Id: I1db7b035e3015e0f6d15c95aef71ea74dbeca13e
wui/OpenGLRenderer.cpp
5067685ccf6c294a77a3e7f0577190600a0e6238 05-Oct-2012 Christopher Tate <ctate@google.com> Settings (and general) restore fixes

Pro tem, we ignore wifi configuration data when restoring system settings.
This is not ideal, but it *does* mean we do not bounce wifi off and on
again during the extended restore process, which in turn means we don't
interfere with things like the Play Store's download of applications.
We do continue to back up wifi configuration, and will start using that
data again when the new implementation that restores AP configurations
without having to bounce wifi comes to pass.

Also, this CL fixes a longstanding bug in BackupDataInput.skipEntityData()
that was being reproduced reliably once settings restore was skipping
the wifi-related entities in the restore stream.

Bug 7249405

Change-Id: I61520a9a116b66ebdf95734d09d9afd46406df01
ndroidfw/BackupData.cpp
cf8675ee176a375f873792684d38a47f78348dff 02-Oct-2012 Romain Guy <romainguy@google.com> Draw stroked rectangle as meshes instead of textures
Bug #7233734

Stroked rectangles were rendered using software generated textures
which would lead to slightly misaligned results. Instead, let's use
the new convex path rendering code that will do the right thing
(and save a lot of bandwidth.)

Change-Id: Ib95ff581e56c1ecead97e4919298e6fd146ca167
wui/OpenGLRenderer.cpp
bf09ffb4e0dc820aeae56a3e576aed33cab218da 01-Oct-2012 Chris Craik <ccraik@google.com> Quick reject empty paths

bug:7260035

Adding a circle of radius 0 to a path is a no-op in skia, so detect
this case both in the PathRenderer, and in quickReject().

Change-Id: I7a172db49a5d5351b4734b39d4e4ca6379658096
wui/OpenGLRenderer.cpp
wui/PathRenderer.cpp
6a2d17f71342f981c9df1dc5beff33e30eb3ae2b 30-Sep-2012 Chet Haase <chet@google.com> Fix texture corruption

When memory gets low on a device, activities flush everything they can.
Hardware-accelerated activites, such as Launcher, flush GL resources and destroy
the GL context. However, some resources were still hanging around, due to deferred
destruction policies (we don't delete layers until the DisplayLists they are in
are finalized, to ensure we don't deref deleted objects). This meant that we were
referring to obsolete GL data in these objects. in particular, it meant that we might
come around later, after a new GL context was created, and delete a texture object
that was incorrect. We use the layer's "texture id" to refer to the texture underlying the
layer. But if there's a new GL context, then this texture ID is no longer valid, and
we may be deleting the texture that a different object (layer, icon, whatever) is referring
to, because the driver may return that same ID under the new GL context.

The fix is to more aggressively delete things that we know will not be used again
when the GL context is destroyed. In particular, we delete all resources being used
by all DisplayLists at GL context destruction time.

Issue #7195815 Textures corruption on all devices, in many apps

Change-Id: I52d2d208173690dbb794a83402d38f14ea4c6c22
wui/Caches.cpp
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
1d3527354396d3aa48b494fb409d680cce32dc8b 29-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7202950: After clearing data, clear data button is still enabled." into jb-mr1-dev
a3dc55f83ab583e0a66b893c71b849afa046770a 28-Sep-2012 Romain Guy <romainguy@google.com> Fix a couple of rendering issues
Bug #7253839

1. Make sure we don't make GL calls while recording display lists

2. Disable an early and trivial clip optimization in font renderer
when a perspective transformation is used on the Canvas

Change-Id: I3f1052164239329346854f72d0a0d401fbfecf06
wui/DisplayListRenderer.cpp
wui/Matrix.cpp
wui/Matrix.h
wui/OpenGLRenderer.cpp
wui/Snapshot.cpp
wui/Snapshot.h
wui/font/Font.cpp
a7a257d6578cf37723d92b4b90c6ef9caea18528 28-Sep-2012 Hiroshi Lockheimer <hiroshi@google.com> Merge "Plug memory leak that happens when reusing display lists Bug #7195815" into jb-mr1-dev
034de6b1ec561797a2422314e6ef03e3cd3e08e0 28-Sep-2012 Romain Guy <romainguy@google.com> Plug memory leak that happens when reusing display lists
Bug #7195815

We did not reclaim resources when reusing an existing DisplayList to
record a new empty list of commands. This would lead to various memory
leaks: bitmaps, paints, paths, matrices, etc.

This is not a common case but some apps run into this situation,
such as Launcher.

Change-Id: I2eb14ac86a212123f8edbe42b70a7c1c51fa4145
wui/DisplayListRenderer.cpp
f41496f1791d983bf8bbbdf95f72528e59284b39 28-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7202950: After clearing data, clear data button is still enabled.

Count the lib symlink against the app's code size. Also be sure to
look at the new separate lib path for apps, and tweak the size
counting to also count the size of directory entries.

Change-Id: I4b0fd5771f249faa05fd72f08062df885902cc97
iskusage/dirsize.c
a852ff3a4b637e8101c2f54e110467586fe604cf 28-Sep-2012 Romain Guy <romainguy@google.com> Merge changes I9873540e,I4f6c38e3 into jb-mr1-dev

* changes:
Skia's ColorMatrix vector is in the 0..255 range not 0..1 Bug #7248980
Don't use the QCOM_tiled_rendering extension with functors Bug #7247880
6ed9e43879039ce0cbead08d304edbce79a88ced 28-Sep-2012 Romain Guy <romainguy@google.com> Skia's ColorMatrix vector is in the 0..255 range not 0..1
Bug #7248980

Change-Id: I9873540e3bc1ea0526ea0884279a427c0de96006
wui/SkiaColorFilter.cpp
54c1a64d5441a964890b44280e4457e11f4f924a 28-Sep-2012 Romain Guy <romainguy@google.com> Don't use the QCOM_tiled_rendering extension with functors
Bug #7247880

Change-Id: I4f6c38e37b953c58e6107097c613891a49dac766
wui/Caches.cpp
wui/Caches.h
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
16b897c488a740e004bfce7d50b0d7602277fc0b 27-Sep-2012 Chris Craik <ccraik@google.com> Fix rectangle AA offset calculation

bug:4419017

Fixes compiler warning
Handle bezier thresholds with large stroke widths better
Fix sub-hairlines (for scaleX == scaleY)

Change-Id: Ida387483348ee61424b7fba729abca2a88bd68b3
wui/Caches.h
wui/PathRenderer.cpp
b0d135d91f3a41af09fd0281211f18e8452e7fc6 27-Sep-2012 Chris Craik <ccraik@google.com> Merge "Add stroke support to polygonal shape rendering" into jb-mr1-dev
244a0bcadc167ed8519c7e34c62e116c1adc2dbe 27-Sep-2012 Romain Guy <romainguy@google.com> Merge "Make gradients beautiful again Bug #7239634" into jb-mr1-dev
39284b763a09688468ed3799ebd2ebb76ea5dfd5 27-Sep-2012 Romain Guy <romainguy@google.com> Make gradients beautiful again
Bug #7239634

This change passes two matrices to the vertex shader instead of one.
We used to compute the final MVP matrix on the CPU to minimize the
number of operations in the vertex shaders. Shader compilers are
however smart enough to perform this optimization for us. Since we
need the MV matrix to properly compute gradients dithering, this
change splits the MVP matrix into two. This has the advantage of
removing one matrix multiplication per drawing operation on the
CPU.
The SGX 540 shader compiler produces the same number of instructions
in both cases. There is no penalty hit with having two matrices
instead of one. We also send so few vertices per frame that it
does not matter very much.

Change-Id: I17d47ac4772615418e0e1885b97493d31435a936
wui/Program.cpp
wui/Program.h
wui/ProgramCache.cpp
cb4d6009576cf08195dc23f341a3f4939c0878bb 25-Sep-2012 Chris Craik <ccraik@google.com> Add stroke support to polygonal shape rendering

bug:4419017
bug:7230005

- Adds support for stroke/strokeAndFill for shapes without joins
- Fixes path-polygonization threshold calculation
- Fixes rendering offset (now only used for points)
- Several formatting fixes

Change-Id: If72473dc881e45752e2ec212d0dcd1e3f97979ea
wui/Caches.cpp
wui/Caches.h
wui/FontRenderer.cpp
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/PathRenderer.cpp
wui/PathRenderer.h
2ea1045a0148cac45f873fc6324682044d599f73 26-Sep-2012 Romain Guy <romainguy@google.com> Merge "Applies a layer's color filter even when the layer is a quad Bug #7238059" into jb-mr1-dev
e529ece37f664f8947a1d4a1e27d679f6f286388 26-Sep-2012 Romain Guy <romainguy@google.com> Applies a layer's color filter even when the layer is a quad
Bug #7238059

Change-Id: Ib4736a419bc1a9a67a01d090516ed049fe3aebca
wui/OpenGLRenderer.cpp
98d3a64ffa13596e3ea9125bbff40c51ec96bd8d 26-Sep-2012 Chet Haase <chet@google.com> Assign default texture id of 0

Some logic depends on a default value of 0, which was not being
assigned.

Issue #7195815 chrome url bar is corrupted
Issue #7190656 Textures corrupted on mr1

Change-Id: I346b7b76e885bf8f04740e711fd88f917a5418c7
wui/Layer.cpp
wui/Layer.h
wui/LayerRenderer.cpp
wui/LayerRenderer.h
wui/Texture.h
17ef62cc1f9d092669af0fed465a9a77e0dc1a4f 26-Sep-2012 Mathias Agopian <mathias@google.com> fix a possible dead-lock when clearing caches

Bug: 7195815
Change-Id: I8e226b7ec445f9f4fe46ae216ef7cc41efc5a0fd
wui/Caches.cpp
54643d72f86d0ee0b23e3643ac9257d52ddfae6b 26-Sep-2012 Mathias Agopian <mathias@google.com> make sure to destroy GL objects on the GL thread

Bug: 7195815
Change-Id: I5bcac61cd0b903d1ccca0754fdb9cb1023efbe0f
wui/Caches.cpp
wui/ResourceCache.cpp
cefbd1438c9054e3a34b4ab93b4b26b427604cb1 26-Sep-2012 Dave Burke <daveburke@google.com> Merge "Revert "Deleting objects on the wrong thread is a silly idea Bug #7195815"" into jb-mr1-dev
56257aff8a55c847be72be9924c392033fd8151d 26-Sep-2012 Dave Burke <daveburke@google.com> Revert "Deleting objects on the wrong thread is a silly idea Bug #7195815"

This reverts commit 8a1374946a928fcba7495c87ff6adda327fdfb9f

Change-Id: I53564a6c531d334afcc1fce0bea1e57ae266aa78
wui/Layer.cpp
wui/Layer.h
wui/LayerRenderer.cpp
wui/LayerRenderer.h
wui/ResourceCache.cpp
6e065a729dbf08f99209a7710da80442a394ec0d 26-Sep-2012 Jeff Sharkey <jsharkey@android.com> Merge "Handle multi-user mountObb() requests." into jb-mr1-dev
4fbbda4cecb078bd3867f416b02cc75f5455284f 25-Sep-2012 Jeff Sharkey <jsharkey@android.com> Handle multi-user mountObb() requests.

Since emulated external storage paths differ based on execution
context, carefully fix up paths for various use-cases:

1. When sending paths to DefaultContainerService, always scope
OBB paths as belonging to USER_OWNER.
2. When sending paths to vold, always build emulated storage paths
visible to root.
3. Always use the original untouched path when talking with apps.

Mount OBB containers using shared app GID, so that an app can read
the mount point across users.

Handle legacy paths like "/sdcard" by resolving the canonical path
before sending to MountService. Move tests to servicestests, and
add tests for new path generation logic.

Bug: 7212801
Change-Id: I078c52879cd08d9c8a52cc8c83ac7ced1e8035e7
torage/IMountService.cpp
8a1374946a928fcba7495c87ff6adda327fdfb9f 26-Sep-2012 Romain Guy <romainguy@google.com> Deleting objects on the wrong thread is a silly idea
Bug #7195815

Turns out that multi-threading is hard.

Change-Id: Ib0b4bd6dc3caea27f7ced22cbb363bb955fe58ab
wui/Layer.cpp
wui/Layer.h
wui/LayerRenderer.cpp
wui/LayerRenderer.h
wui/ResourceCache.cpp
ef09a210dd6ea481158b7028ec2424a7f5769ed2 25-Sep-2012 Romain Guy <romainguy@google.com> Don't destroy the same texture twice
Bug #7221449

SurfaceTexture already deletes the GL texture when detachFromContext
is invoked. The newly introduced refcount would casue the Layer
object to be destroyed later and attempt to delete the GL texture
again. By the time the second cleanup occurs, the texture name
might have been reused by somebody else, resulting in erroneous
behaviors.

Change-Id: I257c589fea64b34c00f46fbfaa7732e6854a5e41
wui/Layer.h
e83221c547cf2038752e5378e72e49a62cfd9954 25-Sep-2012 Romain Guy <romainguy@google.com> Fix alpha channel computation with ColorMatrixColorFilter
Bug #7222476

There were two issues:
- Blending was ignored with color filters
- The addition vector of a color filter was treated as integer values
instead of float values

Change-Id: Id94065704a30ee8aaaa5724a9f3a3cff7c50ced7
wui/OpenGLRenderer.cpp
wui/ProgramCache.cpp
wui/SkiaColorFilter.cpp
908a43234aca51af5021249c03030cec6b36417f 25-Sep-2012 Jean-Baptiste Queru <jbq@google.com> Merge into jb-mr1-dev

Change-Id: I7b777c7a4818d699582419d2eb4fc1f5cc0f4f46
87e2f757be9b24d369bab354e37c276e851b1fc7 24-Sep-2012 Romain Guy <romainguy@google.com> Add a property to disable libhwui's scissor optimization
Bug #7158326

When scissor optimization is enabled, OpenGLRenderer will attempt to
minimize the use of scissor by selectively enabling and disabling the
GL scissor test.
When the optimization is disabled, OpenGLRenderer will keep the GL
scissor test enabled and change the scissor rect as needed.
Some GPUs (for instance the SGX 540) perform better when changing
the scissor rect often than when enabling/disabling the scissor test
often.

Change-Id: Idb68862e287a23358f9188d577ae0f86161902fd
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Properties.h
6b3292ce5b3908c7433503f64c852cf2b27718ed 24-Sep-2012 Romain Guy <romainguy@google.com> Merge "Avoid deadlock when deleting layers Bug #7217459" into jb-mr1-dev
97dc9172b0e58979c63de0dedbab656399a62281 24-Sep-2012 Romain Guy <romainguy@google.com> Avoid deadlock when deleting layers
Bug #7217459

Change-Id: I12bfa6c30c5030bd1b23ea6a3ce64240ab1dfba3
wui/Layer.cpp
wui/Layer.h
wui/ResourceCache.cpp
wui/ResourceCache.h
d392b87e3d30cd4f0836623d848019c5724efce8 24-Sep-2012 Romain Guy <romainguy@google.com> Merge changes Ib0a0b7d1,Ibec4b2aa into jb-mr1-dev

* changes:
Fix overdraw debug on QCOM
Make sure we never bind to texture #0 Bug #7195815
4285de3c8bc77856a2df98894f74bb7333f1d348 23-Sep-2012 Romain Guy <romainguy@google.com> Fix overdraw debug on QCOM

Disable the use of the tiling extension when overdraw debug is
turned on.

Change-Id: Ib0a0b7d1998146aa0c7efef2d3822f9997efb123
wui/Caches.cpp
574cf6070d34e66dfd6f2006937986eddd1f09e7 23-Sep-2012 Romain Guy <romainguy@google.com> Make sure we never bind to texture #0
Bug #7195815

Change-Id: Ibec4b2aa4c580419eb5eb61adae6c9c960694d0c
wui/font/CacheTexture.h
b92d8f7979c29c7c09932578a11b2f8d6eec1d90 21-Sep-2012 Chet Haase <chet@google.com> Optimize glyph cache texture uploads

Only upload the changed area of the glyph cache, not the entire
bitmap. Note that we can't do the full-on optimization here of copying a sub-rect
of the bitmap because of GL ES 2 limitations, but we can at least copy the
horizontal stripe containing the dirty rect, which can still be a big
savings over uploading the entire bitmap.

Issue #7158326 Bad framerates on MR1 (Mako, Manta, Prime)

Change-Id: Iab38d53202650f757ead4658cf4287bdad2b3cb9
wui/FontRenderer.cpp
wui/font/CacheTexture.cpp
wui/font/CacheTexture.h
8e586f61dd4f7fa53b01e63ac779ffc7cde05bdd 22-Sep-2012 Romain Guy <romainguy@google.com> Merge "Add support for a new developer setting: overdraw debugging" into jb-mr1-dev
7c450aaa3caac2a05fcb20a177483d0e92378426 22-Sep-2012 Romain Guy <romainguy@google.com> Add support for a new developer setting: overdraw debugging

Change-Id: I350ba4486577c3289f82c20938f7a35138778727
wui/Caches.cpp
wui/Caches.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Properties.h
wui/Stencil.cpp
wui/Stencil.h
dbb261455b1b8d2fdf4f0f8ad84ddb09dda1ed9b 22-Sep-2012 Chet Haase <chet@google.com> Merge "Optimize shaders for dithered gradients" into jb-mr1-dev
a1d12dd619c86c9ac121a3095ff5e5633c11e876 21-Sep-2012 Chet Haase <chet@google.com> Optimize shaders for dithered gradients

It's faster to compute a dither calculation in the vertex shader and use
a varying (letting the GPU interpolate the fragment values) than to perform
that calculation in the fragment shader as part of a texture lookup.

Issue #7207600 Prime mr1 shader performance issues
Issue #7158326 Bad framerates on MR1 (Mako, Manta, Prime)

Change-Id: I15789582a6e9e2d8b9dd22aa5b0f72f0ba1cce7f
wui/Dither.cpp
wui/ProgramCache.cpp
059aedf808c8b9b3da1457eef52f3d477878d50b 22-Sep-2012 Romain Guy <romainguy@google.com> Merge "Finish this bit before I forget." into jb-mr1-dev
f7e52d92b41adf460089625ea47bfea2ed7e6296 22-Sep-2012 Romain Guy <romainguy@google.com> Finish this bit before I forget.

This code is not enabled in current builds.

Change-Id: I488ec9e94889efbf2c8f3312abfed4298a76b7f1
wui/Stencil.cpp
61d37041ac76a95aedb98d3550bb5efa33d898a1 21-Sep-2012 Chris Craik <ccraik@google.com> Merge "Polygonal rendering of simple fill shapes" into jb-mr1-dev
11cb642756093a4af901b1525375b1eb2b5c3e2b 21-Sep-2012 Romain Guy <romainguy@google.com> Update layers in a single batch at the beginning of a frame
Bug #7186819

Change-Id: Ice5926dfedfb3be3a3064e65008dafa2852407da
wui/LayerRenderer.cpp
wui/LayerRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
57b5268708c3b974296c7d4e58a02a957979224a 21-Sep-2012 Romain Guy <romainguy@google.com> Optimize tiling management
Bug #7186819

Change-Id: Iebc42a6e9c96ad5605fbbe1539aa887695d2e829
wui/Caches.cpp
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
710f46d9d6a5bf9ea1c1833384caf61e1934124f 18-Sep-2012 Chris Craik <ccraik@google.com> Polygonal rendering of simple fill shapes

bug:4419017

Change-Id: If0428e1732139786cba15f54b285d880e4a56b89
wui/Android.mk
wui/LayerRenderer.cpp
wui/Matrix.cpp
wui/Matrix.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/PathRenderer.cpp
wui/PathRenderer.h
wui/Program.h
wui/ProgramCache.cpp
2b7028eabac80cec170572bc0e945a1d4224e595 20-Sep-2012 Romain Guy <romainguy@google.com> Add support for QCOM_tiled_rendering
Bug #7186819

This optional OpenGL extension can be used by tiled renderers to optimize
copies from main memory to tiles memory.

Change-Id: Id4a5d64e61ad17f50e773e8104b9bf584bb65077
wui/Caches.cpp
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
35643ddc689913f5b5f80ceed864470d987bd6cd 19-Sep-2012 Romain Guy <romainguy@google.com> Minimize state changes when updating layers

Change-Id: I407fcc80bd3178f9f09a3b379ceb7f7ce0749e08
wui/Caches.cpp
wui/LayerRenderer.cpp
wui/LayerRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
0990ffbc4d407e174423a4a04b5902ed83f71db5 18-Sep-2012 Chet Haase <chet@google.com> Fix GL shader bugs

Fixing errors in emitted shader code that caused GL errors
at runtime

Change-Id: I267a84398a81329a6688b292505f8779bd750ad1
wui/Program.cpp
wui/ProgramCache.cpp
a8a402f8ad1549e23f4238786269bd548b6b445d 18-Sep-2012 Chet Haase <chet@google.com> Merge "Fix bad shader code" into jb-mr1-dev
1c5c206953d673f8424908c77c974c06d5b99a9c 18-Sep-2012 Chet Haase <chet@google.com> Fix bad shader code

Shader code missing "=" in a couple of cases.

Change-Id: Iff8a99a0ccb2903c30e2bdb2f698ef9b2e03d5d1
wui/ProgramCache.cpp
f74d2f2fe8a157bee25516d2a6ae3e329507cb2c 17-Sep-2012 Chet Haase <chet@google.com> Merge "Fix occasional crash bug with layers" into jb-mr1-dev
603f6de35f21d74ae242d52d501f4f5c25ff4f4c 15-Sep-2012 Chet Haase <chet@google.com> Fix occasional crash bug with layers

Launcher occasionally crashes with a stack trace indicating that the memory
of a Layer object is corrupt. It is possible for us to delete a Layer
structure and then, briefly, use it to draw a DisplayList again before
that DisplayList gets recreated (without the layer that got deleted).

When this happens, if the memory got corrupted, it's possible to crash.

The fix is to add Layer to the other objects which we currently refcount
(bitmaps, shaders, etc.). Then instead of deleting a Layer, we decrement the
refcount. We increment when creating it, then increment it again when it's
referenced from a DisplayList. Then we decrement the refcount instead of
deleting it, and decrement when we clear a DisplayList that refers to it.
Then when the refcount reaches 0, we delete it.

Issue #6994632 Native crash in launcher when trying to launch all apps screen

Change-Id: I0627be8d49bb2f9ba8d158a84b764bb4e7df934c
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/Layer.cpp
wui/Layer.h
wui/LayerCache.cpp
wui/LayerRenderer.cpp
wui/OpenGLRenderer.cpp
wui/ResourceCache.cpp
wui/ResourceCache.h
a938f569ce206c1ed68d736181016b5b708c0084 14-Sep-2012 Romain Guy <romainguy@google.com> Fix modulation and gamma correction issues

Modulation is normally enabled in a shader when drawing with an alpha
mask (A8 texture.) Modulation is used to do one of two things:

- Colorize the primitive (to draw text in red for instance)
- Apply extra translucency (50% translucent circle filled with a bitmap)

The current implementation has four issues:

1. Unnecessary work is performed by assigning the modulation color
to vec4 fragColor early in the shader
2. The modulation color's alpha is applied twice when the primitive
is drawn with an SkShader
3. The decision to modulate is wrong and triggers when any of the
RGB channels is < 1.0. Only the alpha channel needs to be taken
into account to make the decision
4. Gamma correction is not applied properly

This change addresses all four issues above.

Change-Id: I73fcc74efc4b094bf2d1b835f10ffaa2ea4b9eb9
wui/Program.h
wui/ProgramCache.cpp
494ac35c27a0960f57b00bf8457f1956ecf149a2 14-Sep-2012 Romain Guy <romainguy@google.com> Merge "Multiply alpha for AA as late as possible" into jb-mr1-dev
85ef80d8902afe8d26cb75fa7837fd9e6d019620 14-Sep-2012 Romain Guy <romainguy@google.com> Foundation for tiling optimization

Change-Id: I4db32a4749f196472ba0dde7e102439d2ba4a3a7
wui/Caches.cpp
wui/Caches.h
wui/Extensions.h
9f44a13a125980fee92cdc76376063129f0eebc9 14-Sep-2012 Chris Craik <ccraik@google.com> Multiply alpha for AA as late as possible

Should be done after all color computation

Change-Id: Iaadd565f7d2263f111f6841a00e7c341025833d3
wui/ProgramCache.cpp
45e4c3df6c00ac98ff6144de9af574877d4fff19 12-Sep-2012 Romain Guy <romainguy@google.com> Discard framebuffer commands when we redraw the entire buffer

Change-Id: I32e3014832cbd3bdbace8c3d2206eb20a2002d64
wui/DisplayListRenderer.cpp
wui/LayerRenderer.cpp
wui/OpenGLRenderer.cpp
df46c637550b4c6f0543574cfbd544329f48f5c7 11-Sep-2012 Romain Guy <romainguy@google.com> Merge "Prevent degenerate 9-patches from drawing out of bounds Bug #7137292" into jb-mr1-dev
70561df470c31513056df181571632851fd0d081 11-Sep-2012 Romain Guy <romainguy@google.com> Prevent degenerate 9-patches from drawing out of bounds
Bug #7137292

Change-Id: I371e94899445d2f3c6794d5c0aee8faa514d3c2c
wui/Patch.cpp
beb8bd0db28d8c5cad2a258f2ba2f3b8b76cf037 10-Sep-2012 Chet Haase <chet@google.com> Reset GL buffer state after functor invocation

Functors in WebView were binding to different buffers than we
assumed in the toolkit, eventually causing a crash due to improper
dereferencing in the currently bound buffer. Fix is to reset state
after invoking functors.

Issue #6666279 Native crash in Currents, mostly on Nakasi

Change-Id: I3697812d83613fffc9193daa99beea4dbf26474a
wui/OpenGLRenderer.cpp
4aacf93d40b4be82aa35bf164d6fd6536c8b2a50 08-Sep-2012 Romain Guy <romainguy@google.com> Merge "Fix memory corruption in LayerRenderer::copyLayer" into jb-mr1-dev
e49d7ec36132f33b7c9e2c044ab9dd3585aa3747 08-Sep-2012 Romain Guy <romainguy@google.com> Fix memory corruption in LayerRenderer::copyLayer

The pixel store pack alignment was not set for the source texture,
causing a write to occur outside of the destination bitmap's
bounds.

Change-Id: Iaa5767acf7b5943fbc2765c3810a142f06b1a796
wui/LayerRenderer.cpp
dc531fa7d4ec545ace1b3daae0849d3101102e49 08-Sep-2012 Chris Craik <ccraik@google.com> Merge "Handle different x, y scales in drawLines AA path" into jb-mr1-dev
75040f8a7727f18bb33da23696a32a0760926ff2 07-Sep-2012 Chris Craik <ccraik@google.com> Handle different x, y scales in drawLines AA path

bug:7114630

Fixes different x, y scales, and fixes boundaryWidthProportion to be from
center, not edge.

Also adds drawLine tests that previously drew blurry.

Change-Id: I2b648a60361ad3931eac67647b9b27909525ee1e
wui/OpenGLRenderer.cpp
89b3f48fa3ccaf9a05628f0e540c1f94716809f7 07-Sep-2012 Chet Haase <chet@google.com> Merge "Enable changing properties of layer paint" into jb-mr1-dev
55e6b77bda7da1684ca32493d9e03184bd441dab 07-Sep-2012 Romain Guy <romainguy@google.com> Merge "Reduce the number of locks acquired by display lists" into jb-mr1-dev
58ecc204fbcacef34806290492384677a330d4d4 07-Sep-2012 Romain Guy <romainguy@google.com> Reduce the number of locks acquired by display lists

Change-Id: I1123aae0355de84db705bb75042c7083fc69c9f2
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/ResourceCache.cpp
wui/ResourceCache.h
d15ebf25c595b855f6978d0600218e3ea5f31e92 05-Sep-2012 Chet Haase <chet@google.com> Enable changing properties of layer paint

Previously, to draw a layered view with a changed Paint object for the
drawLayer operation, you'd have to invalidate the parent view, to get the
native DisplayList to pick up the new Paint properties. This change adds
API and functionality so that the developer can call setLayerPaint(), which
does the proper invalidation (lightweight, doesn't cause redrawing the view).

Issue #6923810 Make it easy to efficiently animate a layer's Paint

Change-Id: I7fea79788d50f6d9c86dd5e5b2a4490cb95142bb
wui/Android.mk
wui/DisplayListRenderer.cpp
wui/Layer.cpp
wui/Layer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
01fcb728940c12498ab2c7503fe86a849725ea12 07-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Use "ldrtl" and "ldltr" config qualifiers for RTL / LTR resources" into jb-mr1-dev
9147cd4ac56d53dec6da1ef13dd04ba1eec1a7df 07-Sep-2012 Chris Craik <ccraik@google.com> Fix m11 to be Y scale instead of X

bug:7114630

Fixes different X and Y values resulting in blurry lines/rects.

Change-Id: I3eb244e0cf769efa6b38d08741cf37d0bf62b786
wui/OpenGLRenderer.cpp
8a802dbdabdfd27692c2e38b2c3adafe95566106 05-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Use "ldrtl" and "ldltr" config qualifiers for RTL / LTR resources

- we cannot use "rtl" / "ltr" qualifiers as they can conflict with ISO-639 Alpha-3
codespace which uses 3 letters for identifying a language code (and could use either
"rtl" or "ltr" strings for defining a language in the future).

- we are using instead "ldrtl" for RTL and "ldltr" for LTR resources. Those qualifiers
are defined by more than 3 chars and outside of what is defined into ISO-639. They
are also more understandable as "ld" prefix is for "layoutdirection"

Change-Id: Id43e948103707e09bef63ebd54ac1779dde58e72
ndroidfw/ResourceTypes.cpp
378d131e65348d199db36c21ba7156542bbf0045 06-Sep-2012 Chris Craik <ccraik@google.com> Merge "Varying-based AA rect drawing" into jb-mr1-dev
6ebdc114e0d72137394f02bc8ffe9d7a782a65c4 01-Sep-2012 Chris Craik <ccraik@google.com> Varying-based AA rect drawing

Instead of calculating opacity from relative position in the shader, use a
shader varying to do this computation for us.

bug:5045101

Also adds a test to HwAccelerationTest to show incorrect antialiasing in
scaled drawAARect / boundarySize calculation.

Change-Id: Icdc41acb01dc10ce354834f8389a5aed2f439162
wui/Caches.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Program.h
wui/ProgramCache.cpp
521dc51fd411285f900c083a4fe560d2ed7c3f8a 05-Sep-2012 Romain Guy <romainguy@google.com> Don't invalidate all the glyphs when flushing large textures

FontRenderer::flushLargeCaches identifies the large textures used to
cache glyphs and visits all the known fonts to mark their glyphs
invalid if they belong to one of these large textures.

Unfortunately, Font::invalidateTextureCache had a logic error
which would make it mark *all glyphs* as invalid, not matter
what texture they belong to. This means that any large cache
flush would cause all glyphs to be invalidate, thus forcing
the rendering system to recreate them on the next draw.

Font::invalidateTextureCache is supposed to behave this way:
- If the specified cacheTexture is NULL (default value), mark
all glyphs as invalid (see FontRenderer::flushAllAndInvalidate())
- If cacheTexture is *not* NULL, invalidate only the glyphs for
which glyph.cacheTexture == cacheTexture.

The previous condition read:

if (cacheTexture || glyph.cacheTexture == cacheTexture)

This test *always* passes.

Change-Id: I418886cb594c81c6178d0f9e9953d975e991cf22
wui/font/Font.cpp
6c8c6d9d44f97ebfba9c6d997665ad58ac39273a 05-Sep-2012 Romain Guy <romainguy@google.com> Merge "Correctly check the height of a glyph prior to caching it" into jb-mr1-dev
e43f785b7ff3fdf75f6d1c92282ebca6db191f2f 05-Sep-2012 Romain Guy <romainguy@google.com> Correctly check the height of a glyph prior to caching it

Change-Id: Iaf3977afc20fcde65bfda7b9e092b3e723241684
wui/font/CacheTexture.cpp
wui/font/CacheTexture.h
d84aaa23a53b57834b0722ad36c460833dc4823c 05-Sep-2012 Chris Craik <ccraik@google.com> Merge "Fix line drawing path to use proportional distance from center" into jb-mr1-dev
c83f982804e39b957fbef5bc3ecab163e03b216e 05-Sep-2012 Romain Guy <romainguy@google.com> Merge "Code cleanup in FontRenderer" into jb-mr1-dev
8087246d9964b11de8ce116bc63b156faa4197e0 05-Sep-2012 Romain Guy <romainguy@google.com> Code cleanup in FontRenderer

Change-Id: Ic788721c224a77f0a76f4cd6d9817b62e390a5a7
wui/FontRenderer.cpp
wui/FontRenderer.h
wui/font/CacheTexture.h
wui/font/Font.cpp
wui/font/Font.h
2ecaedd96cdcd0c83afa042cb8ff8e4358afa3cf 05-Sep-2012 Romain Guy <romainguy@google.com> Merge "Small code cleanup in FontRenderer" into jb-mr1-dev
9b1204baf4740b4d443e72157dea98571cf84e1f 05-Sep-2012 Romain Guy <romainguy@google.com> Small code cleanup in FontRenderer

Change-Id: I09c00debe9b0b4f45b232cae402ed19bdaeabfe4
wui/FontRenderer.cpp
wui/FontRenderer.h
wui/font/CacheTexture.cpp
wui/font/CacheTexture.h
wui/font/Font.cpp
85399cc606a456e7b439352aea58d4b679d8f1ac 05-Sep-2012 Romain Guy <romainguy@google.com> Merge "Refactor FontRenderer.cpp" into jb-mr1-dev
035ce2ca92742894f7f906c93d7d217c647aa19a 05-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Add support for "-rtl" in resources" into jb-mr1-dev
8f5ad7657b6c7cdb8927d7da5140602b68b450ac 04-Sep-2012 Chris Craik <ccraik@google.com> Fix line drawing path to use proportional distance from center

boundaryWidth and boundaryLength are now distance from center, instead of
distance from edge, in order to avoid unnecessary calculation in the shader. New
calculation of these matches drawAARect.

Change-Id: I1c7f576a97a6f0ce00d521661fd56fb62e05e6f2
wui/OpenGLRenderer.cpp
9f5dab3fc228fa11c32b483e6101ec086895a32b 04-Sep-2012 Romain Guy <romainguy@google.com> Refactor FontRenderer.cpp

FontRenderer.h defined several classes and structures that now live
in the font/ folder. This will make the code easier to read and
maintain.

Change-Id: I3dc044e9bde1d6515f8704f5c72462877d279fe2
wui/Android.mk
wui/FontRenderer.cpp
wui/FontRenderer.h
wui/font/CacheTexture.cpp
wui/font/CacheTexture.h
wui/font/CachedGlyphInfo.h
wui/font/Font.cpp
wui/font/Font.h
wui/font/FontUtil.h
0baaac5e9adf3ee280ae1239e2e58754a9d2b099 01-Sep-2012 Romain Guy <romainguy@google.com> Revert "Revert "Add more support for transformed clip rects and paths""

This reverts commit a8557d2169e14997637f57bc897640c8882d4a46.

Change-Id: I36d4883d548fc47ba6c0b4a42012107d0d2f85a6
wui/Android.mk
wui/Caches.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Snapshot.cpp
wui/Snapshot.h
wui/Stencil.cpp
wui/Stencil.h
a8557d2169e14997637f57bc897640c8882d4a46 01-Sep-2012 Mathias Agopian <mathias@google.com> Revert "Add more support for transformed clip rects and paths"

this introduced a dead lock in GradientCache's ctor.

This reverts commit dfe082f63e94cde9aee271c94d13de5e7217e036.

Bug: 7096001
Change-Id: I57b8bbab11fb7cb502fa58e3bbf5d19864db874f
wui/Android.mk
wui/Caches.h
wui/GradientCache.cpp
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Snapshot.cpp
wui/Snapshot.h
wui/Stencil.cpp
wui/Stencil.h
703bd32647556524fa8cadbe869c8a8d734640ef 01-Sep-2012 Romain Guy <romainguy@google.com> Merge "Add more support for transformed clip rects and paths" into jb-mr1-dev
dfe082f63e94cde9aee271c94d13de5e7217e036 01-Sep-2012 Romain Guy <romainguy@google.com> Add more support for transformed clip rects and paths

Change-Id: I41791b1e1bffef77d503dc9e52428395d2309688
wui/Android.mk
wui/Caches.h
wui/GradientCache.cpp
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Snapshot.cpp
wui/Snapshot.h
wui/Stencil.cpp
wui/Stencil.h
eb32a499194119b3783b86c925172df02e5d2685 31-Aug-2012 Chet Haase <chet@google.com> Paramaterize and adjust the glyph cache sizes

Add new parameters for the texture size used for the larger, fallback caches.
Bump up the defaults in some situations.

Issue #7045164 Adjust cache sizes for manta

Change-Id: I562118ce785d7f8b6e445178878672e9709d25f2
wui/FontRenderer.cpp
wui/FontRenderer.h
wui/Properties.h
c0c1c94e2df33ca8b85bb25fa89bf8379f9a6415 30-Aug-2012 Chet Haase <chet@google.com> Merge "Avoid thrashing the glyph cache during the precache phase" into jb-mr1-dev
f942cf10e04567f6b9456f6258e29c803b8bfb41 30-Aug-2012 Chet Haase <chet@google.com> Avoid thrashing the glyph cache during the precache phase

It is unlikely, but possible, to draw so many glyphs in a frame
(especially of the glyphs are quite large) that the cache starts flushing
itself to fit the later glyphs in. This causes unnecessary thrashing, because
when we actually draw the frame, we will again need to flush to fit the
earlier glyphs in, and then flush again to fit the later ones in.

It is better to avoid thrashing the cache at the precache phase, and wait
until we actually draw the glyphs that do not fit to do any eviction of
the earlier glyphs.

This change simply notes when we are in the preaching phase, and avoids flushing
the cache when a glyph does not fit.

Issue #7081725 avoid thrashing cache during DisplayList recording

Change-Id: I230410ab5b478091b1032fa99dc1752acf868bbe
wui/FontRenderer.cpp
wui/FontRenderer.h
63f2fcae3e7089ce0e27837a5152392d503f41eb 30-Aug-2012 Chet Haase <chet@google.com> Merge "Fix bug with Fbo layer clipping" into jb-mr1-dev
7808581ca3b462fb187aed6b0d1b86fb83a8a215 30-Aug-2012 Romain Guy <romainguy@google.com> Merge "Pre-multiply color components for 2-stop gradients Bug #7033344" into jb-mr1-dev
d679b57ef279239cf11bb6c9bd14fb99b07971c9 30-Aug-2012 Romain Guy <romainguy@google.com> Pre-multiply color components for 2-stop gradients
Bug #7033344

Change-Id: Ia168501f1dc56ba7a1bb0c55078320432309a66a
wui/GradientCache.cpp
wui/SkiaShader.cpp
wui/SkiaShader.h
d48885a6c8cd27a8a62552c33b5282e9882e19f6 29-Aug-2012 Chet Haase <chet@google.com> Fix bug with Fbo layer clipping

Rendering views with alpha causes the creation of Fbo layers. These layers
are created at the size of the view, clipped by the current clip rect.
However, if the view lies completely outside the current clip rect, the
Fbo layer is created at the full size of the view and copied into place
outside of its container, causing artifacts like notification items showing
up outside the notification panel.

Fix is to note when the intersect() operation fails and to set an empty bounds
on the layer.

Issue #7069881 Bottom notification sometimes shows below bottom of notification panel shade

Change-Id: Ib52f7c4e503bbe9204cb808755ab269195aa94c1
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
a798b95a9ef328720febec72d01462cd97e3d4c7 28-Aug-2012 Chris Craik <ccraik@google.com> Use smoothstep to eliminate branches in AA shader

Change-Id: If4ecb1a9446f29b2f8444f5cee551f863c1993e8
wui/OpenGLRenderer.cpp
wui/ProgramCache.cpp
5f7979993979466c79ab4f38d83c6f2aca361662 16-Jun-2012 Fabrice Di Meglio <fdimeglio@google.com> Add support for "-rtl" in resources

- fix bug #7035019 Need to have "-rtl" support for Resource

Change-Id: Ic82145c2ac672729d8a6c695a5f343276a1a0a2c
ndroidfw/ResourceTypes.cpp
5a3ec7113c99242fa0d0a328a0ec3892698203f1 18-Aug-2012 Chet Haase <chet@google.com> Fix glyph cropping bug

Glyphs were being stored in the glyph cache incorrectly.
The second row of glyphs in any column were being positioned exactly
one pixel too high, causing the preceding glyph in that column to be
cropped, resulting in the reported truncation in some glyphs.

Issue #7003215 Minor UI truncation while reading the mails

Change-Id: I47ce376f78a04d4e07e8b7ed1b3f0b58864c5498
wui/FontRenderer.cpp
378e919ccb75efe24d5a5aa75ac2c6ef255dcb48 16-Aug-2012 Chet Haase <chet@google.com> Remove CacheTextureLine structure from FontRenderer

CacheTextureLine was useful before we were packing the glyph
textures; it allowed simple packing of any particular texture according to
how many lines there were in a texture, and how tall those lines were.
Now that we are packing more efficiently (both horizontally and vertically
in any given texture line), it is more efficient to have
open space in every texture, removing the need for CacheTextureLine (which
now gets in the way since it limits how much can be stored in each line).

This change removes CacheTextureLine and just uses CacheTexture directly,
allowing caching of glyphs anywhere in the open space of each texture. As before,
the packing of these glyphs is determined by the CacheBlock structure, which
is a linked list of open spaces in each CacheTexture.

Change-Id: Id6f628170df0f676f8743ac7de76f2377fc6a012
wui/FontRenderer.cpp
wui/FontRenderer.h
6b7d46b78c1c5c1ce3e077c0eed41c730f1686b4 15-Aug-2012 Chet Haase <chet@google.com> Merge "Restore scissor state correctly" into jb-mr1-dev
2efd5c5886d9acf747bc92f888d731ed558aabcc 15-Aug-2012 Chet Haase <chet@google.com> Glyph cache optimization

Precaching at startup was not working. One-liner fix to init the caches
so that precaching would kick in earlier, saving time at startup by avoiding
the multiple-upload issue of caching at render time.

Issue #6893691 long app launch time on manta for some apps comparing to nakasi/stingray

Change-Id: Ie5c7f0536ec8ea371c7892e5e09c1db14795531c
wui/FontRenderer.cpp
8025061c594e5171e1bf370d8fdd77e0e9a02b47 15-Aug-2012 Chet Haase <chet@google.com> Restore scissor state correctly

Chrome is disabling the scissor, which doesn't play well with our
code that assumes that we know the state of the scissor. This fix
sets up our internal state based on the actual state of the scissor
in the resume() function (which is called after any calls out to the
Chrome or Browser GL functor). This fixes intermittent rendering
artifacts, including a gray address bar (where the gray background
gets painted without the clip that is being applied to the text foreground).

Issue #6886339 Address bar in Chrome turns gray after swiping the tabs / favicons drift outside of tab

Change-Id: I3d8a23f4438b41a367336507845baaea90cccc7e
wui/OpenGLRenderer.cpp
e816baea651476aca4407200d4a5e629b9ab8dfa 09-Aug-2012 Chet Haase <chet@google.com> Optimize interactions with glyph cache

There are two fixes here:
- precaching: instead of caching-then-drawing whenever there is a new
glyph, we cache at DisplayList record time. Then when we finally draw that
DisplayList, we just upload the affected texture(s) once, instead of once
per change. This is a huge savings in upload time, especially when there are
larger glyphs being used by the app.
- packing: Previously, glyphs would line up horizontally on each cache line, leaving
potentially tons of space vertically, especially when smaller glyphs got put into cache
lines intended for large glyphs (which can happen when an app uses lots of unique
glyphs, a common case with, for example, chinese/japanese/korean languages). The new
approach packs glyphs vertically as well as horizontally to use the space more efficiently
and provide space for more glyphs in these situations.

Change-Id: I84338aa25db208c7bf13f3f92b4d05ed40c33527
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/FontRenderer.cpp
wui/FontRenderer.h
320d46bf844b84351cb80c5d4a4768d86447ac81 09-Aug-2012 Romain Guy <romainguy@google.com> Reduce gradients textures size whenever possible

Change-Id: Ifd58625ee62edac3b5d20b77553cb98b6fa2b46e
wui/GradientCache.cpp
wui/ProgramCache.cpp
c89b14bba0f6cc2c91629080617f7ed215f697f3 08-Aug-2012 Romain Guy <romainguy@google.com> It seems that apparently useless public APIs are actually useful
Bug #6953651

Change-Id: Ic47ce504e63262711f5d3edc76f7d2b9c12471ad
wui/OpenGLRenderer.h
b6039811fa0fbc23f25c47491810faeb04ce3125 08-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am 05e97e81: am 0be33f2d: Merge "Add shortcut to avoid potential divide by zero in some case"

* commit '05e97e81a5fa2c9cab4cdda15aa2d036243a0c0e':
Add shortcut to avoid potential divide by zero in some case
05e97e81a5fa2c9cab4cdda15aa2d036243a0c0e 08-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am 0be33f2d: Merge "Add shortcut to avoid potential divide by zero in some case"

* commit '0be33f2d522f76f48062a59ddb520815a0851875':
Add shortcut to avoid potential divide by zero in some case
33fa1f774c8e7289fd7c39fbc2c65b9361f2c2c4 08-Aug-2012 Romain Guy <romainguy@google.com> Draw an empty border around glyphs to avoid sampling issues
Bug #6942209

The font renderer was preserving a 1 px border around each glyph to ensure
bilinear filtering would work nicely. Unfortunately, this border was not
set to 0 when glyphs were added in the cache to replace old evicted glyphs.

Change-Id: Ib85afca7ebad5cb63f960dc0e87ae162333dbfe8
wui/FontRenderer.cpp
wui/OpenGLRenderer.cpp
17112ad8a21a77620eb1ff14dcf8bdd6b7859712 07-Aug-2012 Romain Guy <romainguy@google.com> Cleanup of libhwui

Change-Id: Ib7f5771548462c00027a8ad57badfb68c50644f9
wui/OpenGLRenderer.h
8c654e0934f708e578e7ca969b67885f33a2d3ae 06-Aug-2012 Romain Guy <romainguy@google.com> Merge "Add new debug tool to track hardware layers updates" into jb-mr1-dev
4ff0cf4b83605bff630c4e6f1fabe4f72a3f93a1 06-Aug-2012 Romain Guy <romainguy@google.com> Add new debug tool to track hardware layers updates

You can setprop debug.hwui.show_layers_updates true to flash
hw layers in green when they update. This is also a setting
in the Dev. section of the settings app.

Change-Id: Ibe1d63a4f81567dc1d590c9b088d2e7505df8abf
wui/Caches.cpp
wui/Caches.h
wui/LayerRenderer.cpp
wui/OpenGLRenderer.cpp
wui/Patch.cpp
wui/Properties.h
4cb3384772cf7015a4e05789470123efb07219d9 06-Aug-2012 Mathias Agopian <mathias@google.com> Merge "libutils cleanup" into jb-mr1-dev
69a3ce1eb1af3129056f7da95a491da0280019b5 05-Aug-2012 Mathias Agopian <mathias@google.com> libutils cleanup

Change-Id: Ic069539338ba4097dba9399904f02bbd0296c20e
ndroidfw/AssetManager.cpp
8801b2fef3bc54db1bbb24748d91c909b901116a 04-Aug-2012 Romain Guy <romainguy@google.com> Bowing my head in shame
Bug #6924514

Change-Id: Ifcc08fb5dbaf3f9c6ac3a3e618db2fd6349dc290
wui/GammaFontRenderer.h
18edb81172daa9b98b53d226d94fc03249b1aded 04-Aug-2012 Romain Guy <romainguy@google.com> Avoid crash when dumping display lists

We recently changed the drawText implementation to accept more parameters
which were not taken into account during a dump operation.

Change-Id: Ia1dc682dc7bb2bb02a1f4a514ed5af5556f92a97
wui/DisplayListRenderer.cpp
a70cd04985eec51d95355cc7b822bc65f4ebce05 03-Aug-2012 Romain Guy <romainguy@google.com> Merge "Add dithering to gradients" into jb-mr1-dev
211efea7376371ee755edd2ad03e83ef6eea464e 01-Aug-2012 Romain Guy <romainguy@google.com> Add dithering to gradients

Change-Id: Ic1208855bde3a254eca2fd7cef43e0f1318ce419
wui/Android.mk
wui/Caches.cpp
wui/Caches.h
wui/Dither.cpp
wui/Dither.h
wui/ProgramCache.cpp
wui/SkiaShader.cpp
1ae49ab8655baeb0ddf1944d0a66cd598122408a 01-Aug-2012 Raph Levien <raph@google.com> Merge "Fix bug 6892600 Font (character pairs) rendering issue" into jb-mr1-dev
42e1e0d482d774cf18a55773e434f02edb9e4462 30-Jul-2012 Romain Guy <romainguy@google.com> Improve gradients

Avoid using textures for common gradients (two stops from 0.0 to 1.0)

Change-Id: Iff55d21b126c8cfc4cfb701669f2339c8f6b131a
wui/GradientCache.cpp
wui/GradientCache.h
wui/Program.h
wui/ProgramCache.cpp
wui/SkiaShader.cpp
wui/SkiaShader.h
8b4072d3fb9bb49d774d97689a065204beca1752 31-Jul-2012 Raph Levien <raph@google.com> Fix bug 6892600 Font (character pairs) rendering issue

Alignment on paint for actual glyph drawing needs to always be left,
even when drawing centered or right aligned text. The x offset for
alignment is applied by OpenGLRenderer::drawText (and needs to be early
in the pipeline for quickReject to work). Similar change needed for
drawing drop shadow.

Also fixes bug with mispositioned underline (offset for alignment has
already been applied once, no need to do it again in
drawTextDecorations).

Change-Id: Id3dcd62de5536a26b158d768889273a1492b35d6
wui/OpenGLRenderer.cpp
wui/TextDropShadowCache.cpp
c25259519f1b74bb62a2b051b74537f073436b5c 28-Jul-2012 Romain Guy <romainguy@google.com> Rename drawGeneralText to drawText

Change-Id: I5062ea5b0605fc7af27f410fafc930d10f38e926
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
0412cfcbcdd7224f80a80180a946f0fdd28c3afc 25-Jul-2012 Chen YANG <chen.yang@intel.com> Add shortcut to avoid potential divide by zero in some case

Change-Id: If4b34c95402daf8ebcc28736edfb2012553aa57c
wui/FontRenderer.cpp
996e57c84368058be793897ebc355b917a59abc2 24-Jul-2012 Raph Levien <raph@google.com> Hardware implementation of glyph positioning (bug 5443796)

This implementation adds a drawGeneralText() method to the OpenGL
Renderer, which supports both a global x, y position, an array of
individual glyph positions, and also a length parameter (which enables
drawing of underline and strikethrough. It also adds the method to the
display list (with marshalling and unmarshalling).

With this change, the existing drawText() method is removed entirely, as
it's subsumed by the new method. It's easy enough to revert to the old
functionality if needed by passing in a NULL positions array.

Change-Id: I8c9e6ce4309fd51cc5511db85df99f6de8f4f6f5
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
98ba89492a477114148fcb1f89675e41679ca7cc 21-Jul-2012 Romain Guy <romainguy@google.com> Make gradients look slightly better

Change-Id: Ib12c628a88b9ec6af1214ce6e5cb14cfde40485e
wui/GradientCache.cpp
00755fed35e4a91291c42a8a47bed8b957e9f8e1 20-Jul-2012 Raph Levien <raph@google.com> Merge "Add drop shadow for drawPosText in hwui renderer."
416a847633680d94efb926837efdc18726d54918 20-Jul-2012 Raph Levien <raph@google.com> Add drop shadow for drawPosText in hwui renderer.

This patch adds support for drop shadows (setShadowLayer) for
drawPosText in the hwui renderer. In and of itself, it's not very
important, but it's on the critical path for correct mark positioning,
tracked as bug 5443796.

The change itself is fairly straightforward - it basically just adds an
extra "positions" argument to all draw and measure methods on the code
path for drawing drop shadowed text, as well as to the cache key for
cached shadow textures.

Change-Id: Ic1cb63299ba61ccbef31779459ecb82aa4a5e672
wui/FontRenderer.cpp
wui/FontRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/TextDropShadowCache.cpp
wui/TextDropShadowCache.h
8dcfd5e836341b4a803b04d104a930bb312182d3 20-Jul-2012 Romain Guy <romainguy@google.com> Clamp gradient textures to max GL texture size

Change-Id: I8ce4e50988f5194fe5ce4bde7945ec01673af3cd
wui/GradientCache.cpp
wui/GradientCache.h
wui/ResourceCache.cpp
0aa87bbfc41e8b5f52de701ac17b4e66a7a7b609 20-Jul-2012 Romain Guy <romainguy@google.com> Fix crash with new LookupGammaFontRenderer
Bug #6853934

Change-Id: I15e6ca73bfe00eff1a37c4b9d2f7f709ee018eb6
wui/FontRenderer.cpp
wui/FontRenderer.h
wui/GammaFontRenderer.h
eb61cd8296ed7e3f3aef5bd430d846aa54d5d7e2 19-Jul-2012 Romain Guy <romainguy@google.com> Optimize gradient textures

Compute the size of the backing textures based on the maximum possible
number of shades in the gradient.

Change-Id: I2d7f20477d31b81e9735f2c1d83ebdd0dbcbe340
wui/GradientCache.cpp
243924b08f9fbcc7f1e46d24df986c25fba3eb18 19-Jul-2012 Romain Guy <romainguy@google.com> am 3409e728: Correctly pre-clip paths when recording display lists Bug #6836448 External bug: http://code.google.com/p/android/issues/detail?id=34946

* commit '3409e728e22609b54de8b33d1e614ca51f6d6a77':
Correctly pre-clip paths when recording display lists Bug #6836448 External bug: http://code.google.com/p/android/issues/detail?id=34946
63553478130f78d44c8fbeaebc610e19925544a5 19-Jul-2012 Romain Guy <romainguy@google.com> Remove vendor specific precision qualifier

Change-Id: I0a56ca7a5a399ec94993d3cea0c4aff6c0f86e39
wui/Extensions.h
wui/ProgramCache.cpp
8e025de5fb3ab1c099541e3a387123170bf9d1a9 19-Jul-2012 Romain Guy <romainguy@google.com> Note to self

Change-Id: Ic5699bdbf880ad68748c827bb5b4976b12d4d413
wui/ProgramCache.cpp
04299385c681140239b0dc31d9780d087d2b4d7c 19-Jul-2012 Romain Guy <romainguy@google.com> Clip lines, AA rects and points correctly

Change-Id: I900dd986f397b66f133e6021aa4c2539e7abc2b9
wui/OpenGLRenderer.cpp
dfab50d8b97a90dca279b119ebe439f595616ffa 19-Jul-2012 Romain Guy <romainguy@google.com> Tweak text gamma correction

Change-Id: Icd3326e6a054d6020c3ed61c8459394bc87401dd
wui/GammaFontRenderer.cpp
wui/Properties.h
6e25e38e43f9e7f71397dfab7ed32c81c7bf7d46 19-Jul-2012 Romain Guy <romainguy@google.com> Add a new method for text gamma correction

To select the gamma correction method, adb shell setprop hwui.text_gamma_correction
with one of the following values:

lookup3
lookup
shader3
shader

See Properties.h for more information about these different methods.
You can also control gamma correction using the following properties:

hwui.text_gamma
hwui.text_gamma.black_threshold
hwui.text_gamma.white_threshold

Change-Id: I47970b804d2c590c37d3da5008db094241579e25
wui/Debug.h
wui/GammaFontRenderer.cpp
wui/GammaFontRenderer.h
wui/Properties.h
3409e728e22609b54de8b33d1e614ca51f6d6a77 18-Jul-2012 Romain Guy <romainguy@google.com> Correctly pre-clip paths when recording display lists
Bug #6836448
External bug: http://code.google.com/p/android/issues/detail?id=34946

DO NOT MERGE

DisplayListRenderer::drawPath was not invoking quickReject() properly,
passing x,y,width,height instead of left,top,right,bottom. A path
could thus get rejected when it should be drawn instead.

While working on this change I found a similar issue with another
drawing command, drawBitmapData().

Change-Id: I8306faf72db14d71b54ecb7de295c9a6957d9494
wui/DisplayListRenderer.cpp
95c21d0546e36ade3e0601394f5b625541836545 18-Jul-2012 Romain Guy <romainguy@google.com> Correctly pre-clip paths when recording display lists

External bug: http://code.google.com/p/android/issues/detail?id=34946

DisplayListRenderer::drawPath was not invoking quickReject() properly,
passing x,y,width,height instead of left,top,right,bottom. A path
could thus get rejected when it should be drawn instead.

While working on this change I found a similar issue with another
drawing command, drawBitmapData().

Change-Id: I56484e8c101768cde6a78625290872f7849dd5ee
wui/DisplayListRenderer.cpp
8a4ac610e1aaf04931ac1af54b146a7fc8e66114 18-Jul-2012 Romain Guy <romainguy@google.com> Don't clear the dirty clip flag if it's not applied
Bug #6833979

Change-Id: I0ea78b7f31a557a335de10d910d03b0520029080
wui/Android.mk
wui/Caches.cpp
wui/Caches.h
wui/Debug.h
wui/DisplayListRenderer.cpp
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
4121063313ac0d6f69f6253cac821d0c1c122086 17-Jul-2012 Romain Guy <romainguy@google.com> Add shader-based text gamma correction

To enable it, the system property ro.hwui.text_gamma_shader must be
set to true. For testing, DEBUG_FONT_RENDERER_FORCE_SHADER_GAMMA
can be set to 1 in libhwui/Debug.h.

Change-Id: If345c6b71b67ecf1ef2e8847b71f30f3ef251a27
wui/Debug.h
wui/GammaFontRenderer.cpp
wui/GammaFontRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Program.h
wui/ProgramCache.cpp
157bd5749f40b0330fccf3ef159d922742103ef2 17-Jul-2012 Romain Guy <romainguy@google.com> Add makefile flags for perf

Change-Id: Ibcb6e1c883551273c3392cdaa40cd0b71a3bfa70
wui/Android.mk
be6f9dc1e71b425b7ac1c40c0a2c72d03eb9fbee 16-Jul-2012 Romain Guy <romainguy@google.com> Don't copy paints for 9patches

Change-Id: I863100a0dc53fec1a3a1b2acbdeb76e6049ffe58
wui/DisplayListRenderer.cpp
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
b1d0a4ed21168fefcb82232c8f22cb95d60acb85 14-Jul-2012 Romain Guy <romainguy@google.com> Refactor GammaFontRenderer

This change is the first step to a shader-based text antialias
gamma correction.

Change-Id: I9eb02d4c56cb95d05219f712290c865b46141954
wui/Caches.cpp
wui/Caches.h
wui/FontRenderer.cpp
wui/GammaFontRenderer.cpp
wui/GammaFontRenderer.h
wui/OpenGLRenderer.cpp
wui/Properties.h
c9cf9e5459c05f05b29ec81b0e83e154816f7595 14-Jul-2012 Romain Guy <romainguy@google.com> Merge "Improve rendering speed by disabling scissor tests"
586cae3ac69c0c667fbf8a954edbd399f620a717 14-Jul-2012 Romain Guy <romainguy@google.com> Improve rendering speed by disabling scissor tests

This change improves execution of display lists, particularly on
tiled renderers. The goal is to disable the scissor test as
often as possible. Drawing commands are rarely clipped by View
bounds so most of them can be drawn without doing a scissor test.

The speed improvements scale with the number of views and drawing
commands.

Change-Id: Ibd9b5e051a3e4300562463805acc4fd744ba6266
wui/Caches.cpp
wui/Caches.h
wui/LayerRenderer.cpp
wui/OpenGLRenderer.cpp
wui/Rect.h
01f03dc3895352e0d4b50ecb3090b29c591f2502 13-Jul-2012 Romain Guy <romainguy@google.com> am 0a386ffa: Text shadow alpha handling incorrect DO NOT MERGE

* commit '0a386ffac026e259c408b77c2dd2cc5d2e22b5f8':
Text shadow alpha handling incorrect DO NOT MERGE
0a386ffac026e259c408b77c2dd2cc5d2e22b5f8 13-Jul-2012 Romain Guy <romainguy@google.com> Text shadow alpha handling incorrect
DO NOT MERGE

External bug: http://code.google.com/p/android/issues/detail?id=34879
This is a regression from ICS.

This CL also fixes a bug where a View's alpha would be applied twice.

Change-Id: I13a1546228f44d4c169259414b6fa103a6e4a0fa
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
489041dd4192e594f2180ea7bff705894ab4031d 13-Jul-2012 Romain Guy <romainguy@google.com> Merge "Text shadow alpha handling incorrect"
9c0b188e4231bcb967234f3646c178d22d8a9f50 13-Jul-2012 Romain Guy <romainguy@google.com> Text shadow alpha handling incorrect

External bug: http://code.google.com/p/android/issues/detail?id=34879

This CL also fixes a bug where a View's alpha would be applied twice.

Change-Id: I13a1546228f44d4c169259414b6fa103a6e4a0fa
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
401b1f85746ab7005907747a59534def967d825b 13-Jul-2012 Romain Guy <romainguy@google.com> Merge "Remove obsolete optimization"
f877308f77f7c6f3edd91618a092207dd3be9077 13-Jul-2012 Romain Guy <romainguy@google.com> Remove obsolete optimization

Change-Id: I2d43c009c62a7f4a4a2e0a6303bdfa692c4b8c8c
wui/OpenGLRenderer.cpp
wui/Program.h
wui/Properties.h
f0af1d5cb255f136d2fff773be7518ffd7ae3b93 12-Jul-2012 Romain Guy <romainguy@google.com> Remove unused View.flushLayer() API

Change-Id: I5d4c7388afb5265964ab6b769cc0abfee9745c84
wui/LayerRenderer.h
4b447b91debda9c9a0e230cab9e140e356b2a305 27-Jun-2012 Nick Kralevich <nnk@google.com> Add mode when open(O_CREAT) is used.

When creating a new file using open(..., O_CREAT), it is an error
to fail to specify a creation mode. If a mode is not specified, a
random stack provided value is used as the "mode".

This will become a compile error in a future Android change.

Change-Id: I8635e8b69587ed107253870d991c3fcf563ca876
ndroidfw/tests/ObbFile_test.cpp
4930649d35dcec1f234124e8b4f8abfac8ba6ea6 12-Jun-2012 Romain Guy <romainguy@google.com> am 68cefd20: Merge "Textured text calls could be invisible Bug #6597730" into jb-dev

* commit '68cefd201809372a547257a273b805cabbd0da68':
Textured text calls could be invisible Bug #6597730
16c88085255c71a1a8fc034129aa2dcc61e1ddd0 12-Jun-2012 Romain Guy <romainguy@google.com> Textured text calls could be invisible
Bug #6597730

Text would sometimes not appear when rendered with textured content
(BitmapShader, LinearGradientShader, etc.) This was due to a misuse
of OpenGL texture unit in FontRenderer. Textured text normally uses
two texture units:
- texture unit 0 for the font cache
- texture unit 1 for the textured content (gradient, etc.)

Recent changes to the font renderer allow it to bind new textures
while processing the text's geometry (this happens when caches get
full or when switching font size for instance.) The bindings were
done without ensuring the texture unit was the correct one
(unit 0), thus replacing the content of another texture unit
(unit 1).

This lead to text being drawn using the font cache itself as the
content texture, making the text invisible.

Change-Id: I392b4c884f09223305f6cbc6253e2ef9a98944c9
wui/FontRenderer.cpp
wui/OpenGLRenderer.cpp
ca43c96127e9f7cdab8ee70638a2445347eebd08 07-Jun-2012 Chet Haase <chet@google.com> am 44b2fe3f: Track canvas clearing for swap buffers logic.

* commit '44b2fe3fc114ee5f7273c6b0fee2cc999bf244a2':
Track canvas clearing for swap buffers logic.
44b2fe3fc114ee5f7273c6b0fee2cc999bf244a2 07-Jun-2012 Chet Haase <chet@google.com> Track canvas clearing for swap buffers logic.

A previous fix made it necessary for a frame to render something to GL
in order to cause a call to eglSwapBuffers(). Besides the calls being
tracked as part of issuing a DisplayList, there is also a potential call
to clear the canvas (via glClear()) on non-opaque surfaces. This call is also
good to track, since a surface that gets cleared without any other drawing operations
is worth flipping to the screen (to erase old contents on that surface).

This fix tracks the status of the pre-draw operations to find out whether
glClear() was called and then sets the drawing status appropriately.

Issue #6606422 QuickContact dismissal is janky again (Tracking)

Change-Id: I5fcaccfdc9293dd46b83f2fc279730a5d2740ebf
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/LayerRenderer.cpp
wui/LayerRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
6d99a024647ff845179311d611dcf031965ba96d 07-Jun-2012 Chris Craik <ccraik@google.com> am 8f1f714f: Merge "Revert "Add more temporary logging for investigating detachFunctor"" into jb-dev

* commit '8f1f714f831bf8bf10f94211c42e36ef2851810d':
Revert "Add more temporary logging for investigating detachFunctor"
932b7f6765968bd526c03512f3805fbc3924dc29 06-Jun-2012 Chris Craik <ccraik@google.com> Revert "Add more temporary logging for investigating detachFunctor"

bug:6608646

This reverts commit 8857b2f76abad1e4ec742dfd85d0c997880be376

Change-Id: I1563b5974c52b84201ae448298f804eb0dcc235d
wui/OpenGLRenderer.cpp
34e5f5a534d915f253ae51cbcfe15c12e25a78a4 05-Jun-2012 Chris Craik <ccraik@google.com> am 3676b137: Merge "Add more temporary logging for investigating detachFunctor" into jb-dev

* commit '3676b137ecf2f24e88e8a3567c11234e7d4416d2':
Add more temporary logging for investigating detachFunctor
8857b2f76abad1e4ec742dfd85d0c997880be376 05-Jun-2012 Chris Craik <ccraik@google.com> Add more temporary logging for investigating detachFunctor

bug:6596807
Change-Id: Ic9e34e323b12a887f2e8df0773a6155627b6a64f
wui/OpenGLRenderer.cpp
78f04a364f8cd7dc3a7a0aaf73c96a6cc84718b6 04-Jun-2012 Jeff Brown <jeffbrown@google.com> am 51df04b9: Port the legacy velocity tracker strategy.

* commit '51df04b93e8e362edd867abd7efaf1659b8b8b82':
Port the legacy velocity tracker strategy.
ba58221769575d1129c61fe0da9030986eb899bd 04-Jun-2012 Jeff Brown <jeffbrown@google.com> am a5b06982: Implement a second order integrating VT strategy.

* commit 'a5b0698231459ac5b54cf8e8952ac5c2b2b2198b':
Implement a second order integrating VT strategy.
2fd6baef5911d3bb481d1a603180d7371d43df41 04-Jun-2012 Jeff Brown <jeffbrown@google.com> am 18f329e9: Implement a weighted least squares VelocityTracker strategy.

* commit '18f329e9480fca75210bb7496e5b4bc987b4ad8f':
Implement a weighted least squares VelocityTracker strategy.
51df04b93e8e362edd867abd7efaf1659b8b8b82 04-Jun-2012 Jeff Brown <jeffbrown@google.com> Port the legacy velocity tracker strategy.

For comparison purposes, port the legacy velocity tracker
algorithm as it behaved prior to ICS.

Bug: 6413587
Change-Id: I7e8e56584dcdb1a3c660ca9d8f9c5bd5d868e449
ndroidfw/VelocityTracker.cpp
a5b0698231459ac5b54cf8e8952ac5c2b2b2198b 04-Jun-2012 Jeff Brown <jeffbrown@google.com> Implement a second order integrating VT strategy.

Bug: 6413587
Change-Id: I51bc7b8cbff22b10b728fc84ee15370e9984dd55
ndroidfw/VelocityTracker.cpp
18f329e9480fca75210bb7496e5b4bc987b4ad8f 03-Jun-2012 Jeff Brown <jeffbrown@google.com> Implement a weighted least squares VelocityTracker strategy.

No change to the default strategy.

Bug: 6413587
Change-Id: I08eb6f9a511e65ad637359b55b5993c26ba93b40
ndroidfw/VelocityTracker.cpp
767bc6d26c98594525ed7dd94e8880335e15e8a8 04-Jun-2012 Jeff Brown <jeffbrown@google.com> am 1fbbc071: Merge "Implement an integrating VelocityTracker strategy." into jb-dev

* commit '1fbbc0716f9b70c6dcee00c4550757077ef7f7b5':
Implement an integrating VelocityTracker strategy.
7d3fa093bbd34e19f6b580b6258c8ea4e138c777 04-Jun-2012 Jeff Brown <jeffbrown@google.com> am f47e76e2: Merge "Make velocity tracker strategy configurable." into jb-dev

* commit 'f47e76e2c78e78e26110786e99548d718d177c32':
Make velocity tracker strategy configurable.
1fbbc0716f9b70c6dcee00c4550757077ef7f7b5 04-Jun-2012 Jeff Brown <jeffbrown@google.com> Merge "Implement an integrating VelocityTracker strategy." into jb-dev
f47e76e2c78e78e26110786e99548d718d177c32 04-Jun-2012 Jeff Brown <jeffbrown@google.com> Merge "Make velocity tracker strategy configurable." into jb-dev
53dd12a66884540b87fe428383e2f79d0f5e32ba 01-Jun-2012 Jeff Brown <jeffbrown@google.com> Implement an integrating VelocityTracker strategy.

This algorithm better tolerates certain kinds of errors in the
touch input than the least squares strategy but it may underestimate
the velocity of accelerating movements. This algorithm is
mainly of interest as a baseline for testing and comparison with the
least squares algorithm, which remains the default.

Bug: 6413587
Change-Id: I8ddb50084e44875e234717907e5b06d03f59788c
ndroidfw/VelocityTracker.cpp
9eb7d86181729c3eb769d71123c4ce9ffc868f08 01-Jun-2012 Jeff Brown <jeffbrown@google.com> Make velocity tracker strategy configurable.

This change is very useful for testing purposes because it makes it
easy to compare different implementations to see how they behave.

There is no change to the current default strategy.

Bug: 6413587
Change-Id: I4d8567aa4160571ba9fa397ce419882cd9366749
ndroidfw/VelocityTracker.cpp
d0140062db85ae17e807e514fe14d2d0581645fb 01-Jun-2012 Chet Haase <chet@google.com> am 561ff8a7: Merge "Skip eglSwapBuffers() call when we do not draw to GL" into jb-dev

* commit '561ff8a74e3d9ea15f58d9b6534da9ea5a63d84b':
Skip eglSwapBuffers() call when we do not draw to GL
486590963e2207d68eebd6944fec70d50d41116a 01-Jun-2012 Chet Haase <chet@google.com> Skip eglSwapBuffers() call when we do not draw to GL

The fix is to track when we issue GL drawing commands, and to skip the
call to eglSwapBuffers() when a DisplayList does not result in
any actual rendering calls to GL.

Issue #6364143 QuickMuni list items and buttons flicker instead of fade

Change-Id: I60a02c61a58c32d92481a1e814b4c8a49c6a37a3
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
9970bbac1f4951f5910aa5148e189a0a284f9e46 23-May-2012 Chris Craik <ccraik@google.com> am 3534e134: Merge "Avoid crash if onDetachedFromWindow called after destroy" into jb-dev

* commit '3534e13486a0081b1229e698f13bd3a37efa3fb0':
Avoid crash if onDetachedFromWindow called after destroy
3534e13486a0081b1229e698f13bd3a37efa3fb0 23-May-2012 Chris Craik <ccraik@google.com> Merge "Avoid crash if onDetachedFromWindow called after destroy" into jb-dev
9e08012869f77f212186a5d5856831a85fb73d40 23-May-2012 Chris Craik <ccraik@google.com> Avoid crash if onDetachedFromWindow called after destroy

This also removes the temporary logging from commit
f8dafa14e058cdc2f408b59be7911abaceb73c47.

bug:6535911
Change-Id: Icf1d0438b349a0e92e7d9cefed57a252eed2b9b0
wui/OpenGLRenderer.cpp
49413bcccbd735be4e8ad4cf98b3ab2f892225e4 22-May-2012 Chris Craik <ccraik@google.com> am 7a9328a3: Merge "Add temporary functor lifetime logging" into jb-dev

* commit '7a9328a3118725389564fe2a9b926837fa3d58a9':
Add temporary functor lifetime logging
7a9328a3118725389564fe2a9b926837fa3d58a9 22-May-2012 Chris Craik <ccraik@google.com> Merge "Add temporary functor lifetime logging" into jb-dev
5ba87a007629375bf0a2e1a45cd1954adef65338 22-May-2012 Romain Guy <romainguy@google.com> am e5a4a3dc: Merge "Ensure we always set the proper blending mode Bug #6527305" into jb-dev

* commit 'e5a4a3dc1648844f06d29efd42c9306c3cdf177e':
Ensure we always set the proper blending mode Bug #6527305
e5a4a3dc1648844f06d29efd42c9306c3cdf177e 22-May-2012 Romain Guy <romainguy@google.com> Merge "Ensure we always set the proper blending mode Bug #6527305" into jb-dev
f8dafa14e058cdc2f408b59be7911abaceb73c47 22-May-2012 Chris Craik <ccraik@google.com> Add temporary functor lifetime logging

bug:6535911

Change-Id: Ida5cc1def7fe1fc314317bbc5df50e1465753deb
wui/OpenGLRenderer.cpp
ddf74373616c89e0880a28a2185fd7ce3db91de6 22-May-2012 Romain Guy <romainguy@google.com> Ensure we always set the proper blending mode
Bug #6527305

At the beginning of a frame, always set the blending mode that we
think GL is using just in case it was modified by another entity
(for instance a WebView functor.)

Change-Id: I0e1d0abee8a2abb2b8e7622aed28346e89562c06
wui/DisplayListRenderer.cpp
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
1ff2c7fe91f25b85478e71f19a4528fc5fde00ba 22-May-2012 Chris Craik <ccraik@google.com> am 12fd5db4: Merge "Don\'t clear the functor at every draw" into jb-dev

* commit '12fd5db435043681371ca7e9694744d71b6ba271':
Don't clear the functor at every draw
c8538ade8df2c2f013f8b93094912057ee1cc417 22-May-2012 Chris Craik <ccraik@google.com> Don't clear the functor at every draw

instead clear functors at invoke time, and let them detach themselves as needed.

bug:6511995
Change-Id: I9115fcadffb27eb850c1d1773c098d3d2e22788b
wui/OpenGLRenderer.cpp
d568e4d2ac0ba100c91c0e24b969c6efc726172a 19-May-2012 Romain Guy <romainguy@google.com> am 196a7dae: Merge "Sanitize display list properties" into jb-dev

* commit '196a7dae6387b118f73c78b7ae16ebfa604ae249':
Sanitize display list properties
f26c8be01bb218619e073a209c9d57fe9d26c517 18-May-2012 Romain Guy <romainguy@google.com> Sanitize display list properties

The comparisons used in the various properties setters could fail badly
in some specific conditions. The scale properties in particular did not
use the same comparisons.

This change also clamps alpha to the 0..1 range which avoids overflow
issues with lowp registers in GLSL computations.

Change-Id: I3e73b584e907a14e2c33d0865ca0d2d4d5bff31d
wui/DisplayListRenderer.h
wui/OpenGLRenderer.h
wui/utils/Compare.h
952a4512a89f3d06068b17732a3ea0926b235c46 15-May-2012 Romain Guy <romainguy@google.com> am 2298fe22: Merge "Avoid unnecessary copy when invoking drawBitmap(int[]) Bug #6483390" into jb-dev

* commit '2298fe223f1ae45d45dbdd69e115a24a8ea2df10':
Avoid unnecessary copy when invoking drawBitmap(int[]) Bug #6483390
d5cfec8d34a59f2a4e98b655b5e49775d69ad64c 15-May-2012 Romain Guy <romainguy@google.com> am 7b8523aa: Merge "Remove all Dalvik allocations from Cavnas.drawBitmap(int[], ...)" into jb-dev

* commit '7b8523aaed11a3b5ee286776023233036ac0759d':
Remove all Dalvik allocations from Cavnas.drawBitmap(int[], ...)
aebfdc231aadab63e51d740a8f3abf97953fd9f2 15-May-2012 Jeff Brown <jeffbrown@google.com> am e4db99cf: Merge "Detect when pointer has stopped moving." into jb-dev

* commit 'e4db99cf87c47730e80dc1431f07f4f1062c648e':
Detect when pointer has stopped moving.
634ec69aa9f7e5806098800b504ae94dda1df5f3 15-May-2012 Jeff Brown <jeffbrown@google.com> am 08b544c7: Merge "Fix pointer indexing issue in VelocityTracker." into jb-dev

* commit '08b544c7be67343b10a4130611318b8273d06433':
Fix pointer indexing issue in VelocityTracker.
7469f8bb949bef1328877593952b8fe9801a3c67 15-May-2012 Jeff Brown <jeffbrown@google.com> am 47a4a50d: Merge "Improve touch event resampling." into jb-dev

* commit '47a4a50df09b5ab76ee06cb8845fe5a02952ec32':
Improve touch event resampling.
e2ec70bf92e80800bd5163f56632b9eb14cce290 15-May-2012 Jeff Brown <jeffbrown@google.com> am 00ff4748: Merge "More VelocityTracker refactoring." into jb-dev

* commit '00ff47484f8137aa3e59f680ff07d2662cfb4088':
More VelocityTracker refactoring.
769bccea292329e16fe6211e10cf54cf38896b1b 15-May-2012 Romain Guy <romainguy@google.com> am c9ade202: Merge "Forget the name of a texture after freeing Bug #6408362" into jb-dev

* commit 'c9ade202ed6a43a4edba6596492aa810530b88b6':
Forget the name of a texture after freeing Bug #6408362
f0e5e27bf416e43dd1018a965c271ebb69080e54 15-May-2012 Romain Guy <romainguy@google.com> am 2be45697: Merge "Fix two memory leaks Bug #6408362" into jb-dev

* commit '2be45697f93291e1740c3b7e4ba0af5d4ae81ed6':
Fix two memory leaks Bug #6408362
49c5fc0b9e850497233e189ff9dcc71a78ebe6e7 15-May-2012 Romain Guy <romainguy@google.com> Avoid unnecessary copy when invoking drawBitmap(int[])
Bug #6483390

Change-Id: I4d2d725ef50c9401b4bd998b6160128102b40745
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/ResourceCache.cpp
7b8523aaed11a3b5ee286776023233036ac0759d 15-May-2012 Romain Guy <romainguy@google.com> Merge "Remove all Dalvik allocations from Cavnas.drawBitmap(int[], ...)" into jb-dev
e651cc6239616a202f6e96ebc2ed93b4b8b3627c 15-May-2012 Romain Guy <romainguy@google.com> Remove all Dalvik allocations from Cavnas.drawBitmap(int[], ...)

Change-Id: Ie28538a2104d21154fdc78a56525e7403f08287d
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/TextureCache.cpp
wui/TextureCache.h
8efd02cc49602a65efba7938f81e10b8917fa659 15-May-2012 Romain Guy <romainguy@google.com> am 00fdfe41: Merge "Properly pre-cache latin glyphs Bug #6408362" into jb-dev

* commit '00fdfe4106922502232d747d87bedc5343b5d4be':
Properly pre-cache latin glyphs Bug #6408362
e4db99cf87c47730e80dc1431f07f4f1062c648e 15-May-2012 Jeff Brown <jeffbrown@google.com> Merge "Detect when pointer has stopped moving." into jb-dev
08b544c7be67343b10a4130611318b8273d06433 15-May-2012 Jeff Brown <jeffbrown@google.com> Merge "Fix pointer indexing issue in VelocityTracker." into jb-dev
90729403d50488566eb4ae0e09bb1be21979a633 15-May-2012 Jeff Brown <jeffbrown@google.com> Detect when pointer has stopped moving.

Some input devices do not generate ACTION_MOVE events while all
pointers have stopped, thereby lulling the VelocityTracker into
a false sense of complacency. Before handling the following sample,
reset the VelocityTracker state so as not to be influenced by
earlier samples before the pointer stopped. The velocity after
stopping is assumed to be discontinuous.

Bug: 6413587
Change-Id: I6387bc036ff141d083d3d17a89e37eeaa3188349
ndroidfw/VelocityTracker.cpp
47a4a50df09b5ab76ee06cb8845fe5a02952ec32 15-May-2012 Jeff Brown <jeffbrown@google.com> Merge "Improve touch event resampling." into jb-dev
dcab190bd23f632f278af448b0c85b4cadcc6692 15-May-2012 Jeff Brown <jeffbrown@google.com> Fix pointer indexing issue in VelocityTracker.

VelocityTracker was implicitly assuming that the pointer ids in
a MotionEvent were ordered. That is not necessarily the case
so we need to be careful while copying the pointer coordinates out.

Bug: 6413587
Change-Id: I3b23a954f893eebdf786f2a94207149b092ef036
ndroidfw/VelocityTracker.cpp
7174a491bc1f89da65eaef3be25f3ea3f3e3bab5 15-May-2012 Jeff Brown <jeffbrown@google.com> Improve touch event resampling.

Fixed a few bugs related to the id-to-index mapping for
pointer coordinates.

Tightened the bounds on the resampling time interval to
avoid predicting too far into the future.

Only lerp X and Y components of motion events.

Alter the future to satisfy past predictions. (Rewrite touch
events to conceal obvious discontinuities.)

Added a system property to control whether resampling is enabled
for debugging purposes.

Bug: 6375101
Change-Id: I35972d63278bc4e78148053a4125ad9abeebfedb
ndroidfw/Input.cpp
ndroidfw/InputTransport.cpp
00ff47484f8137aa3e59f680ff07d2662cfb4088 15-May-2012 Jeff Brown <jeffbrown@google.com> Merge "More VelocityTracker refactoring." into jb-dev
99a6ddd4cd8762654a575eb4ac3d0e5431d919b8 15-May-2012 Romain Guy <romainguy@google.com> Forget the name of a texture after freeing
Bug #6408362

FontRenderer allocates large font textures when more room is needed
to store all the glyphs used by an application. Thse large textures
are the first to be freed when memory needs to be reclaimed by the
system. When freeing a texture, the renderer would however not set
the texture name to an invalid name, leading future allocations to
be performed on the same texture name. That name could have by then
be recycled by the driver and returned by a call to glGenTexture
and used to create an entirely different texture. This would cause
the font renderer to point to the wrong texture, thus leading to
the "corruptions."

Change-Id: I8a1e80e5b79e8f21d1baf5320c090df4f2066cd4
wui/FontRenderer.cpp
wui/FontRenderer.h
9d9758ae30a59dcf594e0d26ba5d4ee153a3e44a 15-May-2012 Romain Guy <romainguy@google.com> Fix two memory leaks
Bug #6408362

Change-Id: I58543938e7b64d83504e11e97b0dd21ef8ebf3b6
wui/FontRenderer.cpp
wui/FontRenderer.h
ae91c4cbc79ea910753be65e2f1d7899abcb4da2 14-May-2012 Romain Guy <romainguy@google.com> Properly pre-cache latin glyphs
Bug #6408362

Change-Id: Ie11644c5a9e2d87d3b851b7e619e5f04b60a7e02
wui/FontRenderer.cpp
wui/FontRenderer.h
85bd0d62830a098c1bdc720dfdcf4fe1b18b657c 14-May-2012 Jeff Brown <jeffbrown@google.com> More VelocityTracker refactoring.

Bug: 6413587
Change-Id: Ida1152e7a34d5fe5caab5e6b5e1bc79f6c7a25e6
ndroidfw/VelocityTracker.cpp
ce8b9c33b3dec887355b1ef7359d8282a6443d33 13-May-2012 Romain Guy <romainguy@google.com> am 15e84399: Merge "Add call sites for OpenGL\'s debug label extension" into jb-dev

* commit '15e8439905cfae4605d101ae96a2694e69fb5017':
Add call sites for OpenGL's debug label extension
dfa1046ecab165eb0daf5caa8475e993350f4a2b 13-May-2012 Romain Guy <romainguy@google.com> Add call sites for OpenGL's debug label extension

Change-Id: I9c689127e8166cbef92c935f8aa07217ab806dda
wui/Caches.cpp
wui/Caches.h
wui/Extensions.h
47272c932ab6157022aaefd015e5d1df9dc5bd2f 11-May-2012 Jeff Brown <jeffbrown@google.com> am b12b6b51: Merge "Minor refactoring before starting on velocity tracker changes." into jb-dev

* commit 'b12b6b5116e3d76474296b45f570693bb10d6c99':
Minor refactoring before starting on velocity tracker changes.
8a90e6e3174083f274538567d851f98478fc83e9 11-May-2012 Jeff Brown <jeffbrown@google.com> Minor refactoring before starting on velocity tracker changes.

Bug: 6413587
Change-Id: I5eba2bb57193bff78cb3740de5f87aca0b31d154
ndroidfw/Android.mk
ndroidfw/Input.cpp
ndroidfw/VelocityControl.cpp
ndroidfw/VelocityTracker.cpp
d9155605abe9111b1e708cf773c4e6ecfffb59e2 09-May-2012 Chris Craik <ccraik@google.com> am aa997294: Merge "Revert "Add temporary functor lifetime logging"" into jb-dev

* commit 'aa9972943cab627db9b10e5c9c4bb80f99f8a4bd':
Revert "Add temporary functor lifetime logging"
aa9972943cab627db9b10e5c9c4bb80f99f8a4bd 08-May-2012 Chris Craik <ccraik@google.com> Merge "Revert "Add temporary functor lifetime logging"" into jb-dev
12d434a9be03214e9c673580a6f55128eec9b3f9 08-May-2012 Chris Craik <ccraik@google.com> Revert "Add temporary functor lifetime logging"

bug:6445573

This reverts commit 2fe99801e81bb7c0ff846b536cbb7a12707410ed
wui/OpenGLRenderer.cpp
48fa47174268a7e94e3e39fdd02785d97be3d446 07-May-2012 Chet Haase <chet@google.com> am 4bbcae7e: Merge "Fix issue where scale-animating text would jump temporarily a few pixels" into jb-dev

* commit '4bbcae7eb80704d919d8115d523196798e208439':
Fix issue where scale-animating text would jump temporarily a few pixels
4bbcae7eb80704d919d8115d523196798e208439 07-May-2012 Chet Haase <chet@google.com> Merge "Fix issue where scale-animating text would jump temporarily a few pixels" into jb-dev
d3efd6920e64d0207a0655640297d87d4937ee27 07-May-2012 Chet Haase <chet@google.com> Fix issue where scale-animating text would jump temporarily a few pixels

Some logic in the native matrix code would determine that a matrix was
'pureTranslate' based on the scale values of a matrix being close-enough to 1,
which was within a very small epsilon. This works in general, because screen space
coordinates make that epsilon value irrelevant, so close-enough really is close-enough.

However, TextView, when centering text, works in a coordinate system that is quite
huge, with left/right values about 500,000. These numbers multiplied times that small
epsilon value would give a result that was significant, and would cause a miscalculation
of up to 4-5 pixels, causing the snap that we'd see for a couple of frames as the
scale got "close enough" to 1.

The fix is to remove the optimization of "close enough". What we really need the matrix to
do is to identify itself as being translate-only when no scale as been set (which is the
default). For the purposes of that check, it is good enough to simply check the values against
1 directly. Similarly, the bounds-check logic needs to check against 0 and 1 directly.

Issue #6452687: Glitch when changing scale of a view containing text

Change-Id: I167fb45d02201fb879deea0e5a7ca95e38128e17
wui/DisplayListRenderer.h
wui/Matrix.cpp
d92c5c03d0fafe6f4c5f689eabd5024a4bbf262d 04-May-2012 Chet Haase <chet@google.com> am 6c5f4cd0: Merge "Fix hang/crash in native path code" into jb-dev

* commit '6c5f4cd074e1ec4fd22a807aab409586f9b6b45f':
Fix hang/crash in native path code
d34dd71800d9a1077e58c3b7f2511c46848da417 03-May-2012 Chet Haase <chet@google.com> Fix hang/crash in native path code

An optimization for paths is to only create a texture for the original native
Path object, and have all copies of that object use that texture. This works in
most cases, but sometimes that original path object may get destroyed (when the
SDK path object is finalized) while we are still referencing and using that object
in the DisplayList code. This causes undefined errors such as crashes and hanging
as we iterate through the operations of a destroyed (and garbage-filled) path object.

The fix is to use the existing ResourceCache to refcount the original path until
we are done with it.

Issue #6414050 Analytics Dogfood App crashes reliably on Jellybean

Change-Id: I5dbec5c069f7d6a1e68c13424f454976a7d188e9
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
0e693b249d7bf63c483654682778f6172c27a8b7 03-May-2012 Chris Craik <ccraik@google.com> am 3421f9fd: Merge "Add temporary functor lifetime logging" into jb-dev

* commit '3421f9fd6847faa0bbf3f1d8e1c8424bce52a9a4':
Add temporary functor lifetime logging
2fe99801e81bb7c0ff846b536cbb7a12707410ed 02-May-2012 Chris Craik <ccraik@google.com> Add temporary functor lifetime logging

bug:6405861

Note: revert once the above bug is verified fixed

Change-Id: Iae04ec6ffa73a2711f96e128d60011bcb5864b5c
wui/OpenGLRenderer.cpp
c3cca66404571454ee13b341925fe45efd5036e6 02-May-2012 Jeff Brown <jeffbrown@google.com> am 0632b35b: Merge "Improve handling of built-in keyboard." into jb-dev

* commit '0632b35b6828cd4324b3d218c2e38f895e819aad':
Improve handling of built-in keyboard.
0632b35b6828cd4324b3d218c2e38f895e819aad 02-May-2012 Jeff Brown <jeffbrown@google.com> Merge "Improve handling of built-in keyboard." into jb-dev
daa3753a04699724d2cfe824ac1f5a266d643a05 02-May-2012 Jeff Brown <jeffbrown@google.com> Improve handling of built-in keyboard.

The window manager policy made some incorrect assumptions about the
meaning of the Configuration.keyboard field. We need to be more
careful about distinguishing between built-in and external keyboards.

Most of this change is to move the determination of the parts of
the Configuration related to input devices into the WindowManagerService
leveraging new features of the InputManagerService to good effect.

Then we plumb through the flag that indicates whether a device
is internal or external so that we can be more particular about
how the lid switch effects changes to the Configuration.

Bug: 6424373
Change-Id: I36a1c22ade35e578955465a25940a33f227b9763
ndroidfw/InputDevice.cpp
2bee5f4f1a2387d9cfc0604fb93d2af17ae3c86b 01-May-2012 Chet Haase <chet@google.com> am 3b83dc42: Merge "Fix launcher invisibility bug" into jb-dev

* commit '3b83dc42df8d2d2b97bfa63a00f2d0c742fe8dfc':
Fix launcher invisibility bug
6f9ad204cc529babeb3aa7c9a57cf00ed7188471 01-May-2012 Chet Haase <chet@google.com> Fix launcher invisibility bug

There was a bug in the DisplayList code for layers where we would
set the alpha value for a layer only if the alpha were non-1. This works
most of the time (since the value is usually 1 and doesn't need to
be set at all, and if the value is non-1, it is set correctly). But when
the value has been set to a non-1 value, setting alpha back to 1 cannot happen
due to this logic. This caused launcher to have some invisible pages when
returning to Home because those pages previously had an alpha value of 0, and
setting the alpha to 1 had no effect due to this DisplayList code.

The fix is to simply remove the check for non-1 values; we should
always set the alpha value of layers to handle all cases.

Issue #6413892 alpha value is messed up after AlphaAnimation

Change-Id: Ia51acb2eaaf0609ea7189998ed449bdd9ea7e05f
wui/DisplayListRenderer.cpp
3e2d59146df9e9e325dcc65018bb130b03242bbc 01-May-2012 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of 13c04786 to jb-dev-plus-aosp

Change-Id: Ib7aa5a768f4606beb2a4387811cfed7c00cbc111
39b58ba2b299e1c97e13535aae9add530d942c7b 01-May-2012 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of bc2fb7b9 to jb-dev-plus-aosp

Change-Id: I5386585e473201268c6ed8b05e0a16569d434ea2
b2228eb7141354089f974a4db3b5224a0ad75fd4 01-May-2012 Jean-Baptiste Queru <jbq@google.com> Merge "Runtime resource overlay: clean-up."
9e3bc3f61df541271c8a1dfc5564cab853951aec 01-May-2012 Jean-Baptiste Queru <jbq@google.com> Merge "Build overlay packages just like regular packages."
ffd6ea4523d8fa1210d2a7bb757cc65e1d18465f 28-Apr-2012 Jeff Brown <jeffbrown@google.com> Merge "Resample touch events on frame boundaries." into jb-dev
771526c88f5cc4b56a41cb12aa06a28d377a07d5 28-Apr-2012 Jeff Brown <jeffbrown@google.com> Resample touch events on frame boundaries.

Bug: 6375101
Change-Id: I8774e366306bb2b6b4e42b913525bf25b0380ec3
ndroidfw/Input.cpp
ndroidfw/InputTransport.cpp
ndroidfw/tests/InputPublisherAndConsumer_test.cpp
665a376d245d7bbfc43e3cfa651afc7448604afa 28-Apr-2012 Romain Guy <romainguy@google.com> Merge "Work-around for a Skia rasterization bug Bug #6411457" into jb-dev
fdd6fc1beb5076a630c7066b8b1731995636c09f 27-Apr-2012 Romain Guy <romainguy@google.com> Work-around for a Skia rasterization bug
Bug #6411457

Skia does not generates the bottom right pixel of a rect when
drawing a rect as an SkPath into an alpha8 bitmap.

Change-Id: Ifb5286ae67745c9e44ee387b6d6ad607a9a2e6ce
wui/PathCache.cpp
wui/ShapeCache.cpp
wui/ShapeCache.h
8bd12ea8001f72f4450e318e43c50dbc46b4869c 26-Apr-2012 Romain Guy <romainguy@google.com> Merge "Decode common GL error codes when logging frame error status" into jb-dev
a44a63ac5c29b2cc57df95ec495def8cdddd9c6f 26-Apr-2012 Romain Guy <romainguy@google.com> Decode common GL error codes when logging frame error status

Change-Id: I38b333eea53aef20340ce48dfcb0dd30a223f7a8
wui/OpenGLRenderer.cpp
a75fbc3c76dfe6a1c678b66f83cef878e3f3cdf4 26-Apr-2012 John Reck <jreck@google.com> Merge "On new content, attach functor directly" into jb-dev
c189ef53220059acf2adedc92ac4ac7e6a993e6b 26-Apr-2012 Romain Guy <romainguy@google.com> Ensure we start every frame in the proper GL state
Bug #6345013, #6314960

Change-Id: I6985f7f233eb6a5f9223e9f4be3f323154b5dbf0
wui/OpenGLRenderer.cpp
c2c9543c135ffc4e18c7db0e817112ac03e3e97a 26-Apr-2012 Chris Craik <ccraik@google.com> On new content, attach functor directly

bug:6323847

depends on external/webkit change: https://android-git.corp.google.com/g/#/c/184314/

Change-Id: Ibdf997f3ee4f5c5c1ea5a320556813f175fea93f
wui/OpenGLRenderer.cpp
3d745c03ace18ee59c539e1b7f1df13f22beb57d 24-Apr-2012 Romain Guy <romainguy@google.com> Fix the build before the bot yells at me.

Change-Id: Ice7fe02b684ad662262aae3cac7a48a835ebcad5
wui/OpenGLRenderer.cpp
ba6be8a62dcdb3ffd210cd36b9af4e3a658eac47 24-Apr-2012 Romain Guy <romainguy@google.com> Prevent WebView from crashing when detached from the window
Bug #6365056

WebView enqueues a functor in the hardware renderer to handle
animations and this functor is called at a later time by the
hardware renderer. However, the functor was not removed from
the queue when WebView was removed from the window. This could
cause the hardware renderer to attempt to execute an invalid
functor and lead to a crash.

Change-Id: I9d38e80f3fdc5e29d4d0cdfa1e893c251a954508
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
8bca94ad83f82682bc15df29dc25377fe43da17f 24-Apr-2012 Jeff Brown <jeffbrown@google.com> More work on international keyboards.

Changed the English US keymaps to implement a strict US key map
with no additional ALT functions.

Fixed a bug copying the alias in the InputDevice copy constructor.

Added support for end of line comments in KCM and KL files.

Added the German keyboard layout.

Sorted the keys in the keyboard layout files by physical arrangement
to make it easier to maintain them.

Bug: 6110399
Change-Id: If44d83de5b98f2bf0016cbb8e12264387b286aaa
ndroidfw/InputDevice.cpp
ndroidfw/KeyCharacterMap.cpp
ndroidfw/KeyLayoutMap.cpp
1271e2cc80b01d577e9db339459ef0222bb9320d 20-Apr-2012 Chet Haase <chet@google.com> Remove USE_DISPLAY_LIST_PROPERTIES flag

This flag was still hanging around pending any need to disable
DisplayList properties. But things seem stable, so it's time to clean up
and simplify the code.

At the same time, I reduced redundance in DisplayList dimensions. We
used to call drawDisplayList() with width/height parameters that were
used to do a clip reject. This is redundant with the DisplayList properties
that set the bounds of the DisplayList; the left/right and top/bottom properties
represent the same width/height properties formerly used in drawDisplayList().
The new approach is to not pass dimensions to drawDisplayList(), but to
instead pull those dimensions directly from the DisplayList when needed.

Change-Id: I8871beff03b1d4be95f7c6e079c31a71d31e0c56
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
5bbd4b4f5fc19302fa017ad6afee6eb2d489d91a 21-Apr-2012 Jeff Brown <jeffbrown@google.com> Get alias for Bluetooth devices.

Bluetooth devices can be renamed by the user. Make the
input system aware of the user-specified name and transparently
pass it down to applications. This enables the keyboard
layout picker Settings UI to use device names that are
consistent with what the user set in the Bluetooth UI.

Bug: 6363157
Change-Id: I8eea26ce2c69c2a3f09c8de02e9e847610e0419c
ndroidfw/InputDevice.cpp
9a2bbf680e3b5b98051b9f2913ab6bd31b77f79a 18-Apr-2012 Jeff Brown <jeffbrown@google.com> Improve handling of certain keyboard layout properties.

Automatically choose a default value for the 'number' property
based on the characters that the key can generate.

Don't generate any character when ctrl, alt or meta is
pressed unless the behavior exactly matches the modifier keys
that are pressed.

Simplified the basic keyboard layouts taking into account the
new features.

Bug: 6110399
Change-Id: Ibc0f0b50c2dcf3f962a33ac77c24d2993b77637d
ndroidfw/KeyCharacterMap.cpp
4a3862f6b0a8971b6ab5b1c46735b28e7604d0db 18-Apr-2012 Jeff Brown <jeffbrown@google.com> Add Dvorak keyboard layout.

Added support for mapping both scan codes and HID usages to
KeyLayoutMap and KeyCharacterMap. Keyboard overlays can
now influence how key events are mapped to key codes.

Bug: 6110399
Change-Id: I6619fd2d3e1337c55928f89869dbc45b535c7ccf
ndroidfw/KeyCharacterMap.cpp
ndroidfw/KeyLayoutMap.cpp
6ec6f79e1ac1714e3b837796e99f07ff88f66601 18-Apr-2012 Jeff Brown <jeffbrown@google.com> Support loading keyboard layout overlays from resources.

Added the concept of a keyboard layout overlay, which is
a key character map file that has "type OVERLAY".

Added support for loading keyboard layout overlays from
resources dynamically. The layouts are reloaded whenever they
are changed in the Settings application or an application
is installed. This is somewhat more aggressive than necessary
so we might want to optimize it later.

Before system-ready, the input system uses just the generic
keyboard layouts that are included on the device system image.
After system-ready, it considers the user's selected keyboard
layout overlay and attempts to load it as necessary. We need to
wait until system-ready before doing this because we need to
be in a state where it is safe to start applications or access
their resources.

Bug: 6110399
Change-Id: Iae0886d3356649b0d2440aa00910a888cedd8323
ndroidfw/KeyCharacterMap.cpp
ndroidfw/Keyboard.cpp
a47425a13c19f95057df78b8bb65bb25657e8753 13-Apr-2012 Jeff Brown <jeffbrown@google.com> Add support for input devices that have vibrators.

Added a getVibrator() method to InputDevice which returns a Vibrator
associated with that input device. Its uses the same API as the
system vibrator which makes it easy for applications to be modified
to use one or the other.

Bug: 6334179
Change-Id: Ifc7f13dbcb778670f3f1c07ccc562334e6109d2e
ndroidfw/InputDevice.cpp
882735972e9e7ee52a3116a3aba0440968b2da1a 13-Apr-2012 Jeff Brown <jeffbrown@google.com> Merge "Notify applications when input devices change."
af9e8d38184c6ba4d2d3eb5bde7014a66dd8a78b 13-Apr-2012 Jeff Brown <jeffbrown@google.com> Notify applications when input devices change.

This change allows the InputManager to keep track of what input
devices are registered with the system and when they change.
It needs to do this so that it can properly clear its cache of
input device properties (especially the key map!) when changes
occur.

Added new API so that applications can register listeners for
input device changes.

Fixed a minor bug in EventHub where it didn't handle EPOLLHUP
properly so it would spam the log about unsupposed epoll events
until inotify noticed that the device was gone and removed it.

Change-Id: I937d8c601f7185d4299038bce6a2934fe4fdd2b3
ndroidfw/InputDevice.cpp
a23eed808a1ae4ec0d818c0a9238385e797fd056 13-Apr-2012 Chet Haase <chet@google.com> Fix layer blending bug

Cached layers were sometimes retaining an obsolete blending
value, causing artifacts where translucent objects were disappearing
completely. Also, added extra tracing info for DisplayLists.

Issue #6303668 Flickering views during SwipeHelper drag

Change-Id: I66ce158652c4a3ed316040585b40b1744e1fad0c
wui/DisplayListRenderer.cpp
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
cc1169831921d9295b2fc01c1eaf7e9b00836f53 12-Apr-2012 Jeff Brown <jeffbrown@google.com> HID usage should take precedence over scan code.

Change-Id: Ibd8988e3dcc0d64f4019ffe491d9789733f9d243
ndroidfw/KeyLayoutMap.cpp
49ccac530b5a798e3c4a79b66b51b8546a0deed1 12-Apr-2012 Jeff Brown <jeffbrown@google.com> Refactor key code mapping.

Added handling for EV_MSC / MSC_SCAN which typically reports
the HID usage associated with a key. This will enable key maps
to map keys with HID usages that Linux does not natively recognize.

Removed keyCode and flags fields from EventHub RawEvent since
they don't necessarily make sense in isolation now that we
pay attention to HID usage codes too.

Removed the fallback code for mapping keys and axes. In practice,
an input device should be self-sufficient. We should not ever
need to look at the built-in keyboard's key map. In fact, there
usually isn't a built-in keyboard anyhow. This code was originally
working around a problem where we weren't loading the key map
for touch screens with virtual keys, which has long since been fixed.

Change-Id: I0a319bdec44be9514f795526347397e94d53a127
ndroidfw/KeyLayoutMap.cpp
7b6a75872bd2df96a23453d31c2e2e7fcc373554 11-Apr-2012 Chet Haase <chet@google.com> Pass width/height parameters to webview

When webview draws into an fbo layer, it needs to know the
size of that surface to create the rendering transform appropriately.
This change copies in the current viewport size to the structure that
is passed to the webview.

Change-Id: I7160b0836d00834134c799c95a439cdc045e2035
wui/OpenGLRenderer.cpp
9f25b7fdf216c9ef0bd2322cd223eeaf0d60f77f 10-Apr-2012 Jeff Brown <jeffbrown@google.com> Request key maps from input manager service.

Instead of each application loading the KeyCharacterMap from
the file system, get them from the input manager service as
part of the InputDevice object.

Refactored InputManager to be a proper singleton instead of
having a bunch of static methods.

InputManager now maintains a cache of all InputDevice objects
that it has loaded. Currently we never invalidate the cache
which can cause InputDevice to return stale motion ranges if
the device is reconfigured. This will be fixed in a future change.

Added a fake InputDevice with ID -1 to represent the virtual keyboard.

Change-Id: If7a695839ad0972317a5aab89e9d1e42ace28eb7
ndroidfw/Android.mk
ndroidfw/Input.cpp
ndroidfw/InputDevice.cpp
ndroidfw/KeyCharacterMap.cpp
ndroidfw/KeyLayoutMap.cpp
ndroidfw/Keyboard.cpp
544f89aece46e8f4bbe4eed93116c8736e68ac07 09-Apr-2012 Teng-Hui Zhu <ztenghui@google.com> Update SurfaceTexture interface for forward compatibility

Change-Id: I32d224428c0127800714a976b4d7bb68cc7c2464
ui/SurfaceTexture.cpp
5bcbfcec4bc49a141341dd333aed2d0d774d04a0 07-Apr-2012 Ying Wang <wangying@google.com> You don't need LOCAL_STATIC_LIBRARIES when building static library.

and there is no target static library with name libutils.

Change-Id: Ifec34e1b484d749d3fcd11abe610f192a3213767
torage/Android.mk
69bba1dfb75a732e9d1ee92f1088d6fbe1e26f68 07-Apr-2012 Jeff Brown <jeffbrown@google.com> Merge "Add a unique input device descriptor."
e38fdfae9196afd1bdc14c5ec6c12793af1e2550 06-Apr-2012 Jeff Brown <jeffbrown@google.com> Add a unique input device descriptor.

The purpose of the input device descriptor is to make it possible
to associate persistent settings for each input device, such as the
keyboard layout.

The descriptor is a hash of the information we have about the
device, such as its vendor id, product id, unique id, name,
or location.

Bug: 6110399
Change-Id: Idb80f946819b3f0dbf4e661bb0a753dbc2b60981
ndroidfw/Input.cpp
65924a3e56c2e7ac863f8e25e9f9a58b9db7d513 06-Apr-2012 Chris Craik <ccraik@google.com> fix functor flag parsing, tweak process delay

Change-Id: I0a679cc33f92ff6fd2e33db9ad58b52622def012
wui/OpenGLRenderer.cpp
fda531c9e4e49cfd962d3784b3501f6a1e64dc22 04-Apr-2012 Romain Guy <romainguy@google.com> Merge "Disable AA lines vertex attrib arrays after rendering"
7b63142d2f4bc32beacedcc761453b8aea1f3a86 04-Apr-2012 Romain Guy <romainguy@google.com> Disable AA lines vertex attrib arrays after rendering

Change-Id: I2f035e9d87f4f97bc1e37355c84570fd58df0374
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
8c8c2400923bd5b0ab1f52adc4f2232dbf690d91 04-Apr-2012 Romain Guy <romainguy@google.com> Merge "Optimize FBOs composition"
e0aa84b7dc087e999e20055dcc04cb6a48d5bd62 04-Apr-2012 Romain Guy <romainguy@google.com> Optimize FBOs composition

Change-Id: Ifc8eada8922509373c0e4c3b2ed75b6f08d098de
wui/OpenGLRenderer.cpp
db8c9a6a4d9bf8c39f834b25611926caf21380f6 22-Mar-2012 Chet Haase <chet@google.com> Optimization of alpha with DisplayList properties

Some views (such as ImageView and TextView) handle non-opaque alpha
values directly. This was originally an optimization, but we can handle it faster
in many cases without this optimization when DisplayList properties are enabled.
Basically, if a view has non-overlapping rendering, we set the alpha value directly
on the renderer (the equivalent of setting it on the Paint object) and draw each
primitive with that alpha value. Doing it this way avoids re-creating DisplayLists
while getting the same speedup that onSetAlpha() used to get pre-DisplayList properties.

Change-Id: I0f7827f075d3b35093a882d4adbb300a1063c288
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Snapshot.cpp
wui/Snapshot.h
e2eaf6997d429249904f842092b075f3da92c5be 03-Apr-2012 Romain Guy <romainguy@google.com> Merge "Prevent crash when flushing the layers cache Bug #6258973"
5c88fc744db977ef26887df9605beaa409394806 03-Apr-2012 Romain Guy <romainguy@google.com> Prevent crash when flushing the layers cache
Bug #6258973

When flushing the layer caches we would attempt to delete the FBOs
associate with layers in the cache. The FBO property was however not
always properly cleared when recycling layers.

Change-Id: I7dedfe391d659a0849f1e1d84df17313b2c6e2b2
wui/LayerCache.cpp
wui/LayerRenderer.cpp
wui/OpenGLRenderer.cpp
b6a80077dca5a17f33350075485a534d7ed8fa2b 03-Apr-2012 Chris Craik <ccraik@google.com> Merge "Allow fine-grained control over functors execution"
8d56b0e1d24f7392314df4be6503af395a843696 03-Apr-2012 Chet Haase <chet@google.com> Enabling DisplayList properties

An earlier commit fixed problems with enabling DisplayList properties.
This CL actually enables the properties.

Change-Id: I5c41d0c64e9241822af53eb367de0fed7d9608e0
wui/DisplayListRenderer.h
9420abd56a2af7ddbeb70562b79d61b2dca8c5a1 30-Mar-2012 Chet Haase <chet@google.com> Re-enable DisplayList properties.

Re-enabling DisplayList properties last week caused some app
errors due to the way that some transforms were being handled (specifically,
those coming from the old Animations and ViewGroup's childStaticTransformation
field). This change pushes *all* transform/alpha data from View.draw() into
the view's DisplayList, making DisplayLists more encapsulated (and correct).

Change-Id: Ia702c6aae050784bb3ed505aa87553113f8a1938
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
8f3b8e32993d190a26c70c839a63d8ce4c3b16d9 28-Mar-2012 Romain Guy <romainguy@google.com> Allow fine-grained control over functors execution

Adds non-drawing execution mode

Change-Id: I82f92cf1b9a3b9ff2ca6d7427c4e02b73e04e6bf
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
f1260aac0ea7d48794177da0078ab6e85df3f1f3 29-Mar-2012 Chet Haase <chet@google.com> Merge "Disable DisplayList properties pending fixes for AlphaAnimation"
76240dafe8654cc3b858241e76618e5b2db5451c 29-Mar-2012 Chet Haase <chet@google.com> Disable DisplayList properties pending fixes for AlphaAnimation

The new DisplayList properties design has ordering conflicts with the
way that alpha works with old animations (AlphaAnimation). This CL
disables DiksplayList properties while I'm working on a fix and some
more thorough tests for old animations-vs-DL properties in general.

Change-Id: I8f6893138f939171491c2ec3c889214ee55d17b7
wui/DisplayListRenderer.h
972ed5809c518ecaaca58723e85282e58c12758c 29-Mar-2012 Alex Sakhartchouk <alexst@google.com> Merge "Moving libRS"
b43a1e5ddf274eb5e01dc8e450bd15b640bebe9f 28-Mar-2012 Alex Sakhartchouk <alexst@google.com> Moving libRS

Change-Id: I1e42204e862585b9c2f7818b615890c60f08faf6
s/Allocation.cpp
s/Allocation.h
s/Android.mk
s/BaseObj.cpp
s/BaseObj.h
s/Element.cpp
s/Element.h
s/RenderScript.cpp
s/RenderScript.h
s/Script.cpp
s/Script.h
s/ScriptC.cpp
s/ScriptC.h
s/Type.cpp
s/Type.h
s/driver/rsdAllocation.cpp
s/driver/rsdAllocation.h
s/driver/rsdBcc.cpp
s/driver/rsdBcc.h
s/driver/rsdCore.cpp
s/driver/rsdCore.h
s/driver/rsdFrameBuffer.cpp
s/driver/rsdFrameBuffer.h
s/driver/rsdFrameBufferObj.cpp
s/driver/rsdFrameBufferObj.h
s/driver/rsdGL.cpp
s/driver/rsdGL.h
s/driver/rsdMesh.cpp
s/driver/rsdMesh.h
s/driver/rsdMeshObj.cpp
s/driver/rsdMeshObj.h
s/driver/rsdPath.cpp
s/driver/rsdPath.h
s/driver/rsdProgram.cpp
s/driver/rsdProgramFragment.h
s/driver/rsdProgramRaster.cpp
s/driver/rsdProgramRaster.h
s/driver/rsdProgramStore.cpp
s/driver/rsdProgramStore.h
s/driver/rsdProgramVertex.h
s/driver/rsdRuntime.h
s/driver/rsdRuntimeMath.cpp
s/driver/rsdRuntimeStubs.cpp
s/driver/rsdSampler.cpp
s/driver/rsdSampler.h
s/driver/rsdShader.cpp
s/driver/rsdShader.h
s/driver/rsdShaderCache.cpp
s/driver/rsdShaderCache.h
s/driver/rsdVertexArray.cpp
s/driver/rsdVertexArray.h
s/rs.h
s/rs.spec
s/rsAdapter.cpp
s/rsAdapter.h
s/rsAllocation.cpp
s/rsAllocation.h
s/rsAnimation.cpp
s/rsAnimation.h
s/rsComponent.cpp
s/rsComponent.h
s/rsContext.cpp
s/rsContext.h
s/rsDefines.h
s/rsDevice.cpp
s/rsDevice.h
s/rsElement.cpp
s/rsElement.h
s/rsEnv.h
s/rsFBOCache.cpp
s/rsFBOCache.h
s/rsFifo.h
s/rsFifoSocket.cpp
s/rsFifoSocket.h
s/rsFileA3D.cpp
s/rsFileA3D.h
s/rsFont.cpp
s/rsFont.h
s/rsMatrix2x2.cpp
s/rsMatrix2x2.h
s/rsMatrix3x3.cpp
s/rsMatrix3x3.h
s/rsMatrix4x4.cpp
s/rsMatrix4x4.h
s/rsMesh.cpp
s/rsMesh.h
s/rsMutex.cpp
s/rsMutex.h
s/rsObjectBase.cpp
s/rsObjectBase.h
s/rsPath.cpp
s/rsPath.h
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramBase.h
s/rsProgramFragment.cpp
s/rsProgramFragment.h
s/rsProgramRaster.cpp
s/rsProgramRaster.h
s/rsProgramStore.cpp
s/rsProgramStore.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsRuntime.h
s/rsSampler.cpp
s/rsSampler.h
s/rsScript.cpp
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC.h
s/rsScriptC_Lib.cpp
s/rsScriptC_LibGL.cpp
s/rsSignal.cpp
s/rsSignal.h
s/rsStream.cpp
s/rsStream.h
s/rsThreadIO.cpp
s/rsThreadIO.h
s/rsType.cpp
s/rsType.h
s/rsUtils.h
s/rs_hal.h
s/rsgApi.cpp.rsg
s/rsgApiFuncDecl.h.rsg
s/rsgApiReplay.cpp.rsg
s/rsgApiStructs.h.rsg
s/rsg_generator.c
s/scriptc/rs_allocation.rsh
s/scriptc/rs_atomic.rsh
s/scriptc/rs_cl.rsh
s/scriptc/rs_core.rsh
s/scriptc/rs_debug.rsh
s/scriptc/rs_element.rsh
s/scriptc/rs_graphics.rsh
s/scriptc/rs_math.rsh
s/scriptc/rs_matrix.rsh
s/scriptc/rs_mesh.rsh
s/scriptc/rs_object.rsh
s/scriptc/rs_program.rsh
s/scriptc/rs_quaternion.rsh
s/scriptc/rs_sampler.rsh
s/scriptc/rs_time.rsh
s/scriptc/rs_types.rsh
s/spec.h
s/spec.l
s/tests/Android.mk
s/tests/ScriptC_mono.cpp
s/tests/ScriptC_mono.h
s/tests/compute.cpp
d927a1d99630c05ff773f0e9e8791ca9a965e020 28-Mar-2012 James Dong <jdong@google.com> Deleted the media, camera, drm related files since they are relocated

Change-Id: I9bc5573ee07e30b305b5b879023aa9ec69e10b91
amera/Android.mk
amera/Camera.cpp
amera/CameraParameters.cpp
amera/ICamera.cpp
amera/ICameraClient.cpp
amera/ICameraRecordingProxy.cpp
amera/ICameraRecordingProxyListener.cpp
amera/ICameraService.cpp
ommon_time/Android.mk
ommon_time/ICommonClock.cpp
ommon_time/ICommonTimeConfig.cpp
ommon_time/cc_helper.cpp
ommon_time/local_clock.cpp
ommon_time/utils.cpp
ommon_time/utils.h
c72cb1c2e0fe7966f4a32a51ef6b5238516ea772 27-Mar-2012 Alex Sakhartchouk <alexst@google.com> Merge "State based shader recompile to support camera input."
b85967b9af76e1e60f7a96603e2567a6449d2e04 26-Mar-2012 Chet Haase <chet@google.com> Re-enabling DisplayList properties

Several issues came up after DisplayList properties were enabled,
so they were disabled pending fixes. Those issues have been fixed, so
DisplayList properties are once again being enabled by default. This
CL both re-enables these properties (in View.java and DisplayListRenderer.h)
and fixes the various issues that enabling them caused the first time around.

Related issues (all currently marked as Fixed, though that was simply because
DL properties were disabled - this CL provides the real fixes now that
DL properties are enabled by default):
Issue #6198276 Text input broken
Issue #6198472 Native crash at pc 00076428 in many different apps in JRM80
Issue #6204173 Date/time picker isn't rendering all parts of UI
Issue #6203941 All Apps overscroll effect is rendered weirdly/has flickering
Issue #6200058 CAB rendering issue - not drawing items?
Issue #6198578 Front camera shows black screen after taking picture.
Issue #6232010 Layers not recreated when children change (DisplayList properties)

Change-Id: I8b5f9ec342208ecb20d3e6a60d26cf7c6112ec8b
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
f82b111a6d1cce9a31a008c6461ee72fa350f278 27-Mar-2012 Jamie Gennis <jgennis@google.com> Merge "rsdGL uses DummyConsumer"
56485fe62882065688e70fcb1f4b5c3894ed2c87 27-Mar-2012 Romain Guy <romainguy@google.com> Merge "Use a status_t return type for GL functors"
6554943a1dd6854c0f4976900956e556767b49e1 27-Mar-2012 Romain Guy <romainguy@google.com> Use a status_t return type for GL functors

WebView needs more fine-grained control over the behavior of the
framework upon execution of the display lists. The new status_t
allows WebView to requests its functor to be re-executed directly
without causing a redraw of the entire hierarchy.

Change-Id: I97a8141dc5c6eeb6805b6024cc1e76fce07d24cc
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/FontRenderer.cpp
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
ae540b9943dfd3b5ff757954a988978b68e73687 24-Mar-2012 Daniel Lam <dalam@google.com> rsdGL uses DummyConsumer

Using a DummyConsumer instead of a SurfaceTexture avoids
errors such as BufferQueue has been abandoned due to the SurfaceTexture
going out of scope and disconnecting from the BufferQueue.

Bug: 6172739
Change-Id: I775ead2d0392a68fd0f7e724d6eb25298d2fb00d
s/driver/rsdGL.cpp
9dcd8c2ab115a0275ed2d1a3846e4788dce9eabb 26-Mar-2012 Romain Guy <romainguy@google.com> Merge "Prevent random crashes on SGX architecture Bug #6219894"
a9dd820184ee4d083bd9b2af735dcf50b78fc6cd 26-Mar-2012 Romain Guy <romainguy@google.com> Prevent random crashes on SGX architecture
Bug #6219894

Change-Id: If77f29da03e557a50e53bae505e1c638a1dbe2cc
wui/FontRenderer.cpp
5ff1959f9541980c2c957f482a4b0999533bbb4e 26-Mar-2012 Alex Sakhartchouk <alexst@google.com> State based shader recompile to support camera input.

Change-Id: Ia6c362571e1b44254461522a8c49a8551b46f28d
s/driver/rsdProgram.cpp
s/driver/rsdShader.cpp
s/driver/rsdShader.h
s/driver/rsdShaderCache.cpp
s/driver/rsdShaderCache.h
30b8a65c5c2b950eaa95a0ce6792a05c30c86a08 26-Mar-2012 Glenn Kasten <gkasten@google.com> mv libcpustats from frameworks/base to /native

OK to lose history

Change-Id: I05ce0452f16a396cff6e18db5424492f3a6f6861
pustats/Android.mk
pustats/CentralTendencyStatistics.cpp
pustats/ThreadCpuUsage.cpp
cbe55a1c93056cf2878007ebf823a0ac2ad168b1 23-Mar-2012 Jason Sams <jsams@google.com> Merge "Implement USAGE_IO_INPUT"
fe1d5ffd1b6c4977a9f301997d2ad90e5b049a3b 23-Mar-2012 Jason Sams <jsams@google.com> Implement USAGE_IO_INPUT



Change-Id: Idbf7bb21f5ab673ad77082c5c19921d2b276c04b
s/Allocation.cpp
s/driver/rsdAllocation.cpp
s/driver/rsdCore.cpp
s/driver/rsdProgram.cpp
s/driver/rsdShader.cpp
s/driver/rsdShader.h
s/driver/rsdShaderCache.cpp
s/driver/rsdShaderCache.h
s/rs.spec
s/rsAllocation.cpp
s/rsAllocation.h
s/rsDefines.h
00da68de8e46076cc7f43ba2d5e647ebd0b4d289 23-Mar-2012 Alex Sakhartchouk <alexst@google.com> Merge "Wrapping new api's with proper RS_VERSION"
f8338c40b7b7d6368ae616153c89b3686a937b0a 23-Mar-2012 Alex Sakhartchouk <alexst@google.com> Merge "More rearrangement and renaming."
a982dc05d7ca919c07f50e446549ef9dceadf6bd 23-Mar-2012 Colin Cross <ccross@android.com> frameworks/base: move Zip* from libandroidfw to libutils

ZipUtils is needed by build/tools, move it from libandroidfw
(frameworks/base) to libutils (frameworks/native).

Change-Id: I2b4b7adcdf68eb25ee7cba5dd3b69eadf0523af3
ndroidfw/Android.mk
ndroidfw/Asset.cpp
ndroidfw/AssetManager.cpp
ndroidfw/ZipFileCRO.cpp
ndroidfw/ZipFileRO.cpp
ndroidfw/ZipUtils.cpp
ndroidfw/tests/Android.mk
ndroidfw/tests/ZipFileRO_test.cpp
dc60cc4253e43bacd0a52e47d03c73a5b0203b6e 23-Mar-2012 Alex Sakhartchouk <alexst@google.com> Wrapping new api's with proper RS_VERSION

Change-Id: Ib8656cb2b6d0b8adeab15edfd704620451ce56ad
s/scriptc/rs_allocation.rsh
s/scriptc/rs_core.rsh
s/scriptc/rs_element.rsh
s/scriptc/rs_mesh.rsh
s/scriptc/rs_program.rsh
s/scriptc/rs_sampler.rsh
s/scriptc/rs_types.rsh
043f5ced1bf82d8cf2df82a92a655afd26534df4 22-Mar-2012 Alex Sakhartchouk <alexst@google.com> More rearrangement and renaming.

Change-Id: Ia922c5bff1734a29b786ba95065f81c8dedf90cd
s/scriptc/rs_core.rsh
s/scriptc/rs_graphics.rsh
s/scriptc/rs_mesh.rsh
s/scriptc/rs_program.rsh
3347d6597bd6214f037825e41be7e58198d9079d 22-Mar-2012 Andrew Hsieh <andrewhsieh@google.com> am 1f9e7499: Added rules to build f/b/libs/utils in 64-bit: lib64utils.a

* commit '1f9e749914c7c636bd759da0209e68d5801407ac':
Added rules to build f/b/libs/utils in 64-bit: lib64utils.a
1f9e749914c7c636bd759da0209e68d5801407ac 13-Mar-2012 Andrew Hsieh <andrewhsieh@google.com> Added rules to build f/b/libs/utils in 64-bit: lib64utils.a

It's needed to build four shared libraries in 64-bit for 64-bit
emulator with "-gpu on"
lib64OpenglRender.so
lib64EGL_translator.so
lib64GLES_CM_translator.so
lib64GLES_V2_translator.so

Change-Id: Ia6c05b23df1e9cd9e7f2e94e4cd5bde4be5d336b
tils/Android.mk
ad13c81371cb0b7e49b4c33159a346ce08ac5d69 22-Mar-2012 Chet Haase <chet@google.com> Disable DisplayList properties

DisplayList properties are (again) disabled by default, via flags in
View.java and DisplayListRenderer.h. There are various artifacts to
chase down before enabling by default.

Issue #6198472 Native crash at pc 00076428 in many different apps in JRM80
Issue #6204173 Date/time picker isn't rendering all parts of UI
Issue #6203941 All Apps overscroll effect is rendered weirdly/has flickering
Issue #6200058 CAB rendering issue - not drawing items?
Issue #6198578 Front camera shows black screen after taking picture.

Change-Id: I045dc82ce1d85fedbae3bb88eb2a2dfb6891d41f
wui/DisplayListRenderer.h
b09aaeca0841fa053e0f70b7a6ff45ad475d32e1 21-Mar-2012 Alex Sakhartchouk <alexst@google.com> Merge "Changing rsg to rs where functions don't rely on graphics."
8564be6d8419f6b609e2d6c8daeec2d7b8594a0b 21-Mar-2012 Alex Sakhartchouk <alexst@google.com> Merge "Breaking up rs headers by logical components."
b0317984d34da99b614597ad0a8b39268eacb783 21-Mar-2012 Romain Guy <romainguy@google.com> Plug memory leak.
Bug #6196903

Whenever a memory flush happens, the GL renderer discards some or all of its
font caches. Each font cache holds an array of vertex indices that was
initially designed to have the same life cycle as the process. This changed
when memory flushes were introduced but this array was never taken care of
in the destructor.

Change-Id: Ief124f609ea55b671c0a9b43637d9e013629ebaa
wui/FontRenderer.cpp
73797e97a80df386982153e53a1b7c9c2a36d7b0 21-Mar-2012 Alex Sakhartchouk <alexst@google.com> Changing rsg to rs where functions don't rely on graphics.

Change-Id: I92a93d7a520b4a5416be88c7c05c2f8d3cc89243
s/scriptc/rs_graphics.rsh
79c23f0f884ceb494c922d6769e6f12260c72daa 21-Mar-2012 Alex Sakhartchouk <alexst@google.com> Breaking up rs headers by logical components.

Change-Id: I2d23eec0277b1136852b8a7acb61aecf6f699a7d
s/scriptc/rs_allocation.rsh
s/scriptc/rs_core.rsh
s/scriptc/rs_element.rsh
s/scriptc/rs_mesh.rsh
s/scriptc/rs_program.rsh
s/scriptc/rs_sampler.rsh
bdd896c26453ffc56831b0cd167e8780068cee53 19-Mar-2012 Chet Haase <chet@google.com> Enable DisplayList properties

This CL simply enables DisplayList property functionality. The code for
this feature is already there, but it's been disabled by default pending further
testing and analysis. This change sets these build-type flags to true
so that all hw-accelerated apps will now use DisplayList properties by default.

In particular, this feature enables a fast-path for changes that affect the
handful of View properties involved in animations (alpha, translationX, etc.).
Setting these properties now gets propagated to the native DisplayList associated
with the View, avoiding costly recreation of the SDK-level DisplayList and
also enabling faster invalidation of the view hierarchy.

Change-Id: Ic99c8f28fa9183f2e54e9e4860b333eb9c540f7c
wui/DisplayListRenderer.h
55ba267c097b5aadc265bbb9abc7ec5323c33194 16-Mar-2012 Jason Sams <jsams@google.com> Merge "Add prop to force cap compute threading."
4bf8b209955e8a35ec2e4101ed3612e03ecc5dbb 16-Mar-2012 Chet Haase <chet@google.com> Merge "Optimizing DisplayList properties"
9d1992deaeb3d60d5928f05b649a2cc654ba98a3 13-Mar-2012 Chet Haase <chet@google.com> Optimizing DisplayList properties

DisplayList properties are still disabled default (flags in View.java
and DisplayListRenderer.h). When they are enabled, and when a View has
a DisplayList, invalidations due to property changes are now optimized
to avoid causing DisplayList recreation. This eliminates the drawing step
of invalidation (due to changes in these properties), only requiring
issuing the previously-created DisplayList to the GL renderer. Invalidation
is slightly faster (less overhead as we walk up the hierarchy), getDisplayList()
is potentially much faster (going down to ~0ms), depending on the complexity
of the View being redrawn and the size of the invalidated hierarchy.

Change-Id: I57587d5b810c3595bdd72a6c52349c2a3d1bdf25
wui/DisplayListRenderer.cpp
8d3c318b2d6690a156cc22ef6599a73bee7ed482 16-Mar-2012 Wu-cheng Li <wuchengli@google.com> Merge "Add a new camera open API that allows taking the ownership."
2791429451d799d754a785e18e7bfb6befd05ba5 16-Mar-2012 Jason Sams <jsams@google.com> Add prop to force cap compute threading.

bug=6124869

Change-Id: Ibf2cc388f3906cea2741382ff5e522e3b416393c
s/driver/rsdCore.cpp
s/rsContext.cpp
s/rsContext.h
acdd4b9c4b03bc6660274ab878731383adb5bca5 15-Mar-2012 Romain Guy <romainguy@google.com> Set the default text length to -1, not 1

Change-Id: Iccf6f8366c0b659ba7c90df99ae05ebc5d81fcbb
wui/DisplayListRenderer.h
a1c41e13b521cdd611a8fc46e43b5ae0a2c00238 24-Feb-2012 Wu-cheng Li <wuchengli@google.com> Add a new camera open API that allows taking the ownership.

The purpose is to let face unlock always get the camera
successfully. What happened was the camera applications may
have opened the camera in onResume under the lock screen.
This API lets face unlock take the camera from the camera
application. A new permission will be added, so other
applicatoins won't be able to take the camera from the face
unlock.

bug:5584464

Change-Id: Ib3d9dcbc2161815b68db42327dc01148453704c6
amera/Camera.cpp
amera/ICameraService.cpp
81fe4fbd6ba87a0be556c57c14de0b23cf51f179 15-Mar-2012 Glenn Kasten <gkasten@google.com> Merge "AudioFlinger playback thread CPU measurement in Hz"
f57e2bceb9f09b0a06ebfe89cd5fd46efcfd6fc8 06-Mar-2012 Glenn Kasten <gkasten@google.com> AudioFlinger playback thread CPU measurement in Hz

Log statistics on CPU usage in Hz in addition to wall clock time

Use CPU statistics for all playback threads, not just MIXER
(but they are disabled by default by a compile-time debug macro).

ThreadCpuUsage library:
- Move statistics out of the library and leave that up to the caller
- Add API to determine a CPU's frequency

Change-Id: Ia1011123146e641fcf210ef26e78ae2b4d3b64ad
pustats/ThreadCpuUsage.cpp
d1c8c1292c4273442c052d0899f3375913a51fc5 14-Mar-2012 Jason Sams <jsams@google.com> Fix minor C++ api issues.

Change-Id: I30e12938be5da52b2d952db57a51b4deb5e27239
s/Script.cpp
s/Script.h
s/ScriptC.cpp
s/ScriptC.h
s/tests/ScriptC_mono.cpp
s/tests/ScriptC_mono.h
67c7377ef15508f7b459fe393d30a694ec519d62 14-Mar-2012 Romain Guy <romainguy@google.com> Merge "Correctly compute the number of bytes written by each op. Bug #6157792"
390f882f8905e8d1ac0d4b7f2e01aa04dccc3c16 14-Mar-2012 Romain Guy <romainguy@google.com> Correctly compute the number of bytes written by each op.
Bug #6157792

Previously, DisplayListRenderer would compute the number of bytes
written after a drawing op by looking at the difference between
the start pointer of the command stream and the end pointer of
the command stream. The SkWriter class used to record the commands
stream allocates blocks of storage which would cause a crash when
a command spanned two blocks.

Change-Id: I4d79d3feeb6d72d9d4e6ab05ecebd72d004be56c
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
29000644aece4bdaff9cd84fdbfacd38d1ec38a0 14-Mar-2012 Jason Sams <jsams@google.com> Merge "Fix test makefile"
759eb4e8f069ecebd3cd790997397d40568f4a12 14-Mar-2012 Jason Sams <jsams@google.com> Fix test makefile

bug=5972398

Change-Id: I9298e08220863eecf5c87047a05d7aa146a4c060
s/tests/Android.mk
9dc348d75688faba645c03ecd6e72de7cecc87ba 13-Mar-2012 Jeff Brown <jeffbrown@google.com> Merge "Fix spurious ANRs in native activities."
2b6c32ca4177f1a97307f9cbd81ca485df28762c 13-Mar-2012 Jeff Brown <jeffbrown@google.com> Fix spurious ANRs in native activities.

Some native activities experienced ANRs when the input consumer
deferred an input event due to client-side batching. If the
input channel was fully emptied then the client had no way of
knowing that it should wake up to handle the deferred input event.

This patch also fixes some lock issues in the native activity
input queue implementation. In at least one error case, it
was possible for a function to exit without releasing the lock.

Bug: 6051176
Change-Id: I4d9d843237e69b9834f8d8b360031b677fcab8c3
ndroidfw/Input.cpp
ndroidfw/InputTransport.cpp
491189f6bb81827a0c8e343f89420a9bcd2e62ae 13-Mar-2012 Chet Haase <chet@google.com> Fix garbage deref with DisplayList property structures

This is the real fix to issue 6158892. We currently delete
transform/camera structures at DisplayList destructor time, if these
structures are not NULL. We set the fields to NULL in an init() method
called (eventually) by the constructor. But it is possible for the object
to be destroyed before that init code is called, resulting in the deref
bug reported. The fi is to set these structures to NULL directly in the
constructor.

Issue 6158892i: Device runtime restarts frequently

Change-Id: Ibfa0f9314767eed6fd51f4ec7edc0d0edd5fdd0f
wui/DisplayListRenderer.cpp
3c9d9c18b41d052c76bad10a448d3acce024649b 13-Mar-2012 Romain Guy <romainguy@google.com> Merge "Follow the include style used elsewhere in the library"
d5a85fb63d91a9297e8d9a11016f3b3ed60dfbab 13-Mar-2012 Romain Guy <romainguy@google.com> Follow the include style used elsewhere in the library

Change-Id: I14aebdaeb04b6f4c611153ece4ac1f6ad9bfc15f
wui/DisplayListRenderer.cpp
866ed817d0adf5b874eff277b4a4d2bcc6f61830 13-Mar-2012 Chet Haase <chet@google.com> Fix garbage deref in DisplayList structures

Issue #6158892: Device runtime restarts frequently

Change-Id: I4e6afaaf9ac66d6846caf0ed82ea67163d8b15c2
wui/DisplayListRenderer.cpp
a1cff5043d0fbd78fcf9c48e7658e56a5b0c2de3 21-Feb-2012 Chet Haase <chet@google.com> Handle view properties at the native level

Basic functionality of handling View properties (transforms,
left/right/top/bottom, and alpha) at the native DisplayList level.
This logic is disabled for now (via compile-time flags in View.java and
DisplayListRenderer.h) as we continue work on it (there is no advantage
to the new approach until we optimize invalidation and rendering paths
to use the new code path).

Change-Id: I370c8d21fbd291be415f55515ab8dced6f6d51a3
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
3c4b03d48461928f007efff9da35c5197313fbac 12-Mar-2012 Stephen Hines <srhines@google.com> Merge "Fix argument passing with dimLOD."
d091526841d7eabd6fc73124b572c94bb47f177c 12-Mar-2012 Stephen Hines <srhines@google.com> Fix argument passing with dimLOD.

BUG=6152130

Change-Id: I5c857b692af8ec45e4cbef8140c44d72aec6600e
s/rsType.cpp
6e0621794dc771abf417ec0f408c5b6e9b2830b1 12-Mar-2012 Romain Guy <romainguy@google.com> Merge "Turn down the number of glGetError() calls."
3fe4eb9c60d39acaadd9f807b1a21c239d1270ef 12-Mar-2012 Romain Guy <romainguy@google.com> Turn down the number of glGetError() calls.

glGetError() was invoked every time a display list was updated. This
was unnecessary since display list updates do not execute OpenGL code.

Change-Id: Ia0a75a65ccf2a4701fb3a828848cd0c42f256c6c
wui/DisplayListRenderer.cpp
e1dd94b1a0698fa356b84e1aa80d43f09280c138 12-Mar-2012 Alex Sakhartchouk <alexst@google.com> Merge "Split off driver code into a separate static library."
772a73963d22163deff3fd3c7f65013ccb941f34 10-Mar-2012 Romain Guy <romainguy@google.com> Merge "Don't bind data to missing uniforms"
55fd2c9b2e87986b03cb58676bdf46bc6d5f1c36 10-Mar-2012 Romain Guy <romainguy@google.com> Don't bind data to missing uniforms

Change-Id: Ib9d1f14eb0bef04e0910baa4eaf3e49cce81c0ce
wui/OpenGLRenderer.cpp
50159b1f6af8cbb670ff49908c20d9cdedefb0af 10-Mar-2012 Alex Sakhartchouk <alexst@google.com> Split off driver code into a separate static library.

Change-Id: I055a6d7aecf3663e5e399a0ddee068cc33eca666
s/Android.mk
6df8876f79e4b784150eb46d5c63b623eac9f90d 09-Mar-2012 Alex Sakhartchouk <alexst@google.com> Merge "More header untangling."
6c8683987d36e7baafec0094fb94cfb97950ab38 09-Mar-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #6054627: resource matching issue of size qualifiers"
5c6dfeb1fb47102ffce415ea7898b33dd1290d54 09-Mar-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6054627: resource matching issue of size qualifiers

Resource matching would incorrectly identify two configs with the
same value as better than.

Change-Id: I7297dcf58fd5a43f1a5ff53bb093eeeb2cad090f
ndroidfw/ResourceTypes.cpp
bedc023170ccde8cc814df0b3e46a834b297325a 09-Mar-2012 Alex Sakhartchouk <alexst@google.com> More header untangling.

Change-Id: I090943775cbda8d9515cdb484957f6b05d5b1799
s/driver/rsdGL.cpp
s/rs.h
s/rsAdapter.cpp
s/rsAllocation.cpp
s/rsAnimation.h
s/rsContext.cpp
s/rsContext.h
s/rsFont.cpp
s/rsMesh.cpp
s/rsPath.cpp
s/rsPath.h
s/rsProgramVertex.cpp
s/rsScriptC_Lib.cpp
s/rsScriptC_LibGL.cpp
s/rsThreadIO.cpp
s/rsg_generator.c
a7e6f3a70406cf4ff5ff6c19d45390923db36658 09-Mar-2012 Alex Sakhartchouk <alexst@google.com> Merge "Starting to untangle header spaghetti."
137ccbb8de51fd2e7936e1da447856373cc90c17 09-Mar-2012 Alex Sakhartchouk <alexst@google.com> Starting to untangle header spaghetti.

Change-Id: I31f38d05dc8b55c659e8c7e9c0a87b94b9ac1db5
s/RenderScript.cpp
s/RenderScript.h
s/rsComponent.h
s/rsContext.cpp
s/rsElement.h
s/rsFileA3D.cpp
s/rsFileA3D.h
s/rsFont.cpp
s/rsFont.h
s/rsMesh.cpp
s/rsMesh.h
s/rsObjectBase.h
s/rsSampler.cpp
s/rsSampler.h
s/rsUtils.h
c31424e6c541c9ca00274166f4fd2db3c5b1e4e8 09-Mar-2012 Alex Sakhartchouk <alexst@google.com> Merge "Moving lod's into hal struct."
d7978a28219465e0e579adee3c9258b04c0a5b40 09-Mar-2012 Derek Sollenberger <djsollen@google.com> am 34ccd7af: Merge "Add missing includes for threads.h"

* commit '34ccd7af4216f571c2f88b32fea8bfed8ef0baab':
Add missing includes for threads.h
3b88729d2bf1f62ef913ea5d188846282ae32fef 08-Mar-2012 Alex Sakhartchouk <alexst@google.com> Moving lod's into hal struct.

Change-Id: Iaec34fea7c002d7948d91df6b7a1af7f832f74ea
s/rsType.cpp
s/rsType.h
8c79817dc6459baa2c79db88e3c3e4d5c07d6a61 08-Mar-2012 Mathias Agopian <mathias@google.com> remove files that moved to frameworks/native

Change-Id: I140d291e520097b1148930f736823650e08488f7
inder/Android.mk
inder/Binder.cpp
inder/BpBinder.cpp
inder/IInterface.cpp
inder/IMemory.cpp
inder/IPCThreadState.cpp
inder/IPermissionController.cpp
inder/IServiceManager.cpp
inder/MemoryBase.cpp
inder/MemoryDealer.cpp
inder/MemoryHeapBase.cpp
inder/Parcel.cpp
inder/PermissionCache.cpp
inder/ProcessState.cpp
inder/Static.cpp
ui/Android.mk
ui/BitTube.cpp
ui/BufferQueue.cpp
ui/DisplayEventReceiver.cpp
ui/IDisplayEventConnection.cpp
ui/IGraphicBufferAlloc.cpp
ui/ISensorEventConnection.cpp
ui/ISensorServer.cpp
ui/ISurface.cpp
ui/ISurfaceComposer.cpp
ui/ISurfaceComposerClient.cpp
ui/ISurfaceTexture.cpp
ui/LayerState.cpp
ui/Sensor.cpp
ui/SensorEventQueue.cpp
ui/SensorManager.cpp
ui/Surface.cpp
ui/SurfaceComposerClient.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
ui/tests/Android.mk
ui/tests/SurfaceTextureClient_test.cpp
ui/tests/SurfaceTexture_test.cpp
ui/tests/Surface_test.cpp
i/Android.mk
i/FramebufferNativeWindow.cpp
i/GraphicBuffer.cpp
i/GraphicBufferAllocator.cpp
i/GraphicBufferMapper.cpp
i/MODULE_LICENSE_APACHE2
i/NOTICE
i/PixelFormat.cpp
i/Rect.cpp
i/Region.cpp
i/tests/Android.mk
i/tests/region/Android.mk
i/tests/region/region.cpp
tils/Android.mk
tils/BasicHashtable.cpp
tils/BlobCache.cpp
tils/BufferedTextOutput.cpp
tils/CallStack.cpp
tils/Debug.cpp
tils/FileMap.cpp
tils/Flattenable.cpp
tils/LinearTransform.cpp
tils/Looper.cpp
tils/MODULE_LICENSE_APACHE2
tils/NOTICE
tils/PropertyMap.cpp
tils/README
tils/RefBase.cpp
tils/SharedBuffer.cpp
tils/Static.cpp
tils/StopWatch.cpp
tils/String16.cpp
tils/String8.cpp
tils/StringArray.cpp
tils/SystemClock.cpp
tils/TextOutput.cpp
tils/Threads.cpp
tils/Timers.cpp
tils/Tokenizer.cpp
tils/Trace.cpp
tils/Unicode.cpp
tils/VectorImpl.cpp
tils/misc.cpp
tils/primes.py
tils/tests/Android.mk
tils/tests/BasicHashtable_test.cpp
tils/tests/BlobCache_test.cpp
tils/tests/Looper_test.cpp
tils/tests/String8_test.cpp
tils/tests/TestHelpers.h
tils/tests/Unicode_test.cpp
08965ec67ada98f63f8ac879cc44c8b0e7ff046d 06-Mar-2012 Mathias Agopian <mathias@google.com> fixup hardcoded include paths for new project

Change-Id: Id443ec5c99bb4d7653905f1be1f72a029e0cf087
ndroidfw/tests/InputChannel_test.cpp
ndroidfw/tests/InputPublisherAndConsumer_test.cpp
ndroidfw/tests/TestHelpers.h
ac3c33745f1a8b2153688903494522ed956027df 08-Mar-2012 Jamie Gennis <jgennis@google.com> Merge "BufferQueue: fixed issues with buffer slots not available"
fc004c13501962a0ca552560fa79ede1e1ecbc4c 07-Mar-2012 Mathias Agopian <mathias@google.com> Merge "attempt to fix a deadlock in SurfaceTextureClient::disconnect"
c930cf3cf32d004dc636545940197a717c081eae 07-Mar-2012 Daniel Lam <dalam@google.com> BufferQueue: fixed issues with buffer slots not available

Bug: 6120953
Change-Id: Ief43f042ee9e1512e86fff8632a1c9dd31bdff35
ui/BufferQueue.cpp
ff249c0dc814dfc22d8575ec1ef3af03831dfaaa 07-Mar-2012 Glenn Kasten <gkasten@google.com> Merge "Remove references to sched_policy.h in RS"
3e964c55ac324a867d2efe7cee61eacb511309d1 07-Mar-2012 Mathias Agopian <mathias@google.com> attempt to fix a deadlock in SurfaceTextureClient::disconnect

- condition wasn't signaled if an error happened between acquire and release
- also replace signal with broadcasts

Bug: 6109450
Change-Id: Iaf9371b829f772f559daae42e06d4dbd9505d6a0
ui/BufferQueue.cpp
66199cf939efbffb9154df89f85d0d30c8d3ec55 06-Mar-2012 Glenn Kasten <gkasten@google.com> Merge "Remove obsolete references to sched_policy.h"
ffa09ece76143d33a0f05400d163840c379541fe 05-Mar-2012 Derek Sollenberger <djsollen@google.com> Add missing includes for threads.h

The missing header was being transitively included through a
Skia header which is being removed.

Change-Id: I5a65bae076027951fe07d1e7eecd4732124fb0e4
wui/GradientCache.h
wui/TextureCache.h
6d159451bbb5f568c4c3ae3a9e010a9512a106d5 06-Mar-2012 Derek Sollenberger <djsollen@google.com> Merge "Add missing includes for Mutex.h"
18364b31fcac0d3e3683c2d2ed13bad79c391935 06-Mar-2012 Mathias Agopian <mathias@google.com> Merge "Add ATRACEs for Buffer indices"
403475a894de8b898c1e0bafdeae2e2f7dd19951 06-Mar-2012 Glenn Kasten <gkasten@google.com> Remove obsolete references to sched_policy.h

As part of scheduling policy cleanup, remove or isolate
all references to the scheduling policy APIs.

Change-Id: Ia1ea2fe711a399039f25217309e061267744b856
inder/IPCThreadState.cpp
583786175ecc2992ecb7e911e896ec705983d944 06-Mar-2012 Glenn Kasten <gkasten@google.com> Remove references to sched_policy.h in RS

As part of scheduling policy cleanup, removing some references to
sched_policy.h and its APIs. Activity manager should be responsible
for configuring scheduling policy, rather than leaving it up to each app.

Change-Id: Iffe972799bf3fde090b1efdd3abce5141e4d261e
s/driver/rsdCore.cpp
s/rsContext.cpp
029f64303b8fe506ef34c12777da86b830d3bf7a 05-Mar-2012 Derek Sollenberger <djsollen@google.com> Add missing includes for Mutex.h

The missing header was being transitively included through a
Skia header which is being removed.

Change-Id: I5a65bae076027951fe07d1e7eecd4732124fb0e4
wui/GradientCache.h
wui/TextureCache.h
bb0acdf9e1d862a7cf0e2533321fc1105c29b5e3 05-Mar-2012 Romain Guy <romainguy@google.com> Delete display list objects and resources on the UI thread
Bug #6073717
Bug #6065504
Bug #6026515
Bug #5971725

Prior to this patch, the destructor of DisplayList would always run
on the finalizer thread. This could cause a race condition if the UI
thread was busy rendering display lists at the same time leading to
various random native crashes.

Change-Id: Ie11108e3b1538d4b358a1a8b4cce1b2d33152d0c
wui/Caches.cpp
wui/Caches.h
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
fb9c41c2060497a459d16c30122e1d082895e5d1 05-Mar-2012 Romain Guy <romainguy@google.com> Merge "Deferred layer updates"
303a0673734baf7043134bae391dc37abbc9011e 05-Mar-2012 Mathias Agopian <mathias@google.com> Merge "BufferQueue: fixed acquire operation"
c730aceb64233592c5a0d8b6a429d645443b3818 05-Mar-2012 Alex Sakhartchouk <alexst@google.com> Merge "Add multisampling support to renderscript."
e7de7258edf8eab68172e1dcd0d7984e5849dc08 05-Mar-2012 Alex Sakhartchouk <alexst@google.com> Merge "Using surface texture as a default renderscript surface."
2bf68f063b0077ddef6ebfe54f2ae5e063c2c229 02-Mar-2012 Romain Guy <romainguy@google.com> Deferred layer updates

Change-Id: I83d9e564fe274db658dcee9e0cc5bbf9223ebb49
wui/Layer.h
wui/OpenGLRenderer.cpp
d137cc7c92f2ed0d16ef7464b749b04bc6db8b53 02-Mar-2012 Daniel Lam <dalam@google.com> BufferQueue: fixed acquire operation

Bug: 6082872
Change-Id: I897dc61eb84fed953e51f97871cd3ae6321505d4
ui/BufferQueue.cpp
d1220b904d3313fbfd6bd32fa890741b06658ba3 02-Mar-2012 Mathias Agopian <mathias@google.com> Add ATRACEs for Buffer indices

Change-Id: I44d7a9a9bf03f418cab2a4854583aac9e533daee
ui/BufferQueue.cpp
7e5f1e8dc03f163274be1e1bb97f4b05dcc0a510 02-Mar-2012 Mathias Agopian <mathias@google.com> Merge "add more tracing for buffer allocation"
ad1daaa87b793af30f3dd67a0f3cd5c0fd6ac0c1 02-Mar-2012 Romain Guy <romainguy@google.com> Remove stray log

Change-Id: I0c1979aab395098651c8a63d0bae0198ebc3746b
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
d8f45c16a896d76d06550a91d78e8c5a3a57275a 01-Mar-2012 Romain Guy <romainguy@google.com> Merge "Small tweak to Canvas.drawPath() GL implementation"
dd7c8e4c68205d39109d4317dd0c9b05ed43e8e5 01-Mar-2012 Romain Guy <romainguy@google.com> Small tweak to Canvas.drawPath() GL implementation

Change-Id: I1d668a912996e1267bcf2127058888e489a2d9b3
wui/FontRenderer.cpp
wui/OpenGLRenderer.cpp
541b492d49167ad804f1ef2f13fd36f8284ac678 01-Mar-2012 Alex Sakhartchouk <alexst@google.com> Merge "Allocation sampling api prototypes."
09264d5248b637c87b4746c4f3bf1a644c759a6e 01-Mar-2012 Mathias Agopian <mathias@google.com> add more tracing for buffer allocation

Change-Id: I8408850d0625985992ef2e2cd0c9f300b1fca293
i/GraphicBufferAllocator.cpp
i/GraphicBufferMapper.cpp
7084e75282d6c800a1b889eff66794a8cd62e0c5 01-Mar-2012 Romain Guy <romainguy@google.com> Merge "Full implementation of Canvas.drawPath()"
9777173eb6c9eb97c7921c8288ebc65e3ab3ce6f 29-Feb-2012 Romain Guy <romainguy@google.com> Full implementation of Canvas.drawPath()

Change-Id: I23223b89770a0cd2b4762365bead9bfddb094290
wui/FontRenderer.cpp
wui/FontRenderer.h
wui/OpenGLRenderer.cpp
96804ad6bc65ae15d35101f99dfbf0c818bb7a20 01-Mar-2012 Alex Sakhartchouk <alexst@google.com> Allocation sampling api prototypes.

Change-Id: Ia11c6a107ea49ad6f40cfd220c537376a18c3b62
s/scriptc/rs_allocation.rsh
s/scriptc/rs_graphics.rsh
s/scriptc/rs_types.rsh
502695d5283917d4c9e5a549d01c431dea4b1a5c 01-Mar-2012 Andrew Hsieh <andrewhsieh@google.com> Merge "Fixed several 64-bit porting issues"
f79760b4aa83913e37a538a2a0a42d34a9dcf2b8 29-Feb-2012 Glenn Kasten <gkasten@google.com> Merge "Shorten thread names"
86e3362f1589eda1b1604f9d0fa31b3a78ef8aec 28-Feb-2012 Glenn Kasten <gkasten@google.com> Shorten thread names

prctl(PR_SET_NAME) limits to 15 characters. Before we had names like
"Binder Thread #" and the counter was cut off :-( Also remove redundant
"thread" at end of name; it's always a thread.

Change-Id: I1f99c2730ba0787ed9b59c15914356cddf698e2f
inder/ProcessState.cpp
f203b83d2fac1def48dfba23d7020a8c6b4abb70 28-Feb-2012 Alex Sakhartchouk <alexst@google.com> Add multisampling support to renderscript.

Change-Id: I38bf50a5b54aa5df7e4f76ea40027d9e36dc4b5d
s/driver/rsdGL.cpp
eb8b1fe91faa6ecaf1fb119bd557f96bde9f6bbc 28-Feb-2012 Alex Sakhartchouk <alexst@google.com> Using surface texture as a default renderscript surface.

Change-Id: I969aa56683fdf4538ff54fa1065dada77cf9d04d
s/driver/rsdGL.cpp
b1badfc7484070c7cd367320cb6b8bf24ff76817 28-Feb-2012 Mathias Agopian <mathias@google.com> get rid of MemoryHeapPmem

MemoryHeapPmem is not used any longer. PMEM is not a supported
type of memory by the system anymore. a particular device might
use PMEM and need something like MemoryHeapPmem, in this case this
should be implemented in device specific code (HAL).

This will most likely break older no longer supported targets.

Change-Id: I434e4291219950018de8b793b0403bb2d92dd5cc
inder/Android.mk
inder/MemoryHeapPmem.cpp
3169e4bd15e92d71cd920db5159caa275c98da36 28-Feb-2012 Mathias Agopian <mathias@google.com> Merge "move CursorWindow from libbinder to libandroidfw"
d9df224570325c41f9aa9f3a25bf4baf828065f2 28-Feb-2012 Andrew Hsieh <andrewhsieh@google.com> Fixed several 64-bit porting issues

1. Use "%zu" instead of "%d" for size_t in printf
2. Variable precision specifier (eg. "%.*s") in printf should be of type int.
(iov_len is size_t which is 64-bit when compiled with -m64)
3. Use PRId64 instead of "%lld" to print variables of type int64_t

Change-Id: I2be40a6514b5dffa0038d62b9bccc3401b8756e6
tils/BlobCache.cpp
tils/Debug.cpp
tils/Static.cpp
tils/StopWatch.cpp
49d2b1864c3dfec6faff74d67cb2527a8f1af5a8 28-Feb-2012 Mathias Agopian <mathias@google.com> move CursorWindow from libbinder to libandroidfw

Change-Id: I3b304e4f74e0d0ec8b20c57296c62449c9a0f792
ndroidfw/Android.mk
ndroidfw/CursorWindow.cpp
inder/Android.mk
inder/CursorWindow.cpp
a85ca37c8469b2a54c95db0bb724017fd08c5688 24-Feb-2012 Jamie Gennis <jgennis@google.com> Add tracing to various graphics components.

This change adds ATRACE call tracing to BufferQueue,
SurfaceTextureClient, SurfaceTexture, SurfaceFlinger, Layer, and EGL.

Change-Id: I9d75ed26f5a3f0d1af635da38289520134cfbbb7
ui/BufferQueue.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
6835237f6f55d8a7c7b43b8e0f174f5ea258bfee 28-Feb-2012 Jamie Gennis <jgennis@google.com> Merge "Removed dependecies between BufferQueue and SurfaceTexture"
6f15cc959ef11fd2fbba71bc996d4a669b518b25 23-Jan-2012 Daniel Lam <dalam@google.com> Removed dependecies between BufferQueue and SurfaceTexture

Refactored SurfaceTexture and BufferQueue such that share
no protected members. Created an consumer facing interface
for BufferQueue in preparation of connecting SurfaceTexture
and BufferQueue through a binder.

Change-Id: I938e63e085128148c58d0e26c7213b30145c109f
ui/BufferQueue.cpp
ui/SurfaceTexture.cpp
a65fb113dd40b2e25c0bd43773a2ae354504d679 28-Feb-2012 Alex Sakhartchouk <alexst@google.com> Merge "Removing GL calls from librs"
f6b53db704ed449d9376b31ee5a5c97b2796f559 27-Feb-2012 Jamie Gennis <jgennis@google.com> Merge "libutils: add a system-wide tracing utility"
c7d47ec6222690c9433023cb8a5d9a1bdd5f9c70 27-Feb-2012 Jamie Gennis <jgennis@google.com> Merge "Revert "Removed dependecies between BufferQueue and SurfaceTexture""
8335f1ccccedb6655d96d9d5b697a7f0938235dd 26-Feb-2012 Mathias Agopian <mathias@google.com> fix libgui header location

Change-Id: Iec71706cdd4f29c6904993648ce873e83ef9cafe
amera/Camera.cpp
amera/ICamera.cpp
ui/BufferQueue.cpp
ui/DisplayEventReceiver.cpp
ui/IGraphicBufferAlloc.cpp
ui/ISurface.cpp
ui/ISurfaceComposer.cpp
ui/ISurfaceComposerClient.cpp
ui/LayerState.cpp
ui/Surface.cpp
ui/SurfaceComposerClient.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
ui/tests/SurfaceTexture_test.cpp
ui/tests/Surface_test.cpp
12aba767c78c19b5f087c1deed5d2f9170ff5f75 26-Feb-2012 Mathias Agopian <mathias@google.com> remove dummy libsurfaceflinger_client

Change-Id: Idd67a3f936deae7ba5d1cd5000d191fad271381e
urfaceflinger_client/Android.mk
05221052c5bf1f14db30e57ce3b60e37431c07a5 27-Feb-2012 Daniel Lam <dalam@google.com> Revert "Removed dependecies between BufferQueue and SurfaceTexture"

This reverts commit a631399f71dbc7659d2f241968f85d337726ae61
ui/BufferQueue.cpp
ui/SurfaceTexture.cpp
c108613fb8ef0fabb3f08198a52bd0877e382937 27-Feb-2012 Jamie Gennis <jgennis@google.com> Merge "Removed dependecies between BufferQueue and SurfaceTexture"
f217df6819f7cdf7e4ef857dd61036c1812d09f5 23-Feb-2012 Jamie Gennis <jgennis@google.com> libutils: add a system-wide tracing utility

This change adds some utility functionality for doing userland tracing
into the kernel trace log.

Change-Id: Id0a8cee9ea515b1d8765afd1cecf472a88b4b9e8
tils/Android.mk
tils/Trace.cpp
018549e4bf60bb9c7e2b1bce8edae727122dc57f 25-Feb-2012 Mathias Agopian <mathias@google.com> Merge "remove dependency on android_native{s_priv|buffer}.h"
af01feafc30152baf8e0a5cfddbf02bd14731fd2 25-Feb-2012 Mathias Agopian <mathias@google.com> remove dependency on android_native{s_priv|buffer}.h

Change-Id: Ie4b95f7061c240f37c504414259f92d72c4ffc89
s/driver/rsdGL.cpp
i/FramebufferNativeWindow.cpp
i/GraphicBuffer.cpp
2abb1381524bdbbc7a09b573505abde4178be2e3 25-Feb-2012 Romain Guy <romainguy@google.com> Merge "More infrastructure for Canvas.drawTextOnPath"
778f67f7c0df6db42958ae58ee622070313a5a4d 25-Feb-2012 Romain Guy <romainguy@google.com> Merge "Add hooks to implement Canvas.drawTextOnPath() in GL"
03d58520c3eb6bb7efb7235bfd957550533d6725 25-Feb-2012 Romain Guy <romainguy@google.com> More infrastructure for Canvas.drawTextOnPath

Change-Id: Iff42b24e342650d06fa4e2fa9db6c28da820ff01
wui/OpenGLRenderer.cpp
3d408e50100f00340d442b774e2e911074500682 25-Feb-2012 Jason Sams <rjsams@android.com> Merge "test runs but I do not check results yet."
325740fb444af8fc7fb0119b2e30ce322c2ae134 25-Feb-2012 Romain Guy <romainguy@google.com> Add hooks to implement Canvas.drawTextOnPath() in GL

Change-Id: I165c9e05facf5365aa6850605688e538640c7fcc
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
cc0eaa6582563f51c98db1b232200ac4d2a9a996 25-Feb-2012 Mathias Agopian <mathias@google.com> remove libui dependency on libEGL

Change-Id: I1194f04085637d5c384e134967249430cc43b6ee
s/driver/rsdGL.cpp
i/Android.mk
i/EGLUtils.cpp
e9d4c71f47f74ee9a4a490f62769ad010a17d19b 24-Feb-2012 Mathias Agopian <mathias@google.com> deprecate L_8, LA_88 and RGB_332 in sdk

re-add support for pixelformats L_8, LA_88 and RGB_332 in libui
for backward compatibility.

This may or may not fix 6058926

Bug: 6049685
Change-Id: Ic1b8b4cc994522f7fe664da64c0ef76b98bc6d53
i/PixelFormat.cpp
9733f2609312d1ad93344eb64aa40ecb665b1c4b 24-Feb-2012 Jason Sams <rjsams@android.com> test runs but I do not check results yet.

Change-Id: I427581a301bb1a9710554187accad2d6f9d9b10c
s/Allocation.cpp
s/BaseObj.cpp
s/Element.cpp
s/RenderScript.cpp
s/Script.cpp
s/ScriptC.cpp
s/ScriptC.h
s/Type.cpp
s/tests/Android.mk
s/tests/ScriptC_mono.cpp
s/tests/ScriptC_mono.h
s/tests/compute.cpp
20c9c92ec6fc72d913f660874d3d0c00e0d14a79 24-Feb-2012 Alex Sakhartchouk <alexst@google.com> Removing GL calls from librs

Change-Id: Ida22199a33f0f9fd534dcc5951d12937967a187b
s/driver/rsdGL.cpp
s/driver/rsdGL.h
s/driver/rsdRuntimeStubs.cpp
s/rsRuntime.h
s/rsScriptC_LibGL.cpp
4344b72484ac8c8a4d3821b334f67bea4f2d3a71 24-Feb-2012 Jason Sams <rjsams@android.com> Merge "More RS cpp binding work. All classes for compute should be partially implemented at this time."
170dc848aefe17d830d08cd29b332730498003d2 24-Feb-2012 Jason Sams <rjsams@android.com> More RS cpp binding work. All classes for
compute should be partially implemented at this time.

Change-Id: Iddf9405cc69513b708975d20783395f0be04c680
s/Allocation.h
s/Android.mk
s/BaseObj.cpp
s/BaseObj.h
s/Element.cpp
s/RenderScript.cpp
s/RenderScript.h
s/Script.cpp
s/Script.h
s/ScriptC.cpp
s/ScriptC.h
s/Type.h
s/tests/compute.cpp
34c55d30858cba1e58c38e7d8e175d25cf0b33c4 24-Feb-2012 Romain Guy <romainguy@google.com> Merge "Only recreate path textures when necessary"
4bcb7467a174ed03a67b0c62950c555813ddf00d 24-Feb-2012 Romain Guy <romainguy@google.com> Only recreate path textures when necessary

When a drawPath command is recorded in a display list, a copy of the
source path is made to preserve against possible modifications of the
said source path. Copies are discarded when a display list is cleared,
which usually happens on invalidate(). This means that even if a path
is never modified, the texture generated to draw it on screen is
destroyed every time an invalidate() is issued. This change fixes this
problem by introducing a reference to the source path in the copy.
If both the copy and the source path have the same genID, they are
the same path and can share the same texture.

Change-Id: I34849311c183e06336a1391d2d1568a087f973f6
wui/DisplayListRenderer.h
wui/PathCache.cpp
a23c4ebe04e97a4f5c4e25fa6c9f37c6244ebfe4 23-Feb-2012 Jason Sams <rjsams@android.com> Merge "start new headers"
a16c98c155a51a035719bef5b76e973ee2295795 23-Feb-2012 Stephen Hines <srhines@google.com> Merge "Support running ForEach on non-root functions."
a631399f71dbc7659d2f241968f85d337726ae61 23-Jan-2012 Daniel Lam <dalam@google.com> Removed dependecies between BufferQueue and SurfaceTexture

Refactored SurfaceTexture and BufferQueue such that share
no protected members. Created an consumer facing interface
for BufferQueue in preparation of connecting SurfaceTexture
and BufferQueue through a binder.

Change-Id: Iff55e740e36a7f70c9f7a17ee7a5af38e3d21f0f
ui/BufferQueue.cpp
ui/SurfaceTexture.cpp
77d9ee4df6098e78ce034fa80f046f3b42de8cb3 23-Feb-2012 Dima Zavin <dima@android.com> Merge "libui: add ability to force a framebuffer format for EGL's use"
180600dec8b1b2900da42f2158edc70cf2264fbc 22-Feb-2012 Dima Zavin <dima@android.com> libui: add ability to force a framebuffer format for EGL's use

This does not actually change the framebuffer format. It merely
fakes this format to surfaceflinger so that when it creates
framebuffer surfaces it will use this format. It's really a giant
HACK to allow interworking with buggy gralloc+GPU driver
implementations. You should *NEVER* need to set this for shipping
devices.

Change-Id: I03eeb5b4d72838ef219df386ecc489fc20ab9cc7
Signed-off-by: Dima Zavin <dima@android.com>
i/Android.mk
i/FramebufferNativeWindow.cpp
473a2048d3c54fe38b6f9a58457645c9c472b238 22-Feb-2012 Stephen Hines <srhines@google.com> Support running ForEach on non-root functions.

BUG=6000538

Change-Id: Ie2b16893b150cc5955ee4b9d028c988f69a82744
s/driver/rsdBcc.cpp
s/driver/rsdCore.h
s/rsScript.cpp
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC.h
s/rsScriptC_Lib.cpp
f70b0fc880edb7c47d5bcc97edbc125b575bc90d 23-Feb-2012 Jason Sams <rjsams@android.com> start new headers

Change-Id: I950e5db76ecd3afbc7ea2b3ec792e4cb242f57bf

cpp
s/Allocation.cpp
s/Allocation.h
s/Android.mk
s/BaseObj.cpp
s/BaseObj.h
s/Element.cpp
s/Element.h
s/RenderScript.cpp
s/RenderScript.h
s/Type.cpp
s/Type.h
s/tests/Android.mk
s/tests/compute.cpp
1eec6804d2d7aee3ac315c471b07606c51aa008c 22-Feb-2012 Romain Guy <romainguy@google.com> Merge "Reduce logs"
9c10ab03cd6a35fca9eec617b9bd444d13544b99 22-Feb-2012 Romain Guy <romainguy@google.com> Reduce logs

Change-Id: I2768972ec62f4d3ad800a4d7a4c44307a2fa0105
wui/Debug.h
b92aee4e8c3d93235c9a57afa81711383538f54f 22-Feb-2012 Jean-Baptiste Queru <jbq@google.com> am 69e9c30c: Merge "Add stubs for improved compatibility"

* commit '69e9c30c2641add74c9a3b02d0959c0ded9e66f7':
Add stubs for improved compatibility
df6f5cd6249c017fd2e444e7de5a4a2abe10a5bf 22-Feb-2012 Mathias Agopian <mathias@google.com> Merge "remove libui's dependency on libpixelflinger"
3e3681151a231225b2b25c996bb9e85948a345a8 22-Feb-2012 Mathias Agopian <mathias@google.com> remove libui's dependency on libpixelflinger

this also remove support for unused pixelformats.

Change-Id: I2c759a6d2daa740f3786ed62095def8047ae933d
i/Android.mk
i/PixelFormat.cpp
f541e4395af0f5e95d1ed2320a6627935c5bcdec 22-Feb-2012 Romain Guy <romainguy@google.com> Merge "Only copy paths, paints and shaders when we need to."
96ebc6b5097ab73eef45e094241e444f4c21bfcc 22-Feb-2012 Romain Guy <romainguy@google.com> Only copy paths, paints and shaders when we need to.

Change-Id: Iba7a9c92c865f698821b6ff7bc4f502659642ac1
wui/DisplayListRenderer.h
027692b640059fb1a9795215c0a863183aa5829c 22-Feb-2012 Mathias Agopian <mathias@google.com> attempt to fix sdk build

Change-Id: I94f32a9a7abccb52487bb9ff5e286faa4acfceff
ndroidfw/Android.mk
cbc69718cb8c637426bc1a642a13a1880d843a45 21-Feb-2012 Mathias Agopian <mathias@google.com> another attempt at fixing the linux build

Change-Id: Iac20439fd6eea4682859112e72f051294bc87ef6
ndroidfw/Android.mk
30167542cb23726a0d28c2eeb280f16f3101e97f 21-Feb-2012 Mathias Agopian <mathias@google.com> another attempt to fix the linux build

Change-Id: Ifd4714de7281ffc8a8c90fb25fb34719a19a9b6f
ndroidfw/Android.mk
cd0f3088ef4c0f211d68235d9aa0556bd4e0984b 21-Feb-2012 Jean-Baptiste Queru <jbq@google.com> Add stubs for improved compatibility

Change-Id: I77b348b4c592e0b694aabb069812c94b9cb79a00
ndroidfw/Android.mk
ndroidfw/Dummy.cpp
30c46ad519c127a92f2bd3ca1dc1eab9da6ac165 21-Feb-2012 Mathias Agopian <mathias@google.com> attempt to fix linux builds

Change-Id: I46d6f914fdc32dc26cc71bed3399e202f00eeb2a
ndroidfw/Android.mk
83c64e6b624a876436d2ef5d2f173b10407e27b4 21-Feb-2012 Mathias Agopian <mathias@google.com> frameworks/base refactoring

create the new libandroidfw from parts of libui and libutils

Change-Id: I1584995616fff5d527a2aba63921b682a6194d58
ndroidfw/Android.mk
ndroidfw/Asset.cpp
ndroidfw/AssetDir.cpp
ndroidfw/AssetManager.cpp
ndroidfw/BackupData.cpp
ndroidfw/BackupHelpers.cpp
ndroidfw/Input.cpp
ndroidfw/InputTransport.cpp
ndroidfw/KeyCharacterMap.cpp
ndroidfw/KeyLayoutMap.cpp
ndroidfw/Keyboard.cpp
ndroidfw/MODULE_LICENSE_APACHE2
ndroidfw/NOTICE
ndroidfw/ObbFile.cpp
ndroidfw/ResourceTypes.cpp
ndroidfw/StreamingZipInflater.cpp
ndroidfw/VirtualKeyMap.cpp
ndroidfw/ZipFileCRO.cpp
ndroidfw/ZipFileRO.cpp
ndroidfw/ZipUtils.cpp
ndroidfw/tests/Android.mk
ndroidfw/tests/InputChannel_test.cpp
ndroidfw/tests/InputEvent_test.cpp
ndroidfw/tests/InputPublisherAndConsumer_test.cpp
ndroidfw/tests/ObbFile_test.cpp
ndroidfw/tests/ZipFileRO_test.cpp
i/Android.mk
i/Input.cpp
i/InputTransport.cpp
i/KeyCharacterMap.cpp
i/KeyLayoutMap.cpp
i/Keyboard.cpp
i/VirtualKeyMap.cpp
i/tests/Android.mk
i/tests/InputChannel_test.cpp
i/tests/InputEvent_test.cpp
i/tests/InputPublisherAndConsumer_test.cpp
tils/Android.mk
tils/Asset.cpp
tils/AssetDir.cpp
tils/AssetManager.cpp
tils/BackupData.cpp
tils/BackupHelpers.cpp
tils/ObbFile.cpp
tils/ResourceTypes.cpp
tils/StreamingZipInflater.cpp
tils/ZipFileCRO.cpp
tils/ZipFileRO.cpp
tils/ZipUtils.cpp
tils/tests/Android.mk
tils/tests/ObbFile_test.cpp
tils/tests/ZipFileRO_test.cpp
b13b9bdad2baf6ad1ec2e56b6b7598fa20f55fc4 18-Feb-2012 Mathias Agopian <mathias@google.com> frameworks/base refactoring.

step 2: move libutils headers to their new home: androidfw

Change-Id: I14624ba23db92a81f2cb929f104386e1fab293ef
s/rsFileA3D.h
tils/Asset.cpp
tils/AssetDir.cpp
tils/AssetManager.cpp
tils/BackupData.cpp
tils/BackupHelpers.cpp
tils/ObbFile.cpp
tils/ResourceTypes.cpp
tils/StreamingZipInflater.cpp
tils/ZipFileCRO.cpp
tils/ZipFileRO.cpp
tils/ZipUtils.cpp
tils/tests/ObbFile_test.cpp
tils/tests/ZipFileRO_test.cpp
6db0608dff408130b35e6f21abe746a635648b18 18-Feb-2012 Jason Sams <rjsams@android.com> Merge "Work around VSync signal while screen is off."
f7795e0c2faeea1d34f86ae03c2fcefd2209f522 18-Feb-2012 Jason Sams <rjsams@android.com> Work around VSync signal while screen is off.

Change-Id: I0a9637170ee658ff84a363e91c558892dce5cfaf
s/rsContext.cpp
4a7571bc0bd6d675d6964595407f0c184c51d9ac 18-Feb-2012 Jeff Brown <jeffbrown@google.com> Merge "frameworks/base refactoring."
b93a03f841d93498bfea6cc92a22faa34bce1337 18-Feb-2012 Mathias Agopian <mathias@google.com> frameworks/base refactoring.

First step. Move libui includes to their new home: androidfw.

Change-Id: Ic042b52fdba72f30edc3cc6339bf30b4c1b99662
i/Input.cpp
i/InputTransport.cpp
i/KeyCharacterMap.cpp
i/KeyLayoutMap.cpp
i/Keyboard.cpp
i/VirtualKeyMap.cpp
i/tests/InputChannel_test.cpp
i/tests/InputEvent_test.cpp
i/tests/InputPublisherAndConsumer_test.cpp
6917e6550d2dc11ad3b794be08cc9caa53970d32 18-Feb-2012 Romain Guy <romainguy@google.com> Merge "Record possible clip rejects when recording display lists"
7e1d395686a23c8638f72af190f125cf690618a3 17-Feb-2012 Iliyan Malchev <malchev@google.com> libs/utils: replace malloc() + memset() to zero with calloc()

Change-Id: I8bdf4360147e51e35c162856c9a859aed6acac34
Signed-off-by: Iliyan Malchev <malchev@google.com>
tils/BackupHelpers.cpp
tils/ResourceTypes.cpp
33f6beb10f98e8ba96250e284876d607055d278d 17-Feb-2012 Romain Guy <romainguy@google.com> Record possible clip rejects when recording display lists

This optimization allows us to quickly skip operations that lie
entirely outside of the known bounds of a display list. Because
of ViewGroup.setClipChildren, we must keep the operations recorded
in the display list. setClipChildren(false) is however a very
uncommon operation and we will therefore often benefit from this
new optimization.

Change-Id: I0942c864e55298e6dccd9977d15adefbce3ba3ad
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/PathCache.cpp
wui/ShapeCache.h
42a23efa856e591e7e6c7bc06a0e0323f63156eb 17-Feb-2012 Jason Sams <rjsams@android.com> Merge "Update prototype remote fifo. Tested primary connection using only fifo data transport."
e158f203d2290aec1cb9040aee9d9fa2e95042b7 17-Feb-2012 Jason Sams <rjsams@android.com> Merge "Rename three header files to free namespace for api."
548cc0e973e6fc151230acf5c9c431aa284e9746 17-Feb-2012 Jason Sams <rjsams@android.com> Update prototype remote fifo. Tested primary connection
using only fifo data transport.

cleanup cl.

Change-Id: I9b5f5e5a256b7f66b387bd801c1da0e642761200
s/rsThreadIO.cpp
s/rsThreadIO.h
s/rsg_generator.c
1d6983af336b2b1d3a24aece58ce0850aa79e8a0 17-Feb-2012 Jason Sams <rjsams@android.com> Rename three header files to free namespace for api.

Change-Id: Ie9ef65a477373c30b2d5b02248f62e768b6f27ae
s/RenderScript.h
s/RenderScriptDefines.h
s/RenderScriptEnv.h
s/rs.h
s/rsDefines.h
s/rsEnv.h
s/rsFileA3D.h
s/rsFont.h
s/rsMesh.h
s/rsPath.h
s/rsSampler.h
s/rsScriptC.h
s/rsUtils.h
s/rs_hal.h
6c929510474caa14dc9d56826b2c65552861d6b3 15-Aug-2011 Mike J. Chen <mjchen@google.com> Upintegrate the common_time service from ics-aah.

Move the common_time service developed in the ics-aah branch back into
master.

The common_time service is a small service build to synchronize an
arbitrary timeline amongst peers on a local sub-net. While running
and configured, the service will elect a master from the set of
available devices within the subnet, define a relationship between the
common_time timeline the local time timeline (provided by the local
time HAL), and then attempt to maintain synchronization between common
and local time by controlling the frequency of the local time clock
via the HAL, or by disciplining local time in the digital domain if
the local time HAL implementation does not support HW slewing.

On its own, the native common time service will do nothing until it is
configured. The CommonTimeManagementService (running out of the
system server process) is responsible for implementing policy
regarding configuration and operation of the common_time service and
will be added in a subsequent CL.

Change-Id: I71292f9b9b1797665865689c4572c9d3a0552f64
Signed-off-by: John Grossman <johngro@google.com>
ommon_time/Android.mk
ommon_time/ICommonClock.cpp
ommon_time/ICommonTimeConfig.cpp
ommon_time/cc_helper.cpp
ommon_time/local_clock.cpp
ommon_time/utils.cpp
ommon_time/utils.h
791c0d188a5f06739e689df49585f87939be3bd8 16-Feb-2012 Alex Sakhartchouk <alexst@google.com> Merge "Piping texture names through shader builder. Fixing uint size_t mismatch."
249e3ed5400e5c7ab2e9aa8017f612d79d2e8089 08-Feb-2012 MÃ¥rten Kongstad <marten.kongstad@sonyericsson.com> Runtime resource overlay: clean-up.

This is a combination of three minor clean-up tasks:

- Generate correct idmap even if name lookup fails:

Any resources following a resource with a spec but no actual values
would receive an incorrect ID in the idmap due to an accumulating offset
error. To combat this, a dummy value is inserted in the idmap whenever
a resource with a spec but no values is encountered.

- Optimize pruning of padding zeroes in idmaps:

Earlier, trailing zeroes were iteratively popped from the end of each
type block of an idmap. This commit instead tracks where to make the
cut, and does so with a single function call.

- aapt: warn about resources which lack values:

The resource framework assumes every resource to have a value for
at least one valid configuration. However, if multiple resource
directories are used (several -S options to aapt), the list of
configurations is limited by dpi (-c option to aapt) and a resource
is only available in discarded dpi configurations, aapt will create
a resource entry where each configuration lack an actual value. This
commit lets aapt emit a warning whenever this has happened.

Change-Id: Ic7451b7f4adfef5bfa6b0d7e64e057f317a2cdaa
tils/ResourceTypes.cpp
2123b46ba85adb2cfb78068f8368e830640118d3 16-Feb-2012 Alex Sakhartchouk <alexst@google.com> Piping texture names through shader builder.
Fixing uint size_t mismatch.

Change-Id: Ia7c8bd9f829deaa50e1cc381ccd50f29676bbdfb
s/driver/rsdProgram.cpp
s/driver/rsdProgramFragment.h
s/driver/rsdProgramVertex.h
s/driver/rsdShader.cpp
s/driver/rsdShader.h
s/rs.spec
s/rsFont.cpp
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramFragment.cpp
s/rsProgramFragment.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rs_hal.h
6be163651c988736e0fd2af4bc4dc1e59753d7ee 16-Feb-2012 Alex Sakhartchouk <alexst@google.com> Merge "Fixing uint32 size_t mismatches."
c107b10354566f635fb81467f4537d44f04abc2e 15-Feb-2012 Jason Sams <rjsams@android.com> Merge "Beging IO stream out from allocation to surface texture."
163766cbe798baf8e86eb8201bc6c3def931d59a 15-Feb-2012 Jason Sams <rjsams@android.com> Beging IO stream out from allocation to surface texture.

Change-Id: I4d6b7f7740a896d39b811d6fe7532bb00db62373
s/driver/rsdAllocation.cpp
s/driver/rsdAllocation.h
s/driver/rsdCore.cpp
s/rs.spec
s/rsAllocation.cpp
s/rsAllocation.h
s/rs_hal.h
39eb8074deba507e037a1596168e7b762508c63f 15-Feb-2012 Jamie Gennis <jgennis@google.com> Merge "Refactored query function from SurfaceTexture into BufferQueue"
a3f154324ae74bc8db8c7751e3c83b6be342eace 13-Feb-2012 Alex Sakhartchouk <alexst@google.com> Fixing uint32 size_t mismatches.

Change-Id: I5263158f5855472db6317a52c209fe4e273f3368
s/driver/rsdAllocation.cpp
s/driver/rsdProgram.cpp
s/driver/rsdShader.cpp
s/rs_hal.h
10e9f39f1d3f1c8dea8637a7dc59f9c6d700425d 14-Feb-2012 Stephen Hines <srhines@google.com> Merge "Initialize all class members."
5b79842b4a1f50098563b448d93d5a43bf4ab050 14-Feb-2012 Stephen Hines <srhines@google.com> Initialize all class members.

Change-Id: I2bb2701a9dde66f6c4484a62945c72ddf52248fa
s/driver/rsdShaderCache.h
6b31449e5d07324b9946862c48b0ef0b5bea3d2a 13-Feb-2012 Jeff Brown <jeffbrown@google.com> am a17032ee: Merge "Accurately track the sequence numbers of batched events."

* commit 'a17032eeb91f709360b6271b71b85e67f729bcc1':
Accurately track the sequence numbers of batched events.
2d34e0cfe7e2586b75a6f2c6646dd2e1e52c973f 13-Feb-2012 Jeff Brown <jeffbrown@google.com> Accurately track the sequence numbers of batched events.

Instead of sending finished signals immediately when appending to
a batch, record the chain of sequence numbers that were part of
the batch and then send finished signals all at once when done.
This change helps the dispatcher keep track of the true state
of the application and can improve ANR detection slightly.

This is part of a series of changes to improve input system pipelining.

Bug: 5963420
Change-Id: I463c2221e2aa8fdf1c3d670c18e39e59ab69b0db
i/InputTransport.cpp
11ffe521b583bfd68de5e9e81a8b4dc31eac5071 13-Feb-2012 Jeff Brown <jeffbrown@google.com> am 27b51987: Merge "Enable deferred input messages to be batched."

* commit '27b51987dd3fa7e18703aab45fa10625a56d8c98':
Enable deferred input messages to be batched.
90fde93c473aca5a33dc41c989bb2fdc5f2b1485 13-Feb-2012 Jeff Brown <jeffbrown@google.com> Enable deferred input messages to be batched.

This is part of a series of changes to improve input system pipelining.

Bug: 5963420
Change-Id: I6874d2128e880a35c6c33890c858cc6ee22af0fd
i/InputTransport.cpp
684f4443d726e3f13642d6f1d30426a123f742ef 13-Feb-2012 Jeff Brown <jeffbrown@google.com> am 072ec96a: Implement batching of input events on the consumer side.

* commit '072ec96a4900d4616574733646ee46311cb5d2cb':
Implement batching of input events on the consumer side.
877f352b84169b646a90e6a695bad365663e1939 13-Feb-2012 Jeff Brown <jeffbrown@google.com> am d1c48a05: Dispatch multiple touch events in parallel.

* commit 'd1c48a0525d05021036d4b14e937e221c0ae1318':
Dispatch multiple touch events in parallel.
52acea839c0ff2f8b7b6f2fd6522de0cfc86eb80 13-Feb-2012 Jeff Brown <jeffbrown@google.com> am cbee6d6e: Rewrite input transport using sockets.

* commit 'cbee6d6ede0499fb4a2c00bfc00d5db8d9ed5139':
Rewrite input transport using sockets.
072ec96a4900d4616574733646ee46311cb5d2cb 07-Feb-2012 Jeff Brown <jeffbrown@google.com> Implement batching of input events on the consumer side.

To support this feature, the input dispatcher now allows input
events to be acknowledged out-of-order. As a result, the
consumer can choose to defer handling an input event from one
device (because it is building a big batch) while continuing
to handle input events from other devices.

The InputEventReceiver now sends a notification when a batch
is pending. The ViewRoot handles this notification by scheduling
a draw on the next sync. When the draw happens, the InputEventReceiver
is instructed to consume all pending batched input events, the
input event queue is fully processed (as much as possible),
and then the ViewRoot performs traversals as usual.

With these changes in place, the input dispatch latency is
consistently less than one frame as long as the application itself
isn't stalled. Input events are delivered to the application
as soon as possible and are handled as soon as possible. In practice,
it is no longer possible for an application to build up a huge
backlog of touch events.

This is part of a series of changes to improve input system pipelining.

Bug: 5963420

Change-Id: I42c01117eca78f12d66d49a736c1c122346ccd1d
i/InputTransport.cpp
i/tests/InputChannel_test.cpp
i/tests/InputPublisherAndConsumer_test.cpp
d1c48a0525d05021036d4b14e937e221c0ae1318 07-Feb-2012 Jeff Brown <jeffbrown@google.com> Dispatch multiple touch events in parallel.

This change enables the input dispatcher to send multiple touch
events to an application without waiting for them to be acknowledged.
Essentially this is a variation on the old streaming optimization
but it is much more comprehensive. Event dispatch will stall as
soon as 0.5sec of unacknowledged events are accumulated or a
focused event (such as a key event) needs to be delivered.

Streaming input events makes a tremendous difference in application
performance. The next step will be to enable batching of input
events on the client side once again.

This is part of a series of changes to improve input system pipelining.

Bug: 5963420
Change-Id: I025df90c06165d719fcca7f63eed322a5cce4a78
i/InputTransport.cpp
cbee6d6ede0499fb4a2c00bfc00d5db8d9ed5139 04-Feb-2012 Jeff Brown <jeffbrown@google.com> Rewrite input transport using sockets.

Since we will not longer be modifying events in place, we don't need
to use an ashmem region for input. Simplified the code to instead
use a socket of type SOCK_SEQPACKET.

This is part of a series of changes to improve input system pipelining.

Bug: 5963420

Change-Id: I05909075ed8b61b93900913e44c6db84857340d8
i/InputTransport.cpp
i/tests/InputChannel_test.cpp
i/tests/InputPublisherAndConsumer_test.cpp
ff3de0e5d99ad35f79b0bc638ecd1e298ec6d55a 11-Feb-2012 Alex Sakhartchouk <alexst@google.com> am 87a36a3b: Merge "Making shader compilation errors throw a Java exception."

* commit '87a36a3b291e78a612d2d08c14b245ff970080e0':
Making shader compilation errors throw a Java exception.
b2a5354f0c91f6b5c6567c8226f26064ed045788 11-Feb-2012 Jason Sams <jsams@google.com> resolved conflicts for merge of cb66aec0 to graphics-dev

Change-Id: Ic8817f702b6993f046c89f2fc598c9fe3bf30fe8
87a36a3b291e78a612d2d08c14b245ff970080e0 11-Feb-2012 Alex Sakhartchouk <alexst@google.com> Merge "Making shader compilation errors throw a Java exception."
cb66aec0bdd3248c526c3a1113936576a30286cb 10-Feb-2012 Jason Sams <rjsams@android.com> Merge "Start implementing SurfaceTexture streaming into RS allocations."
532efd3ce261f9901bfa51d37377069fe6e8ccdf 10-Feb-2012 Jason Sams <rjsams@android.com> Start implementing SurfaceTexture streaming into RS allocations.

Change-Id: I561fbb63c63371ea59047c07fb2d68c21d16e76b

Conflicts:

libs/rs/rsAllocation.h
s/RenderScriptDefines.h
s/driver/rsdAllocation.cpp
s/driver/rsdAllocation.h
s/driver/rsdCore.cpp
s/driver/rsdShader.cpp
s/driver/rsdShaderCache.h
s/rs.spec
s/rsAllocation.cpp
s/rsAllocation.h
s/rs_hal.h
887ffbea9009daba344357feae8c1498efc2a7df 10-Feb-2012 Dianne Hackborn <hackbod@google.com> am d10035d5: Merge "Some hardening of isolated processes by restricting access to services."

* commit 'd10035d52bcd4eed9f83cad580d606cd522dd6c7':
Some hardening of isolated processes by restricting access to services.
d10035d52bcd4eed9f83cad580d606cd522dd6c7 10-Feb-2012 Dianne Hackborn <hackbod@google.com> Merge "Some hardening of isolated processes by restricting access to services."
a573f6a1d9b12393fbdfd2c0850499973849854b 10-Feb-2012 Dianne Hackborn <hackbod@google.com> Some hardening of isolated processes by restricting access to services.

Services now must explicitly opt in to being accessed by isolated
processes. Currently only the activity manager and surface flinger
allow this. Activity manager is needed so that we can actually
bring up the process; SurfaceFlinger is needed to be able to get the
display information for creating the Configuration. The SurfaceFlinger
should be safe because the app doesn't have access to the window
manager so can't actually get a surface to do anything with.

The activity manager now protects most of its entry points against
isolated processes.

Change-Id: I0dad8cb2c873575c4c7659c3c2a7eda8e98f46b0
inder/IServiceManager.cpp
f7c761e5d31146a1fbd2a51d9adfe17cc61ad4c1 31-Jan-2012 Daniel Lam <dalam@google.com> Refactored query function from SurfaceTexture into BufferQueue

Change-Id: Id1cb6cc38d01edb4fcfcad867c5a7693bdcc3ab1
ui/BufferQueue.cpp
ui/SurfaceTexture.cpp
206904b2af067fe8249b9866270ca1ccd7aed455 10-Feb-2012 Jason Sams <jsams@google.com> am 468a9715: Merge "Remove unused param."

* commit '468a971512f4665b13e83cc3c7dc24c9031b14eb':
Remove unused param.
87e2721f89a7210c4382a2b444ade64f4a50f739 09-Feb-2012 Jason Sams <jsams@google.com> Remove unused param.

Change-Id: Idf26c3bf4eec7ed17dbfb99b40c314bce7996101
s/rsContext.cpp
s/rsThreadIO.cpp
s/rsThreadIO.h
b64807855cf8e26abe1819bdd33cedde9c44096b 09-Feb-2012 Jamie Gennis <jgennis@google.com> am 1c90e73f: Merge "Refactored ISurfaceTexture calls from SurfaceTexture into BufferQueue."

* commit '1c90e73f5d22c3d8e07b236ec8f33a42c01e056f':
Refactored ISurfaceTexture calls from SurfaceTexture into BufferQueue.
1c90e73f5d22c3d8e07b236ec8f33a42c01e056f 09-Feb-2012 Jamie Gennis <jgennis@google.com> Merge "Refactored ISurfaceTexture calls from SurfaceTexture into BufferQueue."
811adfe1b467c3e93af1f061035d8b5bcbf0c750 08-Feb-2012 Jason Sams <rjsams@android.com> am 5b6abb38: Merge "Fix bug in generated code for functions with inband data from pointers. Passing zero length data would desync return command stream."

* commit '5b6abb38f0892f429976bd6976f93ae216b21d38':
Fix bug in generated code for functions with inband data from pointers. Passing zero length data would desync return command stream.
5b6abb38f0892f429976bd6976f93ae216b21d38 08-Feb-2012 Jason Sams <rjsams@android.com> Merge "Fix bug in generated code for functions with inband data from pointers. Passing zero length data would desync return command stream."
d51280f10bb06a2d7abb8bd2980415733673c88b 08-Feb-2012 Jason Sams <rjsams@android.com> Fix bug in generated code for functions with inband data
from pointers. Passing zero length data would desync
return command stream.

Change-Id: I273a6a44636a203d8305ddff3d6607eae9f9ec8a
s/rsg_generator.c
61d8ce6f7bd3ee0a47c004504217f580b1111056 08-Feb-2012 Romain Guy <romainguy@google.com> am 28587f44: Merge "Fix the system"

* commit '28587f445a2af6d94d1b215e019e8bcc377c17a1':
Fix the system
28587f445a2af6d94d1b215e019e8bcc377c17a1 08-Feb-2012 Romain Guy <romainguy@google.com> Merge "Fix the system"
21c9c8551d9ab36629cabc01f228d3a302e0c673 08-Feb-2012 Romain Guy <romainguy@google.com> Fix the system

Change-Id: Ie097ea5d6c0af9c5929b8c5deb76b4824d5de787
wui/Snapshot.cpp
257e8a9a4f28a733c2aec8d895d4b90a2107a1ca 08-Feb-2012 Alex Sakhartchouk <alexst@google.com> Making shader compilation errors throw a Java exception.

Change-Id: I612142b6fe1b75eab62e89950c3bea6f326cb730
s/driver/rsdShader.cpp
s/driver/rsdShaderCache.cpp
29a7d0d62e953c17f52bae05ac9da8cdc2df7eea 08-Feb-2012 Romain Guy <romainguy@google.com> am 68c02e25: Merge "Preliminary support for clipRect(Rect, Op)"

* commit '68c02e25e84e9814d313b43680631b98e25fa6d5':
Preliminary support for clipRect(Rect, Op)
68c02e25e84e9814d313b43680631b98e25fa6d5 08-Feb-2012 Romain Guy <romainguy@google.com> Merge "Preliminary support for clipRect(Rect, Op)"
967e2bf3ac8943a8e8a374bf86021915445cda67 08-Feb-2012 Romain Guy <romainguy@google.com> Preliminary support for clipRect(Rect, Op)

This adds basic support for clip regions. It is currently disabled at compile
time. Enabling clip regions will require setting up a stencil buffer.

Change-Id: I638616a972276e38737f8ac0633692c3845eaa74
wui/Snapshot.cpp
wui/Snapshot.h
i/Region.cpp
eb5b73504d4e12c390985b573b61b4d9bcaa74dd 08-Feb-2012 Jason Sams <jsams@google.com> Merge commit 'bdeec118' into manualmerge

Conflicts:
libs/rs/rsThreadIO.h

Change-Id: I7f448996a86f41188b47ec3dc353c364692e8bf2
bdeec118a120d2424ff80c54c2f218ed0d52d3e2 08-Feb-2012 Jason Sams <rjsams@android.com> Merge "Implement RS VSync on new vsync infrastructure."
4c2e4c80ce519e09e5b00fd7533e64a834d70639 08-Feb-2012 Jason Sams <rjsams@android.com> Implement RS VSync on new vsync infrastructure.

Change-Id: I662159a086a56e28732dd64a3a3cb30f8d4b72b1

Replace lockless fifo from server to client with sockets.

Change-Id: I99a4ab4f18496c0fbac96ee7b8099797af4712ea
s/Android.mk
s/driver/rsdGL.cpp
s/rs.spec
s/rsContext.cpp
s/rsContext.h
s/rsFifo.cpp
s/rsFifo.h
s/rsFifoSocket.cpp
s/rsFifoSocket.h
s/rsLocklessFifo.cpp
s/rsLocklessFifo.h
s/rsThreadIO.cpp
s/rsThreadIO.h
s/rsg_generator.c
f835ca02713e34b0939957389a21022a9a6ce5c9 08-Feb-2012 Simon Wilson <simonwilson@google.com> am c92e6f14: AccessoryChat: use platform APIs and support Galaxy Nexus

* commit 'c92e6f14f9ac6c86b7784f8a21d7077ea7cae0bb':
AccessoryChat: use platform APIs and support Galaxy Nexus
c92e6f14f9ac6c86b7784f8a21d7077ea7cae0bb 07-Feb-2012 Simon Wilson <simonwilson@google.com> AccessoryChat: use platform APIs and support Galaxy Nexus

Change-Id: I171c2781f3d447bec46f0179351e1b18721b1b89
sb/tests/AccessoryChat/Android.mk
sb/tests/AccessoryChat/AndroidManifest.xml
sb/tests/AccessoryChat/accessorychat/accessorychat.c
sb/tests/AccessoryChat/src/com/android/accessorychat/AccessoryChat.java
70e80aacf98414a6acee0d0e5eb1a7b5df7daccb 23-Jan-2012 Daniel Lam <dalam@google.com> Refactored ISurfaceTexture calls from SurfaceTexture into BufferQueue.

Change-Id: I514f6b802f6b49c9ae27bed37bf0b9d23da03c9a
ui/Android.mk
ui/BufferQueue.cpp
ui/SurfaceTexture.cpp
c761d8b0086f9e92eb1e4b3a5683ae6afb84036a 07-Feb-2012 MÃ¥rten Kongstad <marten.kongstad@sonyericsson.com> Build overlay packages just like regular packages.

Previously, building overlay packages required passing aapt its -o flag.
This commit decouples the idmap generation code from the effects of the
-o flag.

Since this commit renders the -o flag obsolete, support for the flag was
removed from aapt as well.

Change-Id: Ied2e0ab8cb800e49623f0a2044b06cd4935473d5
tils/ResourceTypes.cpp
7710e2f8c6ceb3a54e8328a5cf0306a11f3d3971 07-Feb-2012 Mathias Agopian <mathias@google.com> am f0533365: Merge "make sure to ignore SIGPIPE in the write side of BitTube"

* commit 'f0533365dc1c89253a551a77fbc987568bb8e650':
make sure to ignore SIGPIPE in the write side of BitTube
efa08a6c2190afb6214a4c6a75a14700def5a43e 07-Feb-2012 Mathias Agopian <mathias@google.com> make sure to ignore SIGPIPE in the write side of BitTube

Change-Id: If4f037f4403d3ecbcd5f91248354765fc0fa13cb
ui/BitTube.cpp
bf6644a7e6b63153da73be191798a56f460a7057 03-Feb-2012 Amith Yamasani <yamasani@google.com> am 1ef7d131: Merge "Multi-user - 1st major checkin"

* commit '1ef7d13172248848805b9ceb6161b0741d8580dd':
Multi-user - 1st major checkin
1ef7d13172248848805b9ceb6161b0741d8580dd 03-Feb-2012 Amith Yamasani <yamasani@google.com> Merge "Multi-user - 1st major checkin"
742a67127366c376fdf188ff99ba30b27d3bf90c 04-May-2011 Amith Yamasani <yamasani@google.com> Multi-user - 1st major checkin

Switching activity stacks
Cache ContentProvider per user
Long-press power to switch users (on phone)

Added ServiceMap for separating services by user
Launch PendingIntents on the correct user's uid
Fix task switching from Recents list
AppWidgetService is mostly working.

Commands added to pm and am to allow creating and switching profiles.

Change-Id: I15810e8cfbe50a04bd3323a7ef5a8ff4230870ed
inder/IPCThreadState.cpp
0a29fe1be19df6d96c1e5df0f1b551a6b14dc60c 03-Feb-2012 Stephen Hines <srhines@google.com> am cc2daede: Merge "Properly recover from failed compilation."

* commit 'cc2daede56257f0f1f490a1aebf5b9b898d9816a':
Properly recover from failed compilation.
cc2daede56257f0f1f490a1aebf5b9b898d9816a 03-Feb-2012 Stephen Hines <srhines@google.com> Merge "Properly recover from failed compilation."
d6a0b0407a506c4596a2095c93cda747b0cd5d01 03-Feb-2012 Romain Guy <romainguy@google.com> am 8d13ef3c: Merge "Separate interface definition and implementation of Snapshot"

* commit '8d13ef3c59f3087df29a226f3cdc155faa4ac903':
Separate interface definition and implementation of Snapshot
8d13ef3c59f3087df29a226f3cdc155faa4ac903 03-Feb-2012 Romain Guy <romainguy@google.com> Merge "Separate interface definition and implementation of Snapshot"
ada4d53d50dc869b8278573ad640dc44118d3bcf 03-Feb-2012 Romain Guy <romainguy@google.com> Separate interface definition and implementation of Snapshot

The Snapshot class is getting complicated enough that its implementation
should now live in a separate .cpp file. This will become particularly
useful when support for clip regions and paths will be added later on.

Change-Id: I050fac5683a9f7a0ff2f7a6beec3dd28aa5eb0d8
wui/Android.mk
wui/Properties.h
wui/Snapshot.cpp
wui/Snapshot.h
e10c441deff0806824ea67b46c53ded0a5e0b8a6 03-Feb-2012 Mathias Agopian <mathias@google.com> am b545eaa9: Merge "separate transactions from updates"

* commit 'b545eaa9cbe39b8209a40044aa0a5f00846278d4':
separate transactions from updates
b545eaa9cbe39b8209a40044aa0a5f00846278d4 03-Feb-2012 Mathias Agopian <mathias@google.com> Merge "separate transactions from updates"
e94fdd9a15257ae48d51dfb75032a09f2ed8dede 03-Feb-2012 Romain Guy <romainguy@google.com> am bc18f289: Merge "Disable debugging code in the font renderer"

* commit 'bc18f289073a47b1cbf84fcd3e3e79c9d34c0990':
Disable debugging code in the font renderer
bc18f289073a47b1cbf84fcd3e3e79c9d34c0990 03-Feb-2012 Romain Guy <romainguy@google.com> Merge "Disable debugging code in the font renderer"
b629490ffb21752750cc081827ca4c1eae1eb015 03-Feb-2012 Romain Guy <romainguy@google.com> Disable debugging code in the font renderer

Change-Id: I92463057ff4ae712bb25789db1667ff1ecfd389f
wui/Debug.h
wui/FontRenderer.cpp
98bea4a3ec6dfd0f5c6ec612b57b122f16f49b7f 02-Feb-2012 Alex Sakhartchouk <alexst@google.com> am 7042613c: Merge "Fix an incorrect assert that doesn\'t account for element array size."

* commit '7042613c653fd0de253f2f659901318902fa4584':
Fix an incorrect assert that doesn't account for element array size.
7042613c653fd0de253f2f659901318902fa4584 02-Feb-2012 Alex Sakhartchouk <alexst@google.com> Merge "Fix an incorrect assert that doesn't account for element array size."
fa16c0c7dfb8620b099d14bc1a34169ed5abe06d 02-Feb-2012 Glenn Kasten <gkasten@google.com> am ac1748ce: Merge "Thread::getTid returns pid_t gettid() after run"

* commit 'ac1748ce3301b3dab3c1aa6c0d35fa877554ebbb':
Thread::getTid returns pid_t gettid() after run
ac1748ce3301b3dab3c1aa6c0d35fa877554ebbb 02-Feb-2012 Glenn Kasten <gkasten@google.com> Merge "Thread::getTid returns pid_t gettid() after run"
862dadb7a7aa290e382ca02a376776e0e27987a1 02-Feb-2012 Stephen Hines <srhines@google.com> Properly recover from failed compilation.

BUG=5955072

We used to call delete, which did not update the Context's view of the world,
leading to potential segfaults on Context teardown. This change also enables
exceptions to be thrown when runtime errors are encountered.

Change-Id: If63578efff2d7dd03639da1049c1a5ebc69fde35
s/rsScriptC.cpp
bf3c3f2ab1067b647038170cb201cdd1a9a1c6d2 02-Feb-2012 Alex Sakhartchouk <alexst@google.com> Fix an incorrect assert that doesn't account for element array size.

Change-Id: Ibcb5c55d91967603391a1721137d010a85025990
s/rsAllocation.cpp
9a9dbd5921b6c138673eea206a1a067a01928cb5 01-Feb-2012 Mathias Agopian <mathias@google.com> separate transactions from updates

with this changes, SF transactions are handled as soon as possible
but do not trigger updates. the update is delayed until the next
vsync.

this allows us to work much better without requiring triple-buffering.

Change-Id: I1fa10794d0cf742129f0877698b7b1e1f2ec7401
ui/DisplayEventReceiver.cpp
dee8be5b8906412589618844198d48b85a01fdee 02-Feb-2012 Stephen Hines <srhines@google.com> am bb3968fe: Merge "Remove wrapper version check assert."

* commit 'bb3968fed8e7fb2b53ac32d40e26e0d21600a922':
Remove wrapper version check assert.
bb3968fed8e7fb2b53ac32d40e26e0d21600a922 02-Feb-2012 Stephen Hines <srhines@google.com> Merge "Remove wrapper version check assert."
07c12933e3859804a0da063c1111659285184bef 02-Feb-2012 Stephen Hines <srhines@google.com> Remove wrapper version check assert.

This really shouldn't have been here to begin with, since the wrapper version
should be meaningless to libRS.

Change-Id: I329446ed96d1a70197247735e267b8539a8c83a2
s/rsScriptC.cpp
9ffa5a5829f728abc56db6adb05ea276e267a970 02-Feb-2012 Romain Guy <romainguy@google.com> am bbf1bc8b: Merge "Add optional metadata to initiliaze the render threat."

* commit 'bbf1bc8b6c3348265930ce08506efbbd3c5ab61f':
Add optional metadata to initiliaze the render threat.
bbf1bc8b6c3348265930ce08506efbbd3c5ab61f 02-Feb-2012 Romain Guy <romainguy@google.com> Merge "Add optional metadata to initiliaze the render threat."
211370fd943cf26905001b38b8b1791851b26adc 02-Feb-2012 Romain Guy <romainguy@google.com> Add optional metadata to initiliaze the render threat.

The render threat is likely to break your application if you initiate it.
As such it must be explicitely requested using the following meta-data
tag in your manifest's application tag:

<meta-data android:name="android.graphics.renderThread" android:value="true" />

Change-Id: Ibf0a48af2a0d091562bf6907eac970e3d1d601c4
wui/OpenGLRenderer.cpp
7b2be375942658408cc2178433c3290586e5187a 01-Feb-2012 Dianne Hackborn <hackbod@google.com> am 6c997a9e: aapt now sorts the strings in the resource string pool.

* commit '6c997a9e880e08c354ffd809bd62df9e25e9c4d4':
aapt now sorts the strings in the resource string pool.
6c997a9e880e08c354ffd809bd62df9e25e9c4d4 31-Jan-2012 Dianne Hackborn <hackbod@google.com> aapt now sorts the strings in the resource string pool.

In our current environment with very many translations, this can
save a lot of RAM -- for example over 200K in Gmail just by sorting
the strings in the Gmail .apk (not the framework).

Also add a new aapt command to print the contents of the resource
table string pool.

Change-Id: I1da037b3e2c377b890833ff57ab158965314ac48
tils/ResourceTypes.cpp
17c2cf2d2efd089c2c7baf90737854edd1df1d50 31-Jan-2012 Romain Guy <romainguy@google.com> am 1e56fff3: Merge "Add debug markers to OpenGLRenderer"

* commit '1e56fff3b90946b342ddabf68648dc3551ce47db':
Add debug markers to OpenGLRenderer
13631f3da855f200a151e7837ed9f6b079622b58 31-Jan-2012 Romain Guy <romainguy@google.com> Add debug markers to OpenGLRenderer

These markers will be used to group the GL commands by View in the
OpenGL ES debugging tool. This will help correlate individual GL
calls to higher level components like Views.

Change-Id: I73607ba2e7224a80ac32527968261ee008f049c6
wui/Caches.cpp
wui/Caches.h
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/Extensions.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
bc19591c1f82366d00e30f988b88d66184b3dedf 30-Jan-2012 Stephen Hines <srhines@google.com> am 855eadf9: Merge "Fix potential bug with reordered size/offset arguments."

* commit '855eadf942c8ff5c2665d7dc3b6d4b5ba630419a':
Fix potential bug with reordered size/offset arguments.
855eadf942c8ff5c2665d7dc3b6d4b5ba630419a 30-Jan-2012 Stephen Hines <srhines@google.com> Merge "Fix potential bug with reordered size/offset arguments."
cb3fbbd0370913e347167d6516689bcbd77442d6 30-Jan-2012 Romain Guy <romainguy@google.com> am 69726597: Merge "Add stencil buffer to the EGL config"

* commit '69726597b300ec32f2d2c489cd3f312efd3077c2':
Add stencil buffer to the EGL config
530041d3191ce817832a0108514617768e43cda6 26-Jan-2012 Romain Guy <romainguy@google.com> Add stencil buffer to the EGL config

Change-Id: If76c0cd6127534d90f9526b75c0f8e56259c6722
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Properties.h
be124027db349ee402b5586c0fda4fd18d1e5b2f 30-Jan-2012 Mathias Agopian <mathias@google.com> am dfbcee6c: fix build

* commit 'dfbcee6cb8ab9cf89b9052eb7498e453afdb1463':
fix build
dfbcee6cb8ab9cf89b9052eb7498e453afdb1463 30-Jan-2012 Mathias Agopian <mathias@google.com> fix build

Change-Id: Ibdc45f1794e7ef60dc1ca0ff85c5cc4dff84c3fa
s/driver/rsdGL.cpp
s/driver/rsdGL.h
s/driver/rsdShader.cpp
85694cf6c7bf9ad1ac4ed5fbcd6908efa6685d45 27-Jan-2012 Jason Sams <jsams@google.com> Merge "Add comment to confusing commands." into graphics-dev
61e76a7ffa2f3cbd44f008d3380a1211b7642878 27-Jan-2012 Jason Sams <jsams@google.com> Add comment to confusing commands.

Change-Id: I7b84b9d8e9b3b595e0bab33d5e219842f6c86f83
s/rsThreadIO.h
2061424da723decda182c9c8cd7e6a6d48d3c291 27-Jan-2012 Stephen Hines <srhines@google.com> am cee905be: Merge "Don\'t wait forever if there are no commands to execute."

* commit 'cee905be4874f6d3f112527a53b0f7ff87655c66':
Don't wait forever if there are no commands to execute.
cee905be4874f6d3f112527a53b0f7ff87655c66 27-Jan-2012 Stephen Hines <srhines@google.com> Merge "Don't wait forever if there are no commands to execute."
ac9e27a540a09456eb3a913252248321c3815788 27-Jan-2012 Jamie Gennis <jgennis@google.com> am 7bea6502: Merge "SurfaceTexture: use fence sync on omap4 & s5pc110"

* commit '7bea65020872a9945a6938068c4922d33cef5b4e':
SurfaceTexture: use fence sync on omap4 & s5pc110
7bea65020872a9945a6938068c4922d33cef5b4e 27-Jan-2012 Jamie Gennis <jgennis@google.com> Merge "SurfaceTexture: use fence sync on omap4 & s5pc110"
e3f9cc67617ee55635c946efcff10fd920029b41 27-Jan-2012 Stephen Hines <srhines@google.com> Don't wait forever if there are no commands to execute.

BUG=5614887

This fixes a timing issue where we could calculate a delay of 0 (indicating
wait forever) when we have no pending commands to actually execute. In such
cases, we should just break out of the playback loop.

This also fixes a small issue with returning whether or not to redraw.

Change-Id: Id1e481679341773256b7287062c68925e2bc8f9e
s/rsThreadIO.cpp
6bd4c7ad4f3b45a38841504c4f8a988338cc403b 26-Jan-2012 Stephen Hines <srhines@google.com> am caaac348: Merge "Fix bugs with unsigned rsAtomicCas/Max/Min."

* commit 'caaac348ed163f59cf1b8185bb14137050c18e7e':
Fix bugs with unsigned rsAtomicCas/Max/Min.
caaac348ed163f59cf1b8185bb14137050c18e7e 26-Jan-2012 Stephen Hines <srhines@google.com> Merge "Fix bugs with unsigned rsAtomicCas/Max/Min."
109116bb2f751d84a9ce89ac40c45e76c0aa462c 26-Jan-2012 Stephen Hines <srhines@google.com> Fix bugs with unsigned rsAtomicCas/Max/Min.

BUG=5888007

rsAtomicMax/Min did not have proper semantics for unsigned integers. They were
always using signed comparisons. rsAtomicCas had the wrong function signature
in our math library, leading to no way to properly link/execute it.

Change-Id: I336cdd8cd9f2d8093f12e101b55b2797515f039b
s/driver/rsdRuntimeMath.cpp
s/scriptc/rs_atomic.rsh
68a1df6541a133e2fc5b5f23226fa30d2016ff52 24-Jan-2012 Romain Guy <romainguy@google.com> am 1a54368b: Merge "Add full support for Canvas.setDrawFilter()"

* commit '1a54368b24a8cb88ee56ee746eae45171a43b89e':
Add full support for Canvas.setDrawFilter()
5ff9df658230d49e42c43586997a02d8e4dd417e 24-Jan-2012 Romain Guy <romainguy@google.com> Add full support for Canvas.setDrawFilter()

Change-Id: I0ad35d0603c4eeda469014803be14c1dcdde918c
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
f3d30e1c706907eda4eeb1bced207a45bb36aa06 23-Jan-2012 Daniel Lam <dalam@google.com> SurfaceTexture: use fence sync on omap4 & s5pc110

This change enables the use of the EGL_KHR_fence_sync extension in
SurfaceTexture on omap4 and s5pc110 platforms.

Change-Id: Icad5245bab445413ffb8a7c823c296b678bf3250
ui/Android.mk
4cbe25a86b4aa3353c8016a129028671e902611f 19-Jan-2012 Stephen Hines <srhines@google.com> Fix potential bug with reordered size/offset arguments.

This change also cleans up a few uint32_t/size_t issues.

Change-Id: Iae0fc085c12149129b91fce0ebbc28c8cf358eaf
s/rs.spec
s/rsAllocation.cpp
s/rsAllocation.h
86fcb90f3b126ec8fad178e7fc38c62461fba454 20-Jan-2012 Romain Guy <romainguy@google.com> am 22d41843: Fix the build, for real

* commit '22d418437e44587cb0fba4353515719453269189':
Fix the build, for real
22d418437e44587cb0fba4353515719453269189 20-Jan-2012 Romain Guy <romainguy@google.com> Fix the build, for real

Change-Id: I6263f7e5e3ae2f7efe045f8b464c0ed1b87fc793
wui/DisplayListRenderer.h
c3c36b4fe5863c8ac0ea5470be633e8fade9c483 20-Jan-2012 Jean-Baptiste Queru <jbq@google.com> am 9d25b82d: Merge "Rename LOG_ASSERT to ALOG_ASSERT"

* commit '9d25b82d280c2d979d500e7da4447148f32f820b':
Rename LOG_ASSERT to ALOG_ASSERT
12b7da69957ef894ce5134989e38479c64308ea1 20-Jan-2012 Jean-Baptiste Queru <jbq@google.com> am 6df477be: Merge "Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF)"

* commit '6df477be186233e36fc370c4d2db6c1ed928a740':
Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF)
f3f650db96d40014a0203393c585c368b0dd7a9a 20-Jan-2012 Jean-Baptiste Queru <jbq@google.com> am a826f9e2: Merge "Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF)"

* commit 'a826f9e2c4f6329d8d48c927f6e942e78ffaf92f':
Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF)
08d3c6e5ba5c3e5fcc386b07efa709325d45b9ff 20-Jan-2012 Jean-Baptiste Queru <jbq@google.com> am 4f367f33: Merge "Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF)"

* commit '4f367f3387887c538c81c34cc8becaea6fa5e430':
Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF)
7ae84204c14b4abff70fcc19c3c33de2591df34b 20-Jan-2012 Jean-Baptiste Queru <jbq@google.com> am ba7f0d2a: Merge "Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF)"

* commit 'ba7f0d2a03643ce429421b81febf18fd50473070':
Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF)
97aa8ee81198234aedffceaf71ad216b96323393 20-Jan-2012 Jean-Baptiste Queru <jbq@google.com> Merge ee4618bc

Change-Id: Ie1dc6ad38e7c30636d80f6caef11cf6673144940
36b48c30adf7236b00eccf87f3b5691359526540 20-Jan-2012 Jean-Baptiste Queru <jbq@google.com> am c318bbb0: Merge "Rename (IF_)LOG() to (IF_)ALOG()"

* commit 'c318bbb05e02a0080e129623ec8029d31be0d60e':
Rename (IF_)LOG() to (IF_)ALOG()
f68633da3ced654a9344b5c3b82f4d1c79b6bd09 09-Jan-2012 Steve Block <steveblock@google.com> Rename LOG_ASSERT to ALOG_ASSERT

Change-Id: Ie2c7ea6560656d65bad791a61996174c75677517
inder/IPCThreadState.cpp
tils/RefBase.cpp
tils/String16.cpp
tils/String8.cpp
tils/VectorImpl.cpp
c6aacce37191e1cc79cfeba13b39899f59c68c3b 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF)

Change-Id: I1de629b4632a4b3187ca1a28d6416daccd35f924
inder/BpBinder.cpp
inder/CursorWindow.cpp
inder/IMemory.cpp
inder/MemoryDealer.cpp
inder/MemoryHeapBase.cpp
inder/MemoryHeapPmem.cpp
inder/Parcel.cpp
inder/ProcessState.cpp
amera/Camera.cpp
amera/CameraParameters.cpp
pustats/ThreadCpuUsage.cpp
ui/ISurfaceComposer.cpp
ui/SensorEventQueue.cpp
ui/SensorManager.cpp
ui/Surface.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
wui/FontRenderer.cpp
wui/GradientCache.cpp
wui/OpenGLRenderer.cpp
wui/Program.cpp
wui/ShapeCache.h
wui/TextureCache.cpp
s/driver/rsdAllocation.cpp
s/driver/rsdBcc.cpp
s/driver/rsdCore.cpp
s/driver/rsdGL.cpp
s/driver/rsdMeshObj.cpp
s/driver/rsdProgramStore.cpp
s/driver/rsdRuntimeMath.cpp
s/driver/rsdRuntimeStubs.cpp
s/driver/rsdShader.cpp
s/driver/rsdShaderCache.cpp
s/rsAdapter.cpp
s/rsAllocation.cpp
s/rsAnimation.cpp
s/rsContext.cpp
s/rsContext.h
s/rsElement.cpp
s/rsFBOCache.cpp
s/rsFifoSocket.cpp
s/rsFileA3D.cpp
s/rsFont.cpp
s/rsLocklessFifo.cpp
s/rsMesh.cpp
s/rsMutex.cpp
s/rsObjectBase.cpp
s/rsProgram.cpp
s/rsProgramFragment.cpp
s/rsScript.cpp
s/rsScriptC.cpp
s/rsScriptC_Lib.cpp
s/rsScriptC_LibGL.cpp
s/rsSignal.cpp
s/rsThreadIO.cpp
s/rsType.cpp
s/rsUtils.h
s/rsg_generator.c
i/FramebufferNativeWindow.cpp
i/GraphicBuffer.cpp
i/GraphicBufferAllocator.cpp
i/GraphicBufferMapper.cpp
i/InputTransport.cpp
i/KeyCharacterMap.cpp
i/KeyLayoutMap.cpp
i/Keyboard.cpp
i/Region.cpp
i/VirtualKeyMap.cpp
tils/Asset.cpp
tils/AssetManager.cpp
tils/BackupHelpers.cpp
tils/BlobCache.cpp
tils/FileMap.cpp
tils/Looper.cpp
tils/PropertyMap.cpp
tils/RefBase.cpp
tils/ResourceTypes.cpp
tils/StreamingZipInflater.cpp
tils/Threads.cpp
tils/Tokenizer.cpp
tils/ZipFileRO.cpp
tils/ZipUtils.cpp
a51f0e707f1f3142358aa919ea60ad2842803139 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF)

Change-Id: I8fbdfa7a7581f481968dbb65aa40f7042936d7cb
inder/Binder.cpp
inder/CursorWindow.cpp
inder/IServiceManager.cpp
inder/MemoryDealer.cpp
inder/Parcel.cpp
inder/ProcessState.cpp
amera/Camera.cpp
pustats/ThreadCpuUsage.cpp
ui/SensorManager.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
wui/Caches.cpp
wui/LayerRenderer.cpp
wui/ShapeCache.h
wui/TextureCache.cpp
i/GraphicBufferAllocator.cpp
i/GraphicBufferMapper.cpp
i/Input.cpp
tils/Asset.cpp
tils/AssetManager.cpp
tils/BackupHelpers.cpp
tils/BlobCache.cpp
tils/FileMap.cpp
tils/Looper.cpp
tils/ObbFile.cpp
tils/PropertyMap.cpp
tils/ResourceTypes.cpp
tils/SystemClock.cpp
tils/Threads.cpp
tils/ZipFileRO.cpp
tils/ZipUtils.cpp
933e85615059b85a87747da57288384541cc56da 04-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF)

Change-Id: I26f76452ac49e2890b14d133c065493d8df0fb4a
inder/IPCThreadState.cpp
inder/IServiceManager.cpp
inder/Parcel.cpp
ui/SurfaceTexture.cpp
tils/Asset.cpp
tils/AssetManager.cpp
tils/BackupData.cpp
tils/BackupHelpers.cpp
tils/ObbFile.cpp
tils/ResourceTypes.cpp
tils/Static.cpp
tils/ZipFileRO.cpp
1afd5bab4e0eaba8b5bc2ab5c7b556cd602cf2e7 20-Dec-2011 Steve Block <steveblock@google.com> Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF)

Change-Id: I44f267700356967dc51e8f85ebf457dc85cfb229
inder/IMemory.cpp
inder/MemoryDealer.cpp
inder/MemoryHeapBase.cpp
inder/Parcel.cpp
inder/PermissionCache.cpp
amera/Camera.cpp
amera/CameraParameters.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
wui/Caches.cpp
wui/Debug.h
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/Extensions.h
wui/LayerCache.h
wui/LayerRenderer.cpp
wui/LayerRenderer.h
wui/Matrix.cpp
wui/OpenGLRenderer.cpp
wui/PatchCache.h
wui/ProgramCache.h
wui/Rect.h
wui/ResourceCache.cpp
wui/ShapeCache.h
wui/TextDropShadowCache.cpp
wui/TextureCache.cpp
wui/TextureCache.h
wui/Vector.h
s/driver/rsdRuntimeStubs.cpp
torage/IMountService.cpp
i/GraphicBufferAllocator.cpp
i/Input.cpp
i/InputTransport.cpp
i/KeyCharacterMap.cpp
i/KeyLayoutMap.cpp
i/Region.cpp
i/VirtualKeyMap.cpp
i/tests/region/region.cpp
tils/Asset.cpp
tils/AssetManager.cpp
tils/BackupData.cpp
tils/BackupHelpers.cpp
tils/CallStack.cpp
tils/FileMap.cpp
tils/Looper.cpp
tils/PropertyMap.cpp
tils/RefBase.cpp
tils/ResourceTypes.cpp
tils/StopWatch.cpp
tils/SystemClock.cpp
tils/Tokenizer.cpp
tils/ZipFileRO.cpp
tils/ZipUtils.cpp
06ade6ae1bd015e8b8ad0685847911213c93cc5b 20-Oct-2011 Steve Block <steveblock@google.com> Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF)

Change-Id: I5321ebd12e9c6248a108529e82c4e1af2a4405e3
inder/BpBinder.cpp
inder/Parcel.cpp
inder/ProcessState.cpp
amera/Camera.cpp
amera/ICamera.cpp
amera/ICameraClient.cpp
amera/ICameraRecordingProxy.cpp
amera/ICameraRecordingProxyListener.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
ui/tests/SurfaceTexture_test.cpp
s/driver/rsdAllocation.cpp
s/driver/rsdBcc.cpp
s/driver/rsdCore.cpp
s/driver/rsdGL.cpp
s/driver/rsdProgram.cpp
s/driver/rsdShader.cpp
s/driver/rsdShaderCache.cpp
s/driver/rsdVertexArray.cpp
s/rsAllocation.cpp
s/rsComponent.cpp
s/rsContext.cpp
s/rsElement.cpp
s/rsFileA3D.cpp
s/rsLocklessFifo.cpp
s/rsMatrix4x4.cpp
s/rsObjectBase.cpp
s/rsScriptC.cpp
s/rsThreadIO.cpp
s/rsType.cpp
tils/Asset.cpp
tils/AssetManager.cpp
tils/BlobCache.cpp
tils/FileMap.cpp
tils/RefBase.cpp
tils/ResourceTypes.cpp
tils/StreamingZipInflater.cpp
tils/VectorImpl.cpp
tils/ZipFileRO.cpp
tils/ZipUtils.cpp
d79c3fbe594f657d811fe31714edaea56187a4cf 19-Jan-2012 Romain Guy <romainguy@google.com> am 4785a6ff: Merge "Full support for Canvas.drawPosText"

* commit '4785a6ff8d48f51813611f2cab998b235ce2bbca':
Full support for Canvas.drawPosText
4785a6ff8d48f51813611f2cab998b235ce2bbca 19-Jan-2012 Romain Guy <romainguy@google.com> Merge "Full support for Canvas.drawPosText"
671d6cf460531825a321edb200523d0faa7792c9 18-Jan-2012 Romain Guy <romainguy@google.com> Full support for Canvas.drawPosText

This also introduces a small optimization when rendering text.

Change-Id: Iff620ac97bf878eaac406bccc6daa07052c93890
wui/FontRenderer.cpp
wui/FontRenderer.h
wui/OpenGLRenderer.cpp
fda817416c1e211c6ade7eaad0e62e4ba4de4413 18-Jan-2012 Robert Ly <robertly@google.com> am b41c96a3: am 43fda84e: am 6ad9ea7d: Merge "update overview page for rs api docs to open iframe links in parent" into ics-mr1

* commit 'b41c96a374134c84558291fbb532fe490386a4ba':
update overview page for rs api docs to open iframe links in parent
b41c96a374134c84558291fbb532fe490386a4ba 18-Jan-2012 Robert Ly <robertly@google.com> am 43fda84e: am 6ad9ea7d: Merge "update overview page for rs api docs to open iframe links in parent" into ics-mr1

* commit '43fda84e91b1fe356af35386d2f304d3ab71529e':
update overview page for rs api docs to open iframe links in parent
ad3f5145fe513c4abb36388ab41508edf2be2a7c 12-Oct-2011 Steve Block <steveblock@google.com> Rename (IF_)LOG() to (IF_)ALOG()

Change-Id: If49c81a2793182771c6160fbca93905daa6f44c1
inder/IPCThreadState.cpp
inder/Parcel.cpp
tils/Threads.cpp
tils/Timers.cpp
3f096193fceafc199bf1b0e87dcfaf73905b39d9 18-Jan-2012 Romain Guy <romainguy@google.com> am fb9ffe02: Merge "First pass at implementing Canvas.drawPosText() in GL"

* commit 'fb9ffe02609c9c4ffca64927e72bc935cfe87768':
First pass at implementing Canvas.drawPosText() in GL
eb9a5367e8f0e970db8509ffb2584f5376bc62ed 18-Jan-2012 Romain Guy <romainguy@google.com> First pass at implementing Canvas.drawPosText() in GL

Change-Id: Ia3ac347e95d57eb86c63045156c8dbc0572b03cb
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
06a864413f03627ba7671d1c19ae114e3afaad4b 12-Jul-2011 Glenn Kasten <gkasten@google.com> Thread::getTid returns pid_t gettid() after run

This is needed when the parent or any other thread besides the child
needs access to the child's kernel tid.

Change-Id: Ib148505913eb78314cfd76657c30d7b20663dffd
tils/Android.mk
tils/Threads.cpp
b97c8dd6eb340442ce71481a512bcef4a4e41536 13-Jan-2012 Stephen Hines <srhines@google.com> am d36f7d24: Merge "Add support for new root.expand() calls."

* commit 'd36f7d249591559e713a8ca45c6d452c14c94895':
Add support for new root.expand() calls.
1d23caf6177010f8c0316de072c9dd8666772af9 13-Jan-2012 Glenn Kasten <gkasten@google.com> am 1e808691: Get AID_GRAPHICS from right place

* commit '1e80869133924e1ffff5c10ca787da303fd0b53d':
Get AID_GRAPHICS from right place
68e9a8a6c8f02013ea5dbe46286bef68d7763901 13-Jan-2012 Jason Sams <jsams@google.com> Merge "Start implementing SurfaceTexture streaming into RS allocations." into graphics-dev
615e7cee03d1a53072b0369fa9f247811ac56845 13-Jan-2012 Jason Sams <jsams@google.com> Start implementing SurfaceTexture streaming into RS allocations.

Change-Id: I561fbb63c63371ea59047c07fb2d68c21d16e76b
s/RenderScriptDefines.h
s/driver/rsdAllocation.cpp
s/driver/rsdAllocation.h
s/driver/rsdCore.cpp
s/driver/rsdShader.cpp
s/driver/rsdShaderCache.h
s/rs.spec
s/rsAllocation.cpp
s/rsAllocation.h
s/rs_hal.h
d36f7d249591559e713a8ca45c6d452c14c94895 13-Jan-2012 Stephen Hines <srhines@google.com> Merge "Add support for new root.expand() calls."
1e80869133924e1ffff5c10ca787da303fd0b53d 19-Dec-2011 Glenn Kasten <gkasten@google.com> Get AID_GRAPHICS from right place

Change-Id: I97b1754dc7260fec083275c71a8f71ebfb2cefa8
ui/ISurfaceComposerClient.cpp
2eeb53c1555128bdc810c5457d82b447e53cf926 13-Jan-2012 Robert Ly <robertly@google.com> update overview page for rs api docs to open iframe links in parent

Change-Id: Ic0aa77192fa19b045a7fd9df5926255511fdc3be
s/scriptc/rs_allocation.rsh
0272f1dfd797f44db7b528f0f2c0b19b200256a6 13-Jan-2012 Robert Ly <robertly@google.com> cherrypick from master - add overview description for RS API reference Change-Id: Id5554c607ad4c435f92bfa939e4ce4833a638f62

Change-Id: Iff4b4bd171818208bb3be46dd3ef7e91b6cbd80f
s/scriptc/rs_allocation.rsh
6b4cf07cab1374d71c07d0b70666ad2d781d5be7 13-Jan-2012 Stephen Hines <srhines@google.com> Add support for new root.expand() calls.

BUG=5444144

Change-Id: I9ab942561a03e9f837a3199457259bb3e07ac76f
s/driver/rsdBcc.cpp
s/driver/rsdCore.cpp
s/driver/rsdCore.h
29d433290fc321a6aba38b5f506fa4d3048f7e0b 12-Jan-2012 Jason Sams <jsams@google.com> Merge "Plumbing for RS priority." into graphics-dev
17801f1eaafae66d63f862b8e89ee53310ce9972 12-Jan-2012 Jason Sams <jsams@google.com> Plumbing for RS priority.

Change-Id: Ibddfd40407fd6d24ac829a76a9a1e2047c48c5fd
s/driver/rsdCore.cpp
s/driver/rsdCore.h
s/driver/rsdGL.cpp
s/driver/rsdGL.h
s/rsContext.cpp
e749769e7486b7820821d9a46f006d55a5488ca5 12-Jan-2012 Mathias Agopian <mathias@google.com> am 2fdc357b: Merge "remove dead/usnused code"

* commit '2fdc357bc66b97614455c5148562a5dfb650c1b7':
remove dead/usnused code
0db7590ed2785cfa8973dbcb6b93627ea02774ce 07-Jan-2012 Mathias Agopian <mathias@google.com> remove dead/usnused code

Change-Id: I6fa2bc6ee01790abd2c1533f043d61a5e5c8d26e
i/Android.mk
i/FramebufferNativeWindow.cpp
i/GraphicLog.cpp
aa9565b1b24656cf194fc52a4a992c926b520997 11-Jan-2012 Jason Sams <jsams@google.com> Fix LOGE.

Change-Id: I533bedf0827edb27e0aead78e2bb3389be85acd8
s/driver/rsdPath.cpp
s/rsPath.cpp
f0b668cf7fc2061aefd62f68aba71b4d2f378ebb 10-Jan-2012 Steve Block <steveblock@google.com> am 38e90751: Merge "Rename LOG_ASSERT to ALOG_ASSERT DO NOT MERGE"

* commit '38e90751a25606459a9e571aa1b6c992d4c64151':
Rename LOG_ASSERT to ALOG_ASSERT DO NOT MERGE
10f2a3c5b3026e3c7fcd40f70cb13a7f89172300 10-Jan-2012 Alex Sakhartchouk <alexst@google.com> Merge "Now utilizing ability to bind constants. Fixing small copy/paste typo." into graphics-dev
b64ef770db501ea4665a32bfbf6617e2005fad5c 10-Jan-2012 Alex Sakhartchouk <alexst@google.com> Merge "Adding ability to bind constants to shaders." into graphics-dev
fdccec9c21fafe1bc70b6437115d42e75643ba75 10-Jan-2012 Alex Sakhartchouk <alexst@google.com> Now utilizing ability to bind constants.
Fixing small copy/paste typo.

Change-Id: I8ca993f3e894214b710bea019dfd65822a4cd88f
s/rsScriptC_LibGL.cpp
33680ff630760228c33cc3731eb5718be7bbc04f 10-Jan-2012 Alex Sakhartchouk <alexst@google.com> Adding ability to bind constants to shaders.

Change-Id: I63b664fd2fec7e0c8157b7185782192132222f1a
s/driver/rsdRuntimeStubs.cpp
s/rsRuntime.h
s/rsScriptC_LibGL.cpp
s/scriptc/rs_graphics.rsh
2e681c1b097883f5c327d3c1c77692ecab498a35 10-Jan-2012 Steve Block <steveblock@google.com> resolved conflicts for merge of 08289f55 to graphics-dev

Change-Id: I2c95cd461e364cbeae7ffbaea7ad5c87713d7df7
ec193dec4d9ca2cfc8295c4becfe950a906a15ed 09-Jan-2012 Steve Block <steveblock@google.com> Rename LOG_ASSERT to ALOG_ASSERT DO NOT MERGE

See https://android-git.corp.google.com/g/157519

Bug: 5449033
Change-Id: I8ceb2dba1b031a0fd68d15d146960d9ced62bbf3
inder/IPCThreadState.cpp
tils/RefBase.cpp
tils/String16.cpp
tils/String8.cpp
tils/VectorImpl.cpp
3762c311729fe9f3af085c14c5c1fb471d994c03 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/157220

Bug: 5449033
Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
inder/BpBinder.cpp
inder/CursorWindow.cpp
inder/IMemory.cpp
inder/MemoryDealer.cpp
inder/MemoryHeapBase.cpp
inder/MemoryHeapPmem.cpp
inder/Parcel.cpp
inder/ProcessState.cpp
amera/Camera.cpp
amera/CameraParameters.cpp
pustats/ThreadCpuUsage.cpp
ui/BitTube.cpp
ui/DisplayEventReceiver.cpp
ui/ISurfaceComposer.cpp
ui/SensorEventQueue.cpp
ui/SensorManager.cpp
ui/Surface.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
wui/FontRenderer.cpp
wui/GradientCache.cpp
wui/OpenGLRenderer.cpp
wui/Program.cpp
wui/ShapeCache.h
wui/TextureCache.cpp
s/driver/rsdAllocation.cpp
s/driver/rsdBcc.cpp
s/driver/rsdCore.cpp
s/driver/rsdGL.cpp
s/driver/rsdMeshObj.cpp
s/driver/rsdProgramStore.cpp
s/driver/rsdRuntimeMath.cpp
s/driver/rsdRuntimeStubs.cpp
s/driver/rsdShader.cpp
s/driver/rsdShaderCache.cpp
s/rsAdapter.cpp
s/rsAllocation.cpp
s/rsAnimation.cpp
s/rsContext.cpp
s/rsContext.h
s/rsElement.cpp
s/rsFBOCache.cpp
s/rsFifoSocket.cpp
s/rsFileA3D.cpp
s/rsFont.cpp
s/rsLocklessFifo.cpp
s/rsMesh.cpp
s/rsMutex.cpp
s/rsObjectBase.cpp
s/rsProgram.cpp
s/rsProgramFragment.cpp
s/rsScript.cpp
s/rsScriptC.cpp
s/rsScriptC_Lib.cpp
s/rsScriptC_LibGL.cpp
s/rsSignal.cpp
s/rsThreadIO.cpp
s/rsType.cpp
s/rsUtils.h
s/rsg_generator.c
i/FramebufferNativeWindow.cpp
i/GraphicBuffer.cpp
i/GraphicBufferAllocator.cpp
i/GraphicBufferMapper.cpp
i/InputTransport.cpp
i/KeyCharacterMap.cpp
i/KeyLayoutMap.cpp
i/Keyboard.cpp
i/Region.cpp
i/VirtualKeyMap.cpp
tils/Asset.cpp
tils/AssetManager.cpp
tils/BackupHelpers.cpp
tils/BlobCache.cpp
tils/FileMap.cpp
tils/Looper.cpp
tils/PropertyMap.cpp
tils/RefBase.cpp
tils/ResourceTypes.cpp
tils/StreamingZipInflater.cpp
tils/Threads.cpp
tils/Tokenizer.cpp
tils/ZipFileRO.cpp
tils/ZipUtils.cpp
262a37f71b0a44fa9be8bb1e6089159468de9655 06-Jan-2012 Steve Block <steveblock@google.com> am f4c2294b: Merge "Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE"

* commit 'f4c2294b0156ca5a6919479142aa319963fdb727':
Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE
95853e4e2b77eece34f33edd062308aa16459eb7 06-Jan-2012 Alex Sakhartchouk <alexst@google.com> Merge "Cleanup based on comments." into graphics-dev
8564c8da817a845353d213acd8636b76f567b234 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/157065

Bug: 5449033
Change-Id: I00a4b904f9449e6f93b7fd35eac28640d7929e69
inder/Binder.cpp
inder/CursorWindow.cpp
inder/IServiceManager.cpp
inder/MemoryDealer.cpp
inder/Parcel.cpp
inder/ProcessState.cpp
amera/Camera.cpp
pustats/ThreadCpuUsage.cpp
ui/SensorManager.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
wui/Caches.cpp
wui/LayerRenderer.cpp
wui/ShapeCache.h
wui/TextureCache.cpp
i/GraphicBufferAllocator.cpp
i/GraphicBufferMapper.cpp
i/Input.cpp
tils/Asset.cpp
tils/AssetManager.cpp
tils/BackupHelpers.cpp
tils/BlobCache.cpp
tils/FileMap.cpp
tils/Looper.cpp
tils/ObbFile.cpp
tils/PropertyMap.cpp
tils/ResourceTypes.cpp
tils/SystemClock.cpp
tils/Threads.cpp
tils/ZipFileRO.cpp
tils/ZipUtils.cpp
03b17a2df574da89723e3c1a21242ac7bc854d43 06-Jan-2012 Fabrice Di Meglio <fdimeglio@google.com> am d4a69b4a: Merge "Fix bug #5753006 Garbled Labels in Maps"

* commit 'd4a69b4a1cb5b52035345abd8cb9595ae4cf9fa5':
Fix bug #5753006 Garbled Labels in Maps
d4a69b4a1cb5b52035345abd8cb9595ae4cf9fa5 06-Jan-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #5753006 Garbled Labels in Maps"
61cd9435142a6536569d922b7cd7b6a5162f31e2 05-Jan-2012 Alex Sakhartchouk <alexst@google.com> Cleanup based on comments.

Change-Id: I2d261b3cd240b890001dcc7d2a849cfdc34328bf
s/driver/rsdMesh.cpp
s/driver/rsdMeshObj.cpp
s/driver/rsdMeshObj.h
s/driver/rsdProgramRaster.cpp
s/driver/rsdProgramStore.cpp
s/driver/rsdShader.cpp
28933384427965c0c6207cea9038eada44a2054e 05-Jan-2012 Steve Block <steveblock@google.com> am bd47cac4: Merge "Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGE"

* commit 'bd47cac4dfc8440a848b33107cba1d6773f3e124':
Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGE
bd47cac4dfc8440a848b33107cba1d6773f3e124 05-Jan-2012 Steve Block <steveblock@google.com> Merge "Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGE"
c511bee87cda99a252d1a62487f47c8f05aee78c 05-Jan-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #5753006 Garbled Labels in Maps

- it was a regression introduced into this CL: https://android-git.corp.google.com/g/#/c/154240/5
- basically needed to set the GlyphID encoding to the Skia Paint as we are now using glyphID resulting
from the Harfbuzz shaping
- also define GlyphID encoding as the default on the Paint class

Change-Id: Idb7c2c57ac67595425ce3be9421258962690fcdd
wui/DisplayListRenderer.cpp
6b6e640323934ed1e6d689634e06db49f4de922b 05-Jan-2012 Glenn Kasten <gkasten@google.com> am a8719ad9: Merge "Use the standard CC_LIKELY and CC_UNLIKELY macros"

* commit 'a8719ad9d53d3fe51e8031b2471e9558b8ef727f':
Use the standard CC_LIKELY and CC_UNLIKELY macros
a8719ad9d53d3fe51e8031b2471e9558b8ef727f 05-Jan-2012 Glenn Kasten <gkasten@google.com> Merge "Use the standard CC_LIKELY and CC_UNLIKELY macros"
e80a4ccd2bac7bf121441e257044f5813e85180f 15-Dec-2011 Glenn Kasten <gkasten@google.com> Use the standard CC_LIKELY and CC_UNLIKELY macros

Several source files privately defined macros LIKELY and UNLIKELY in terms
of __builtin_expect. But <cutils/compiler.h> already has CC_LIKELY and
CC_UNLIKELY which are intended for this purpose. So rename the private
uses to use the standard names.

In addition, AudioFlinger was relying on the macro expanding to extra ( ).

Change-Id: I2494e087a0c0cac0ac998335f5e9c8ad02955873
ui/ISurfaceComposer.cpp
ui/ISurfaceComposerClient.cpp
s/driver/rsdRuntimeMath.cpp
6b908df7d97176b0a8cd31822bdd34e5d80bdcb1 05-Jan-2012 Alex Sakhartchouk <alexst@google.com> Merge "Adding better error behavior to RS" into graphics-dev
afdf7be7cef639326934282501fc0a279e2dc9bf 05-Jan-2012 Alex Sakhartchouk <alexst@google.com> Merge "Adding RS comments, cleaning up the gl implementation with new Element hal." into graphics-dev
6215d3ff4b5dfa52a5d8b9a42e343051f31066a5 04-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/156801

Bug: 5449033
Change-Id: Ib08fe86d23db91ee153e9f91a99a35c42b9208ea
inder/IPCThreadState.cpp
inder/IServiceManager.cpp
inder/Parcel.cpp
ui/SurfaceTexture.cpp
tils/Asset.cpp
tils/AssetManager.cpp
tils/BackupData.cpp
tils/BackupHelpers.cpp
tils/ObbFile.cpp
tils/ResourceTypes.cpp
tils/Static.cpp
tils/ZipFileRO.cpp
c2daafc18d15e5c76ef6fae5174ed9606e099830 04-Jan-2012 Steve Block <steveblock@google.com> am 41891aea: Merge "Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE"

* commit '41891aeaf4e6e4006ae3087fa537786e9ec8caa4':
Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE
0c16df2b206fd1336cf7449ee7ed34cae0154805 04-Jan-2012 Romain Guy <romainguy@google.com> am 173ab4d6: Merge "Properly restore the GL scissor after a GL draw functor Bug #5781254"

* commit '173ab4d61077c49f115b82eff34f97fda5a7273a':
Properly restore the GL scissor after a GL draw functor Bug #5781254
5baa3a62a97544669fba6d65a11c07f252e654dd 20-Dec-2011 Steve Block <steveblock@google.com> Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/156016

Bug: 5449033
Change-Id: I4c4e33bb9df3e39e11cd985e193e6fbab4635298
inder/IMemory.cpp
inder/MemoryDealer.cpp
inder/MemoryHeapBase.cpp
inder/Parcel.cpp
inder/PermissionCache.cpp
amera/Camera.cpp
amera/CameraParameters.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
wui/Caches.cpp
wui/Debug.h
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/Extensions.h
wui/LayerCache.h
wui/LayerRenderer.cpp
wui/LayerRenderer.h
wui/Matrix.cpp
wui/OpenGLRenderer.cpp
wui/PatchCache.h
wui/Program.h
wui/ProgramCache.h
wui/Rect.h
wui/ResourceCache.cpp
wui/ShapeCache.h
wui/TextDropShadowCache.cpp
wui/TextureCache.cpp
wui/TextureCache.h
wui/Vector.h
s/driver/rsdRuntimeStubs.cpp
torage/IMountService.cpp
i/GraphicBufferAllocator.cpp
i/Input.cpp
i/InputTransport.cpp
i/KeyCharacterMap.cpp
i/KeyLayoutMap.cpp
i/Region.cpp
i/VirtualKeyMap.cpp
i/tests/region/region.cpp
tils/Asset.cpp
tils/AssetManager.cpp
tils/BackupData.cpp
tils/BackupHelpers.cpp
tils/CallStack.cpp
tils/FileMap.cpp
tils/Looper.cpp
tils/PropertyMap.cpp
tils/RefBase.cpp
tils/ResourceTypes.cpp
tils/StopWatch.cpp
tils/SystemClock.cpp
tils/Tokenizer.cpp
tils/ZipFileRO.cpp
tils/ZipUtils.cpp
tils/tests/BasicHashtable_test.cpp
82bc7a772747fcf8a6fe7097f70bf2981429ffe9 03-Jan-2012 Romain Guy <romainguy@google.com> Properly restore the GL scissor after a GL draw functor
Bug #5781254

Change-Id: I1dc4809563a793b6b579814951d4d73b4c34bf32
wui/Caches.cpp
wui/Caches.h
wui/OpenGLRenderer.cpp
5b5664af2d35876fca79c5b10521072138a568e3 29-Dec-2011 Alex Sakhartchouk <alexst@google.com> Adding better error behavior to RS

Change-Id: Iea1cc76793f8978d60575404d7b1c5145e268d6e
s/RenderScriptDefines.h
s/driver/rsdMeshObj.cpp
s/driver/rsdProgramRaster.cpp
s/rsComponent.cpp
s/scriptc/rs_graphics.rsh
s/scriptc/rs_types.rsh
36a7d6003d521e6aff16e2a1e74f19ea9ec00624 28-Dec-2011 Alex Sakhartchouk <alexst@google.com> Adding RS comments, cleaning up the gl implementation with new Element hal.

Change-Id: I74de1e8248a73a45a39976e6027dac2626d580e9
s/driver/rsdMeshObj.cpp
s/driver/rsdShader.cpp
s/rsElement.h
s/rsMesh.h
s/rsType.h
fd79e02e0fec8620da7affaadcf275cf0518241a 22-Dec-2011 Alex Sakhartchouk <alexst@google.com> Missing getter and additional tests.

Change-Id: I057dd0a29d2cad40d0a0627b4355faeb82bbc229
s/scriptc/rs_allocation.rsh
3aac0abe7965ce9e2078c7d5796805d83e39df7c 22-Dec-2011 Alex Sakhartchouk <alexst@google.com> Adding tests for element/mesh getters.
Fixing bugs found by tests.

Change-Id: I6592a3b65f16b21255e7788fe8ee8aaafe268638
s/rsElement.cpp
s/scriptc/rs_types.rsh
c9e7da6130e9e272873cbb465834c6755cea9afd 20-Dec-2011 Alex Sakhartchouk <alexst@google.com> Adding simple hal struct to type.
Fixing off by 1 error in the element.

Change-Id: I0b142942c760cb861007af7099d35d0363f4e13b
s/rsElement.cpp
s/rsType.cpp
s/rsType.h
s/scriptc/rs_allocation.rsh
8c998cf3448aa2c222d4e44ff0f89c781673101f 19-Dec-2011 Alex Sakhartchouk <alexst@google.com> Merge "Adding comments to RS headers." into graphics-dev
b6f3a279a84ea31c0e157ef9e359ad8ecc11cb68 17-Dec-2011 Chet Haase <chet@google.com> am 0faa0556: Merge "De-allocate caches for large glyphs when trimming memory"

* commit '0faa05563992fd4b3632df50921a9c612378a049':
De-allocate caches for large glyphs when trimming memory
0faa05563992fd4b3632df50921a9c612378a049 17-Dec-2011 Chet Haase <chet@google.com> Merge "De-allocate caches for large glyphs when trimming memory"
9a8245629d69d81e0b62e52970feaf9c02580e75 17-Dec-2011 Chet Haase <chet@google.com> De-allocate caches for large glyphs when trimming memory

Currently, font renderers eliminate some texture caches when
memory is trimmed. This change makes it go further by eliminating the
large-glyph caches for all font renderers. These caches are
only allocated as needed, but continue to consume large amounts of
memory (CPU and GPU) after that allocation. De-allocating this memory
on a trim operation should prevent background apps from holding onto
this memory in the possible case that they have allocated it by drawing
large glyphs.

Change-Id: Id7a3ab49b244e036b442d87252fb40aeca8fdb26
wui/FontRenderer.cpp
wui/FontRenderer.h
wui/GammaFontRenderer.cpp
f024eb2ebd4d481877d5da51b3cb114957788b06 16-Dec-2011 Jeff Brown <jeffbrown@google.com> am 1b678528: Merge "Fix invalid madvise() during concurrent alloc/dealloc of MemoryDealer"

* commit '1b678528237d4eea623840ce3ba5520c59ca4b2c':
Fix invalid madvise() during concurrent alloc/dealloc of MemoryDealer
1b678528237d4eea623840ce3ba5520c59ca4b2c 16-Dec-2011 Jeff Brown <jeffbrown@google.com> Merge "Fix invalid madvise() during concurrent alloc/dealloc of MemoryDealer"
11a2e341c5455dcf70e31deda20881635c6afdb1 16-Dec-2011 Alex Sakhartchouk <alexst@google.com> Adding comments to RS headers.

Change-Id: Ib345fe9f651dd3e74fb384799d381034391de8a2
s/scriptc/rs_allocation.rsh
s/scriptc/rs_types.rsh
8d57f404fa2bfbc1cc4427c754bca5a3bee0fc47 16-Dec-2011 Alex Sakhartchouk <alexst@google.com> Merge "Element getters." into graphics-dev
f5d8ac7cc35747ef7285ccc196f616b96229def9 16-Dec-2011 Alex Sakhartchouk <alexst@google.com> Element getters.

Change-Id: Ibe570464557eeecad108b4d3cb8f02fad13943de
s/scriptc/rs_allocation.rsh
s/scriptc/rs_types.rsh
ada81693a11e0dcdf57b9ad726bf073e67170317 16-Dec-2011 Chet Haase <chet@google.com> am 0904c203: Merge "Fix issues from recent glyph caching change"

* commit '0904c203c4c56e43f723522351b7a3bc304196ef':
Fix issues from recent glyph caching change
0904c203c4c56e43f723522351b7a3bc304196ef 16-Dec-2011 Chet Haase <chet@google.com> Merge "Fix issues from recent glyph caching change"
2a47c14e2a6f152496b43104bc785c488583fd59 15-Dec-2011 Chet Haase <chet@google.com> Fix issues from recent glyph caching change

There were 2 issues remaining after a recent change to support
glyph caching from multiple textures:
- memory in the GPU for all textures was being allocated automatically.
This is now lazy, being allocated only when those textures are first
needed.
- filtering (applied when a rendered object is transformed) was ignoring
the new multiple-texture structure. Filtering should be applied correctly
whenever we change textures.

Change-Id: I5c8eb8d46c73cd01782a353fc79b11cacc2146ab
wui/FontRenderer.cpp
wui/FontRenderer.h
7d6bfab4bdfeaa0a2cb1ba33767da3aceac69eff 15-Dec-2011 Jason Sams <rjsams@android.com> Merge "Element HAL sturct, script side getters" into graphics-dev
b4fb81773cf14a259dd5e8d211ca907191488265 15-Dec-2011 Romain Guy <romainguy@google.com> am 18ca25be: Merge "Generate even fewer GL commands"

* commit '18ca25be58be75be78cdce7541b6b082a4b3864f':
Generate even fewer GL commands
374c12275ab898f4fe69568f730afd2995107a6e 15-Dec-2011 Romain Guy <romainguy@google.com> am 926d55eb: Merge "Reduce the number of active texture changes"

* commit '926d55eb40b9042c200f154fdf0c7c7969e0e359':
Reduce the number of active texture changes
58d0579eec8b0f9b374458f85ca8998941b0f255 15-Dec-2011 Romain Guy <romainguy@google.com> am 9c986b7f: Merge "<Insert something improper about OpenGL>"

* commit '9c986b7f387adb8b65d9094ba931645141bc5253':
<Insert something improper about OpenGL>
27ecb1ab5f3f15bc348695359a6df1baa1f0b501 15-Dec-2011 Romain Guy <romainguy@google.com> am 8a5f8ba4: Merge "Further reduce the number of GL commands sent to the driver"

* commit '8a5f8ba4f3e8352155c711adb649e6f536d194b5':
Further reduce the number of GL commands sent to the driver
d24b1bb040da73f98556c9d4ec3a5c07b91cc412 15-Dec-2011 Alex Sakhartchouk <alexst@google.com> Element HAL sturct, script side getters

Change-Id: If98dd4c22bce58dca2c9739c8aee935a2dd0b493
s/rsElement.cpp
s/rsElement.h
s/rsMesh.h
s/scriptc/rs_allocation.rsh
s/scriptc/rs_types.rsh
8f85e80b64b89fd38cc23b129f61ec36ddde7f15 15-Dec-2011 Romain Guy <romainguy@google.com> Generate even fewer GL commands

Change-Id: I0f4dcacb03ef5ee7f6ebd501df98bfead5f0a7f8
wui/Caches.cpp
wui/Caches.h
wui/OpenGLRenderer.cpp
wui/Rect.h
c17d9b75b636e2db164ec4213252b06cfb474924 14-Dec-2011 Ji-Hwan Lee <jihwan@google.com> Fix invalid madvise() during concurrent alloc/dealloc of MemoryDealer

Currently, madvise(MADV_REMOVE) is called after deallocation.
Another thread might allocate (and even write) the same region between
deallocation and madvise(), in which case the new thread will fail to read
what it have written. So, call deallocate() after madvise(MADV_REMOVE).

Bug: 5654596
Change-Id: I26f36cd6013de499090768a0ddc68206a4a68219
inder/MemoryDealer.cpp
2d4fd364843d3efc6e6ee59ccc5beb513a86d789 14-Dec-2011 Romain Guy <romainguy@google.com> Reduce the number of active texture changes

Change-Id: I94046bdfe20740c26c8183822e3002d692fde7c4
wui/FontRenderer.cpp
wui/OpenGLRenderer.cpp
wui/Program.cpp
wui/Program.h
ec31f83bd3af1f900d1ee9116b15f56904c66dcd 14-Dec-2011 Romain Guy <romainguy@google.com> <Insert something improper about OpenGL>

Change-Id: Ib645376093838156771588adc76a718da0ceb0db
wui/Caches.cpp
wui/Rect.h
a1d3c91afbd52c7e8b01f4a9060c5459f02ae7a5 13-Dec-2011 Romain Guy <romainguy@google.com> Further reduce the number of GL commands sent to the driver

Change-Id: Id922b2a166ea4573b767c27d3195e11c70320b23
wui/Caches.cpp
wui/Caches.h
wui/LayerCache.cpp
wui/LayerRenderer.cpp
wui/OpenGLRenderer.cpp
wui/Rect.h
wui/SkiaShader.cpp
5bc5de87f3c371ae082e2c65b26fa507bc0c0508 13-Dec-2011 Chet Haase <chet@google.com> am e829bc0f: Merge "Make glyph cache more flexible"

* commit 'e829bc0f0364e942bed01536d115a5c08d25d776':
Make glyph cache more flexible
07c04f775538e063b6ee5ea0a7d5c64ed760327b 13-Dec-2011 Romain Guy <romainguy@google.com> am 6f2de0a5: Merge "Reduce the number of GL commands generated by the UI"

* commit '6f2de0a5d6303ecff2795a94d5051ea0621be07f':
Reduce the number of GL commands generated by the UI
e829bc0f0364e942bed01536d115a5c08d25d776 13-Dec-2011 Chet Haase <chet@google.com> Merge "Make glyph cache more flexible"
7de0cb12d0e5fd64811da0b5d1ae0c0d58b86f86 06-Dec-2011 Chet Haase <chet@google.com> Make glyph cache more flexible

Some GPU architectures could not handle the previous implementation
of our glyph cache. Frequent uploads would cause memory problems in the GPU
and eventually a crash due to these memory issues. The solution is to move to
a system of several, smaller caches instead of one monolythic cache for all
glyphs.

Change-Id: I0fc7a323360940d16d5a33eeb33abfab194c5920
wui/FontRenderer.cpp
wui/FontRenderer.h
wui/GammaFontRenderer.h
15bc6437f8b4cf10dba55c7638d349e7b9563f4f 13-Dec-2011 Romain Guy <romainguy@google.com> Reduce the number of GL commands generated by the UI

This optimization along with the previous one lets us render an
application like Gmail using only 30% of the number of GL commands
previously required

Change-Id: Ifee63edaf495e04490b5abd5433bb9a07bc327a8
wui/Caches.cpp
wui/Caches.h
wui/FontRenderer.cpp
wui/FontRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
8c464b79bfabd868f4e712baff38d1851e101c1b 13-Dec-2011 Romain Guy <romainguy@google.com> am 5009f65c: Merge "Optimize state changes"

* commit '5009f65c9a676b64869e638e08ec0294e20d7e6e':
Optimize state changes
23d0deeb2b74a6eb0eedc869b96d483776126205 13-Dec-2011 Romain Guy <romainguy@google.com> am da7642b3: Merge "Minimize the amount of data uploaded to draw text"

* commit 'da7642b31bb3490655016df979b0fad95425ac5f':
Minimize the amount of data uploaded to draw text
a72a3f077ac64513a1f2a671b8fbf10145a624bb 13-Dec-2011 Romain Guy <romainguy@google.com> am 51fbb009: Merge "Various OpenGL optimizations"

* commit '51fbb009661e8eeb41730fe107179425e5392b6d':
Various OpenGL optimizations
5009f65c9a676b64869e638e08ec0294e20d7e6e 13-Dec-2011 Romain Guy <romainguy@google.com> Merge "Optimize state changes"
f3a910b423db7ad79cf61518bdd9278c048ad0d8 13-Dec-2011 Romain Guy <romainguy@google.com> Optimize state changes

Change-Id: Iae59bc8dfd6427d0967472462cc1994987092827
wui/Caches.cpp
wui/Caches.h
wui/FontRenderer.cpp
wui/FontRenderer.h
wui/OpenGLRenderer.cpp
wui/Patch.cpp
wui/Program.cpp
wui/Program.h
wui/ProgramCache.cpp
wui/ProgramCache.h
da7642b31bb3490655016df979b0fad95425ac5f 13-Dec-2011 Romain Guy <romainguy@google.com> Merge "Minimize the amount of data uploaded to draw text"
51fbb009661e8eeb41730fe107179425e5392b6d 13-Dec-2011 Romain Guy <romainguy@google.com> Merge "Various OpenGL optimizations"
d71dd367af604571c7d00ca473184a1b9240eca2 13-Dec-2011 Romain Guy <romainguy@google.com> Minimize the amount of data uploaded to draw text

Change-Id: I6313ac039291c9cd93aadafe3566ad9d60cab42d
wui/FontRenderer.cpp
wui/FontRenderer.h
wui/OpenGLRenderer.cpp
39d252a6632d057d5077f7eaf1b8ed7a142f3397 13-Dec-2011 Romain Guy <romainguy@google.com> Various OpenGL optimizations

Change-Id: Ib0742c96f10f5f50e7e5148b742c31b6c232d127
wui/GradientCache.cpp
wui/LayerCache.cpp
wui/LayerRenderer.cpp
wui/OpenGLRenderer.cpp
wui/TextDropShadowCache.cpp
wui/Texture.h
dcd03fcca37653866875c6399d87bbda95f94fa5 13-Dec-2011 Romain Guy <romainguy@google.com> am d2ea737a: Merge "Remove leftover debugging code"

* commit 'd2ea737a1f28b43ce2e01686d64a5cf8243daa49':
Remove leftover debugging code
b23e7499e3668805d32c7ea7d371bf29bc471c8b 13-Dec-2011 Romain Guy <romainguy@google.com> am ebb2c6b3: Merge "Keep shaders to render properly"

* commit 'ebb2c6b36da049b32c1dba6f14f16660d860eb09':
Keep shaders to render properly
d2ea737a1f28b43ce2e01686d64a5cf8243daa49 13-Dec-2011 Romain Guy <romainguy@google.com> Merge "Remove leftover debugging code"
f44e66fcf70aa4a354deca72dfbd3b29c29302be 13-Dec-2011 Romain Guy <romainguy@google.com> Remove leftover debugging code

Change-Id: I1589af7991da36744071d5081daa24ebae5b4dfd
wui/Program.cpp
ebb2c6b36da049b32c1dba6f14f16660d860eb09 13-Dec-2011 Romain Guy <romainguy@google.com> Merge "Keep shaders to render properly"
3e263fac8c9c0e0fb242186b514a7af8efb40961 13-Dec-2011 Romain Guy <romainguy@google.com> Keep shaders to render properly

I don't know who's to blame, SGX or Tegra2 but one of those two GPUs is not
following the OpenGL ES 2.0 spec.

Change-Id: I2624e0efbc9c57d571c55c8b440a5e43f08a54f2
wui/LayerRenderer.cpp
wui/OpenGLRenderer.cpp
wui/Program.cpp
wui/Program.h
ab684001067fb138b570e44d9e51179ec0791162 13-Dec-2011 Jamie Gennis <jgennis@google.com> am f08403ba: am 74e0fcae: am a1dee3f5: Merge "SurfaceTexture: fix a verbose-log compile error" into ics-mr1

* commit 'f08403ba92999448512c4af7062fe30206e32dcf':
SurfaceTexture: fix a verbose-log compile error
f08403ba92999448512c4af7062fe30206e32dcf 13-Dec-2011 Jamie Gennis <jgennis@google.com> am 74e0fcae: am a1dee3f5: Merge "SurfaceTexture: fix a verbose-log compile error" into ics-mr1

* commit '74e0fcaed1cd20ae8632224ff5a5404ff1a6e497':
SurfaceTexture: fix a verbose-log compile error
36ee0c9fcb739913bad0314c8ec3f1f754fc0883 12-Dec-2011 Romain Guy <romainguy@google.com> am 6752d0ab: Mark color uniform fetched after fetching it

* commit '6752d0ab029a185a42e34e7a933b669e6ed19e89':
Mark color uniform fetched after fetching it
8df4905c6ba1db5d9d15f99e164e64c81d8c108e 12-Dec-2011 Romain Guy <romainguy@google.com> am 11326aa1: Merge "Code cleanup"

* commit '11326aa1b9482fefa0c0bdcb7e48cfeae6f9e33d':
Code cleanup
915ff1a38fd6d9ec70827c14517af20837044cfc 12-Dec-2011 Romain Guy <romainguy@google.com> am ee698a01: Merge "Free up resources by deleting shaders early on"

* commit 'ee698a01bdc9ea7aa2b1cd729109b194a130f9f5':
Free up resources by deleting shaders early on
6752d0ab029a185a42e34e7a933b669e6ed19e89 12-Dec-2011 Romain Guy <romainguy@google.com> Mark color uniform fetched after fetching it

Change-Id: I10e8027018608070a536eb8b51c7a4272e37006c
wui/Program.cpp
798b9cdf8ca6fdede46c7f697bed78756f9029f9 10-Dec-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: fix a verbose-log compile error

Change-Id: I045231207e068d950bb0cb5085717af5d9454ed1
ui/SurfaceTexture.cpp
24edca8b526515979778e577191089a57f5277d7 09-Dec-2011 Romain Guy <romainguy@google.com> Code cleanup

Change-Id: If92e3addfc4d8546a60edcdea60a1fc89c27b680
wui/Program.cpp
wui/ProgramCache.h
wui/Properties.h
05bbde70fd2a3af737656b9f8c5a25b56429632e 09-Dec-2011 Romain Guy <romainguy@google.com> Free up resources by deleting shaders early on

Change-Id: I29a39775732c0a48d3e6823f7afa3e741cae8541
wui/Program.cpp
wui/Program.h
wui/Properties.h
99bd43b2bbdb0026d56de5d98f5af2406e8ec1f3 07-Dec-2011 Mathias Agopian <mathias@google.com> am 4a46ee57: Merge "Improve the VSYNC api a bit."

* commit '4a46ee57f10f4a121776cfc05143aa580a92b5e5':
Improve the VSYNC api a bit.
4a46ee57f10f4a121776cfc05143aa580a92b5e5 07-Dec-2011 Mathias Agopian <mathias@google.com> Merge "Improve the VSYNC api a bit."
c08a1cc38fb0f6df5f7edb785387a03e119ac448 07-Dec-2011 Alex Sakhartchouk <alexst@google.com> Merge "Revert "Removing changes not meant for MR1"" into graphics-dev
6779df2c28a68616134b1988f009221652d9f2ad 07-Dec-2011 Mathias Agopian <mathias@google.com> Improve the VSYNC api a bit.

- add the ability to set the vsync delivery rate, when the rate is
set to N>1 (ie: receive every N vsync), SF process' is woken up for
all of vsync, but clients only see the every N events.

- add the concept of one-shot vsync events, with a call-back
to request the next one. currently the call-back is a binder IPC.

Change-Id: I09f71df0b0ba0d88ed997645e2e2497d553c9a1b
ui/DisplayEventReceiver.cpp
ui/IDisplayEventConnection.cpp
5912157f97092d11af687bea88bd71dd13fd9e78 07-Dec-2011 Stephen Hines <srhines@google.com> am f7f93048: Merge "NULL should not be const for RS."

* commit 'f7f930480c75bcb57ae98d4a0fc59a3fb8e90e3d':
NULL should not be const for RS.
f7f930480c75bcb57ae98d4a0fc59a3fb8e90e3d 07-Dec-2011 Stephen Hines <srhines@google.com> Merge "NULL should not be const for RS."
4d322043ab695583a6741924b60c934fd9dc7e3e 07-Dec-2011 Stephen Hines <srhines@google.com> NULL should not be const for RS.

Change-Id: I24d96843c40f822bf064a0fa1fc0440b6bf0518d
s/scriptc/rs_types.rsh
a21b73511c50d0edc7c2bb2035f0db05b7d1e96b 07-Dec-2011 Romain Guy <romainguy@google.com> am bdfe770e: Merge "Discard framebuffer rendering queues when discarding layers Bug #5581817"

* commit 'bdfe770e0874295827534558f2cba040644a3a13':
Discard framebuffer rendering queues when discarding layers Bug #5581817
9c4b79af221b53f602f946faa9ff317a596a0c39 11-Nov-2011 Romain Guy <romainguy@google.com> Discard framebuffer rendering queues when discarding layers
Bug #5581817

Change-Id: Ie30700a29059d2ea60eb7bd3f8bd20ac48a149ab
wui/Android.mk
wui/Extensions.h
wui/LayerRenderer.cpp
wui/LayerRenderer.h
wui/OpenGLRenderer.cpp
ad113ec3f372a19416afdc4eaba7f8e8528e71ff 05-Dec-2011 Romain Guy <romainguy@google.com> am 7da48db9: Merge "Clip text correctly Bug #5706056"

* commit '7da48db9c5c071cfc1c54a3709a02c1300dccd76':
Clip text correctly Bug #5706056
7da48db9c5c071cfc1c54a3709a02c1300dccd76 05-Dec-2011 Romain Guy <romainguy@google.com> Merge "Clip text correctly Bug #5706056"
8f9a9f61ab793d9387a5942b307e74324704893b 05-Dec-2011 Romain Guy <romainguy@google.com> Clip text correctly
Bug #5706056

A newly introduced optimization relied on the display list renderer
to properly measure text to perform fast clipping. The paint used
to measure text needs to have AA and glyph id encoding set to return
the correct results. Unfortunately these properties were set by
the GL renderer and not by the display list renderer. This change
simply sets the properties in the display list renderer instead.

This change also improves the error message printed out when the
application attempts to use a bitmap larger than the max texture
size.

Change-Id: I4d84e1c7d194aed9ad476f69434eaa2c8f3836a8
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/ShapeCache.h
wui/TextureCache.cpp
7c71874e91499a4c71ec1f21e74f32814a2cb832 02-Dec-2011 Ben Cheng <bccheng@google.com> am f0fef4f1: am f1a4c48b: am e21dabf6: Merge "Initialize bwr.read_buffer in IPCThreadState::talkWithDriver." into ics-mr1

* commit 'f0fef4f17bdf3e6ba2ef2d3bc0899e791837456b':
Initialize bwr.read_buffer in IPCThreadState::talkWithDriver.
f0fef4f17bdf3e6ba2ef2d3bc0899e791837456b 02-Dec-2011 Ben Cheng <bccheng@google.com> am f1a4c48b: am e21dabf6: Merge "Initialize bwr.read_buffer in IPCThreadState::talkWithDriver." into ics-mr1

* commit 'f1a4c48b886d53e2afceb0620215e3792af79fd5':
Initialize bwr.read_buffer in IPCThreadState::talkWithDriver.
e21dabf654e3d90e50e95174d5e9670bc930c194 02-Dec-2011 Ben Cheng <bccheng@google.com> Merge "Initialize bwr.read_buffer in IPCThreadState::talkWithDriver." into ics-mr1
a84c4fab07e9018fa3e7b3069689dcab7c5ad008 02-Dec-2011 Romain Guy <romainguy@google.com> am e27a07d4: Merge "Faster text clipping"

* commit 'e27a07d400db18cf99d20c2aee4d1a342e276496':
Faster text clipping
cac5fd3e09e9dc918753d4aff624bf29a367ade3 02-Dec-2011 Romain Guy <romainguy@google.com> Faster text clipping

Change-Id: I03a00c4261d81a416b1ad7b86ce2d432c71908b4
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
045057087905e23c270715e9ae21de652caa2132 02-Dec-2011 Ben Cheng <bccheng@google.com> Initialize bwr.read_buffer in IPCThreadState::talkWithDriver.

I/valgrind( 1309): ==1310== Syscall param
ioctl(BINDER_WRITE_READ).read_buffer points to uninitialised byte(s)
I/valgrind( 1309): ==1310== at 0x480E670: __ioctl (__ioctl.S:10)
I/valgrind( 1309): ==1310== Address 0xbda651b4 is on thread 1's stack

Change-Id: I02893df7b5786b6b2dbd9659f5706d7171295ab2
inder/IPCThreadState.cpp
976ae27270a64c5abeb380d6e61d6d71f29b9433 23-Nov-2011 Stephen Hines <srhines@google.com> Add support for handling a bitcode wrapper to librs.

BUG=5425905

Change-Id: I75676060703df6d9043b287fea900c4379455ee2
s/rsScriptC.cpp
9759db96e061fe3b40833dd6ab35ce0379a127fc 01-Dec-2011 Romain Guy <romainguy@google.com> am 500053f8: Merge "Optimize away unnecessary state changes"

* commit '500053f8e8e56050c9221d9020a71e6672c810f1':
Optimize away unnecessary state changes
d21b6e1fe337b35f62cf2028e9bd0637fd009a75 01-Dec-2011 Romain Guy <romainguy@google.com> Optimize away unnecessary state changes

Change-Id: I0f6816f9f6234853575ecee5033186ad19e76380
wui/Layer.h
wui/LayerRenderer.cpp
wui/OpenGLRenderer.cpp
wui/ShapeCache.h
wui/SkiaShader.cpp
wui/Texture.h
wui/TextureCache.cpp
72fdb09f6090ed4f506080369b1e0a9d5338f5c9 30-Nov-2011 Mathias Agopian <mathias@google.com> am 993b2099: am 55d3880e: am bb1e7d43: Merge changes I7e973a35,Ib3386fcc into ics-mr1

* commit '993b2099cee5c3ad86a5fbbd29194994336187be':
SurfaceTexture: add EGL_KHR_fence_sync option
SurfaceTexture: add a blit-to-FBO test
993b2099cee5c3ad86a5fbbd29194994336187be 30-Nov-2011 Mathias Agopian <mathias@google.com> am 55d3880e: am bb1e7d43: Merge changes I7e973a35,Ib3386fcc into ics-mr1

* commit '55d3880eed3450748eb7b97281e030902ee29c2a':
SurfaceTexture: add EGL_KHR_fence_sync option
SurfaceTexture: add a blit-to-FBO test
77cec6132aea6ed98812125f5ad5f79e889cf658 14-Nov-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: add EGL_KHR_fence_sync option

This change adds a compile-time option for SurfaceTexture to use the
EGL_KHR_fence_sync extension to synchronize access to Gralloc buffers.

Bug: 5122031
Change-Id: I7e973a358631fff5308acf377581b811911fe790
ui/SurfaceTexture.cpp
d6c938f04ec1e39dcbcf4d5adfcbdfbac0484540 12-Nov-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: add a blit-to-FBO test

This change adds a test for blitting (via GL rendering) from a
SurfaceTexture to an FBO.

Change-Id: Ib3386fcc3f37153277f3e37a26347441bb80ab58
ui/tests/SurfaceTexture_test.cpp
8ce5cff54b32db24c65771d86c00664d832a2d31 29-Nov-2011 Mathias Agopian <mathias@google.com> am 8e6115f6: Merge "Add support for sending VSYNC events to the framework"

* commit '8e6115f622ee2d6ef8023357231b6663b1c091e6':
Add support for sending VSYNC events to the framework
2a84c1dca5584cfb1b69911ffa81962b0d93ec4c 29-Nov-2011 Mathias Agopian <mathias@google.com> am f9e88fbe: Fix build.

* commit 'f9e88fbee04f83638b07546741196bd4c242ef54':
Fix build.
79f39eb46055282c86815853ad94a1e01ca6675f 18-Nov-2011 Mathias Agopian <mathias@google.com> Add support for sending VSYNC events to the framework

use gui/DisplayEvent to receive the events. Events are
dispatched through a unix pipe, so the API is compatible
with utils/Looper. see gui/DisplayEvent.h for more info.

Bug: 1475048
Change-Id: Ia720f64d1b950328b47b22c6a86042e481d35f09
ui/Android.mk
ui/DisplayEventReceiver.cpp
ui/IDisplayEventConnection.cpp
ui/ISurfaceComposer.cpp
f9e88fbee04f83638b07546741196bd4c242ef54 29-Nov-2011 Mathias Agopian <mathias@google.com> Fix build.

Revert "Add support for sending VSYNC events to the framework"

This reverts commit f3918c5bd4bc9f02f74da42995564150ca2dd382.

Change-Id: I998e3e1aa3fa310829ae973b64fe11b01f6f468f
ui/Android.mk
ui/ISurfaceComposer.cpp
2d8be1d848e6b3e4ea756ce0da9c1da60f79989b 29-Nov-2011 Mathias Agopian <mathias@google.com> am aa2892ed: Merge changes If4126023,Iacda2386,I1eb691f7,Ib56139f8

* commit 'aa2892edc7bb2b915771679d9811ec54a26db366':
Add support for sending VSYNC events to the framework
BitTube::read now handles EAGAIN
split ComposerService out of SurfaceComposerClient.h
rewrite SF's message loop on top of Looper
aa2892edc7bb2b915771679d9811ec54a26db366 29-Nov-2011 Mathias Agopian <mathias@google.com> Merge changes If4126023,Iacda2386,I1eb691f7,Ib56139f8

* changes:
Add support for sending VSYNC events to the framework
BitTube::read now handles EAGAIN
split ComposerService out of SurfaceComposerClient.h
rewrite SF's message loop on top of Looper
f3918c5bd4bc9f02f74da42995564150ca2dd382 18-Nov-2011 Mathias Agopian <mathias@google.com> Add support for sending VSYNC events to the framework

use gui/DisplayEvent to receive the events. Events are
dispatched through a unix pipe, so the API is compatible
with utils/Looper. see gui/DisplayEvent.h for more info.

Bug: 1475048
Change-Id: If4126023fc9c067e56087ec7d16a8fd542ce1794
ui/Android.mk
ui/ISurfaceComposer.cpp
bb9ba8bae551305acba4f60577b0f461a9421bc5 29-Nov-2011 Mathias Agopian <mathias@google.com> BitTube::read now handles EAGAIN

Change-Id: Iacda2386342ba0727bbf278f6c597488d5467bb8
ui/BitTube.cpp
c4e6f8bd53b479d832883e985ed0b6ed0ed4db72 29-Nov-2011 Romain Guy <romainguy@google.com> am cb52d676: am 02e88f23: am 46685db9: Merge "Fix crash in existing applications Bug #5659476" into ics-mr1

* commit 'cb52d6760078197cd6d0c16349348dd2ad16a88c':
Fix crash in existing applications Bug #5659476
cb52d6760078197cd6d0c16349348dd2ad16a88c 29-Nov-2011 Romain Guy <romainguy@google.com> am 02e88f23: am 46685db9: Merge "Fix crash in existing applications Bug #5659476" into ics-mr1

* commit '02e88f23a65c602e83d7a46c0925e653b948e418':
Fix crash in existing applications Bug #5659476
46685db957cc01cef4ba198aafe44d99fe31f62c 29-Nov-2011 Romain Guy <romainguy@google.com> Merge "Fix crash in existing applications Bug #5659476" into ics-mr1
40e38e36fa672902ea72873a77286e15b5b2f6bd 29-Nov-2011 Chet Haase <chet@google.com> am d3ea6b40: am 38928899: am 8990cb57: Merge "Fix flashing wifi dialog after rotating back from landscape." into ics-mr1

* commit 'd3ea6b40bb8f0fbc2a877963db1ab4fa0fc02b2f':
Fix flashing wifi dialog after rotating back from landscape.
d3ea6b40bb8f0fbc2a877963db1ab4fa0fc02b2f 29-Nov-2011 Chet Haase <chet@google.com> am 38928899: am 8990cb57: Merge "Fix flashing wifi dialog after rotating back from landscape." into ics-mr1

* commit '3892889952b0ad3fa0b095c96d8ae2ae110585e2':
Fix flashing wifi dialog after rotating back from landscape.
3f15700a012b1ab0097eaf90caf0540ba6caa529 18-Nov-2011 Mathias Agopian <mathias@google.com> split ComposerService out of SurfaceComposerClient.h

Change-Id: I1eb691f7ca263d5895d871ab675bb5826e0323c6
ui/SurfaceComposerClient.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
ui/tests/Surface_test.cpp
08837c246c9c27902c59b41c8661c2f27a4aa2bc 28-Nov-2011 Chet Haase <chet@google.com> Fix flashing wifi dialog after rotating back from landscape.

There was an error in some of the OpenGL layer logic such that we would
occasionally set up a layer for rendering and then not clean up when it was
done. This caused future OpenGL rendering to go into that layer instead of
to the buffers being displayed on the screen, resulting in artifacts including
flashes and displaying of stale content. This happened specifically when
using the wifi settings dialog with the InputMethod keyboard displayed,
but it was probably visible in other situations as well.

Issue #5628248: Flickering/flashing after entering password for WiFi

Change-Id: I38139f620b310f4309570fa7224552d2ee633999
wui/OpenGLRenderer.cpp
ff98fa5a847f66e591287154c634ef7895a9549c 28-Nov-2011 Romain Guy <romainguy@google.com> Fix crash in existing applications
Bug #5659476

The FontRenderer was not cleaning up its temporary state, leading
to crashes when invoking renderDropShadow.

Change-Id: I43b24820dd5625af8c080bbe11b64de2f74164b2
wui/FontRenderer.cpp
0e05b118033236ecfcd509a12e1442841ca91070 27-Nov-2011 Logan Chien <loganchien@google.com> am 12be3fff: Remove dead code.

* commit '12be3fff12e5c55193867f49e13169b9400b2997':
Remove dead code.
12be3fff12e5c55193867f49e13169b9400b2997 27-Nov-2011 Logan Chien <loganchien@google.com> Remove dead code.

Change-Id: I2838a40026291e7345b07911af3ba17278b63ffe
s/driver/rsdBcc.cpp
s/rsScript.h
de9a048440054161ed5005f4c58a39f9ec1f409a 24-Nov-2011 Jeff Brown <jeffbrown@google.com> am 8a743d90: Merge "Add a basic hashtable data structure, with tests!"

* commit '8a743d90a973e4fcf52093f2a89a5c049b626480':
Add a basic hashtable data structure, with tests!
8a743d90a973e4fcf52093f2a89a5c049b626480 24-Nov-2011 Jeff Brown <jeffbrown@google.com> Merge "Add a basic hashtable data structure, with tests!"
67b36f13e2b4c3f49c3535f07bb82ffc01e4c374 24-Nov-2011 Jason Sams <jsams@google.com> Merge "Private API to support MFF transition." into graphics-dev
857d0c7017da763a420e825fffa2f260eb982c97 24-Nov-2011 Jason Sams <jsams@google.com> Private API to support MFF transition.

Change-Id: I17cc9dc46eb37e4397428ba64305b0fd8ed3ae81
s/driver/rsdAllocation.cpp
s/rs.spec
s/rsAllocation.cpp
s/rsAllocation.h
eb3d611acf49a823f3c3b956cb142fcac3bb6b06 23-Nov-2011 Stephen Hines <srhines@google.com> am e7d17220: Merge "Add support for handling a bitcode wrapper to librs."

* commit 'e7d17220be8e20523ffd1c9855f3d389d9ef22ee':
Add support for handling a bitcode wrapper to librs.
e7d17220be8e20523ffd1c9855f3d389d9ef22ee 23-Nov-2011 Stephen Hines <srhines@google.com> Merge "Add support for handling a bitcode wrapper to librs."
09ee7c80eabe0d92119ea0ffff949109602b5833 23-Nov-2011 Stephen Hines <srhines@google.com> Add support for handling a bitcode wrapper to librs.

BUG=5425905

Change-Id: I75676060703df6d9043b287fea900c4379455ee2
s/rsScriptC.cpp
9d61edcc0fd960f227aa0c4b8e20b05dea2aca19 15-Nov-2011 Jeff Brown <jeffbrown@google.com> Add a basic hashtable data structure, with tests!

The basic hashtable is intended to be used to support a variety
of different datastructures such as map, set, multimap,
multiset, linkedmap, generationcache, etc.

Consequently its interface is fairly primitive.

The basic hashtable supports copy-on-write style functionality
using SharedBuffer.

The change introduces a simple generic function in TypeHelpers for
specifying hash functions. The idea is to add template
specializations of hash_type<T> next to the relevant data structures
such as String8, String16, sp<T>, etc.

Change-Id: I2c479229e9d4527b4fbfe3b8b04776a2fd32c973
tils/Android.mk
tils/BasicHashtable.cpp
tils/primes.py
tils/tests/Android.mk
tils/tests/BasicHashtable_test.cpp
78af992929af919d3449ab6e58b791f125e16f62 23-Nov-2011 Robert Ly <robertly@google.com> am b1e72b68: Merge "add overview description for RS API reference"

* commit 'b1e72b6826455a19a80dab14612da7f22e0e1a75':
add overview description for RS API reference
b1e72b6826455a19a80dab14612da7f22e0e1a75 23-Nov-2011 Robert Ly <robertly@google.com> Merge "add overview description for RS API reference"
60d9fa279f09e6c26fd9884f7e22ae50da87af2f 23-Nov-2011 Jason Sams <rjsams@android.com> am 7e254a37: Merge "Fix script init error handling."

* commit '7e254a37d0beb1fe307ca45617fbe7cc394d275f':
Fix script init error handling.
dd39fdfe99a08b0bbb03eba8f32cad4018271def 22-Nov-2011 Jason Sams <rjsams@android.com> Fix script init error handling.

Change-Id: I7ceb0af4dfd12db0274985ff658f678d7af829ff
s/rsScript.cpp
s/rsScript.h
s/rsScriptC.cpp
84cbe15c23d1bb314f0f28f8c5667e5ffa462519 22-Nov-2011 Jeff Brown <jeffbrown@google.com> am ec99c62e: Merge "Use libcorkscrew to format the stack trace."

* commit 'ec99c62e8b7c223c86a89008219be6c78f14eab8':
Use libcorkscrew to format the stack trace.
ec99c62e8b7c223c86a89008219be6c78f14eab8 22-Nov-2011 Jeff Brown <jeffbrown@google.com> Merge "Use libcorkscrew to format the stack trace."
1cbc954cb0f1617fd791adf27f63cd505ca9cdda 22-Nov-2011 Romain Guy <romainguy@google.com> am c28e5740: am a2fabf4a: am 303a0695: Merge "Draw in the correct FBO after invoking a GL functor Bug #5650514" into ics-mr1

* commit 'c28e574037b2bfc8c2ea24593299aa20ae9078f8':
Draw in the correct FBO after invoking a GL functor Bug #5650514
c28e574037b2bfc8c2ea24593299aa20ae9078f8 22-Nov-2011 Romain Guy <romainguy@google.com> am a2fabf4a: am 303a0695: Merge "Draw in the correct FBO after invoking a GL functor Bug #5650514" into ics-mr1

* commit 'a2fabf4a109d46f99ff7370aa05e48c1708c2838':
Draw in the correct FBO after invoking a GL functor Bug #5650514
303a0695b8fa0b8f0095c437145a28633a7a8d92 22-Nov-2011 Romain Guy <romainguy@google.com> Merge "Draw in the correct FBO after invoking a GL functor Bug #5650514" into ics-mr1
77228be41788c1fc582e195d9b17f5eeb58ef6e9 22-Nov-2011 Robert Ly <robertly@google.com> add overview description for RS API reference

Change-Id: Id5554c607ad4c435f92bfa939e4ce4833a638f62
s/scriptc/rs_allocation.rsh
a30fc7ce939b681cf560ee4a4a9cbe2d283777f6 22-Nov-2011 Mathias Agopian <mathias@google.com> am 4c6d112c: am cc4d02e0: am 07a2d831: Merge "don\'t report an error when disconnecting from an abandoned surfacetexture" into ics-mr1

* commit '4c6d112c169412d69702b65e54a3a788a55fd7d8':
don't report an error when disconnecting from an abandoned surfacetexture
e386936fb5b7eac75b73a8ca737800d9fc2e6ce0 22-Nov-2011 Mathias Agopian <mathias@google.com> am 29c18ca5: am 8390cf39: am 8646cd42: Merge "enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices" into ics-mr1

* commit '29c18ca579f95716719d7664e037580725f3a519':
enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices
dea3114b19b11f5216ab66539d9558bdfa2c64d2 22-Nov-2011 Jamie Gennis <jgennis@google.com> am 07f062b6: am c2597295: am 53cf2020: Merge changes I37fd43b5,I91eb29db,I0491ce35 into ics-mr1

* commit '07f062b6271e7ec820d1079566e7451a9cf55558':
SurfaceTexture: fix a couple tests
EGL: default to swap interval 1
SurfaceTexture: clean up some tests
4c6d112c169412d69702b65e54a3a788a55fd7d8 22-Nov-2011 Mathias Agopian <mathias@google.com> am cc4d02e0: am 07a2d831: Merge "don\'t report an error when disconnecting from an abandoned surfacetexture" into ics-mr1

* commit 'cc4d02e0cbb99341a0508838c88eeef53180fdfd':
don't report an error when disconnecting from an abandoned surfacetexture
29c18ca579f95716719d7664e037580725f3a519 22-Nov-2011 Mathias Agopian <mathias@google.com> am 8390cf39: am 8646cd42: Merge "enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices" into ics-mr1

* commit '8390cf39f8a4f74f7baa91d23cba06894a3fb9b5':
enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices
07f062b6271e7ec820d1079566e7451a9cf55558 22-Nov-2011 Jamie Gennis <jgennis@google.com> am c2597295: am 53cf2020: Merge changes I37fd43b5,I91eb29db,I0491ce35 into ics-mr1

* commit 'c25972950c2ea62fb085524dbe737c2bf0f08f4a':
SurfaceTexture: fix a couple tests
EGL: default to swap interval 1
SurfaceTexture: clean up some tests
38a931fcd3e3d5f16082fe41317f427f25b8d279 22-Nov-2011 Jeff Brown <jeffbrown@google.com> Use libcorkscrew to format the stack trace.

Change-Id: I3a5439ada76bc77c2dd491eaed2272e16a811cc7
tils/CallStack.cpp
07a2d831903774e07c1c6b6dd5c7c06bf8ca176a 22-Nov-2011 Mathias Agopian <mathias@google.com> Merge "don't report an error when disconnecting from an abandoned surfacetexture" into ics-mr1
8646cd42df5edc5f5b9c52d6ab5309821e875656 22-Nov-2011 Mathias Agopian <mathias@google.com> Merge "enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices" into ics-mr1
421458aad764cd9d1403d2540ab979b336b02341 22-Nov-2011 Romain Guy <romainguy@google.com> Draw in the correct FBO after invoking a GL functor
Bug #5650514

After invoking a GL functor, libhwui restores a few OpenGL states
including the current FBO. The renderer was however making the
wrong assumption that the FBO to restore to was the base layer
instead of the FBO associated with the current canvas state.

Change-Id: Ie565500832ebffd673f6a43b83422d6cc05470a0
wui/OpenGLRenderer.cpp
wui/Snapshot.h
caa4482a6880d81281dc2d312aeb515a3af3f0a1 20-Nov-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: fix a couple tests

This change fixes some robustness issues with the
EglDestroySurfaceUnrefsBuffers and
EglDestroySurfaceAfterAbandonUnrefsBuffers tests. The tests previously
depended upon GL implementation details that should not have been relied
upon.

Change-Id: I37fd43b56568efe1dbe69d85e892be8a1cf44d20
ui/tests/SurfaceTexture_test.cpp
87f3265bb082160efdfdfb87a79698c67ebad447 20-Nov-2011 Jamie Gennis <jgennis@google.com> EGL: default to swap interval 1

This change explicitly sets swap interval 1 on the window when an
EGLSurface is created to render to it.

Change-Id: I91eb29dbee3ae4a55076b921f084d503fbe94e03
ui/SurfaceTexture.cpp
ui/tests/SurfaceTexture_test.cpp
c10a94c4b8b42ef75168ad140fdb97d6cca3d2eb 20-Nov-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: clean up some tests

This change cleans a few things up in the SurfaceTexture tests:
- Wraps a few long lines.
- Refactors the multithreading portions of SurfaceTextureGLToGLTest into
a new test fixture called SurfaceTextureGLThreadToGLTest.
- Changes some of the tests that were creating their own EGLSurface to
use the SurfaceTextureGLToGLTest fixture.
- Reorders the test functions so that they are immediately below to the
test fixture that they use.

Change-Id: I0491ce3528a7ff2b4f1e83602ba290269c087297
ui/tests/SurfaceTexture_test.cpp
f1eb1a83770b741456f89e53a9b595789797aeb2 19-Nov-2011 Mathias Agopian <mathias@google.com> am 36bd710a: am d0df44b5: am 4d71053b: Merge "attempt to fix bug 5313580" into ics-mr1

* commit '36bd710a6094282c8f9a6083c3b09911bf8a5ac7':
attempt to fix bug 5313580
36bd710a6094282c8f9a6083c3b09911bf8a5ac7 19-Nov-2011 Mathias Agopian <mathias@google.com> am d0df44b5: am 4d71053b: Merge "attempt to fix bug 5313580" into ics-mr1

* commit 'd0df44b5c979e00a19187cea35768ba26557e447':
attempt to fix bug 5313580
b05bb17eebe631637cf9fa3af00758e8159d6e8d 18-Nov-2011 Mathias Agopian <mathias@google.com> don't report an error when disconnecting from an abandoned surfacetexture

this happens often with CPU Surfaces, which disconnect long
after their surfacetexture has been abandoned.

Change-Id: If49da03b72f99130e01b2b9bcbd444bb38f7ed4e
ui/SurfaceTexture.cpp
e2fa30cba0c3412d07214dec346bb21a562d3461 15-Nov-2011 Mathias Agopian <mathias@google.com> enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices

this flag should be enabled for all targets, but currently
some have issues with it, so we're turning it on only for
tested targets.

this will hopefully resolve some performance issues.

Bug: 5553562, 5631630
Change-Id: I54c7a9e2068586898ab13e405d95534669260537
ui/Android.mk
ui/SurfaceTexture.cpp
4d71053b0728b248d80d7d5a098df459722e2be0 18-Nov-2011 Mathias Agopian <mathias@google.com> Merge "attempt to fix bug 5313580" into ics-mr1
c6e191941751f342fbef99334b23b2a3dc406280 18-Nov-2011 Jamie Gennis <jgennis@google.com> am 892a9d67: am 9da22d2c: am 2ba13186: Merge "SurfaceTexture: fix a bug with buffer reallocation" into ics-mr1

* commit '892a9d674db33586719f98df5c9a0a44769ebd54':
SurfaceTexture: fix a bug with buffer reallocation
892a9d674db33586719f98df5c9a0a44769ebd54 18-Nov-2011 Jamie Gennis <jgennis@google.com> am 9da22d2c: am 2ba13186: Merge "SurfaceTexture: fix a bug with buffer reallocation" into ics-mr1

* commit '9da22d2cc31069d86a92021d8540bb5a77c9591b':
SurfaceTexture: fix a bug with buffer reallocation
90cbbd1f7f510e7c173f706919492a95e91a87e7 18-Nov-2011 Mathias Agopian <mathias@google.com> attempt to fix bug 5313580

the working theory here is that a Surface object has become non-promotable
because it lost its last reference; later Surface::readFromParcel is called
the previous surface is found in the cache, but can't be promoted. this causes
a new Surface object to be created which will promptly try to connect to the
CPU_API -- this in turn will fail because the previous (now dead) surface is
still connected.

To fix this, we make sure to disconnect from the SurfaceTexture when
Surface[TextureClient] is destroyed.

Change-Id: I422234868a05d7b7d283e9d5a85f7ab79e65d8a9
ui/SurfaceTextureClient.cpp
2ba13186b268de3527af6da1933a4b65877548d9 18-Nov-2011 Jamie Gennis <jgennis@google.com> Merge "SurfaceTexture: fix a bug with buffer reallocation" into ics-mr1
e36d05483fa525be1c98dbf98ac3d6244e6cdb47 18-Nov-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: fix a bug with buffer reallocation

This change fixes an issue involving buffer reallocation and the
ALLOW_DEQUEUE_CURRENT_BUFFER mode in SurfaceTexture. The bug happened
when the buffer slot currently attached to the GL texture was selected
for dequeuing, but the dequeue operation caused the buffer to be
reallocated. Because the buffer is new, the image producer could fill
the buffer and queue it before an updateTexImage call, which would
result in the "slot %d is current" error in queueBuffer.

Bug: 5631630
Change-Id: Icdd8bc5cad3c7db43953446d9be2603aaea11a8d
ui/SurfaceTexture.cpp
7b78d1a57a6602a5861092015b8a5708ec75aef8 18-Nov-2011 Alex Sakhartchouk <alexst@google.com> Revert "Removing changes not meant for MR1"

This reverts commit d97fd1d7c37e45c7f4c7ee89c3f70b961fa05428.
s/scriptc/rs_graphics.rsh
6b1a981c4b7176d10e3e435ef20521483ed200f3 17-Nov-2011 Alex Sakhartchouk <alexst@google.com> am 50445568: Merge "Fixing FBO font rendering bug that resulted from using old surface size."

* commit '5044556861af496d6451aef3f69a4df0d1b591c9':
Fixing FBO font rendering bug that resulted from using old surface size.
5044556861af496d6451aef3f69a4df0d1b591c9 17-Nov-2011 Alex Sakhartchouk <alexst@google.com> Merge "Fixing FBO font rendering bug that resulted from using old surface size."
b1fcce962cda479cee9c6b7105c954393df81deb 17-Nov-2011 Mathias Agopian <mathias@google.com> am 905a12a9: am abdade71: am 69c17a11: Merge "Revert "enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices"" into ics-mr1

* commit '905a12a949e779b50ad7ab0d69047b6e047ad7b8':
Revert "enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices"
905a12a949e779b50ad7ab0d69047b6e047ad7b8 17-Nov-2011 Mathias Agopian <mathias@google.com> am abdade71: am 69c17a11: Merge "Revert "enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices"" into ics-mr1

* commit 'abdade71bc17153696fe2abe281c5a3b0c2e5abe':
Revert "enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices"
448ecbd009d65938b8c5b442177186e5153d0af3 17-Nov-2011 Jamie Gennis <jgennis@google.com> am 04dd4dea: am 7765fc65: am fd6b64f6: Merge "SurfaceTexture: Fix to return the oldest of free buffers to Client on Dequeue call" into ics-mr1

* commit '04dd4deafdbde8e4a9d12745e3d4a886ef8769f4':
SurfaceTexture: Fix to return the oldest of free buffers to Client on Dequeue call
04dd4deafdbde8e4a9d12745e3d4a886ef8769f4 17-Nov-2011 Jamie Gennis <jgennis@google.com> am 7765fc65: am fd6b64f6: Merge "SurfaceTexture: Fix to return the oldest of free buffers to Client on Dequeue call" into ics-mr1

* commit '7765fc651a9519dd2f0ac9d3374a50e9865c5c99':
SurfaceTexture: Fix to return the oldest of free buffers to Client on Dequeue call
69c17a11a2ce5badc238e66ce9f8ca4a3a1028b3 17-Nov-2011 Mathias Agopian <mathias@google.com> Merge "Revert "enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices"" into ics-mr1
db5494c4067c8f5cc4aa4fc2ceeca0cf673349ac 17-Nov-2011 Mathias Agopian <mathias@google.com> Revert "enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices"

This reverts commit e7758be6da85728df6b4215f413660c67c5a9740.

Seemed to cause failures un SurfaceTexture.

Bug: 5627450
ui/Android.mk
ui/SurfaceTexture.cpp
2d8ef49914595f3f1df42fed0a9ae68777ff9411 16-Nov-2011 Alex Sakhartchouk <alexst@google.com> Fixing FBO font rendering bug that resulted from using old surface size.

Change-Id: I31d0967bb36ca6ffb6a4c8194597d3c523cfe954
s/rsContext.cpp
s/rsContext.h
s/rsFont.cpp
s/rsFont.h
s/rsProgramVertex.cpp
s/rsScriptC_LibGL.cpp
fd6b64f6ad040b4d550a5219a2576997e2c0e85d 16-Nov-2011 Jamie Gennis <jgennis@google.com> Merge "SurfaceTexture: Fix to return the oldest of free buffers to Client on Dequeue call" into ics-mr1
af9dcfe641486f6bafbd44d330f6db74c06ea1dc 16-Nov-2011 Alex Sakhartchouk <alexst@google.com> am 5a471818: Merge "Expand RS vector3 types to vector4."

* commit '5a4718183340a108b55eba7bf755b4432153caa1':
Expand RS vector3 types to vector4.
5a4718183340a108b55eba7bf755b4432153caa1 16-Nov-2011 Alex Sakhartchouk <alexst@google.com> Merge "Expand RS vector3 types to vector4."
3ed7b7a73f8ef8c2131d2015adef68b92b8d7455 16-Nov-2011 Jeff Brown <jeffbrown@google.com> am 221096fd: am 4c0e0dd2: am 3e7497b4: Merge "Eliminate hw.keyboards system properties." into ics-mr1

* commit '221096fdd6963a0f7090b928cfb92b9267f32d7a':
Eliminate hw.keyboards system properties.
221096fdd6963a0f7090b928cfb92b9267f32d7a 16-Nov-2011 Jeff Brown <jeffbrown@google.com> am 4c0e0dd2: am 3e7497b4: Merge "Eliminate hw.keyboards system properties." into ics-mr1

* commit '4c0e0dd29dcce33e7521b11d01d21d9431f3b264':
Eliminate hw.keyboards system properties.
3e7497b4eccd3db1d6ff0ce1f1f2db11f9a8eeef 16-Nov-2011 Jeff Brown <jeffbrown@google.com> Merge "Eliminate hw.keyboards system properties." into ics-mr1
1e08fe90df18930691b0c2ec22e5db25d7fcb4cf 16-Nov-2011 Jeff Brown <jeffbrown@google.com> Eliminate hw.keyboards system properties.

Stop using system properties to publish information about
the key character map path. Instead, we can retrieve it
on demand by asking the window manager.

It was possible to exhaust the supply of system properties
when repeatedly adding and removing input devices.

Bug: 5532806
Change-Id: Idd361a24ad7db2edc185c8546db7fb05f9c28669
i/KeyCharacterMap.cpp
i/Keyboard.cpp
e60149d2277da53c4a681b7f3971cf13cd4b012b 16-Nov-2011 Alex Sakhartchouk <alexst@google.com> Expand RS vector3 types to vector4.

BUG=5609007

The underlying LLVM implementation for vector3 types does this implicitly. If
RS does not adjust its implementation, we will always be misaligned for any
subsequent data after a vector3 type. We previously inserted padding into the
reflected layers from llvm-rs-cc (hence the skip padding part of this change).
We can safely ignore the padding now that the Java/native code is updated to
use the expanded size. The compiler will also need modification to ensure that
we don't mistakenly skip over any end-of-struct padding.

Fixing the 3 component vector padding problem.

Change-Id: If68af42287deb8f4b28addcd19a9fa314656be44
s/rsAllocation.cpp
s/rsAllocation.h
s/rsComponent.cpp
s/rsComponent.h
s/rsElement.cpp
s/rsElement.h
s/rsFont.cpp
9abba4c9b1d24b6cfc667f12976671a01adce425 15-Nov-2011 Mathias Agopian <mathias@google.com> am 1fea891f: am 556a406c: am 3aa684ec: Merge "enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices" into ics-mr1

* commit '1fea891f0099a554c9402675bf4ce8f9ef2cac13':
enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices
1fea891f0099a554c9402675bf4ce8f9ef2cac13 15-Nov-2011 Mathias Agopian <mathias@google.com> am 556a406c: am 3aa684ec: Merge "enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices" into ics-mr1

* commit '556a406cf4dd8a7faa318e0d522d899f8b9da7dc':
enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices
f1e868f68204bf469a0c162b84af0e651d513ac8 10-Nov-2011 Sunita Nadampalli <sunitan@ti.com> SurfaceTexture: Fix to return the oldest of free buffers to Client on Dequeue call

Surface Texture dequeue logic is modified to return the oldest of the
free buffers to Client on dequeue call.

Currently dequeue method is returning the first buffer index which is free.
The parsing is done in ascending order of the buffer slot indices.
This leads to returning the buffer which has been just queued to composer,
and hence display, and this defeats the purpose of having minimum dequeue count
as 2 in asynchrnouse mode.

This is fixed by checking all the free slots and returning the oldest buffer.

Change-Id: Ibbac10593c3994c278c601af0480b171635ecdd4
Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
ui/SurfaceTexture.cpp
f0e5e257943f6eca824412960df56975ddec82a2 15-Nov-2011 Jeff Brown <jeffbrown@google.com> am bf677de4: Merge "Clean up GenerationCache."

* commit 'bf677de46a039e07038511909576bfbf4406f7fd':
Clean up GenerationCache.
2b22f8599a39df770e7d9a486292ce1e8aef52a9 15-Nov-2011 Dave Burke <daveburke@google.com> am 28a5ec96: am 2cfb873c: am 9d66da8a: Merge "Revert "Discard framebuffer rendering queues when discarding layers"" into ics-mr1

* commit '28a5ec9613a824d2ec15ce5e5cec77a6fcf444d5':
Revert "Discard framebuffer rendering queues when discarding layers"
e13c5c1777a6c0403519e146c9635e6574c36831 15-Nov-2011 Mathias Agopian <mathias@google.com> am d8fa1ad4: am 738d8cae: am c93a151f: Merge "Define, document, and test the behavior of very large SurfaceTextures" into ics-mr1

* commit 'd8fa1ad4523b6c04cab663ff4b65181fc00594d9':
Define, document, and test the behavior of very large SurfaceTextures
e7758be6da85728df6b4215f413660c67c5a9740 15-Nov-2011 Mathias Agopian <mathias@google.com> enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices

this flag should be enabled for all targets, but currently
some have issues with it, so we're turning it on only for
tested targets.

this will hopefully resolve some performance issues.

Bug: 5553562
Change-Id: I939992b4cd0debea980dec0127c72be2dff33af8
ui/Android.mk
ui/SurfaceTexture.cpp
bf677de46a039e07038511909576bfbf4406f7fd 15-Nov-2011 Jeff Brown <jeffbrown@google.com> Merge "Clean up GenerationCache."
28a5ec9613a824d2ec15ce5e5cec77a6fcf444d5 14-Nov-2011 Dave Burke <daveburke@google.com> am 2cfb873c: am 9d66da8a: Merge "Revert "Discard framebuffer rendering queues when discarding layers"" into ics-mr1

* commit '2cfb873c9f0b56f2c7d694a21c968511223933af':
Revert "Discard framebuffer rendering queues when discarding layers"
9d66da8ae61a8520f46ee7df3cbb374852d9da91 14-Nov-2011 Dave Burke <daveburke@google.com> Merge "Revert "Discard framebuffer rendering queues when discarding layers"" into ics-mr1
d8fa1ad4523b6c04cab663ff4b65181fc00594d9 14-Nov-2011 Mathias Agopian <mathias@google.com> am 738d8cae: am c93a151f: Merge "Define, document, and test the behavior of very large SurfaceTextures" into ics-mr1

* commit '738d8cae2239d194429676f2889cfae3c8f7ba08':
Define, document, and test the behavior of very large SurfaceTextures
c93a151fde7d616c22b86ae458b3d015e3820d5e 14-Nov-2011 Mathias Agopian <mathias@google.com> Merge "Define, document, and test the behavior of very large SurfaceTextures" into ics-mr1
7077506f9945b87b02bdd47ffce75a5b813c821c 14-Nov-2011 Dave Burke <daveburke@google.com> Revert "Discard framebuffer rendering queues when discarding layers"

This reverts commit da96f8ac2c1c35a54f3f36e6d776cb386a251d03.
wui/Android.mk
wui/Extensions.h
wui/LayerRenderer.cpp
wui/LayerRenderer.h
wui/OpenGLRenderer.cpp
ce5b9c2399c565a160cf0e9f3cdd7b4a7000b498 14-Nov-2011 Mathias Agopian <mathias@google.com> am 3f511aaf: am a16ee939: am 28587497: Merge "Discard framebuffer rendering queues when discarding layers Bug #5581817" into ics-mr1

* commit '3f511aaf1cb9dfa69e2f4225a5bd41bec0864cc7':
Discard framebuffer rendering queues when discarding layers Bug #5581817
3f511aaf1cb9dfa69e2f4225a5bd41bec0864cc7 14-Nov-2011 Mathias Agopian <mathias@google.com> am a16ee939: am 28587497: Merge "Discard framebuffer rendering queues when discarding layers Bug #5581817" into ics-mr1

* commit 'a16ee9390e1fcea8ff7cbefd253659c37f2999a3':
Discard framebuffer rendering queues when discarding layers Bug #5581817
d9e688cab3015d858110fb8240cf7378c6befd82 12-Nov-2011 Jeff Brown <jeffbrown@google.com> Clean up GenerationCache.

Use const references to keys and values where appropriate to avoid
copying them unnecessarily.

Deleted some dead code.

Simplified a few pieces that were doing unnecessary redundant work.

Change-Id: Ib2145b7094a40db2d679e05dafe050fe1e87b846
wui/PathCache.cpp
b89d88f531ee39927f8f554baaae5ecc9101ba9d 10-Nov-2011 Mathias Agopian <mathias@google.com> Define, document, and test the behavior of very large SurfaceTextures

updateTexImage() now throws a runtime exception when its native
counterpart fails

Bug: 5506633

Change-Id: I151a6f685d465966e7df4df624412ab2da62e95f
ui/tests/SurfaceTexture_test.cpp
182a6da22f9b9e1ad18cc6c4d9e3f3c8ea6e2db1 12-Nov-2011 Akwasi Boateng <akwasi.boateng@ti.com> am 1333742b: am cb0db030: Merge branch \'ics-mr1-plus-aosp\' of ssh://android-git:29418/platform/frameworks/base into ics-mr1-plus-aosp

* commit '1333742bedc9b462024302f302e3a7f27053df66':
Make the overridden ImageView#setVisibility remotable
Clamp non-monotonic stats instead of dropping.
DO NOT MERGE. Fix leak in LayoutTransition
Fix lastVisible/global rects
Fix Wimax-less build.
Fix leak in LayoutTransition
Deferring wallpaper update to improve workspace scrolling (issue 5506959)
Terminate EGL when an app goes in the background
boot animation is dithered and scaled
Fix NdefRecord byte-stream constructor.
PopupWindow dismiss() can get into a recursive loop.
Fold WiMAX state into the mobile RSSI.
Remove dedicated wimax icon to fix RSSI layout.
ae011d96b1f11494f10e4c53ff22bfd17bb9d8a3 12-Nov-2011 Stephen Hines <srhines@google.com> am 09060056: Merge "Fix setTimeZone() and use it properly in RSTest/rstime."

* commit '0906005662ac6a28c34171275c0e500198640379':
Fix setTimeZone() and use it properly in RSTest/rstime.
1333742bedc9b462024302f302e3a7f27053df66 11-Nov-2011 Akwasi Boateng <akwasi.boateng@ti.com> am cb0db030: Merge branch \'ics-mr1-plus-aosp\' of ssh://android-git:29418/platform/frameworks/base into ics-mr1-plus-aosp

* commit 'cb0db0306b5849a35d3d99eea1b34ce019c6f0d8':
Make the overridden ImageView#setVisibility remotable
Clamp non-monotonic stats instead of dropping.
DO NOT MERGE. Fix leak in LayoutTransition
Fix lastVisible/global rects
Fix Wimax-less build.
Fix leak in LayoutTransition
Deferring wallpaper update to improve workspace scrolling (issue 5506959)
Terminate EGL when an app goes in the background
boot animation is dithered and scaled
Fix NdefRecord byte-stream constructor.
PopupWindow dismiss() can get into a recursive loop.
Fold WiMAX state into the mobile RSSI.
Remove dedicated wimax icon to fix RSSI layout.
da96f8ac2c1c35a54f3f36e6d776cb386a251d03 11-Nov-2011 Romain Guy <romainguy@google.com> Discard framebuffer rendering queues when discarding layers
Bug #5581817

Change-Id: If612846ec5f7793710fc4df152791fb32c506551
wui/Android.mk
wui/Extensions.h
wui/LayerRenderer.cpp
wui/LayerRenderer.h
wui/OpenGLRenderer.cpp
8ff6b9ebeeb24a6161ec6098e6bfdf8790ee5695 10-Nov-2011 Romain Guy <romainguy@google.com> Terminate EGL when an app goes in the background

This does not happen on high end gfx devices. This happens
only if only one EGL context is initialized in the current
process.

Change-Id: Ibd1737efdf84eef8a84108b05795440d1ae9964e
wui/Caches.cpp
wui/Caches.h
d2f561d183f6f2aab19cd8552d83b32cbc7fa5be 10-Nov-2011 Stephen Hines <srhines@google.com> Fix setTimeZone() and use it properly in RSTest/rstime.

BUG=5470134

The original implementation for rsi_ScriptSetTimeZone() never actually did
anything with the bytes received. This change allows it to safely update the
timezone. RSTest is also updated to call setTimeZone(), so that users in
different timezones can accurately get test results.

Change-Id: I6cb1b3a0c3a417749ba39e0fe09cc9c7ab65c2e7
s/rsScript.cpp
s/rsScript.h
f15ed0124ea7f7f87e4188a1dd15cc4917a62ee9 31-Oct-2011 Jason Sams <rjsams@android.com> Path rendering

Change-Id: I5379a676c9ec6a9b25f21bc1e050053f27e411dd
s/Android.mk
s/RenderScriptDefines.h
s/driver/rsdCore.cpp
s/driver/rsdPath.cpp
s/driver/rsdPath.h
s/driver/rsdRuntimeStubs.cpp
s/rs.spec
s/rsContext.h
s/rsPath.cpp
s/rsPath.h
s/rsRuntime.h
s/rsScriptC_LibGL.cpp
s/rs_hal.h
s/scriptc/rs_graphics.rsh
s/scriptc/rs_object.rsh
s/scriptc/rs_types.rsh
df4ee721cbb3d33879be1ca09017710abd20a9ed 05-Nov-2011 Jeff Brown <jeffbrown@google.com> Fix possible leak in Parcel::writeDupFileDescriptor.

Also, check the result of dup() just in case we got EMFILE
or something.

Change-Id: I18e627bd84f4c7941813fe1c2bad2cdd9e5afa83
inder/Parcel.cpp
bd79a9c9f39482b3a9560d03cb045ec4e3b87486 07-Nov-2011 Jeff Brown <jeffbrown@google.com> am 88061d6b: am 5462bc63: Fix a leak in Parcel::writeBlob.

* commit '88061d6b38cfb4bf374039846b753a3b21ac61e1':
Fix a leak in Parcel::writeBlob.
9039e43ab1edac9e81f1308a7f3380cff4e9fa27 05-Nov-2011 Romain Guy <romainguy@google.com> am 2ccc47b8: Merge "Memory optimizations for libhwui Bug #5566149" into ics-mr1

* commit '2ccc47b89868d4f39683e0e2bd057ce95d7d1217':
Memory optimizations for libhwui Bug #5566149
06ab9875c19b36ed24a21310ca5dec3ada2a6b7b 05-Nov-2011 Jeff Brown <jeffbrown@google.com> Merge "Slight change to the unwinder API."
88061d6b38cfb4bf374039846b753a3b21ac61e1 05-Nov-2011 Jeff Brown <jeffbrown@google.com> am 5462bc63: Fix a leak in Parcel::writeBlob.

* commit '5462bc6318b4b70e7a58c66994e2bd79f59d9739':
Fix a leak in Parcel::writeBlob.
5462bc6318b4b70e7a58c66994e2bd79f59d9739 05-Nov-2011 Jeff Brown <jeffbrown@google.com> Fix a leak in Parcel::writeBlob.

Was mistakenly assuming that Parcel::writeFileDescriptor took
ownership of the fd that was passed in. It does not!
Added some comments and a default parameter to allow the caller
to specify whether it wishes the Parcel to take ownership.

Bug: 5563374
Change-Id: I5a12f51d582bf246ce90133cce7690bb9bca93f6
inder/Parcel.cpp
2ccc47b89868d4f39683e0e2bd057ce95d7d1217 05-Nov-2011 Romain Guy <romainguy@google.com> Merge "Memory optimizations for libhwui Bug #5566149" into ics-mr1
eca0ca2424afc1e98912405906edfc32f7733e16 04-Nov-2011 Romain Guy <romainguy@google.com> Memory optimizations for libhwui
Bug #5566149

Lazily initialize font renderers
Keep 60% of the texture cache when an app goes to the background
Delete least used font renderer when going to the background
Delete all font renderers on full memory trim

Change-Id: I3c2454d46dc1107ec0f0f72a9ce69cbbcc8825e7
wui/Caches.cpp
wui/GammaFontRenderer.cpp
wui/GammaFontRenderer.h
wui/Properties.h
wui/TextureCache.cpp
wui/TextureCache.h
67406a46d13c8a5e6bab612ace022034c91416ea 04-Nov-2011 Jeff Brown <jeffbrown@google.com> Slight change to the unwinder API.

Change-Id: I5424de76a21b74842e004e0281936b3f492d3c7a
tils/CallStack.cpp
a0337b4082f5c3e727d7e17e233c3da4a4a24e4c 03-Nov-2011 Jamie Gennis <jgennis@google.com> am c5ce130f: Merge "SurfaceTexture: various logging improvements" into ics-mr1

* commit 'c5ce130f658303299bf55091373951f7fd33ae36':
SurfaceTexture: various logging improvements
94c10c4c8ba1c8e549324ad379a2f235897128ac 03-Nov-2011 Jamie Gennis <jgennis@google.com> am 236aea35: Merge changes Ibc99cb1c,Ie1f4f6f8 into ics-mr1

* commit '236aea3579787961fdd41d87574760b63323c0c1':
BlobCache: implement cache serialization
BlobCache: remove the mutex locking
c5ce130f658303299bf55091373951f7fd33ae36 03-Nov-2011 Jamie Gennis <jgennis@google.com> Merge "SurfaceTexture: various logging improvements" into ics-mr1
236aea3579787961fdd41d87574760b63323c0c1 03-Nov-2011 Jamie Gennis <jgennis@google.com> Merge changes Ibc99cb1c,Ie1f4f6f8 into ics-mr1

* changes:
BlobCache: implement cache serialization
BlobCache: remove the mutex locking
293b27e458d3c932193109578be50f478737b59b 02-Nov-2011 Stephen Hines <srhines@google.com> am af3a854b: am af675222: Merge "Fix potential segfault in RS watchdog." into ics-mr0

* commit 'af3a854b549409c4ad77c686e860f97ea86706a0':
Fix potential segfault in RS watchdog.
ef9bb3c3ea3aa08071ea0c32a505b379c322e5b5 17-Oct-2011 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #5438102 Double Arabic harakat overlap instead of stack In TextView

IMPORTANT: this change needs two patches for Harfbuzz:
- one concerning hb_utf16_script_run_prev() which was not returning the correct "previous" script
- one for the "script_properties" table that was missing Arabic code point ranges and declaring
HB_Script_Inherited instead of HB_Script_Arabic

The current change is doing the following:
- pass the correct typeface for Harbuzz shaping (depending on the script of the run)
- offset correctly the glyphIDs returned by Harfbuzz

We need to offset the glyphsID as Harfbuzz will return local glyphIDs (meaning in the
local range of the font used for shapping).

We then cannot use those glyphIDs when we are using a fallback Font (Arabic, Hebrews...)
because the FontRenderer needs glyphIDs in the range of all the Fonts (including the fallbacks)

Change-Id: I494897435bbc59293b02392ee2059cebcdf0e571
wui/OpenGLRenderer.cpp
e4bd0f32a39898ca25bc45f93b01ea2cc4a235a4 19-Oct-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: various logging improvements

Change-Id: I1f7216276547a1e9f9343c88c6cc1c24efcdcdbc
ui/SurfaceTexture.cpp
9d9768dbd7d8fe7af55fbd570dff9cf79a4d1807 13-May-2011 Jamie Gennis <jgennis@google.com> BlobCache: implement cache serialization

This change adds serialization and deserialization functionality to
BlobCache, conforming to the Flattenable interface.

Change-Id: Ibc99cb1c3d015f363d57d0713eabccec07ff975e
tils/BlobCache.cpp
tils/tests/BlobCache_test.cpp
94c1f148bb655a3dd3c2a2167476239b41305ff0 31-Oct-2011 Jamie Gennis <jgennis@google.com> BlobCache: remove the mutex locking

This change removes the mutex from the BlobCache class. The caller must
be responsible for thread synchronization in order to properly implement
the Flattenable interface, which is coming soon. Otherwise would be the
potential for the cache contents to change between the call to the
getFlattenedSize and flatten methods. Because the caller must do this
synchronization anyway there's no reason to also some synchronization
inside BlobCache.

Change-Id: Ie1f4f6f82b78744f46a41ce863cac0cad276a20e
tils/BlobCache.cpp
af3a854b549409c4ad77c686e860f97ea86706a0 01-Nov-2011 Stephen Hines <srhines@google.com> am af675222: Merge "Fix potential segfault in RS watchdog." into ics-mr0

* commit 'af675222f6340a8a9edbe9e8635014a18521e5e0':
Fix potential segfault in RS watchdog.
a049184274b88dd86a1f2e4e7d16a7553153dbb1 31-Oct-2011 Stephen Hines <srhines@google.com> Fix potential segfault in RS watchdog.

BUG=5544671

This initializes the watchdog structure properly. Without this fix, it is
possible to call LOGE with a garbage string value.

Change-Id: Ie05eb65f83eca938f18ac962794407d58c3f277f
s/rsContext.cpp
5889ce79bc7cf25a7890d6f6d8212311cf3bafe2 31-Oct-2011 Alex Sakhartchouk <alexst@google.com> am 66ce1fce: Merge "Removing changes not meant for MR1" into ics-mr1

* commit '66ce1fce59d2dc16f1905120e0fe3851ba1add90':
Removing changes not meant for MR1
66ce1fce59d2dc16f1905120e0fe3851ba1add90 31-Oct-2011 Alex Sakhartchouk <alexst@google.com> Merge "Removing changes not meant for MR1" into ics-mr1
bce45617083209583d61afbea50994f2cdcda459 30-Oct-2011 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of 2d280f75 to ics-mr1

Change-Id: I459e1cb0b60fb94dfb12862fedb9f8d949c226a7
89101cd9d9b5c1a6ff1ed85eba0613ca4c4802e2 28-Oct-2011 Jeff Brown <jeffbrown@google.com> Improve the slow query instrumentation.

On user-debug and eng builds, you can set the
"db.log.slow_query_threshold" system property to queries that
take longer than the specified number of milliseconds.
Set it to 0 to log all queries.

This property has been around for a while but it was implemented
poorly. In particular, it *changed* the behavior of the query
by calling getCount() while holding the Db connection.
In normal operation, the query will not actually run until later.

By putting the timing logic into fillWindow() instead, we ensure
that we only measure queries that actually ran. We also capture
cases where the cursor window gets filled multiple times.

Bug: 5520301
Change-Id: I174f5e1ea15831a1d22a36e9a804d7755f230b38
inder/CursorWindow.cpp
e707859415f4c8e1c01228dfaa58fb0a690d442e 28-Oct-2011 Romain Guy <romainguy@android.com> Load identity matrix when calling Canvas.setMatrix(null)
Bug #5446826

Change-Id: I3a7817f266b17e9abe948500816d629edd9a2822
wui/OpenGLRenderer.cpp
650de3dcfcbc7635da3c070410ef1dc4027ae464 27-Oct-2011 Jeff Brown <jeffbrown@google.com> Optimize fillWindow to improve reverse-seek performance.
Bug: 5520301

When an application requests a row from a SQLiteCursor that
is not in the window, instead of filling from the requested
row position onwards, fill from a little bit ahead of the
requested row position.

This fixes a problem with applications that seek backwards
in large cursor windows. Previously the application could
end up refilling the window every time it moved back
one position.

We try to fill about 1/3 before the requested position and
2/3 after which substantially improves scrolling responsiveness
when the list is bound to a data set that does not fit
entirely within one cursor window.

Change-Id: I168ff1d3aed1a41ac96267be34a026c108590e52
inder/CursorWindow.cpp
d97fd1d7c37e45c7f4c7ee89c3f70b961fa05428 27-Oct-2011 Alex Sakhartchouk <alexst@google.com> Removing changes not meant for MR1

Change-Id: I75136be33f12a87c2b5f21b064c06065a4145d70
s/scriptc/rs_graphics.rsh
0c01c81195bebb41d328d3964996db66cc9f5c12 27-Oct-2011 Jason Sams <jsams@google.com> am 27812a8f: am 28e4f87f: Fix bug where CPU could be stuck spinning Required the wallpaper be animating and the system to have run slowly during the last frame when rendering stopped.

* commit '27812a8f14ca22f0a709320e5a41d200ac59b63b':
Fix bug where CPU could be stuck spinning Required the wallpaper be animating and the system to have run slowly during the last frame when rendering stopped.
27812a8f14ca22f0a709320e5a41d200ac59b63b 27-Oct-2011 Jason Sams <jsams@google.com> am 28e4f87f: Fix bug where CPU could be stuck spinning Required the wallpaper be animating and the system to have run slowly during the last frame when rendering stopped.

* commit '28e4f87f38cae799b494e160467d732e988bad89':
Fix bug where CPU could be stuck spinning Required the wallpaper be animating and the system to have run slowly during the last frame when rendering stopped.
28e4f87f38cae799b494e160467d732e988bad89 27-Oct-2011 Jason Sams <jsams@google.com> Fix bug where CPU could be stuck spinning
Required the wallpaper be animating and
the system to have run slowly during the
last frame when rendering stopped.

bug 5180240

Change-Id: I38c2b6f07a1e36019dd05c77a58973e36d12728c
s/rsContext.cpp
0cbdec51d1c3f2fb214f818df623825f8f44cde0 26-Oct-2011 Mathias Agopian <mathias@google.com> Merge "Rename SensorChannel to BitTube"
71f2cf116aab893e224056c38ab146bd1538dd3e 20-Oct-2011 Steve Block <steveblock@google.com> Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/143865

Bug: 5449033
Change-Id: I0122812ed6ff6f5b59fe4a43ab8bff0577adde0a
inder/BpBinder.cpp
inder/Parcel.cpp
inder/ProcessState.cpp
amera/Camera.cpp
amera/ICamera.cpp
amera/ICameraClient.cpp
amera/ICameraRecordingProxy.cpp
amera/ICameraRecordingProxyListener.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
ui/tests/SurfaceTexture_test.cpp
s/driver/rsdAllocation.cpp
s/driver/rsdBcc.cpp
s/driver/rsdCore.cpp
s/driver/rsdGL.cpp
s/driver/rsdProgram.cpp
s/driver/rsdShader.cpp
s/driver/rsdShaderCache.cpp
s/driver/rsdVertexArray.cpp
s/rsAllocation.cpp
s/rsComponent.cpp
s/rsContext.cpp
s/rsElement.cpp
s/rsFileA3D.cpp
s/rsLocklessFifo.cpp
s/rsMatrix4x4.cpp
s/rsObjectBase.cpp
s/rsScriptC.cpp
s/rsThreadIO.cpp
s/rsType.cpp
tils/Asset.cpp
tils/AssetManager.cpp
tils/BlobCache.cpp
tils/FileMap.cpp
tils/RefBase.cpp
tils/ResourceTypes.cpp
tils/StreamingZipInflater.cpp
tils/VectorImpl.cpp
tils/ZipFileRO.cpp
tils/ZipUtils.cpp
28d9f024e043817212b15f04128d0464330502ea 12-Oct-2011 Steve Block <steveblock@google.com> Rename (IF_)LOG() to (IF_)ALOG() DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/141576

Bug: 5449033
Change-Id: I42575e7c29cf1c0f465c357a5c97ab118df6f473
inder/IPCThreadState.cpp
inder/Parcel.cpp
tils/Threads.cpp
tils/Timers.cpp
044966aef3c9b58e798d624138ae21c85967ecb9 20-Oct-2011 Jeff Brown <jeffbrown@google.com> Use libcorkscrew for stack unwinding.

Change-Id: Iee1ee5a2018ab8cfc1ce12ec2a124809245eaa02
tils/Android.mk
tils/CallStack.cpp
79174b75285e4ece7b7f736fb1b6091f35b98d95 21-Oct-2011 Romain Guy <romainguy@google.com> Merge "Make sure 9patches are not filtered when not necessary Bug #5383406"
5e7c469c7a3039af7696789a797f8d91a45227eb 21-Oct-2011 Romain Guy <romainguy@google.com> Make sure 9patches are not filtered when not necessary
Bug #5383406

Change-Id: I061c8069a4d9f4eaf45671283710b564639eeb32
wui/Patch.cpp
12cdf5116c312b8fb4f96bd8ea64134ce06e899d 21-Oct-2011 Mathias Agopian <mathias@google.com> Rename SensorChannel to BitTube
ui/Android.mk
ui/BitTube.cpp
ui/ISensorEventConnection.cpp
ui/SensorChannel.cpp
ui/SensorEventQueue.cpp
64ef6b47e020da5370af8897638a0a778fa52b74 20-Oct-2011 Iliyan Malchev <malchev@google.com> add -ldl to host executables

This fixes the build on Linux when RefBase is compiled with reference tracking
enabled.

Change-Id: I3e931e0b463ce836f6fdb30c37068d77144631a3
Signed-off-by: Iliyan Malchev <malchev@google.com>
tils/Android.mk
79235d2a93086538817391c847a8063442e1e1f0 20-Oct-2011 Jason Sams <rjsams@android.com> Merge "adding getters to Sampler ProgramRaster, ProgramStore, Element. Element adds ability to get subelement info. Tests for new stuff."
5b6f23868aff6a7317d2249224ea29d5e14113c9 20-Oct-2011 Jason Sams <rjsams@android.com> Merge "Remove ObjBaseRef from the hal struct"
981d13291e31cfa4a5871aeb3279ed6be0a79776 20-Oct-2011 Jason Sams <rjsams@android.com> Merge "Fixes and optimizations of two quaternion functions."
d10475e24f7b393d9f79f3322aabdccc3292131e 20-Oct-2011 Jesse Hall <jessehall@google.com> Merge "SurfaceTexture: add tests for buffer leaks"
6ca2b062c5fae4f166480407f645072416ea18ac 20-Oct-2011 Romain Guy <romainguy@google.com> Merge "Correctly dump DrawPatch operations in display lists"
a62f172215727a1e00af0cb934904e00926a86c9 20-Oct-2011 Romain Guy <romainguy@google.com> Correctly dump DrawPatch operations in display lists

Change-Id: I8cd1c764ddc184ce45727913fa2a23a3d81b337e
wui/DisplayListRenderer.cpp
59940b42c34d633f7e5d82e5489423e32fce31ae 20-Oct-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: add tests for buffer leaks

This change adds two tests to ensure that eglDestroySurface does not
cause Gralloc buffers to be leaked.

Bug: 5472838
Change-Id: Id675d74e34b6479f2d68314d40de94aede69f142
ui/tests/SurfaceTexture_test.cpp
08bad20ee7ecbe0da0f1caa9455a54f1948e35b9 19-Oct-2011 Jamie Gennis <jgennis@google.com> am 827d069a: Merge "SurfaceTexture: free buffers when disconnect fails" into ics-mr0

* commit '827d069afb297b6d96c995c03da9d4ee17e60679':
SurfaceTexture: free buffers when disconnect fails
791e63829ce4a07b2d9dee6b7f166ddf0303e67a 19-Oct-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: free buffers when disconnect fails

This change makes SurfaceTextureClient free its references to all the
buffers even when the disconnect binder call to the SurfaceTexture
fails.

Bug: 5384823
Change-Id: Iad787fbae5fda4769546fd52276e4e4030c62be6
ui/SurfaceTextureClient.cpp
f13ada94ea9fd6b6f02847b8df0775df88ec26d4 18-Oct-2011 Alex Sakhartchouk <alexst@google.com> Fixes and optimizations of two quaternion functions.

Change-Id: Ie5a3f16d49b716d91b6f68fa389473548cecb80d
s/scriptc/rs_quaternion.rsh
7d5f5e7c8943e043a422ad51c85d4e1684c37e28 18-Oct-2011 Alex Sakhartchouk <alexst@google.com> adding getters to Sampler ProgramRaster, ProgramStore, Element.
Element adds ability to get subelement info. Tests for new stuff.

Change-Id: I4a77b91e4e0e73c95ab28b42c50732a64e71e7b9
s/RenderScript.h
s/rsElement.cpp
5ef2f53a00f64b7e156978d9de2e097394e4036a 18-Oct-2011 Alex Sakhartchouk <alexst@google.com> Remove ObjBaseRef from the hal struct

Change-Id: Idcac14ecfdd4d06a0f54bf50e3b9657be62e6638
s/driver/rsdFrameBuffer.cpp
s/driver/rsdMeshObj.cpp
s/driver/rsdProgram.cpp
s/driver/rsdShader.cpp
s/rsAllocation.cpp
s/rsAllocation.h
s/rsFBOCache.cpp
s/rsFBOCache.h
s/rsMesh.cpp
s/rsMesh.h
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramFragment.cpp
s/rsProgramVertex.cpp
b6233ffd602642cd47a08f951770744cbed54f22 18-Oct-2011 Romain Guy <romainguy@google.com> Merge "Return early when we cannot allocate a hardware layer Bug #5462308"
5cd5c3f7e4df99f47e3def6e3707b9eb8205aef3 18-Oct-2011 Romain Guy <romainguy@google.com> Return early when we cannot allocate a hardware layer
Bug #5462308

Change-Id: I52dab809662f6f42a49ca03edc50f6b98fc35a06
wui/LayerRenderer.cpp
72cdc6d488578c7e54523e65ff622bdcb89b7b94 18-Oct-2011 Mathias Agopian <mathias@google.com> am 9a0732af: Merge "SensorManager reconnects to sensor service when the later dies" into ics-mr0

* commit '9a0732af1bd96a7d8247dee124a7da389137a52f':
SensorManager reconnects to sensor service when the later dies
9a0732af1bd96a7d8247dee124a7da389137a52f 18-Oct-2011 Mathias Agopian <mathias@google.com> Merge "SensorManager reconnects to sensor service when the later dies" into ics-mr0
eb587070b99742ede04f1e864953106b1d157c84 17-Oct-2011 Jamie Gennis <jgennis@google.com> am 3a735078: Merge "SurfaceTexture: report binder transaction failures" into ics-mr0

* commit '3a73507801b56da83140fad14a1a3d4eced213d9':
SurfaceTexture: report binder transaction failures
1c8a6bf3b21c4cfddf8d37cf7cd9fb30008a7911 17-Oct-2011 Mathias Agopian <mathias@google.com> am fefffc68: Merge "add logging and defensive code when initializing sensors" into ics-mr0

* commit 'fefffc685ab703b44f6e32b5ec45292b22d370a3':
add logging and defensive code when initializing sensors
7f7362c02bcde8750e24781f5c7199f9551301c5 17-Oct-2011 Jamie Gennis <jgennis@google.com> Merge changes I4e5ff00c,Id5e3ca1d,I97cbba61

* changes:
SurfaceFlinger: Remove display freezing code
SurfaceFlinger: add some layer update tests
SurfaceFlinger: make sync transactions explicit
3a73507801b56da83140fad14a1a3d4eced213d9 17-Oct-2011 Jamie Gennis <jgennis@google.com> Merge "SurfaceTexture: report binder transaction failures" into ics-mr0
de6c44e90681cbdb754e55721953fc828ec8e2aa 17-Oct-2011 Mathias Agopian <mathias@google.com> SensorManager reconnects to sensor service when the later dies

if system process ever restarted, processes using a SensorManager
would loose the ability to use it, resulting to a crash.
we now listen for sensor service death and reconnected if necessary.

Bug: 5445240
Change-Id: Ia47f8b26cdcecb729fa22bf11d55e10fcaef8cfc
ui/SensorManager.cpp
a744ead977b2beda89091abf295bcda860bf88b2 16-Oct-2011 Alex Sakhartchouk <alexst@google.com> Merge "Adding getter functions for script side RS objects. Multiproject change involving on device linker"
a338379873cdbaf44211223b40592d7a8284f58b 16-Oct-2011 Mathias Agopian <mathias@google.com> add logging and defensive code when initializing sensors

Bug: 5445240
Change-Id: I9dc7d27d3e8b4f15989488859831526d8c7ded3b
ui/SensorManager.cpp
7e6aac1533cea87739a6a672be6f87c635e84756 24-Sep-2011 Alex Sakhartchouk <alexst@google.com> Adding getter functions for script side RS objects.
Multiproject change involving on device linker

Change-Id: I321e8caa6ca23b3fe2c96c78cdcfc15e51f88823
s/rsProgramRaster.h
s/rsProgramStore.h
s/rsSampler.h
s/scriptc/rs_graphics.rsh
a39a055304968e799c49e99b700399667eab006a 15-Oct-2011 Jeff Brown <jeffbrown@google.com> Merge "Deprecate local-only CursorWindows."
122aa6bae9f72015e6d50e78d4d47a95e05d3f49 13-Oct-2011 Jamie Gennis <jgennis@google.com> SurfaceFlinger: make sync transactions explicit

This change enables a layer or orientation update transaction sent to
SurfaceFlinger to explicitly request a synchronous transaction.

Change-Id: I97cbba610c13679849f66114b216fa6dbf12f2a9
ui/ISurfaceComposer.cpp
ui/SurfaceComposerClient.cpp
6cb76588d7a26b050ecafec5ba7ee011431091e8 15-Oct-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: report binder transaction failures

This change fixes the ISurfaceTexture error reporting for the case where
the binder transaction fails.

Bug: 5082219
Change-Id: I6517532992e3a76dc9eb5e4a36af43a562391aaa
ui/ISurfaceTexture.cpp
93c299d0d0fc46c2407edca569960c36043c137a 14-Oct-2011 Jamie Gennis <jgennis@google.com> am a1e273ae: Merge "Surface: fix a protected buffer test" into ics-mr0

* commit 'a1e273ae590ee08cf27baca7facfce51e598d995':
Surface: fix a protected buffer test
a1e273ae590ee08cf27baca7facfce51e598d995 14-Oct-2011 Jamie Gennis <jgennis@google.com> Merge "Surface: fix a protected buffer test" into ics-mr0
3fda6ed3c751d959d93dc9fb6d3b65f3617d04f5 14-Oct-2011 Jason Sams <jsams@google.com> am 43b57ec4: Fix error printing if no command string is set.

* commit '43b57ec48ec7652addc11bbc9fef652c2394b7f5':
Fix error printing if no command string is set.
43b57ec48ec7652addc11bbc9fef652c2394b7f5 14-Oct-2011 Jason Sams <jsams@google.com> Fix error printing if no command string is set.

Change-Id: I588c0d0a4e1b8f80c967ebfb6aff179a0cac4a36
s/rsContext.cpp
5e5d6d8ba04d7579df840cda055cd5dfa9d7666f 13-Oct-2011 Jeff Brown <jeffbrown@google.com> Deprecate local-only CursorWindows.

There is no difference and has never really been a difference
between local-only and remotable CursorWindows. By removing the
distinction officially in the API, we will make it easier to
implement CrossProcessCursor correctly. CrossProcessCursor
is problematic currently because it's not clear whether a call
to getWindow() will return a local-only window or a remotable window.
As a result, the bulk cursor adaptor has special case handling
for AbstractWindowedCursors vs. ordinary CrossProcessCursors
so that it can set a remotable window before the cursor fills it.
All these problems go away if we just forget about local-only
windows being special in any way.

Change-Id: Ie59f517968e33d0ecb239c3c4f60206495e8f376
inder/CursorWindow.cpp
74f7dfa8033732a614ad0a755bc2b917032155d0 12-Oct-2011 Jamie Gennis <jgennis@google.com> Surface: fix a protected buffer test

This change renames the ScreenshotsOfProtectedBuffersFail to
ScreenshotsOfProtectedBuffersSucceed and changes the test to verify that
the screenshot succeeds.

Change-Id: I960bb8eed4211578cb4dc446b08392937da064b6
ui/tests/Surface_test.cpp
731934d12c559a8c1bea9bdaaaba227f5974f58a 13-Oct-2011 Jason Sams <rjsams@android.com> Merge "Fix bug with 1D arrays and threading. Some elements got launched multiple times."
2802dae197c2a7ea392280500a93e5d50bec82ff 13-Oct-2011 Jason Sams <rjsams@android.com> Fix bug with 1D arrays and threading.
Some elements got launched multiple times.

Change-Id: Icb257019df591a5d9525867c8ef8d18ef7d4cde5
s/driver/rsdBcc.cpp
17d8e4160f0c34fffe692d9d799049efc74ed3e4 12-Oct-2011 Romain Guy <romainguy@google.com> Merge "Add missing public native API"
71e36aa7db69449e210d0791284cb810a7471c07 12-Oct-2011 Romain Guy <romainguy@google.com> Add missing public native API

Change-Id: Ie3bc706b2ac91d686a5b888e8ae841820e9d37c7
wui/Matrix.h
19de9efcc4b0367cd6cfde78c90d2d3b213814e9 12-Oct-2011 Romain Guy <romainguy@google.com> Merge "Reduce the size of libhwui by 50%"
7953745dd565167113f8cbfc461bc0521d32d870 12-Oct-2011 Romain Guy <romainguy@google.com> Reduce the size of libhwui by 50%

This change removes unnessary symbols. All symbols are hidden by
default, public APIs with exported symbols are explicitly marked
with ANDROID_API.

Change-Id: I692fde432a86c12108de1cfd1f6504919a7d5f3f
wui/Android.mk
wui/Caches.h
wui/DisplayListLogBuffer.h
wui/DisplayListRenderer.h
wui/LayerRenderer.cpp
wui/LayerRenderer.h
wui/OpenGLRenderer.h
wui/ResourceCache.h
wui/SkiaColorFilter.h
wui/SkiaShader.h
c2091130ae1a1b37956f49d0fe81fb82413cd2dd 12-Oct-2011 Jamie Gennis <jgennis@google.com> am 075e4c3d: Merge "SurfaceFlinger: update orientation via transactions" into ics-mr0

* commit '075e4c3d2e6a8a9eb3506dfedc8da938fb65fb65':
SurfaceFlinger: update orientation via transactions
075e4c3d2e6a8a9eb3506dfedc8da938fb65fb65 12-Oct-2011 Jamie Gennis <jgennis@google.com> Merge "SurfaceFlinger: update orientation via transactions" into ics-mr0
678f8ccb3e6d84fa4154af435c919a39523619bd 12-Oct-2011 Jason Sams <rjsams@android.com> Merge "Improve rsForEach overhead."
ca2640b2ab4136eefe138baf07dcfcbaea86da17 12-Oct-2011 Eino-Ville Talvala <etalvala@google.com> am 0a273592: Merge "Add video stabilization control to Camera parameters." into ics-mr0

* commit '0a2735928030229b3340074eb11c2423342fda93':
Add video stabilization control to Camera parameters.
0a2735928030229b3340074eb11c2423342fda93 12-Oct-2011 Eino-Ville Talvala <etalvala@google.com> Merge "Add video stabilization control to Camera parameters." into ics-mr0
037abb8bb064c2878858c9b69978f6754f242627 11-Oct-2011 Eino-Ville Talvala <etalvala@google.com> Add video stabilization control to Camera parameters.

Hardware video stabilization reduces camera shake in preview
and in recorded videos. It has no effect on still image capture.

Convenience accessor methods hidden for now.

Change-Id: Ie18450bff662b2ef98b85d19719beefc180975fc
amera/CameraParameters.cpp
aac24a219aca5b2b529bde931fd403d04fff9e43 12-Oct-2011 Jason Sams <rjsams@android.com> Improve rsForEach overhead.

Change-Id: Iaabef7bb573233ef7c5756077f840ee933ee0c39

fix spacing, reduce rsForEach overhead about 50%
s/driver/rsdBcc.cpp
s/driver/rsdCore.cpp
s/driver/rsdCore.h
241fe477edba539bcc58df4410c307d9540a4233 12-Oct-2011 Jeff Brown <jeffbrown@google.com> am 58bf986c: Merge "Use ashmem for CursorWindows. Bug: 5332296" into ics-mr0

* commit '58bf986c3e3948242e89654e6d59b97a21345582':
Use ashmem for CursorWindows. Bug: 5332296
a9dc86b21defc26db0d71f276aff5c3af0b62ff5 11-Oct-2011 Romain Guy <romainguy@google.com> Correctly apply transforms when getting a TextureView's bitmap
Bug #5439406

Change-Id: I271a9a2e38f5b3600dc158f8f442a6b0893f472b
wui/LayerRenderer.cpp
e2909e121c45d58fe587849b1474c80745fcd2b9 11-Oct-2011 Jamie Gennis <jgennis@google.com> SurfaceFlinger: update orientation via transactions

This change merges the ISurfaceComposer::setOrientation functionality
into ISurfaceComposer::setTransactionState. It enables the window
manager to atomically update both the display orientation and the
position and size of the windows in a single transaction with
SurfaceFlinger.

Bug: 5439574
Change-Id: I18a8ccc564d7d760ef8afb2d015ccdb7a7963900
ui/ISurfaceComposer.cpp
ui/SurfaceComposerClient.cpp
0cde89f5f025b7826be009ebb9673b970e180e32 10-Oct-2011 Jeff Brown <jeffbrown@google.com> Use ashmem for CursorWindows.
Bug: 5332296

The memory dealer introduces additional delays for reclaiming
the memory owned by CursorWindows because the Binder object must
be finalized. Using ashmem instead gives CursorWindow more
direct control over the lifetime of the shared memory region.

The provider now allocates the CursorWindows and returns them
to clients with a read-only protection bit set on the ashmem
region.

Improved the encapsulation of CursorWindow. Callers shouldn't
need to care about details like how string fields are allocated.

Removed the compile-time configuration of string and numeric
storage modes to remove some dead weight.

Change-Id: I07c2bc2a9c573d7e435dcaecd269d25ea9807acd
inder/CursorWindow.cpp
inder/Parcel.cpp
270928bd4a1db1dc0d989f4e9897a81ab865e30e 08-Oct-2011 Jeff Brown <jeffbrown@google.com> Merge changes Idbfeb3cc,I03e8e2e7,Iff9eed78

* changes:
Fix regression in CursorWindow.getString() Bug: 5332296
Clean up CursorWindow lifetime. Bug: 5332296
Fix regression in CursorWindow.copyStingToBuffer. Bug: 5332296
5a6d3a4c0311318e6f1d4ee06aa47606e055a81b 08-Oct-2011 Romain Guy <romainguy@google.com> Stupid fixed point math.
Bug #5423215

Change-Id: I39379e1f8fb4d59de4ede6e4fe7cf7a2c7cc625a
wui/FontRenderer.cpp
d0ff68da6a606602235fb8749473999e3d1bde53 07-Oct-2011 Jeff Brown <jeffbrown@google.com> Fix regression in CursorWindow.copyStingToBuffer.
Bug: 5332296

Change-Id: Iff9eed786f0a8293b6156f883a66a322ddad5e99
tils/Unicode.cpp
3bc6bbc92cd2095f42039b5aadd0a14d0e5d9230 06-Oct-2011 Jeff Brown <jeffbrown@google.com> Clean up CursorWindow code.
Bug: 5332296

The code is functionally equivalent, but a little more efficient
and much easier to maintain.

Change-Id: I90670a13799df05831843a5137ab234929281b7c
inder/CursorWindow.cpp
66fb1f3f3d8038d6bf216b52ba21a7e42fda040f 05-Oct-2011 Jason Sams <rjsams@android.com> Merge "Wrapping new API with #defines to prevent old apps from using them."
ac0757a47c91a197111b457d209577560f4c18c7 05-Oct-2011 Romain Guy <romainguy@google.com> Merge "Canvas.getClipBounds() was broken and unreliable with OpenGL ES 2.0"
ed7a8fc768df158241819f062a12dafdaf8a628d 05-Oct-2011 Romain Guy <romainguy@google.com> Canvas.getClipBounds() was broken and unreliable with OpenGL ES 2.0

This bug was affecting several third party applications. The bug was
introduced by an optimization that prevented the local clip to be
recomputed when needed.

Change-Id: I7b5c464db21b5ff1a7274af75a3a64d0e9d84772
wui/Snapshot.h
3c1951c442e40f7f46775acfc8a22c24f04d8cfc 05-Oct-2011 Jason Sams <rjsams@android.com> Merge "Fix crash running old HC apps."
795072ec7b489c84ce233be586d1ae85ffed8cd3 05-Oct-2011 Jason Sams <rjsams@android.com> Fix crash running old HC apps.

Change-Id: If7206de334868cb40eb8e5dd04fbe8c70bc1d614
s/driver/rsdBcc.cpp
c04db7e06737c5b9bae276ac462858d44002672e 04-Oct-2011 Dianne Hackborn <hackbod@google.com> Fix handling of "allow fds" state.

Didn't take into account nesting of bundles. Boo.

Change-Id: Ic8cf21ad8d6f4938a3e105128624c9d162310d01
inder/Parcel.cpp
6579a9d6fe2302fa149452f66c4062ebc60c2523 24-Sep-2011 Jeff Brown <jeffbrown@google.com> Transfer large bitmaps using ashmem.
Bug: 5224703

Change-Id: If385a66adf4c6179a0bb49c0e6d09a9567e23808
inder/Parcel.cpp
9ecebbfbf768fd63e9a6c9a09c86d81c7737ee2d 29-Sep-2011 Dianne Hackborn <hackbod@google.com> Add mechanism for Parcel to not allow FDs to be written to it.

This is to help implement issue #5224703.

Change-Id: I026a5890495537d15b57fe61227a640aac806d46
inder/Parcel.cpp
8606fefa219d63d0a0f3df1b9dcf49cfbfa5b3e5 28-Sep-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: parameterize the texture target

This change adds a hack to allow Android Browser to use a SurfaceTexture
to stream RGBA images to a GL_TEXTURE_2D texture object.

Change-Id: Idb90064d5d4b920959ef3be7451362ac5012460e
ui/SurfaceTexture.cpp
59c7f80dd20258cefa1fc4bdd3c9a709a8dd53b8 30-Sep-2011 Romain Guy <romainguy@google.com> TextureView works best when it draws stuff.
Bug #5391188

Change-Id: I5e754881ccb08ff288ebd60de77282c9cbcf3f86
wui/TextDropShadowCache.h
acde31e124adaf29ce67491b8143a01ece889800 29-Sep-2011 Mathias Agopian <mathias@google.com> may fix the build

Change-Id: I065b1e6652f0e800ba5674a6d9aa954c3ac6c790
tils/Android.mk
f6576d9631f9c5a393c20d5cefc79fb150119e06 29-Sep-2011 Alex Sakhartchouk <alexst@google.com> Wrapping new API with #defines to prevent old apps from using them.

Change-Id: Ib3a2d19544ad72987ebec09d465bec8eeb6423c8
s/scriptc/rs_allocation.rsh
s/scriptc/rs_atomic.rsh
s/scriptc/rs_graphics.rsh
s/scriptc/rs_matrix.rsh
s/scriptc/rs_types.rsh
feb158b3cbd0dada89b0437c3e09699ba3f982de 27-Sep-2011 Jamie Gennis <jgennis@google.com> Merge changes Ib302d79e,Ib4ee085f

* changes:
SurfaceFlinger: set layer names on SurfaceTextures
SurfaceTexture: add name support
0ee06d116bc37c8b9a2d90a40651b3f6a0a709f9 27-Sep-2011 Mathias Agopian <mathias@google.com> Region cannot handle malformed Rects. Abort the Region op in that case.

Bug: 5331198, 5334829
Change-Id: Ib1fdbf6fb291e7f1191ccfe16b5ff29d73e7a474
i/Region.cpp
94aaed38467c71a6c804f0e18b41346a4013c25b 23-Sep-2011 Jason Sams <rjsams@android.com> Remove unused fields in ProgramRaster

Change-Id: I70c9d47674c956ec850c178c7aaa9a5e3dd9dffb
s/rs.spec
s/rsProgramRaster.cpp
s/rsProgramRaster.h
44a052203e6c1c5453a74ebe94607b5c71b136ec 17-Sep-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: add name support

This change adds support for setting a string that can be used to
identify a SurfaceTexture object in log messages.

Change-Id: Ib4ee085f36c8830dc964c05ef1654f5a55dfcd60
ui/SurfaceTexture.cpp
dd0ffde6f553afb9fcdbab198102df540a4470a0 21-Sep-2011 Jason Sams <rjsams@android.com> Merge "Cleanup RS logs Reduce the startup/shutdown info and format the logs in a consistent manner."
8410b14c85b5a0c7fcaa095b61feca96fb36d528 21-Sep-2011 Jason Sams <rjsams@android.com> Cleanup RS logs
Reduce the startup/shutdown info and format the logs
in a consistent manner.

Change-Id: I4592cd9fcf7e2920010d84c7137137262cdc73b9
s/driver/rsdCore.cpp
s/driver/rsdGL.cpp
s/rsContext.cpp
8bba5efcee0a7668508acd008feb218d8468aeb3 20-Sep-2011 Mathias Agopian <mathias@google.com> Make sure Region handles invalid rectangles

the boolean operation code assumes rects are valid and
could go into an infinite loop if not. make sure we
abort before that happens.

Bug: 5331198, 5334829
Change-Id: Iee4e3b838ecf504ef21f7447fd2e34a56e7dc3f8
i/Region.cpp
83b186a246e8ffd52b91a17c0019dd8c9c9d21b1 20-Sep-2011 Mathias Agopian <mathias@google.com> fix the float Rect in OpenGLRenderer to handle NANs

- we want functions like isEmpty() to return true if NANs are
involved in the Rect

- also clean-up the intersect familly of calls

- minor cleanup in the int32_t Rect as well

These played a role in http://b/5331198.

Bug: 5331198

Change-Id: I5369725ab482e4b83da9f1bd4cee5256e5de75b2
wui/Rect.h
92061b70be48fabd8a1e5fbdbd3021211c820222 17-Sep-2011 Jeff Brown <jeffbrown@google.com> am 79aa4030: Merge "Can\'t stop the fling! Bug: 5335420" into ics-factoryrom

* commit '79aa40302b643ee6c6227ee354a1b1378e721568':
Can't stop the fling! Bug: 5335420
b0c71eb9f50ce06327fa6bb6219f0970e04fd856 17-Sep-2011 Jeff Brown <jeffbrown@google.com> Can't stop the fling!
Bug: 5335420

Fixed a bug in VelocityTracker where the output velocity was
not being set to zero when not available.

Added a condition to ensure that the velocity is at least
the minimum fling velocity before continuing. If not, then
the user is trying to stop the fling and scroll more precisely.

Change-Id: I36634b0c3f7a9a09cf20c33f71d41163a8e33eed
i/Input.cpp
1afeea0f207f8b8b781f799f5d150b70495abb1a 17-Sep-2011 Mathias Agopian <mathias@google.com> Merge "work around a problem where fp registers get corrupted (DO NOT MERGE)" into ics-factoryrom
a5f7b3cbf7454923d2745149ed589f7ce49cef3a 17-Sep-2011 Mathias Agopian <mathias@google.com> work around a problem where fp registers get corrupted (DO NOT MERGE)

Bug: 5331198
Change-Id: I1f9b4a79d34d63f8adb0555909998664ea2ea9ca
wui/LayerRenderer.cpp
3fccb86b31b4065d6ebd2e0268bee710123f0a24 16-Sep-2011 Jeff Brown <jeffbrown@google.com> Make LTE_FLOAT a strict weak order. (DO NOT MERGE)
Bug: 5327776

Currently LTE_FLOAT isn't even a valid partial order, let alone
a strict weak order as needed by binary search. Consequently,
KeyedVectors with keys whose types have operator< using LTE_FLOAT
sometimes find the wrong values!

This problem affects several graphics caches including the
TextLayoutCache.

(This is still not a total order because NaNs are not comparable
but hopefully we don't ever search for NaNs this way!)

Change-Id: Ic447a34c7d87f681ee81538f22a0937a039072dd
wui/utils/Compare.h
bb0bccba23849de34fb8b8d96fa90f653e86fbab 16-Sep-2011 Jeff Brown <jeffbrown@google.com> Merge "Make LTE_FLOAT a strict weak order. Bug: 5327776"
4920fde825678676da038497c41bf800bc876ef6 16-Sep-2011 Mathias Agopian <mathias@google.com> Merge "cleanup: fix typos in logs"
13ede62fd77acdf158f7210043fe48644cb4a589 16-Sep-2011 Jeff Brown <jeffbrown@google.com> Make LTE_FLOAT a strict weak order.
Bug: 5327776

Currently LTE_FLOAT isn't even a valid partial order, let alone
a strict weak order as needed by binary search. Consequently,
KeyedVectors with keys whose types have operator< using LTE_FLOAT
sometimes find the wrong values!

This problem affects several graphics caches including the
TextLayoutCache.

(This is still not a total order because NaNs are not comparable
but hopefully we don't ever search for NaNs this way!)

Change-Id: Ic447a34c7d87f681ee81538f22a0937a039072dd
wui/utils/Compare.h
53f6cdd94d2ceccc7ca7cd0b45f3172944f60dc4 16-Sep-2011 Mathias Agopian <mathias@google.com> cleanup: fix typos in logs

Change-Id: Ib5744564a873ea2b84100174673dc4d3ae109fcf
ui/SurfaceTexture.cpp
86d7db52bf0cce0d76abc40cc25bf4f1d96d59cd 16-Sep-2011 Andreas Huber <andih@google.com> Fix androidGetThreadPriority for non-pthread configurations.

related-to-build

Change-Id: Ic865af0865906f96fd615a56a030c8e3adaf13c4
tils/Threads.cpp
bcba155942705de42174871fc1215b3f4655797b 15-Sep-2011 Andreas Huber <andih@google.com> A new API "androidGetThreadPriority"

Change-Id: I6baeead8c70460863343fd557250635fb1e6a170
tils/Threads.cpp
b59ab9f41faafb358afb4f951de96f34a656e0b4 14-Sep-2011 Jeff Brown <jeffbrown@google.com> 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
i/Input.cpp
5316b9eead0c29df36f46d29c17914bc3c61ed9f 14-Sep-2011 Jason Sams <rjsams@android.com> Add RS watchdog.

Change-Id: I4c912beb84fa8a37ada0088049f7776132e994b6
s/driver/rsdAllocation.cpp
s/driver/rsdFrameBufferObj.cpp
s/driver/rsdGL.cpp
s/driver/rsdGL.h
s/driver/rsdMeshObj.cpp
s/driver/rsdProgramRaster.cpp
s/driver/rsdProgramStore.cpp
s/driver/rsdShader.cpp
s/rsContext.cpp
s/rsContext.h
s/rsLocklessFifo.cpp
s/rsLocklessFifo.h
s/rsScriptC_LibGL.cpp
s/rsThreadIO.cpp
s/rsThreadIO.h
6c048260f30d9bba1a83c4f79388cd6b3109be7d 12-Sep-2011 Ben Komalo <benkomalo@google.com> Merge "Revert encryption mapping for device wipes."
0e23c2efb03c8eac7e2bcd6aad61cfc4b15340fc 10-Sep-2011 Jeff Brown <jeffbrown@google.com> Merge "Tweak VelocityTracker. Bug: 5265529"
581761d4aa0133fe7354cc9e4a5dd3d9d7258c5f 10-Sep-2011 Jeff Brown <jeffbrown@google.com> 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
i/Input.cpp
13c7197da8a16f77f6398708a6314c80cb01e0d1 08-Sep-2011 Ben Komalo <benkomalo@google.com> 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
torage/IMountService.cpp
f5ad309a60360af2e0ea8f40c764b9eafa9eb669 09-Sep-2011 Romain Guy <romainguy@google.com> Merge "Add support for 3 new blend modes when blending with framebuffer: Add Multiply Screen"
2ffefd48e20d311b38c0673edadb27c1f6ad328b 09-Sep-2011 Romain Guy <romainguy@google.com> Add support for 3 new blend modes when blending with framebuffer:
Add
Multiply
Screen

Change-Id: I92a3c2612c86613087568bf0c03cc6f92b5ded44
wui/OpenGLRenderer.cpp
2d719afe813a0568aa12a34041686f86411e465c 08-Sep-2011 Andy McFadden <fadden@android.com> Merge "Resurrect verbose binder logging"
8a3957d43bcae93fbb9f6b4b4c3de8abdb3c953c 08-Sep-2011 Romain Guy <romainguy@google.com> Add reminder in the code to fix T-junctions

Change-Id: I52b112694f930e641f01fb78dc55412986023411
wui/LayerRenderer.cpp
wui/OpenGLRenderer.cpp
3f8cbfeb07a934dd5bc9b16995326639d09c7a0c 31-Aug-2011 Andy McFadden <fadden@android.com> 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
inder/IPCThreadState.cpp
tils/Static.cpp
08b997c7421735252fa927d89f22ab6ceba0bff8 05-Sep-2011 Jamie Gennis <jgennis@google.com> Merge "SurfaceTexture: fix a test deadlock"
e061795908bac8a2babe3e3b6d8dffd1dbc6022f 03-Sep-2011 Pannag Sanketi <psanketi@google.com> 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
ui/SurfaceTextureClient.cpp
79dd90c7bf2d3d1eb0fb130446d298256b987996 02-Sep-2011 Stephen Hines <srhines@google.com> Merge "Fix remaining .rs.dtor() issue for RS."
466bdc4008841f095ff8d1f13bfc36bcf11c3dd9 02-Sep-2011 Stephen Hines <srhines@google.com> Fix remaining .rs.dtor() issue for RS.

BUG=5186750

Change-Id: I74765b844d28ed780f9c9e291b8e0de94352f74b
s/rsScriptC.cpp
d9e075b0035d0ff305e60e40ce7a83be4fb35c86 02-Sep-2011 Robert Ly <robertly@google.com> fix rs docs

Change-Id: Id7253737278d5dc4ef3b6d53cd32dbac1a80103d
s/scriptc/rs_quaternion.rsh
1716fe47bdbc4f23f2e4e27eb2d787388792adeb 01-Sep-2011 Stephen Hines <srhines@google.com> Merge "Call .rs.dtor() when tearing down Scripts."
73d50d3edc54ee1836ce48d8e46c3a54ea2de31f 01-Sep-2011 Jason Sams <rjsams@android.com> Merge "Finish the docs for rs_cl."
98bb251c8b527600e7a4cca6cc33499710bbfbf1 30-Aug-2011 Wu-cheng Li <wuchengli@google.com> Add video snapshot camera parameter.

The API is still hidden.

bug:5187868

Change-Id: I59e1b5774ca32be049723d1a0887faa90d8884bb
amera/CameraParameters.cpp
514f9790fdf180ca3c58e508cbd36c520fa7be08 01-Sep-2011 Stephen Hines <srhines@google.com> 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
s/driver/rsdBcc.cpp
s/driver/rsdBcc.h
s/driver/rsdCore.cpp
s/rsScript.cpp
s/rsScript.h
s/rs_hal.h
2f87f36e84bfd5d964f4e086daa9d0c5d0d9e632 01-Sep-2011 Jason Sams <rjsams@android.com> Finish the docs for rs_cl.

Change-Id: I2edaac2ad07fe1de77af58bec0d9ac4cde181f11
s/scriptc/rs_cl.rsh
7d71556b18f7a4131aeb01f3e78f8fe390c163e4 01-Sep-2011 Jason Sams <rjsams@android.com> Merge "Document the basic RS math functions."
e79f7687dcd9e8fd872191703042e9a3f8d3afb6 31-Aug-2011 Jason Sams <rjsams@android.com> Document the basic RS math functions.

Change-Id: If7a1b82eab4c4c82443cf8e57b444865f1e3f6b8
s/scriptc/rs_cl.rsh
e124e94ee9f3cf5a51b4a21f0c536d0d4e00e0d4 31-Aug-2011 Xia Wang <xiaw@google.com> Merge "Integreate surfacetexture test into our continuous test framework."
1d4274eb4c5300f1794f0f3eb4bbcaae992c9611 31-Aug-2011 Xia Wang <xiaw@google.com> Integreate surfacetexture test into our continuous test framework.

Change-Id: Ic481f3a431166851947676d676749543c7afbbf7
ui/tests/Android.mk
c21843a8b5c395cbaae6db0f786bdee556075f5d 31-Aug-2011 Mathias Agopian <mathias@google.com> Merge "fix Surface positions are not floats"
32704dcff71fc2469f41b8aa48058c4818fc6908 31-Aug-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: fix a test deadlock

This change fixes a test issue that resulted in a deadlock.

Change-Id: I4729e8dd47c8f5fea49bfeff3cea58627ead6d04
Bug: 5174876
ui/tests/SurfaceTexture_test.cpp
34cb9f2a960c4173bdafb4b8a2444c1bca4c5f0d 31-Aug-2011 Mathias Agopian <mathias@google.com> 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
ui/SurfaceComposerClient.cpp
853921fa6ded5267c71f601beceda0f4cb94df9d 30-Aug-2011 Romain Guy <romainguy@google.com> Merge "Text would disappear when the font size is 75px. Bug #5230196"
799833a8b451a04be201d25ae72213e8562f7774 30-Aug-2011 Romain Guy <romainguy@google.com> 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
wui/FontRenderer.cpp
b4bf90b40e30096479a4d4cc9cf135e991ef1994 29-Aug-2011 Glenn Kasten <gkasten@google.com> Merge "Add C++ thread API androidGetThreadSchedulingGroup"
46e5a036100abf2465378871d69e24f2829194eb 27-Aug-2011 Stephen Hines <srhines@google.com> Updated time/type docs for Renderscript.

Change-Id: Idb51c64271c4f2b4705ea932c715683003eff4cc
s/scriptc/rs_time.rsh
s/scriptc/rs_types.rsh
2370d0a14f09d4fb5133ff48e28459ce8343bf80 26-Aug-2011 Mathias Agopian <mathias@google.com> 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
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
27bf191327cd509daf52e3ebea2385ce66545093 25-Aug-2011 Romain Guy <romainguy@google.com> Merge "Optimize display lists"
04c9d8c2ffd028c35c750bac0a4a7b79e48059b5 25-Aug-2011 Romain Guy <romainguy@google.com> Optimize display lists

Remove redundant or useless operations

Change-Id: If989b4eaa9143eef4254c38b39959aeed1f2b9ab
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
0806d5183278e3a5e7f5904c1bbd07ca2a1b35fd 24-Aug-2011 Alex Sakhartchouk <alexst@google.com> Merge "Fixing the lockless fifo destory bug. Removing unused code from element. build."
9b9783ad60d31f3df5d2524e13abc1437d5b6f7d 24-Aug-2011 Romain Guy <romainguy@google.com> Merge "Enable linear filter when scaling bitmaps Bug #5205673"
631582f7f7a3c879a5fba81f2bc082e4826758aa 24-Aug-2011 Romain Guy <romainguy@google.com> Enable linear filter when scaling bitmaps
Bug #5205673

Change-Id: I8b0f90877df6b6c6757d35dcf6cd14e79e840b96
wui/OpenGLRenderer.cpp
becc91d6b0b5fc59f3231ba7f1584eb9e2f3a313 24-Aug-2011 Mathias Agopian <mathias@google.com> 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
ui/Surface.cpp
6816972eb69ee8b294553dac92b3c1ad5b1ca1f7 23-Aug-2011 Romain Guy <romainguy@google.com> Don't use bilinear filtering on unscaled bitmaps
Bug #5198590

Change-Id: I4333d850501ac849eeeeb247e4178dd469b9de3d
wui/OpenGLRenderer.cpp
28d8ff6dbcc1b137131c70b72b4dbd211db7fbd9 22-Aug-2011 Romain Guy <romainguy@google.com> Move constants to the correct header

Change-Id: Id4bd14f72487bd7156cd2e1930eaf97b47896273
wui/LayerCache.cpp
wui/LayerCache.h
wui/Properties.h
c3ccfb8eec47cdc0911c35b387d17659af25fbe9 19-Aug-2011 Stephen Hines <srhines@google.com> Merge "Issue proper parameters to root() calls for RS."
1222393e357e97a2218bae8a2a41b7d8031d1171 19-Aug-2011 Stephen Hines <srhines@google.com> Issue proper parameters to root() calls for RS.

BUG=5076887

Change-Id: Ic0ce9d45ee20a99add4c780233c0804d05a55e96
s/driver/rsdBcc.cpp
s/driver/rsdCore.cpp
s/driver/rsdCore.h
00c0dcb846e6b8574545e6682328e0197388d2ca 19-Aug-2011 Jason Sams <rjsams@android.com> Merge "Fix issue with freeing allocation with circular references."
a8bb921c8b50dd4b9c000b9bb6a438a7faf9539a 19-Aug-2011 Alex Sakhartchouk <alexst@google.com> Fixing the lockless fifo destory bug.
Removing unused code from element. build.

Change-Id: I4bb324a666486d6d3fa45cc1995d0e96cb99f70a
s/rsElement.cpp
s/rsElement.h
s/rsLocklessFifo.cpp
s/rsLocklessFifo.h
777ec2662ef5ee8b0a501e0b8a9b2d7a2b84ffe7 19-Aug-2011 Jason Sams <rjsams@android.com> Fix issue with freeing allocation with circular references.

Change-Id: I45871c20a192815eafee77f95e17a025f6dcf9d1
s/rsAllocation.cpp
s/rsAllocation.h
s/rsContext.cpp
s/rsObjectBase.cpp
s/rsObjectBase.h
s/rsProgram.cpp
s/rsProgram.h
c8f4c6a5d02d46eedd876bfc0be3468d6d4000e0 18-Aug-2011 Jamie Gennis <jgennis@google.com> Merge "SurfaceTexture: fix queues-to-composer"
fde00591c6e3243a7834b21f57e8c386f23aa597 18-Aug-2011 Wu-cheng Li <wuchengli@google.com> Merge "Add new camera focus mode FOCUS_MODE_CONTINUOUS_PICTURE."
9b8fc65b0353db3a962ab52dc556c356d556fcc1 18-Aug-2011 Jamie Gennis <jgennis@google.com> 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
ui/ISurfaceComposer.cpp
ui/Surface.cpp
ui/SurfaceTextureClient.cpp
24b352242894b38d224df8ef5f586d25ba6c210d 18-Aug-2011 Jason Sams <rjsams@android.com> Merge "Fix "return 0" behavior in rs 0 was not properly blocking for the next message."
85deb781658e870556c305c523fa7f2bf679efe3 18-Aug-2011 Jason Sams <rjsams@android.com> Fix "return 0" behavior in rs
0 was not properly blocking for the next message.

Change-Id: I0d9f0a8f799ba457197920c6a699f80f496eaa8e
s/rsContext.cpp
c395530de8d91e301460e0bc16e70696043049e3 18-Aug-2011 Mathias Agopian <mathias@google.com> Merge "don't return the current buffer from dequeueBuffer"
656f9b6a1cf7e1e6154959d20c078fb2d98cfc91 18-Aug-2011 Mathias Agopian <mathias@google.com> Merge "fix a small race condition when returning the default width/height of a SurfaceTexture"
8618ebcc5d20a5983da1fc6200d50c3662aca6e3 18-Aug-2011 Mathias Agopian <mathias@google.com> don't return the current buffer from dequeueBuffer

we were not reseting mCurrentTexture in some situations
which in turn caused dequeueBuffers() return a
"FREE" buffer that was also current.
Very often it was harmless, but it created a race with
updateTexImage() which could cause the following
queueBuffers() to fail.

Bug: 5156325
Change-Id: If15a31dc869117543d220d6e5562c57116cbabdb
ui/SurfaceTexture.cpp
c1b4c1ff9b2f9e691089f96e5b926b638d5b0e6a 17-Aug-2011 Jason Sams <rjsams@android.com> Add structure to pack params for forEach.
This allows the driver to not pass all the sub-params.

Change-Id: I9728a7bb39893f49193a55155994ede0400cb7a6
s/driver/rsdBcc.cpp
s/rs_hal.h
4270295ae8ffea9888c3bf881c07ba53d5e6f9c2 17-Aug-2011 Alex Sakhartchouk <alexst@google.com> Merge "Fixing asynchronous performance issues."
1a227437be33157175b4de5f47d08a02647ee71a 17-Aug-2011 Mathias Agopian <mathias@google.com> fix a small race condition when returning the default width/height of a SurfaceTexture

Change-Id: I581bf609505dfb5d4ec5957b2ef2c77df6cfb15f
ui/SurfaceTexture.cpp
b9ac75d3dfc53ab4a0a104da147f1dfd7bc8c12f 16-Aug-2011 Wu-cheng Li <wuchengli@google.com> Add new camera focus mode FOCUS_MODE_CONTINUOUS_PICTURE.

The API is still hidden.

bug:5086125
Change-Id: I69268a95ad6aae249771d3a8dfb423ffe2d87081
amera/CameraParameters.cpp
2ce81fcd7d904bb82c55f6076d19cc11e3867100 16-Aug-2011 Romain Guy <romainguy@google.com> Merge "Add an API to set the transform on a TextureView's surface texture. Bug #5156689"
302a9df1d50373c82923bb84ff665dfce584fb22 16-Aug-2011 Romain Guy <romainguy@google.com> Add an API to set the transform on a TextureView's surface texture.
Bug #5156689

Change-Id: I635a625885c9b832a60d44ece0de7613ceb84109
wui/Layer.h
wui/Matrix.cpp
wui/Matrix.h
wui/OpenGLRenderer.cpp
117abdbc67123654d0754b686c5bbdee6b44bcdd 16-Aug-2011 Alex Sakhartchouk <alexst@google.com> Fixing asynchronous performance issues.

Change-Id: I10f02cd37a33a6c655814d24e0a4291dc044fba3
s/rs.spec
s/rsAllocation.cpp
s/rsComponent.cpp
s/rsComponent.h
s/rsContext.cpp
s/rsElement.cpp
s/rsElement.h
s/rsFileA3D.cpp
s/rsFont.cpp
s/rsFont.h
s/rsObjectBase.h
s/rsProgram.cpp
s/rsProgramFragment.cpp
s/rsProgramRaster.cpp
s/rsProgramRaster.h
s/rsProgramStore.cpp
s/rsProgramStore.h
s/rsProgramVertex.cpp
s/rsSampler.cpp
s/rsSampler.h
s/rsType.cpp
s/rsType.h
47b212935025fd514a414451fff98aaeeaa92934 16-Aug-2011 Mathias Agopian <mathias@google.com> revert last change to EGLUtils::selectConfigForPixelFormat

EGLUtils::selectConfigForPixelFormat is only used by
command line tests and it simply selects a config
based on the EGL_NATIVE_VISUAL_ID.
i/EGLUtils.cpp
c929158f0e0e02f8690c8355754ce2830c6e2dfe 13-Aug-2011 Alex Sakhartchouk <alexst@google.com> Merge "Fix to the memory leak problem."
f5af42933dd081b906dcd0e254a52550b20c07a0 13-Aug-2011 Jason Sams <rjsams@android.com> Merge "Fix the RS frame timeout. Previous a slow app would block from receiving new commands until the timer expired. This change will expire the timer immediatly."
bfc7891bdd08f2c16e9ffa592fd9f4ea21ff220d 13-Aug-2011 Jason Sams <rjsams@android.com> Fix the RS frame timeout.
Previous a slow app would block from receiving new
commands until the timer expired. This change will
expire the timer immediatly.

Change-Id: I42b949d21f98ee0f1d3156763cd723c3e9cabb67
s/rsContext.cpp
s/rsLocklessFifo.cpp
s/rsLocklessFifo.h
s/rsSignal.cpp
s/rsSignal.h
s/rsThreadIO.cpp
s/rsThreadIO.h
e52531121d9556688a3204bb14f5fe7e0227faaf 12-Aug-2011 Romain Guy <romainguy@google.com> Merge "Make sure we correctly copy caches keys. Bug #5136067"
e5df231434357424cea8d2b8d0cdf31253a98110 12-Aug-2011 Romain Guy <romainguy@google.com> Make sure we correctly copy caches keys.
Bug #5136067

Change-Id: I366e840bef44415436dc7b13d89cfb610feed663
wui/GradientCache.h
wui/LayerCache.h
wui/PatchCache.h
wui/PathCache.h
wui/ShapeCache.h
6e97ed2127bdda72fee739fe9d28011d52155b9c 12-Aug-2011 Mathias Agopian <mathias@google.com> Merge "fix a memory leak and memory corruption in RefBase"
065fa8deb178f00ad9957d3212ec2620c46f78e4 12-Aug-2011 Alex Sakhartchouk <alexst@google.com> Fix to the memory leak problem.

Change-Id: I18dfa76ecae62ed5165415531adf3a13ad992b54
s/rsAllocation.cpp
1213697980d58d4285cc77a5dd80a453f008a077 12-Aug-2011 Justin Ho <justinho@google.com> Merge "Replacing sans serif system font with Roboto"
6fe248139223a9dfaab709bc13849bdc16f27564 11-Aug-2011 Mathias Agopian <mathias@google.com> fix a memory leak and memory corruption in RefBase

we would leak a weakref_impl if a RefBase was never incWeak()'ed.
there was also a dangling pointer that would cause memory corruption
and double-delete when a custom destroyer was used to delay the
execution of ~RefBase.

it turns out that the custom destroyer feature caused most of the
problems, so it's now gone. The only client was SurfaceFlinger
who now handles things on its own.

RefBase is essentially back its "gingerbread" state, but the
code was slightly cleaned-up.

Bug: 5151207, 5084978
Change-Id: Id6ef1d707f96d96366f75068f77b30e0ce2722a5
tils/RefBase.cpp
03f156e96f5b1b9427473197c2de3a8454d7039c 12-Aug-2011 Romain Guy <romainguy@google.com> Merge "Remove unnecessary private API"
9d865512f1a39bac6bed612b24023213d5a1fb1d 12-Aug-2011 Romain Guy <romainguy@google.com> Remove unnecessary private API

Change-Id: I2ecb367528ec0691c07153a3d163b82a6ca33fdf
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
beb2b5cfdb79ac9147296e3a6bd21970a947a6f4 10-Aug-2011 Christian Robertson <robertsonc@google.com> Replacing sans serif system font with Roboto

Change-Id: Ibe0aa11e2259898e65dc422c7794ab4065a0a90e
s/rsFont.cpp
4982b6918a2f499edacd4be5fd36ce17df390e81 11-Aug-2011 Dave Burke <daveburke@google.com> Revert "error out when SurfaceTexture APIs are called while not connected"

This reverts commit a04cda9986366ab480ad8008c4d923271b05d78e.

Conflicts:

include/gui/SurfaceTexture.h
libs/gui/SurfaceTexture.cpp

Change-Id: Ib655016462c496ee2a27f7cb33a6e8b18cfe684a
ui/SurfaceTexture.cpp
246ae5011c385d100f73b441ce7e47a6ea7e33ba 11-Aug-2011 Mathias Agopian <mathias@google.com> Merge "Read leftover parcel data when a parceled Surface is found in the cache."
5c71575983e96e6e4c5149e7e39d92f760f5c1fc 11-Aug-2011 Mathias Agopian <mathias@google.com> fix a crasher in SurfaceTexture::updateTexImage()

we now make sure to drain the buffer queue on disconnect.
this happens only when in synchrnous mode. in async mode
we clear all buffers except the head of the queue.

for extra safety we also catch the null pointer
in updateTexImage (which should never happen) and return
an error.

Bug: 5111008

Change-Id: I5174a6ecbb0de641c6510ef56a611cbb4e9e1f59
ui/SurfaceTexture.cpp
71fd1213b49e6a33bea42348876eb1db2ab3d362 11-Aug-2011 Mathias Agopian <mathias@google.com> rework dequeueBuffer()'s main loop.

this simplifies the code a bit and also makes sure
we reevaluate mAbandoned and mConnectedApi each time
we come back from waiting on mDequeueCondition

Change-Id: I1f8538b62ad321b51ed79d953b700036daba796d
ui/SurfaceTexture.cpp
a04cda9986366ab480ad8008c4d923271b05d78e 11-Aug-2011 Mathias Agopian <mathias@google.com> error out when SurfaceTexture APIs are called while not connected

- also log a warning when freeAllBuffers is called with a non empty buffer queue
- rename freeAllBuffers to freeAllBuffersLocked

Change-Id: Idb71fdcf233b9ccae62d5a2a7c3c4bad2501d877
ui/SurfaceTexture.cpp
3f945fa5ef3f9d8f1d0787118a956fa631451163 10-Aug-2011 Ted Bonkenburg <tedbo@google.com> Read leftover parcel data when a parceled Surface is found in the cache.

This fixes an issue where the Surface readFromParcel code was leaving
unread parcel data in the case where the Surface was re-used from the
sCachedSurfaces cache. On a cache miss the code is creating a new
Surface from the remainder of the parcel data. On a hit that data was
being left unread, so anything that parcels a Surface followed by
additional arguments may end up reading the wrong values.

Change-Id: I25365159d945c125bd1fcc9f17e39a4f00aece55
ui/Surface.cpp
4954193651ed7d48e35cfb64b14bb3fb3ff7a8a1 10-Aug-2011 Mathias Agopian <mathias@google.com> fix a crasher in dumpsys

Bug: 5141729
Change-Id: Ib104d49c8660621180966be099198fe29c5bebf5
ui/SurfaceTexture.cpp
f6d08b95289ec9069fa2f3789dbfc4748dbb4883 10-Aug-2011 Mathias Agopian <mathias@google.com> Merge changes Ie06e73e5,I7ac6b5b0

* changes:
free all buffers when ANativeWindow::disconnect is called
return correct value from query after connecting a surface
9ce7c0971d1a7f6984f0097fad13f7f827556a3c 09-Aug-2011 Alex Sakhartchouk <alexst@google.com> Merge "add renderscript doc comments for exposed headers"
9940c60af4b6ff081ba73b2ad66a5fb5ca4ccd0c 09-Aug-2011 Stephen Hines <srhines@google.com> Merge "Start refactoring RS headerfiles for docs."
6b2b8bdb28e8b0dd5f595e03f2b2fb0ea7fafdc8 09-Aug-2011 Alex Sakhartchouk <alexst@google.com> add renderscript doc comments for exposed headers

Change-Id: Ia7dd82f890775045e543963d64e6dcd3ea4db825
s/scriptc/rs_graphics.rsh
573fa6207494d16ac4ef73b48a3b0a77157daff0 09-Aug-2011 Jason Sams <rjsams@android.com> Start refactoring RS headerfiles for docs.

Change-Id: Ieb7797601f94beec2835e1d936dc2dd0c38cb48c
s/scriptc/rs_allocation.rsh
s/scriptc/rs_atomic.rsh
s/scriptc/rs_cl.rsh
s/scriptc/rs_core.rsh
s/scriptc/rs_debug.rsh
s/scriptc/rs_math.rsh
s/scriptc/rs_matrix.rsh
s/scriptc/rs_object.rsh
s/scriptc/rs_quaternion.rsh
s/scriptc/rs_time.rsh
s/scriptc/rs_types.rsh
43a3d91dff059034d699c9612dab68b8d9cdf556 09-Aug-2011 Mathias Agopian <mathias@google.com> free all buffers when ANativeWindow::disconnect is called

Change-Id: Ie06e73e5b44398cda9e99876f78175b5eef765dc
ui/SurfaceTexture.cpp
053b02df2d350466a2226a90709e50fedef54747 09-Aug-2011 Mathias Agopian <mathias@google.com> return correct value from query after connecting a surface

the first time a surface was connected, the values returned
by query NATIVE_WINDOW_DEFAULT_{WIDTH|HEIGHT} and
NATIVE_WINDOW_TRANSFORM_HINT were wrong until a call
to queueBuffer was performed.

Bug: 5137366, 5121607
Change-Id: I7ac6b5b0daa876638f6bed7c20f286a6e6d984f6
ui/ISurfaceTexture.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
fc4ba1141570fab7734e53586dc3d6f3afde10de 09-Aug-2011 Mathias Agopian <mathias@google.com> Merge "improve dumpsys SurfaceFlinger output"
03edb5d6a6d9b3f83ecbe0faf095f8748315b18f 09-Aug-2011 Mathias Agopian <mathias@google.com> Merge "add some logs to track a crash in eglCreateImageKHR"
95dfd05c2c13735e5dbc1ae9e06fdba1053ffd8e 09-Aug-2011 Mathias Agopian <mathias@google.com> add some logs to track a crash in eglCreateImageKHR

Bug: 5111008

Change-Id: I3e7f5b986151e80cbded39e0dec057770da52fc1
ui/SurfaceTexture.cpp
514a0b3612b282a1a5409782239c48dc20ba386f 09-Aug-2011 Stephen Hines <srhines@google.com> Merge "Migrate perf-critical functions away from librs."
0c3367f1bba78250ab9d05e105411ee326f8aee9 09-Aug-2011 Mathias Agopian <mathias@google.com> improve dumpsys SurfaceFlinger output

we now output the handle and size of all buffers of each layer.

Change-Id: I8d011ee4ae9199f4198bd07bed770ec3bcf02986
ui/SurfaceTexture.cpp
d1bfd12704de6704d6149f178dfacad6f62bf57e 09-Aug-2011 Jason Sams <rjsams@android.com> Add RS docs for rs_core.rsh

Change-Id: Ic961138b2ce7730b38c7673e83c8891407580306
s/scriptc/rs_core.rsh
e004058419dc1d3315274dbdf538e57769a2db9c 09-Aug-2011 Stephen Hines <srhines@google.com> Migrate perf-critical functions away from librs.

BUG=3497315

Change-Id: Ieaa0d64933767d422aa62740d72b31042dcd4a2f
s/driver/rsdRuntimeStubs.cpp
s/rsAllocation.h
00ac96b81947ae0ebb84dea599775623321e45fc 08-Aug-2011 Jason Sams <rjsams@android.com> Merge "Add docs to rs_types.rsh"
a00e6d8bf175034a9c6323b0177100978222d657 08-Aug-2011 Jason Sams <rjsams@android.com> Add docs to rs_types.rsh

Change-Id: Id2352f325c3ef9564cc226c6c5df908df16bb26a
s/scriptc/rs_math.rsh
s/scriptc/rs_types.rsh
75e0254731aa9d25945978584da44d3800f61327 08-Aug-2011 Alex Sakhartchouk <alexst@google.com> Merge "Fixing rs crash when no texture is bound."
4974bc1be68a77cf9709a8c50ef6de06ce8a3a0d 08-Aug-2011 Romain Guy <romainguy@google.com> Prevent crash when purging the gradients cache.
Bug #5133876

Change-Id: I3d1fa4e29498044796d725337ac93e6a1e8f0bcb
wui/GradientCache.h
bbc41c034b0b851287c24c3a51a17586d9960026 06-Aug-2011 Alex Sakhartchouk <alexst@google.com> Fixing rs crash when no texture is bound.

Change-Id: I2c15106f50de995c63691f27e2c4d89dbffc758e
s/driver/rsdProgram.cpp
s/driver/rsdShader.cpp
s/driver/rsdShader.h
8f019d63055ad76b94710b7b96e29625173584c4 05-Aug-2011 Stephen Hines <srhines@google.com> Merge "Start using bcinfo components within librs."
09f6d67f37d77853dd19fde79523edc524c7c9cd 04-Aug-2011 Wu-cheng Li <wuchengli@google.com> Merge "Add camera bayer image format."
70fb9085044c5e6f52c33c970d238b764cf2373b 02-Aug-2011 Wu-cheng Li <wuchengli@google.com> Add camera bayer image format.

The API are hidden.

bug:5086073

Change-Id: Ic9a53e5d5007ad3f12a28406ee25098227f14cbc
amera/CameraParameters.cpp
4382467a80dd12c6362d57edca7f2367f7ae877c 02-Aug-2011 Stephen Hines <srhines@google.com> Start using bcinfo components within librs.

BUG=4942491

Change-Id: I3a46783511c4954bac9eadbbbefe5abf85498c16
s/RenderScript.h
s/driver/rsdBcc.cpp
s/rsContext.cpp
s/rsContext.h
s/rsScriptC.cpp
s/rsScriptC.h
ec46b4e1ca89d7c3a9ad70ded58da08b5e19f08f 04-Aug-2011 Mathias Agopian <mathias@google.com> Add a 'release' method to the SurfaceTexture public Java API

Bug: 5063618
Change-Id: I689cb0c01c14e597ccfb4eb0972e64fa570bd4e8
ui/SurfaceTexture.cpp
7006064a28790af36d13794ee6d9cc50f9630a2a 03-Aug-2011 Romain Guy <romainguy@google.com> Merge "Paint style and stroke width affect text rendering. Bug #5112207"
bd496bc3d481f9cfc39007d22372d3a1a8809f96 03-Aug-2011 Romain Guy <romainguy@google.com> Paint style and stroke width affect text rendering.
Bug #5112207

Change-Id: Ic34037ace21a5058ba23dd15e51aae58c998454d
wui/FontRenderer.cpp
wui/FontRenderer.h
bb1e275c0e684dd213f124da77110cdd9d6f090c 29-Jul-2011 Wu-cheng Li <wuchengli@google.com> Pass camera frame metadata from camera service to Java.

bug:4460717
Change-Id: I2fae6e1dfca6b8f3a5ee5716fc7817f5417bf657
amera/Camera.cpp
amera/ICameraClient.cpp
0175028b73eefc503f67d5686b71e1957677e0de 02-Aug-2011 Wu-cheng Li <wuchengli@google.com> Merge "Add camera recording hint parameter."
25d8fb51dae37f1becf4fb3d32e8600c418eb6e8 02-Aug-2011 Wu-cheng Li <wuchengli@google.com> Add camera recording hint parameter.

The API is still hidden.

bug:4266229
Change-Id: I5e4c24e9e2808582aecb55ac4f1d5be3ed7e36a2
amera/CameraParameters.cpp
d6793460ea4ff9f345d21a454fa2100eb1524b87 02-Aug-2011 Shih-wei Liao <sliao@google.com> Merge "Finish the refactor work of bccPrepareExecutable"
4b512470716dee979c94b2b2c121ed3ad6eb19bf 02-Aug-2011 Romain Guy <romainguy@google.com> Merge "Reduce the amount of data cached by the gradients cache."
6203f6c8147069976342be8f42add797a50f9557 02-Aug-2011 Romain Guy <romainguy@google.com> Reduce the amount of data cached by the gradients cache.

Change-Id: I8546f5a5ecf38031c9a40bdcc434d4c7f22da63d
wui/Caches.cpp
wui/GradientCache.cpp
wui/GradientCache.h
wui/ResourceCache.cpp
wui/SkiaShader.cpp
2a2ec87b55d423ae91385d4e9f51725154b7a272 02-Aug-2011 Jeff Brown <jeffbrown@google.com> Merge "Refactor input reader to add stylus support. Bug: 5064702"
34e1fb1ee229a7e033dcd42f4efd194e1614d5ce 02-Aug-2011 Mathias Agopian <mathias@google.com> Merge "connect/disconnect is now called from our EGL wrapper"
de7c93948fd3d31b7cfbe6c32f3fcd6986484445 02-Aug-2011 Romain Guy <romainguy@google.com> Merge "Use high precision iterators on specific GPUs Bug #5098359"
a60c3889718f4513a6c9d8b80f655db5d6346905 02-Aug-2011 Romain Guy <romainguy@google.com> Use high precision iterators on specific GPUs
Bug #5098359

Change-Id: I52ee8c7b4c9e8d4c7bedb684eaf7bef6c44c74b9
wui/Debug.h
wui/Extensions.h
wui/ProgramCache.cpp
982d2da4eef0a48d84d88e3e1d2d1dbdbb413a27 30-Jul-2011 Mathias Agopian <mathias@google.com> connect/disconnect is now called from our EGL wrapper

the original connect/disconnect hooks are deprecated
and replace by api_connect/api_disconnect. the original
hooks are no no-ops.
api_connect/api_disconnect is now only called from the
android framework.

Bug: 5057915
Change-Id: I8ca64cd1acd6cabf915bf54689ec2e5f6dfa495a
ui/SurfaceTextureClient.cpp
i/FramebufferNativeWindow.cpp
d356b2d5e3fdc038f3170840ddc3cce35aab466b 01-Aug-2011 Jamie Gennis <jgennis@google.com> Merge "SurfaceTexture: allow set_buffer_count(2)"
be1aa8250cee7819c49741e819e81659d1d03823 28-Jul-2011 Jeff Brown <jeffbrown@google.com> Refactor input reader to add stylus support.
Bug: 5064702

Introduced the concept of an InputListener to further decouple
the InputReader from the InputDispatcher. The InputListener
exposes just the minimum interface that the InputReader needs
to communicate with the outside world. The InputReader
passes arguments to the InputListener by reference, which makes
it easy to queue them up.

Consolidated all of the InputReader locks into one simple global
Mutex. The reason this wasn't done before was due to potential
re-entrance in outbound calls to the InputDispatcher. To fix this,
the InputReader now queues up all of the events it wants to send
using a QueuedInputListener, then flushes them outside of the
critical section after all of the event processing is finished.
Removing all of the InputMapper locks greatly simplifies the
implementation.

Added tests for new stylus features such as buttons, tool types,
and hovering.

Added some helpers to BitSet32 to handle common code patterns
like finding the first marked bit and clearing it.

Fixed a bug in VelocityTracker where the wrong pointer trace
could get cleared when handling ACTION_POINTER_DOWN. Oops.

Changed PointerCoords so it no longer stores useless zero
axis values. Removed editAxisValue because it is not very
useful when all zero value axes are absent and therefore
cannot be edited in place.

Added dispatch of stylus hover events.

Added support for distance and tool types.

Change-Id: I4cf14d134fcb1db7d10be5f2af7b37deef8f8468
i/Input.cpp
i/tests/InputEvent_test.cpp
d995b08353a7e912fee6397710262bee7671ad38 31-Jul-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: allow set_buffer_count(2)

This change relaxes an error check in SurfaceTexture::setBufferCount to
allow clients to explicitly set a buffer count of 2. The clients that
will do this are camera and video decode. Previously it was thought
that for those clients we would always use async mode, which requires a
minimum of 3 buffers. However, we now believe that for some devices it
may make sense to use synchronous mode (with 2 buffers) to reduce memory
usage.

Bug: 5088418
Change-Id: I620a0ef75075745be9d6c8219e0246aaf33ba950
ui/SurfaceTexture.cpp
8ce8a1af7602f09f2b78b2c8ec03df316727c0c1 30-Jul-2011 Logan Chien <loganchien@google.com> Finish the refactor work of bccPrepareExecutable

Rename bccPrepareExecutableEx to bccPrepareExecutable.
(These functions are the same, and we will remove
bccPrepareExecutableEx several commits later.)

Change-Id: I519130bb3b731bf927cb92924f355d7d1ea0242c
s/driver/rsdBcc.cpp
8bb824566fa51b7d137305d7849a81a4764c6b7e 30-Jul-2011 Mathias Agopian <mathias@google.com> improve GraphicAllocator dump method

GraphicAllocator debugging cannot deal with
custom HAL formats. make this more obvious in the
log.

Change-Id: I202e58a7f213f32e725aa4eac62cdf6e50ca5894
i/GraphicBufferAllocator.cpp
b50149825fae95b2918bcf67b2ddb773b9797068 29-Jul-2011 Romain Guy <romainguy@google.com> Correctly apply linear filter to drawBitmap(Rect, Rect)

Change-Id: I1049282e1996b1020c92cb7bec46e9f28e94e967
wui/OpenGLRenderer.cpp
wui/SkiaShader.cpp
b6f7a27c59fd170b5d7617e43e21bfd8587f234e 28-Jul-2011 Romain Guy <romainguy@google.com> Merge "Reclaim more memory, more often."
65b345fa22b878e141b8fd8ece9c208df00fa40f 28-Jul-2011 Romain Guy <romainguy@google.com> Reclaim more memory, more often.

Yay.

Change-Id: I04557ad575c307a55088549f48f0e9ad994b7275
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/LayerCache.cpp
wui/LayerRenderer.cpp
wui/Properties.h
00fd1fc9b38a2e59b5ab5ad3f19a6e581dc5f428 28-Jul-2011 Ying Wang <wangying@google.com> Merge "Fix uses of all-subdir-makefiles"
d84d6c7b1acb527c289b5ed7fcebe2ee6a5a01ff 28-Jul-2011 Ying Wang <wangying@google.com> Fix uses of all-subdir-makefiles

We should use all-makefiles-under instead.
all-subdir-makefiles can be used only before any "include" statement.
Before this change, both subdirs were actually not included.

Change-Id: I6bf35d07f294a5012c9322096f999ac26e37432f
i/tests/Android.mk
c8ec222cd8e7d7056b0f01018ac0c38d2c7204c0 28-Jul-2011 Romain Guy <romainguy@google.com> Merge "Destroy layers and flush layers cache when a window is destroyed."
6d7475d666baefaa3ba9f0dcee25238739454241 28-Jul-2011 Romain Guy <romainguy@google.com> Destroy layers and flush layers cache when a window is destroyed.

Change-Id: I3fa1bc3ff50fb99e3d2e490925bd6b0a0f809fff
wui/Caches.cpp
wui/Caches.h
wui/DisplayListRenderer.h
4f35092af55d569975e6931ee6e8c0343f749d1e 28-Jul-2011 Kenny Root <kroot@google.com> Merge "Move extract native libraries to JNI code"
a12036bc97cd89afa9a6746f5e61ce5e773fb996 27-Jul-2011 Jason Sams <rjsams@android.com> Merge "Add const to matrix by vector multiply routines. Cleanup ifdef for rsForEach."
4575a8e4de2cd5486dfd5b6afb701c7f167ff508 27-Jul-2011 Jason Sams <rjsams@android.com> Add const to matrix by vector multiply routines.
Cleanup ifdef for rsForEach.

Change-Id: Id0d053f5dc73fef7dffed57ed02e90340b6cb798
s/scriptc/rs_core.rsh
s/scriptc/rs_math.rsh
eea60692b060737faeaa02bb30f5b79e2202b482 27-Jul-2011 Romain Guy <romainguy@google.com> Improve layers debugging

Change-Id: Ia4950dd5f0e0a224ecb69c581d33aa4f32260a7c
wui/LayerCache.cpp
wui/LayerCache.h
wui/LayerRenderer.cpp
912a7b32d0c59ba38265c5dd6ff84ce93f909a7f 27-Jul-2011 Romain Guy <romainguy@google.com> Make sure we have a current EGL context when invoking EGL
Bug #5081795

Change-Id: Iee3382d362a71c1e6c5c498b319bf7f7bcf5a2f0
wui/Layer.h
wui/LayerCache.cpp
wui/TextureCache.cpp
4c2292efbbfe7338138a9a0e8eefeaabdef1a0b4 21-Jul-2011 Wu-cheng Li <wuchengli@google.com> Add camera face detection API.

API are still hidden.

bug:4460717
Change-Id: I1a515061f141a89bd61c875257712789fb15d2d4
amera/CameraParameters.cpp
686200cb5f3e80c0b0519ec14cc54b280a560863 26-Jul-2011 Mathias Agopian <mathias@google.com> Merge "remove dead code and member variables."
66269ea6f68f2f25888ce1080c94ac782742fafc 12-Jul-2011 Kenny Root <kroot@google.com> Move extract native libraries to JNI code

The built-in ZipFile class was quite a long time to find an unpack
libraries. Move everything to using the libutils ZipFileRO class that
goes quite a bit faster. Initial measurements are 6 times faster than
the Java code.

Also, read files off the disk and compare their CRC against the APK's
CRC to see if we need to write the new file to disk. This also cuts down
the bootup time by up to a second per APK that has native files.

Change-Id: Ic464a7969a17368fb6a6b81d026888c4136c7603
tils/tests/Android.mk
tils/tests/ZipFileRO_test.cpp
f3503c2c30dc0b7eb7603998469f437136497c5c 26-Jul-2011 Mathias Agopian <mathias@google.com> remove dead code and member variables.

also fix some comments and improve debugging logs.

Change-Id: I83e55309f306332b59e1ec46104c4a7fffbf3c97
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
fa93052d91ab6e6da3195ce3872c4543beb6d5c9 26-Jul-2011 Kenny Root <kroot@android.com> am 64ed1059: am e612c881: am 4f3a8db6: am 3cf03987: Merge "Continue idmap generation even if name lookup fails."

* commit '64ed105957098a900d58e7c2598e060cb37755ce':
Continue idmap generation even if name lookup fails.
176f3e1b77d74b3b00cac98792f5d9564b935990 26-Jul-2011 Romain Guy <romainguy@google.com> Merge "Improve rendering performance on some GPUs"
e3c26851dc315b730ea0fe5ef35bb1db81f6d675 26-Jul-2011 Romain Guy <romainguy@google.com> Improve rendering performance on some GPUs

This change sets textures filtering to GL_NEAREST by default. GL_LINEAR
filtering is only used when textures are transformed with a scale or
a rotation. This helps save a couple of fps on some GPUs.

Change-Id: I1efaa452c2c79905f00238e54d886a37203a2ac1
wui/GradientCache.cpp
wui/Layer.h
wui/LayerCache.cpp
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/ShapeCache.h
wui/SkiaShader.cpp
wui/TextDropShadowCache.cpp
wui/Texture.h
wui/TextureCache.cpp
c854b9c05eafdaeb7e33c8e8bbcbce3668ac7ec6 25-Jul-2011 Jason Sams <rjsams@android.com> Merge "Add size param to rsForEach bug 5074640"
cf57dec80b3d34f09fd22693fa5a07a3f3a9ea83 25-Jul-2011 Jason Sams <rjsams@android.com> Add size param to rsForEach
bug 5074640


Change-Id: I395bd8b295beacc979681ccdd3451d9d6cc3d672
s/driver/rsdRuntimeStubs.cpp
s/scriptc/rs_math.rsh
s/scriptc/rs_types.rsh
64ed105957098a900d58e7c2598e060cb37755ce 25-Jul-2011 Kenny Root <kroot@android.com> am e612c881: am 4f3a8db6: am 3cf03987: Merge "Continue idmap generation even if name lookup fails."

* commit 'e612c881ecf74770098aa9c07d4f0611ac982038':
Continue idmap generation even if name lookup fails.
d50aef50f640723e95ca270441161dfb042115d0 25-Jul-2011 Jamie Gennis <jgennis@google.com> Merge "SurfaceTexture: enable RGB external textures"
5518dd92d38edd5902482841413722aa654cc2e7 25-Jul-2011 Ted Bonkenburg <tedbo@google.com> Merge "Add support for creating a Surface from a a SurfaceTexture."
0de171b0d490a5928d54d2fb67c912d140aac643 16-Jul-2011 Ted Bonkenburg <tedbo@google.com> Add support for creating a Surface from a a SurfaceTexture.

The Surface is already using SurfaceTexture internally and it is parcelable. This
is intended to replace and phase out ParcelSurfaceTexture in favor of creating a
new Surface.java object from an existing SurfaceTexture.

Change-Id: I8e2dd86614523da6abed6403e1d705a68fa19fdf
ui/Surface.cpp
ecfa1d3a7941a4f1a9c381c9c7419ecd0bd86967 20-Jul-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: enable RGB external textures

This change removes support for conditionally using the GL_TEXTURE_2D
target for SurfaceTexture textures with RGB buffers. It also enables
and fixes the RGB-based SurfaceTexture tests.

Change-Id: I9a251a981cf66af6b048b2e4c3fe7231e4774f4d
ui/SurfaceTexture.cpp
ui/tests/SurfaceTexture_test.cpp
5ef59bc764d6bcd0ccf0a266d7d9ab792668a3e9 19-Jul-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: add the abandon method.

This change adds the 'abandon' method to the SurfaceTexture C++ class.
This method may be used to put the SurfaceTexture in an abandoned state,
causing all ISurfaceTexture methods to fail.

Change-Id: Ibd261f7b73f44e2bec36a8508bf92113cfb7cf95
ui/ISurfaceTexture.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
ui/tests/SurfaceTexture_test.cpp
b71a4beb1afb3f91201cd416e8e56733ba17913e 21-Jul-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: add a deadlock scenario test

This change adds a test to ensure that a GL driver that's blocking on a
call to dequeueBuffer does not block other GL threads from rendering and
queueing buffers.

Change-Id: Ifdd234effc534b6a9cf8522ca87f64da5bb0bbd6
ui/tests/SurfaceTexture_test.cpp
95b404228547eb771700e6cbb927adc282aebccd 22-Jul-2011 Jamie Gennis <jgennis@google.com> Merge changes I799532f7,I5cffa6eb

* changes:
SurfaceTexture: fix a comment
SurfaceTexture: remove getAllocator
672a05f0cf0db27f21fcb358696d567ba9859cfb 22-Jul-2011 Mathias Agopian <mathias@google.com> Merge "Fix a few issues with NATIVE_WINDOW_TRANSFORM_HINT"
08695111cffd239d0f9917ff197c86e12e2e150c 22-Jul-2011 Jeff Brown <jeffbrown@google.com> Merge "Decouple GLES20RecordingCanvas lifetime from GLES20DisplayList. Bug: 5062011"
162a0217563f4665da6eb183dfce0fef740f641f 22-Jul-2011 Jeff Brown <jeffbrown@google.com> Decouple GLES20RecordingCanvas lifetime from GLES20DisplayList.
Bug: 5062011

Previously, each GLES20DisplayList would hold onto an instance of
GLES20RecordingCanvas. In turn, each GLES20RecordingCanvas
held onto an SkWriter with a 16Kb buffer along with several other
objects. With one display list per view and hundreds of views,
the overhead could add up to a few megabytes.

Ensured that the GLES20RecordingCanvas is reset as soon as
the display list has been constructed, thereby promptly freeing
the 16Kb buffer.

Changed GLES20DisplayList so that it acquires a GLES20RecordingCanvas
from a pool as needed and recycles it when done.

Removed some dead code and cruft related to the construction of
GLES20Canvas objects in general. Some code was written with the
assumption that the underlying renderer object could change
behind the scenes or might be lazily constructed, but that isn't
actually the case so we can simplify things.

Removed an unnecessary weak reference from GLES20DisplayList
to the View. It isn't actually used anywhere.

Fixed a bug in GLES20DisplayList where isValid() would return
true while the display list was being recorded. This is incorrect
because the native display list might not actually exist. Worse,
even if the native display list does exist, it is stale and
potentially refers to old Bitmaps that have been GC'd (because the
mBitmaps list was cleared when recording started).

Change-Id: Ib12d5483688cb253478edeb0156d34c476c2566b
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
45b63dd11c10927122e3eb3eae5ac702cb24f5b8 21-Jul-2011 Mathias Agopian <mathias@google.com> Fix a few issues with NATIVE_WINDOW_TRANSFORM_HINT

- fixed uninitialized variable
- set hint to indentity when transform is too complex
- make sure FrameBufferNativeWindow doesn't fail on needed perform commands

Bug: 4487161
Change-Id: I7cb2b0869b72404732eca7cb2d145ff669e2ed9b
ui/SurfaceTextureClient.cpp
i/FramebufferNativeWindow.cpp
5c23a2c72d1c3d2c423355ae301e0822e1662b9f 19-Jul-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: remove getAllocator

This change removes the SurfaceTexture::getAllocator method, as it's no
longer needed. Proper refcounting of the Gralloc buffers is now handled
by the IGraphicBufferAlloc binder marshalling code.

Change-Id: I5cffa6ebfc1bc5828fb7ce0e0a5b2f55cd8479da
ui/ISurfaceTexture.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
4f3a8db64d75cd3e88213d3b105dc50fc5bd6262 21-Jul-2011 Kenny Root <kroot@android.com> am 3cf03987: Merge "Continue idmap generation even if name lookup fails."

* commit '3cf039876177b5b314b635bb12a1dae1b42f4605':
Continue idmap generation even if name lookup fails.
3cf039876177b5b314b635bb12a1dae1b42f4605 21-Jul-2011 Kenny Root <kroot@android.com> Merge "Continue idmap generation even if name lookup fails."
f5a4dd386fcbe200ad9c5d06ecf66d31ba8d4e30 21-Jul-2011 Mathias Agopian <mathias@google.com> Merge "clean-up. get rid ofunused code and members in Surface[Control].cpp"
95661d5ece0bd3646581edad62f18e3e4468ab5c 21-Jul-2011 Jeff Brown <jeffbrown@google.com> Merge "Remove unimplemented memory pool."
50c24a2000c785f8be2367e1fc7938a5eda5c9e8 21-Jul-2011 Mathias Agopian <mathias@google.com> clean-up. get rid ofunused code and members in Surface[Control].cpp

Change-Id: Ia7790ae28af2c2ac99eae01c2c5044ace4a490a4
ui/ISurfaceComposerClient.cpp
ui/Surface.cpp
ui/SurfaceComposerClient.cpp
ui/tests/SurfaceTextureClient_test.cpp
ac386073df2514b79a2ca169f4a89f129733002f 21-Jul-2011 Jeff Brown <jeffbrown@google.com> Remove unimplemented memory pool.

dlmalloc does such a great job that we don't need a pool anyways.

Change-Id: I105b28c4a5c491543959190c7c0a9de75a5b8052
tils/Android.mk
tils/Pool.cpp
eac3503deb95bee21f811cc14ad26fa5aeca98f0 20-Jul-2011 Alex Sakhartchouk <alexst@google.com> Merge "Correctly call glviewport when surface changes."
10ed04935d19ff87169499a7c1c7d8256cf13fe0 20-Jul-2011 Alex Sakhartchouk <alexst@google.com> Correctly call glviewport when surface changes.

Change-Id: I7ef1539e39ea67245bac5ee410deb5918fc5dfcf
s/rsContext.cpp
s/rsFBOCache.h
588bf7a53e844473dc9be6828a893664935121de 20-Jul-2011 Stephen Hines <srhines@google.com> Merge "Extract BC metadata using a single call."
9ec1f1d259f9dfc4a9359739e4711ba1a99375b2 20-Jul-2011 Mathias Agopian <mathias@google.com> Merge "implement: "Add an ANativeWindow API for SurfaceFlinger to suggest an optimal buffer orientation""
f07b8a3f691be39083fb5163f9456bcfa566f93f 20-Jul-2011 Mathias Agopian <mathias@google.com> implement: "Add an ANativeWindow API for SurfaceFlinger to suggest an optimal buffer orientation"

Bug: 4487161
Change-Id: I883f34efe542c2a566d04966f873374f40c50092
ui/ISurfaceTexture.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
i/FramebufferNativeWindow.cpp
1003aeb9dee6cb9ccb9991b32a6be94cd933d0ce 20-Jul-2011 Romain Guy <romainguy@google.com> Merge "Reduce the fade area to save bandwidth."
f2fc460a9512500d9d5749fbaada88903d8e3b22 20-Jul-2011 Romain Guy <romainguy@google.com> Reduce the fade area to save bandwidth.

Change-Id: I8ccea17fc1fb3c132329baa0acc1b3d5a140a5c6
wui/OpenGLRenderer.cpp
ff86f37b95327538b97b6b8ef5d3c6ed0cd7f902 19-Jul-2011 Mathias Agopian <mathias@google.com> use SurfaceTexture new scaling mode in SF

SF now obeys SurfaceTexture's scaling mode instead
of inferring it from the buffer's size

Change-Id: I4d50e9851abedd7e64bfcfc8af9eefb9fb668529
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
09d7ed7b395d66be97c6bcb052039f5c0dce646c 14-Jul-2011 Mathias Agopian <mathias@google.com> Add set_scaling_mode() to ANativeWindow.

This allows to specify the scaling mode independently from
the buffer size.

Change-Id: Iaa2baa660445531a97d3fac192e580f4929c5d3b
ui/ISurfaceTexture.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
i/FramebufferNativeWindow.cpp
c27d18756933e6b04ba39c07154dba97cec74903 19-Jul-2011 Stephen Hines <srhines@google.com> Extract BC metadata using a single call.

BUG=4278636

Change-Id: Idc056c4fa50240aadbc81d300fbed759c5a187cf
s/Android.mk
s/driver/rsdBcc.cpp
f40aa3834d92bfb516e0f865375103d81e3de71d 19-Jul-2011 Romain Guy <romainguy@google.com> Merge "Trim OpenGLRenderer's memory usage whenever possible"
f4f79ac42a318145397327cd6a0d1f421c6c00f0 19-Jul-2011 Jamie Gennis <jgennis@google.com> Merge "SurfaceTexture: add a multi-SurfaceTexture test"
bdf7609867a3f886455c51dba91623a86cceb6e2 19-Jul-2011 Romain Guy <romainguy@google.com> Trim OpenGLRenderer's memory usage whenever possible

Change-Id: I9225077184f374b1a43300add15cc1d5b6869d1c
wui/Caches.cpp
wui/Caches.h
wui/Debug.h
10e6f34a67b77c17286e2438485bac5f63776116 18-Jul-2011 Mathias Agopian <mathias@google.com> Merge "move lock/unlock implementaion outside of Surface into SurfaceTextureClient"
949be32b671304d5281ac0abbf30dcf4ebaa9eaf 14-Jul-2011 Mathias Agopian <mathias@google.com> move lock/unlock implementaion outside of Surface into SurfaceTextureClient

This makes ANativeWindow_lock/ANativeWindow_unlockAndPost work
with ANativeWindows implemented by Surface and SurfaceTextureClient.

Also, Surface now inherits directly from SurfaceTextureClient.

Bug: 5003724
Change-Id: I9f285877c7bae9a262e9a7af91c2bae78804b2ef
ui/Surface.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
i/FramebufferNativeWindow.cpp
170626b2bafe4b708aab043313867a66d5e6b972 16-Jul-2011 Glenn Kasten <gkasten@google.com> Fix build break on MacOS

Change-Id: Ica19984d0e623ac2482fc3512231e6c00671fd3a
pustats/Android.mk
7e7de71f6eef5652ee1260e40215804a2ce543c3 16-Jul-2011 Glenn Kasten <gkasten@google.com> Merge "CPU statistics library"
131515b681e26e3f4d8c21cc6b540142a3526712 08-Jul-2011 Glenn Kasten <gkasten@google.com> CPU statistics library

Change-Id: I113e2a926466cc410cfa5602ceb165b390a290fc
pustats/Android.mk
pustats/CentralTendencyStatistics.cpp
pustats/ThreadCpuUsage.cpp
97912d0b9d3ffc8412d10661a88931a68fa4c5d3 15-Jul-2011 Jamie Gennis <jgennis@google.com> Merge "SurfaceTexture: fix SurfaceTextureGLToGLTest"
e173b9d73bfe232303567a573ca25f2432d066d2 15-Jul-2011 Alex Sakhartchouk <alexst@google.com> Merge "For the serialization context, no fifo initialization is necessary."
d639f4579c0261a321039aee4691e0e0747bcd60 15-Jul-2011 Jeff Brown <jeffbrown@google.com> Merge "Add a call to pthread_attr_destroy to avoid potential memory leaks."
d2734a5daae91869949218a322a35e7423e59a9a 15-Jul-2011 Mathias Agopian <mathias@google.com> fix a typo in ISurfaceTexture IPC code

Change-Id: Ied1d9ddb0d849b17219d0ea3d333ce12be849419
ui/ISurfaceTexture.cpp
da13560de2d8eddf08c0f37b181ba321f02716b4 14-Jul-2011 Le-Chun Wu <lcwu@google.com> Add a call to pthread_attr_destroy to avoid potential memory leaks.

Change-Id: Ib57efc3530e9793298190cc9cab19c9af54e11a7
tils/Threads.cpp
06b54d7184e015256ad1817e381f61eb7514a3e2 15-Jul-2011 Jamie Gennis <jgennis@google.com> Merge changes Id9aa1003,I8c154189

* changes:
SurfaceTexture: make (dis)connect into an IPC
SurfaceTexture: add support for new connect values
9709687463dc5f1255f435e57b3d2beed8b70330 14-Jul-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: make (dis)connect into an IPC

This change makes the ANativeWindow connect and disconnect calls result
in an IPC to the SurfaceTexture object. This will allow us to prevent
multiple simultaneous connections from different processes.

Change-Id: Id9aa1003b1335b96ca6bd4a1f5a67aa433d42efb
ui/ISurfaceTexture.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
ec7ea37a0e910afae2490ff743d7f6165ae67408 15-Jul-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: fix SurfaceTextureGLToGLTest

This change fixes a couple different issues in the
SurfaceTextureGLToGLTest test fixture:
- incorrect use of conditions
- move logging after the locks are acquired
- call the parent class's TearDown method
- clean up the SurfaceTexture before eglTerminate gets called

Change-Id: I6960e5ab7f144225f01a2089d3f849c99fed0b38
ui/tests/SurfaceTexture_test.cpp
a775f0d4193dffc336b295dc06056f81801eba9e 13-Jul-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: add support for new connect values

This change adds support to SurfaceTextureClient for the new enum values
that can be passed to the ANativeWindow connect call.

Change-Id: I8c15418909e43a15673a9b22a5eb40df6923b273
ui/SurfaceTextureClient.cpp
ab561139f9e9c9df8a450f2990ad6588fa690e38 14-Jul-2011 Jeff Brown <jeffbrown@google.com> Minor code cleanups in vector.

Fixed a potential bug where calling replaceAt with a reference to
an existing element in the vector at the same index would cause
the element to be destroyed while being copied to itself.

Refactored the conditions in _grow and _shrink for clarity.
The computations are exactly the same but I think it reads better
this way. In particular, the ssize_t variable 's' is gone: it didn't
need to be signed anyways because its value could never be negative.

Change-Id: If087841c15e6a87160eee874720c4a77eb0e99a6
tils/VectorImpl.cpp
11bf79d6e3542e40ebd212b0f5d7cb3370f3068d 14-Jul-2011 Jeff Brown <jeffbrown@google.com> Replace Vector _grow/_shrink checks with assert.

On review of the code, _grow and _shrink are checking for conditions
that cannot happen and that don't even really make sense. For
example, if _shrink is called with where + amount > mCount then
this is really bad, however the check only considered the case
when where >= mCount and then it would arbitrarily choose a new
value for where. Huh?

As it happens, the callers are correctly validating the
arguments before passing them down to these methods so we can
get rid of this code.

Change-Id: I921852dba8997065bb0e9cac733e82028d14afcd
tils/VectorImpl.cpp
f7537bccb2b2ca2fa6c0205c4b24acd0836c0006 14-Jul-2011 Jeff Brown <jeffbrown@google.com> Provide more descriptive name for InputChannel ashmem.

Change-Id: I4307de9f717ac4810b1b91ee0c1a3899325acf71
i/InputTransport.cpp
1bfcceaca6eb26594ab28bb68638bb480efa1879 14-Jul-2011 Alex Sakhartchouk <alexst@google.com> For the serialization context, no fifo initialization is necessary.

On shutdown it was attempting to free uninitialized memory.

Change-Id: I9141be5a51253f87f21594ae38f7e653f9e69c6c
s/rsContext.cpp
s/rsLocklessFifo.cpp
s/rsThreadIO.cpp
e67ebacd15feecc359ed911a1135ffe9a633fb0d 14-Jul-2011 Mike Lockwood <lockwood@android.com> Merge "Remove some #ifdef HAVE_ANDROID_OS that were needed for the simulator build"
c1b9bbb21c8ad5109978a4e9e770cd18b0257434 13-Jul-2011 Mike Lockwood <lockwood@android.com> Remove some #ifdef HAVE_ANDROID_OS that were needed for the simulator build

Change-Id: I13d9f251f86c05ae5405f37adbf6b8e9660935ba
Signed-off-by: Mike Lockwood <lockwood@android.com>
inder/ProcessState.cpp
b328269531691a122a48b375676d1ec70b1e705f 14-Jul-2011 Jason Sams <rjsams@android.com> Merge "Fix native crash when GL driver fails to initialize."
fb06b7a5510e4c6f6c4b3cd51cca22493cd258ca 14-Jul-2011 Jason Sams <rjsams@android.com> Fix native crash when GL driver fails to initialize.

Change-Id: I85714de9029285027dc75fb3b62076be41a4c985
s/rsContext.cpp
f953dee175a6c7af87c80fdcf7fe2df75e478340 14-Jul-2011 Kenny Root <kroot@google.com> Merge "Fix debugging for hwui caches"
9a79cda53b1cdb6b281fa8e8cc257f1671aba202 14-Jul-2011 Christopher Tate <ctate@google.com> Merge "Compress the backup output stream"
7926a693c4a4f4d2a2d352343bca23e189c7420d 11-Jul-2011 Christopher Tate <ctate@google.com> Compress the backup output stream

Zlib compression, with a full flush between each application's
data. Encryption will be performed on the already-compressed data
once that's implemented.

On restore, the streamed data is similarly uncompressed on the fly.

Change-Id: I19b65c88e759a66527d10913d18fffa9df0bc011
tils/BackupHelpers.cpp
3ac60ada279e2cd24001c0f084982b7e14532ea6 13-Jul-2011 Jason Sams <rjsams@android.com> Merge "Add slot number to forEach hal."
92b0eab07e0ec653975dd940f4af3ceeb68ad3a8 13-Jul-2011 Jason Sams <rjsams@android.com> Add slot number to forEach hal.

Change-Id: I0f2992d5f4128422d07f897b335c219cc7f1d02c
s/driver/rsdBcc.cpp
s/driver/rsdBcc.h
s/rsScriptC.cpp
s/rs_hal.h
042f7d64b5ccd7b5b73e7e9814a84576f04fb7d4 13-Jul-2011 Kenny Root <kroot@google.com> Fix debugging for hwui caches

Debugging code attempted to delete a stack item.

Also, the flag fields weren't exactly clear, so rewrite it so it's
clear that kDebugMoreCaches is a combined flag.

Change-Id: If42b7f0f754919343301da5656aee5943cc9bd4a
wui/Caches.cpp
wui/Properties.h
5b7da3d3df08ebe8470fbf8303804c547d20d1c0 13-Jul-2011 Alex Sakhartchouk <alexst@google.com> Merge "Fix for the renderscript ref counting bug."
4b013ee9b72a1a5198ec0939bbe463463b0ebcb2 12-Jul-2011 Alex Sakhartchouk <alexst@google.com> Fix for the renderscript ref counting bug.

This only manifested itself in the situations where elements containing multiple ref counted objects were copied from Java.

Change-Id: I2c1cc89fe7f792259b3f033674142eb33d17a507
s/rsElement.cpp
8c55a9a57e4f13ec420c3de7b3abfdcf454f6633 12-Jul-2011 Jeff Brown <jeffbrown@google.com> Merge "Remove the simulator target from all makefiles. Bug: 5010576"
bd882b1c8708686d373c56e07e6bb8b1cb6ffd9e 12-Jul-2011 Jeff Brown <jeffbrown@google.com> Remove the simulator target from all makefiles.
Bug: 5010576

Change-Id: I04d722f258951a3078fe07899f5bbe8aac02a8e8
amera/Android.mk
ui/Android.mk
ui/tests/Android.mk
s/Android.mk
torage/Android.mk
urfaceflinger_client/Android.mk
i/Android.mk
i/tests/Android.mk
tils/Android.mk
tils/tests/Android.mk
5263454243e3be173dee11130c312d1420e0397b 12-Jul-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: add a multi-SurfaceTexture test

This change adds a test that does simple, unverified GL rendering to
multiple SurfaceTextures.

Change-Id: I51a41d68ae5a27e01ae93842242897b0d3558ca6
ui/tests/SurfaceTextureClient_test.cpp
e92963c3f97e3b06226ec2a054012b59c744dca0 12-Jul-2011 Mathias Agopian <mathias@google.com> Merge "Fix typo in an assert's log"
cf7e3a5984e1709004d3e1138780d60f97f46e75 12-Jul-2011 Mathias Agopian <mathias@google.com> Fix typo in an assert's log

Change-Id: I94883a23a0a92eaf3e4976f942f747a2137499ac
tils/VectorImpl.cpp
308f9f6b248402c67d73c3ad48f5b6b888bab7b7 12-Jul-2011 Jamie Gennis <jgennis@google.com> Merge "EGL: fix the ANativeWindow size/fmt override"
501c4671e73a484c1f01d94f4f5fff124c05f197 11-Jul-2011 Jeff Brown <jeffbrown@google.com> Merge "Eliminate single-process mode. Bug: 5010576"
97eae025ad857e33dce5b3d1d4fd5fe5813d2a80 01-Jul-2011 Jamie Gennis <jgennis@google.com> EGL: fix the ANativeWindow size/fmt override

This change fixes how the Android EGL layer overrides the size and
format of an ANativeWindow in eglCreateWindowSurface. The new behavior
is to leave the size untouched when overriding the format. The previous
behavior was to reset the ANativeWindow to use the default size set by
the ANativeWindow implementation.

It also adds two new 'perform' methods to the ANativeWindow interface:
set_buffers_dimensions and set_buffers_format, and redefines the
behavior of set_buffers_geometry to be the combination of these two new
methods.

Additionally, this change adds an error check for the return value of
the new native_window_set_buffers_format call, which required adding a
(stub) handler for to FramebufferNativeWindow.

Change-Id: I805c7ccd8d4730dfb132d10d8bc3fb058a0b9df1
ui/SurfaceTextureClient.cpp
i/FramebufferNativeWindow.cpp
ef72ff220c8bf6c8d7753f30ddaad89d4d8cada9 11-Jul-2011 Logan Chien <loganchien@google.com> Use resource entry name instead of mangled name.

Change-Id: I833fa1b529fe505ce20ede12b7f4b5952a6ac1f0
s/driver/rsdBcc.cpp
e723caee39fd154c4b9da93e0461a8aedc328cee 10-Jul-2011 Logan Chien <loganchien@google.com> Fix typo: mFieldCount -> mPragmaCount.

Change-Id: I081a521c13a78bc5ec1bf9faecb066bed5ca8ab4
s/driver/rsdBcc.cpp
10e89712863f5b91a2982dc1783fbdfe39c1485d 09-Jul-2011 Jeff Brown <jeffbrown@google.com> Eliminate single-process mode.
Bug: 5010576

Change-Id: Id450dc83efed4897d1e4ff451530fed14457aace
inder/ProcessState.cpp
3b240117d110e261de430127534f7bb460f67dab 09-Jul-2011 Romain Guy <romainguy@google.com> Merge "Align paths on pixel boundaries when rasterizing in bitmaps. Bug #5003739"
40c4b86b72d416585335940f928124426d715e59 09-Jul-2011 Romain Guy <romainguy@google.com> Align paths on pixel boundaries when rasterizing in bitmaps.
Bug #5003739

Change-Id: I3dfbf4eb92e2c870f33c96947a7d6439e3730965
wui/ShapeCache.h
1861786a97209ed75010a54cca5167593dbfec21 07-Jul-2011 Mathias Agopian <mathias@google.com> Fix EGLUtils::selectConfigForPixelFormat()

- renderscript now calls EGL directly instead of relying on this function
- surfaceflinger also does its own EGLConfig selection
- selectConfigForPixelFormat stays for legacy reason (many tests use it) but
it now only tries to match the alpha channel of the format rather than the
format itself.

this will allow implementations who don't support the exact formats
defined in the HAL to work properly.

Bug: 4998223

Change-Id: Ic664dfc14d5072a514b6f77a115d1521bfc1578f
s/driver/rsdGL.cpp
i/EGLUtils.cpp
44476779aec2082b902a04394281206511b64322 08-Jul-2011 Romain Guy <romainguy@google.com> Merge "Correctly position layers."
b2479153b743df9e54f7e17c7132a5ecd87fa453 08-Jul-2011 Romain Guy <romainguy@google.com> Correctly position layers.

Change-Id: I1678b1c5bdab140b44e56556c50ab8329255f18a
wui/OpenGLRenderer.cpp
33eafef1a9ef508f7b1ae1edf4caf29b81a80255 23-Jun-2011 Glenn Kasten <gkasten@google.com> Add C++ thread API androidGetThreadSchedulingGroup

This API is intended for applications that need to read a thread's
scheduling group, while using the higher-level (C++) family of thread APIs.

Change-Id: I5e58017f74c3989b20b5b1cc2bc4483c95720520
tils/Threads.cpp
e92096fa6ad01eb022386d2ca536d99bc068e817 08-Jul-2011 Romain Guy <romainguy@google.com> Merge "Use NEAREST filtering mode for TextureView.getBitmap()."
ec19b4a764d512091a780fc93ced567dfbf80914 08-Jul-2011 Romain Guy <romainguy@google.com> Use NEAREST filtering mode for TextureView.getBitmap().

Change-Id: I4649062bbdf18ebba7924bdf578f39ad8f6576ac
wui/LayerRenderer.cpp
wui/OpenGLRenderer.cpp
69abbd8791f57f39a861c6f569da2f712bb6b5db 08-Jul-2011 Romain Guy <romainguy@google.com> Merge "Use NEAREST filtering for layers whenever possible."
9ace8f5e79e76893fe4ca9e4d10f6c4056330485 08-Jul-2011 Romain Guy <romainguy@google.com> Use NEAREST filtering for layers whenever possible.

Change-Id: Id5bee1bd4a322cf93e8000b08e18f1e1b058648e
wui/Layer.h
wui/LayerCache.cpp
wui/LayerCache.h
wui/LayerRenderer.cpp
wui/OpenGLRenderer.cpp
wui/Texture.h
19a695c477e563b79056aeb8400ce622cbd54f85 07-Jul-2011 Jamie Gennis <jgennis@google.com> Merge "SurfaceTexture: enable newly passing tests."
413b3f7382048919933542604515250ca7bf19de 06-Jul-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: enable newly passing tests.

This change enables the following four SurfaceTextures tests:
UpdateTexImageBeforeFrameFinishedWorks
UpdateTexImageAfterFrameFinishedWorks
RepeatedUpdateTexImageBeforeFrameFinishedWorks
RepeatedUpdateTexImageAfterFrameFinishedWorks

Change-Id: I7632630bc97873e50d4a765ffc44a86f16ae62f1
ui/tests/SurfaceTexture_test.cpp
5161eb7b233cf3b806046fd935f248b3844d9bd7 06-Jul-2011 Glenn Kasten <gkasten@google.com> Merge "Add Thread::join"
7893c5e83c72566a049bb25f633bb7e361801342 06-Jul-2011 Mathias Agopian <mathias@google.com> Merge "fix ScreenshotsOfProtectedBuffersFail"
7eef784ea9764c9ca86efb730fcdceda51a0ea87 06-Jul-2011 Mathias Agopian <mathias@google.com> Merge "return an error code with gralloc buffer allocation failures"
4431c05f136bc1073b368221e3515aaf7fe8424e 06-Jul-2011 Glenn Kasten <gkasten@google.com> Merge "Thread ID zero for androidSetThreadSchedulingGroup"
994e7619a676716de1b018b79946d415f2a305d3 02-Jul-2011 Mathias Agopian <mathias@google.com> fix ScreenshotsOfProtectedBuffersFail

- put the test window at the front most screen position
- use RGBA_8888 which is a mandatory format
- handle devices that don't support the protected usage flags

Bug: 4950464

Change-Id: I0005fb667cfe094e5978816e2924b294c5ef817e
ui/tests/Surface_test.cpp
eec0f7ebac85d3d1b1151e62b2ed0f25c138d447 01-Jul-2011 Mathias Agopian <mathias@google.com> return an error code with gralloc buffer allocation failures

Change-Id: I471e5d37ea7a42fc8a0f93446ee3b4229da37807
ui/IGraphicBufferAlloc.cpp
ui/SurfaceTexture.cpp
ea458f190b5f496f80bf98a6ccaca2d46274cebc 01-Jul-2011 Pannag Sanketi <psanketi@google.com> Merge "Minor fix in SurfaceTexture"
c9ec69eb6f07881e1d0582156e5697eff69f5546 24-Jun-2011 Pannag Sanketi <psanketi@google.com> Minor fix in SurfaceTexture

Change-Id: Ic859715becf3e6d5107bd8beb8c577034d00ec52
ui/SurfaceTexture.cpp
272aaa382f95c38221739f2287c29e414523a5cc 30-Jun-2011 Mathias Agopian <mathias@google.com> Merge "SF transactions are now O(1) wrt IPC instead of O(N)."
439863f3b3e725b5de1cba4940a21900369961c0 29-Jun-2011 Mathias Agopian <mathias@google.com> SF transactions are now O(1) wrt IPC instead of O(N).

Change-Id: I57669852cbf6aabae244ea86940a08a5a27ffc43
ui/ISurfaceComposer.cpp
ui/ISurfaceComposerClient.cpp
ui/LayerState.cpp
ui/SurfaceComposerClient.cpp
ui/tests/SurfaceTexture_test.cpp
ui/tests/Surface_test.cpp
9e1fb41b4fbfbd190560cf48f24939703a13eca5 29-Jun-2011 Jason Simmons <jsimmons@google.com> Merge "Add a linear transform library to libutils"
e9e860762b58a2d3475b2b677db53864000c524c 29-Jun-2011 Jeff Brown <jeffbrown@google.com> Merge "Improve input event consistency invariants."
8134681b25dfff814ffeaad8ff70e84316c1869f 29-Jun-2011 Jeff Brown <jeffbrown@google.com> Improve input event consistency invariants.

Fixed some issues where inconsistent streams of events could
be generated by the dispatcher, particularly when switching from
hovering with one device to hovering with another.

Fixed a bug where the touch pad would fail to generate a new
HOVER_MOVE following a tap event. As a result, the hover event
stream would not resume until the user touched the touch pad
again.

Change-Id: I444dce84641fb12e56a0af84c931520771d6c493
i/InputTransport.cpp
aa11965bd55b8344104ebb0c9ebf39ee0cced03f 29-Jun-2011 Jason Simmons <jsimmons@google.com> Add a linear transform library to libutils

Change-Id: Icdec5a6bebd9d8f24b3f335f8ec8b09a5810a774
tils/Android.mk
tils/LinearTransform.cpp
2a319a03b53197f91438d06fa78f3859ab09046d 28-Jun-2011 Jamie Gennis <jgennis@google.com> Merge "SurfaceTexture: add a CPU -> GL sync test."
8229b467fc32e4c8dc1cfc65865b85c49ba3de6f 28-Jun-2011 Romain Guy <romainguy@google.com> Merge "Fix parameter order evaluation issue."
9ff3cb57ee46ac5242a7d8f08e0c66189fda2e66 28-Jun-2011 Romain Guy <romainguy@google.com> Fix parameter order evaluation issue.

This problem was affecting Android builds with gcc/x86.

Change-Id: Ibb7978413c89bd1ac09f0d1ea78f5cb4fe61f6ed
wui/DisplayListRenderer.cpp
1b6230983186cca4977efe6a3c49261d327495cd 17-Jun-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: add a CPU -> GL sync test.

This change adds a test to verify that proper synchronization is done
when using SurfaceTexture to use CPU generated images as OpenGL ES
textures in 'synchronous mode'. Synchronous mode is particularly tricky
because SurfaceTexture will allow the buffer that's currently bound to
the GL texture to be dequeued. We rely on Gralloc's lock function to
block until this buffer is no longer being used by the OpenGL ES.

Change-Id: I1c4e37f3e9d60ab9a0905a90a1f5060fda8e485c
ui/tests/SurfaceTexture_test.cpp
3cf7cf575138bcbe5b49c32eb4ae401f92e4c8f7 28-Jun-2011 Jamie Gennis <jgennis@google.com> Merge changes I9fb59763,I8b2c6e00

* changes:
SurfaceTexture: consume buffers after err checks
SurfaceTexture: change onFrameAvailable behavior
84e297238f53f83c9e7de499e711b997d09514e0 27-Jun-2011 Andy McFadden <fadden@android.com> Remove native EventRecurrence parser

Switch over to the new parser.

Bug 4575374

Change-Id: If78d8042fb266182900398f7fc464a048c779966
i/Android.mk
i/EventRecurrence.cpp
0dd593f22352a0863223fa4ea7e37e926b99282e 28-Jun-2011 Mathias Agopian <mathias@google.com> PermissionCache caches permission checks

This is intended to absorb the cost of the IPC
to the permission controller.
Cached permission checks cost about 3us, while
full blown ones are two orders of magnitude slower.

CAVEAT: PermissionCache can only handle system
permissions safely for now, because the cache is
not purged upon global permission changes.

Change-Id: I8b8a5e71e191e3c01e8f792f253c379190eee62e
inder/Android.mk
inder/Permission.cpp
inder/PermissionCache.cpp
9fb5976367911d0ab42d296238f0f06d517e867d 28-Jun-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: consume buffers after err checks

This change moves the point at which queued buffers get consumed to
after any error checks that could cause updateTexImage to fail. This
way, if updateTexImage returns an error the buffer remains queued.
ui/SurfaceTexture.cpp
bd5404d0312752e7c8946e8540129f0d2d97bcd7 27-Jun-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: change onFrameAvailable behavior

This change alters the conditions under which the onFrameAvailable
callback gets called by the C++ SurfaceTexture class. The new behavior
is to call the callback whenever a frame gets queued that will be
visible to the buffer consumer. This means that buffers queued in
synchronous mode always trigger the callback, as those buffers will
remain pending until they are consumed. Buffers queued in asynchronous
mode will only trigger the callback if there was not previously an
unconsumed buffer pending.

The new behavior means that a consumer should perform a draw operation
exactly once for every onFrameAvailable call that it recieves. This
change also modifies SurfaceFlinger and the SurfaceTexture JNI to
support of the new behavior.

Change-Id: I8b2c6e00961d3d58b11c6af50b555b6e4c5f5b40
ui/SurfaceTexture.cpp
f24c4cd0f204068a17f61f1c195ccf140c6c1d67 22-Jun-2011 Anu Sundararajan <sanuradha@ti.com> MemoryHeapBase: Save and binderize the offset

The offset that is used in the creation of the MemoryHeapBase must be saved, so
that it can be used to recreate the Heap when an IMemory object is passed
across process boundary through the binder.

Change-Id: Ie618fb5c0718e6711f55ed9235616fd801e648dc
Signed-off-by: Anu Sundararajan <sanuradha@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
inder/IMemory.cpp
inder/MemoryHeapBase.cpp
42419ce28a09eb63e29a8fef87e6f5534f41902f 01-Jun-2011 Wu-cheng Li <wuchengli@google.com> Add framework support for camcorder zoom.

The purpose of ICameraRecordingProxy and ICameraRecordingProxyListener is to
allow applications using the camera during recording.

Camera service allows only one client at a time. Since camcorder application
needs to own the camera to do things like zoom, the media recorder cannot
access the camera directly during recording. So ICameraRecordingProxy is a proxy
of ICamera, which allows the media recorder to start/stop the recording and
release recording frames. ICameraRecordingProxyListener is an interface that
allows the recorder to receive video frames during recording.

ICameraRecordingProxy
startRecording()
stopRecording()
releaseRecordingFrame()

ICameraRecordingProxyListener
dataCallbackTimestamp()

The camcorder app opens the camera and starts the preview. The app passes
ICamera and ICameraRecordingProxy to the media recorder by
MediaRecorder::setCamera(). The recorder uses ICamera to setup the camera in
MediaRecorder::start(). After setup, the recorder disconnects from camera
service. The recorder calls ICameraRecordingProxy::startRecording() and
passes a ICameraRecordingProxyListener to the app. The app connects back to
camera service and starts the recording. The app owns the camera and can do
things like zoom. The media recorder receives the video frames from the
listener and releases them by ICameraRecordingProxy::releaseRecordingFrame.
The recorder calls ICameraRecordingProxy::stopRecording() to stop the
recording.

The call sequences are as follows:
1. The app: Camera.unlock().
2. The app: MediaRecorder.setCamera().
3. Start recording
(1) The app: MediaRecorder.start().
(2) The recorder: ICamera.unlock() and ICamera.disconnect().
(3) The recorder: ICameraRecordingProxy.startRecording().
(4) The app: ICamera.reconnect().
(5) The app: ICamera.startRecording().
4. During recording
(1) The recorder: receive frames from ICameraRecordingProxyListener.dataCallbackTimestamp()
(2) The recorder: release frames by ICameraRecordingProxy.releaseRecordingFrame().
5. Stop recording
(1) The app: MediaRecorder.stop()
(2) The recorder: ICameraRecordingProxy.stopRecording().
(3) The app: ICamera.stopRecording().

bug:2644213

Change-Id: I15269397defc25cbbcae16abc071c8349c123122
amera/Android.mk
amera/Camera.cpp
amera/ICameraRecordingProxy.cpp
amera/ICameraRecordingProxyListener.cpp
44f8d6bd155cf6357b501137ddbe8403e4d904ba 25-Jun-2011 Romain Guy <romainguy@google.com> Merge "Don't set texture parameters on every frame."
4a5a71518a71a44dbccb3af9a08b82056ea748b3 25-Jun-2011 Romain Guy <romainguy@google.com> Don't set texture parameters on every frame.

Change-Id: Iec368405ad6a4ccfd569a0b3b4d681871a770396
wui/LayerRenderer.cpp
4c60c541de2399d92610b8a7f7f105a42c1ed2a9 25-Jun-2011 Romain Guy <romainguy@google.com> Merge "Properly tear down TextureView"
80429c458506485904715180d10584092a5cd082 25-Jun-2011 Romain Guy <romainguy@google.com> Properly tear down TextureView

Change-Id: Ic23cd9257889d0abe8cc3fc1d04a66d0505e383e
wui/LayerRenderer.cpp
78a7f12043b5c54b6a0bf76e5b987f0cef6518dc 25-Jun-2011 Christopher Tate <ctate@google.com> Merge "Fix settings restore"
28cdb9e104e03680d61c3e6dd654d1beff51427d 25-Jun-2011 Christopher Tate <ctate@google.com> Fix settings restore

Also correct the debug-mode logging of error locations in backup data.
Bug 4914182

Change-Id: Ie7dda0192afa819e42490b7ffd2d3db6f11968f6
tils/BackupData.cpp
02ccac69fd1c0a03c24c5f3ace0ad4bed337b1fd 24-Jun-2011 Romain Guy <romainguy@google.com> Code cleanup

Change-Id: I64c346004e0adf9a776d0315534d4fe445f0c0ca
wui/Caches.cpp
0904d0af81e8a0a5404d6c03f4dcea02bea8170d 24-Jun-2011 Grace Kloba <klobag@google.com> Add allowSynchronousMode to SurfaceTexture constructor.

Change-Id: I54f30a3c16bbe6b813f3bcd1d389da5627531304
ui/SurfaceTexture.cpp
cf86dc2997825005cff81b4b253c3b63bca8ee97 24-Jun-2011 Stephen Hines <srhines@google.com> Merge "Move divsi3, modsi3, udivsi3, umodsi3 to libbcc."
7c1747c13c75eb0197db979d48cb4f9c59d52201 24-Jun-2011 Stephen Hines <srhines@google.com> Merge "Remove verbose logging, update test app and docs."
e352f05d3afb1d8fd372a68a76d1ae4a256b17de 24-Jun-2011 Stephen Hines <srhines@google.com> Move divsi3, modsi3, udivsi3, umodsi3 to libbcc.

BUG=3435530

Change-Id: I4e90a6cdf5af534f93d83093ea31b1defd1e896c
s/driver/rsdRuntimeStubs.cpp
3d782666d73c3ce0ffb77e71db7309bc3297ecb8 24-Jun-2011 Stephen Hines <srhines@google.com> Remove verbose logging, update test app and docs.

Change-Id: I6659c5e51a747011239128dc2682a5d78aecfa26
s/driver/rsdAllocation.cpp
0694cfe49a889788e185a265deed0c231fe31f4b 23-Jun-2011 tedbo <tedbo@google.com> Merge "Add method to create a ParcelSurfaceTexture from android.view.Surface."
697283e9177ee5730bf5c652c3c05d3aa3838ace 23-Jun-2011 Glenn Kasten <gkasten@google.com> Add Thread::join

This new API will be used by applications that previously used the
lower-level pthread APIs (including pthread_join). Centralizing on the
Thread class instead of pthread will permit additional functionality to
be added later in only one location.

Change-Id: I8460169ac9c61ac9f85752405ed54c94651058d7
tils/Threads.cpp
a9489274d67b540804aafb587a226f7c2ae4464d 23-Jun-2011 Romain Guy <romainguy@google.com> Add the ability to specify the opacity of a TextureView

TextureView assumes its content is opaque by default.

Change-Id: Iba873423566a5b67c388081838bd910dceba32ba
wui/LayerRenderer.cpp
wui/LayerRenderer.h
wui/OpenGLRenderer.cpp
60d47796ccfb3db3ab73017897f648678daddc83 23-Jun-2011 Glenn Kasten <gkasten@google.com> Thread ID zero for androidSetThreadSchedulingGroup

Already implemented by androidSetThreadPriority but not documented

Change-Id: I85302b17092952065f3f3a4214d8d8abdd465dbd
tils/Threads.cpp
d586ad9c9fec80aa1d24d6b53cd2c8d5b47fe868 23-Jun-2011 Romain Guy <romainguy@google.com> Fix another memory leak in OpenGLRenderer

Change-Id: I23ed56891452a05cf3ca13f6919c4fef90d5ff4e
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/ResourceCache.cpp
wui/SkiaColorFilter.h
4e8a5c922c287ec97fec847194e930f8598a1941 23-Jun-2011 tedbo <tedbo@google.com> Add method to create a ParcelSurfaceTexture from android.view.Surface.

Change-Id: I05e343ab7e327478f60322af9373574b70c148f5
ui/Surface.cpp
f6a63ae3a7004a8eca87fca5a66cfb6aef4e86b5 23-Jun-2011 Romain Guy <romainguy@google.com> Fix memory leak in OpenGLRenderer.

When creating a display list, matrices are duplicated locally. They
were however never deleted, thus causing apps to slowly leak memory
(a matrix is about 40 bytes.)

Change-Id: Iac465b720d4c4c9b5ca3fce870c0c912c14a74ab
wui/DisplayListRenderer.h
2d90f953b82dae140bd0a351cca398a1aa8c4162 22-Jun-2011 Jason Sams <rjsams@android.com> Merge "First cut of atomics for renderscript."
71767c5577c9708a5e0eeefca89cb2c85f8aeac6 22-Jun-2011 Jason Sams <rjsams@android.com> First cut of atomics for renderscript.

Change-Id: Iefc0228d802e6f5348ae787553c9252fb90ba110

update atomic patch.

Change-Id: Idd0596439c092f570b6b226e9a9c7102ddffe88e
s/driver/rsdRuntimeMath.cpp
s/scriptc/rs_math.rsh
dba35bb98db03dcc01f8da6221822b329a23bac5 21-Jun-2011 Jamie Gennis <jgennis@google.com> Merge "SurfaceTexture: make tests use a large framebuffer."
1a3b2f627cf33f5c1be1de0dff2e4a29dada3702 21-Jun-2011 Jason Sams <rjsams@android.com> Merge "First cut at RSTextureView."
faa32b33b50ad941f631716dd0915e936bdc3ac5 21-Jun-2011 Jason Sams <rjsams@android.com> First cut at RSTextureView.

Change-Id: I920950f33079b6bb7e48bb8970201ab9737bb021
s/driver/rsdGL.cpp
s/rs.spec
dba3968ab27a6d2ca4cc7e07f0d23e918ba61606 15-Jun-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: make tests use a large framebuffer.

This change makes the SurfaceTexture GL tests use a large (512x512)
framebuffer. The tests now use glViewport to render to a region of the
framebuffer with a size matching that of the texture being drawn. The
Npot test pixel checks must be changed because now the rendered region
is the same size as the texture.

Change-Id: Icc41803189c25e33ba1da7d2470720f0a11f3e4b
ui/tests/SurfaceTexture_test.cpp
c972c795cfdb0d16d664510b5041e43cfdc2a5ac 21-Jun-2011 Jamie Gennis <jgennis@google.com> Merge "SurfaceTexture: fix a NULL ptr dereference."
aff74054189a4276a250eac91ac301ab2df37ae3 20-Jun-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: fix a NULL ptr dereference.

This change adds a NULL check when searching the slot list in
SurfaceTextureClient for the slot corresponding to a buffer being
queued or canceled.

Bug: 4645023
Change-Id: I806cbc1e34da118ea33a83c4f25ce8193ba1c3ad
ui/SurfaceTextureClient.cpp
ff3ead5072721bfb24202ff9b041cc4291f34e21 20-Jun-2011 Jean-Baptiste Queru <jbq@google.com> am e3b05d09: Merge "Tweaks for forward-compatibility"

* commit 'e3b05d09163257b888c86f2a560e10c48f4cf029':
Tweaks for forward-compatibility
84d0ccf16cccf02d5cab51c0cb6c9cee79b60f3f 18-Jun-2011 Jean-Baptiste Queru <jbq@google.com> Tweaks for forward-compatibility

Change-Id: Iec525edc186e78d5d865f82dd5b1f56263c22e86
i/GraphicBuffer.cpp
98769300af3580723f99415bba0f790e874fb27b 18-Jun-2011 Romain Guy <romainguy@google.com> Merge "Add error checking to LayerRenderer::copyLayer"
d6b2a00dd43257d1498b09175bff63663f6cb861 18-Jun-2011 Romain Guy <romainguy@google.com> Add error checking to LayerRenderer::copyLayer

This method is invoked by TextureView.getBitmap() and failures must be
caught to avoid leaving the GL context in a potentially bad state.

Change-Id: I620de395ba1bc20154de58c81963223dc55cac78
wui/Caches.h
wui/LayerRenderer.cpp
wui/OpenGLRenderer.cpp
ee452bcc06c6a42ecc78a154bb4fb9366e9178eb 18-Jun-2011 Romain Guy <romainguy@google.com> Merge "Fix rendering issue with paths when the stroke width is 0"
98029c825b9234e6b90721d910cc180885fcab1d 18-Jun-2011 Romain Guy <romainguy@google.com> Fix rendering issue with paths when the stroke width is 0

Change-Id: I5d8ac23dc69e9e17df4ef6b5195186b5207e2524
wui/ShapeCache.h
54ed6107903d596cd3d1610f0cb5c0b041c02573 17-Jun-2011 Jamie Gennis <jgennis@google.com> Merge "SurfaceTexture: enable a test that now passes."
ce14a04b2c9269261e841b962b4ff2d71b1610c3 17-Jun-2011 Jamie Gennis <jgennis@google.com> Merge "SurfaceTexture: enable a test that is now passing."
9347d9ad92b0467a1ad56423ecfbba39ed66ac5c 17-Jun-2011 Alex Sakhartchouk <alexst@google.com> Merge "Adding ability to read back fbo data to renderscript"
8650c32907b74b945dd6cc9a5bf41c12fde005df 16-Jun-2011 Alex Sakhartchouk <alexst@google.com> Adding ability to read back fbo data to renderscript

Change-Id: Ie684c26cbcde22f2483b43415dfc39a3de22c5a1
s/Android.mk
s/driver/rsdAllocation.cpp
s/driver/rsdAllocation.h
s/driver/rsdFrameBuffer.cpp
s/driver/rsdFrameBufferObj.cpp
s/driver/rsdFrameBufferObj.h
s/driver/rsdGL.cpp
s/driver/rsdGL.h
s/driver/rsdMeshObj.cpp
s/driver/rsdRuntimeStubs.cpp
s/rsFBOCache.cpp
35e6d6867c63ad254e95325206aa7a927edd6797 16-Jun-2011 Mathias Agopian <mathias@google.com> am 0887b8c2: am 8e18668d: revert surfaceflinger leak fix as it uncovered a crasher on xoom (DO NOT MERGE)

* commit '0887b8c2e583e682cd2c1bc909cb3fdbec704004':
revert surfaceflinger leak fix as it uncovered a crasher on xoom (DO NOT MERGE)
552bd670071b519d97124621a3c11dc98062c12b 16-Jun-2011 Mathias Agopian <mathias@google.com> am d5244e0a: am 52a43990: Revert "revert surfaceflinger leak fix as it uncovered a crasher on xoom"

* commit 'd5244e0a88ed2f843651aa5ffdc71a45c968e0f3':
Revert "revert surfaceflinger leak fix as it uncovered a crasher on xoom"
e04f826fef44b85108be85fb6d3a16c35a9e5c29 16-Jun-2011 Kenny Root <kroot@google.com> Use rand() for MinGW

The version of MinGW we use doesn't have nrand48() which is really lame,
but we need to use libutils in the Windows SDK.

Change-Id: If854c03dbf02bc29e79f49e4539f08c2bf057517
tils/BlobCache.cpp
8e18668d14adf601cbe5973030c310ec23d88461 16-Jun-2011 Mathias Agopian <mathias@google.com> revert surfaceflinger leak fix as it uncovered a crasher on xoom (DO NOT MERGE)

This reverts commit 52a43990880b27808bcf562afcc4209d34728e6e.

Change-Id: I1856a48f863b051395b8091ddfd1e01292fa1b1e
tils/RefBase.cpp
52a43990880b27808bcf562afcc4209d34728e6e 16-Jun-2011 Mathias Agopian <mathias@google.com> Revert "revert surfaceflinger leak fix as it uncovered a crasher on xoom"

This reverts commit af6edba59e250adbdfa5b3c3be134f70d8c38a16.

Change-Id: I7793d3ca8a4d20a2b188364f47854328ab5f586d
tils/RefBase.cpp
85c14352a4f8946a6908eac140936080536fa575 16-Jun-2011 Mathias Agopian <mathias@google.com> am 7ecdeb6e: am d20d72d1: Merge "revert surfaceflinger leak fix as it uncovered a crasher on xoom" into honeycomb-mr2

* commit '7ecdeb6e548ff71d4f70b343e30136e89eaa3e33':
revert surfaceflinger leak fix as it uncovered a crasher on xoom
af6edba59e250adbdfa5b3c3be134f70d8c38a16 16-Jun-2011 Mathias Agopian <mathias@google.com> revert surfaceflinger leak fix as it uncovered a crasher on xoom

Bug: 4600244
Change-Id: Ia68ebf0f243a051ff6a21b3863e3e5d259bbf7ac
tils/RefBase.cpp
5137711109783dcbb20143d3e5cab2fa931218dd 15-Jun-2011 Mathias Agopian <mathias@google.com> am afffa8fa: fix RefBase so it retains binary-compatibility with gingerbread (DO NOT MERGE)

* commit 'afffa8fa9f82a7343e1158bf921931fd3e3df615':
fix RefBase so it retains binary-compatibility with gingerbread (DO NOT MERGE)
537cf4a6a375f25e4ed0fef286965c864878f6c2 15-Jun-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: enable a test that now passes.

This change enables the QueryFormatAfterSettingWorks.

Change-Id: Ic868011a36a6c86c8646880246cd5b6960a13364
ui/tests/SurfaceTextureClient_test.cpp
b82f85bbfdac6bf6d4e59d91886f40678d20000b 15-Jun-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: enable a test that is now passing.

This change enables the TexturingFromCpuFilledYV12BufferPow2 test.

Change-Id: Ib356ee3d2f8979f34f849fd4090f598295e2e92e
ui/tests/SurfaceTexture_test.cpp
370a71bcaf5bc4874f1b7daadc091adc256fe234 15-Jun-2011 Glenn Kasten <gkasten@google.com> Merge "Bug 4608375"
77a811610f99e21da7f88dafef60d09f345d0506 15-Jun-2011 Romain Guy <romainguy@google.com> Add TextureView.getBitmap()

This API can be used to get a Bitmap copy of the content of a
TextureView.

Change-Id: I07522216c353720fba5cab333174f58f484eb911
wui/LayerRenderer.cpp
wui/LayerRenderer.h
wui/OpenGLRenderer.h
fba5fcf367ddbeb0ab804a60e0cb9bb42f5f7fb0 14-Jun-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: increase the test's Surface layer.

This change increases the Surface layer used for displaying the test
results so that the tests will be visible over other windows in the
system.

Change-Id: I47f147f8743ff2a39d57d551811668371202bd31
ui/tests/SurfaceTexture_test.cpp
d23398d40c415a5ac056de0b0a07f9a03843a148 18-Mar-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: add some RGBA_8888 tests.

Change-Id: Id09915c98a00eca1209b7dab32039a06d260908e
ui/tests/SurfaceTexture_test.cpp
3c7d846c26eaacfb6e1e33256f7447a12923ccc1 07-Apr-2011 Jamie Gennis <jgennis@google.com> SurfaceTextureClient: minor test refactoring.

Change-Id: Iabc6d27ca35d30d896c6aef65c4f1b5a1eed47b8
ui/tests/SurfaceTextureClient_test.cpp
44ce622fc393ded35c68b7b871461521397431f0 14-Jun-2011 Jamie Gennis <jgennis@google.com> Merge "SurfaceTexture: add a format querying test."
9b309b99f75be646bf0536ed85e14facf962e891 14-Jun-2011 Alex Sakhartchouk <alexst@google.com> Merge "Allocation copy functions."
304b1f5497155bcf91e7b855cfab7a675e80bf26 14-Jun-2011 Alex Sakhartchouk <alexst@google.com> Allocation copy functions.

Change-Id: Idce6d44a4f4bb2e399284a40c0f90dc1bff912fd
s/RenderScriptDefines.h
s/driver/rsdAllocation.cpp
s/driver/rsdAllocation.h
s/driver/rsdCore.cpp
s/driver/rsdRuntimeStubs.cpp
s/rs.spec
s/rsAllocation.cpp
s/rsRuntime.h
s/rsScriptC_Lib.cpp
s/rs_hal.h
s/scriptc/rs_graphics.rsh
s/scriptc/rs_math.rsh
s/scriptc/rs_types.rsh
1d24aaa4b47ac005c0a673a06c373f85b1e43caf 14-Jun-2011 Glenn Kasten <gkasten@google.com> Bug 4608375

Update priority and policy together for audio threads

Change-Id: Ib3b07b32586c222c4aacbf23414ae8b05db502be
tils/Threads.cpp
ad4e03d6978054db19f1267af2b8c1072272f3fe 14-Jun-2011 Romain Guy <romainguy@google.com> Merge "Batch glCopyTexImage() calls to get about 15 fps back on SGX."
54be1cdf3d63095512120fa7ced5c16e462abffa 14-Jun-2011 Romain Guy <romainguy@google.com> Batch glCopyTexImage() calls to get about 15 fps back on SGX.

Change-Id: I04079e070739c1e46df3e90fc388c335e2a7d2b9
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
eb99f0d9f05dd37f988a815e6bc01bbd7152c31a 13-Jun-2011 Mathias Agopian <mathias@google.com> fix RefBase so it retains binary-compatibility with gingerbread

Bug: 4595257
Change-Id: I0d5e10f497e3f39868bff58f6ded510c38b44b12
tils/RefBase.cpp
0991a7fb12ce62bff0ea5aed6c4c92c106747158 14-Jun-2011 Mathias Agopian <mathias@google.com> Merge changes I9b8e1962,I7bb843ca

* changes:
Temporarily don't return the current buffer in synchronous mode
unify SurfaceTexture and Surface
9b8e1962d65589073b004889195245e757fb0e12 05-May-2011 Mathias Agopian <mathias@google.com> Temporarily don't return the current buffer in synchronous mode

activate synchronous mode by default.
ui/SurfaceTexture.cpp
ui/tests/SurfaceTextureClient_test.cpp
7bb843ca0777111dae7daf8f1b0705817cf523c4 20-Apr-2011 Mathias Agopian <mathias@google.com> unify SurfaceTexture and Surface

Add the concept of synchronous dequeueBuffer in SurfaceTexture
Implement {Surface|SurfaceTextureClient}::setSwapInterval()
Add SurfaceTexture logging
fix onFrameAvailable
ui/Android.mk
ui/ISurface.cpp
ui/ISurfaceComposer.cpp
ui/ISurfaceComposerClient.cpp
ui/SharedBufferStack.cpp
ui/Surface.cpp
ui/SurfaceComposerClient.cpp
ui/SurfaceTextureClient.cpp
f11c52d246d9e43c8533dff82979e7eeb72c1d50 16-May-2011 Derek Sollenberger <djsollen@google.com> Updates resulting from the Skia merge (revision 1327)

Change-Id: I1d2cecbad6c30e6ebc9579093404742f17e14e84
wui/OpenGLRenderer.cpp
acce04ea933940a777fac097b61d55f8d61fd5d1 12-Jun-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: add a format querying test.

This change adds a test to verify that querying the format of a
SurfaceTextureClient immediately after setting it returns the correct
result. The test is currently disabled because it does not pass.

Change-Id: I5bddb39c5bf96d6104624094383d410ed913e9f3
ui/tests/SurfaceTextureClient_test.cpp
716a38adcbc3ce61238e2c866d8cf865a3522518 13-Jun-2011 Jamie Gennis <jgennis@google.com> Merge changes Ic9186db2,Id5a7cdff

* changes:
SurfaceTexture: disable a deadlocking test.
SurfaceTexture: add a pixel tolerance to the tests.
c031afc8e9ad6c940c7d67a15b9c53092987377e 13-Jun-2011 Mathias Agopian <mathias@google.com> am 77079399: am a9c9a4ba: fix RefBase so it retains binary-compatibility with gingerbread (DO NOT MERGE)

* commit '77079399fca3e9c71e2ac06f3da26934e1c278b9':
fix RefBase so it retains binary-compatibility with gingerbread (DO NOT MERGE)
afffa8fa9f82a7343e1158bf921931fd3e3df615 13-Jun-2011 Mathias Agopian <mathias@google.com> fix RefBase so it retains binary-compatibility with gingerbread (DO NOT MERGE)

Bug: 4595257
Change-Id: I4773cf4fe59b2509db0ed733739eb6961d473b25
tils/RefBase.cpp
a9c9a4baf24700e8817d47d8ea8da1742caea0b5 13-Jun-2011 Mathias Agopian <mathias@google.com> fix RefBase so it retains binary-compatibility with gingerbread (DO NOT MERGE)

Bug: 4595257
Change-Id: I1db83149107d7dab1f0b7e73c684e0ff82e17e62
tils/RefBase.cpp
323badd7ddc1574e8e4954735d05befc27cfddad 13-Jun-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: disable a deadlocking test.

This change disables the UpdateTexImageAfterFrameFinishedWorks test
because it's currently causing deadlocks on some devices.

Change-Id: Ic9186db207e8d656f3af5d86fa138c7d96393c55
ui/tests/SurfaceTexture_test.cpp
43bdc23b13ba473824a74d3df67704d6d9c543c7 13-Jun-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: add a pixel tolerance to the tests.

This change adds a default tolerance of 2 to all the pixel value checks
in the SurfaceTexture tests.

Change-Id: Id5a7cdffdfae16076e2daf4964a3326105b5ae2c
ui/tests/SurfaceTexture_test.cpp
dfc7958a2eafba52db90743a4707eed1d780b63b 13-Jun-2011 Jamie Gennis <jgennis@google.com> Merge "libutils: add a binary blob cache implementation."
bd3e537980027f4502a13c204b3c7b9d10adad31 13-Jun-2011 Jamie Gennis <jgennis@google.com> Merge changes I56779420,I044e44e1,Ic5adfa29,Ied541ab8

* changes:
SurfaceTexture: add some GL->GL tests.
SurfaceTexture: fix up a comment.
SurfaceTexture: add getTransformMatrix tests.
SurfaceTexture: fix a getTransformMatrix crash.
9deb930ebf7db317e7abec59b37a88c47999f9cf 08-Jun-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: add some GL->GL tests.

This change adds some tests to verify streaming images from one GL
thread to another via SurfaceTexture. Currently the tests do not
validate the correctness of the streamed images, but rather simply
verify that this streaming does not cause a deadlock. 3 of the 4 tests
are currently disabled because they do cause deadlocks on some devices.

Change-Id: I5677942053190063b97f370dba96c116711bc3bb
ui/tests/SurfaceTexture_test.cpp
15e0d9f5e0700fa7dc0ecd0f07d5fea6f9597ca0 08-Jun-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: add getTransformMatrix tests.

This change adds a test verifying that with no transform set on the
SurfaceTextureClient, the SurfaceTexture will return an identity
transform matrix. It also verifies this same effect in the presence of
an additional call to native_window_set_buffer_count just before the
call to getTransformMatrix.

Bug: 4490420
Change-Id: Ic5adfa29b5696cc2b451433834e3758ef20c5edd
ui/tests/SurfaceTextureClient_test.cpp
eadfb673e7b346af02a925ad04494100db1ebbf7 13-Jun-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: fix a getTransformMatrix crash.

This change moves the computation of the transform matrix out of
getTransformMatrix and instead performs the computation when
updateTexImage gets called. This is needed in order for
getTransformMatrix to succeed even if the buffers have been freed (e.g.
by changing the buffer count) because the computation depends upon the
properties of the current GraphicBuffer.

Change-Id: Ied541ab8747b7ad604f862717135f9a16a816be9
Bug: 4490420
ui/SurfaceTexture.cpp
041120754aa59ddd28927fa6c5db0c90bb8f5e95 13-Jun-2011 Glenn Kasten <gkasten@google.com> Merge "Remove redundant memory barrier"
9dbd7d818916dca77e53ababdaf05311d5c7bce2 02-Jun-2011 Glenn Kasten <gkasten@google.com> Remove redundant memory barrier

pthread_create already includes the necessary memory barriers:
- parent at pthread_create : pthread_mutex_unlock(start_mutex)
- child at __thread_entry : pthread_mutex_lock(start_mutex)

Add lock around uses of mThread.

Added comments:
- uses of mThread require lock
- androidCreateRawThreadEtc returned ID is not safe for direct use from non-parent threads.

Change-Id: I18cb296b41ddaf64cf127b57aab31154319b5970
tils/Threads.cpp
6b592723c9a9fc816a8ab75c935e8cd20ff65a0e 10-Jun-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of f51ded0f to master

Change-Id: Ida356524a68aeb2b9b0013dfbb6ab4bd11e616e2
5caa0ef36021de2afbd043d5dbd3ad14dff2a567 10-Jun-2011 Romain Guy <romainguy@google.com> Merge "Don't apply AA to rects with no rotation/perspective."
181d0a6ccedee03789919d53c46540a8df751896 10-Jun-2011 Romain Guy <romainguy@google.com> Don't apply AA to rects with no rotation/perspective.

Change-Id: I21138d4d0589cc28f1dcffb8b675cd81a9900e24
wui/Matrix.cpp
wui/Matrix.h
wui/OpenGLRenderer.cpp
f741e679c496f7345304a6543f01d7048e31d1a7 10-Jun-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of e2aa0490 to master

Change-Id: Id0448a1598fc93aca0652b29253e02586e35a067
f51ded0f8f593d17af82946eb65c05fc04f688b4 10-Jun-2011 Dianne Hackborn <hackbod@google.com> am a8d7ea06: am 220cd77d: Merge "Enforce public resource restriction on bag parents." into honeycomb-mr2

* commit 'a8d7ea067cf22baeee2ff0a33e5a8c5a35936942':
Enforce public resource restriction on bag parents.
426431adcc220b6adfbe1d9530247f897e60fa36 09-Jun-2011 Dianne Hackborn <hackbod@google.com> Enforce public resource restriction on bag parents.

Need to put some more styles in the SDK to avoid breaking apps.

Also, welcome Android 3.2.

Change-Id: Ia31d07c9b1b91ad868d8630437fdc1b5ae24f37d
tils/ResourceTypes.cpp
880b2df55cdbc7c392e7e4d9c31435b7045aa270 09-Jun-2011 Mathias Agopian <mathias@google.com> am 96fcb702: am b40e85f9: am 645434fb: Merge "Fix a leak in RefBase" into honeycomb-mr2

* commit '96fcb702d75dcfb36c3ebd8fe420c8b29fa67fb7':
Fix a leak in RefBase
2246fb319803a2ee95d2ab657f6b11eb2e2d19f3 09-Jun-2011 Alex Sakhartchouk <alexst@google.com> Merge "More work to make libRS buildable on the host."
13f99a0d0e309b63c3441148032e9992c0e4e650 09-Jun-2011 Christopher Tate <ctate@google.com> Merge "Fix handling of directory entries"
e9e78ecd2c0ae5f48ed81fdfff4a89cb803fc409 09-Jun-2011 Christopher Tate <ctate@google.com> Fix handling of directory entries

Don't emit tar blocks for directories with an invalid nonzero size. Also, if
such an entry is encountered during restore, don't actually attempt to treat
it as valid and thus skip over the next actual tar entry.

This patch also adds tracking of the data actually consumed during restore,
and reports a total at the end of stream.

Change-Id: I625173f76df3c007e899209101ff2b587841f184
tils/BackupHelpers.cpp
e2aa04908cfdf65ef309f1491f31a0c8846977ff 09-Jun-2011 Dianne Hackborn <hackbod@google.com> am a1396dfe: am 02140891: Merge "Work on issue #4518815: Compatibility mode introduces compatibility regression..." into honeycomb-mr2

* commit 'a1396dfe7ad6ec6953f544be42d69d7804ab0fd4':
Work on issue #4518815: Compatibility mode introduces compatibility regression...
021408910af170268cb486910d4dd5a7d838c2bb 09-Jun-2011 Dianne Hackborn <hackbod@google.com> Merge "Work on issue #4518815: Compatibility mode introduces compatibility regression..." into honeycomb-mr2
17574b9a0a7cc1cf215935fce2474ca30d387046 09-Jun-2011 Mathias Agopian <mathias@google.com> am 19974ecc: Fix a leak in RefBase (DO NOT MERGE)

* commit '19974eccdbd3e4dbd7e3b2cc401db7806d4a17bc':
Fix a leak in RefBase (DO NOT MERGE)
96fcb702d75dcfb36c3ebd8fe420c8b29fa67fb7 09-Jun-2011 Mathias Agopian <mathias@google.com> am b40e85f9: am 645434fb: Merge "Fix a leak in RefBase" into honeycomb-mr2

* commit 'b40e85f90146a654bfe5657187be491147814ea0':
Fix a leak in RefBase
5fd2169eabd77e6bfafaf456e58051a3bafb2bca 07-Jun-2011 Dianne Hackborn <hackbod@google.com> Work on issue #4518815: Compatibility mode introduces compatibility regression...

...for Market App iRunner

There were a lot of serious issues with how we updated (or often didn't update)
the display and resource state when switching compatibility mode in conjunction
with restarting and updating application components. This addresses everything
I could find.

Unfortunately it does *not* fix this particular app. I am starting to think this
is just an issue in the app. This change does fix a number of other problems
I could repro, such as switching the compatibility mode of an IME.

Also a few changes here and there to get rid of $#*&^!! debug logs.

Change-Id: Ib15572eac9ec93b4b9966ddcbbc830ce9dec1317
tils/StreamingZipInflater.cpp
2c0042b666a969091c931614f2fc0dce2f1cfac8 09-Jun-2011 Mathias Agopian <mathias@google.com> Fix a leak in RefBase

this bug was introduced recently. it caused RefBase's weakref_impl
structure to be leaked for every RefBase object (about 20 bytes).

Change-Id: Id85e749ba04521199555dd701198edd097c313d4
tils/RefBase.cpp
19974eccdbd3e4dbd7e3b2cc401db7806d4a17bc 09-Jun-2011 Mathias Agopian <mathias@google.com> Fix a leak in RefBase (DO NOT MERGE)

this bug was introduced recently. it caused RefBase's weakref_impl
structure to be leaked for every RefBase object (about 20 bytes).

Change-Id: Ia9b155fbfa643ef72cfb8129e96260a3b806a78c
tils/RefBase.cpp
72c7362080c355c538ae2c46ac03501689e73736 08-Jun-2011 Jeff Brown <jeffbrown@android.com> am 61220e88: am bbbab26e: am 2c180499: Merge "Revert velocity damping. Bug: 4364920" into honeycomb-mr2

* commit '61220e880ac4d9d76b7fd50744439e68e929c697':
Revert velocity damping. Bug: 4364920
3f6c77b7caa02193205cb6ce180e0eb5a7579aa6 07-Jun-2011 Christopher Tate <ctate@google.com> Fix embedded spaces in tar stream EVEN HARDER

Change-Id: I97ac586ff3541a05d73e1e53f680517c15e6c662
tils/BackupHelpers.cpp
b0628bfd5aac480a0d412ac96b8af1d97ac01c30 03-Jun-2011 Christopher Tate <ctate@google.com> Implement shared-storage full backup/restore

Every available shared-storage volume is backed up, tagged with its
ordinal in the set of mounted shared volumes. This is an approximation
of "internal + the external card". This lets us restore things to the
same volume [or "equivalent" volume, in the case of a cross-model
restore] as they originated on.

Also fixed a bug in the handling of files/dirs with spaces in
their names.

Change-Id: I380019da8d0bb5b3699bd7c11eeff621a88e78c3
tils/BackupHelpers.cpp
61220e880ac4d9d76b7fd50744439e68e929c697 07-Jun-2011 Jeff Brown <jeffbrown@android.com> am bbbab26e: am 2c180499: Merge "Revert velocity damping. Bug: 4364920" into honeycomb-mr2

* commit 'bbbab26ebe9bc789ba9abac757895a6c31de7cc5':
Revert velocity damping. Bug: 4364920
2c1804998b6a3f1f9f5f301ccf813363825ab4cf 07-Jun-2011 Jeff Brown <jeffbrown@android.com> Merge "Revert velocity damping. Bug: 4364920" into honeycomb-mr2
ac55c2b1ea5c4a1284bf06744380bf32e6aeb7d6 07-Jun-2011 Jeff Brown <jeffbrown@android.com> Revert velocity damping.
Bug: 4364920

Velocity damping proved to be a bad idea because it would
cause a significant ramp in velocity at the beginning of
a gesture, instead of the desired smooth behavior. Oh well.

Change-Id: Ie631946f47ef2492bd71fbed1ab44bbb39a875a8
i/Input.cpp
219451363d7c9e657cb856bebce34bc29d7876fa 07-Jun-2011 Iliyan Malchev <malchev@google.com> CameraParameters: add PIXEL_FORMAT_RGBA8888

Change-Id: I2780e936f5b4628d506ac4e6947b78ef831fbde8
Signed-off-by: Iliyan Malchev <malchev@google.com>
amera/CameraParameters.cpp
24855c09173a6caaec7dcedd0c2d7ce15121d39b 06-Jun-2011 Mathias Agopian <mathias@google.com> merge various SF fixes from gingerbread to honeycomb-mr2 (DO NOT MERGE)

Fix a race that could cause GL commands to be executed from the wrong thread.
RefBase subclasses can now decide how they want to be destroyed.
Fix a race in SurfaceFlinger that could cause layers to be leaked forever.
Fix a race-condtion in SurfaceFlinger that could lead to a crash.

initial cherry-pick:
resolved conflicts for merge of b9783b49 to honeycomb-plus-aosp

Change-Id: I2a335e03fff219e35c18a7b0089b3a11d636576f
tils/RefBase.cpp
b2fd84ad1d470d607af4a83da378d4e317421634 06-Jun-2011 Marco Nelissen <marcone@google.com> resolved conflicts for merge of b9783b49 to honeycomb-plus-aosp

Change-Id: I1d86ea56b3d1d1b69f6671e5b0df0ca3f0c79643
8cdda442357bc5c5ab673b6369ee1560ebe1b086 04-Jun-2011 Romain Guy <romainguy@google.com> Merge "Measure text with the appropriate text encoding. Bug #4546327"
67ffc36a79ce3a9a0b5da28b65123864b7d2597f 04-Jun-2011 Romain Guy <romainguy@google.com> Measure text with the appropriate text encoding.
Bug #4546327

Change-Id: I8eb593b03a81145e08be92579706ddd775feb0a2
wui/OpenGLRenderer.cpp
a742f854901b8306d3696c9e9b7881c207130a01 04-Jun-2011 Jeff Brown <jeffbrown@android.com> am 56503b8d: am 8186a5f0: am 10c3f367: Merge "Implement pointer acceleration." into honeycomb-mr2

* commit '56503b8ddfe5c82407da32e18061e725f668432d':
Implement pointer acceleration.
17a8a1939d4cbc74de54954c67f3dd61882420aa 03-Jun-2011 Alex Sakhartchouk <alexst@google.com> More work to make libRS buildable on the host.

Change-Id: I239585ef7c1334f7fc19fa6423535dea7b9a753f
s/Android.mk
s/RenderScript.h
s/driver/rsdCore.cpp
s/driver/rsdCore.h
s/rsAllocation.cpp
s/rsAllocation.h
s/rsContext.cpp
s/rsContext.h
s/rsFifoSocket.cpp
s/rsFont.cpp
s/rsFont.h
s/rsMesh.cpp
s/rsProgramFragment.cpp
s/rsProgramVertex.cpp
s/rsScript.cpp
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC.h
s/rsThreadIO.cpp
s/rs_hal.h
56503b8ddfe5c82407da32e18061e725f668432d 03-Jun-2011 Jeff Brown <jeffbrown@android.com> am 8186a5f0: am 10c3f367: Merge "Implement pointer acceleration." into honeycomb-mr2

* commit '8186a5f065fac2b82c90cd18d79cd234bc221402':
Implement pointer acceleration.
19c97d46fb57f87ff45d9e6ea7122b4eb21ede8c 01-Jun-2011 Jeff Brown <jeffbrown@android.com> Implement pointer acceleration.

Bug: 4124987
Change-Id: I1f31a28f1594c55302ccabe13fe3ca6d2ff71d50
i/Input.cpp
1a536e642f5078167d18277c56f60090d8d46364 02-Jun-2011 Christopher Tate <ctate@google.com> Merge "Restore from a previous full backup's tarfile"
75a99709accef8cf221fd436d646727e7c8dd1f1 19-May-2011 Christopher Tate <ctate@google.com> Restore from a previous full backup's tarfile

Usage: adb restore [tarfilename]

Restores app data [and installs the apps if necessary from the backup
file] captured in a previous invocation of 'adb backup'. The user
must explicitly acknowledge the action on-device before it is allowed
to proceed; this prevents any "invisible" pushes of content from the
host to the device.

Known issues:

* The settings databases and wallpaper are saved/restored, but lots
of other system state is not yet captured in the full backup. This
means that for practical purposes this is usable for 3rd party
apps at present but not for full-system cloning/imaging.

Change-Id: I0c748b645845e7c9178e30bf142857861a64efd3
tils/BackupHelpers.cpp
cb0975b3c1c73d8bcadaca80e1ee99383750af60 01-Jun-2011 Romain Guy <romainguy@google.com> Merge "Add support to OpenGLRendere to draw BiDi text. Bug #4350336"
726aeba80ffc6778a9bc3e0ee957b8d644183505 01-Jun-2011 Romain Guy <romainguy@google.com> Add support to OpenGLRendere to draw BiDi text.
Bug #4350336

Change-Id: I1cf31693f7ca9653fa3a41b5b91c27ef288d680f
wui/DisplayListRenderer.cpp
wui/FontRenderer.cpp
wui/FontRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Properties.h
wui/TextDropShadowCache.h
73e0bc805a143d8cc2202fccb73230459edc6869 18-May-2011 Mathias Agopian <mathias@google.com> 9-axis sensor fusion with Kalman filter

Add support for 9-axis gravity and linear-acceleration sensors
virtual orientation sensor using 9-axis fusion

Change-Id: I6717539373fce781c10e97b6fa59f68a831a592f
ui/Sensor.cpp
8239b95d11d6bd68abce33f01d296b7edc6b786c 27-May-2011 Romain Guy <romainguy@google.com> Merge "Fix issue with drawColor(color, Mode.Clear)"
f09ef51889f75289b041f9e9f949b7b82ed5b686 27-May-2011 Romain Guy <romainguy@google.com> Fix issue with drawColor(color, Mode.Clear)

Change-Id: I486b24a5b609c6f8adb0276037ddb24af2b888b2
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
41d8165b94243953c286b92260e283fb6032a529 27-May-2011 Jason Sams <rjsams@android.com> Merge "Cleaup of rsComponent to remove GL types."
ef9be207152d54cbc1382121053e25414b3b2ed3 27-May-2011 James Dong <jdong@google.com> am 6c2db6fb: am 95f397ad: Merge "Revert "DO NOT MERGE Correctly implement the CLEAR xfermode."" into honeycomb-mr2

* commit '6c2db6fb1925f291cc9748cf3bf0897b9001c972':
Revert "DO NOT MERGE Correctly implement the CLEAR xfermode."
f1d8a30c95909a2c6405d45637f6ce95a21b57dd 27-May-2011 James Dong <jdong@google.com> Revert "DO NOT MERGE Correctly implement the CLEAR xfermode."

This reverts commit e324197ecd14591d7db0572f50c0d21bbd269bb4.
wui/OpenGLRenderer.cpp
eb2466b30362ef8374680a76a5e39a2ccdcdeedd 27-May-2011 Romain Guy <romainguy@google.com> Merge "Prettify memory dump."
d2ba50ab861ec0950bda18dd0f463b687e66249f 27-May-2011 Romain Guy <romainguy@google.com> Prettify memory dump.

Change-Id: I071c6a04a144a96955d85f56dffc6162288ee33e
wui/Caches.cpp
8eed7aded77b826738c82cfe3b6a1440ac0786d9 27-May-2011 Romain Guy <romainguy@google.com> Merge "Fix texture coordinates for sub-bitmap rendering."
1e59f9d10d164f156221f6d34b932f06cdd29f1f 27-May-2011 Romain Guy <romainguy@google.com> Fix texture coordinates for sub-bitmap rendering.

Change-Id: I05a31775e03f5b223a55a5144d420351abac89be
wui/OpenGLRenderer.cpp
66db3ab50f9aeb1d45c50a079a4f8836b2e3864e 27-May-2011 Jason Sams <rjsams@android.com> Cleaup of rsComponent to remove GL types.

Change-Id: I9f82bafe42f5fb30335b15f38eb251dc1ec62e80
s/driver/rsdAllocation.cpp
s/driver/rsdAllocation.h
s/driver/rsdMeshObj.cpp
s/rsComponent.cpp
s/rsComponent.h
0f667ff5e57e171311c2b4ec19d29832ffbcd3f7 27-May-2011 Romain Guy <romainguy@google.com> am a33bb164: am 4686fb8a: Merge "DO NOT MERGE Correctly implement the CLEAR xfermode." into honeycomb-mr2

* commit 'a33bb164b2ac792d5bba76ba198fb052197fd520':
DO NOT MERGE Correctly implement the CLEAR xfermode.
4686fb8ac8c88eb1f0d76fc4157be4cb5949e98e 27-May-2011 Romain Guy <romainguy@google.com> Merge "DO NOT MERGE Correctly implement the CLEAR xfermode." into honeycomb-mr2
e324197ecd14591d7db0572f50c0d21bbd269bb4 27-May-2011 Romain Guy <romainguy@google.com> DO NOT MERGE Correctly implement the CLEAR xfermode.

This bug is a regression from the software pipeline and prevents
applications from implementing an "eraser" type tool (for instance
a drawing/painting apps.) This issue affects external applications
when they turn on hardware acceleration.

The previous implementation was using glBlendFunc with the parameters
GL_ZERO/GL_ZERO which doesn't work for text, paths and other alpha
sources (anti-aliasing.) The correct implementation is GL_ZERO/
GL_ONE_MINUS_SRC_ALPHA.

Change-Id: I1446e83480e46174b880120069d76fcad14ba300
wui/OpenGLRenderer.cpp
f9187df698680d8ecda09511e0028daaaf71deb8 27-May-2011 Romain Guy <romainguy@google.com> Merge "Correctly implement the CLEAR xfermode."
f504a2fa144504ca1efd39a4ef9208e3d4d336c5 27-May-2011 Romain Guy <romainguy@google.com> Correctly implement the CLEAR xfermode.

The previous implementation was using glBlendFunc with the parameters
GL_ZERO/GL_ZERO which doesn't work for text, paths and other alpha
sources (anti-aliasing.) The correct implementation is GL_ZERO/
GL_ONE_MINUS_SRC_ALPHA.

Change-Id: I4cca65e57b6a37bbf5a41d382cb0648ee8e11e79
wui/Debug.h
wui/OpenGLRenderer.cpp
wui/Patch.cpp
wui/Patch.h
0d92e3441fb3128267a7d05beb846008e9edb479 27-May-2011 Jason Sams <rjsams@android.com> Merge "Start splitting allocation into hal and core."
7e8aae7f76f221905fba7ccbcb3442c6f96dfad2 27-May-2011 Jason Sams <rjsams@android.com> Start splitting allocation into hal and core.

Change-Id: Ic506abb0469238cb0471eb1401cfcb7b2fbbe4bb
s/Android.mk
s/driver/rsdAllocation.cpp
s/driver/rsdAllocation.h
s/driver/rsdCore.cpp
s/driver/rsdFrameBuffer.cpp
s/driver/rsdMeshObj.cpp
s/driver/rsdProgram.cpp
s/driver/rsdShader.cpp
s/rsAllocation.cpp
s/rsAllocation.h
s/rsContext.h
s/rsFBOCache.cpp
s/rsFont.cpp
s/rsMesh.cpp
s/rsProgramFragment.cpp
s/rsProgramVertex.cpp
s/rsRuntime.h
s/rs_hal.h
3c2fb0242b0ec21101959dfa08aad3162a523634 25-May-2011 Jeff Brown <jeffbrown@google.com> am 8148cc3e: am 86ea1f5f: Initial checkin of spot presentation for touchpad gestures. (DO NOT MERGE)

* commit '8148cc3e47e50c916066e2fed562618b5827188f':
Initial checkin of spot presentation for touchpad gestures. (DO NOT MERGE)
fbc67977aecfd94e8923e8eca3b859cd431c94b8 25-May-2011 Jeff Brown <jeffbrown@android.com> am d5358874: am 5ced76a1: Coalesce input events that arrive faster than 333Hz. (DO NOT MERGE)

* commit 'd5358874e2cc90be3d7d3370ef7342c96c212451':
Coalesce input events that arrive faster than 333Hz. (DO NOT MERGE)
8e5799ed16ab605d8de775e1644f1fa59ff6627e 25-May-2011 Jeff Brown <jeffbrown@google.com> am af685f3b: am 85a7f99c: Merge "Refactor how timeouts are calculated. (DO NOT MERGE)" into honeycomb-mr2

* commit 'af685f3bb566f297deee1615d55d4f33d5580ba3':
Refactor how timeouts are calculated. (DO NOT MERGE)
7d0fb57044576fd4bbaf9683997bab288c3b759c 25-May-2011 Jeff Brown <jeffbrown@google.com> am 16330e24: am 94e838f6: Merge "Improve VelocityTracker numerical stability. (DO NOT MERGE)" into honeycomb-mr2

* commit '16330e249663fed890df0e95fce4016c2971120a':
Improve VelocityTracker numerical stability. (DO NOT MERGE)
4e3ba25cc718bbc6db0a332c4105debc4b3552d3 25-May-2011 Jeff Brown <jeffbrown@google.com> am 4bd89fb0: am 82e4373e: Merge "Use touch pad gestures to manipulate the pointer. (DO NOT MERGE)" into honeycomb-mr2

* commit '4bd89fb00f319c5d6d4f17b39fd4c0b3dc827ad1':
Use touch pad gestures to manipulate the pointer. (DO NOT MERGE)
86ea1f5f521981d075aef56f11693e4f3bc32fdb 13-Apr-2011 Jeff Brown <jeffbrown@google.com> Initial checkin of spot presentation for touchpad gestures. (DO NOT MERGE)

Added a new PointerIcon API (hidden for now) for loading
pointer icons.

Fixed a starvation problem in the native Looper's sendMessage
implementation which caused new messages to be posted ahead
of old messages sent with sendMessageDelayed.

Redesigned the touch pad gestures to be defined in terms of
more fluid finger / spot movements. The objective is to reinforce
the natural mapping between fingers and spots which means there
must not be any discontinuities in spot motion relative to
the fingers.

Removed the SpotController stub and folded its responsibilities
into PointerController.

Change-Id: Ib647dbd7a57a7f30dd9c6e2c260df51d7bbdd18e
i/Input.cpp
tils/Looper.cpp
5ced76a14350db56f1a80f00076f8be3d982c389 24-May-2011 Jeff Brown <jeffbrown@android.com> Coalesce input events that arrive faster than 333Hz. (DO NOT MERGE)

Some drivers report individual finger updates one at a time
instead of all at once. When 10 fingers are down, this can
cause the framework to have to handle 10 times as many events
each with 10 times as much data. Applications like
PointerLocation would get significantly bogged down by all
of the redundant samples.

This change coalesces samples that are closely spaced in time,
before they are dispatched, as part of the motion event batching
protocol.

Increased the size of the InputChannel shared memory buffer so
that applications can catch up faster if they accumulate a
backlog of samples.

Change-Id: Ibc6abf8af027d9003011ac75caa12941080caba3
i/InputTransport.cpp
dd386ccb9039a6ece8ebeda0dfd2e81156057229 25-May-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: disable a failing test.

The SurfaceTextureSyncModeWaitRetire test was disabled. It is failing
because of the synchronization hacks that were added to SurfaceTexture
to work around bugs in vendor device drivers.

Change-Id: I09a74538bfe14a04833acb6847471e00826cc7fc
ui/tests/SurfaceTextureClient_test.cpp
44e9e0d825aef362a3413dfd63812962f5de1b1a 24-May-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: fix an error check in dequeueBuffer.

This change fixes the MIN_UNDEQUEUED_BUFFERS error check in
dequeueBuffer. The check should only be performed if a buffer has been
queued since the last time the buffer count was changed by the client.
The check must be applied conditionally because video decoders require
all the bufferes to be dequeued and registered before beginning the
decode.

Change-Id: I08d96b380544e395c2fcf0f3983a199bfd695b09
ui/SurfaceTexture.cpp
ui/tests/SurfaceTextureClient_test.cpp
a218715a7fca98c868feccee4751c94e38b676ff 19-May-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: clean up some comments, tests, etc.

This change fixes up some stale comments, member variable names, log
messages and disables a failing test.

Change-Id: Ic1d3344b18066cf710e4a42838b2417c6b1f2f6c
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
ui/tests/SurfaceTextureClient_test.cpp
b9783b49f4727a0365f2297bb903db8682855adf 25-May-2011 Simon Wilson <simonwilson@google.com> am c9cd2387: Merge changes I37f0f315,I8cbf6044,Ibb598931,I5262bf11 into gingerbread

* commit 'c9cd2387b6938a6fbefc731d2177902266f2a130':
Fix a race that could cause GL commands to be executed from the wrong thread.
RefBase subclasses can now decide how they want to be destroyed.
Fix a race in SurfaceFlinger that could cause layers to be leaked forever.
Fix a race-condtion in SurfaceFlinger that could lead to a crash.
68d6075b4ad2205c10064c78cde552e3210cca91 17-Mar-2011 Jeff Brown <jeffbrown@google.com> Refactor how timeouts are calculated. (DO NOT MERGE)

Added a timeout mechanism to EventHub and InputReader so that
InputMappers can request timeouts to perform delayed processing of
input when needed.

Change-Id: I89c1171c9326c6e413042e3ee13aa9f7f1fc0454
tils/Looper.cpp
tils/Timers.cpp
5b2b4d9c0a56c4b5e869c828a6c36a1b9e27d61b 15-Mar-2011 Jeff Brown <jeffbrown@google.com> Improve VelocityTracker numerical stability. (DO NOT MERGE)

Replaced VelocityTracker with a faster and more accurate
native implementation. This avoids the duplicate maintenance
overhead of having two implementations.

The new algorithm requires that the sample duration be at least
10ms in order to contribute to the velocity calculation. This
ensures that the velocity is not severely overestimated when
samples arrive in bursts.

The new algorithm computes the exponentially weighted moving
average using weights based on the relative duration of successive
sample periods.

The new algorithm is also more careful about how it handles
individual pointers going down or up and their effects on the
collected movement traces. The intent is to preserve the last
known velocity of pointers as they go up while also ensuring
that other motion samples do not count twice in that case.

Bug: 4086785
Change-Id: I95054102397c4b6a9076dc6a0fc841b4beec7920
i/Input.cpp
96ad3979f328a1aa098917ca1c35575e85345526 10-Mar-2011 Jeff Brown <jeffbrown@google.com> Use touch pad gestures to manipulate the pointer. (DO NOT MERGE)

1. Single finger tap performs a click.
2. Single finger movement moves the pointer (hovers).
3. Button press plus movement performs click or drag.
While dragging, the pointer follows the finger that is moving
fastest. This is important if there are additional fingers
down on the touch pad for the purpose of applying force
to an integrated button underneath.
4. Two fingers near each other moving in the same direction
are coalesced as a swipe gesture under the pointer.
5. Two or more fingers moving in arbitrary directions are
transformed into touches in the vicinity of the pointer.
This makes scale/zoom and rotate gestures possible.

Added a native VelocityTracker implementation to enable intelligent
switching of the active pointer during drags.

Change-Id: I7b7ddacc724fb1306e1590dbaebb740d3130d7cd
i/Input.cpp
i/InputTransport.cpp
9e7636681eda094dd328ce9bf54d0b0166be1e67 20-May-2011 Mathias Agopian <mathias@google.com> RefBase subclasses can now decide how they want to be destroyed.

This adds a destroy() virtual on RefBase which
sublasses can implement. destroy() is called
in lieu of the destructor whenthe last strong
ref goes away.

Bug: 4483050
Change-Id: I8cbf6044a6fd3f01043a45592b5a60fa1e5fade2
tils/RefBase.cpp
8e4ee2d709bb76454d0571d13128bd68c894633a 20-May-2011 Mathias Agopian <mathias@google.com> Merge "Call RefBase::destroy() when OBJECT_LIFETIME_* is not the default"
9162bca1424da7b4e36ac3750069ddfffe39634f 20-May-2011 Chet Haase <chet@google.com> Merge "Enable large font rendering with GPU acceleration"
161e67ff3ba26408eea09221734ad2e29a1eed11 20-May-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 06a8ceac to master

Change-Id: Id51574c825affddfac14ad7214c5496d6a3d6e69
ba3cf462738353bb4a2fc6eb890f91350d402cb5 20-May-2011 Mathias Agopian <mathias@google.com> Call RefBase::destroy() when OBJECT_LIFETIME_* is not the default

Change-Id: Ifb2069e095dba57b7d97e9f2d942fd85fa975f58
tils/RefBase.cpp
16fa5aae96ec7bb0ecf1578197b64d477bb6946e 20-May-2011 Mathias Agopian <mathias@google.com> Merge "RefBase subclasses can now decide how they want to be destroyed."
6db8c505398a0979853f6c166e0a8bcafd9268f8 20-May-2011 Mathias Agopian <mathias@google.com> RefBase subclasses can now decide how they want to be destroyed.

This adds a destroy() virtual on RefBase which
sublasses can implement. destroy() is called
in lieu of the destructor whenthe last strong
ref goes away.
tils/RefBase.cpp
06a8ceacb0dc2713cb0bb2c93d2a750f2a58db68 20-May-2011 Dianne Hackborn <hackbod@google.com> am c851ea56: am 69cb8757: Add new "-swNNNdp" resource qualifier.

* commit 'c851ea5672f6e042c2e89b2a2ce4a2467e1fcd2a':
Add new "-swNNNdp" resource qualifier.
69cb87576ba163b61bb0e6477a3b7c57a9b11d40 20-May-2011 Dianne Hackborn <hackbod@google.com> Add new "-swNNNdp" resource qualifier.

Change-Id: I0101e88ca9d8d44138bdcaf571f24b0352f4f6ce
tils/ResourceTypes.cpp
44984ea0cb3702384d023b5f211deda3c4b0b656 19-May-2011 Chet Haase <chet@google.com> Enable large font rendering with GPU acceleration

Change-Id: I7b022100fb0762613f9cf7753dbb0217e1e75f8d
wui/FontRenderer.cpp
wui/FontRenderer.h
fcaba1464ef010ba0e3fdcbce2af74e45daec627 19-May-2011 MÃ¥rten Kongstad <marten.kongstad@sonyericsson.com> Continue idmap generation even if name lookup fails.

In resources.arsc files, a resource is represented by a specification
block and one or more value blocks. In rare cases, a resource name
is also given a new resource ID, a specification block and no values
blocks. This commit ensures idmap generation does not fail if such an
entry is encountered.

Change-Id: I32302a0b07a7a320b7eeb31886931be3bb7b7e9a
tils/ResourceTypes.cpp
d9d37cc1b6700923be5ae8c04fbb1b0effc7ab63 19-May-2011 Jason Sams <rjsams@android.com> Move context and device creation out of the spec file.

Change-Id: I79470d4fb9317bcad9d68921ce0c414aa133f3cb
s/RenderScript.h
s/rs.spec
s/rsContext.cpp
s/rsDevice.cpp
60108e629c4c7e97e62b071a70cc1a34f3b7c44d 19-May-2011 Alex Sakhartchouk <alexst@google.com> Merge "Preparing libRS for for compilation on host."
4235e034171b4eb74969b429e711ac062f56bbdc 18-May-2011 Mathias Agopian <mathias@google.com> Merge "Disable error report temporarily to enable inline video"
bca2d5b3df1394ae2bdfe1e9b65a75276754eadb 18-May-2011 Teng-Hui Zhu <ztenghui@google.com> Disable error report temporarily to enable inline video

bug:4435022

Change-Id: I06f05a4781ad432ab71db93f0815eb89cd2e7a69
ui/SurfaceTexture.cpp
706804e2e4199a7cfcb7e491d7aca38885ff0f14 18-May-2011 Eino-Ville Talvala <etalvala@google.com> Merge "Add auto-white balance locking to the Camera API."
9539d9f65a28b676e0a03322ad848b24786a515d 29-Apr-2011 Jamie Gennis <jgennis@google.com> libutils: add a binary blob cache implementation.

This change adds an implementation of a cache that stores key/value
pairs of unstructured binary blobs.

Change-Id: Idd01fdabedfa3aed6d359a6efb0592967af52651
tils/Android.mk
tils/BlobCache.cpp
tils/tests/Android.mk
tils/tests/BlobCache_test.cpp
6c72eec06e69559b4d990777c7b280aa81586797 17-May-2011 Alex Sakhartchouk <alexst@google.com> Preparing libRS for for compilation on host.

Change-Id: I851add79831331c8a8b20dcccdb0817f8ad0c359
s/RenderScriptDefines.h
s/driver/rsdGL.cpp
s/driver/rsdGL.h
s/rs.spec
s/rsContext.cpp
s/rsContext.h
s/rsUtils.h
s/rs_hal.h
51c07e717b4416dd338b0add3a3c94d1137366af 18-May-2011 Alex Sakhartchouk <alexst@google.com> Merge "Moves fbo support in renderscript behind the hal"
3badb0d0ca88421a44ed1d3be00a5eebbfa2fa19 18-May-2011 Jason Sams <rjsams@android.com> Merge "Core to client fifo on sockets."
edbfabdb98a2974f973d6c042e6efd547dc02fc5 18-May-2011 Jason Sams <rjsams@android.com> Core to client fifo on sockets.

Change-Id: I3b84a7d4c3c5fa0d764ad4db22dfd142d5cfa95b
s/rs.spec
s/rsContext.cpp
s/rsContext.h
s/rsFifoSocket.cpp
s/rsHandcode.h
s/rsThreadIO.cpp
s/rsThreadIO.h
s/rsg_generator.c
d9c2601afa46811bcb1345963d38010690981a01 13-May-2011 Eino-Ville Talvala <etalvala@google.com> Add auto-white balance locking to the Camera API.

Adds a new camera parameter for locking auto-white balance to its
current value. Also adds a function for checking if auto-white balance
lock is supported by the current platform. Lock semantics match that
of the auto-exposure lock.

Hidden for now.

Change-Id: Id59339a4be84d55c1b0b8473d765b6aa765999b2
amera/CameraParameters.cpp
d39d1affe82cb8c21d32baaa5fbb2d6afb806f8e 16-May-2011 Derek Sollenberger <djsollen@google.com> Updates resulting from the Skia merge (revision 1327)

Change-Id: I2a8f5869dbe95bb594f2ba5d7278f9b330e6f17a
wui/OpenGLRenderer.cpp
42d7c9c0615319f8568ad04e8298579371f9ce3e 14-May-2011 Christopher Tate <ctate@google.com> Merge "Full backup tweaks"
dc92c82b4180e8067f1acd00a7db7935afce00ff 14-May-2011 Christopher Tate <ctate@google.com> Full backup tweaks

* provide placeholder UI showing backup/restore start/stop/timeout
* don't kill the progress UI in mid stream
* tidy up the pax extended header data writing a little

Change-Id: Ife0cb78e3facb541d8327f1d5ca5fe77faa6cbca
tils/BackupHelpers.cpp
2f6964fc89bf69c8e37f096d37c8e224d598b8f8 13-May-2011 Alex Sakhartchouk <alexst@google.com> Moves fbo support in renderscript behind the hal

Change-Id: I26a857586f5f0b47df4c1f4589d2023e70481ec7
s/Android.mk
s/driver/rsdCore.cpp
s/driver/rsdFrameBuffer.cpp
s/driver/rsdFrameBuffer.h
s/rsContext.cpp
s/rsFBOCache.cpp
s/rsFBOCache.h
s/rs_hal.h
65f47d88107b2e34e4bab1f5208bff3f73ce4e8a 13-May-2011 Jeff Brown <jeffbrown@google.com> Merge "Add initial API for stylus and mouse buttons."
fe9f8ab03a63b1037f07dd85799fbea80ec6adaa 07-May-2011 Jeff Brown <jeffbrown@google.com> Add initial API for stylus and mouse buttons.

Added the concept of pointer properties in a MotionEvent.
This is currently used to track the pointer tool type to enable
applications to distinguish finger touches from a stylus.

Button states are also reported to application as part of touch events.

There are no new actions for detecting changes in button states.
The application should instead query the button state from the
MotionEvent and take appropriate action as needed.

A good time to check the button state is on ACTION_DOWN.

As a side-effect, applications that do not support multiple buttons
will treat primary, secondary and tertiary buttons identically
for all touch events.

The back button on the mouse is mapped to KEYCODE_BACK
and the forward button is mapped to KEYCODE_FORWARD.

Added basic plumbing for the secondary mouse button to invoke
the context menu, particularly in lists.

Added clamp and split methods on MotionEvent to take care of
common filtering operations so we don't have them scattered
in multiple places across the framework.

Bug: 4260011
Change-Id: Ie992b4d4e00c8f2e76b961da0a902145b27f6d83
i/Input.cpp
i/InputTransport.cpp
i/tests/InputEvent_test.cpp
i/tests/InputPublisherAndConsumer_test.cpp
2e4a3236a7634d17f89288e9739a438ecbea0471 13-May-2011 Dianne Hackborn <hackbod@google.com> am 46a282f3: am 0ed2e845: Merge "DO NOT MERGE. Integrate add new screen width/height in "dp" configs." into honeycomb-mr2

* commit '46a282f323bc05606e4fe1eba795bd9ac7c99819':
DO NOT MERGE. Integrate add new screen width/height in "dp" configs.
9dec462c1f522533620be3c70f2fc60e69368c1a 13-May-2011 Fabrice Di Meglio <fdimeglio@google.com> Merge "Prepare OpenGLRenderer to use glyphs from TextLayoutCache"
2ea75880142152b3a9993cb245754d73c05749a7 13-May-2011 Fabrice Di Meglio <fdimeglio@google.com> Prepare OpenGLRenderer to use glyphs from TextLayoutCache

- add OpenGLRenderer.drawGlyph()
- refactor glypth logging code

Change-Id: I797e6f1304d3f3f8f6ed31e7f9965d336233d2a4
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
d4a010d584e14d6bc3999438dbdb17114c3989f0 13-May-2011 Alex Sakhartchouk <alexst@google.com> Merge "Cleanup mesh creation."
ebff8f92f13513ce37bd74759eb1db63f2220590 13-May-2011 Dianne Hackborn <hackbod@google.com> DO NOT MERGE. Integrate add new screen width/height in "dp" configs.

You can now specify resource configuration variants "wNNNdp"
and "hNNNdp". These are the minimum screen width/height in "dp"
units. This allows you to do things like have your app adjust
its layout based only on the about of horizontal space available.

This introduces a new configuration change flag for screen size.
Note that this configuration change happens each time the orientation
changes. Applications often say they handle the orientation change
to avoid being restarted at a screen rotation, and this will now
cause them to be restarted. To address this, we assume the app can
handle this new config change if its target SDK version is < ICS.

Change-Id: I4acb73d82677b74092c1da9e4046a4951921f9f4
tils/ResourceTypes.cpp
83a7cdc56539d00933c2e25999620cec94c524b6 13-May-2011 Christopher Tate <ctate@google.com> Use pax extended tar format to support long filenames etc.

'tar' supports only 100-character paths; 'ustar' supports only
155+100 character prefix + paths; neither supports files larger
than about 8 gigabytes. We now use the POSIX.1-2001 'pax'
extended tar format for those files in the backup stream that
are too large or have too-long paths for the 'ustar' format.

Change-Id: I2f256823091deaec9b1ccea685d2344753c6cb67
tils/BackupHelpers.cpp
674b595fa5299d138e068b2b786027d6d6225394 12-May-2011 Chet Haase <chet@google.com> Merge "Antialiasing for rectangles"
858aa93ddb6e69e0503382af63bb681b6728aef1 12-May-2011 Chet Haase <chet@google.com> Antialiasing for rectangles

Change-Id: I7ca6931606541ddd504bd5db7f8dc04b9cde8cd9
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
25999a08a6652ff5d7d0973f279f1e92e04b3506 12-May-2011 Alex Sakhartchouk <alexst@google.com> Cleanup mesh creation.

Change-Id: Iaf5e060711dcb6341ac0f337dfb274528cb68d3e
s/rs.spec
s/rsMesh.cpp
s/rsMesh.h
415c842aa6dd3cc797ed2ef1ae42351f594a6c74 12-May-2011 Alex Sakhartchouk <alexst@google.com> Merge "rsLib cleanup"
e845c352c8eb93412fa7caedb5435d3597c795d0 12-May-2011 Mathias Agopian <mathias@google.com> fix onFrameAvailable

Change-Id: I391fe9f6684ac9fd4f91416ce18b583f7087d966
ui/SurfaceTexture.cpp
7f3289c95ec489651f1c04f1a71cfc7a8b535805 10-May-2011 Mathias Agopian <mathias@google.com> Add SurfaceTexture logging

Change-Id: If1b74be5230813fb76429935d88b9d4a7c41700c
ui/SurfaceTexture.cpp
402ff24aa199a2587498b694e2be67ceb1265c69 03-May-2011 Mathias Agopian <mathias@google.com> Implement {Surface|SurfaceTextureClient}::setSwapInterval()

Change-Id: I8382e346ddaa2c4c8ff56ac3ffd7f0109572f188
ui/ISurfaceTexture.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
ui/tests/SurfaceTextureClient_test.cpp
a6b717b52a79c83e66247ab49050ddf07b4d5126 26-Apr-2011 Mathias Agopian <mathias@google.com> new tests for SurfaceTexture synchronous mode

Change-Id: Icfdaa625238246f8d0224efe28fdf2c1c24203f8
ui/tests/SurfaceTextureClient_test.cpp
5bbb1cf9d7f9ecb8a2fc5ca8ba51c222c2aaff16 22-Apr-2011 Mathias Agopian <mathias@google.com> Add the concept of synchronous dequeueBuffer in SurfaceTexture

Change-Id: Ic94cbab092953243a0746e04bbe1b2eb0cc930ef
ui/SurfaceTexture.cpp
ed3894c07a67b3e35d07084c4a8b410908bfedc5 20-Apr-2011 Mathias Agopian <mathias@google.com> unify SurfaceTexture and Surface

Change-Id: I49da2f5d8408e4cd7e148cfb777bb4ff68cd8f37
ui/ISurfaceTexture.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
ui/tests/SurfaceTextureClient_test.cpp
0297dcae8fddb18ab9e28ba1858a57a8aec3ef32 26-Apr-2011 Mathias Agopian <mathias@google.com> Fix a bug where setgeometry couldn't be undone

This change the binder protocol between SurfaceTextureClient
and SurfaceTexture. dequeueBuffer() now takes the requested
parameters for the buffer. SurfaceTexture decides if the
buffer needs to be reallocated and does the allocation
if needed. In that case it returns BUFFER_NEEDS_REALLOCATION
to tell SurfaceTextureClient that it needs to call
requestBuffer (which all parameters have been removed) to
acquire a pointer to the buffer.

dequeueBuffer and requestBuffer could be folded into a single
IPC call, but we chose to optimize the case where buffers are
not created and avoid some complexity in the marshalling code.

Change-Id: I097a7f6f40a3491e10f3f3742eab33999286c304
ui/ISurfaceTexture.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
5911f958e80ea7475dc24a5752eda163228ea4b7 11-May-2011 Conley Owens <cco3@android.com> am 041aa34e: am 87d86044: am bcd029b6: Merge "Add missing clean-up of idmap file descriptors."

* commit '041aa34e089d7b194a5d93c682c3af3d3116d3f3':
Add missing clean-up of idmap file descriptors.
a0f5bb10a5a7b10f376b5001b7cabb6b267d734f 11-May-2011 Christopher Tate <ctate@google.com> Merge "Full local backup infrastructure"
4a627c71ff53a4fca1f961f4b1dcc0461df18a06 01-Apr-2011 Christopher Tate <ctate@google.com> Full local backup infrastructure

This is the basic infrastructure for pulling a full(*) backup of the
device's data over an adb(**) connection to the local device. The
basic process consists of these interacting pieces:

1. The framework's BackupManagerService, which coordinates the
collection of app data and routing to the destination.

2. A new framework-provided BackupAgent implementation called
FullBackupAgent, which is instantiated in the target applications'
processes in turn, and knows how to emit a datastream that contains
all of the app's saved data files.

3. A new shell-level program called "bu" that is used to bridge from
adb to the framework's Backup Manager.

4. adb itself, which now knows how to use 'bu' to kick off a backup
operation and pull the resulting data stream to the desktop host.

5. A system-provided application that verifies with the user that
an attempted backup/restore operation is in fact expected and to
be allowed.

The full agent implementation is not used during normal operation of
the delta-based app-customized remote backup process. Instead it's
used during user-confirmed *full* backup of applications and all their
data to a local destination, e.g. via the adb connection.

The output format is 'tar'. This makes it very easy for the end
user to examine the resulting dataset, e.g. for purpose of extracting
files for debug purposes; as well as making it easy to contemplate
adding things like a direct gzip stage to the data pipeline during
backup/restore. It also makes it convenient to construct and maintain
synthetic backup datasets for testing purposes.

Within the tar format, certain artificial conventions are used.
All files are stored within top-level directories according to
their semantic origin:

apps/pkgname/a/ : Application .apk file itself
apps/pkgname/obb/: The application's associated .obb containers
apps/pkgname/f/ : The subtree rooted at the getFilesDir() location
apps/pkgname/db/ : The subtree rooted at the getDatabasePath() parent
apps/pkgname/sp/ : The subtree rooted at the getSharedPrefsFile() parent
apps/pkgname/r/ : Files stored relative to the root of the app's file tree
apps/pkgname/c/ : Reserved for the app's getCacheDir() tree; not stored.

For each package, the first entry in the tar stream is a file called
"_manifest", nominally rooted at apps/pkgname. This file contains some
metadata about the package whose data is stored in the archive.

The contents of shared storage can optionally be included in the tar
stream. It is placed in the synthetic location:

shared/...

uid/gid are ignored; app uids are assigned at install time, and the
app's data is handled from within its own execution environment, so
will automatically have the app's correct uid.

Forward-locked .apk files are never backed up. System-partition
.apk files are not backed up unless they have been overridden by a
post-factory upgrade, in which case the current .apk *is* backed up --
i.e. the .apk that matches the on-disk data. The manifest preceding
each application's portion of the tar stream provides version numbers
and signature blocks for version checking, as well as an indication
of whether the restore logic should expect to install the .apk before
extracting the data.

System packages can designate their own full backup agents. This is
to manage things like the settings provider which (a) cannot be shut
down on the fly in order to do a clean snapshot of their file trees,
and (b) manage data that is not only irrelevant but actively hostile
to non-identical devices -- CDMA telephony settings would seriously
mess up a GSM device if emplaced there blind, for example.

When a full backup or restore is initiated from adb, the system will
present a confirmation UI that the user must explicitly respond to
within a short [~ 30 seconds] timeout. This is to avoid the
possibility of malicious desktop-side software secretly grabbing a copy
of all the user's data for nefarious purposes.

(*) The backup is not strictly a full mirror. In particular, the
settings database is not cloned; it is handled the same way that
it is in cloud backup/restore. This is because some settings
are actively destructive if cloned onto a different (or
especially a different-model) device: telephony settings and
AndroidID are good examples of this.

(**) On the framework side it doesn't care that it's adb; it just
sends the tar stream to a file descriptor. This can easily be
retargeted around whatever transport we might decide to use
in the future.

KNOWN ISSUES:

* the security UI is desperately ugly; no proper designs have yet
been done for it
* restore is not yet implemented
* shared storage backup is not yet implemented
* symlinks aren't yet handled, though some infrastructure for
dealing with them has been put in place.

Change-Id: Ia8347611e23b398af36ea22c36dff0a276b1ce91
tils/BackupData.cpp
tils/BackupHelpers.cpp
ed0fd52301f7cb85693480d69ac709fbd8940172 11-May-2011 Jason Sams <rjsams@android.com> Merge "Add code for generating fifo command packing."
041aa34e089d7b194a5d93c682c3af3d3116d3f3 11-May-2011 Conley Owens <cco3@android.com> am 87d86044: am bcd029b6: Merge "Add missing clean-up of idmap file descriptors."

* commit '87d86044c0f15ae2ffc0350271c76ff874fb413b':
Add missing clean-up of idmap file descriptors.
aa9d84c37e05f696ec158dac98ce38cf41e18314 10-May-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 05be6d6f to master

Change-Id: Ic6a6c5bb300f6f1d43f9ed550b284282b4f16212
05be6d6fe09ddfb706d1bef3b20c3d37f45e3c8a 10-May-2011 Dianne Hackborn <hackbod@google.com> am 4907d1d5: am 0c6cbf41: Merge "Better compat mode part one: start scaling windows." into honeycomb-mr2

* commit '4907d1d5e2c7d244b07579b8c52153df69754e85':
Better compat mode part one: start scaling windows.
e2515eebf42c763c0a2d9f873a153711778cfc17 28-Apr-2011 Dianne Hackborn <hackbod@google.com> Better compat mode part one: start scaling windows.

First step of improving app screen size compatibility mode. When
running in compat mode, an application's windows are scaled up on
the screen rather than being small with 1:1 pixels.

Currently we scale the application to fill the entire screen, so
don't use an even pixel scaling. Though this may have some
negative impact on the appearance (it looks okay to me), it has a
big benefit of allowing us to now treat these apps as normal
full-screens apps and do the normal transition animations as you
move in and out and around in them.

This introduces fun stuff in the input system to take care of
modifying pointer coordinates to account for the app window
surface scaling. The input dispatcher is told about the scale
that is being applied to each window and, when there is one,
adjusts pointer events appropriately as they are being sent
to the transport.

Also modified is CompatibilityInfo, which has been greatly
simplified to not be so insane and incomprehendible. It is
now simple -- when constructed it determines if the given app
is compatible with the current screen size and density, and
that is that.

There are new APIs on ActivityManagerService to put applications
that we would traditionally consider compatible with larger screens
in compatibility mode. This is the start of a facility to have
a UI affordance for a user to switch apps in and out of
compatibility.

To test switching of modes, there is a new variation of the "am"
command to do this: am screen-compat [on|off] [package]

This mode switching has the fundamentals of restarting activities
when it is changed, though the state still needs to be persisted
and the overall mode switch cleaned up.

For the few small apps I have tested, things mostly seem to be
working well. I know of one problem with the text selection
handles being drawn at the wrong position because at some point
the window offset is being scaled incorrectly. There are
probably other similar issues around the interaction between
two windows because the different window coordinate spaces are
done in a hacky way instead of being formally integrated into
the window manager layout process.

Change-Id: Ie038e3746b448135117bd860859d74e360938557
i/Input.cpp
407cae950325682a56fe5373dd218a666da901ef 06-May-2011 Alex Sakhartchouk <alexst@google.com> rsLib cleanup

Change-Id: Ifb66059338e3435ac79435296a650c44699921aa
s/driver/rsdGL.cpp
s/driver/rsdGL.h
s/driver/rsdMeshObj.cpp
s/driver/rsdShader.cpp
s/driver/rsdShaderCache.cpp
s/driver/rsdVertexArray.cpp
s/driver/rsdVertexArray.h
s/rsAllocation.cpp
s/rsContext.cpp
s/rsContext.h
s/rsFBOCache.cpp
s/rsFBOCache.h
s/rsMesh.cpp
s/rsProgramFragment.cpp
s/rsProgramFragment.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsScriptC_LibGL.cpp
7a22e107d100caea2a661ec73e4525d69f0f9759 06-May-2011 Jason Sams <rjsams@android.com> Add code for generating fifo command packing.

Change-Id: I2d2ef095344b200b10457de96ae1d85821edc91e
s/Android.mk
s/rs.spec
s/rsElement.cpp
s/rsFifo.cpp
s/rsFifo.h
s/rsFifoSocket.cpp
s/rsFifoSocket.h
s/rsg_generator.c
s/spec.l
c54ed966f78b9ee8117931859d62faa6f11fe018 06-May-2011 Chet Haase <chet@google.com> Minor javadoc enhancements

Change-Id: Ic24bb0e1e669989f0cae3a9b8fa064b38c8e7948
wui/OpenGLRenderer.cpp
3825fef300122ffcc262e56a36a9fc36d8d084b0 06-May-2011 Chet Haase <chet@google.com> Merge "Fix for scaled AA lines"
99ecdc480dd4f9b550b2a62ea39f77845a4fec49 06-May-2011 Chet Haase <chet@google.com> Fix for scaled AA lines

Previously, the translucent boundary of AA lines would be scaled
by the line's transform. It should always be exactly one pixel wide
in screen space. This fix accounts for scaling for the boundary
region, and fixes some AA calculations that make wide/AA lines
more correct.

Change-Id: I30df2d5d96315bf3e7ff30be9735282fd5439a39
wui/OpenGLRenderer.cpp
438505431c253fd891f3deda38033c30268913e8 06-May-2011 Alex Sakhartchouk <alexst@google.com> Moving samplers behind the hal.

Change-Id: I494e5a9d2b599d07b985328b346f1f10ae4972e1
s/Android.mk
s/driver/rsdCore.cpp
s/driver/rsdSampler.cpp
s/driver/rsdSampler.h
s/driver/rsdShader.cpp
s/driver/rsdShader.h
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramBase.h
s/rsProgramRaster.cpp
s/rsProgramRaster.h
s/rsProgramStore.cpp
s/rsProgramStore.h
s/rsSampler.cpp
s/rsSampler.h
s/rs_hal.h
19c5c7a7bc0fe7d91a3d39c10a001aed25a6f1ca 05-May-2011 Alex Sakhartchouk <alexst@google.com> Merge "Code Cleanup and better Sampler creation method"
ed30fd8e9a2d65ee5c8520de55b0089c219f390c 23-Apr-2011 Chet Haase <chet@google.com> Add ability for hierarchyviewer to output displaylist info

Clicking on a node in hierarchyviewer1 and hierarchyviewer2 and then
clicking the new "Dump DisplayList" button will cause the display
list for the selected node (including its children) to be output into
logcat.

Change-Id: Iad05f5f6cca0f8b465dccd962b501dc18fe6e053
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
2b91c67137dfcdfc3f418e13ad63cef68f5247ac 05-May-2011 MÃ¥rten Kongstad <marten.kongstad@sonyericsson.com> Add missing clean-up of idmap file descriptors.

Change-Id: I9bdc9a4b7962f1a8dce77f4b213c8b9dc26e4b0f
tils/AssetManager.cpp
a17de9b493123f0d6e6d0b842150bf29322b7a88 05-May-2011 Chet Haase <chet@google.com> Revert "Add ability for hierarchyviewer to output displaylist info"

This reverts commit b2a4b52e8d5e499d33e2765e8c47851bf0266299.
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
a89094aa3bc059c6e03b20b4c5b1ede4582f3da9 05-May-2011 Alex Sakhartchouk <alexst@google.com> Code Cleanup and better Sampler creation method

Change-Id: I9e35081ee6034cb619f43a47f8f22f38977f5d12
s/rs.spec
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramFragment.cpp
s/rsProgramVertex.cpp
s/rsSampler.cpp
s/rsSampler.h
42a3a39e231c02a3c2b7624cb7c64fe10d6ff4b0 05-May-2011 Chet Haase <chet@google.com> Merge "Add ability for hierarchyviewer to output displaylist info"
b2a4b52e8d5e499d33e2765e8c47851bf0266299 23-Apr-2011 Chet Haase <chet@google.com> Add ability for hierarchyviewer to output displaylist info

Clicking on a node in hierarchyviewer1 and hierarchyviewer2 and then
clicking the new "Dump DisplayList" button will cause the display
list for the selected node (including its children) to be output into
logcat.

Change-Id: Id32f62569ad1ab4d533bc62987f3a7390c1bb4e6
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
2698536b3ff60bfee85e47e4a8d4b25fdfdf4db5 04-May-2011 Jason Sams <rjsams@android.com> Fix error checks on compute context creation.
Remove GL init for compute scripts.

Change-Id: I1bce8e4112babf4345fa56a30a9bed753734d8d6
s/rsContext.cpp
b2a153adc9860616acdb96d7cdd64494d5a2a0f2 01-May-2011 Iliyan Malchev <malchev@google.com> frameworks/base: android_native_buffer_t -> ANativeWindowBuffer

Change-Id: Idc2eabaa805bb6d308ebb315872623f28d428417
Signed-off-by: Iliyan Malchev <malchev@google.com>
ui/Surface.cpp
ui/SurfaceTextureClient.cpp
ui/tests/SurfaceTextureClient_test.cpp
ui/tests/SurfaceTexture_test.cpp
ui/tests/Surface_test.cpp
i/FramebufferNativeWindow.cpp
i/GraphicBuffer.cpp
4d7c1ce651bd5e283e694fa34641e1dc080613c0 15-Apr-2011 Iliyan Malchev <malchev@google.com> frameworks/base: make the ANativeWindow query() method const

query() does not modify the object's data, so it needs to be a const method

Change-Id: I67c40a3c865461e6f1cc2193fd2d74286ff6ac8f
Signed-off-by: Iliyan Malchev <malchev@google.com>
ui/Surface.cpp
ui/SurfaceTextureClient.cpp
i/FramebufferNativeWindow.cpp
629b565162d4a0e27c20303a7ce37b6815a8f1ff 03-May-2011 Jason Sams <rjsams@android.com> Merge "Try fixing auto data inlining again."
3723396c7ad7f0290232113a7bf79564f13df31f 03-May-2011 Eino-Ville Talvala <etalvala@google.com> Merge "Add an auto-exposure lock feature to the Camera API."
df0a7fbdcff3c683641b7980da50a7d0eebe0876 03-May-2011 Romain Guy <romainguy@google.com> Merge "Allows to render with an OpenGL context inside a TextureView."
8f0095cd33558e9cc8a440047908e53b68906f5f 03-May-2011 Romain Guy <romainguy@google.com> Allows to render with an OpenGL context inside a TextureView.

Change-Id: I59453f7fc3997f0502a1c5d325d37fed376fabc7
wui/Layer.h
wui/LayerRenderer.cpp
wui/LayerRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/ProgramCache.cpp
wui/ProgramCache.h
b96e9517affa31c2f9b5c8c005c85d2cc99453b4 03-May-2011 Jason Sams <rjsams@android.com> Try fixing auto data inlining again.

Change-Id: I95113db85551cbee774250eacb69553af1cf27bc
s/rsg_generator.c
7c212b2749e123733eb4cffb6f36fccb5945d6eb 03-May-2011 Chet Haase <chet@google.com> Merge "Line endcaps for AA lines are now antialiased."
99585adeb4167ca357a72eb866f34c1af944f4b9 03-May-2011 Chet Haase <chet@google.com> Line endcaps for AA lines are now antialiased.

Also fixed other minor issues with AA and line rendering.

Change-Id: Icd4638d27c70e2ee0f28b5d9a2b97d8b29e8ac4d
wui/Caches.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/ProgramCache.cpp
wui/ProgramCache.h
wui/Vertex.h
d224c64a1fab19ebc78814dcfc3ad6156b611991 02-May-2011 Alex Sakhartchouk <alexst@google.com> Merge "Moving renderscript GL code into the HAL This change affects - shaders - meshes - fonts - quad rendering"
0be97d8b5e4cd3642eff920e003e4f134ddf6d43 02-May-2011 Jason Sams <rjsams@android.com> Temporarly disable auto-inbanding.

Change-Id: Ia83389c094914f0bb69bff8f6965ae445c89de07
s/rsg_generator.c
3773eef4e36fa4171a84b495dca849be112df0a8 15-Apr-2011 Eino-Ville Talvala <etalvala@google.com> Add an auto-exposure lock feature to the Camera API.

Adds a new camera parameter for locking auto-exposure to its current
value. Also adds a function for checking if auto-exposure lock is
supported by the current platform.

Hidden for now.

Change-Id: Id452371191ab220318ce2cb98b8ee91bdde9aab6
amera/CameraParameters.cpp
4a36b45c72b91045db49c54d33fd7a05fc5a7a3d 30-Apr-2011 Alex Sakhartchouk <alexst@google.com> Moving renderscript GL code into the HAL
This change affects
- shaders
- meshes
- fonts
- quad rendering

Change-Id: I2a53acb4cd1fa8f4c6e67668f6ee969f3d7f7aa1
s/Android.mk
s/driver/rsdCore.cpp
s/driver/rsdGL.cpp
s/driver/rsdGL.h
s/driver/rsdMesh.cpp
s/driver/rsdMesh.h
s/driver/rsdMeshObj.cpp
s/driver/rsdMeshObj.h
s/driver/rsdProgram.cpp
s/driver/rsdProgramFragment.h
s/driver/rsdProgramVertex.h
s/driver/rsdRuntimeMath.cpp
s/driver/rsdRuntimeStubs.cpp
s/driver/rsdShader.cpp
s/driver/rsdShader.h
s/driver/rsdShaderCache.cpp
s/driver/rsdShaderCache.h
s/driver/rsdVertexArray.cpp
s/driver/rsdVertexArray.h
s/rsContext.cpp
s/rsContext.h
s/rsFont.cpp
s/rsFont.h
s/rsMesh.cpp
s/rsMesh.h
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramFragment.cpp
s/rsProgramFragment.h
s/rsProgramStore.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsScriptC_LibGL.cpp
s/rsShaderCache.cpp
s/rsShaderCache.h
s/rsType.h
s/rsVertexArray.cpp
s/rsVertexArray.h
s/rs_hal.h
eccf6c6483564bbe21020e2affb490ced2345e5e 30-Apr-2011 Jason Sams <rjsams@android.com> Fix bug 4355588
With auto inbanding the fifo didn't reserve the correct size.
Caused failure on fifo wrap.

Change-Id: Ie78e7bef5286f68c6239f79ee2f284fd99bdacc3
s/rsg_generator.c
3ea208a843d30f4cd34f2f1a239a029908576538 29-Apr-2011 Jason Sams <rjsams@android.com> Merge "Pipe rsa function though the RS api table."
7da9ff5b970936eeffae86af1d288fb0662741cd 29-Apr-2011 Jason Sams <rjsams@android.com> Merge "Fix fifo size check code."
c1f52d3f754ec7a295de7f1c4158030fba8bcf8a 29-Apr-2011 Jason Sams <rjsams@android.com> Fix fifo size check code.

Change-Id: If4a1874e34409e99c3fe63ff06e2b97e3369049d
s/rsContext.cpp
8ebf35589dd2bee84ad93613df21666b8858a10f 29-Apr-2011 Conley Owens <cco3@android.com> Merge "Implement support for ALT and SHIFT modifiers"
1ecd0a9b28f8d608cac1a1db6c9bd493ace0ca3e 29-Apr-2011 Conley Owens <cco3@android.com> Merge "modify the device to enable to get the state as slide-open/slide-close."
ad44445c772efe66fdf063aa8f78d7ae3233570e 29-Apr-2011 Romain Guy <romainguy@google.com> Merge "New widget: TextureView Bug #4343984"
aa6c24c21c727a196451332448d4e3b11a80be69 29-Apr-2011 Romain Guy <romainguy@google.com> New widget: TextureView
Bug #4343984

TextureView can be used to render media content (video, OpenGL,
RenderScript) inside a View.

The key difference with SurfaceView is that TextureView does
not create a new Surface. This gives the ability to seamlessly
transform, animate, fade, etc. a TextureView, which was hard
if not impossible to do with a SurfaceView.
A TextureView also interacts perfectly with ScrollView,
ListView, etc. It allows application to embed media content
in a much more flexible way than before.

For instance, to render the camera preview at 50% opacity,
all you need to do is the following:

mTextureView.setAlpha(0.5f);
Camera c = Camera.open();
c.setPreviewTexture(mTextureView.getSurfaceTexture());
c.startPreview();

TextureView uses a SurfaceTexture to get the job done. More
APIs are required to make it easy to create OpenGL contexts
for a TextureView. It can currently be done with a bit of
JNI code.

Change-Id: Iaa7953097ab5beb8437bcbbfa03b2df5b7f80cd7
wui/Layer.h
wui/LayerCache.cpp
wui/LayerRenderer.cpp
wui/LayerRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/ProgramCache.cpp
wui/ProgramCache.h
c576537166fa3f829e4b5d8c6617a36b47e75fc3 29-Apr-2011 Jason Sams <rjsams@android.com> Pipe rsa function though the RS api table.

Change-Id: Ic8a3bef5d337be1d8fc5ca961eec6be4761701c5
s/rs.spec
s/rsAllocation.cpp
s/rsContext.cpp
s/rsDevice.cpp
s/rsType.cpp
s/rsg_generator.c
ca2773bc456dfaf84685f75c4a20e26269879e87 29-Apr-2011 Jamie Gennis <jgennis@google.com> Merge "libgui: enable tests in the 'tests' build."
332d66d6c5b22224fe662d8111b3b792f300a470 28-Apr-2011 Jason Sams <rjsams@android.com> Merge "Start implementing control side forEach."
431d5cf7d0f49de2243aeadc6c5502f2163523b5 28-Apr-2011 Mathias Agopian <mathias@google.com> Merge "Fix uninitialized variable in SurfaceTexture"
926340cf56c9a2d21008d050a4e0f1390cf648bf 28-Apr-2011 Mathias Agopian <mathias@google.com> Fix uninitialized variable in SurfaceTexture

Change-Id: Ie77cdad481fc0522ff5ea3b7e14ce94e07150793
ui/SurfaceTexture.cpp
5ac02e73c313935b1af8a536e47f74b616986dfe 28-Apr-2011 Stephen Hines <srhines@google.com> am 697f8b33: am 00df8e23: Merge "Check setName() for null string + fix rsRand()." into honeycomb-mr1

* commit '697f8b331bb339e4db716efbb96e2182aac40255':
Check setName() for null string + fix rsRand().
a08526ac42b3da98926ae921a6d8cfb9bbc90553 28-Apr-2011 Jason Sams <rjsams@android.com> Start implementing control side forEach.

Change-Id: I2d77d908cbb64b26071d9d5a3421f0b195342d2c
s/rs.spec
s/rsHandcode.h
s/rsScript.cpp
s/rsThreadIO.cpp
s/rsg_generator.c
75e3ef048d8826f0db58f117403ce412e1d076a7 27-Apr-2011 Chet Haase <chet@google.com> Merge "Fix various hw-accelerated line/point bugs"
2ef1ce494c923a9163de08f5cda6259e23134761 27-Apr-2011 Romain Guy <romainguy@google.com> Merge "Correctly compute tex coords for rect layers. Bug #4192695"
8a5cc92a150bae38ec43732d941b38bb381fe153 26-Apr-2011 Chet Haase <chet@google.com> Fix various hw-accelerated line/point bugs

All accelerated lines are now rendered as quads. Hairlines used to
be rendered as GL_LINES, but these lines don't render the same as our
non-accelerated lines, so we're using quads for everything. Also, fixed
a bug in the way that we were offsetting quads (and not offseting points)
to ensure that our lines/points actuall start on the same pixels as
Skia's.

Change-Id: I51b923cc08a9858444c430ba07bc8aa0c83cbe6a
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Program.cpp
wui/Program.h
9fc27819d75e24ad63d7b383d80f5cb66a577a0d 27-Apr-2011 Romain Guy <romainguy@google.com> Correctly compute tex coords for rect layers.
Bug #4192695

This change also fixes Javadoc links in the framework.

Change-Id: Ia548bcb18baba5d6fe6a4a04a2278e3a3bd465b2
wui/Layer.h
wui/LayerRenderer.cpp
wui/OpenGLRenderer.cpp
4658d779e37b0127060438b4cb364c3e0eab5956 20-Apr-2011 Alex Sakhartchouk <alexst@google.com> Check setName() for null string + fix rsRand().

Change-Id: I5e0042930209861e2eb9acc91380e9473dac0997
s/rsScriptC_Lib.cpp
36f873c765fee84ec26b0e21021ef4c6edc78123 27-Apr-2011 Jason Sams <rjsams@android.com> Merge "Cleanup rs.spec file and code generator."
faee9c397d7f277031c3bf5578fd72d9208705d1 27-Apr-2011 Mathias Agopian <mathias@google.com> Merge "Report errors when eglCreateImageKHR fails"
8f9f2fd43b95ef250d74ba95baf32fd13ca2bff5 27-Apr-2011 Jamie Gennis <jgennis@google.com> libgui: enable tests in the 'tests' build.

This change makes the libgui makefile recurse into the tests directory
so that the tests get built by a top-level make when
TARGET_BUILD_VARIANT=tests.

Change-Id: I6f623cc4b86dfeb00b9d21823316dbd9def23110
ui/Android.mk
ui/tests/Android.mk
2d039219adbeaad1a481267bca021b1a8645b481 27-Apr-2011 Romain Guy <romainguy@google.com> Merge "Apply shaders/filters to text drop shadows. Bug #4318323"
740bf2bb2e900d3db2292b5909b4b4c6e90320e6 27-Apr-2011 Romain Guy <romainguy@google.com> Apply shaders/filters to text drop shadows.
Bug #4318323

This change also fixes the fact that shaders were not modulated
by the paint's color when drawing paths.

Change-Id: Id88804143aea06c895d4cbcdbe106d660230aa5a
wui/OpenGLRenderer.cpp
wui/ProgramCache.cpp
6fad64c747040e6abcc6a57b99e5ba9293ee4d99 26-Apr-2011 Mathias Agopian <mathias@google.com> Report errors when eglCreateImageKHR fails

Change-Id: Ica39b72ac2505675e619ef4994bd67b98bf6e7da
ui/SurfaceTexture.cpp
65bdaf1c6d463d9441125d2c87a36015bfef2d95 26-Apr-2011 Jason Sams <rjsams@android.com> Cleanup rs.spec file and code generator.

Change-Id: I369e36b222ff962fc6835bc550435c2940e2b5fd
s/RenderScript.h
s/rs.spec
s/rsAllocation.cpp
s/rsContext.cpp
s/rsg_generator.c
s/spec.h
s/spec.l
64e00980a335d86402e2c318bcf19f58d11b8163 26-Apr-2011 Stephen Hines <srhines@google.com> Merge "Start ICS header cleanup and finish type matrix."
87dfce43075e933972b42a0071329b112af33bef 26-Apr-2011 Kenny Root <kroot@android.com> am fbb0e9f9: am bb93dad9: am bb10986c: am 13ce221e: Merge "libutils: Fix an improper const-cast in RefBase"

* commit 'fbb0e9f9846e185ba8ded63d754c4e61b1499b90':
libutils: Fix an improper const-cast in RefBase
fbb0e9f9846e185ba8ded63d754c4e61b1499b90 26-Apr-2011 Kenny Root <kroot@android.com> am bb93dad9: am bb10986c: am 13ce221e: Merge "libutils: Fix an improper const-cast in RefBase"

* commit 'bb93dad9250c0ee8330ab37bbdcd2eb8bfc0f930':
libutils: Fix an improper const-cast in RefBase
bb10986c3d7493eaa3cd16042c8e6dae4769a071 26-Apr-2011 Kenny Root <kroot@android.com> am 13ce221e: Merge "libutils: Fix an improper const-cast in RefBase"

* commit '13ce221e4316f7956ba072e774a7b97646e5d99b':
libutils: Fix an improper const-cast in RefBase
84baa7f63982438b46822a105e585624e7d1db88 26-Apr-2011 Jamie Gennis <jgennis@google.com> Merge "EGL: Allow creating a SurfaceTexture EGLSurface."
9e797784d58393bc9cff894de1e464563354d2d3 26-Apr-2011 Mathias Agopian <mathias@google.com> Merge "libgui: Fix the tests so they build."
7868c64fffd164dccf06411372b922dfea26c0e6 26-Apr-2011 Jamie Gennis <jgennis@google.com> EGL: Allow creating a SurfaceTexture EGLSurface.

This change removes the check that disallowed the creation of an
EGLSurface that would send frames to a SurfaceTexture.

Change-Id: I44c6d5df503cc676a88144d72d39b414692ce4c9
ui/tests/SurfaceTextureClient_test.cpp
5dbf2ed575c424a0d65e70458d5a02eb21872b33 26-Apr-2011 Jamie Gennis <jgennis@google.com> libgui: Fix the tests so they build.

Change-Id: I7205b0819e5801ac549109ff562c3ab1b113d176
ui/tests/SurfaceTexture_test.cpp
ui/tests/Surface_test.cpp
6cc888e77e17ac522f75bf61403307de8ace2ef3 23-Apr-2011 Jason Sams <rjsams@android.com> Start ICS header cleanup and finish type matrix.

Change-Id: If65f96f08c958d330862c543d85dd9d4a0f90e06
s/scriptc/rs_types.rsh
1a2210ced1434924f2b459486bfe95c80f5323e7 25-Apr-2011 Chet Haase <chet@google.com> Merge "Minor cleanup in GLrenderer code"
6fca9884b3ea24d5775af4cf713fd81506913a39 25-Apr-2011 Chet Haase <chet@google.com> Minor cleanup in GLrenderer code

Changed the way we use bitcodes for one of the rendering
options to make the code cleaner.

Change-Id: Ifaa965f228dbdad297a40da93bfbe63373986e35
wui/ProgramCache.h
e7c4a7565c7f8c8fc1ec92dc0692577fcc474750 06-Apr-2011 Alex Sakhartchouk <alexst@google.com> Modifying libRS internal communication to handle network rendering.

Change-Id: I8c8b3cc3402ecf4ba774e1d668dce25ff0af0e5a
s/rs.spec
s/rsAllocation.cpp
s/rsContext.cpp
s/rsElement.cpp
s/rsFont.cpp
s/rsHandcode.h
s/rsScriptC.cpp
s/spec.l
cc5a7d2328f7662fd4b17eb542c73cffbf799b9c 25-Apr-2011 Chet Haase <chet@google.com> Merge "Fix bitfield bug with vertex shader selection"
6cfdf4538049e4b96f50d8c0fe3119664420cc34 23-Apr-2011 Chet Haase <chet@google.com> Fix bitfield bug with vertex shader selection

Change-Id: I8bd3005f363afb52e6624806efb3e04c4a56ee18
wui/OpenGLRenderer.cpp
wui/ProgramCache.h
21cd43cbba5ffef3ab666dff52e720a824c2a09a 22-Apr-2011 Jason Sams <rjsams@android.com> Add matrix logging.

Change-Id: I42fb61747cf1ddf9b367faf6ce9109429d34e9cf
s/rsMatrix4x4.cpp
s/rsMatrix4x4.h
e2b3304e40c99a91762d27a441ac8fcef4834a3d 22-Apr-2011 Jason Sams <rjsams@android.com> Fix rsRand(float, float)

Change-Id: I553d83e1e962ad34aacbe6572d47ff25c3d50060
s/driver/rsdRuntimeMath.cpp
c4fbbe06a53de3951c258978ffce1b1f185f8828 22-Apr-2011 Josh Stone <cuviper@gmail.com> libutils: Fix an improper const-cast in RefBase

Under Fedora 15 Beta, gcc 4.6.0 warns:

frameworks/base/libs/utils/RefBase.cpp: In member function
‘void android::RefBase::weakref_type::trackMe(bool, bool)’:
frameworks/base/libs/utils/RefBase.cpp:483:67: error: passing
‘const android::RefBase::weakref_impl’ as ‘this’ argument of
‘void android::RefBase::weakref_impl::trackMe(bool, bool)’
discards qualifiers [-fpermissive]

trackMe is not a const function, so don't use const in the static_cast
to a weakref_impl pointer.

Change-Id: I3c9ba73eb127985f5f54197ffecf2939c50f632c
tils/RefBase.cpp
5db1314192b462f3666455fdae42a96ec2918ce9 22-Apr-2011 Mathias Agopian <mathias@google.com> Merge "Get rid of the "pid" parameter from createSurface"
b86a6ea41dadae6ee1915cdb9406c51193e97555 22-Apr-2011 Jason Sams <rjsams@android.com> Merge "Move TLS behind hal."
bf96c356c02c430153c281fb81dc1a00f7ad0b43 21-Apr-2011 Chet Haase <chet@google.com> Merge "Enable anti-aliasing for hw-accelerated lines"
5b0200bd47e8a9a4dc8d2e6c3a110d522b30bf82 14-Apr-2011 Chet Haase <chet@google.com> Enable anti-aliasing for hw-accelerated lines

Draw anti-aliased lines with OpenGL by constructing a quad with
a border that fades out (to mimic fragment coverage).

Change-Id: Ib81a3e62d663acdf1b46b401ac4aa7ee9855cc7e
wui/Caches.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/ProgramCache.cpp
wui/ProgramCache.h
wui/Vertex.h
be8ac6ace9036262942bc8c96baa36abeb2291f3 21-Apr-2011 Jason Sams <rjsams@android.com> Move TLS behind hal.

Change-Id: I9e84acb3736bc98fa5fb0720bddb13a030285319
s/driver/rsdBcc.cpp
s/driver/rsdCore.cpp
s/driver/rsdCore.h
s/driver/rsdRuntimeStubs.cpp
s/rsContext.cpp
s/rsContext.h
s/rs_hal.h
594f3eec38840aaaf7557196f353744fdb725b59 21-Apr-2011 Evgeniy Stepanov <eugenis@google.com> Make sure binder ioctl structs don't contain uninitialized values.

Change-Id: I8a678f91262417bb120e65e32c244ce1512b46c2
inder/IPCThreadState.cpp
118782298b72ed526c8254025b36c8cf6d3b1f76 21-Apr-2011 Stephen Hines <srhines@google.com> Merge "Reduce verbosity of Renderscript logging."
4698ef3e01192b5ce7aef9492ba5d6dfbd4161e8 21-Apr-2011 Jason Sams <rjsams@android.com> Merge "Remove accidental logging."
0ec8c6f9a89855439179b298d4d0034e64a0c9f0 21-Apr-2011 Jason Sams <rjsams@android.com> Remove accidental logging.

Change-Id: I59073a620c312485a0631069856fbd7ca40b4cbd
s/driver/rsdRuntimeStubs.cpp
9c35d790e91cca935e452acaf340b0ba4997d43b 21-Apr-2011 Stephen Hines <srhines@google.com> Reduce verbosity of Renderscript logging.

Change-Id: I0e20274e01b4068f90ef6ddd6ed7837d42f35813
s/driver/rsdGL.cpp
ff0f67d8dfe0cf97ba6130684bce2101193df57a 21-Apr-2011 Jason Sams <rjsams@android.com> Merge "Create runtime stubs for compute driver."
fcf7231249822ff4dae852f1de1f799756689f91 21-Apr-2011 Jason Sams <rjsams@android.com> Create runtime stubs for compute driver.

Change-Id: I8e0250a642844a2ad3ff6efc38e385445b7da032
s/Android.mk
s/RenderScriptDefines.h
s/driver/rsdBcc.cpp
s/driver/rsdBcc.h
s/driver/rsdCore.cpp
s/driver/rsdCore.h
s/driver/rsdGL.cpp
s/driver/rsdRuntime.h
s/driver/rsdRuntimeMath.cpp
s/driver/rsdRuntimeStubs.cpp
s/rsContext.h
s/rsMatrix.cpp
s/rsMatrix.h
s/rsMatrix2x2.cpp
s/rsMatrix2x2.h
s/rsMatrix3x3.cpp
s/rsMatrix3x3.h
s/rsMatrix4x4.cpp
s/rsMatrix4x4.h
s/rsProgramVertex.cpp
s/rsRuntime.h
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC.h
s/rsScriptC_Lib.cpp
s/rsScriptC_LibCL.cpp
s/rsScriptC_LibGL.cpp
s/rs_hal.h
9638e5c167be321643bf3f3ee39e3fb45541fb3b 20-Apr-2011 Mathias Agopian <mathias@google.com> Get rid of the "pid" parameter from createSurface

Change-Id: I28635e3f803e6abe965d79998e305f54a202465d
ui/ISurfaceComposerClient.cpp
ui/SurfaceComposerClient.cpp
3f14891fc9e764d97de07b109f066aedfff90c2e 20-Apr-2011 Jeff Brown <jeffbrown@google.com> Merge "Initial checkin of spot presentation for touchpad gestures."
2352b978a3c94cd88f41d0d908f961333fdac1e9 13-Apr-2011 Jeff Brown <jeffbrown@google.com> Initial checkin of spot presentation for touchpad gestures.

Added a new PointerIcon API (hidden for now) for loading
pointer icons.

Fixed a starvation problem in the native Looper's sendMessage
implementation which caused new messages to be posted ahead
of old messages sent with sendMessageDelayed.

Redesigned the touch pad gestures to be defined in terms of
more fluid finger / spot movements. The objective is to reinforce
the natural mapping between fingers and spots which means there
must not be any discontinuities in spot motion relative to
the fingers.

Removed the SpotController stub and folded its responsibilities
into PointerController.

Change-Id: I5126b1e69d95252fda7f2a684c9287e239a57163
i/Input.cpp
tils/Looper.cpp
578492e999b3919cfc587024c5f86d6837c3aa7c 19-Apr-2011 Mathias Agopian <mathias@google.com> Merge "changes to SurfaceTexture needed for unification with SF"
a1e99532b4375849a5313c8f9a9152a1fbbe0d36 18-Apr-2011 Stephen Hines <srhines@google.com> Merge "Fix broken assert (if input allocation is NULL)."
b0dfade955f2e2e19a827ca2119f3c5d319a824a 18-Apr-2011 Andreas Huber <andih@google.com> Merge "Parcel::appendFrom({const } Parcel *parcel, size_t, size_t)"
644c4f186259cd26a2fb1e5be3ce32d891adc7af 16-Apr-2011 Mathias Agopian <mathias@google.com> Merge "Fix a GraphicBuffer leak in SurfaceTexture"
0ffc988a7f47013805d5abeed1c20f159b3bd799 14-Apr-2011 Dianne Hackborn <hackbod@google.com> Rewrite battery history storage.

We now write battery history directly into a buffer, instead of
creating objects. This allows for more efficient storage; later
it can be even better because we can only write deltas.

The old code is still there temporarily for validation.

Change-Id: I9707d4d8ff30855be8ebdc93bc078911040d8e0b
inder/Parcel.cpp
0a47f4f711514ceb3e5f6d3ecdbc4c74f7b3bbef 13-Apr-2011 Andreas Huber <andih@google.com> Parcel::appendFrom({const } Parcel *parcel, size_t, size_t)

As far as I can tell "parcel" isn't actually modified by the implementation.

Change-Id: Ib806eefdc13c97b932773e1dc9ca3a4aad4422b2
inder/Parcel.cpp
fda06c0cd9bf1db78adcddf11d374785c6737b61 13-Apr-2011 Wu-cheng Li <wuchengli@google.com> Merge "Add camera metering area API."
e98e4c806320ccb3078805ac019cca3ed9796123 12-Apr-2011 Wu-cheng Li <wuchengli@google.com> Add camera metering area API.

The API are still hidden.

bug:3475893
Change-Id: Id4147528def5e0fe067e1a3ed315fa34c14a0640
amera/CameraParameters.cpp
461fa8b05dfb4fd334980365e27002a7520e866e 12-Apr-2011 Kenny Root <kroot@google.com> resolved conflicts for merge of 18490fb9 to master

Change-Id: I6c68e6fb0f9c1182a955689bbffc161a8f30bd37
18490fb93e206fd899c3258096cc32f293373c92 12-Apr-2011 Kenny Root <kroot@google.com> resolved conflicts for merge of 87b3c0dc to honeycomb-plus-aosp

Change-Id: Ia1a0024aabf531438203eb9fea3a10dd15eabe53
27cd07ca8006fd80d85379ada416874bfa78aa88 12-Apr-2011 Mathias Agopian <mathias@google.com> changes to SurfaceTexture needed for unification with SF

- implement connect/disconnect
- implement missing query
- handle texture_2d in addition to texture_external_oes

Change-Id: I971a70821f00f22b01f5337de4a7d451177fec4d
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
87b3c0dcc45223ff9d5ab2e39d7b9a6953e03f50 12-Apr-2011 Kenny Root <kroot@android.com> am 08d9d9a4: Merge "Runtime resource overlay, iteration 1."

* commit '08d9d9a46250c4fad66e9b637e8898a3524c4286':
Runtime resource overlay, iteration 1.
d08b2ad9bcee6d2c3169d62bd69033e7da3d3829 11-Apr-2011 Mike Lockwood <lockwood@android.com> am 9e13c7e5: am 9645081c: am 43707a83: UsbManager: minor Javadoc tweak

* commit '9e13c7e5d787252b2a88aace1115b51a95e16b5d':
UsbManager: minor Javadoc tweak
9e13c7e5d787252b2a88aace1115b51a95e16b5d 11-Apr-2011 Mike Lockwood <lockwood@android.com> am 9645081c: am 43707a83: UsbManager: minor Javadoc tweak

* commit '9645081cc7f31e1151fedbcd5932a100719e91e4':
UsbManager: minor Javadoc tweak
97837c917227e7863573c385b9d2405f7cfd135a 11-Apr-2011 Stephen Hines <srhines@google.com> Fix broken assert (if input allocation is NULL).

Change-Id: If02e86eee4ec059402edd6f8c408fd89b248bc80
s/driver/rsdBcc.cpp
5f05f99aaedaba18c426fac287bcb18d56dbe881 09-Apr-2011 Mathias Agopian <mathias@google.com> Fix a GraphicBuffer leak in SurfaceTexture

This leak was intentional, it was there to deal with the fact that
some gralloc implementations don't track buffer handles with
file-descriptors so buffers needed to stay alive until there were
registered, which is not guaranteed by binder transactions.

In this new implementation, we use a small BBinder holding a
reference to the buffer, which with tuck into the parcel. This forces
the reference to stay alive until the parcel is destroyed, which
is guaranteed (by construction) to happen after the buffer is
registered.

this allows the public facing API to not expose the previous hack.

Change-Id: I1dd6cd83679a2b7457ad628169e2851acc027143
ui/IGraphicBufferAlloc.cpp
ui/SurfaceTexture.cpp
30771b773393596812b6cfd2a4ddf490c43437aa 02-Apr-2011 Wu-cheng Li <wuchengli@google.com> Add camera focus area API.

The API are still hidden.

bug:3475893

Change-Id: I92405c9e332b7fb141788cda7ebc9705dd666c67
amera/CameraParameters.cpp
6181de34432cecd182276d46d64dc07c67758949 07-Apr-2011 Jeff Brown <jeffbrown@google.com> Merge "Coalesce input events that arrive faster than 333Hz."
4e91a180be46c0c7c3bf398d4df4cbe2404216b5 07-Apr-2011 Jeff Brown <jeffbrown@google.com> Coalesce input events that arrive faster than 333Hz.

Some drivers report individual finger updates one at a time
instead of all at once. When 10 fingers are down, this can
cause the framework to have to handle 10 times as many events
each with 10 times as much data. Applications like
PointerLocation would get significantly bogged down by all
of the redundant samples.

This change coalesces samples that are closely spaced in time,
before they are dispatched, as part of the motion event batching
protocol.

Increased the size of the InputChannel shared memory buffer so
that applications can catch up faster if they accumulate a
backlog of samples.

Added logging code to help measure input dispatch and drawing
latency issues in the view hierarchy. See ViewDebug.DEBUG_LATENCY.

Change-Id: Ia5898f781f19901d2225c529a910c32bdf4f504f
i/InputTransport.cpp
e651c68ee8f9de7fe3c342c5b5f6690c729f6014 07-Apr-2011 Jason Sams <rjsams@android.com> Merge "Migrate most GL from context to driver."
803626f61526c9271a1ffb27f3e3e0bfce767f41 07-Apr-2011 Jason Sams <rjsams@android.com> Migrate most GL from context to driver.

Change-Id: I5cba3a6e879d2e9332fc667a1061a5312fcf14ba
s/Android.mk
s/driver/rsdCore.cpp
s/driver/rsdCore.h
s/driver/rsdGL.cpp
s/driver/rsdGL.h
s/rsContext.cpp
s/rsContext.h
s/rs_hal.h
59ad81e19bf8312d4abb5f1b754502a750568be5 06-Apr-2011 Mathias Agopian <mathias@google.com> Merge "remove more unused references to ISurface"
78e0618d21b58a3bfa0e61e246ac45fd52e3625b 06-Apr-2011 Jason Sams <rjsams@android.com> Merge "Cleanup character limits."
bd184c55850997a5c5e285357998dadbe95b7b5d 06-Apr-2011 Jason Sams <rjsams@android.com> Cleanup character limits.

Change-Id: Icb127248d6e3a0b662ed3b13c9a6646f4f81129a
s/rsFont.cpp
46ded12dd1fdcafa42b48fd64ef02be1b323019b 06-Apr-2011 Jason Sams <rjsams@android.com> Merge "Seperate ProgramRaster. Cleanup ProgramRaster and ProgramStore creation."
d57a93b27d43ac46960be6276a208da0b686bcf4 06-Apr-2011 Jason Sams <rjsams@android.com> Merge "Seperate GL from RS program store."
331bf9b14b1c5c1e88f5c4092b6e24fae887fb3b 06-Apr-2011 Jason Sams <rjsams@android.com> Seperate ProgramRaster.
Cleanup ProgramRaster and ProgramStore creation.

Change-Id: If25ea74355238d405340f0ccfb8117ad6e1307b7
s/Android.mk
s/driver/rsdCore.cpp
s/driver/rsdProgramRaster.cpp
s/driver/rsdProgramRaster.h
s/rs.spec
s/rsContext.cpp
s/rsFont.cpp
s/rsProgramRaster.cpp
s/rsProgramRaster.h
s/rsProgramStore.cpp
s/rsProgramStore.h
s/rs_hal.h
3fc982f41fda1f254bfbc35490d81cd82a0ed90a 31-Mar-2011 Dianne Hackborn <hackbod@google.com> Add new resource configurations for screen width/height in "dp".

You can now specify resource configuration variants "wNNNdp"
and "hNNNdp". These are the minimum screen width/height in "dp"
units. This allows you to do things like have your app adjust
its layout based only on the about of horizontal space available.

This introduces a new configuration change flag for screen size.
Note that this configuration change happens each time the orientation
changes. Applications often say they handle the orientation change
to avoid being restarted at a screen rotation, and this will now
cause them to be restarted. To address this, we assume the app can
handle this new config change if its target SDK version is < ICS.

Change-Id: I22f8afa136b4f274423978c570fa7c9855040496
tils/ResourceTypes.cpp
c8a04b536bb8ad12a87e6dd68d66cff1e7fcd7e7 06-Apr-2011 Mathias Agopian <mathias@google.com> remove more unused references to ISurface

Change-Id: I2201f1ca2bb8f203a081d94a0134f798778dfbef
ui/Surface.cpp
48f505657adba4d9156856e7d5593f23af5d5d5a 18-Mar-2011 Jason Sams <rjsams@android.com> Seperate GL from RS program store.

Change-Id: I0eae9c0699845af8e8611b065e70738cc9f2b15c
s/Android.mk
s/driver/rsdBcc.h
s/driver/rsdCore.cpp
s/driver/rsdProgramStore.cpp
s/driver/rsdProgramStore.h
s/rsFont.cpp
s/rsProgramStore.cpp
s/rsProgramStore.h
s/rsScriptC.cpp
s/rs_hal.h
9645081cc7f31e1151fedbcd5932a100719e91e4 04-Apr-2011 Mike Lockwood <lockwood@android.com> am 43707a83: UsbManager: minor Javadoc tweak

* commit '43707a83ec12957fb84a406276a38fbaf4e23fd3':
UsbManager: minor Javadoc tweak
78a9f6a8227d1e9b465acb84f8476a30c5af9c13 04-Apr-2011 Alex Sakhartchouk <alexst@google.com> Merge "First draft of fbo in renderscript. Updating samples and benchmark"
7b465b0990ab39bd0babaf5fe6a949affac2772a 02-Apr-2011 Jeff Brown <jeffbrown@google.com> Merge "Fix dispatcher crash when input monitoring enabled. Also ensure that we actually log assertion failures."
b6110c2de0cd7950360aeb2c248a44e4ea5f33f5 02-Apr-2011 Jeff Brown <jeffbrown@google.com> Fix dispatcher crash when input monitoring enabled.
Also ensure that we actually log assertion failures.

Bug: 4203092
Change-Id: I5c14bc41b2255f876858121f5572e2de75cabcc3
i/Input.cpp
756484c2bb110c7c2155e41b6f51672ecc638a23 01-Apr-2011 Mathias Agopian <mathias@google.com> Merge "SurfaceTexture can now force the client to request a buffer"
e5a1bffd9106b1d82259de1a202e1f2f28742392 01-Apr-2011 Mathias Agopian <mathias@google.com> SurfaceTexture can now force the client to request a buffer

SurfaceTexture now has the concept of default size a new method,
setDefaultBufferSize() to set it. When the default size is
changed, dequeueBuffer() will return a value telling the
client that it must ask for a new buffer.

The above only applies if the client has not
overriden the buffer size with setGeometry.

Change-Id: I520dc40363054b7e37fdb67d6a2e7bce70326e81
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
ui/tests/SurfaceTextureClient_test.cpp
43707a83ec12957fb84a406276a38fbaf4e23fd3 01-Apr-2011 Mike Lockwood <lockwood@android.com> UsbManager: minor Javadoc tweak

Change-Id: I44efc54cd2a0991465aabe0ecea1b8a3291014c2
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/src/com/android/future/usb/UsbManager.java
8e90f2bc1fa35a2dc7bd2aab8b8241b628800218 01-Apr-2011 Alex Sakhartchouk <alexst@google.com> First draft of fbo in renderscript.
Updating samples and benchmark

Change-Id: I469bf8b842fca72b59475c8fa024c12cf0e14954
s/Android.mk
s/RenderScriptDefines.h
s/rsAllocation.cpp
s/rsAllocation.h
s/rsComponent.cpp
s/rsContext.cpp
s/rsContext.h
s/rsFBOCache.cpp
s/rsFBOCache.h
s/rsFont.cpp
s/rsMesh.cpp
s/rsScriptC_LibGL.cpp
s/scriptc/rs_graphics.rsh
9c1e23baf5bfbebd1aebbd6d9a18c225325567ce 24-Mar-2011 Chet Haase <chet@google.com> Add logging of graphics acceleration info to bugreports

Change-Id: I9fa4cda6ccf92df9d1c644ccdc0e7274a30106e0
wui/Android.mk
wui/Caches.cpp
wui/Caches.h
wui/DisplayListLogBuffer.cpp
wui/DisplayListLogBuffer.h
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
57f4b77c89bafedf9468f9a636561c0c193405c9 17-Mar-2011 MÃ¥rten Kongstad <marten.kongstad@sonyericsson.com> Runtime resource overlay, iteration 1.

Runtime resource overlay allows unmodified applications to appear
as if they had been compiled with additional resources defined. See
libs/utils/README for more information.

This commit is the first iteration of runtime resource overlay. It
provides the actual overlay modifications and loading of trusted overlay
packages (ie residing in /vendor) targeting framework-res.apk.

This commit loads exactly one overlay package. The overlay,
if present, must target framework-res.apk and be located at
/vendor/overlay/framework/framework-res.apk.

Change-Id: If26ee7754813004a96c043dba37fbe99fa3919db
tils/AssetManager.cpp
tils/README
tils/ResourceTypes.cpp
90011761938e16c22709042c7021ae9b3445a307 30-Mar-2011 nao <nao.tanaka.cy@kyocera.jp> modify the device to enable to get the state as slide-open/slide-close.

This modify is for the devices which have a slidable H/W keyboard with backlight.

For example of current issues:
- Backlight of H/W keyboard doesn't turn on when the device starts up with slide-open.
- Home screen doesn't display with proper orientation when the device starts up with slide-open.

Change-Id: I6a6a18d0b09d0ba484ca992c9fb34f24de9bf21b
i/InputReader.cpp
40c364136f09e82602692f359bcf8aa9b0df18d3 29-Mar-2011 Iliyan Malchev <malchev@google.com> frameworks/base: some camera-interface cleanup

Methods getNumberOfVideoBuffers() and getVideoBuffer() as well as struct
image_rect_struct are no longer used (instead, the necessary information is
passed through ANativeWindow.)

Change-Id: If4b11446fc9ccbde1f6b45bc70c0d0b8e54376eb
Signed-off-by: Iliyan Malchev <malchev@google.com>
amera/Camera.cpp
amera/ICamera.cpp
696257ccf315a1da042787c5b2d1f80c7146fc94 26-Mar-2011 Mathias Agopian <mathias@google.com> merge libsurfaceflinger_client into libgui

this is the first step in unifying surfacetexture and surface.
for this reason the header files were not moved, as most of them
will eventually go away.

NOTE: currently we keep libsurfaceflinger_client.so as an empty
library to workaround prebuilt binaries wrongly linking against
it.

Change-Id: I130f0de2428e8579033dc41394d093f4e1431a00
amera/Android.mk
ui/Android.mk
ui/IGraphicBufferAlloc.cpp
ui/ISurface.cpp
ui/ISurfaceComposer.cpp
ui/ISurfaceComposerClient.cpp
ui/LayerState.cpp
ui/SharedBufferStack.cpp
ui/Surface.cpp
ui/SurfaceComposerClient.cpp
ui/tests/Android.mk
ui/tests/Surface_test.cpp
urfaceflinger_client/Android.mk
urfaceflinger_client/IGraphicBufferAlloc.cpp
urfaceflinger_client/ISurface.cpp
urfaceflinger_client/ISurfaceComposer.cpp
urfaceflinger_client/ISurfaceComposerClient.cpp
urfaceflinger_client/LayerState.cpp
urfaceflinger_client/SharedBufferStack.cpp
urfaceflinger_client/Surface.cpp
urfaceflinger_client/SurfaceComposerClient.cpp
urfaceflinger_client/tests/Android.mk
urfaceflinger_client/tests/SharedBufferStack/Android.mk
urfaceflinger_client/tests/SharedBufferStack/SharedBufferStackTest.cpp
urfaceflinger_client/tests/Surface_test.cpp
623cb9585e110ecc11b48a12bf4a02efd5293aaa 25-Mar-2011 Stephen Hines <srhines@google.com> Properly handle script teardown.

If libbcc optimizes away a global variable, we need to make sure that
RenderScript's ~Context() doesn't attempt to clear away the slot's NULL
pointer that denotes this.

Change-Id: I77d0f740ab333338e53db481e4a3eca338aba411
s/driver/rsdBcc.cpp
ad575f4dda3391baf9fcab927e65afbee32e7b95 25-Mar-2011 Romain Guy <romainguy@google.com> Merge "When deleting a path, remove it from the path cache. Bug #4170585"
8a40f6a6324387b324c998cd9d6af900f1dca5ab 25-Mar-2011 Chet Haase <chet@google.com> Merge "Fix bug with accelerated translucent rendering"
1af23a32d879db330eb5a08b21090ec60b604a32 25-Mar-2011 Romain Guy <romainguy@google.com> When deleting a path, remove it from the path cache.
Bug #4170585

Change-Id: I6be4d251ceb908c89afe49c2ff85c05f36c73b70
wui/DisplayListRenderer.cpp
wui/ShapeCache.h
f147340bd117c16a67287e2f6ca9ded651bb32b2 24-Mar-2011 Chet Haase <chet@google.com> Fix bug with accelerated translucent rendering

There was a bug in the dirty region optimizations when
using alpha layers. This prevented translucent objects from
being drawn at all in many situations.

Change-Id: I23e9bce3595fbd6fe2bda15e8753a0f35baffb82
wui/OpenGLRenderer.cpp
46709f13c7079052c68e745916d0d0ffdfb20673 24-Mar-2011 Stephen Hines <srhines@google.com> Merge "Revert "Fix cleanup bug clearing script references.""
044d7d99f8324a75e6b7d894cfd32193b2669938 24-Mar-2011 Stephen Hines <srhines@google.com> Revert "Fix cleanup bug clearing script references."

This change was actually incorrect and causes crashes in ~Context.

This reverts commit 88728ecaeab1358e1748cbbf6ed954fd9a960692.
s/driver/rsdBcc.cpp
aaceeb0c5be11121a81e44b9633c06fc5c0fcd4d 24-Mar-2011 Romain Guy <romainguy@google.com> Use the correct API to query system properties.

Change-Id: Ie120dee0e24959d4db3fdb0100b6d8fe7fe46cdb
wui/Debug.h
b5fa490995dff116b8a6fdc274bee6f6db4d0d0c 23-Mar-2011 Romain Guy <romainguy@google.com> DO NOT MERGE Take fake bold font property into account.
Bug #4159731

For real this time!

Change-Id: I042eca64bfb355f8d60cec430eb942c900062761
wui/FontRenderer.h
5b7a3150a6dbf193b371854b66fa654937633d3a 24-Mar-2011 Romain Guy <romainguy@google.com> Don't crash when omitting paint to drawBitmap() with A8 configs.

Change-Id: I3d630554ad82fa846385274d12d0434e890ef45d
wui/OpenGLRenderer.cpp
80bbfb19eefe3cb9be8833b136381cece069e24d 24-Mar-2011 Romain Guy <romainguy@google.com> Fix shaders generation on IMG GPUs.

Change-Id: Id15df2663e41e31f04c8d86b958312341da8101d
wui/ProgramCache.cpp
c7b25be64f679e78dfa79080b44be18c9974004c 23-Mar-2011 Romain Guy <romainguy@google.com> Take fake bold font property into account.
Bug #4159731

For real this time!

Change-Id: I9cb6d70e68d2b57eb9a6d9a6bca8176967192421
wui/FontRenderer.h
06a42db7c54749655beb0b626e44b601ad3d5082 22-Mar-2011 Carl Shapiro <cshapiro@google.com> Include strings.h for the strcasecmp prototype.

Change-Id: I0659ce2186547274e58f8b2027e16d3e45189353
tils/AssetManager.cpp
43e7aeb37e1d4d86eb89a0a5f620d148289d1986 21-Mar-2011 Romain Guy <romainguy@google.com> Merge "Add support for drawPoint() and drawPoints()."
ed6fcb034b44d9a6ac2fc72fee6030417811f234 21-Mar-2011 Romain Guy <romainguy@google.com> Add support for drawPoint() and drawPoints().

Change-Id: I01bef50c08ec3160f8d40dc060b2cf6c2e4d7639
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/ProgramCache.cpp
wui/ProgramCache.h
90a948b084020d33b1376ce3b34505ebabdfe1ef 19-Mar-2011 Jason Sams <rjsams@android.com> Merge "Fix cleanup bug clearing script references."
88728ecaeab1358e1748cbbf6ed954fd9a960692 19-Mar-2011 Jason Sams <rjsams@android.com> Fix cleanup bug clearing script references.

Change-Id: I693dd7523658a32837764854c12a6b690e8fb7c6
s/driver/rsdBcc.cpp
d1daaa2130306601cd1fba5ea69befeddbc96338 19-Mar-2011 Romain Guy <romainguy@google.com> Merge "Fix hairline rendering."
67ac217a81f34ee3d35df84b38f3456843c40706 19-Mar-2011 Romain Guy <romainguy@google.com> Fix hairline rendering.

Change-Id: Ib6129b446b53678b1b955d8516418370cbae4f10
wui/OpenGLRenderer.cpp
73a7a1c5a73b145afe33cac0a126d4d6776c3eaf 19-Mar-2011 Jason Sams <rjsams@android.com> Merge "Fix bug with hal init uninitialized var."
80e29cf5c45e378bd28a1b061bb70d8ce02846ae 19-Mar-2011 Jason Sams <rjsams@android.com> Fix bug with hal init uninitialized var.

Change-Id: I172bb65b57653e32697f2c2df941beb0aaf65603
s/driver/rsdCore.cpp
s/rsContext.cpp
a168d7372132d6c87835878794b6ed43d0d282fd 19-Mar-2011 Romain Guy <romainguy@google.com> Correctly apply filters to Alpha8 bitmaps.

This change also removes unnecessary operations from display lists.

Change-Id: I627f85861982731f0ee7705b48b36d9c56f22f39
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
b29cfbf768eab959b31410aafc0a99e20249e9d7 19-Mar-2011 Romain Guy <romainguy@google.com> Fix paths rendering issues.

See ApiDemos, PathEffect and PathFillTypes.

Change-Id: I9f9593c1da33d0d013b5b89c86bc5bd71128a192
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/PathCache.h
wui/ShapeCache.h
64929b490977ba681a697cadefd2c49f6ff69aba 17-Mar-2011 Romain Guy <romainguy@google.com> DO NOT MERGE Send WebView the current transform and whether we're drawing a layer.
Bug #3275491

These can be used by WebView to correctly apply alpha and geometric
transforms.

Change-Id: I61057997f5fda1e803d247fc77500a038d5f3aab
wui/OpenGLRenderer.cpp
40667676e542a9daeafeac9904c30004e8706fd3 18-Mar-2011 Romain Guy <romainguy@google.com> Optimize rect-shaped layers.

This brings back an optimization disabled in HC-MR1. This time the
correct geometry is generated to avoid unnecessary blending.

Change-Id: Id56404dc46bb84c75facc25c18488a690741b592
wui/Layer.h
wui/LayerRenderer.cpp
wui/OpenGLRenderer.cpp
wui/Properties.h
6ed6f6d82d7b9f8d82f3ab3a9f718a0e59ffa476 18-Mar-2011 Jeff Brown <jeffbrown@google.com> Merge "Refactor how timeouts are calculated."
aa3855d5836d2a2d83baafdf6e40caf90d3dad1c 17-Mar-2011 Jeff Brown <jeffbrown@google.com> Refactor how timeouts are calculated.

Added a timeout mechanism to EventHub and InputReader so that
InputMappers can request timeouts to perform delayed processing of
input when needed.

Change-Id: Iec2045baaf4e67690b15eef3c09a58d5cac76897
tils/Looper.cpp
tils/Timers.cpp
55d2a25402319380c62a97f3f84b57e2977448d1 18-Mar-2011 Jason Sams <rjsams@android.com> Migrate thread launch to driver.

Change-Id: If182c524cceb327547640f22f956856d291d1787
s/driver/rsdBcc.cpp
s/driver/rsdBcc.h
s/driver/rsdCore.cpp
s/driver/rsdCore.h
s/rsContext.cpp
s/rsContext.h
s/rsScriptC.cpp
s/rsScriptC.h
s/rsScriptC_Lib.cpp
s/rsScriptC_LibGL.cpp
s/rs_hal.h
e4a06c5fc738bf219f2a495e12a637b2d0871651 17-Mar-2011 Jason Sams <rjsams@android.com> Start seperating out RS compute implementation. Create hal
layer to seperate from runtime.

Change-Id: Idf5c1261be4131690d25c15948e98324e979b4f9
s/Android.mk
s/RenderScript.h
s/RenderScriptDefines.h
s/driver/rsdBcc.cpp
s/driver/rsdBcc.h
s/driver/rsdCore.cpp
s/driver/rsdCore.h
s/rs.spec
s/rsAllocation.cpp
s/rsAllocation.h
s/rsContext.cpp
s/rsContext.h
s/rsScript.cpp
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC.h
s/rsScriptC_Lib.cpp
s/rs_hal.h
ce06ebfda4bd7c511cef3d98aacf7291a743ea46 17-Mar-2011 Eino-Ville Talvala <etalvala@google.com> Merge "Add support for timestamps into SurfaceTexture."
6764ba4482129e70d33fe0a7ff2579654b5da87a 17-Mar-2011 Alex Sakhartchouk <alexst@google.com> Merge "Fixing a small bug in debug output Default font wasn't reset for debug output but used the last font instead."
20a9354e52cb5cd22c38c7146efe37e1f9f690f3 17-Mar-2011 Alex Sakhartchouk <alexst@google.com> Fixing a small bug in debug output
Default font wasn't reset for debug output but used the last font instead.

Change-Id: I8fd713336febb8258d364845799ade42633907ab
s/rsContext.cpp
c5f94d8a4779050125145396ca83fbc862c7ed6b 18-Feb-2011 Eino-Ville Talvala <etalvala@google.com> Add support for timestamps into SurfaceTexture.

API addition: The timestamps are represented as nanoseconds from some
arbitrary time point. Like the SurfaceTexture transform matrix, the
timestamp retrieved by getTimestamp is for the last frame sent to the
GL texture using updateTexImage().

Camera HAL change: Expect vendors to set these timestamps using
native_window_set_buffers_timestamp(). For now, they are
autogenerated by SurfaceTextureClient if set_buffers_timestamp() is
never called, but such timing is likely not accurate enough to pass a
CTS test.

bug:3300707

Change-Id: Ife131a0c2a826ac27342e11b8a6c42ff49e1bea7
ui/ISurfaceTexture.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
urfaceflinger_client/Surface.cpp
08aa2cbd5e62e7ca140f78f8bea0477a19880fd9 17-Mar-2011 Romain Guy <romainguy@google.com> Send WebView the current transform and whether we're drawing a layer.
Bug #3275491

These can be used by WebView to correctly apply alpha and geometric
transforms.

Change-Id: I2ecd4376d68df886dead3c9240317de33f56828f
wui/OpenGLRenderer.cpp
48e122891afec8bfadaa9d7fdf731b8f711b5b91 17-Mar-2011 Mathias Agopian <mathias@google.com> am e22aa623: am 25594e19: am f40e638e: fix [4093196] Device lock up - log spam with SharedBufferStack: waitForCondition(LockCondition) timed out

* commit 'e22aa62362a3007ee59ac62d4b5969e216987995':
fix [4093196] Device lock up - log spam with SharedBufferStack: waitForCondition(LockCondition) timed out
f40e638ec62cd9e1a1851809b7c8bf5e4187fad2 17-Mar-2011 Mathias Agopian <mathias@google.com> fix [4093196] Device lock up - log spam with SharedBufferStack: waitForCondition(LockCondition) timed out

a memory corruption happned when the buffer pool was resized
(like when playing a video or using camera) and there was
no current active buffer. In this case, the faulty code
would index into an array at position -1 which corrupted
24 bytes of data.

also improved region validation code (ifdef'ed out by default)

Bug: 4093196
Change-Id: I915c581d131148959d720e00e3892e9186ab733d
i/Region.cpp
b4a5f95b8e44d8029827722225ef7f93023ab1b3 17-Mar-2011 Alex Sakhartchouk <alexst@google.com> am 6ff211e0: am 8f6c5226: am 55a9be3d: Merge "Fix for bug 3434228" into honeycomb-mr1

* commit '6ff211e08a7c5d51e3899d10be53878c05c244b5':
Fix for bug 3434228
2c74ad9aae29cc64fece926f353825a7925792c2 17-Mar-2011 Alex Sakhartchouk <alexst@google.com> Fix for bug 3434228

Change-Id: I57973faf782b487e7913a096f0ab6012dc1c9415
s/RenderScript.h
s/rsContext.cpp
s/rsContext.h
s/rsFont.cpp
a30f43624f76a7d49fcb48944c310cb4dbfc6522 17-Mar-2011 Romain Guy <romainguy@google.com> am 72064c66: am b0204d0a: am c2b91a61: Merge "Modify the GL renderer\'s functor to pass the clip to WebView" into honeycomb-mr1

* commit '72064c66e20b9cc86900a9d833c228c345a2b2a4':
Modify the GL renderer's functor to pass the clip to WebView
80911b851764b073310fd0bffdf4a7db0d8fdd0b 16-Mar-2011 Romain Guy <romainguy@google.com> Modify the GL renderer's functor to pass the clip to WebView

Change-Id: If5efe399ca58f3000b2883e24e9f3736a2025184
wui/OpenGLRenderer.cpp
89cc2b6422ce28bf3de1ac79b1daa0147b0eca88 16-Mar-2011 Romain Guy <romainguy@google.com> am f8c4c128: am 0f7d2ec3: am 46fc2517: Merge "Fix performance issue in Launcher Bug #3515248" into honeycomb-mr1

* commit 'f8c4c12802b15da068d164fd44c9b9f12e7ed916':
Fix performance issue in Launcher Bug #3515248
843e29d3751017267b96565c543df0301c31a9f7 16-Mar-2011 Jeff Brown <jeffbrown@google.com> Merge "Improve VelocityTracker numerical stability."
2ed2462aa29c564f5231f317c27b3188da875e52 15-Mar-2011 Jeff Brown <jeffbrown@google.com> Improve VelocityTracker numerical stability.

Replaced VelocityTracker with a faster and more accurate
native implementation. This avoids the duplicate maintenance
overhead of having two implementations.

The new algorithm requires that the sample duration be at least
10ms in order to contribute to the velocity calculation. This
ensures that the velocity is not severely overestimated when
samples arrive in bursts.

The new algorithm computes the exponentially weighted moving
average using weights based on the relative duration of successive
sample periods.

The new algorithm is also more careful about how it handles
individual pointers going down or up and their effects on the
collected movement traces. The intent is to preserve the last
known velocity of pointers as they go up while also ensuring
that other motion samples do not count twice in that case.

Bug: 4086785
Change-Id: I2632321232c64d6b8faacdb929e33f60e64dcdd3
i/Input.cpp
46fc25171af8bbaf4594946ce406a667ce2ec27a 16-Mar-2011 Romain Guy <romainguy@google.com> Merge "Fix performance issue in Launcher Bug #3515248" into honeycomb-mr1
6217a71cd281003a376d998269d577d26a61c206 16-Mar-2011 Romain Guy <romainguy@google.com> Fix performance issue in Launcher
Bug #3515248

The problem is caused by the fast path when compositing layers on screen.
The fast path draws a single quad using glDrawArrays() whereas the general
path draws an arbitrary mesh using glDrawElements(). It looks like there's
an issue in the driver since glDrawArrays() is significantly slower than
glDrawElements() for a quad (6 vertices!)

This change just gets rid of the fast path.

Change-Id: Ib2361253ec67f44a988270f76c183422f12ce537
wui/LayerRenderer.cpp
wui/OpenGLRenderer.cpp
wui/Properties.h
3c9aa1aa093ff8acc5ec71190a35b9ab04d64fda 15-Mar-2011 Mike Lockwood <lockwood@android.com> am b0976320: Merge "DO NOT MERGE: Backport more USB accessory changes from honeycomb" into gingerbread

* commit 'b09763209980ff9210cc353f2410598220ec0480':
DO NOT MERGE: Backport more USB accessory changes from honeycomb
638d7cb3ee0bb3596b01dc19eca9456fa72a36e0 15-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE: Backport more USB accessory changes from honeycomb

Change-Id: I8459c5ab9fbf0b3cad752041484a5de44ca9badd
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/src/com/android/future/usb/UsbAccessory.java
sb/src/com/android/future/usb/UsbManager.java
sb/tests/AccessoryChat/Android.mk
sb/tests/AccessoryChat/AndroidManifest.xml
sb/tests/AccessoryChat/accessorychat/accessorychat.c
sb/tests/AccessoryChat/src/com/android/accessorychat/AccessoryChat.java
7896f1bd551a466168144f58b6b5a9932cafa749 15-Mar-2011 Mike Lockwood <lockwood@android.com> am c9b82ebb: am 3b7871c2: Merge "USB Manager string clean up:" into honeycomb-mr1

* commit 'c9b82ebb97411cf4a8494dc83f57039bb77937c5':
USB Manager string clean up:
3b7871c242bea5834c657c25fbb89c382566f66f 15-Mar-2011 Mike Lockwood <lockwood@android.com> Merge "USB Manager string clean up:" into honeycomb-mr1
ad5f83e91b6812a6dee4fea7646fa9061d9f9597 15-Mar-2011 Mike Lockwood <lockwood@android.com> USB Manager string clean up:

- Use "Cancel" instead of "Ignore"
- Customize the text for the "always use" checkbox for devices and accessories
- Clean up strings for AccessoryChat test program

Bug: 4074719

Change-Id: Ideec838e4c1f1a82ef4ae411c9124417ffb63165
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/tests/AccessoryChat/AndroidManifest.xml
sb/tests/AccessoryChat/accessorychat/accessorychat.c
cc0773bd02069f6da6988ba12989a7123ee0935a 15-Mar-2011 Stephen Hines <srhines@google.com> am ae2f3b3a: am c2db0d40: Merge "Make RS Matrix functions threadable." into honeycomb-mr1

* commit 'ae2f3b3a4629629914e6ad5d410594c7dbc856ee':
Make RS Matrix functions threadable.
e218208f6aa1f05c691f76a53a8a4d395414978a 15-Mar-2011 Jamie Gennis <jgennis@google.com> am 0ea44ac0: am 00f47af8: Merge "SurfaceTexture: disallow unsupported uses." into honeycomb-mr1

* commit '0ea44ac0deb5cc95d60dd512c3a8f6a1bb69f5d1':
SurfaceTexture: disallow unsupported uses.
8390c7cf6838eb8d63b8e38109751e5c7d13599b 15-Mar-2011 Romain Guy <romainguy@google.com> am 5c84a134: am a1bd5a5f: Merge "Fix disappearing edges in lists/scrollviews/etc. Bug #4093871" into honeycomb-mr1

* commit '5c84a1341b05e96f2c76da7252ed823ec3121102':
Fix disappearing edges in lists/scrollviews/etc. Bug #4093871
c2db0d405b7d4b7654dbd3740cc065802e4c294e 15-Mar-2011 Stephen Hines <srhines@google.com> Merge "Make RS Matrix functions threadable." into honeycomb-mr1
00f47af85a98c6dc3b20d04d8ee6b9a327175ab6 15-Mar-2011 Jamie Gennis <jgennis@google.com> Merge "SurfaceTexture: disallow unsupported uses." into honeycomb-mr1
a1bd5a5fd7107483290627d942ae2dd1910b57ca 15-Mar-2011 Romain Guy <romainguy@google.com> Merge "Fix disappearing edges in lists/scrollviews/etc. Bug #4093871" into honeycomb-mr1
ad37cd3b5d3de9dd0858af04fbccd102e8ff4b0e 15-Mar-2011 Romain Guy <romainguy@google.com> Fix disappearing edges in lists/scrollviews/etc.
Bug #4093871

This bug was introduced by a change that modified the way fade areas
are cleared. The previous change relied on Rect::intersect() to empty
the intersected rect when the two rects don't intersect. Unfortunately
this is not what intersect() does. The fix is rather simple and
sets the layer's bounds to empty when they don't intersect with the
clip or the viewport. This has the side effect of ignoring the layer
which is the expected result.

Change-Id: Icf0038b9a476c53f8eff7084136aba3033d093e6
wui/OpenGLRenderer.cpp
4a1f8a4e87635e8acbe381e4739e89c2b5135f9d 15-Mar-2011 Jamie Gennis <jgennis@google.com> am c570ee21: am 41a894ad: am 75597105: Merge "SurfaceTextureClient: Add ISurfaceTexture getter." into honeycomb-mr1

* commit 'c570ee21e2c2b9802c9d1f58dba024e884b225e6':
SurfaceTextureClient: Add ISurfaceTexture getter.
f38d253ccd79e645baf3c12eed35fc98a4ffa858 15-Mar-2011 Jamie Gennis <jgennis@google.com> am ceb7cb14: am 02805a40: Merge "ANativeWindow: add query for the concrete type." into honeycomb-mr1

* commit 'ceb7cb1460484eda1a3cb9cd271d7caf3a3dcbd1':
ANativeWindow: add query for the concrete type.
bae716bc153962c3ac79660bf32e5c50f0de343d 14-Mar-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: disallow unsupported uses.

This change makes the ANativeWindow_lock NDK function error out if it is
passed an ANativeWindow with a concrete type that is not Surface. It
also makes eglCreateWindowSurface fail if it is passed a
SurfaceTextureClient as its 'window' argument.

Bug: 4087277
Change-Id: Ie68c50c52d88f72d8a387f6c094908044c83a88c
ui/tests/SurfaceTextureClient_test.cpp
75597105e6e03f656bdc1e40acac44afb9a3b01b 15-Mar-2011 Jamie Gennis <jgennis@google.com> Merge "SurfaceTextureClient: Add ISurfaceTexture getter." into honeycomb-mr1
02805a40d44fa038549e771ec9a15f52b5fa3538 15-Mar-2011 Jamie Gennis <jgennis@google.com> Merge "ANativeWindow: add query for the concrete type." into honeycomb-mr1
413bce45bad9ba7a1736c662aac9e3326ab554ea 15-Mar-2011 Stephen Hines <srhines@google.com> Make RS Matrix functions threadable.

BUG=4100079

Change-Id: I6cefa0eab42481fa974077d6aed98007f9fd87f7
s/rsScriptC_Lib.cpp
8329db39f2f55484352d58b1820eb31a22698f11 15-Mar-2011 Romain Guy <romainguy@google.com> am b245e31f: am ee7ace06: Merge "Fix rendering artifact in edge fades. Bug #4092053" into honeycomb-mr1

* commit 'b245e31fa8dd1ad6a59ccf858154f3c7b92e0eb8':
Fix rendering artifact in edge fades. Bug #4092053
ee7ace065f77b53a57cb6273b9f2f5d85caba90c 15-Mar-2011 Romain Guy <romainguy@google.com> Merge "Fix rendering artifact in edge fades. Bug #4092053" into honeycomb-mr1
7b5b6abf852c039983eded25ebe43a70fef5a4ab 15-Mar-2011 Romain Guy <romainguy@google.com> Fix rendering artifact in edge fades.
Bug #4092053

The problem always existed but was made visible by partial invalidation.
When saving a layer, the renderer would try to postpone glClear()
operations until the next drawing command. This however does not work
since the clip might have changed. The fix is rather simple and
simply gets rid of this "optimization" (that turned out to be
usless anyway given how View issues saveLayer() calls.)

This change also fixes an issue with gradients (color stops where
not properly computed when using a null stops array) and optimizes
display lists rendering (quickly rejects larger portions of the
tree to avoid executing unnecessary code.)

Change-Id: I0f5b5f6e1220d41a09cc2fa84c212b0b4afd9c46
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/ProgramCache.h
f0ac2649df757ed3fc6b56650175f0a3331ed8ee 15-Mar-2011 Jamie Gennis <jgennis@google.com> am adf565f0: am 1a0452b7: am 122dd099: Merge "SurfaceTexture: fix transform matrix computation." into honeycomb-mr1

* commit 'adf565f02676a8f41b572d23123695e732ffd321':
SurfaceTexture: fix transform matrix computation.
688d8412bd027f33c0c56267d26b96ef10599702 15-Mar-2011 Mike Lockwood <lockwood@android.com> am 0958fb10: am 221830b9: Merge "Add support for USB accessory serial numbers" into honeycomb-mr1

* commit '0958fb1068ee1b5e6c40eee16d943a664b1124b4':
Add support for USB accessory serial numbers
f95a9f019daa0631e6d6ddc826ad9cfe787c42ce 14-Mar-2011 Jamie Gennis <jgennis@google.com> SurfaceTextureClient: Add ISurfaceTexture getter.

This change adds a getter method to SurfaceTextureClient to get the
ISurfaceTexture object with which the SurfaceTextureClient is
communicating.

Bug: 4086509
Change-Id: Ifec621e0fe5392a5be56b2348fdc54067cbebcdd
ui/SurfaceTextureClient.cpp
ui/tests/SurfaceTextureClient_test.cpp
c4ca7c511499693f13622b135637f600ec913e57 14-Mar-2011 Jamie Gennis <jgennis@google.com> ANativeWindow: add query for the concrete type.

This change adds a query to the ANativeWindow interface for getting the
concrete type of the ANativeWindow.

Bug: 4086509
Change-Id: I64aa86d72fbca3b52a98e1fc35608737781a3178
ui/SurfaceTextureClient.cpp
ui/tests/SurfaceTextureClient_test.cpp
urfaceflinger_client/Surface.cpp
urfaceflinger_client/tests/Surface_test.cpp
i/FramebufferNativeWindow.cpp
122dd0999f09eedbe42e619b64276633bea60e6a 15-Mar-2011 Jamie Gennis <jgennis@google.com> Merge "SurfaceTexture: fix transform matrix computation." into honeycomb-mr1
015b1ecaec27b7cf5f1a78099d9ae34a0c3169f2 14-Mar-2011 Mike Lockwood <lockwood@android.com> Add support for USB accessory serial numbers

Change-Id: I47b79f091b300ced60bfc61eff2f771139663aae
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/src/com/android/future/usb/UsbAccessory.java
sb/src/com/android/future/usb/UsbManager.java
sb/tests/AccessoryChat/Android.mk
sb/tests/AccessoryChat/AndroidManifest.xml
sb/tests/AccessoryChat/accessorychat/accessorychat.c
sb/tests/AccessoryChat/src/com/android/accessorychat/AccessoryChat.java
3070af08821ee86f06a9cc6b58dbb79c82946b94 14-Mar-2011 Iliyan Malchev <malchev@google.com> frameworks/base: remove LOCAL_PRELINK_MODULE

Change-Id: I54dd62ebef47e7690afa5a858f3cad941b135481
Signed-off-by: Iliyan Malchev <malchev@google.com>
wui/Android.mk
s/Android.mk
ace13b17866dc9136aeecf6dfaf7077f37434469 10-Mar-2011 Jeff Brown <jeffbrown@google.com> Use touch pad gestures to manipulate the pointer.

1. Single finger tap performs a click.
2. Single finger movement moves the pointer (hovers).
3. Button press plus movement performs click or drag.
While dragging, the pointer follows the finger that is moving
fastest. This is important if there are additional fingers
down on the touch pad for the purpose of applying force
to an integrated button underneath.
4. Two fingers near each other moving in the same direction
are coalesced as a swipe gesture under the pointer.
5. Two or more fingers moving in arbitrary directions are
transformed into touches in the vicinity of the pointer.
This makes scale/zoom and rotate gestures possible.

Added a native VelocityTracker implementation to enable intelligent
switching of the active pointer during drags.

Change-Id: I5ada57e7f2bdb9b0a791843eb354a8c706b365dc
i/Input.cpp
i/InputTransport.cpp
ccdac700df7089a87e6bf284e45a30a7a6a62602 14-Mar-2011 Mike Lockwood <lockwood@android.com> am 78b8e1be: Merge "DO NOT MERGE: backport recent USB accessory changes from honeycomb" into gingerbread

* commit '78b8e1be97c61f7e0b28b145fadd0c646fd1c46b':
DO NOT MERGE: backport recent USB accessory changes from honeycomb
f3cedb602197a6255e3a7b005cc368577d75bf3a 11-Mar-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: fix transform matrix computation.

This change fixes the transform matrix computation in SurfaceTexture
when a crop rectangle is specified by the image producer. It also adds
a test for this case as well as a basic test for the uncropped case.

Bug: 4070775
Change-Id: I1481c9ce9d08fe7f2bff86d3afdeab7d4002b157
ui/SurfaceTexture.cpp
ui/tests/Android.mk
ui/tests/SurfaceTexture_test.cpp
e1976e5c61cdbd22db291ba1698079469bc21955 12-Mar-2011 Mike Lockwood <lockwood@android.com> am 3b473d95: am 9fffd9a8: Merge "USB: minor cleanup work" into honeycomb-mr1

* commit '3b473d958c46ea6511b9599f727b47636e5cbc4a':
USB: minor cleanup work
2cc0377200b94b2f68f34e34554f2aa39e09cbce 12-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE: backport recent USB accessory changes from honeycomb

Bug: 4082651

Change-Id: Ie7c2fc796dd3c64f803acbd14210e5949683f4ed
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/src/com/android/future/usb/UsbAccessory.java
sb/src/com/android/future/usb/UsbManager.java
sb/tests/AccessoryChat/accessorychat/accessorychat.c
sb/tests/AccessoryChat/src/com/android/accessorychat/AccessoryChat.java
62cfeeb821afb2f3d3b78ad93caa13408cd26eac 12-Mar-2011 Mike Lockwood <lockwood@android.com> USB: minor cleanup work

Bug: 4067029

Change-Id: Icd8f912ab8732b5f770a217b9b3731092597ce02
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/Android.mk
sb/tests/AccessoryChat/Android.mk
sb/tests/AccessoryChat/AndroidManifest.xml
3cf78f59c0dd639a2ab626822adc7e452df961ef 11-Mar-2011 Jamie Gennis <jgennis@google.com> am 34bb677f: am b2e606f5: Merge "SurfaceFlinger: Respect the PROTECTED gralloc bit." into honeycomb-mr1

* commit '34bb677f3fa7f3e476849df3c7873256a463f598':
SurfaceFlinger: Respect the PROTECTED gralloc bit.
b2e606f5f175906ab8c578cb9ba03c728154c50c 11-Mar-2011 Jamie Gennis <jgennis@google.com> Merge "SurfaceFlinger: Respect the PROTECTED gralloc bit." into honeycomb-mr1
f72606ce3ea8cb787e5c71325f08b1898e0718d9 10-Mar-2011 Jamie Gennis <jgennis@google.com> SurfaceFlinger: Respect the PROTECTED gralloc bit.

This change makes SurfaceFlinger treat layers for which the active
buffer has the GRALLOC_USAGE_PROTECTED bit set as if they have the
'secure' flag set.

Change-Id: Ic60b6513a63e4bb92ec6ce9fd12fd39b4ba5f674
Bug: 4081304
urfaceflinger_client/tests/Surface_test.cpp
26d7eef69ef064ca716ed76220ca2984995882ed 10-Mar-2011 Mike Lockwood <lockwood@android.com> am 84edf14b: am cc08c439: Merge "UsbAccessory: Add URI string, replace type string with description" into honeycomb-mr1

* commit '84edf14b62eaf3304252bb76b0b2ca3f518c8d54':
UsbAccessory: Add URI string, replace type string with description
cc08c439bc7b0afbdafc5ca18c584d2f7724f3df 10-Mar-2011 Mike Lockwood <lockwood@android.com> Merge "UsbAccessory: Add URI string, replace type string with description" into honeycomb-mr1
ac36d7c715a9cd793b2dce6de547594810101c3a 10-Mar-2011 Mike Lockwood <lockwood@android.com> UsbAccessory: Add URI string, replace type string with description

This is a first step toward adding USB accessory URI support

BUG: 4073248

Modified USB accessory matching logic to look only at manufacturer, model and version
(description and URI are not considered when matching apps to accessories)

Also added test for USB accessory protocol version to accessorytest

BUG: 4080288

Change-Id: I992a3433c74efa7a7db37bf030f02c1f0c92f9e2
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/src/com/android/future/usb/UsbAccessory.java
sb/src/com/android/future/usb/UsbManager.java
sb/tests/AccessoryChat/accessorychat/accessorychat.c
5a3d6cc188bd38a9475c801a13f7752b24fb1072 10-Mar-2011 Jeff Brown <jeffbrown@google.com> am e6f0ae12: am efd3266b: Input improvements and bug fixes.

* commit 'e6f0ae12b18819424dd8395b433a8fc9caefa77b':
Input improvements and bug fixes.
efd3266b719eed5f1b217021c0a9e76e4b274b06 09-Mar-2011 Jeff Brown <jeffbrown@google.com> Input improvements and bug fixes.

Associate each motion axis with the source from which it comes.
It is possible for multiple sources of the same device to define
the same axis. This fixes new API that was introduced in MR1.
(Bug: 4066146)

Fixed a bug that might cause a segfault when using a trackball.

Only fade out the mouse pointer when touching the touch screen,
ignore other touch pads.

Changed the plural "sources" to "source" in several places in
the InputReader where we intend to refer to a particular source
rather than to a combination of sources.

Improved the batching code to support batching events from different
sources of the same device in parallel. (Bug: 3391564)

Change-Id: I0189e18e464338f126f7bf94370b928e1b1695f2
i/Input.cpp
a15b5290f5785031ec4813fd7e141a9fc39c18fa 10-Mar-2011 Mathias Agopian <mathias@google.com> am 33029221: Merge "revert the surface purgatory list and dependent changes." into gingerbread

* commit '33029221619f14577bd0d0e7c2f815abc8f1b8ea':
revert the surface purgatory list and dependent changes.
cf8b94562c7cbd5c7ced01dca9bbca25011a04e8 10-Mar-2011 Mathias Agopian <mathias@google.com> revert the surface purgatory list and dependent changes.

6d0f6cb Revert "Fix [3513017] in lockscreen but showing empty launcher (live wallpaper) only"
6154412 Revert "partially fix [3306150] HTML5 video with H/W acceleration blackout (DO NOT MERGE)"
37c2a37 fix [3408713] Dialog window invisible sometimes

It looks like there is a surface leak, it's unclear where it is.
Without those reverts, this would cause a leak of the associated buffers
which is far more problematic. this change might hide the surface leak.

Bug: 4078032
Change-Id: Iedcda3ffcdd2f69d41047b5c3134c1e867ff90d7
i/GraphicBufferAllocator.cpp
8fe7ca1d7ddaf9faace4a12666381b14e73a3a4b 10-Mar-2011 Mike Lockwood <lockwood@android.com> am 18d8a074: am 564f12eb: Merge changes Ifd78cca3,Ieadb86fe,If5b44ebd into honeycomb-mr1

* commit '18d8a0748d3c42a31799e5ce7c7f4c2fd63d1896':
MTP: Convert date created and modified values from seconds to milliseconds
Update USB accessory compatibility library to support new requestPermission API
UsbService: Don't require permissions for UsbManager.getCurrentAccessory()
564f12ebe409bead467eee04dfd719e97367e520 10-Mar-2011 Mike Lockwood <lockwood@android.com> Merge changes Ifd78cca3,Ieadb86fe,If5b44ebd into honeycomb-mr1

* changes:
MTP: Convert date created and modified values from seconds to milliseconds
Update USB accessory compatibility library to support new requestPermission API
UsbService: Don't require permissions for UsbManager.getCurrentAccessory()
25ea3eeb09ea38a6c68ca7d381ca1e2727a548d9 10-Mar-2011 Jamie Gennis <jgennis@google.com> am 7b13e27e: am 6167a390: Merge "ANativeWindow: add queues-to-window-composer check." into honeycomb-mr1

* commit '7b13e27ee4a42c205b4a20d145610e8c912e7b0c':
ANativeWindow: add queues-to-window-composer check.
6167a390e34981ea92fc6d5458add2da04ee15bc 09-Mar-2011 Jamie Gennis <jgennis@google.com> Merge "ANativeWindow: add queues-to-window-composer check." into honeycomb-mr1
96e11e9ea684684bbe5bcc5cc3ff3a43f2669cbc 09-Mar-2011 Stephen Hines <srhines@google.com> am 67eab1e9: am c8a4b11e: Merge "Fix a race condition during Context init/teardown." into honeycomb-mr1

* commit '67eab1e9cd9a7bfb1a32492cdaa6f52bf470e11d':
Fix a race condition during Context init/teardown.
580b64111788fd312697d4fe60017127877dadf4 09-Mar-2011 Mike Lockwood <lockwood@android.com> Update USB accessory compatibility library to support new requestPermission API

BUG: 4069037

Change-Id: Ieadb86fed577eeb7697d524e8a684ea6ea632f39
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/src/com/android/future/usb/UsbManager.java
sb/tests/AccessoryChat/src/com/android/accessorychat/AccessoryChat.java
cac8228e9c63e14520fc71a8186ebdbfd9f30c55 09-Mar-2011 Stephen Hines <srhines@google.com> Fix a race condition during Context init/teardown.

This change makes Context initialization wait properly for all threads to be
available before leaving initContext(). This prevents a case where ~Context()
gets called before all created threads have started/finished their work. This
was triggered/discovered by running some very short-lived tests in CTS.

BUG=4064203

Change-Id: I1dd6f43fa7942c53881008e857df864e2395202e
s/rsContext.cpp
d2acedf18c9a3527f6e3dc5d578a85fdc0ad4338 08-Mar-2011 Jamie Gennis <jgennis@google.com> ANativeWindow: add queues-to-window-composer check.

This change adds a new 'method' to the ANativeWindow interface to check
whether buffers queued to the window will be sent directly to the system
window compositor.

Change-Id: I4d4b199e328c110b68b250029aea650f03c8724d
Bug: 3495535
ui/SurfaceTextureClient.cpp
ui/tests/Android.mk
ui/tests/SurfaceTextureClient_test.cpp
urfaceflinger_client/ISurfaceComposer.cpp
urfaceflinger_client/Surface.cpp
urfaceflinger_client/tests/Android.mk
urfaceflinger_client/tests/Surface_test.cpp
141c8b5195094a3009848a96aa5b922171e908e8 25-Feb-2011 Johan Redestig <johan.redestig@sonyericsson.com> Implement support for ALT and SHIFT modifiers

The spec for keymaps and keboard input at
http://source.android.com/porting/keymaps_keyboard_input.html
mentions the stand alone ALT and SHIFT modifiers:

SHIFT: While pressed, the shift key modifier is set
ALT: While pressed, the alt key modifier is set

This commit implements support for these.

Change-Id: I5854ef3df541740cc3443b474a9c41183eb7561c
Ex: key 305 BACK ALT
i/InputDispatcher.cpp
f7098ce95dde39a33ca280bd1ef9a13259e7b7e5 08-Mar-2011 Romain Guy <romainguy@google.com> am d00353fe: am bc8a8e8c: Merge "Add support for partial invalidates in WebView Bug #3461349" into honeycomb-mr1

* commit 'd00353fe3191571a6773ef2d11921cfcff260bc4':
Add support for partial invalidates in WebView Bug #3461349
bc8a8e8c926115cb7b3910d016e5cff12b0f7b0a 08-Mar-2011 Romain Guy <romainguy@google.com> Merge "Add support for partial invalidates in WebView Bug #3461349" into honeycomb-mr1
cabfcc1364eb7e4de0b15b3574fba45027b45cfc 08-Mar-2011 Romain Guy <romainguy@google.com> Add support for partial invalidates in WebView
Bug #3461349

This change also fixes two bugs that prevented partial invalidates
from working with other views. Both bugs were in our EGL implementation:
they were preventing the caller from comparing the current context/surface
with another context/surface. This was causing HardwareRenderer to always
redraw the entire screen.

Change-Id: I33e096b304d4a0b7e6c8f92930f71d2ece9bebf5
wui/Android.mk
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLDebugRenderer.cpp
wui/OpenGLDebugRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/TextDropShadowCache.h
8529745b27877d98a0c76692295a3fcac238b1e6 04-Mar-2011 Jeff Brown <jeffbrown@google.com> Joystick tweaks. (DO NOT MERGE)

Ensure that the joystick can always reach -1.0, 0.0 and 1.0 positions
even when noise filtering is applied. (Bug: 3514510)

Add support for a few more standard axes.

Add additional mapping modes for axes.
Some axes are inverted from standard interpretation
or are actually intended to be split into two distict axes
such as left/right trigger controls or accelerator/brake.

Add key layout file for a G25 racing wheel and XBox 360 controller
to tweak behavior. They work fine without them but the axis mappings
are not ideal.

Change-Id: I0fddd90309af4dc14d35f34fe99ed6e521c0b7c7
i/KeyLayoutMap.cpp
3a22fa057091cd6614f58ebc57a7ce4fe29462bb 04-Mar-2011 Jeff Brown <jeffbrown@google.com> Joystick tweaks.

Ensure that the joystick can always reach -1.0, 0.0 and 1.0 positions
even when noise filtering is applied. (Bug: 3514510)

Add support for a few more standard axes.

Add additional mapping modes for axes.
Some axes are inverted from standard interpretation
or are actually intended to be split into two distict axes
such as left/right trigger controls or accelerator/brake.

Add key layout file for a G25 racing wheel and XBox 360 controller
to tweak behavior. They work fine without them but the axis mappings
are not ideal.

Change-Id: Id4c86a0a272331c680039a9bde6815bb7eba44ab
i/KeyLayoutMap.cpp
1bf1f8df178170ee3d4224f3c92a1b724d783178 02-Mar-2011 Stephen Hines <srhines@google.com> DO NOT MERGE: Almost all warnings are now errors in RS build.

Change-Id: Ie4952cdf5c75bf1b7a7899a32b3b1f8747686356
s/Android.mk
s/rsAllocation.cpp
s/rsContext.cpp
s/rsHandcode.h
s/rsScript.cpp
s/rsScriptC_Lib.cpp
s/rsScriptC_LibCL.cpp
s/rsScriptC_LibGL.cpp
9503e8bc17d72d16631e8d79e8d1c29702fc1e42 04-Mar-2011 Jeff Brown <jeffbrown@google.com> am e23c235c: Merge "Only set KeyEvent long press flag when repeat count equals 1." into gingerbread

* commit 'e23c235c662c3028cfb080c6ed60d7defcdd0b69':
Only set KeyEvent long press flag when repeat count equals 1.
1eb12937329d0fcdc29d9c5ab6c549c42d2dcd52 03-Mar-2011 Fabrice Di Meglio <fdimeglio@google.com> Merge "Add TextLayout Cache"
30cabcc18f0527d01e1db61f4a4d5b71c4585c58 03-Mar-2011 Stephen Hines <srhines@google.com> Merge "Almost all warnings are now errors in RS build."
59fd13c7be1165c957cdf1c6d42f40e4ff7542cf 03-Mar-2011 Jeff Brown <jeffbrown@google.com> Only set KeyEvent long press flag when repeat count equals 1.

This fixes a Gingerbread regression.

Bug: 3507021
Change-Id: Ia6030665b6a406332adc0ee0d8ee3cb735338c8e
i/InputDispatcher.cpp
55acdf7dcd0cf5b9aacfe48808e98056c7d60e5b 03-Mar-2011 Jeff Brown <jeffbrown@google.com> Merge "Wake screen from external HID peripherals."
56194ebec6212e229f4ccdaa4b187166d20013ef 03-Mar-2011 Jeff Brown <jeffbrown@google.com> Wake screen from external HID peripherals.

Added some plumbing to enable the policy to intercept motion
events when the screen is off to handle wakeup if needed.

Added a basic concept of an external device to limit the scope
of the wakeup policy to external devices only. The wakeup policy
for internal devices should be based on explicit rules such as
policy flags in key layout files.

Moved isTouchEvent to native.

Ensure the dispatcher sends the right event type to userActivity
for non-touch pointer events like HOVER_MOVE and SCROLL.

Bug: 3193114
Change-Id: I15dbd48a16810dfaf226ff7ad117d46908ca4f86
i/Input.cpp
192f0b0608579650c882f91e9f5842294523bcd0 03-Mar-2011 Jeff Brown <jeffbrown@google.com> Merge "Fade out the mouse pointer after inactivity or other events."
058f47e8455464d7c9d59297a5d4db026c61eafd 03-Mar-2011 Romain Guy <romainguy@google.com> Merge "We need to go deeper. Bug #3431907"
84962f2fe6ce779c583cc54b11a9de2b6a568117 03-Mar-2011 Romain Guy <romainguy@google.com> We need to go deeper.
Bug #3431907

When drawing layers inside a layer, the wrong target FBO would be used.
This would happen for instance with app widgets using a ViewFlipper
in Launcher. The ViewFlipper uses a fade animation that triggers a
call to saveLayerAlpha(), which in turns creates an FBO. If this happened
during a scroll, the ViewFlipper's FBO would be composited back directly
inside FBO 0, i.e. the screen. This properly initializes the snapshots
of hardware layers to use the layer's FBO as the default compositing
target instead of using 0.

This problem did not happen when drawing hardware layers inside
hardware layers because LayerRenderer already takes care of figuring
out the FBO it needs to composite into. The bug would occur only
with layers generated with saveLayer() and its saveLayerAlpha()
variation.

Layers inside hardware layers insider layers inside hardware layers
now work properly.

Change-Id: Ibe852301087f3d414ad8a18436eebc81f8ac66f5
wui/OpenGLRenderer.cpp
b13581a9dab07ccd1841890e0443b9cfe0805679 03-Mar-2011 Mike Lockwood <lockwood@android.com> am 1110748b: DO NOT MERGE: USB accessory support library

* commit '1110748b2df664f9c5066819c1f0616eae3394a7':
DO NOT MERGE: USB accessory support library
05dc66ada6b61a6bdf806ffaa62617ac5394695d 02-Mar-2011 Jeff Brown <jeffbrown@google.com> Fade out the mouse pointer after inactivity or other events.

Fades out the mouse pointer:
- after 15 seconds of inactivity normally
- after 3 seconds of inactivity in lights out mode
- after a non-modifier key down
- after a touch down

Extended the native Looper to support enqueuing time delayed
messages. This is used by the PointerController to control
pointer fade timing.

Change-Id: I87792fea7dbe2d9376c78cf354fe3189a484d9da
i/Keyboard.cpp
tils/Looper.cpp
tils/tests/Looper_test.cpp
1110748b2df664f9c5066819c1f0616eae3394a7 02-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE: USB accessory support library

This provides a mechanism for developing applications to work with
USB accessories in versions of android prior to the introduction
of the android.hardware.UsbManager APIs.

Applications should link against the com.android.future.usb.accessory
library to use this support.

Change-Id: I0b61e20b63eec42c506f0895a0c9a439bdfdf7f5
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/Android.mk
sb/src/com/android/future/usb/UsbAccessory.java
sb/src/com/android/future/usb/UsbManager.java
sb/src/com/google/android/usb/UsbAccessory.java
sb/src/com/google/android/usb/UsbManager.java
sb/tests/AccessoryChat/Android.mk
sb/tests/AccessoryChat/AndroidManifest.xml
sb/tests/AccessoryChat/README.txt
sb/tests/AccessoryChat/accessorychat/Android.mk
sb/tests/AccessoryChat/accessorychat/accessorychat.c
sb/tests/AccessoryChat/accessorychat/usbhost.c
sb/tests/AccessoryChat/accessorychat/usbhost/usbhost.h
sb/tests/AccessoryChat/res/layout/accessory_chat.xml
sb/tests/AccessoryChat/res/xml/accessory_filter.xml
sb/tests/AccessoryChat/src/com/android/accessorychat/AccessoryChat.java
7866be2b76e421ca28e5dcbd3e7d362baf279dd9 03-Mar-2011 Mike Lockwood <lockwood@android.com> am 40bbf929: DO NOT MERGE: Backport USB accessory support to gingerbread

* commit '40bbf9295d5245d3917629ce15f7b37670aef1ac':
DO NOT MERGE: Backport USB accessory support to gingerbread
40a787f89a6f4c20f2c7fce29e5bc53954305f34 03-Mar-2011 Romain Guy <romainguy@google.com> Properly initialize FBO textures for linear filtering.

Change-Id: I67fc4fd760483ef85809be8d6e608cf4f469650f
wui/LayerRenderer.cpp
a91320e364140ca7d6b33115d83b75f12fba548e 03-Mar-2011 Romain Guy <romainguy@google.com> Merge "Properly initialize FBO textures for linear filtering."
403af5c688eedbe191e7900c1c315286807caf7c 02-Mar-2011 Mike Lockwood <lockwood@android.com> Merge "Combine the USB accessory support library with the platform feature"
4677c5118c29b5621ababc136b749f02a3d543d6 02-Mar-2011 Romain Guy <romainguy@google.com> Merge "Fix problem with glyph cache and textScaleX property"
8668f8a633d9299091556c3b2e5ae07be8dce360 02-Mar-2011 Chet Haase <chet@google.com> Fix problem with glyph cache and textScaleX property

Glyphs drawn with paints that had different textScaleX values were not
being recognized as different, so the glyph cache was being used regardless
of different scaleX values. This change adds the scaleX attribute to the native
Font object to allow the cache to distinguish between this difference and cache
accordingly.

Change-Id: I5d8fc26d47460b27dc8e373a473d46b2f1b8dc30
wui/FontRenderer.cpp
wui/FontRenderer.h
b547fc297f24ce2d74fc86ef2a79a4424b6b4c59 02-Mar-2011 Mike Lockwood <lockwood@android.com> Combine the USB accessory support library with the platform feature

Also renamed the support library to com.android.future.usb.accessory.jar

Change-Id: Id6226991ce73f75dfedc497adf1c25bffb670243
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/Android.mk
sb/src/com/android/future/usb/UsbAccessory.java
sb/src/com/android/future/usb/UsbManager.java
sb/src/com/google/android/usb/UsbAccessory.java
sb/src/com/google/android/usb/UsbManager.java
sb/tests/AccessoryChat/Android.mk
sb/tests/AccessoryChat/AndroidManifest.xml
sb/tests/AccessoryChat/src/com/android/accessorychat/AccessoryChat.java
sb/tests/AccessoryChat/src/com/google/android/accessorychat/AccessoryChat.java
d313c665e618af3194f504064bcd284fe5368682 25-Feb-2011 Fabrice Di Meglio <fdimeglio@google.com> Add TextLayout Cache

- use GenerationCache for caching
- move GenerationCache.h from libs/hwui/utils to include/utils
- add #define for cache activation / deactivation

Change-Id: Ifaf519f0b5e33b087a453e4aa6430162d8438f20
wui/utils/GenerationCache.h
40bbf9295d5245d3917629ce15f7b37670aef1ac 01-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE: Backport USB accessory support to gingerbread

Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/src/com/google/android/usb/UsbAccessory.java
sb/src/com/google/android/usb/UsbManager.java
60f9a621e899ed7fa176e12f1b57f10afa5a5d66 02-Mar-2011 Stephen Hines <srhines@google.com> Almost all warnings are now errors in RS build.

Change-Id: Ie22eccdafbc95d1f903c73007dd3fb0ad10af7cc
s/Android.mk
s/rsAllocation.cpp
s/rsContext.cpp
s/rsHandcode.h
s/rsScript.cpp
s/rsScriptC_Lib.cpp
s/rsScriptC_LibCL.cpp
s/rsScriptC_LibGL.cpp
e6c524022deb665439a442ab8b66f2917ca62ca2 01-Mar-2011 Romain Guy <romainguy@google.com> Merge "Correctly mark layers dirty when drawing WebView."
d643bb56fdf21973ea75984f0816b7dc024698df 01-Mar-2011 Romain Guy <romainguy@google.com> Correctly mark layers dirty when drawing WebView.

Change-Id: I7ae0c3cfa0916d8fbeaf01e8da127c621a06a0f4
wui/OpenGLRenderer.cpp
5a6f9faf5d94792a61557937f11e8b6b289ea03a 01-Mar-2011 Jamie Gennis <jgennis@google.com> Merge "Add the MIN_UNDEQUEUED_BUFFERS query to ANW."
6910f429cdfa000628b82e164131a47a8748c8af 01-Mar-2011 Romain Guy <romainguy@google.com> Merge "Avoid UTF-8 conversions and string copies whenever possible."
321dce646dc3c2ecfbd72a693d8d9294a6119736 01-Mar-2011 Romain Guy <romainguy@google.com> Avoid UTF-8 conversions and string copies whenever possible.

Change-Id: Ie4584417bbb7247e6c567fbfdb819529e548bb8f
wui/TextDropShadowCache.cpp
wui/TextDropShadowCache.h
c4308f01c965571dc2354107c3574df113e397ee 01-Mar-2011 Mike Lockwood <lockwood@android.com> Move USB framework support from android.hardware to android.hardware.usb package

Change-Id: I00fd4f0caaa4aebe48f71c576bb211b5f38bf88d
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/src/com/google/android/usb/UsbAccessory.java
sb/src/com/google/android/usb/UsbManager.java
sb/tests/AccessoryChat/AndroidManifest.xml
eb3885d69255dbb8880d2518fff750997b7025cf 01-Mar-2011 Mike Lockwood <lockwood@android.com> Merge "USB accessory support library"
27555315629ffce59a19bd03ba51a8323cc864b0 28-Feb-2011 Mike Lockwood <lockwood@android.com> USB accessory support library

This provides a mechanism for developing applications to work with
USB accessories in versions of android prior to the introduction
of the android.hardware.UsbManager APIs.

Applications should link against the com.google.android.usb library
to use this support.

Change-Id: I48ff80467fd9a6667aa84a758eca754132f546b9
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/Android.mk
sb/src/com/google/android/usb/UsbAccessory.java
sb/src/com/google/android/usb/UsbManager.java
sb/tests/AccessoryChat/Android.mk
sb/tests/AccessoryChat/AndroidManifest.xml
sb/tests/AccessoryChat/README.txt
sb/tests/AccessoryChat/accessorychat/Android.mk
sb/tests/AccessoryChat/accessorychat/accessorychat.c
sb/tests/AccessoryChat/res/layout/accessory_chat.xml
sb/tests/AccessoryChat/res/xml/accessory_filter.xml
sb/tests/AccessoryChat/src/com/google/android/accessorychat/AccessoryChat.java
7c4beadf57c893f17efc0550b13498a06958f90c 28-Feb-2011 Mathias Agopian <mathias@google.com> Merge "surfaceflinger_client: Don't dereference NULL ptrs."
8c8cfec0eade40b94f8151eb2e8e438837f896a5 28-Feb-2011 Mathias Agopian <mathias@google.com> Merge "Fix sp<> conversion operator / constructor"
96dcc978430f0daf6d73fee96a01779ed537a0ce 27-Feb-2011 Jamie Gennis <jgennis@google.com> Add the MIN_UNDEQUEUED_BUFFERS query to ANW.

This change adds a new query to ANativeWindow for getting the minimum
number of buffers that must be left un-dequeued during the steady-state
operation of the ANativeWindow.

Change-Id: Ie8c461fc26b02ecde02ddb4f95bf763662cf1551
Related-Bug: 3356050
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
urfaceflinger_client/Surface.cpp
802e37e7b880c59ad791583baa70819db93b86f7 28-Feb-2011 Alex Sakhartchouk <alexst@google.com> Merge "These moved into developmnet samples"
a1c7e0e706bd32fec7a06456beccbdf090cb8c76 28-Feb-2011 Jamie Gennis <jgennis@google.com> surfaceflinger_client: Don't dereference NULL ptrs.

This change adds a null pointer check before dereferencing buffers in
a Surface list of known GraphicBuffer objects. If not all the buffers
have been dequeued before this list can legitimately contain NULL
entries.

Change-Id: I0e105b53a3f6f9a5404716b7bf150c793ff648a6
urfaceflinger_client/Surface.cpp
32a55cf66e12e5e56d2e05b73c6bef453477c2bb 26-Feb-2011 Mathias Agopian <mathias@google.com> Fix sp<> conversion operator / constructor

some of the conversion operators were not using the proper
pointer type when calling incStrong/decStrong, usually it
has no bad consequences, but for some implementation
of the ref-counted object it could lead to recording the wrong
owner id.

Change-Id: If574b9069b8a4cf6e0911a992c8f095aba799995
tils/RefBase.cpp
45b1adf94776856447cad7c591614d31e572dbc8 25-Feb-2011 Alex Sakhartchouk <alexst@google.com> Merge "Moving dependency includes out of librs headers."
4368c449d7baa398e67eb4d96467f1de8862c5bb 25-Feb-2011 David Li <davidxli@google.com> Merge "Fix mTexCoordsSlot > 0 check to mTexCoordsSlot >= 0"
cf28957c89127ccfc82d535903c776124665446a 25-Feb-2011 David Li <davidxli@google.com> Fix mTexCoordsSlot > 0 check to mTexCoordsSlot >= 0

0 Is a valid attribute location.

Change-Id: Ib24335f48efd6cc59e2ab877569d7d0c95f8490a
Signed-off-by: David Li <davidxli@google.com>
wui/OpenGLRenderer.cpp
ebd65bbb848b2f3ee8dc55e485d201c681361d15 25-Feb-2011 Alex Sakhartchouk <alexst@google.com> Moving dependency includes out of librs headers.

When we want to use it on the host, we shouldn't need to go hunting for every external dependency

Change-Id: I885262acdcdf5ede4a9392235f35d5e2f7038e8b
s/rsFont.cpp
s/rsFont.h
s/rsScriptC.cpp
s/rsScriptC.h
7b8b75892400745f39bb8d5b5d539091bcfb1e1e 25-Feb-2011 Romain Guy <romainguy@google.com> Remove the right entries from the cache when a GC happens.

Change-Id: I4649b18c4721a5511a404299e771e675c843407b
wui/PathCache.cpp
b37cbec6d06578a72bdd9c2caa3fd964ade71c53 25-Feb-2011 Romain Guy <romainguy@google.com> Correctly blend translucent GIF bitmaps.

Change-Id: Ifeb2c1d97a4c6dfeb1a7b5b26f1a3153e9f8da7f
wui/OpenGLRenderer.cpp
wui/TextDropShadowCache.h
wui/TextureCache.cpp
ffbe826804e150013acbf3ab25bd405bbbd186fc 25-Feb-2011 Mathias Agopian <mathias@google.com> Merge "Fix some issues with RefBase debugging."
6152bbc65016e526f25d24a66b92d6aa822f6ee0 24-Feb-2011 Glenn Kasten <gkasten@google.com> Merge "Bug 3362814 Fix SMP race in access to mRequestExit"
62c7574c02f2d83bafe7fc91bba6dbdf01b92a62 24-Feb-2011 Derek Sollenberger <djsollen@google.com> Merge "Skia Merge (revision 808)"
e857cc8175d532eccbe75798c56bf3c5378e585e 24-Feb-2011 Wu-cheng Li <wuchengli@google.com> Merge "Add YV12 preview format to camera parameter constants."
10a1b30dfbd0bbeae6776e353600986647c6e0a8 22-Feb-2011 Wu-cheng Li <wuchengli@google.com> Add YV12 preview format to camera parameter constants.

bug:3463624
Change-Id: I8f2992dadfd3fb9e3c9d67743e52da7f3212827e
amera/CameraParameters.cpp
ec122eb46b6ce8f6e8bb3e08c34e575de666cd3e 17-Feb-2011 Mathias Agopian <mathias@google.com> Fix some issues with RefBase debugging.

First slipt sp<> out of RefBase into StrongPointer.h so it can be reused
more easily and to make it clear that it doesn't require RefBase.

Note: the rest of the change only affects the system when DEBUG_REFS is enabled.

The main problem we fix here is that the owner id associated with each
reference could get out of date when a sp<> or wp<> was moved, for
instance when they're used in a Vector< >.

We fix this issue by calling into RefBase::moveReferences from
a template specialization for sp<TYPE> and wp<TYPE> of the
type helpers. RefBase::moveReferences() has then a chance to
update the owner ids.

There is a little bit of trickery to implement this generically in
RefBase, where we need to use a templatized functor that can turn
a sp<TYPE>* casted to a void* into a RefBase*.

Introduced a new debug option DEBUG_REFS_FATAL_SANITY_CHECKS
currently set to 0 by default as there seem to be an issue
with sp<ANativeWindow> which trips the sanity checks.

Change-Id: I4825b21c8ec47d4a0ef35d760760ae0c9cdfbd7f
tils/RefBase.cpp
c2b3cda097d2f8ac9211360aa82995d693e0764c 01-Feb-2011 Glenn Kasten <gkasten@google.com> Bug 3362814 Fix SMP race in access to mRequestExit

Also fix an unlikely SMP race in access to mHoldSelf on entry to _threadLoop.

Change-Id: I6cbc0b94739c7dd5e77e8a5ba0da22cdc0b1a4db
tils/Threads.cpp
595f37c1036b5c3fe93e3b9f270ba37a426d99c8 24-Feb-2011 Jason Sams <rjsams@android.com> Merge "fix bug 3477451 Bogus asserts with pure compute scripts."
7f97c4ef12263a70a5c9ee7cd16f194c0240e658 24-Feb-2011 Mathias Agopian <mathias@google.com> Merge "Remove RefBase.h dependency on TextOutput.h"
07078e385872ee9eed475aaf43e1b89bcc3329f1 23-Feb-2011 Jason Sams <rjsams@android.com> fix bug 3477451
Bogus asserts with pure compute scripts.

Change-Id: If5928c563e06405f75a11606d9148d64fa10be07
s/rsContext.cpp
e600e1b91acf725465241c42e45c0b49d38c6743 23-Feb-2011 Alex Sakhartchouk <alexst@google.com> These moved into developmnet samples

Change-Id: Id7a502b9f2df2edcda0cf78e582ab6763eb55862
s/Android.mk
s/java/Android.mk
s/java/Balls/Android.mk
s/java/Balls/AndroidManifest.xml
s/java/Balls/_index.html
s/java/Balls/res/drawable/flares.png
s/java/Balls/res/drawable/test_pattern.png
s/java/Balls/src/com/android/balls/Balls.java
s/java/Balls/src/com/android/balls/BallsRS.java
s/java/Balls/src/com/android/balls/BallsView.java
s/java/Balls/src/com/android/balls/ball_physics.rs
s/java/Balls/src/com/android/balls/balls.rs
s/java/Balls/src/com/android/balls/balls.rsh
s/java/Fountain/Android.mk
s/java/Fountain/AndroidManifest.xml
s/java/Fountain/_index.html
s/java/Fountain/res/drawable/test_pattern.png
s/java/Fountain/src/com/android/fountain/Fountain.java
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/Fountain/src/com/android/fountain/FountainView.java
s/java/Fountain/src/com/android/fountain/fountain.rs
s/java/HelloCompute/Android.mk
s/java/HelloCompute/AndroidManifest.xml
s/java/HelloCompute/_index.html
s/java/HelloCompute/res/drawable/data.jpg
s/java/HelloCompute/res/layout/main.xml
s/java/HelloCompute/src/com/android/example/hellocompute/HelloCompute.java
s/java/HelloCompute/src/com/android/example/hellocompute/mono.rs
s/java/HelloWorld/Android.mk
s/java/HelloWorld/AndroidManifest.xml
s/java/HelloWorld/_index.html
s/java/HelloWorld/res/drawable/test_pattern.png
s/java/HelloWorld/src/com/android/rs/helloworld/HelloWorld.java
s/java/HelloWorld/src/com/android/rs/helloworld/HelloWorldRS.java
s/java/HelloWorld/src/com/android/rs/helloworld/HelloWorldView.java
s/java/HelloWorld/src/com/android/rs/helloworld/helloworld.rs
s/java/Samples/Android.mk
s/java/Samples/AndroidManifest.xml
s/java/Samples/_index.html
s/java/Samples/res/drawable/checker.png
s/java/Samples/res/drawable/cubemap_test.png
s/java/Samples/res/drawable/data.png
s/java/Samples/res/drawable/leaf.png
s/java/Samples/res/drawable/test_pattern.png
s/java/Samples/res/drawable/torusmap.png
s/java/Samples/res/raw/multitexf.glsl
s/java/Samples/res/raw/shader2f.glsl
s/java/Samples/res/raw/shader2movev.glsl
s/java/Samples/res/raw/shader2v.glsl
s/java/Samples/res/raw/shaderarrayf.glsl
s/java/Samples/res/raw/shaderarrayv.glsl
s/java/Samples/res/raw/shadercubef.glsl
s/java/Samples/res/raw/shadercubev.glsl
s/java/Samples/res/raw/shaderf.glsl
s/java/Samples/res/raw/shaderv.glsl
s/java/Samples/res/raw/torus.a3d
s/java/Samples/src/com/android/samples/RsList.java
s/java/Samples/src/com/android/samples/RsListRS.java
s/java/Samples/src/com/android/samples/RsListView.java
s/java/Samples/src/com/android/samples/RsRenderStates.java
s/java/Samples/src/com/android/samples/RsRenderStatesRS.java
s/java/Samples/src/com/android/samples/RsRenderStatesView.java
s/java/Samples/src/com/android/samples/rslist.rs
s/java/Samples/src/com/android/samples/rsrenderstates.rs
s/java/Samples/src/com/android/samples/shader_def.rsh
s/java/_index.html
e00cab707dcaf6f05adb5ccb9c80fdf25c483427 18-Feb-2011 James Dong <jdong@google.com> Application-managed callback buffer support for raw image

bug - 3292153

Change-Id: I9789f7c5cde3a3889d7375e881181e9152d95fc2
amera/Camera.cpp
amera/ICamera.cpp
a688b574d294faae5f56224908b40856c5045aac 17-Feb-2011 Mathias Agopian <mathias@google.com> Remove RefBase.h dependency on TextOutput.h

Change-Id: I72cd6b98ef82b4868fe1c8ec87862cf43fb4ee73
tils/RefBase.cpp
3b36ff48f1d64022366b180c75fa9ef9d034f9e8 22-Feb-2011 Alex Sakhartchouk <alexst@google.com> Merge "Moving renderscript tests away from the library to a dedicated test folder."
6062c5912dc79704b489fc8c289b78a400ed05ee 22-Feb-2011 Derek Sollenberger <djsollen@google.com> Skia Merge (revision 808)

This is a companion CL to the one found in /external/skia

Change-Id: If81748545435cab20a5d8479329ab333cb973e16
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/ResourceCache.cpp
wui/ShapeCache.h
c29a4442812d5f0e9f1af13b36cb6a806b6b46e0 22-Feb-2011 Alex Sakhartchouk <alexst@google.com> Moving renderscript tests away from the library to a dedicated test folder.

Change-Id: I7d8e20a17513f167eae3681d77463c01f4fa24a7
s/java/ImageProcessing/Android.mk
s/java/ImageProcessing/AndroidManifest.xml
s/java/ImageProcessing/res/drawable-hdpi/data.jpg
s/java/ImageProcessing/res/drawable/data.jpg
s/java/ImageProcessing/res/layout/main.xml
s/java/ImageProcessing/res/values/strings.xml
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
s/java/ImageProcessing/src/com/android/rs/image/horizontal_blur.rs
s/java/ImageProcessing/src/com/android/rs/image/ip.rsh
s/java/ImageProcessing/src/com/android/rs/image/threshold.rs
s/java/ImageProcessing/src/com/android/rs/image/vertical_blur.rs
s/java/ModelViewer/Android.mk
s/java/ModelViewer/AndroidManifest.xml
s/java/ModelViewer/res/drawable/robot.png
s/java/ModelViewer/res/menu/loader_menu.xml
s/java/ModelViewer/res/raw/robot.a3d
s/java/ModelViewer/res/values/strings.xml
s/java/ModelViewer/src/com/android/modelviewer/A3DSelector.java
s/java/ModelViewer/src/com/android/modelviewer/SceneGraph.java
s/java/ModelViewer/src/com/android/modelviewer/SceneGraphRS.java
s/java/ModelViewer/src/com/android/modelviewer/SceneGraphView.java
s/java/ModelViewer/src/com/android/modelviewer/SgTransform.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModel.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModelRS.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModelView.java
s/java/ModelViewer/src/com/android/modelviewer/scenegraph.rs
s/java/ModelViewer/src/com/android/modelviewer/simplemodel.rs
s/java/ModelViewer/src/com/android/modelviewer/transform.rs
s/java/ModelViewer/src/com/android/modelviewer/transform_def.rsh
s/java/Samples/AndroidManifest.xml
s/java/Samples/src/com/android/samples/RsBench.java
s/java/Samples/src/com/android/samples/RsBenchRS.java
s/java/Samples/src/com/android/samples/RsBenchView.java
s/java/Samples/src/com/android/samples/rsbench.rs
s/java/tests/Android.mk
s/java/tests/AndroidManifest.xml
s/java/tests/res/drawable/test_pattern.png
s/java/tests/src/com/android/rs/test/RSTest.java
s/java/tests/src/com/android/rs/test/RSTestCore.java
s/java/tests/src/com/android/rs/test/RSTestView.java
s/java/tests/src/com/android/rs/test/UT_fp_mad.java
s/java/tests/src/com/android/rs/test/UT_math.java
s/java/tests/src/com/android/rs/test/UT_primitives.java
s/java/tests/src/com/android/rs/test/UT_rsdebug.java
s/java/tests/src/com/android/rs/test/UT_rstime.java
s/java/tests/src/com/android/rs/test/UT_rstypes.java
s/java/tests/src/com/android/rs/test/UnitTest.java
s/java/tests/src/com/android/rs/test/fp_mad.rs
s/java/tests/src/com/android/rs/test/math.rs
s/java/tests/src/com/android/rs/test/primitives.rs
s/java/tests/src/com/android/rs/test/rsdebug.rs
s/java/tests/src/com/android/rs/test/rslist.rs
s/java/tests/src/com/android/rs/test/rstime.rs
s/java/tests/src/com/android/rs/test/rstypes.rs
s/java/tests/src/com/android/rs/test/shared.rsh
s/java/tests/src/com/android/rs/test/test_root.rs
cc0c159e9b3dd4e0f48da0ce3e33d2c68a651413 19-Feb-2011 Jeff Brown <jeffbrown@google.com> Add new hover move action and scroll wheel plumbing.

Added support for tracking the mouse position even when the mouse button
is not pressed. To avoid confusing existing applications, mouse movements
are reported using the new ACTION_HOVER_MOVE action when the mouse button
is not pressed.

Added some more plumbing for the scroll wheel axes. The values are
reported to Views but they are not yet handled by the framework.

Change-Id: I1706be850d25cf34e5adf880bbed5cc3265cf4b1
i/InputTransport.cpp
6f2fba428ca5e77a26d991ad728e346cc47609ee 19-Feb-2011 Jeff Brown <jeffbrown@google.com> Add new axes for joysticks and mouse wheels.

Added API on InputDevice to query the set of axes available.
Added API on KeyEvent and MotionEvent to convert keycodes and axes
to symbolic name strings for diagnostic purposes.
Added API on KeyEvent to query if a given key code is a gamepad button.
Added a new "axis" element to key layout files to specify the
mapping between raw absolute axis values and motion axis ids.
Expanded the axis bitfield to 64bits to allow for future growth.
Modified the Makefile for keyboard prebuilts to run the keymap
validation tool during the build.
Added layouts for two game controllers.
Added default actions for game pad button keys.
Added more tests.
Fixed a bunch of bugs.

Change-Id: I73f9166c3b3c5bcf4970845b58088ad467525525
i/Input.cpp
i/KeyLayoutMap.cpp
i/Keyboard.cpp
i/tests/InputEvent_test.cpp
bdbdf0148d8ad36f8425b9be81c03dbe81333354 18-Feb-2011 Alex Sakhartchouk <alexst@google.com> Merge "Fixing font renderer attribute slot locations."
3d9b77451540d67e55e970e2ecd4be7864f82ee3 18-Feb-2011 Alex Sakhartchouk <alexst@google.com> Merge "Fix UI in image processing."
7a2222b2605b52fc24baf6c7df509979cbec8d9b 18-Feb-2011 Robert Ly <robertly@google.com> am d2acfd6d: am a58f58da: Merge "Doc change: fixing renderscript samples" into honeycomb

* commit 'd2acfd6d04545562fcacd266e175461f26b25da9':
Doc change: fixing renderscript samples
d2acfd6d04545562fcacd266e175461f26b25da9 18-Feb-2011 Robert Ly <robertly@google.com> am a58f58da: Merge "Doc change: fixing renderscript samples" into honeycomb

* commit 'a58f58daf94caa7e50c04707a67ba1a9dacb0a9c':
Doc change: fixing renderscript samples
aa680857e6ba107dfc9c76c5a342f6f907120c22 18-Feb-2011 Scott Main <smain@google.com> am 0ddd2d1e: DO NOT MERGE Delete unused/broken samples and tests from the renderscript libs, so we can publish the entire contents of libs/rs/java/ for samples in HC

* commit '0ddd2d1ea7cda544efc4d25601e1cdc0236e44d8':
DO NOT MERGE Delete unused/broken samples and tests from the renderscript libs, so we can publish the entire contents of libs/rs/java/ for samples in HC
a58f58daf94caa7e50c04707a67ba1a9dacb0a9c 18-Feb-2011 Robert Ly <robertly@google.com> Merge "Doc change: fixing renderscript samples" into honeycomb
6518f486a5b9cdcb48df3ca09732b51b6df249bf 15-Feb-2011 Robert Ly <robertly@google.com> Doc change: fixing renderscript samples

Change-Id: Ie5d17df121ec4bc5fd46448c1670d306322b92d8
s/java/Balls/_index.html
s/java/Fountain/_index.html
s/java/HelloCompute/_index.html
s/java/HelloWorld/_index.html
s/java/Samples/_index.html
s/java/_index.html
894df17eee708688c8a6e67941add2017239c790 18-Feb-2011 Alex Sakhartchouk <alexst@google.com> Fixing font renderer attribute slot locations.

Change-Id: I6377bb641df7d8372d873c00790189f9a190afd6
wui/FontRenderer.cpp
wui/FontRenderer.h
wui/OpenGLRenderer.cpp
0ddd2d1ea7cda544efc4d25601e1cdc0236e44d8 18-Feb-2011 Scott Main <smain@google.com> DO NOT MERGE
Delete unused/broken samples and tests from the renderscript libs,
so we can publish the entire contents of libs/rs/java/ for samples in HC

Change-Id: I0428074e995d7ee282520f54a9a3c81e32bff027
s/java/ImageProcessing/Android.mk
s/java/ImageProcessing/AndroidManifest.xml
s/java/ImageProcessing/res/drawable-hdpi/data.jpg
s/java/ImageProcessing/res/drawable/data.jpg
s/java/ImageProcessing/res/layout/main.xml
s/java/ImageProcessing/res/values/strings.xml
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
s/java/ImageProcessing/src/com/android/rs/image/horizontal_blur.rs
s/java/ImageProcessing/src/com/android/rs/image/ip.rsh
s/java/ImageProcessing/src/com/android/rs/image/threshold.rs
s/java/ImageProcessing/src/com/android/rs/image/vertical_blur.rs
s/java/ModelViewer/Android.mk
s/java/ModelViewer/AndroidManifest.xml
s/java/ModelViewer/res/drawable/robot.png
s/java/ModelViewer/res/raw/robot.a3d
s/java/ModelViewer/src/com/android/modelviewer/SceneGraph.java
s/java/ModelViewer/src/com/android/modelviewer/SceneGraphRS.java
s/java/ModelViewer/src/com/android/modelviewer/SceneGraphView.java
s/java/ModelViewer/src/com/android/modelviewer/SgTransform.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModel.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModelRS.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModelView.java
s/java/ModelViewer/src/com/android/modelviewer/scenegraph.rs
s/java/ModelViewer/src/com/android/modelviewer/simplemodel.rs
s/java/ModelViewer/src/com/android/modelviewer/transform.rs
s/java/ModelViewer/src/com/android/modelviewer/transform_def.rsh
s/java/tests/Android.mk
s/java/tests/AndroidManifest.xml
s/java/tests/res/drawable/test_pattern.png
s/java/tests/src/com/android/rs/test/RSTest.java
s/java/tests/src/com/android/rs/test/RSTestCore.java
s/java/tests/src/com/android/rs/test/RSTestView.java
s/java/tests/src/com/android/rs/test/UT_fp_mad.java
s/java/tests/src/com/android/rs/test/UT_math.java
s/java/tests/src/com/android/rs/test/UT_primitives.java
s/java/tests/src/com/android/rs/test/UT_rsdebug.java
s/java/tests/src/com/android/rs/test/UT_rstime.java
s/java/tests/src/com/android/rs/test/UT_rstypes.java
s/java/tests/src/com/android/rs/test/UnitTest.java
s/java/tests/src/com/android/rs/test/fp_mad.rs
s/java/tests/src/com/android/rs/test/math.rs
s/java/tests/src/com/android/rs/test/primitives.rs
s/java/tests/src/com/android/rs/test/rsdebug.rs
s/java/tests/src/com/android/rs/test/rslist.rs
s/java/tests/src/com/android/rs/test/rstime.rs
s/java/tests/src/com/android/rs/test/rstypes.rs
s/java/tests/src/com/android/rs/test/shared.rsh
s/java/tests/src/com/android/rs/test/test_root.rs
db217e0f02d6e719838576a54de9b7c59fa153fe 17-Feb-2011 Alex Sakhartchouk <alexst@google.com> Fix UI in image processing.

Change-Id: I4ec562e986e5009c101a62de8b15c6be0f0bc03b
s/java/ImageProcessing/AndroidManifest.xml
s/java/ImageProcessing/res/layout/main.xml
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
ebbd5d14ad3b1e762d9fcfa026e19413cc857e05 17-Feb-2011 Jeff Brown <jeffbrown@google.com> Fix a regression with MotionEvent parceling.

Also added some more unit tests.

Change-Id: I413654294d1a998eec056884e6df5eaa50f3daf4
i/Input.cpp
i/tests/Android.mk
i/tests/InputChannel_test.cpp
i/tests/InputEvent_test.cpp
i/tests/InputPublisherAndConsumer_test.cpp
2e10374dceea41ebab13e5d2834f6767f2c23b3d 17-Feb-2011 Alex Sakhartchouk <alexst@google.com> Merge "Adding better navigation to model viewer (pinch to zoom, rotations) Adding ability to load a3d files from disk."
45708bf2f03f9f50c22f86cb794c2a088bab1c05 17-Feb-2011 Jeff Brown <jeffbrown@google.com> Merge "Add support for arbitrary axes in MotionEvents."
dc165b3365ca3e8fd7c4eb11b1154646977a6d0a 17-Feb-2011 Alex Sakhartchouk <alexst@google.com> Adding better navigation to model viewer (pinch to zoom, rotations)
Adding ability to load a3d files from disk.

Change-Id: I8697483cf0e3136113e74f9239dc5bc3de770cee
s/java/ModelViewer/AndroidManifest.xml
s/java/ModelViewer/res/menu/loader_menu.xml
s/java/ModelViewer/res/values/strings.xml
s/java/ModelViewer/src/com/android/modelviewer/A3DSelector.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModel.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModelRS.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModelView.java
s/java/ModelViewer/src/com/android/modelviewer/simplemodel.rs
bb9d394b21bdfeb1ceb4cf6e4ed0306e39757b15 16-Feb-2011 Kenny Root <kroot@google.com> Clean up use of HAVE_ANDROID_OS

HAVE_ANDROID_OS was defined as "1" for targets, but never defined as "0"
for non-targets. Changing them to #ifdef should be safe and matches
all the other uses of HAVE_ANDROID_OS throughout the system.

Change-Id: I82257325a8ae5e4e4371ddfc4dbf51cea8ea0abb
inder/MemoryHeapBase.cpp
inder/MemoryHeapPmem.cpp
tils/SystemClock.cpp
tils/Threads.cpp
492277d2e2417ec93c2c92dd3b484344021631df 16-Feb-2011 Mathias Agopian <mathias@google.com> allow root to call into surfaceflinger

this is useful for running standalone tests
with standalone SurfaceFlinger.

Change-Id: I08d054f6214affa3a777a82765f4e0bd256ba26d
urfaceflinger_client/ISurfaceComposerClient.cpp
91c69ab01539f7ba28708f41ec1835cc2920d0a0 15-Feb-2011 Jeff Brown <jeffbrown@google.com> Add support for arbitrary axes in MotionEvents.

This change makes it possible to extend the set of axes that
are reported in MotionEvents by defining new axis constants.

The MotionEvent object is now backed by its C++ counterpart
to avoid having to maintain multiple representations of the
same data.

Change-Id: Ibe93c90d4b390d43c176cce48d558d20869ee608
i/Android.mk
i/Input.cpp
i/tests/InputPublisherAndConsumer_test.cpp
12433545426701aa9b5d840eada8cef8a6963882 12-Feb-2011 Stephen Hines <srhines@google.com> am e49f75eb: am bbcf2079: Merge "Fix struct initializer for balls." into honeycomb

* commit 'e49f75eb4634f8ee70ad0b5fbd8c6ea19773024f':
Fix struct initializer for balls.
e49f75eb4634f8ee70ad0b5fbd8c6ea19773024f 12-Feb-2011 Stephen Hines <srhines@google.com> am bbcf2079: Merge "Fix struct initializer for balls." into honeycomb

* commit 'bbcf2079e9978ad6f75732070ce1dcc0dea3ea3f':
Fix struct initializer for balls.
7655a7dd1db91d5bb8a181590f4909b811bae8b6 12-Feb-2011 Stephen Hines <srhines@google.com> Fix struct initializer for balls.

Bug: 3092382
Change-Id: Ie4e85177727b32f0a260fae53885c97bee111343
s/java/Balls/src/com/android/balls/balls.rs
eefdd709dd9b8fcf491b8beb66a3b57d644570a7 11-Feb-2011 Romain Guy <romainguy@google.com> Merge "Dirty layers in the area covered by a drawBitmapMesh() call Bug #3410827"
b18d2d0079b4dbf5675ab79b7111b3dfb3cc1ad0 11-Feb-2011 Romain Guy <romainguy@google.com> Dirty layers in the area covered by a drawBitmapMesh() call
Bug #3410827

Change-Id: Ic8b4f6201af94497bba86c75819588c78debddc2
wui/OpenGLRenderer.cpp
a03837b6eef1b9f11e9fb9ec143cba1d07aa84d3 11-Feb-2011 Jason Sams <rjsams@android.com> am e8d074d7: am cbcd9335: Merge "Basic 101 level compute example for RS." into honeycomb

* commit 'e8d074d763f1c9551c41654589597e45476d27e0':
Basic 101 level compute example for RS.
cc3b7cd293b5b68d7e4c255b4e0ef449bd200fc5 11-Feb-2011 Alex Sakhartchouk <alexst@google.com> am bf3aae10: am efc48eea: Merge "HelloWorld graphics sample for Renderscript." into honeycomb

* commit 'bf3aae10b5fa73cced245276f3b2f433c9cd635e':
HelloWorld graphics sample for Renderscript.
f2270583fd7db6465c61683deef7e81a1376bad7 11-Feb-2011 Alex Sakhartchouk <alexst@google.com> am 7541a9a2: am f1ff8b2f: Merge "Cleanup of the code in view to do creation/destruction in the right places." into honeycomb

* commit '7541a9a25036410f17718d86fe57ea33c0f789d3':
Cleanup of the code in view to do creation/destruction in the right places.
e8d074d763f1c9551c41654589597e45476d27e0 11-Feb-2011 Jason Sams <rjsams@android.com> am cbcd9335: Merge "Basic 101 level compute example for RS." into honeycomb

* commit 'cbcd93352b9fff3ada4a01c3094b24e5fafde97f':
Basic 101 level compute example for RS.
bf3aae10b5fa73cced245276f3b2f433c9cd635e 11-Feb-2011 Alex Sakhartchouk <alexst@google.com> am efc48eea: Merge "HelloWorld graphics sample for Renderscript." into honeycomb

* commit 'efc48eea1541990046248b86e899c72b58c8506f':
HelloWorld graphics sample for Renderscript.
7541a9a25036410f17718d86fe57ea33c0f789d3 11-Feb-2011 Alex Sakhartchouk <alexst@google.com> am f1ff8b2f: Merge "Cleanup of the code in view to do creation/destruction in the right places." into honeycomb

* commit 'f1ff8b2fd6441d122e84c5040834bf6e0d845b05':
Cleanup of the code in view to do creation/destruction in the right places.
cbcd93352b9fff3ada4a01c3094b24e5fafde97f 10-Feb-2011 Jason Sams <rjsams@android.com> Merge "Basic 101 level compute example for RS." into honeycomb
efc48eea1541990046248b86e899c72b58c8506f 10-Feb-2011 Alex Sakhartchouk <alexst@google.com> Merge "HelloWorld graphics sample for Renderscript." into honeycomb
f1ff8b2fd6441d122e84c5040834bf6e0d845b05 10-Feb-2011 Alex Sakhartchouk <alexst@google.com> Merge "Cleanup of the code in view to do creation/destruction in the right places." into honeycomb
716b27b69d8c02da00b0be38d4b7f21bf1698eed 10-Feb-2011 Jason Sams <rjsams@android.com> Basic 101 level compute example for RS.

Change-Id: Ic196ebdf558c1b9661182e191e31d7f62448e73a
s/java/HelloCompute/Android.mk
s/java/HelloCompute/AndroidManifest.xml
s/java/HelloCompute/res/drawable/data.jpg
s/java/HelloCompute/res/layout/main.xml
s/java/HelloCompute/src/com/android/example/hellocompute/HelloCompute.java
s/java/HelloCompute/src/com/android/example/hellocompute/mono.rs
4123cc5efb3988ecad7434f68ea08af9d8a3e83d 10-Feb-2011 Alex Sakhartchouk <alexst@google.com> HelloWorld graphics sample for Renderscript.

Change-Id: I7f5c4813a207a37f67c563407369a1dbc1be250d
s/java/HelloWorld/Android.mk
s/java/HelloWorld/AndroidManifest.xml
s/java/HelloWorld/res/drawable/test_pattern.png
s/java/HelloWorld/src/com/android/rs/helloworld/HelloWorld.java
s/java/HelloWorld/src/com/android/rs/helloworld/HelloWorldRS.java
s/java/HelloWorld/src/com/android/rs/helloworld/HelloWorldView.java
s/java/HelloWorld/src/com/android/rs/helloworld/helloworld.rs
85bccf6e0b555bc5245628ba7340123b6b367b51 10-Feb-2011 Alex Sakhartchouk <alexst@google.com> am 699a0969: Merge "DO NOT MERGE Removing an activity that shouldn\'t go into samples" into honeycomb

* commit '699a0969434b6ee434dd9f5f212fe1bb914fdf0d':
DO NOT MERGE Removing an activity that shouldn't go into samples
f82428a932333620401d657017110d5818308016 09-Feb-2011 Alex Sakhartchouk <alexst@google.com> Cleanup of the code in view to do creation/destruction in the right places.

Change-Id: I1c87682cc2c35ad5ee15c06cd78f48b612668181
s/java/Samples/src/com/android/samples/RsList.java
s/java/Samples/src/com/android/samples/RsListRS.java
s/java/Samples/src/com/android/samples/RsListView.java
s/java/Samples/src/com/android/samples/RsRenderStates.java
s/java/Samples/src/com/android/samples/RsRenderStatesRS.java
s/java/Samples/src/com/android/samples/RsRenderStatesView.java
s/java/Samples/src/com/android/samples/rslist.rs
d9349abdaa3b310ad5504e581549dbf39f1049e2 09-Feb-2011 Alex Sakhartchouk <alexst@google.com> DO NOT MERGE
Removing an activity that shouldn't go into samples

Change-Id: I00025770d926af2dbf399d28f8e855568e260b8b
s/java/Samples/AndroidManifest.xml
s/java/Samples/src/com/android/samples/RsBench.java
s/java/Samples/src/com/android/samples/RsBenchRS.java
s/java/Samples/src/com/android/samples/RsBenchView.java
s/java/Samples/src/com/android/samples/rsbench.rs
fbf8e02d99a737b2edc98278666b0510f792d58d 09-Feb-2011 Jason Sams <rjsams@android.com> am e2b2a02a: am 4fd70373: Merge "Fix bug 3421901 remove 2 functions from public headers in the SDK." into honeycomb

* commit 'e2b2a02a91dc4101a9481b5bb6ba4c56c7a35dd7':
Fix bug 3421901 remove 2 functions from public headers in the SDK.
e2b2a02a91dc4101a9481b5bb6ba4c56c7a35dd7 08-Feb-2011 Jason Sams <rjsams@android.com> am 4fd70373: Merge "Fix bug 3421901 remove 2 functions from public headers in the SDK." into honeycomb

* commit '4fd70373ecafbf5a87a1c35852aec2818612e928':
Fix bug 3421901 remove 2 functions from public headers in the SDK.
4fd70373ecafbf5a87a1c35852aec2818612e928 08-Feb-2011 Jason Sams <rjsams@android.com> Merge "Fix bug 3421901 remove 2 functions from public headers in the SDK." into honeycomb
4110c9931abbc84e515b42b979d318d5e1561fc2 07-Feb-2011 Jason Sams <rjsams@android.com> am 5510d172: am f8cbf729: Merge "cleanup headers for SDK. bug 3421901" into honeycomb

* commit '5510d1722b8da4fd630a236f0fd3aad0cc4dac0c':
cleanup headers for SDK. bug 3421901
5510d1722b8da4fd630a236f0fd3aad0cc4dac0c 07-Feb-2011 Jason Sams <rjsams@android.com> am f8cbf729: Merge "cleanup headers for SDK. bug 3421901" into honeycomb

* commit 'f8cbf7297bd7e29867154610cbc24fe0dbc168d1':
cleanup headers for SDK. bug 3421901
f8cbf7297bd7e29867154610cbc24fe0dbc168d1 07-Feb-2011 Jason Sams <rjsams@android.com> Merge "cleanup headers for SDK. bug 3421901" into honeycomb
c07eb3941716b1597822983077bd0c8488e4f3df 07-Feb-2011 Robert Ly <robertly@google.com> am 18f5c7e6: am cfc048a3: set targetsdk=11 on renderscript misc samples project

* commit '18f5c7e6919a8d66b1b7c818d55b92504961b379':
set targetsdk=11 on renderscript misc samples project
a5c8eb76f5f7bfbc5d53f2cd2c6f0a23a2fe8712 07-Feb-2011 Robert Ly <robertly@google.com> am 7eca7f74: am 5cf98da8: Merge "Fixing renderscript samples to properly declare targetSDK" into honeycomb

* commit '7eca7f742a31654a3240f70611ac8c82705d2b42':
Fixing renderscript samples to properly declare targetSDK
b3fe3f59d1e2847cf4aa3f8c933d21c00132b240 07-Feb-2011 Mike Cleron <mcleron@google.com> am e4d08c02: am 851beae7: Merge "Properly handle dirty rectangles generated from 9-patches Bug #3409580" into honeycomb

* commit 'e4d08c02229bea67c6f19db22d4ffa45196d4258':
Properly handle dirty rectangles generated from 9-patches Bug #3409580
b31688eb05a2ef0b210a71c318629f786c4f3892 07-Feb-2011 Mike Cleron <mcleron@google.com> am a626eb18: am 2d47fd3c: Merge "Fix crash when Paths are GCd in hw accelerated apps" into honeycomb

* commit 'a626eb18ae2c4a48c8770ece3a64eeee5974f455':
Fix crash when Paths are GCd in hw accelerated apps
74d077822954ef3db44c11bb670d4894f30d524f 07-Feb-2011 Stephen Hines <srhines@google.com> am 95dc232c: am a5b8768f: Merge "Add support for memcpy/memset to RS." into honeycomb

* commit '95dc232c0a16c64e422ef7e57e14e5f955b112a2':
Add support for memcpy/memset to RS.
f7398e2808675d134460196054397237c502891a 07-Feb-2011 Jamie Gennis <jgennis@google.com> am c7839751: am c2efcd2c: Merge "Initialize the SurfaceTexture transform fields." into honeycomb

* commit 'c7839751aa1de52e0c3aab7dd1518b0fc8f2ee0a':
Initialize the SurfaceTexture transform fields.
3e4ac8967d2f8f108eeecdc78f8128d1f12f26b6 07-Feb-2011 Romain Guy <romainguy@google.com> am 80038fbc: am ba27cf75: Merge "Empty the clip rect when intersection is empty. Bug #3410035" into honeycomb

* commit '80038fbcf629936852afba0054b26939a3a9835a':
Empty the clip rect when intersection is empty. Bug #3410035
69d792f34a430159c4164f39e8eb33df2b68e6da 07-Feb-2011 Chet Haase <chet@google.com> am 38e8c353: am 59301777: Merge "Fix leak in reused display lists" into honeycomb

* commit '38e8c35322e41708e5b1f2260d7d67ff525d8560':
Fix leak in reused display lists
0e6fe4f31a72f72a2e61aa0f04f9f8ac52946220 07-Feb-2011 Romain Guy <romainguy@google.com> am a9c369d0: am 87465f02: Merge "Fixes cache misses and extra allocations. Bug #3421454" into honeycomb

* commit 'a9c369d0fbe2b995f456877b2368aac95f810558':
Fixes cache misses and extra allocations. Bug #3421454
18f5c7e6919a8d66b1b7c818d55b92504961b379 06-Feb-2011 Robert Ly <robertly@google.com> am cfc048a3: set targetsdk=11 on renderscript misc samples project

* commit 'cfc048a3f912695f7a251a2266aef59ac4d2d124':
set targetsdk=11 on renderscript misc samples project
cfc048a3f912695f7a251a2266aef59ac4d2d124 06-Feb-2011 Robert Ly <robertly@google.com> set targetsdk=11 on renderscript misc samples project

Change-Id: Ib352d6e53bd5b2a56c84169e188b835d87c894f1
s/java/Samples/AndroidManifest.xml
7eca7f742a31654a3240f70611ac8c82705d2b42 06-Feb-2011 Robert Ly <robertly@google.com> am 5cf98da8: Merge "Fixing renderscript samples to properly declare targetSDK" into honeycomb

* commit '5cf98da85c1698cacbeed8d4883373d0e0774fd8':
Fixing renderscript samples to properly declare targetSDK
5cf98da85c1698cacbeed8d4883373d0e0774fd8 06-Feb-2011 Robert Ly <robertly@google.com> Merge "Fixing renderscript samples to properly declare targetSDK" into honeycomb
d307645ecee211de92375247d3821fb50388c60f 05-Feb-2011 Robert Ly <robertly@google.com> Fixing renderscript samples to properly declare targetSDK

Change-Id: I0374fdcd06470e26dc7e849323a1764c08756af1
s/java/Balls/AndroidManifest.xml
s/java/Fountain/AndroidManifest.xml
s/java/ImageProcessing/AndroidManifest.xml
e4d08c02229bea67c6f19db22d4ffa45196d4258 05-Feb-2011 Mike Cleron <mcleron@google.com> am 851beae7: Merge "Properly handle dirty rectangles generated from 9-patches Bug #3409580" into honeycomb

* commit '851beae717dc8e9b66c214d9d6aab2e76d52b086':
Properly handle dirty rectangles generated from 9-patches Bug #3409580
a626eb18ae2c4a48c8770ece3a64eeee5974f455 05-Feb-2011 Mike Cleron <mcleron@google.com> am 2d47fd3c: Merge "Fix crash when Paths are GCd in hw accelerated apps" into honeycomb

* commit '2d47fd3c3566e5fbe16bcee2ec4be87c6cdc2440':
Fix crash when Paths are GCd in hw accelerated apps
851beae717dc8e9b66c214d9d6aab2e76d52b086 05-Feb-2011 Mike Cleron <mcleron@google.com> Merge "Properly handle dirty rectangles generated from 9-patches Bug #3409580" into honeycomb
2d47fd3c3566e5fbe16bcee2ec4be87c6cdc2440 05-Feb-2011 Mike Cleron <mcleron@google.com> Merge "Fix crash when Paths are GCd in hw accelerated apps" into honeycomb
95dc232c0a16c64e422ef7e57e14e5f955b112a2 05-Feb-2011 Stephen Hines <srhines@google.com> am a5b8768f: Merge "Add support for memcpy/memset to RS." into honeycomb

* commit 'a5b8768f01462374aed42e5c602afe65b7e050ef':
Add support for memcpy/memset to RS.
a5b8768f01462374aed42e5c602afe65b7e050ef 05-Feb-2011 Stephen Hines <srhines@google.com> Merge "Add support for memcpy/memset to RS." into honeycomb
c7839751aa1de52e0c3aab7dd1518b0fc8f2ee0a 05-Feb-2011 Jamie Gennis <jgennis@google.com> am c2efcd2c: Merge "Initialize the SurfaceTexture transform fields." into honeycomb

* commit 'c2efcd2ceadab33b42d938e3771c994816e9a4b0':
Initialize the SurfaceTexture transform fields.
3f73da5c96b998d86a5605ab50c90e2465985789 04-Feb-2011 Stephen Hines <srhines@google.com> Add support for memcpy/memset to RS.

Bug: 3426446
Change-Id: I78170a50bdd891d928b3db96685b4c3c801b6f00
s/rsScriptC_Lib.cpp
c78b5d50f961ac8f696f8282979ae283cacd3574 04-Feb-2011 Romain Guy <romainguy@google.com> Properly handle dirty rectangles generated from 9-patches
Bug #3409580

This bug affects anything that draws a 9patch inside a layer, this includes
launcher's workspace, all of the fade animations, etc.

Change-Id: Icbe8ecd158e3d5f44d07516462de68c5d1fb0a8f
wui/OpenGLRenderer.cpp
267222630184d08ba06949d1199a13e2e83fe068 04-Feb-2011 Jamie Gennis <jgennis@google.com> Initialize the SurfaceTexture transform fields.

Change-Id: I2c25f15949253a1dbe493fef440e5ef118c40e71
related-bug: 3426067
ui/SurfaceTexture.cpp
5a7e828842c26f64bb6e0ef3e0019e1949b245ee 04-Feb-2011 Chet Haase <chet@google.com> Fix crash when Paths are GCd in hw accelerated apps

A recent change to optimize path rendering didn't account for
the destruction of native objects by the VM finalizer. We may be
done with the Java level version before we're done with the native
structure that's used by the display list. For example, a drawing
method on a View that creates a temporary path to render into the
canvas will implicitly create a native structure that is put onto
the GL display list. That temporary path may go away, but the native
version should stick around as long as the display list does.

The fix is to refcount the original native version of the path
and only delete it when the refcoutn reaches zero (which means that
it is no longer needed by any display list). This is a similar mechanism
used for bitmaps and shaders.

Change-Id: I4de1047415066d425d1c689aa60827f97729b470
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/ResourceCache.cpp
wui/ResourceCache.h
80038fbcf629936852afba0054b26939a3a9835a 04-Feb-2011 Romain Guy <romainguy@google.com> am ba27cf75: Merge "Empty the clip rect when intersection is empty. Bug #3410035" into honeycomb

* commit 'ba27cf756db9ac80608ed61a39a66e94951ecc61':
Empty the clip rect when intersection is empty. Bug #3410035
f28daffda50042c1b7cbfeb34b4d47741c6e21a8 04-Feb-2011 Romain Guy <romainguy@google.com> Empty the clip rect when intersection is empty.
Bug #3410035

Change-Id: I5ceb80514d3b20c9ad230478549ad31ced403d53
wui/Snapshot.h
38e8c35322e41708e5b1f2260d7d67ff525d8560 04-Feb-2011 Chet Haase <chet@google.com> am 59301777: Merge "Fix leak in reused display lists" into honeycomb

* commit '59301777215d2e137994107d20ba40d72c7cd349':
Fix leak in reused display lists
9bd32c235dc0823f05eee824f37a2863bc80ff06 04-Feb-2011 Romain Guy <romainguy@google.com> am 109da7df: am 5bfd1aff: Merge "Allocate layers from the layers pool. Bug #3413433" into honeycomb

* commit '109da7dfd4c0766274b17467880ee673c731735c':
Allocate layers from the layers pool. Bug #3413433
a9c369d0fbe2b995f456877b2368aac95f810558 04-Feb-2011 Romain Guy <romainguy@google.com> am 87465f02: Merge "Fixes cache misses and extra allocations. Bug #3421454" into honeycomb

* commit '87465f02e4113542bb203232fed0c0f1f67f9a17':
Fixes cache misses and extra allocations. Bug #3421454
d63cbd10765e8f48e39b07b15f0a4b70bf853ec8 04-Feb-2011 Chet Haase <chet@google.com> Fix leak in reused display lists

Change-Id: I32a9c41abf8f8cbcaaaa6fcc82d296800014a1b2
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
e56d643e47530109097b09ea9012365611ab0b87 04-Feb-2011 Jason Sams <rjsams@android.com> Fix bug 3421901
remove 2 functions from public headers in the SDK.

Change-Id: Ib44e7a4c12f19c87c39095028c020548f89143ec
s/scriptc/rs_graphics.rsh
s/scriptc/rs_math.rsh
5f1d68dcd27649d6370f08e1856cb52d3c15ef68 04-Feb-2011 Jason Sams <rjsams@android.com> cleanup headers for SDK.
bug 3421901

Change-Id: Ia7018af4e27cd52818a8891b37d09e96639bba15
s/java/Samples/src/com/android/samples/rsbench.rs
s/java/Samples/src/com/android/samples/rsrenderstates.rs
2fc941e4650d618ff6e122f28b616d9032ffa134 04-Feb-2011 Romain Guy <romainguy@google.com> Fixes cache misses and extra allocations.
Bug #3421454

Change-Id: If4d5c960a7e4c581a9d213073e658284b4e1c497
wui/Caches.cpp
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/PathCache.cpp
wui/TextDropShadowCache.h
109da7dfd4c0766274b17467880ee673c731735c 03-Feb-2011 Romain Guy <romainguy@google.com> am 5bfd1aff: Merge "Allocate layers from the layers pool. Bug #3413433" into honeycomb

* commit '5bfd1afffe361958682bcb899b763ce35ec00c3a':
Allocate layers from the layers pool. Bug #3413433
5bfd1afffe361958682bcb899b763ce35ec00c3a 03-Feb-2011 Romain Guy <romainguy@google.com> Merge "Allocate layers from the layers pool. Bug #3413433" into honeycomb
09b7c91de73b59aa3f679b3ae3ba299f82ec9f8a 03-Feb-2011 Romain Guy <romainguy@google.com> Allocate layers from the layers pool.
Bug #3413433

This change will be beneficial to Launcher to avoid hiccups when
swiping pages of icons. When a layer is discarded, it is kept
in the layers pool instead of being destroyed right away. This
favors memory reuse over allocations.

Change-Id: Ifb6944ba83d6ceb67c331527c0827b26ce648eb1
wui/Caches.cpp
wui/LayerCache.cpp
wui/LayerCache.h
wui/LayerRenderer.cpp
wui/Properties.h
dcbcb680bc21059bf527f5c3c72373f26b2cd298 03-Feb-2011 Romain Guy <romainguy@google.com> am 44e3b0d0: am f44ed5ad: Merge "Don\'t clobber the local dirty rect after rendering a layer. Bug #3417254 Bug #3413433" into honeycomb

* commit '44e3b0d0344955d5ce1bbb0b329627e24b7dd468':
Don't clobber the local dirty rect after rendering a layer. Bug #3417254 Bug #3413433
44e3b0d0344955d5ce1bbb0b329627e24b7dd468 03-Feb-2011 Romain Guy <romainguy@google.com> am f44ed5ad: Merge "Don\'t clobber the local dirty rect after rendering a layer. Bug #3417254 Bug #3413433" into honeycomb

* commit 'f44ed5adc42fefa0c91fc79c5e3c20e1cdc7d697':
Don't clobber the local dirty rect after rendering a layer. Bug #3417254 Bug #3413433
f44ed5adc42fefa0c91fc79c5e3c20e1cdc7d697 03-Feb-2011 Romain Guy <romainguy@google.com> Merge "Don't clobber the local dirty rect after rendering a layer. Bug #3417254 Bug #3413433" into honeycomb
a257be1895218e5c3e153313db9dd703fd9cc84f 03-Feb-2011 Jamie Gennis <jgennis@google.com> am 421d94c2: am ecb4b3f0: Merge "Pass the IGraphicBufferAlloc to SurfaceTextureClient." into honeycomb

* commit '421d94c20321e1de528416b279bf148baba47b39':
Pass the IGraphicBufferAlloc to SurfaceTextureClient.
421d94c20321e1de528416b279bf148baba47b39 03-Feb-2011 Jamie Gennis <jgennis@google.com> am ecb4b3f0: Merge "Pass the IGraphicBufferAlloc to SurfaceTextureClient." into honeycomb

* commit 'ecb4b3f02340e21eefabbea78559e85ec7ee0089':
Pass the IGraphicBufferAlloc to SurfaceTextureClient.
ecb4b3f02340e21eefabbea78559e85ec7ee0089 03-Feb-2011 Jamie Gennis <jgennis@google.com> Merge "Pass the IGraphicBufferAlloc to SurfaceTextureClient." into honeycomb
62687ec12cb8e0b1d4044a235b1387b9a8c3b4b4 03-Feb-2011 Romain Guy <romainguy@google.com> Don't clobber the local dirty rect after rendering a layer.
Bug #3417254
Bug #3413433

Change-Id: I8045e9ec414ebe4ce4d38124142a00726d2c634d
wui/LayerRenderer.cpp
83bac216a7ba8493a7916e40b2555e73c3a5cc1a 03-Feb-2011 Jamie Gennis <jgennis@google.com> Pass the IGraphicBufferAlloc to SurfaceTextureClient.

This change passes a reference to the IGraphicBufferAlloc binder object
to SurfaceTextureClient objects. When STC objects are created they
query their associated ISurfaceTexture object for the
IGraphicBufferAlloc that the SurfaceTexture uses to allocate buffers.
Having the SurfaceTextureClient hold this reference prevents the
GraphicBufferAlloc in SurfaceFlinger from freeing the allocated buffers
before the SurfaceTextureClient is done with them.

Change-Id: Ib8e30e8b37fdd60438cbb4cb7e9174d0ba6d661c
related-bug: 3362519
ui/ISurfaceTexture.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
44fbc03f651ce79b0726a6bb585567918a88e29c 02-Feb-2011 Romain Guy <romainguy@google.com> am 57188f0d: am c1f8bcff: Merge "Fix incorrect dirty rectangle transformation in hardware layers. Bug #3413433" into honeycomb

* commit '57188f0d1d7225991f8f5afb2740ed4cc878305b':
Fix incorrect dirty rectangle transformation in hardware layers. Bug #3413433
57188f0d1d7225991f8f5afb2740ed4cc878305b 02-Feb-2011 Romain Guy <romainguy@google.com> am c1f8bcff: Merge "Fix incorrect dirty rectangle transformation in hardware layers. Bug #3413433" into honeycomb

* commit 'c1f8bcffb8612ef5bdddc4bca6eca23804cbe453':
Fix incorrect dirty rectangle transformation in hardware layers. Bug #3413433
beff8d83ef062975459f149ad0c632a3797d78ce 02-Feb-2011 Romain Guy <romainguy@google.com> Fix incorrect dirty rectangle transformation in hardware layers.
Bug #3413433

Change-Id: Iba201c7c4b4f11937797f3afcbf20c5a7395be25
wui/LayerRenderer.cpp
34cdf5bbb7d4d09e95cc6579a96c384284f99455 02-Feb-2011 Romain Guy <romainguy@google.com> am debeeef5: am d51eaa64: Merge "Update layers based on the dirty region. Bug #3413433" into honeycomb

* commit 'debeeef50408cf12f1041426e7438be266789a62':
Update layers based on the dirty region. Bug #3413433
debeeef50408cf12f1041426e7438be266789a62 02-Feb-2011 Romain Guy <romainguy@google.com> am d51eaa64: Merge "Update layers based on the dirty region. Bug #3413433" into honeycomb

* commit 'd51eaa64e3f2d9684b2dd18ebd67734f4e0e7801':
Update layers based on the dirty region. Bug #3413433
3a3133d876caf60ebff2176ad75c3dcf0259148d 02-Feb-2011 Romain Guy <romainguy@google.com> Update layers based on the dirty region.
Bug #3413433

This helps Launcher when a widget updates during a scroll, or when interacting
with widgets on the workspace if layers are still turned on.

Change-Id: Ic7a42eb34f74f4ae988039754f815e2efd1d1e4f
wui/LayerRenderer.cpp
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
c078e2cb390eefacdac40e33ca96a89b791272b6 01-Feb-2011 Alex Sakhartchouk <alexst@google.com> Merge "Cleaning up the serialization change. Renaming the define to be more in line with what it does and removing the host stub header file."
9f1f586f805f4510b2518b98b2bfbee0abbcc016 01-Feb-2011 Shih-wei Liao <sliao@google.com> Use bccLinkFile instead of bccLinkBC. Remove hacking.

Change-Id: I0ffea89553e3229ee5a3262846462298fc0f5dea
s/rsScriptC.cpp
79d01fe8232c67a18aeb8784c2b8783358ec4e44 26-Jan-2011 Jamie Gennis <jgennis@google.com> Clear GL errors before updating a SurfaceTexture.

Change-Id: Ibdac657ae9e9ccae53c63abed9caf1f1513915c2
ui/SurfaceTexture.cpp
d0f5bd130bdbd5b357b7f1db4562fa55e06d384c 31-Jan-2011 Alex Sakhartchouk <alexst@google.com> Cleaning up the serialization change.
Renaming the define to be more in line with what it does and removing the host stub header file.

Change-Id: Ibd3a0a6a398c7f81cc661f71e4478707fe1679ed
s/Android.mk
s/RenderScript.h
s/rsAdapter.cpp
s/rsAllocation.cpp
s/rsAnimation.cpp
s/rsComponent.cpp
s/rsContext.h
s/rsContextHostStub.h
s/rsDevice.cpp
s/rsElement.cpp
s/rsFileA3D.cpp
s/rsFont.cpp
s/rsMesh.cpp
s/rsMesh.h
s/rsObjectBase.cpp
s/rsProgram.cpp
s/rsProgramFragment.cpp
s/rsProgramRaster.cpp
s/rsProgramStore.cpp
s/rsProgramVertex.cpp
s/rsSampler.cpp
s/rsShaderCache.cpp
s/rsStream.cpp
s/rsType.cpp
s/rsUtils.h
s/rsVertexArray.cpp
a3b5960f6f28a81cd63abd69adcdfb5dcc05aa30 28-Jan-2011 Alex Sakhartchouk <alexst@google.com> Making sure we can build libRS on the host for serialization.

Change-Id: If0a5d77b20c0e1e2d124fa0737643a5dd1d4409a
s/Android.mk
s/RenderScript.h
s/rsAllocation.cpp
s/rsComponent.cpp
s/rsContextHostStub.h
s/rsElement.cpp
s/rsFileA3D.cpp
s/rsMesh.cpp
s/rsMesh.h
s/rsType.cpp
64548084ea0d4c2855366b9616e4da5a64c5361b 31-Jan-2011 Jean-Baptiste Queru <jbq@google.com> am ec2cd74e: am 1314bdb2: am e88fa50b: Merge from open-source gingerbread

* commit 'ec2cd74ee3d43f6d1e6865bf8e576b4b42635a86':
fix failing thread object run
ec2cd74ee3d43f6d1e6865bf8e576b4b42635a86 31-Jan-2011 Jean-Baptiste Queru <jbq@google.com> am 1314bdb2: am e88fa50b: Merge from open-source gingerbread

* commit '1314bdb2b22ae3613c3e08ae278dbc70f90b965c':
fix failing thread object run
1314bdb2b22ae3613c3e08ae278dbc70f90b965c 31-Jan-2011 Jean-Baptiste Queru <jbq@google.com> am e88fa50b: Merge from open-source gingerbread

* commit 'e88fa50be8d6709ef58b7aeb01c5efa059bcac2e':
fix failing thread object run
e88fa50be8d6709ef58b7aeb01c5efa059bcac2e 31-Jan-2011 Jean-Baptiste Queru <jbq@google.com> Merge from open-source gingerbread

Change-Id: I56f2ed37187796807fbf0de15274a85164f9432c
4453b1a5b64e5926f987227660de8c8c62695697 31-Jan-2011 Jamie Gennis <jgennis@google.com> am 09443aeb: am 62884505: Merge "Reset ANativeWindow crop on buffer geometry changes." into honeycomb

* commit '09443aeb6470d66f5bc1938b70d74b3e2f9bbbb9':
Reset ANativeWindow crop on buffer geometry changes.
09443aeb6470d66f5bc1938b70d74b3e2f9bbbb9 31-Jan-2011 Jamie Gennis <jgennis@google.com> am 62884505: Merge "Reset ANativeWindow crop on buffer geometry changes." into honeycomb

* commit '628845056282a0c5b1a212ce5aeeaac092b91ec8':
Reset ANativeWindow crop on buffer geometry changes.
628845056282a0c5b1a212ce5aeeaac092b91ec8 31-Jan-2011 Jamie Gennis <jgennis@google.com> Merge "Reset ANativeWindow crop on buffer geometry changes." into honeycomb
b2abd8c424a68eb6a5e3615a99f66c0bd46e6063 30-Jan-2011 The Android Open Source Project <initial-contribution@android.com> Mass merge from gingerbread - do not merge

Change-Id: I45dc3596bf4211d8f91c64f2d1d00588878df629
0e87a19bec51383941f14186b14fffcad73b1be1 30-Jan-2011 Dianne Hackborn <hackbod@android.com> am 371de969: am a1f5e82f: am a30063d8: am 25eb0464: Merge "Normalize output from aapt d"

* commit '371de9695508073fbbde8181eb230e99cb045206':
Normalize output from aapt d
371de9695508073fbbde8181eb230e99cb045206 30-Jan-2011 Dianne Hackborn <hackbod@android.com> am a1f5e82f: am a30063d8: am 25eb0464: Merge "Normalize output from aapt d"

* commit 'a1f5e82f37c77af7b1d630b5bca715d1742f1234':
Normalize output from aapt d
a1f5e82f37c77af7b1d630b5bca715d1742f1234 30-Jan-2011 Dianne Hackborn <hackbod@android.com> am a30063d8: am 25eb0464: Merge "Normalize output from aapt d"

* commit 'a30063d80c08434ac3c7316f338c6d54110449ab':
Normalize output from aapt d
25eb04642cb5a72f59a274bbfc92f4f65c6c343e 30-Jan-2011 Dianne Hackborn <hackbod@android.com> Merge "Normalize output from aapt d"
2ece4cdc3fd0f8a45a889c711dba7165729e8ca5 29-Jan-2011 Jamie Gennis <jgennis@google.com> Reset ANativeWindow crop on buffer geometry changes.

This changes the ANativeWindow API and the two implementations to reset
the window's crop rectangle to be uncropped when the window's buffer
geometry is changed.

Bug: 3359604
Change-Id: I64283dc8382ae687787ec0bebe6a5d5b4a0dcd6b
ui/SurfaceTextureClient.cpp
urfaceflinger_client/Surface.cpp
d6496188145a37248f977836df0331e7f0ee96ce 29-Jan-2011 Jason Sams <rjsams@android.com> am a66b759a: am bd08c7c0: Merge "Clean up RS samples for SDK, bug 2943369 Fix bug 3403965 rsgSyncAll would not mark constants as changed found by inspection." into honeycomb

* commit 'a66b759ab01c7f1e334d7b9a9f7d78ce3b45ff1c':
Clean up RS samples for SDK, bug 2943369 Fix bug 3403965 rsgSyncAll would not mark constants as changed found by inspection.
a66b759ab01c7f1e334d7b9a9f7d78ce3b45ff1c 29-Jan-2011 Jason Sams <rjsams@android.com> am bd08c7c0: Merge "Clean up RS samples for SDK, bug 2943369 Fix bug 3403965 rsgSyncAll would not mark constants as changed found by inspection." into honeycomb

* commit 'bd08c7c0c99fa84dbf3c043f4e6dff07320410b7':
Clean up RS samples for SDK, bug 2943369 Fix bug 3403965 rsgSyncAll would not mark constants as changed found by inspection.
359113b42ee691749dfe717bb0ead5358045e615 29-Jan-2011 Jason Sams <rjsams@android.com> am c8f6b6fb: Merge "DO NOT MERGE Bug 2943369 RS SDK Remove typedef for quat type which was pushed back to mr1." into honeycomb

* commit 'c8f6b6fbbc853bd89a7def780e8d9a4cabe6d0e2':
DO NOT MERGE Bug 2943369 RS SDK Remove typedef for quat type which was pushed back to mr1.
62f258f1e4293dfc982da38a39701c50d2076954 29-Jan-2011 Jason Sams <rjsams@android.com> Clean up RS samples for SDK, bug 2943369
Fix bug 3403965 rsgSyncAll would not mark constants as changed
found by inspection.

Only rsAllocation.cpp affects on device bits.

Change-Id: I6b7ec0df87e42687b24384aaf54dc04976cb84f7

doc update

Change-Id: Id5841f08868557e086f185024470924ef202d19f
s/java/ModelViewer/src/com/android/modelviewer/scenegraph.rs
s/java/Samples/src/com/android/samples/rslist.rs
s/java/Samples/src/com/android/samples/rsrenderstates.rs
s/java/tests/src/com/android/rs/test/rslist.rs
s/rsAllocation.cpp
s/scriptc/rs_core.rsh
s/scriptc/rs_graphics.rsh
s/scriptc/rs_math.rsh
35e7026357762c3370a649a4f0f0bcae0eb7156d 29-Jan-2011 Jason Sams <rjsams@android.com> DO NOT MERGE
Bug 2943369 RS SDK
Remove typedef for quat type which was pushed back to mr1.

Change-Id: Ice2ad6c766ee786105a8d70fc9457a98e19b5af3
s/scriptc/rs_types.rsh
3e669cca86f50a18d1fc86e55aac619cee7900ff 28-Jan-2011 Jamie Gennis <jgennis@google.com> am a461269d: am 2a8f8d57: Merge "Quiet the SurfaceFlingerClient dequeueBuffer error." into honeycomb

* commit 'a461269d458b29f1e44ba66f6f4ef6b711013705':
Quiet the SurfaceFlingerClient dequeueBuffer error.
a461269d458b29f1e44ba66f6f4ef6b711013705 28-Jan-2011 Jamie Gennis <jgennis@google.com> am 2a8f8d57: Merge "Quiet the SurfaceFlingerClient dequeueBuffer error." into honeycomb

* commit '2a8f8d57d23a171eaa367faa143f45fdd2f9cc1c':
Quiet the SurfaceFlingerClient dequeueBuffer error.
2a8f8d57d23a171eaa367faa143f45fdd2f9cc1c 28-Jan-2011 Jamie Gennis <jgennis@google.com> Merge "Quiet the SurfaceFlingerClient dequeueBuffer error." into honeycomb
6913062faabb1eb84e20de1e8e8e42a4932fde70 28-Jan-2011 Jamie Gennis <jgennis@google.com> Quiet the SurfaceFlingerClient dequeueBuffer error.

This is a temporary WAR for the case where dequeueBuffer is called when
all the buffers owned by a SurfaceTexture are not available - either
they're the current texture buffer or the next one. Currently, an error
is returned in that case, and this change just prevents that error from
being logged. In the future this will be fixed to not return an error
in that case.

Bug: 3356050
Change-Id: Ic6cc304881a63ce134cfd0bcb4265e3e3fa94b6a
ui/SurfaceTextureClient.cpp
564eb77ffe41057daa833a1d7c5a74f120b3db5d 28-Jan-2011 Dianne Hackborn <hackbod@google.com> am bb609471: am 256a09b2: Merge "Fix issue #3392073: At times soft keyboard comes up in..." into honeycomb

* commit 'bb6094718b08e7fe2054b7260a85baae635afe48':
Fix issue #3392073: At times soft keyboard comes up in...
bb6094718b08e7fe2054b7260a85baae635afe48 28-Jan-2011 Dianne Hackborn <hackbod@google.com> am 256a09b2: Merge "Fix issue #3392073: At times soft keyboard comes up in..." into honeycomb

* commit '256a09b2fa5cc06775818428de771c7957403452':
Fix issue #3392073: At times soft keyboard comes up in...
256a09b2fa5cc06775818428de771c7957403452 28-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3392073: At times soft keyboard comes up in..." into honeycomb
8cd3752284e366a010379b23c7c81171fe5e0a5b 28-Jan-2011 Romain Guy <romainguy@google.com> am 24c29867: am d0b54a73: Merge "Add more debug info for profiling." into honeycomb

* commit '24c29867a6851ce2c692a0ea61918d37dcb8e8e0':
Add more debug info for profiling.
24c29867a6851ce2c692a0ea61918d37dcb8e8e0 28-Jan-2011 Romain Guy <romainguy@google.com> am d0b54a73: Merge "Add more debug info for profiling." into honeycomb

* commit 'd0b54a73941aa5541ed1adc48f6739bda132970b':
Add more debug info for profiling.
d0b54a73941aa5541ed1adc48f6739bda132970b 28-Jan-2011 Romain Guy <romainguy@google.com> Merge "Add more debug info for profiling." into honeycomb
e75d87266b59fc76cfb1b9bbc9a4734b8fd1664f 28-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3392073: At times soft keyboard comes up in...

...gallery while attaching picture to gmail message

In various places we could block switching the IME target incorrectly.

Change-Id: I7e647fb35f4ea6f2e39eb7efd911420ea9ee64fa
tils/ResourceTypes.cpp
7e5fda6ba9792ed66e104e9dd569ab7033e9f742 28-Jan-2011 Jason Sams <rjsams@android.com> am 3e232f1c: am 386ef6da: Merge "Fix another barrier bug 3333866 Atomically update put." into honeycomb

* commit '3e232f1c59eb95a7d3b5b3ea411a383b7a8f1b5b':
Fix another barrier bug 3333866 Atomically update put.
3e232f1c59eb95a7d3b5b3ea411a383b7a8f1b5b 28-Jan-2011 Jason Sams <rjsams@android.com> am 386ef6da: Merge "Fix another barrier bug 3333866 Atomically update put." into honeycomb

* commit '386ef6da5a95243b4a55b3f760621260e20a5e39':
Fix another barrier bug 3333866 Atomically update put.
386ef6da5a95243b4a55b3f760621260e20a5e39 28-Jan-2011 Jason Sams <rjsams@android.com> Merge "Fix another barrier bug 3333866 Atomically update put." into honeycomb
b7ea5ed2e5641503f7c3df4254866562963f1c5a 28-Jan-2011 Stephen Hines <srhines@google.com> am 6059c395: am 55f8f121: Merge "Correctly free resouces bound to scripts when the scripts are deleted." into honeycomb

* commit '6059c3955d739ab5fad15f9bf6bb6f743a9b5ac2':
Correctly free resouces bound to scripts when the scripts are deleted.
6059c3955d739ab5fad15f9bf6bb6f743a9b5ac2 28-Jan-2011 Stephen Hines <srhines@google.com> am 55f8f121: Merge "Correctly free resouces bound to scripts when the scripts are deleted." into honeycomb

* commit '55f8f12119ad2fbb6afcb7647a1a18f4aa86f0f5':
Correctly free resouces bound to scripts when the scripts are deleted.
38f8d9d7a17037a34f4df229b1089536a6cdc8dc 27-Jan-2011 Jason Sams <rjsams@android.com> Correctly free resouces bound to scripts when the scripts are deleted.

Change-Id: Idfcc30f1a7de0badeb6d8254ed508938d89f4070
b: 3381615
s/rsContext.cpp
s/rsFont.cpp
s/rsFont.h
s/rsScript.cpp
s/rsScriptC.cpp
s/rsScriptC.h
885153e2d08aadd6333c48c4e98bade637eadc17 28-Jan-2011 Romain Guy <romainguy@google.com> Add more debug info for profiling.

Change-Id: I0c74e2aa108142cc6ddac4577ae2d0fe6c0ddb25
wui/OpenGLDebugRenderer.cpp
wui/OpenGLDebugRenderer.h
5012a8fe423acf7417d3a64166f6bce06de747b8 28-Jan-2011 Jason Sams <rjsams@android.com> Fix another barrier bug 3333866
Atomically update put.

Change-Id: Id6d4b5c03f5562b3021561e95966a01abd293667
s/rsLocklessFifo.cpp
50f7830c55a1b23f5d8f9339987b444f4491caf7 27-Jan-2011 Mathias Agopian <mathias@google.com> am 72abf01a: Merge "Fix the ISurfaceComposer onTransact switch." into gingerbread

* commit '72abf01a8b6958ac1f86d36302a8462c4f51fd9d':
Fix the ISurfaceComposer onTransact switch.
82782446cd0ea26604fcbd22d4b7e3608f32136d 27-Jan-2011 Chet Haase <chet@google.com> am fcf51a67: am a45c056e: Merge "Fix display List bugs" into honeycomb

* commit 'fcf51a67967a402bf2178c3d0e09828e8942cade':
Fix display List bugs
fcf51a67967a402bf2178c3d0e09828e8942cade 27-Jan-2011 Chet Haase <chet@google.com> am a45c056e: Merge "Fix display List bugs" into honeycomb

* commit 'a45c056e62be0ca97edbdd6f6660822cf453c886':
Fix display List bugs
a45c056e62be0ca97edbdd6f6660822cf453c886 27-Jan-2011 Chet Haase <chet@google.com> Merge "Fix display List bugs" into honeycomb
a1eb2ff008ce1b7d9d7039718a8295113abcb81a 27-Jan-2011 Romain Guy <romainguy@google.com> am 38f34ed2: am 7c53a0d6: Merge "Don\'t draw the same triangles several times. Bug #3388197" into honeycomb

* commit '38f34ed20a52d027cbf1b72fe22c6d616810613b':
Don't draw the same triangles several times. Bug #3388197
38f34ed20a52d027cbf1b72fe22c6d616810613b 27-Jan-2011 Romain Guy <romainguy@google.com> am 7c53a0d6: Merge "Don\'t draw the same triangles several times. Bug #3388197" into honeycomb

* commit '7c53a0d6078620df3abc4997acfe267ef903f5c6':
Don't draw the same triangles several times. Bug #3388197
678e0adbdbac5fa3f25ca8371fdff1b3182f67e9 25-Jan-2011 Chet Haase <chet@google.com> Fix display List bugs

Various property setters in View need to invalidate the parent's
cache to get redrawn properly when accelerated with display lists.

Also, fix logic around display lists and old-style Animations in
ViewGroup.

Change-Id: I70e1c2fa49e62228ee4a1301a006ce50bda4c305
wui/LayerRenderer.cpp
4f09f5417b5c14fd31336dacfff86972e7885a03 27-Jan-2011 Romain Guy <romainguy@google.com> Don't draw the same triangles several times.
Bug #3388197

Change-Id: Ief1dfd9447f144e9992340a173d2893e5e049129
wui/LayerRenderer.cpp
wui/OpenGLRenderer.cpp
783d0db712bb0649f950dfc7cce1dda517584e51 27-Jan-2011 Shih-wei Liao <sliao@google.com> am 957ee34d: am b9d69d59: Merge "For rs_cl, fix _RS_STATIC (used while we do on-host linking). Now we do on-device linking, STATIC no longer makes sense. (b/2943524)" into honeycomb

* commit '957ee34d73e6b0bec91edaad57be641834855758':
For rs_cl, fix _RS_STATIC (used while we do on-host linking). Now we do on-device linking, STATIC no longer makes sense. (b/2943524)
39530e77e5f4aa2b445b0e7f33468c90d6be45bd 27-Jan-2011 Stephen Hines <srhines@google.com> Actually fix build.

Change-Id: I43cb042b0b8c8ac0f2e5fd9aee823298f9c29820
s/scriptc/rs_core.rsh
957ee34d73e6b0bec91edaad57be641834855758 27-Jan-2011 Shih-wei Liao <sliao@google.com> am b9d69d59: Merge "For rs_cl, fix _RS_STATIC (used while we do on-host linking). Now we do on-device linking, STATIC no longer makes sense. (b/2943524)" into honeycomb

* commit 'b9d69d595fa17ae87b4e615c2339df64a5df8324':
For rs_cl, fix _RS_STATIC (used while we do on-host linking). Now we do on-device linking, STATIC no longer makes sense. (b/2943524)
26e5ff8a67ec72bbee7ebc102a2535d84c5a2213 27-Jan-2011 Shih-wei Liao <sliao@google.com> For rs_cl, fix _RS_STATIC (used while we do on-host linking). Now we do
on-device linking, STATIC no longer makes sense. (b/2943524)

Change-Id: Ia35f90eb0956b1cd6c436a1482d87d82f41cedc9
s/scriptc/rs_cl.rsh
7c4a66be94b3df8c32ccd8856fe85f22089103f9 27-Jan-2011 Stephen Hines <srhines@google.com> Fix build breakage.

Change-Id: I3fc80c719e7bfa2940af9257f46694232c0162a3
s/scriptc/rs_core.rsh
88523f3757de8e5858f40b59328f977a01e0e7de 27-Jan-2011 Shih-wei Liao <sliao@google.com> am dde78c2b: am 79204b98: Merge "Part II of fixing b/2943524: On-device linking rs_core." into honeycomb

* commit 'dde78c2b1c2c2ea28b6799ac135477386ae5df93':
Part II of fixing b/2943524: On-device linking rs_core.
dde78c2b1c2c2ea28b6799ac135477386ae5df93 26-Jan-2011 Shih-wei Liao <sliao@google.com> am 79204b98: Merge "Part II of fixing b/2943524: On-device linking rs_core." into honeycomb

* commit '79204b98d260d8f5e8419f5149b31b336424aec5':
Part II of fixing b/2943524: On-device linking rs_core.
79204b98d260d8f5e8419f5149b31b336424aec5 26-Jan-2011 Shih-wei Liao <sliao@google.com> Merge "Part II of fixing b/2943524: On-device linking rs_core." into honeycomb
f5a16efcc39bd683c5d98d21f91820bcaf59045a 26-Jan-2011 Shih-wei Liao <sliao@google.com> Part II of fixing b/2943524: On-device linking rs_core.

Change-Id: I1db1f8a2c9e8afabd9961c0effca60b10c9ed4dc
s/scriptc/rs_core.rsh
6b193fed098d5856d330bb63cc1acfc3713250e8 26-Jan-2011 Stephen Hines <srhines@google.com> am 203107d4: am 8fc7690f: Merge "Hook up tgammaf properly for RS." into honeycomb

* commit '203107d4901704c33eca2e5f7e5cd967fd372bbe':
Hook up tgammaf properly for RS.
203107d4901704c33eca2e5f7e5cd967fd372bbe 26-Jan-2011 Stephen Hines <srhines@google.com> am 8fc7690f: Merge "Hook up tgammaf properly for RS." into honeycomb

* commit '8fc7690f2b42c27f9f609647b96c17234aa9d78e':
Hook up tgammaf properly for RS.
8fc7690f2b42c27f9f609647b96c17234aa9d78e 26-Jan-2011 Stephen Hines <srhines@google.com> Merge "Hook up tgammaf properly for RS." into honeycomb
cf5afe9299f6a8b7d76935d8efabe36c2423cc27 26-Jan-2011 Romain Guy <romainguy@google.com> am 08cdf6fd: am 940df6dd: Merge "Remove unused API" into honeycomb

* commit '08cdf6fd9ac9bbbd77024518c45034d66b5830c6':
Remove unused API
08cdf6fd9ac9bbbd77024518c45034d66b5830c6 26-Jan-2011 Romain Guy <romainguy@google.com> am 940df6dd: Merge "Remove unused API" into honeycomb

* commit '940df6dd83624e5f46b147837d848853a1dab9b2':
Remove unused API
940df6dd83624e5f46b147837d848853a1dab9b2 26-Jan-2011 Romain Guy <romainguy@google.com> Merge "Remove unused API" into honeycomb
2b1847ea60650a9f68372abe860415f18b55081d 26-Jan-2011 Romain Guy <romainguy@google.com> Remove unused API

Change-Id: I1714fd82a64b752f0350ef4ef9179ce19e089c6a
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
d6a5b40cc787c1d516e3452dc4dcdb5f5c60676c 26-Jan-2011 Stephen Hines <srhines@google.com> Hook up tgammaf properly for RS.

Change-Id: I9b489cbfe49b3c01028f23c1123bc272e100c60e
b: 3370708, 2933146
s/rsScriptC_LibCL.cpp
83af70126f2408b3ec835a20a745502789458c7a 26-Jan-2011 Jason Sams <rjsams@android.com> am e0fc4b70: Merge "DO NOT MERGE Remove the rs_quaternion functions until mr1" into honeycomb

* commit 'e0fc4b70f812cef4c8850be91b008e75b28757f3':
DO NOT MERGE Remove the rs_quaternion functions until mr1
2e42038d4efe9b859fc536c7e5283b9a0e2e17dd 26-Jan-2011 Jason Sams <rjsams@android.com> am e361ca64: Merge "Migrating functions for on device linking." into honeycomb

* commit 'e361ca6428e137410ab828f5dee6148b8bdc29b3':
Migrating functions for on device linking.
e0fc4b70f812cef4c8850be91b008e75b28757f3 26-Jan-2011 Jason Sams <rjsams@android.com> Merge "DO NOT MERGE Remove the rs_quaternion functions until mr1" into honeycomb
e361ca6428e137410ab828f5dee6148b8bdc29b3 26-Jan-2011 Jason Sams <rjsams@android.com> Merge "Migrating functions for on device linking." into honeycomb
ca11318ac0c3f2553f2b4e033c68157240e9511d 26-Jan-2011 Jason Sams <rjsams@android.com> DO NOT MERGE
Remove the rs_quaternion functions until mr1

Change-Id: I1c48624a308ce6f5c4a13215170f34c810b4cf00
s/scriptc/rs_core.rsh
969b3ae440d9bef1a7a0f3c642ac9c81b37e2c32 26-Jan-2011 Shih-wei Liao <sliao@google.com> am 39740e1e: Merge "Fix b/2943524: On-device linking the rs_cl." into honeycomb

* commit '39740e1e96baa9db399ef2bdc236974b3ae049af':
Fix b/2943524: On-device linking the rs_cl.
2fd2c894e9d16c4833a3356d5ecc3a6790a975a0 26-Jan-2011 Shih-wei Liao <sliao@google.com> Fix b/2943524: On-device linking the rs_cl.

Change-Id: I1b1e76ec94a26e0bc86d997d2584c8a015c57de1
s/scriptc/rs_cl.rsh
5742a2771025fc40f00777b5b4aa02765317f5f9 26-Jan-2011 Romain Guy <romainguy@google.com> am b6110a1e: Merge "Make sure the opaque bitmap is opaque. GL doesn\'t like being lied to. Bug #3382992" into honeycomb

* commit 'b6110a1ef41337a5f3042c7e08b63274cee4faf6':
Make sure the opaque bitmap is opaque. GL doesn't like being lied to. Bug #3382992
f90f8171e6acb56f9f87093c01fd586f2140697a 26-Jan-2011 Romain Guy <romainguy@google.com> Make sure the opaque bitmap is opaque. GL doesn't like being lied to.
Bug #3382992

The result still looks wrong but it works as designed, unfortunately.

Change-Id: I6108e199fa336cb01faaabf6c75faa3b71c2339b
wui/OpenGLRenderer.cpp
2d9299b39d4802a68bfd083a06de347bf1c0721d 26-Jan-2011 Ritu Srivastava <rsrivast@sta.samsung.com> fix failing thread object run

A previously exited Thread object refuses to run again, if the
thread-id of the caller, conincides with the thread-id it previously
used in the worker thread. Hence reset the previously used worker
thread-id to -1 when it exits.

Signed-off-by: Ritu Srivastava <rsrivast@sta.samsung.com>

Change-Id: I873925c312a43ec8a16392b98cc959042ff6bfd2

Signed-off-by: Madan Ankapura <mankapur@sta.samsung.com>
tils/Threads.cpp
1afbf54dd15d9dc412c8ddcba6bc6822ec779337 26-Jan-2011 Jason Sams <rjsams@android.com> Migrating functions for on device linking.

Change-Id: I41dc1551ada53370f2b06c49cc76089b1e72ac5b
s/rsScriptC_Lib.cpp
s/scriptc/rs_core.rsh
df8368925acd4593a309e06548d7f900bf8d94df 25-Jan-2011 Mathias Agopian <mathias@google.com> am 239fd805: Merge "fix [3361121] hang in glClear() - device unresponsive, OTA fails (DO NOT MERGE)" into gingerbread

* commit '239fd805ef7c0e4116b0a89e20caaf287e91f017':
fix [3361121] hang in glClear() - device unresponsive, OTA fails (DO NOT MERGE)
af4fa5d83d70a9af9ede67c47eae72d1db0d6d74 25-Jan-2011 Mathias Agopian <mathias@google.com> am 1955a5c9: Merge "partially fix [3306150] HTML5 video with H/W acceleration blackout (DO NOT MERGE)" into gingerbread

* commit '1955a5c9da421dc89bb1a1dd3d3193159192cde9':
partially fix [3306150] HTML5 video with H/W acceleration blackout (DO NOT MERGE)
88bccab35c81907db09be3f511a2c1fd379a75b4 25-Jan-2011 Mathias Agopian <mathias@google.com> am d3fcd0a1: Merge "minor clean-up. SurfaceFlinger doesn\'t need libpixelflinger.so. (DO NOT MERGE)" into gingerbread

* commit 'd3fcd0a1c923498921107bb44fbc8b24582a170a':
minor clean-up. SurfaceFlinger doesn't need libpixelflinger.so. (DO NOT MERGE)
21956040a77808909ebda426fbd3cce6c8ed059f 19-Jan-2011 Mathias Agopian <mathias@google.com> fix [3361121] hang in glClear() - device unresponsive, OTA fails (DO NOT MERGE)

Generally we never want to lock a buffer for write access if it is at
the "head" on the surfaceflinger side. The only exception (1) is when
the buffer is not currently in use AND there is at least one queued
buffer -- in which case, SurfaceFlinger will never use said buffer
anymore, because on the next composition around, it will be able to
retire the first queued buffer.

The logic above relies on SurfaceFlinger always retiring
and locking a buffer before composition -- unfortunately this
didn't happen during a screenshot.

This could leave us in a situation where a buffer is locked by the
application for write, and used by SurfaceFlinger for texturing,
causing a hang.

Here, we fix this issue by never assuming the exception (1), it was
intended as an optimization allowing ANativeWindow::lockBuffer() to
return sooner and was justified when most of SF composition was
done in software. The actual buffer locking is now ensured by
gralloc. We could have handled screenshots in a similar way to
a regular composition, but it could have caused glitches on screen,
essentially, taking a screenshot could cause to skip a frame.

now that we removed the notion of a "inUse" buffer in surfaceflinger
a lot of code can be simplified / removed.

noteworthy, the whole concept of "unlockClient" wrt. "compositionComplete"
is also gone.
urfaceflinger_client/SharedBufferStack.cpp
68d3478860fecc9b8fbf256796a832a037434555 15-Jan-2011 Mathias Agopian <mathias@google.com> partially fix [3306150] HTML5 video with H/W acceleration blackout (DO NOT MERGE)

We used to guarantee that a layer in SurfaceFlinger would never be
destroyed before all references (to its ISurface) on the client
side would be released. At some point, this guarantee got
relaxed to allow to free gralloc resources sooner. This last
change was incorrect, because:
- in implementations with reference-counting the gralloc resources
wouldn't be released anyways, until all the mapping were gone
- in implementations without ref counting, the client side
would most likely crash or do something bad
- it also caused the SharedBufferStack slot to be reallocated
to another surface, which could be problematic if the client
continued to use the surface after the window manager destroyed it.

So, we essentially reinstate the guarantee that layers won't be
destroyed until after all references to their ISurface are
released.

NOTE: This doesn't entirely fix 3306150 because there is another
problem there where the Browser continues to use a surface after it
has been destroyed.

also improve SurfaceFlinger 'dumpsys' log

list the purgatory, which shows windows that have been closed,
but for which the client still has references.
i/GraphicBufferAllocator.cpp
728d849fc92bbf9b3bfd8c3903344ff58f3d5d06 14-Dec-2010 Mathias Agopian <mathias@google.com> minor clean-up. SurfaceFlinger doesn't need libpixelflinger.so. (DO NOT MERGE)

Change-Id: I1ddbbbec4fa5b2521ef3787bc28efe1bc90d0060
urfaceflinger_client/Surface.cpp
8699aa3a2f097cbb3eaf9019645da474e87355e3 25-Jan-2011 Romain Guy <romainguy@google.com> am 2bd78c9a: Merge "Remove debugging log left by mistake." into honeycomb

* commit '2bd78c9a9b15d1c5c06d838c1fca77d9748e1c41':
Remove debugging log left by mistake.
2bd78c9a9b15d1c5c06d838c1fca77d9748e1c41 25-Jan-2011 Romain Guy <romainguy@google.com> Merge "Remove debugging log left by mistake." into honeycomb
8d2959ddffcdee8b0c2f6387f2e2772c6df474ae 25-Jan-2011 Romain Guy <romainguy@google.com> Remove debugging log left by mistake.

Change-Id: I7d5165b4b682714940cea9886abeedd3f4858057
wui/OpenGLRenderer.cpp
0ac304642629af714aa970c94b712deaa598c26d 25-Jan-2011 Jason Sams <rjsams@android.com> am 03855bbe: Fix bug 3385881 Launch signals and threads are not always matched in index. Threads grab launch indexes as they start which may not be the order in which they were launched.

* commit '03855bbe4a55668d6834514f83f8c2276e9dc594':
Fix bug 3385881 Launch signals and threads are not always matched in index. Threads grab launch indexes as they start which may not be the order in which they were launched.
03855bbe4a55668d6834514f83f8c2276e9dc594 25-Jan-2011 Jason Sams <rjsams@android.com> Fix bug 3385881
Launch signals and threads are not always
matched in index. Threads grab launch indexes
as they start which may not be the order in which
they were launched.

Change-Id: I1ff42c3df5d7ebb46de6329ebd11ef67a5fc58ca
s/rsContext.cpp
cf20b3aec1a45e82a28ecd56f19c48c67fe431dd 25-Jan-2011 Jason Sams <rjsams@android.com> am 887a834c: Merge "Attempt to fix 3333866 Missing memory barrier when the non-locking past path is hit." into honeycomb

* commit '887a834c4737bed055bacbc91cc0dd42bd25546c':
Attempt to fix 3333866 Missing memory barrier when the non-locking past path is hit.
887a834c4737bed055bacbc91cc0dd42bd25546c 25-Jan-2011 Jason Sams <rjsams@android.com> Merge "Attempt to fix 3333866 Missing memory barrier when the non-locking past path is hit." into honeycomb
50dc05e5add412b216ecd35b94f4f21decf98d44 25-Jan-2011 Romain Guy <romainguy@google.com> am c6a0944c: Merge "Fix display list support for shapes." into honeycomb

* commit 'c6a0944c80b3a9bcea00ce9b5d3a605eaadabb49':
Fix display list support for shapes.
82d41a515368236e56454bd84023bebd6306f6b7 25-Jan-2011 Romain Guy <romainguy@google.com> Fix display list support for shapes.

Change-Id: I8b4c9e9ec36266a83c0a53ba3fb6e45d61bbd6d9
wui/DisplayListRenderer.cpp
7b4950ae350255a393125cc4262925b432770ac4 25-Jan-2011 Romain Guy <romainguy@google.com> am 169fafe6: Merge "Fix rendering issues with animated layers. Bug #3385247" into honeycomb

* commit '169fafe6797dc4c7ae17eba29b72034be6c9c8ec':
Fix rendering issues with animated layers. Bug #3385247
8168396d1acbcb5fdd29eeda4c30b2803d5283ae 25-Jan-2011 Romain Guy <romainguy@google.com> Fix rendering issues with animated layers.
Bug #3385247

- The layer's alpha was interpreted in the wrong range 0..255 instead of 0..1
- 9-patches would not correctly dirty the layer region, the generated mesh
was incorrect

Change-Id: I4916249bedcdb0794929f3796bd17854971efc88
wui/OpenGLRenderer.cpp
4e1db6dadd404c023b71ae1ab54e990fce56abc3 25-Jan-2011 Romain Guy <romainguy@google.com> am 2ff6d705: Merge "Enable partial invalidates when rendering with OpenGL." into honeycomb

* commit '2ff6d70521fe1f537f8ebd631f0b9b3aa8becf94':
Enable partial invalidates when rendering with OpenGL.
2ff6d70521fe1f537f8ebd631f0b9b3aa8becf94 25-Jan-2011 Romain Guy <romainguy@google.com> Merge "Enable partial invalidates when rendering with OpenGL." into honeycomb
7d7b5490a0b0763e831b31bc11f17d8159b5914a 25-Jan-2011 Romain Guy <romainguy@google.com> Enable partial invalidates when rendering with OpenGL.

Change-Id: Ie8be06c4776b815e8737753eb8003b4fd8936130
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/LayerRenderer.cpp
wui/LayerRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
fcecc244a7f5a8c744e778970b1722a70472349b 25-Jan-2011 Jason Sams <rjsams@android.com> Attempt to fix 3333866
Missing memory barrier when the non-locking past
path is hit.

Change-Id: I80db7df547c1ce35ed85ba117519b12679cc42ef
s/rsLocklessFifo.cpp
45a8835203e165b0fe56ece5f62ee9e2b83a7a37 25-Jan-2011 Jason Sams <rjsams@android.com> am a4967fac: Merge "Cleanup script init to fix bogus log printing and reduce memory churn." into honeycomb

* commit 'a4967facf4b496fbc39adeb240182dad6c7dad6a':
Cleanup script init to fix bogus log printing and reduce memory churn.
a4967facf4b496fbc39adeb240182dad6c7dad6a 25-Jan-2011 Jason Sams <rjsams@android.com> Merge "Cleanup script init to fix bogus log printing and reduce memory churn." into honeycomb
f2401bddcd68f796ff03610cade9ffbb46fde800 25-Jan-2011 Stephen Hines <srhines@google.com> am 3dd0908a: Merge "Add missing functions to math library." into honeycomb

* commit '3dd0908a65095cb6946001ae3039ab87a47b4f33':
Add missing functions to math library.
7e893e1ddfbca2e46c5af1be2e431ec2edb3fbd0 24-Jan-2011 Stephen Hines <srhines@google.com> Add missing functions to math library.

This also updates the math test suite to exercise all the basic operator
functions (except __udivsi3 which may not be 100% necessary). There is also a
small fix for rsQuaternionMultiply().

Change-Id: Id157e6d5ebe2e20c17e8ea7b13ffaa74c241838c
b: 3203577
s/java/tests/src/com/android/rs/test/math.rs
s/rsScriptC_Lib.cpp
s/scriptc/rs_core.rsh
2acb67ec9fe34316231519373f59dfb76c03d57b 24-Jan-2011 Chet Haase <chet@google.com> am 67005b05: Merge "Use optimized display lists for all hwaccelerated rendering" into honeycomb

* commit '67005b05cc76a38a5b3bf6e83957dd03619e9126':
Use optimized display lists for all hwaccelerated rendering
daf98e941e140e8739458126640183b9f296a2ab 10-Jan-2011 Chet Haase <chet@google.com> Use optimized display lists for all hwaccelerated rendering

Previously, display lists were used only if hardware acceleration
was enabled for an application (hardwareAccelerated=true) *and* if
setDrawingCacheEnabled(true) was called. This change makes the framework
use display lists for all views in an application if hardware acceleration
is enabled.

In addition, display list renderering has been optimized so that
any view's recreation of its own display list (which is necessary whenever
the visuals of that view change) will not cause any other display list
in its parent hierarchy to change. Instead, when there are any visual
changes in the hierarchy, only those views which need to have new
display list content will recreate their display lists.

This optimization works by caching display list references in each
parent display list (so the container of some child will refer to its
child's display list by a reference to the child's display list). Then when
a view needs to recreate its display list, it will do so inside the same
display list object. This will cause the content to get refreshed, but not
the reference to that content. Then when the view hierarchy is redrawn,
it will automatically pick up the new content from the old reference.

This optimization will not necessarily improve performance when applications
need to update the entire view hierarchy or redraw the entire screen, but it does
show significant improvements when redrawing only a portion of the screen,
especially when the regions that are not refreshed are complex and time-
consuming to redraw.

Change-Id: I68d21cac6a224a05703070ec85253220cb001eb4
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLDebugRenderer.cpp
wui/OpenGLDebugRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
c55de66ad20c7834b04d605e8704dd2a0e3d23fa 24-Jan-2011 Jason Sams <rjsams@android.com> Cleanup script init to fix bogus log printing and
reduce memory churn.

Change-Id: I0bf5392102e3d59fea81f5f9f832887113602b7f
s/rsContext.cpp
s/rsScriptC.cpp
s/rsScriptC.h
65cd377a9f843e8baf9f12b94ef0b6dcda3beeac 24-Jan-2011 Romain Guy <romainguy@google.com> am 60c06092: Merge "Fix bitmap meshes to work in display lists." into honeycomb

* commit '60c060929f41447c5ac3a75c1cd6cfb60b139200':
Fix bitmap meshes to work in display lists.
a566b7c3aada08d37cf08096c972e3e641bed773 24-Jan-2011 Romain Guy <romainguy@google.com> Fix bitmap meshes to work in display lists.

Change-Id: Ie226d049840942d9ad9cf58e0c19132f49d62a75
wui/DisplayListRenderer.cpp
wui/OpenGLRenderer.cpp
8b2f5267f16c295f12faab810527cd6311997e34 24-Jan-2011 Romain Guy <romainguy@google.com> Add support for arcs.

Change-Id: I96c057ff4eb1b464b03f132da0b85333777bee4f
wui/Caches.h
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/ShapeCache.cpp
wui/ShapeCache.h
ff42d952ebb1d5393951f1644ee3d1b9e0fbc9e5 24-Jan-2011 Romain Guy <romainguy@google.com> am 502d41d8: Merge "Add support for arcs." into honeycomb

* commit '502d41d85958fb729a17e0651e80134e1c41c621':
Add support for arcs.
22fdb6f3e94f88687a2f624124ef678282588b75 23-Jan-2011 Romain Guy <romainguy@google.com> am d182046e: Merge "Add support for ovals and stroked rectangles." into honeycomb

* commit 'd182046ee67c1196e52b74dc9f3f89dcb816785d':
Add support for ovals and stroked rectangles.
c1cd9ba335b293f11e1082447ef08e474710a05f 23-Jan-2011 Romain Guy <romainguy@google.com> Add support for ovals and stroked rectangles.

Change-Id: I1292e241386763c82e6622c8f7ed90b0f5b7bd4f
wui/Caches.h
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/ShapeCache.cpp
wui/ShapeCache.h
f6834478b379856d3e5de92ddce7de0e6ba9fa4a 23-Jan-2011 Romain Guy <romainguy@google.com> Always render text underline extra.
Bug #3381287

Change-Id: Ibfbc9c51c8dccef216daccc37d835e5dbf143a6a
wui/OpenGLRenderer.cpp
wui/TextureCache.cpp
73fafb382b9e44cac2e6a6649cd37a7dcb0c6de9 23-Jan-2011 Romain Guy <romainguy@google.com> am f6834478: Always render text underline extra. Bug #3381287

* commit 'f6834478b379856d3e5de92ddce7de0e6ba9fa4a':
Always render text underline extra. Bug #3381287
1b58fcf73af4ee1e9f0f2ffa091be0f48ba6f109 23-Jan-2011 Romain Guy <romainguy@google.com> am 60559631: Merge "Collapse sucessive calls to restoreToCount() in display lists." into honeycomb

* commit '6055963155450dff2c287d5568a5c4390d796f3a':
Collapse sucessive calls to restoreToCount() in display lists.
27454a42de8b3c54cdd3b2b2a12446c2c10c8cb9 23-Jan-2011 Romain Guy <romainguy@google.com> Collapse sucessive calls to restoreToCount() in display lists.

Change-Id: Icb3d3dc2c579436d375269a9cb0b821a931c5a79
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
f632765e0c8107470278f4c23082a299cc09aad9 23-Jan-2011 Romain Guy <romainguy@google.com> am 4cf6e2f3: Fix potential crash in display lists.

* commit '4cf6e2f34994f160e1baba205a43c12784dd3e0d':
Fix potential crash in display lists.
4cf6e2f34994f160e1baba205a43c12784dd3e0d 23-Jan-2011 Romain Guy <romainguy@google.com> Fix potential crash in display lists.

Change-Id: I868821cbe69f7e71d93701b9cdb528a2ef796cd4
wui/DisplayListRenderer.cpp
c3563eb9e75e0b9ae130ec22d5c6c6b1561d783b 23-Jan-2011 Jeff Brown <jeffbrown@android.com> am 265cf2e7: Merge "Fix getSwitchState."

* commit '265cf2e76bef9ee369a7d43d567a22a0c39355ef':
Fix getSwitchState.
8b9a5ad9d552ce23d489dc5d47ef986dbe45f4bf 22-Jan-2011 Romain Guy <romainguy@google.com> am b2ee64ed: Merge "Fix regression with hardware layers." into honeycomb

* commit 'b2ee64edffe3dfe7316baa435566f777e657d9a0':
Fix regression with hardware layers.
c88e357d1ed9dadfc0efb3dfbe92f24460674ef5 22-Jan-2011 Romain Guy <romainguy@google.com> Fix regression with hardware layers.

The renderer was checking whether the layer's region is a rect to
draw it with a simple quad. This test was done against the layer's
region structure, which was cleared after generating the mesh.
Unfortunately Region::isRect() returns true when the region is
empty, which was causing the renderer to always use a quad to
draw a mesh on screen.

Change-Id: If4b874579ee0cedcb67367c9efa5c0c98ca55231
wui/LayerRenderer.cpp
wui/OpenGLRenderer.cpp
a8fe99235184c3902954f3f21e153f27802b0f90 22-Jan-2011 Romain Guy <romainguy@google.com> am acf36126: Merge "Log only 1 line per process when using OpenGLRenderer." into honeycomb

* commit 'acf36126e4620a0cc36d4e5b1268d15777ea4361':
Log only 1 line per process when using OpenGLRenderer.
acf36126e4620a0cc36d4e5b1268d15777ea4361 22-Jan-2011 Romain Guy <romainguy@google.com> Merge "Log only 1 line per process when using OpenGLRenderer." into honeycomb
c9855a53edfac818dc68714557185977556f849d 22-Jan-2011 Romain Guy <romainguy@google.com> Log only 1 line per process when using OpenGLRenderer.

Change-Id: Idbdd6b84f31301e58ed53e0d50fd61fece192dfa
wui/Caches.h
wui/Debug.h
wui/FboCache.cpp
wui/FontRenderer.cpp
wui/GammaFontRenderer.cpp
wui/GradientCache.cpp
wui/LayerCache.cpp
wui/ShapeCache.h
wui/TextDropShadowCache.cpp
wui/TextureCache.cpp
90b1207b6c5fdff4ea1504a7f84b81ed0ab4daa2 21-Jan-2011 Mathias Agopian <mathias@google.com> am 4707dc73: am 72abf01a: Merge "Fix the ISurfaceComposer onTransact switch." into gingerbread

* commit '4707dc73e236b7055644401b73cd30164b7ad157':
Fix the ISurfaceComposer onTransact switch.
f1f710538e4d6388611145e66afc9dd934fa97cc 21-Jan-2011 Shih-wei Liao <sliao@google.com> Merge "Handle fatal errors from calling bccRegisterSymbolCallback (if any)." into honeycomb
99d49118b857df4051a864b35254e275bc8a68b6 21-Jan-2011 Romain Guy <romainguy@google.com> Merge "Add support for drawBitmapMesh()." into honeycomb
5a7b466a2b4b7ced739bd5c31e022de61650545a 21-Jan-2011 Romain Guy <romainguy@google.com> Add support for drawBitmapMesh().

Change-Id: Ic77f9c534bb90dc7b9458299544bd50b8b6ae6a5
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
040d7d8ce765b1ee69cf6531181b2a33e9e83537 20-Jan-2011 Shih-wei Liao <sliao@google.com> Handle fatal errors from calling bccRegisterSymbolCallback (if any).

Change-Id: I53f35b6efd26abc1e8559f6f1e37abb55a1df7db
s/rsScriptC.cpp
a423d868009b9961597365ce7f190aef23f4b1cc 20-Jan-2011 Mathias Agopian <mathias@google.com> Merge "clean-up unneeded code" into honeycomb
2e0f0bb3fe63c51fa3154f8ed17bfaf611edbf5d 20-Jan-2011 Stephen Hines <srhines@google.com> Merge "Remove unnecessary library functions." into honeycomb
1d4549ab0312319a79fb37068a3fc63bbb0a3adc 20-Jan-2011 Mathias Agopian <mathias@google.com> clean-up unneeded code

now that we removed the notion of a "inUse" buffer in surfaceflinger
a lot of code can be simplified / removed.

noteworthy, the whole concept of "unlockClient" wrt. "compositionComplete"
is also gone.

Change-Id: I210413d4c8c0998dae05c8620ebfc895d3e6233d
urfaceflinger_client/SharedBufferStack.cpp
a16a98145347187e9e92f400e72345354b4cbccf 20-Jan-2011 Stephen Hines <srhines@google.com> Remove unnecessary library functions.

Change-Id: I47fadb2b9e8b9e9ef5f139470366ce43c75fadbb
s/java/tests/src/com/android/rs/test/math.rs
s/rsScriptC_LibCL.cpp
s/scriptc/rs_cl.rsh
ff26a0c1c905dc1ec53b1bab860b80f2976d59be 20-Jan-2011 Romain Guy <romainguy@google.com> Remove unnecessary code.

Change-Id: I83eba3406c26a4028af08b4d4c95ecd02803e75a
wui/Caches.h
wui/Debug.h
wui/PathCache.cpp
wui/PathCache.h
wui/ShapeCache.cpp
wui/ShapeCache.h
ed8f8dd8cf621d6046db7e083f8a36205ed55609 20-Jan-2011 Romain Guy <romainguy@google.com> Merge "Add rounded rects and circles support to OpenGLRenderer." into honeycomb
01d58e43ede5ca98cbebdd166f9b0c545032c01b 20-Jan-2011 Romain Guy <romainguy@google.com> Add rounded rects and circles support to OpenGLRenderer.

Change-Id: I6cedf2b495d58de7c0437096809fa9e4518a1b8c
wui/Android.mk
wui/Caches.cpp
wui/Caches.h
wui/Debug.h
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Properties.h
wui/ShapeCache.cpp
wui/ShapeCache.h
3d822cda1e46c5e928152e4d4f7d9d47676bb5e4 20-Jan-2011 Jeff Brown <jeffbrown@android.com> Fix getSwitchState.

InputReader::getSwitchState always returns AKEY_STATE_UNKNOWN
because SwitchInputMapper::getSources() returns 0 which cannot
match any source mask including AINPUT_SOURCE_ANY. As a result
initial lid switch detection is broken.

This change adds a new source constant AINPUT_SOURCE_SWITCH
that indicates that the source has switches.

Change-Id: I5321ecf0ce84f1c2b4535f6c163d3f4dcf9b7a9b
i/InputReader.cpp
i/tests/InputReader_test.cpp
baf9af94a679f7e4b2273bce6c8f4645ef68015a 20-Jan-2011 Mathias Agopian <mathias@google.com> Merge "Use EGL_NATIVE_VISUAL_ID to select EGLConfig" into honeycomb
81ae965133556f2cd297a9695dc9aec095bd2aff 17-Jan-2011 Mathias Agopian <mathias@google.com> Use EGL_NATIVE_VISUAL_ID to select EGLConfig

EGLUtils::selectConfigForPixelFormat() now uses EGL_NATIVE_VISUAL_ID
to select a config with the proper format. this is more robust and
future proof.

Change-Id: I7245d904adab1e339f062b9b498ddd9324cfe7a4
i/EGLUtils.cpp
a82bcf6a55d89017207ac2e47c21166652dca11f 20-Jan-2011 Jason Sams <rjsams@android.com> Merge "Remove some old logging code." into honeycomb
89f8b1e09373634502e69109a12a37aa6a1e22e7 20-Jan-2011 Jason Sams <rjsams@android.com> Remove some old logging code.

Change-Id: Ide5d91aadbc9f5b475da38762bc350ac237347d1
s/rsContext.cpp
eb60932a199b5702c36bee760e2f69565a4f3f2e 20-Jan-2011 Stephen Hines <srhines@google.com> Merge "Clean up RS math fp library functions." into honeycomb
8bb9131c663b5c4548eed1d9f964d06bccfc4da6 20-Jan-2011 Mathias Agopian <mathias@google.com> Merge "fix [3367893] Rotating device on YouTube's home screen several times kills system_server" into honeycomb
578b7a2265555655a8a70e8a2d621e906c9c9be0 20-Jan-2011 Mathias Agopian <mathias@google.com> fix [3367893] Rotating device on YouTube's home screen several times kills system_server

A typo in RS tear down cause caused eglMakeCurrent to fail. Additionnaly,
EGLSurfaces where not destroyed explicitely.
Everything worked properly when only one RS context was used, as
eglTerminate() would clean-up everything.

however in the present case, there seem to be more than one RS context
and eglTerminate() is not called.

Change-Id: I37a10945b9c0a85c4f7abad1c4f4c24bc0daa0a5
s/rsContext.cpp
1368436e428e2af1241bf88cb0688f288f96da1c 20-Jan-2011 Jason Sams <rjsams@android.com> Merge "Check and propogate errors from llvm." into honeycomb
833166d274030bfd90653626f0e9f5bf710f7d4b 19-Jan-2011 Stephen Hines <srhines@google.com> Clean up RS math fp library functions.

Change-Id: Ibe87b06a7f40a3889d63310641359d98bdff066c
s/java/tests/src/com/android/rs/test/fp_mad.rs
s/java/tests/src/com/android/rs/test/math.rs
s/rsScriptC_LibCL.cpp
s/scriptc/rs_cl.rsh
0fb9c5dcc76af44a1f6e3c9243d03a0a222ad2bb 20-Jan-2011 Mathias Agopian <mathias@google.com> Merge "improve SurfaceFlinger 'dumpsys' log" into honeycomb
06a61e2fa830fcd66c12741a52cc5d9b4b214f94 20-Jan-2011 Mathias Agopian <mathias@google.com> improve SurfaceFlinger 'dumpsys' log

list the purgatory, which shows windows that have been closed,
but for which the client still has references.

Change-Id: I5168bb88cb328d5d77d71d0871deb9190f493126
i/GraphicBufferAllocator.cpp
fdc54a97ee588bbd6c981a5708050fd97f01baec 20-Jan-2011 Jason Sams <rjsams@android.com> Check and propogate errors from llvm.

Change-Id: Id99a724f746d1f64eabcdf67c12646cc32ff8f9d
s/rsScriptC.cpp
s/rsScriptC.h
514fb18827186591d66973c2362c859b64b63556 19-Jan-2011 Romain Guy <romainguy@google.com> Don't attempt to create empty layers.
Bug #3369888

Change-Id: Ic17bbd1c04bbf760cb17d0eb9e6767fd6479948c
wui/FontRenderer.cpp
wui/OpenGLRenderer.cpp
9335f5b2fde244614184f45d29cc574d1ba8cbba 19-Jan-2011 Romain Guy <romainguy@google.com> Merge "Make embedded hardware layers work. Bug #3369474" into honeycomb
42f3a4b7c35dd1ea1922356eb3611af8cde05179 19-Jan-2011 Romain Guy <romainguy@google.com> Make embedded hardware layers work.
Bug #3369474

Change-Id: Ib6d7fb44eedda9dc2933b5e1b176f307968af91d
wui/LayerRenderer.cpp
wui/LayerRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
9f7e83b4062beba5b3ce7d3693505ec082f7d3f6 19-Jan-2011 Shih-wei Liao <sliao@google.com> Merge "c99 bool support" into honeycomb
cbcced2d15696ef85dc3a8db3e71e9c1a53d4f5f 19-Jan-2011 Shih-wei Liao <sliao@google.com> c99 bool support

Change-Id: I0990425a9362d3ef6ea0b40bf6f00fcc10eed426
s/scriptc/rs_types.rsh
a3311ed7a9ddd7ecb066f4731ce4bc3bd3ffd939 19-Jan-2011 Romain Guy <romainguy@google.com> Fix the fix for 9patches.

Change-Id: I66dca835d9d0e9766d887746c3265e4b13ae688b
wui/Patch.cpp
34829553a803d37ae3555579f4aa130e652644d9 19-Jan-2011 Romain Guy <romainguy@google.com> Merge "Fix the fix for 9patches." into honeycomb
48d1432e2762471f77ac03c6c639a17e2dde4467 19-Jan-2011 Mathias Agopian <mathias@google.com> am a0bafb47: Merge "Use EGL_NATIVE_VISUAL_ID to select EGLConfig" into gingerbread

* commit 'a0bafb471385767f7c9c91efe7fd828b069b2e97':
Use EGL_NATIVE_VISUAL_ID to select EGLConfig
a0bafb471385767f7c9c91efe7fd828b069b2e97 19-Jan-2011 Mathias Agopian <mathias@google.com> Merge "Use EGL_NATIVE_VISUAL_ID to select EGLConfig" into gingerbread
fdbec3e4828f93bfa5cde758ad0e77b89c5c2ecd 19-Jan-2011 Romain Guy <romainguy@google.com> Fix 9patches in Launcher

Change-Id: Ieedf36ccaab253909b44ed8c222d523867f095be
wui/Patch.cpp
49903d265be787885619e017edcc42604005f6b0 19-Jan-2011 Romain Guy <romainguy@google.com> Merge "Fix 9patches in Launcher" into honeycomb
1ad9612e9928728d0938c013f11374157fb31fed 19-Jan-2011 Shih-wei Liao <sliao@google.com> 1. fp_mad.rs: Pass C99 check.
2. Include C99 header (Will be fixed later at build.git.)

Change-Id: I2864e081b2635dfc4fc0c85f746f6d0ce0b01af5
s/java/tests/src/com/android/rs/test/fp_mad.rs
s/rsScriptC.cpp
s/scriptc/rs_cl.rsh
s/scriptc/rs_types.rsh
cbb7279e7b370c967932885f4fc53e4bc8d592ad 19-Jan-2011 Shih-wei Liao <sliao@google.com> Fix the build.

Change-Id: I23c4146cb19540351c33b5823df25d6e2b204402
s/rsScriptC.cpp
688de88b65cdafc62a82a4eb2ff182fd320a0e51 19-Jan-2011 Stephen Hines <srhines@google.com> Fix bug in modf library function (plus typos).

Change-Id: I643c905e2e3e2dcf7a61f1d027b749d9a0d6e542
s/java/tests/src/com/android/rs/test/RSTestCore.java
s/java/tests/src/com/android/rs/test/UT_math.java
s/java/tests/src/com/android/rs/test/math.rs
s/rsScriptC_LibCL.cpp
s/scriptc/rs_cl.rsh
e70b445d2fb128b831b84408f0c9f2b499918ced 19-Jan-2011 Jason Sams <rjsams@android.com> Merge "Correctly log debugging info as debug." into honeycomb
bf2afed1f2aa2d6cedf36e7150d209a8c88c737f 19-Jan-2011 Jason Sams <rjsams@android.com> Correctly log debugging info as debug.

Change-Id: I1169e015288d7d91b7ecbdd991e815152740e68d
s/rsScriptC_Lib.cpp
e6a97e27bcc1b8320fbe09d7827aec8050ebef01 19-Jan-2011 Jason Sams <rjsams@android.com> Merge "Fix race condition between GC thread and the teardown of RS. The RS context was going away while the objects were being deleted within the finializer." into honeycomb
d1ac98149737299513da1357e36f68cbb6d74425 19-Jan-2011 Jason Sams <rjsams@android.com> Fix race condition between GC thread and
the teardown of RS. The RS context was going away while
the objects were being deleted within the finializer.

Add more debugging for playCoreCommands.

Change-Id: I391f0b4db948f43f54017b47b062ab47d6a1ef64
s/rsLocklessFifo.cpp
s/rsLocklessFifo.h
s/rsThreadIO.cpp
66934423c8d398b7d0661bba6dba0ddcab2352e3 19-Jan-2011 Stephen Hines <srhines@google.com> Merge "Provide mechanism to switch between extern/static." into honeycomb
793786c25878f1324b9cb44c47050c180ad68693 19-Jan-2011 Stephen Hines <srhines@google.com> Provide mechanism to switch between extern/static.

Change-Id: I59b1b45cc335278f92b68581594ca68115b9a590
s/scriptc/rs_cl.rsh
s/scriptc/rs_core.rsh
fc14d42b75d25b5062613333331839c895621f3b 19-Jan-2011 Mathias Agopian <mathias@google.com> Merge "fix [3361121] hang in glClear() - device unresponsive, OTA fails" into honeycomb
2e102a05ca24c15921795d3bc320ade8353319bb 19-Jan-2011 Mathias Agopian <mathias@google.com> fix [3361121] hang in glClear() - device unresponsive, OTA fails

Generally we never want to lock a buffer for write access if it is at
the "head" on the surfaceflinger side. The only exception (1) is when
the buffer is not currently in use AND there is at least one queued
buffer -- in which case, SurfaceFlinger will never use said buffer
anymore, because on the next composition around, it will be able to
retire the first queued buffer.

The logic above relies on SurfaceFlinger always retiring
and locking a buffer before composition -- unfortunately this
didn't happen during a screenshot.

This could leave us in a situation where a buffer is locked by the
application for write, and used by SurfaceFlinger for texturing,
causing a hang.

Here, we fix this issue by never assuming the exception (1), it was
intended as an optimization allowing ANativeWindow::lockBuffer() to
return sooner and was justified when most of SF composition was
done in software. The actual buffer locking is now ensured by
gralloc. We could have handled screenshots in a similar way to
a regular composition, but it could have caused glitches on screen,
essentially, taking a screenshot could cause to skip a frame.

Change-Id: I1f226b1ebdf6918439b687c2723955d55b842c55
urfaceflinger_client/SharedBufferStack.cpp
b26c516c03beffaf60460d3589b3807c0799c344 18-Jan-2011 Jeff Brown <jeffbrown@google.com> am 41395459: Merge "Filter virtual keys after touches. (DO NOT MERGE)" into gingerbread

* commit '41395459e676cf9ab4059e08446656f145662c2d':
Filter virtual keys after touches. (DO NOT MERGE)
41395459e676cf9ab4059e08446656f145662c2d 18-Jan-2011 Jeff Brown <jeffbrown@google.com> Merge "Filter virtual keys after touches. (DO NOT MERGE)" into gingerbread
0e5f4e549bec3bf998e1db3af47ccb353c31ff63 18-Jan-2011 Stephen Hines <srhines@google.com> Merge "Validate that version pragma is correct." into honeycomb
5dd60be169bbd8a22cf36eb072d8b0d6689255fb 18-Jan-2011 Stephen Hines <srhines@google.com> Validate that version pragma is correct.

Change-Id: I42dced79b0df52c101525799081bc8a5426c11e4
s/rsScriptC.cpp
553889a678c9bb2d67aaf5fc52b4585e8cebd6ab 18-Jan-2011 Romain Guy <romainguy@google.com> Merge "Fix 9patches, again... Bug #3365243" into honeycomb
eb6a4a17a07f1aa41bd58d418b2982cddb97685a 18-Jan-2011 Romain Guy <romainguy@google.com> Fix 9patches, again...
Bug #3365243

Change-Id: Id45a1f1fd5e099b1d691e6064401d3de1b0c5c20
wui/Patch.cpp
wui/Patch.h
2577db1ec135a1470a2c42139772ec97a6c30e78 18-Jan-2011 Romain Guy <romainguy@google.com> Add support for Paint::setTextSkewX in OpenGLRenderer.
Bug #3360888

Change-Id: I42e81a1f10bf7b9ae1c63ca8add1878fd59a1e8a
wui/FontRenderer.cpp
wui/FontRenderer.h
713440d2ef959e76ab2d22dde5f1430da6fa8f90 18-Jan-2011 Romain Guy <romainguy@google.com> Merge "Add support for Paint::setTextSkewX in OpenGLRenderer. Bug #3360888" into honeycomb
4707dc73e236b7055644401b73cd30164b7ad157 18-Jan-2011 Mathias Agopian <mathias@google.com> am 72abf01a: Merge "Fix the ISurfaceComposer onTransact switch." into gingerbread

* commit '72abf01a8b6958ac1f86d36302a8462c4f51fd9d':
Fix the ISurfaceComposer onTransact switch.
807daf7df615b60ce6fc41355aabe3aa353cebab 18-Jan-2011 Romain Guy <romainguy@google.com> Add support for skew()

Change-Id: Ia3a9a867f74fd78b61f75179e3788fdc2f0cacd0
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/Matrix.cpp
wui/Matrix.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
89108d5c311d0cc6879fb41c6392f17c58644fee 18-Jan-2011 Romain Guy <romainguy@google.com> Merge "Add support for skew()" into honeycomb
5ef3dddd0dbc271fdbcfe45cdca5b1edc9aed296 18-Jan-2011 Stephen Hines <srhines@google.com> Remove erroneous log message.

This change also enables pragmas to be checked for scripts that do not have a
root() function.

Change-Id: I4f41300b623581483970050680ac96c54f99d34a
s/rsScriptC.cpp
a8b78174eb6bc202cf86827618c806024e64cd80 15-Jan-2011 Stephen Hines <srhines@google.com> Clean up simple integer operations.

Change-Id: I3bd11c54c49602e4f63310d50bd9b20fae234329
s/scriptc/rs_cl.rsh
cfe5dd01f29acbb7393ffa91bb4b2a8ad43414f2 17-Jan-2011 Romain Guy <romainguy@google.com> Merge "Yet another fix for 9patch rendering. Bug #3362133" into honeycomb
7444da512680df0c52af39ea521e35adbe0c167d 17-Jan-2011 Romain Guy <romainguy@google.com> Yet another fix for 9patch rendering.
Bug #3362133

Change-Id: Ia6521d31a8c208a2ad2506a23b6a01e5e442ad86
wui/Patch.cpp
wui/Patch.h
38f79d01db07f7cc3d3b49d594b675adfa8959d5 17-Jan-2011 Shih-wei Liao <sliao@google.com> Merge "Make ImageProcessing work." into honeycomb
2aad562ab26dc2986fbe826411f69b958cb67967 17-Jan-2011 Shih-wei Liao <sliao@google.com> Make ImageProcessing work.

Change-Id: Id1ab91657ff4ba70a2391b168958e72b68e8a3e0
s/java/ImageProcessing/src/com/android/rs/image/vertical_blur.rs
cf18c4788af740773c9b2720a1c4ed5f45454b8e 17-Jan-2011 Jamie Gennis <jgennis@google.com> Merge "Implement SurfaceTexture frame-available callback." into honeycomb
41424adec8382af9064baf1d8bde29d7349a6155 17-Jan-2011 Jamie Gennis <jgennis@google.com> Merge "Fix SurfaceTexture transform matrix." into honeycomb
22a666a80b67b199188805b63ffc01a3e044b3ef 17-Jan-2011 Mathias Agopian <mathias@google.com> Use EGL_NATIVE_VISUAL_ID to select EGLConfig

EGLUtils::selectConfigForPixelFormat() now uses EGL_NATIVE_VISUAL_ID
to select a config with the proper format. this is more robust and
future proof.

Change-Id: Ib85e0974160945d838956b50a3cac4de78618957
i/EGLUtils.cpp
58bac9e797941974a1ed4bf2a5ffe2f2752e9f5a 20-Dec-2010 Jamie Gennis <jgennis@google.com> Fix the ISurfaceComposer onTransact switch.

Two of the cases in the ISurfaceComposer onTransact switch statement
were missing 'break' statements at the end, and would fall through to
the next case block. This change adds those break statements.

Change-Id: I6dcc84263d3ea03d94612c667103283846b3dee1
urfaceflinger_client/ISurfaceComposer.cpp
376590d668e22a918439877b55faf075427b13f3 13-Jan-2011 Jamie Gennis <jgennis@google.com> Implement SurfaceTexture frame-available callback.

This change implements the onFrameAvailable callback for the
SurfaceTexture java class. It includes the C++ SurfaceTexture code as
well as the JNI and Java code to enable the callback.

Change-Id: Ifd8b8e7ad46ee70cba6da1c2e96dab8045d1ea30
ui/SurfaceTexture.cpp
0fb736c0937d9d65001e0176d90e1011226594bf 14-Jan-2011 Jamie Gennis <jgennis@google.com> Fix SurfaceTexture transform matrix.

Change-Id: I31520c547cafa5cc85cd0f73883ab3a9ff4648e2
ui/SurfaceTexture.cpp
300406abd4a1e96d18d2a6486b3e41ddd3cee8b4 16-Jan-2011 Jason Sams <rjsams@android.com> Add some error checking.

Change-Id: I007b1429a64b39ffd5cdef200c295d5a31f95048
s/rsAllocation.cpp
s/rsThreadIO.cpp
s/rsg_generator.c
077fd5f6f5853eeecc6805513399dfcebb56cb66 17-Jan-2011 Shih-wei Liao <sliao@google.com> Merge "Fix bug in on-device linking." into honeycomb
0e7be13973f13dd898003682b80cc48da11792c9 17-Jan-2011 Shih-wei Liao <sliao@google.com> Fix bug in on-device linking.

Change-Id: Ic027d4cbf240a45da95a024067215a572c3bd7a9
s/java/ImageProcessing/src/com/android/rs/image/vertical_blur.rs
s/rsScriptC.cpp
fb13abd800cd610c7f46815848545feff83e5748 17-Jan-2011 Romain Guy <romainguy@google.com> Fix 9patch rendering in ExpandableListView.

Change-Id: I60843d61a40b0cb7dd09923cb4489a5a76f20486
wui/Debug.h
wui/LayerRenderer.cpp
wui/Patch.cpp
wui/Patch.h
94677083ab4c56ffef4a8a68d011d19333ab46c2 17-Jan-2011 Romain Guy <romainguy@google.com> Merge "Fix 9patch rendering in ExpandableListView." into honeycomb
d73989538ed7a011bb3fd6fe4882b014117bccbb 16-Jan-2011 Jason Sams <rjsams@android.com> Merge "Implement sub updates for mipmap levels and cubmaps." into honeycomb
f219da5e32e85deb442468ee9a63bb28eb198557 16-Jan-2011 Romain Guy <romainguy@google.com> Don't blend transparent pixels when rendering layers.

With this change, the rendere keeps track of what regions are rendered into
and generates a mesh that matches these regions exactly. The mesh is used
to composite the layer on screen.

Change-Id: I1f342576b9134fb29caff7fb8f4c1da179fe956d
wui/Layer.h
wui/LayerRenderer.cpp
wui/LayerRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Snapshot.h
749b9dbaf939ab91ae5cf6680dd03e1180a8b37f 16-Jan-2011 Romain Guy <romainguy@google.com> Merge "Don't blend transparent pixels when rendering layers." into honeycomb
71a2e13d19fa8d8f88b6b97e2b28296094af3005 16-Jan-2011 Shih-wei Liao <sliao@google.com> On-device linking using bccLinkBC. Note that we switch to getFile interface
on the libbcc side.

Change-Id: Iec4e0624f1448161c0a2163f3ce725ce6cdf3267
s/rsScriptC.cpp
4559ea41d849714aba4dffeeb13aa9ee648b7327 15-Jan-2011 Jamie Gennis <jgennis@google.com> Compare GraphicBuffers using handles.

This change fixes a bug in SurfaceTextureClient where GraphicBuffers
were being compared using pointer comparison rather than handles.

Change-Id: Ib8989af94be32d4efd86e020a732f5143088a863
ui/SurfaceTextureClient.cpp
2e7fbd97e6f3682b20631d4f5262321dba6e2c6f 15-Jan-2011 Romain Guy <romainguy@google.com> Merge "Preapre region tracking in layers" into honeycomb
1bd1bad0b4a75e633c5edbe802bf6fb4dd765161 15-Jan-2011 Romain Guy <romainguy@google.com> Preapre region tracking in layers

Change-Id: Ied1fa0d36c99ef4e33cb8fde7e3106a793db3a4c
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
a7393dd66f0127c8acdd5f8928b0c2d0de602275 15-Jan-2011 Mathias Agopian <mathias@google.com> Merge "Fix error reporting in Surface::cancelBuffer()" into honeycomb
739e34a362518020b4aed3f2dc54be2154c41406 15-Jan-2011 Romain Guy <romainguy@google.com> Merge "Don't crash Launcher on config change." into honeycomb
43ccf4663c822ddd435b7683cc05221f6169c6c3 15-Jan-2011 Romain Guy <romainguy@google.com> Don't crash Launcher on config change.

Change-Id: Ibbbd7146c5ff69e9639b433f39041053654d808c
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/ResourceCache.cpp
wui/SkiaShader.cpp
wui/SkiaShader.h
77c3e4b9fdab1f48cfa95cddb4a110946f4a1cd8 15-Jan-2011 Jeff Brown <jeffbrown@google.com> Merge "Make getFallbackAction return false when there is none." into honeycomb
fca66d3b71abcf1e78a25988850857ea8188c0d0 15-Jan-2011 Jeff Brown <jeffbrown@google.com> Make getFallbackAction return false when there is none.

Change-Id: Id17c0f7269e4a228f4e5f11c54614fec508222a2
i/KeyCharacterMap.cpp
7777319712c73e1de7c2e1fe21eea87ddd5594f0 15-Jan-2011 Romain Guy <romainguy@google.com> Merge "Don't delete objects twice..." into honeycomb
1f1fcb70b6e43a6b4df0dbab75a34429d4744624 15-Jan-2011 Romain Guy <romainguy@google.com> Don't delete objects twice...

Change-Id: Ibc67aed098c9300cf45eb46abda1938c418808c3
wui/DisplayListRenderer.h
24c00216687ac87fe531dc4d4168ac0c0ca04ea6 15-Jan-2011 Romain Guy <romainguy@google.com> Copy shaders when recording them in display lists.

Change-Id: I3f22dd35f1e31c9e5102955d76548098b7b0cd8d
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/SkiaShader.cpp
wui/SkiaShader.h
4b26d057665c662c782e3baa5d9ca8287c96ede4 15-Jan-2011 Romain Guy <romainguy@google.com> Merge "Copy shaders when recording them in display lists." into honeycomb
f5106847fc962d57c7d5c586099b4a382f3e1c3d 14-Jan-2011 Romain Guy <romainguy@google.com> Don't add clipped rects to layer regions.
Bug #3350208

Change-Id: I9266862f1d4d57b4598852e8dfa202b5f5099cce
wui/OpenGLRenderer.cpp
fe5be1b04273b8f67a00ac688940299f7d502c1d 14-Jan-2011 Romain Guy <romainguy@google.com> Merge "Don't add clipped rects to layer regions. Bug #3350208" into honeycomb
afc724b907336c043a38487fb5620074c9777d45 14-Jan-2011 Mathias Agopian <mathias@google.com> Fix error reporting in Surface::cancelBuffer()

when we validate the surface there, most errors are in fact allowed
because it is legal to cancel a buffer after a surface has been
destroyed (for instance). in that case make sure to not log
error messages as they are very confusing.

Change-Id: Iecdfbaf6d9ee5da54d56cd7ea7a0d430c30934b0
urfaceflinger_client/Surface.cpp
076b770c2a9a72af768e41738e9e1b282acd4669 14-Jan-2011 Shih-wei Liao <sliao@google.com> bcc interface fixed.

Change-Id: I81349750e58f119a9c2ad596f376c7e39d5f0d4e
s/Android.mk
s/rsScriptC.cpp
s/rsScriptC.h
3b5379d84b8574e92773a2db07520f2b96b6fa62 14-Jan-2011 Shih-wei Liao <sliao@google.com> Retire librslib_rt.

Change-Id: I7f23eb35a8eab1728ef59ea20b429887e76d37fd
s/Android.mk
35a17e661e11dd40a27ed2bcd296dcd2a5416705 14-Jan-2011 Shih-wei Liao <sliao@google.com> Move linking stuff to libbcc.

Change-Id: I4ad08decfda89c6801c595eb746da8af0625fcce
s/rslib.bc
307bf62dd54a58e9dcd91b375357e9bb9e3fdbf0 14-Jan-2011 Shih-wei Liao <sliao@google.com> Avoid converting rslib.bc to things like rslib.h. So we are less error-prone.

Change-Id: If9043d8e8b4cbd21393024032da734e58a22e72d
s/Android.mk
1e3a431d07cc0a307c6441e9ae1b17d3bf42323e 14-Jan-2011 Romain Guy <romainguy@google.com> Remove debug code

Change-Id: Idbc54d16adb4d86185d7196ea0297b5019d14ae4
wui/OpenGLRenderer.cpp
24bb317fe260300d03be42dcdd9aab210fbed45b 14-Jan-2011 Romain Guy <romainguy@google.com> Merge "Remove debug code" into honeycomb
ef70a20a3000bd9aab0807fa1da8ca89bf648500 14-Jan-2011 Jason Sams <rjsams@android.com> Implement sub updates for mipmap levels and cubmaps.

Change-Id: I7c41263a0c1e583574d0c1fcb64b1a0440b5b555
s/rsAllocation.cpp
s/rsAllocation.h
s/rsType.cpp
s/rsType.h
ffac7fc5042296a459d0f5a450dbfe20917093dc 14-Jan-2011 Romain Guy <romainguy@google.com> Add debug logs for display lists.

Change-Id: I7bae8fd96e9eccb51f29f73e4069b4d3e6bdbdd7
wui/Debug.h
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLDebugRenderer.cpp
wui/OpenGLDebugRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
e9d3da1374a4ce06610675f1f9b578b62fc23449 14-Jan-2011 Jason Sams <rjsams@android.com> Merge "Re-implement img npot support in HC." into honeycomb
7f5690bb1089980a73ad5d6dea2177cb74e8c9e7 14-Jan-2011 Romain Guy <romainguy@google.com> Merge "Add debug logs for display lists." into honeycomb
9333e64f79f5876584ed992c7e2c2dffacab8df0 14-Jan-2011 Jason Sams <rjsams@android.com> Re-implement img npot support in HC.

Change-Id: Iac56ec54e46c998ec14f71d8e85eccdc5fb3aa91
s/rsContext.cpp
s/rsContext.h
s/rsSampler.cpp
49dc58bf1cb6ed971899cd8a9d43174723b14dcf 14-Jan-2011 Alex Sakhartchouk <alexst@google.com> Merge "Docs plus removing some junk per API review." into honeycomb
f5c876e82d7cc647ba94d29eb914e64b7977c303 13-Jan-2011 Alex Sakhartchouk <alexst@google.com> Docs plus removing some junk per API review.

Change-Id: I45f995b656754550be68c78e467071d6e59b348f
s/rsContextHostStub.h
f7acf162f8d682c6ebc9af41ca76795b79509193 13-Jan-2011 Jamie Gennis <jgennis@google.com> Fix remote GraphicBuffer allocation in SurfaceFlinger.

This change fixes a horrible hack that I did to allow application
processes to create GraphicBuffer objects by making a binder call to
SurfaceFlinger. This change introduces a new binder interface
specifically for doing this, and does it in such a way that
SurfaceFlinger will maintain a reference to the buffers until the app is
done with them.

Change-Id: Icb240397c6c206d7f69124c1497a829f051cb49b
ui/SurfaceTexture.cpp
urfaceflinger_client/Android.mk
urfaceflinger_client/IGraphicBufferAlloc.cpp
urfaceflinger_client/ISurfaceComposer.cpp
e8d0e8a77690eca02f15b0d5e628be7cad5d0133 13-Jan-2011 Jamie Gennis <jgennis@google.com> Add logging to SurfaceTextureClient.

Change-Id: I984c3b9c88f8af613a50138188ff1b770e2de6b4
ui/SurfaceTextureClient.cpp
c15c7a79a69733bd21d6548fd74c2874fdabe7e8 13-Jan-2011 Romain Guy <romainguy@google.com> Merge "Cleanup implementation of hardware layers." into honeycomb
5865c494a571a7e164218857d3b860004c50baf6 13-Jan-2011 Jamie Gennis <jgennis@google.com> Merge "Fix a bug in SurfaceTexture::dequeueBuffer." into honeycomb
ada830f639591b99c3e40de22b07296c7932a33f 13-Jan-2011 Romain Guy <romainguy@google.com> Cleanup implementation of hardware layers.

The new implementation relies on OpenGLRenderer's existing layer
code instead of duplicating it. The new code is much cleaner, with
simpler and better APIs and allows tracking of drawn regions inside
layers. Region tracking is not yet enabled but this will be done
in a future CL.

Change-Id: Ie826121a2227de8252c77b992a61218defea5143
wui/Caches.cpp
wui/Caches.h
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/LayerRenderer.cpp
wui/LayerRenderer.h
wui/OpenGLDebugRenderer.cpp
wui/OpenGLDebugRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
8eff45242180c7dec2b437c3929cb7ea3345f60c 13-Jan-2011 Eric Laurent <elaurent@google.com> Merge "Fix issue 3302649." into honeycomb
21f62b9e461416ae61c8471f7199f104f8fe33de 13-Jan-2011 Jason parks <jparks@google.com> Merge "Add a method enable encryption." into honeycomb
96100195f06d9be287f2577a41f498917b34f7ef 13-Jan-2011 Shih-wei Liao <sliao@google.com> Fix the build.

Change-Id: I36b523d877c5beadf0fce21b9f7534f0ffc23959
s/Android.mk
078717be074e4f68b9af37d70ecbd63702b2be6c 13-Jan-2011 Shih-wei Liao <sliao@google.com> Merge "Disable on-device linking" into honeycomb
0394d2495a9ae771b7d4555b2507881ed7203478 13-Jan-2011 Shih-wei Liao <sliao@google.com> Disable on-device linking

Change-Id: I7c416c7c9714fae0722e61c4f0368fbdb7d808b3
s/rsScriptC.cpp
c758f1c6a3bd0a65c85572847903c44307d04237 13-Jan-2011 Shih-wei Liao <sliao@google.com> Merge "Fix the build." into honeycomb
f6dd9c539c1b18f65674b495cb23bf2df36da7af 13-Jan-2011 Shih-wei Liao <sliao@google.com> Merge "On-device linking." into honeycomb
3ae5017b1bc2910610194cc8790e8d96516ac9b5 13-Jan-2011 Shih-wei Liao <sliao@google.com> Merge "convert2uchar3." into honeycomb
3a3dd2b37cea6ce5bd5d074119a452272bdc66fb 13-Jan-2011 Shih-wei Liao <sliao@google.com> Fix the build.

Change-Id: I20ac8700bcc8ccb7905f82bbfea81d007f67a68e
s/Android.mk
067e7b261a9fedab9217fc9d4baa76ba577636c2 13-Jan-2011 Shih-wei Liao <sliao@google.com> On-device linking.

Change-Id: I609f575f1c2b9e9c3de0d8c16eb06b66b744bcb5
s/Android.mk
s/rsScriptC.cpp
41f4d4d84790f49a0771c3ebfd12d87a5b879f94 04-Jan-2011 Eric Laurent <elaurent@google.com> Fix issue 3302649.

The cause of the problem is that AudioTrack::start() can fail if it is called from a newly created
thread that has the same ID as the AudioTrack callback thread that has just been stopped and not yet exited.
This is possible as the thread ID used by the Thread class is not the TID.

The fix consists in clearing the thread ID before exiting the thread loop.

Change-Id: I8b5f6a63feeaeb9a01267380e85f6f1456e7aa01
tils/Threads.cpp
ef56ee316cc361cd6519810ae3ae1051ed6fc79b 13-Jan-2011 Jason Sams <rjsams@android.com> Merge "WAR driver bug where surfaces of size 0 fail." into honeycomb
ec30933c1d12090de26888c4604a41cb032c56bf 13-Jan-2011 Jason Sams <rjsams@android.com> WAR driver bug where surfaces of size 0 fail.

Change-Id: I72b356c4cfb71f2342479ca21238b763d02e729d
s/rsContext.cpp
208a1c68ee21930112a3704bf8c46a9f27d8d04d 13-Jan-2011 Jason Sams <rjsams@android.com> Merge "Implement more of copy2DRange*" into honeycomb
c038ea358aadca082198f3effc550d33135bf426 13-Jan-2011 Romain Guy <romainguy@google.com> Reenable region composition pipeline for layers
Bug #3341848

It works this time!

Change-Id: I0d371d8b2c75c67d4ce5009ddb990fe5e55a0a27
wui/OpenGLRenderer.cpp
wui/Properties.h
b08ea03c1bbb8bfa2c44d23c50155e3f34a6968c 13-Jan-2011 Romain Guy <romainguy@google.com> Merge "Reenable region composition pipeline for layers Bug #3341848" into honeycomb
103198a10cc22a49270a787d04b8ab484d2ec235 12-Jan-2011 Jamie Gennis <jgennis@google.com> Merge "Implement crop & transform for SurfaceTexture." into honeycomb
fb9f82ca4f11cf7e43a001f3e6fd1b381cc86210 12-Jan-2011 Jason Sams <rjsams@android.com> Implement more of copy2DRange*

Change-Id: Id6be481c4abc968df27e5bba1ed044262ec0f293
s/rsAllocation.cpp
s/rsAllocation.h
1fc883b271707c4206ae20cc9a935d7bd4a7485e 12-Jan-2011 Romain Guy <romainguy@google.com> Add logging to the new layers API.

Change-Id: I78b9426eb17de3e775aca9fafe4a50bd9c0785c4
wui/Debug.h
wui/LayerRenderer.cpp
wui/LayerRenderer.h
2e0c52610bd5787d716840c71c54ee23ac3fcdd4 12-Jan-2011 Romain Guy <romainguy@google.com> Merge "Add logging to the new layers API." into honeycomb
56aa5321fe6f00fa3662e6f46a4b2559aa34f63e 07-Jan-2011 Jason parks <jparks@google.com> Add a method enable encryption.

This is for testing and needs to be cleaned up.

Change-Id: I29958f2a95c7773744e61bbd23a302b752614f87
torage/IMountService.cpp
48f400c3762bd50603222cb5e7856d6aef4ebc4e 12-Jan-2011 Eric Laurent <elaurent@google.com> am bec4abaa: Merge "Fix issue 3302649." into gingerbread

* commit 'bec4abaa12bf6759f354b54119c5524cf9339e7b':
Fix issue 3302649.
8f597fdfacd1b9cda6dfebf4f3a1c34d1ffb5b2f 12-Jan-2011 Jason Sams <rjsams@android.com> Merge "Cleanup bitmap uploads Implement standalone mipmap generation." into honeycomb
f7086090cfc8d97b5bd3b4d7801a27af11f7c207 12-Jan-2011 Jason Sams <rjsams@android.com> Cleanup bitmap uploads
Implement standalone mipmap generation.

Change-Id: Ie3a9781bbe50e2f58adca6f184d84fea50e40263
s/rs.spec
s/rsAllocation.cpp
853548287ffe4eb85d1bd10669270292336d137a 12-Jan-2011 Romain Guy <romainguy@google.com> Merge "Cleanup GL objects on the correct thread." into honeycomb
57066eb64c9a190d1afc87bb060bbb2d31e5b86c 12-Jan-2011 Romain Guy <romainguy@google.com> Cleanup GL objects on the correct thread.

Change-Id: Iddfea6e08a6591a4fab147151098ef27005f373d
wui/Caches.cpp
wui/Caches.h
wui/LayerRenderer.cpp
wui/LayerRenderer.h
27d116085ebbb112ec1fd959763a027ec08f7179 12-Jan-2011 Alex Sakhartchouk <alexst@google.com> Merge "Adding ability to load cubemaps from individual faces." into honeycomb
a7eacc148adec1ee26636a0c727ceefa9e012ba6 12-Jan-2011 Jamie Gennis <jgennis@google.com> Fix a bug in SurfaceTexture::dequeueBuffer.

This change fixes a bug that allowed the most recently queued buffer to
be returned by dequeueBuffer. At the next updateTexImage call, the
dequeued buffer would be set as the contents of the texture even though
the client could be writing to it.

Change-Id: I53dc14eed13262475627d5551337df57fd78fe00
ui/SurfaceTexture.cpp
b598fb90727be45e926a11abefc319819a733540 10-Jan-2011 Jamie Gennis <jgennis@google.com> Implement crop & transform for SurfaceTexture.

This change adds support for the setCrop and setTransform methods of the
SurfaceTexture C++ class. The crop and transform for the current
texture will be accessed by applications as a single texture coordinate
transform matrix.

Change-Id: I6482bf96f680e5c175364e848936db3908d6c8f8
ui/SurfaceTexture.cpp
16095fc4c841017ff3843a6deba90f4f897af7b4 12-Jan-2011 Shih-wei Liao <sliao@google.com> convert2uchar3.

Change-Id: I5d5406f14b0c22a7b085495b3bcc51d5a288dcf8
s/java/ImageProcessing/src/com/android/rs/image/vertical_blur.rs
s/rslib.bc
6f71d0fedbb04c048a7294976103e42f0f046641 24-Oct-2010 Jeff Brown <jeffbrown@google.com> Filter virtual keys after touches. (DO NOT MERGE)

Adds a new virtualKeyQuietTimeMillis configuration resource that sets
the duration for which virtual keys will be dropped after recent touches
on screen. The default value is 0; it is intended to be overridden
per device using a resource overlay.

This change is designed to help in two cases:

1. Swipes from touchscreen into virtual key area.
2. Accidental taps in virtual key area while using on-screen keyboard.

Bug: 3089163
Change-Id: Id6733c83c2e2bc8d9553aa0e5c1fd74b741bec6e
i/InputReader.cpp
i/tests/InputReader_test.cpp
78dd1ef3f70ff80bf9697ba53601bda48451c044 12-Jan-2011 Stephen Hines <srhines@google.com> Merge "Clean up RS math headers." into honeycomb
35f24545e56caaff067f7dcd550ad4073efcface 12-Jan-2011 Romain Guy <romainguy@google.com> Disable the region compositing pipeline for layers.

This composition mode is affecting Gmail in a bad way. Disabling until
I can figure out the problem.

Change-Id: I00e657ea2d05fc7b4a606242d19dc84dd88c1e35
wui/Properties.h
a9d0711392689a94b9f76eb0c16d0718c005603e 12-Jan-2011 Romain Guy <romainguy@google.com> Don't break the build!

Change-Id: I42f68c7b023c03adeedc4e979e5f4705188ee9f4
wui/LayerRenderer.cpp
6c319ca1275c8db892c39b48fc54864c949f9171 11-Jan-2011 Romain Guy <romainguy@google.com> Better backend for hardware layers.

With this new backend, a hardware layer is only recreated when
its associated view is udpated. This offers fast composition
in GL and fast update of the layer in GL as well.

Change-Id: I97c43a612f5955c6bf1c192c8ca4af10fdf1d076
wui/Android.mk
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/LayerRenderer.cpp
wui/LayerRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
682c4a860b435a6888ea0ea753a7ba6194bb442a 11-Jan-2011 Stephen Hines <srhines@google.com> Clean up RS math headers.

Fix types for ilogb and remquo.

Change-Id: I54f8634b1fe8b6cfb136d3bdf6aab5a5961e6827
s/scriptc/rs_cl.rsh
32228288a957f3823df92365bc709ad6f42b012e 12-Jan-2011 Romain Guy <romainguy@google.com> Solve translucency issue when drawing paths.

Change-Id: I68ae0e2ccddaca2f76b5b2dd3e3cf1277fddaad6
wui/PathCache.cpp
dcc231955d81c66309ce97cca05a25f79ee7d5ea 11-Jan-2011 Alex Sakhartchouk <alexst@google.com> Adding ability to load cubemaps from individual faces.

Change-Id: Ic8b6693f625c181e031d4393ba8fac40049da88b
s/rsAllocation.cpp
7230a74e9a36dfc6c4346c14e325bf07cd05b380 11-Jan-2011 Romain Guy <romainguy@google.com> Composite layers as regions.

This change detects what area of a layer was drawn into and generates a mesh
to match this area exactly. This can be used to avoid blending empty pixels
when the layer is composited.
This change also adds proper layers support to lines rendering and implements
layers composition in a more readable way.

Change-Id: I4a5588b98b19bd66891ebdc39631b193c5e31999
wui/Caches.cpp
wui/OpenGLRenderer.cpp
wui/Properties.h
a07105b7d2a27e6d69407bf96ddb773bddb5e553 11-Jan-2011 Romain Guy <romainguy@google.com> Better logging of out of memory errors in OpenGLRenderer.

Change-Id: I6b72a084340d8d4b6e0b0a100ed4314d09d441ef
wui/OpenGLRenderer.cpp
fe852e216fdfab20e7b3d3e55247f70634d267b9 11-Jan-2011 Alex Sakhartchouk <alexst@google.com> Updating cubemap loading code.

Change-Id: I93bb00e5fd1ccc622d17eba70a510664c2093723
s/java/Samples/res/drawable/cubemap_test.png
s/java/Samples/src/com/android/samples/RsBenchRS.java
s/java/Samples/src/com/android/samples/RsRenderStatesRS.java
s/rsAllocation.cpp
d94988bb0cc65e5de71ab3c43ddf26e5c72dbc32 10-Jan-2011 Stephen Hines <srhines@google.com> Merge "Split time functions into rs_time.rsh header." into honeycomb
fbab3b67afc904450613204400d9e8779feb5659 10-Jan-2011 Jamie Gennis <jgennis@google.com> Merge "Fix a bug in SurfaceTexture::setBufferCount." into honeycomb
ffe3f1cb16d37e56ab69ad345f47c6d3f52b916c 10-Jan-2011 Jamie Gennis <jgennis@google.com> Merge "Add method logging to the SurfaceTexture C++ class." into honeycomb
c936c5cec648cd60637275fc6dba2265ae446044 10-Jan-2011 Jamie Gennis <jgennis@google.com> Merge "Initialize the SurfaceTexture buffer slots." into honeycomb
1ac9da6717f27ecfd3c650bd1bfd84d336674dfc 08-Jan-2011 Stephen Hines <srhines@google.com> Split time functions into rs_time.rsh header.

Change-Id: I598b0031d15749c91d11fbd37b075d0564a94dbf
s/java/tests/src/com/android/rs/test/RSTestCore.java
s/java/tests/src/com/android/rs/test/UT_rstime.java
s/java/tests/src/com/android/rs/test/rstime.rs
s/rsContext.cpp
s/rsContext.h
s/rsScriptC_Lib.cpp
s/scriptc/rs_math.rsh
s/scriptc/rs_time.rsh
d369dc42506ec003f1839bb9e27edada411324b5 09-Jan-2011 Jamie Gennis <jgennis@google.com> Fix a bug in SurfaceTexture::setBufferCount.

We need to reset mCurrentTexture and mLastQueued in setBufferCount
because it frees all of the buffers associated with the buffer slots.

Change-Id: Ie2f834ec1c07ce7a4ab9b2b5fc5fe8c294010c60
ui/SurfaceTexture.cpp
7dc00d5eb27de41f93a7e232b3cd374c84eb77d1 09-Jan-2011 Jamie Gennis <jgennis@google.com> Add method logging to the SurfaceTexture C++ class.

Change-Id: Ic05b05428d34c04634ce9fc3f924ff3322bb2da2
ui/SurfaceTexture.cpp
fd804f31a36c31661859b53bbee1bb408462ddca 08-Jan-2011 Jamie Gennis <jgennis@google.com> Initialize the SurfaceTexture buffer slots.

Change-Id: I81a562ad897173f33cd6a2127737718a7db610eb
ui/SurfaceTexture.cpp
84035ff6f50dfb999d26ba476d5cb7619fa9cc57 10-Jan-2011 Jason Sams <rjsams@android.com> Fix cleanup race condition where objects might may not
be cleaned up correctly.

Change-Id: Ia48e06c3d050b6b39b39f8fdc9f0eb89b92fe1bf
s/rsContext.cpp
8845fbbc8e9372c1587e3da71d26abc2317fa649 08-Jan-2011 Shih-wei Liao <sliao@google.com> For caching, didn't do CompileBC. Rename bccCompileBC as bccPrepareExecutable.

Change-Id: Ie63cd87bf377e2daf0c81d81c0bf86a6195edf46
s/rsScriptC.cpp
9d4024d54085acd14c9897a9f0db3231626fc6ac 08-Jan-2011 Shih-wei Liao <sliao@google.com> 1. LOG 4 fatal error paths (TODO: These 4 places should signal Java exceptions.)
2. Prepare on-device linking.
3. Clean up code.

Change-Id: Iac4148431dbe1c3c4044f7394eb51a1332f513f9
s/rsScriptC.cpp
s/rsScriptC.h
b0253ea6969bdd27bf574e0da7fa91aa6d09f44f 07-Jan-2011 Alex Sakhartchouk <alexst@google.com> Additional loading methods for fonts and a3d files.
Cleaned up error messages.

Change-Id: Id33b7149671df23c37cc11375d844a7837dac750

Change-Id: I6663ce54f7b9bbaf285935ca658d93ba417f8179
s/RenderScript.h
s/rs.spec
s/rsFileA3D.cpp
s/rsFileA3D.h
s/rsFont.cpp
s/rsFont.h
171c592f0b7066acf279863c8a52ddabea49d3db 06-Jan-2011 Romain Guy <romainguy@google.com> New layers API for Views.

This API can be used to back a view and its children with either a
software layer (bitmap) or hardware layer (FBO). Layers have
various usages, including color filtering and performance
improvements during animations.

Change-Id: Ifc3bea847918042730fc5a8c2d4206dd6c9420a3
wui/Layer.h
wui/LayerCache.cpp
wui/OpenGLRenderer.cpp
de69817b3c713069cc37e22a97b9d3238e7a52b1 07-Jan-2011 Chet Haase <chet@google.com> Merge "Reuse of native display list objects" into honeycomb
ff2dc46c121c166f10684da069d07ae11d4f9b9a 20-Dec-2010 Jamie Gennis <jgennis@google.com> Add camera service support for SurfaceTexture.

This change enables the use of a SurfaceTexture in place of a Surface as
the destination of camera preview frames.

Change-Id: Ic70d404c8fe261e9d5da6f1de93d6babb5b191cb
amera/Android.mk
amera/Camera.cpp
amera/ICamera.cpp
68e4a7ac849b681b1fb769857fc04f64262480c4 20-Dec-2010 Jamie Gennis <jgennis@google.com> Add the SurfaceTexture C++ implementation.

This change adds the C++ implementation of SurfaceTexture and related
classes. The goal of this is for a SurfaceTexture to be passed to
camera service or Stagefright in place of a Surface to allow camera
preview or decoded video frames to be streamed to an OpenGL ES texture
that an application can use.

Change-Id: I55c83a7017f1ecb81c9c9e3252cbd118b914296c
ui/Android.mk
ui/ISurfaceTexture.cpp
ui/SurfaceTexture.cpp
ui/SurfaceTextureClient.cpp
0a53d5c81b5553d6063b8133492275ce88186978 20-Dec-2010 Jamie Gennis <jgennis@google.com> Add the ISurfaceComposer::createGraphicBuffer IPC.

This change adds a new binder method to the ISurfaceComposer interface.
This IPC is intended to allow SurfaceFlinger clients to allocate gralloc
buffers using SurfaceFlinger as a proxy to gralloc.

Change-Id: Ide9fc283aec5da6268ba62cfed0c3319a50b640d
urfaceflinger_client/ISurfaceComposer.cpp
5977baa1fa24125c148a72699b53e62abaf08960 06-Jan-2011 Chet Haase <chet@google.com> Reuse of native display list objects

Change-Id: Ia4553e23930ad20e56c11faa7809be788a1ad4bb
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
325a0f969c1d803d7e39a9caee8cc3d400350659 06-Jan-2011 Romain Guy <romainguy@google.com> The font cache should respect the fake bold flag.

Change-Id: Ie4edc9ba46610edde831b55e769944e9a19bdcb5
wui/FontRenderer.cpp
wui/FontRenderer.h
ac1325bcd394bdc8903b26e8593cc06753d79f29 05-Jan-2011 Jason parks <jparks@google.com> Merge "Add decryption support to MountService."
5af0b916f850486cff4797355bf9e7dc3352fe00 29-Nov-2010 Jason parks <jparks@google.com> Add decryption support to MountService.

* Implement the decryptStorage() method on the Mount Service.
This method makes the calls into vold to decrypt the encrypted
volumes and mount them.

Change-Id: I4f6e07a111cf0b36611d590debf9f6579c5ac5f7
torage/IMountService.cpp
49945c0ff653d210951fdff51f23835314b64aeb 05-Jan-2011 Jason Sams <rjsams@android.com> fix bug 3313505
Shader cache cleanup could occur in wrong thread
during RS teardown.

Change-Id: Iffed41de046147db30885e6815826e3b640020c1
s/rsContext.cpp
s/rsShaderCache.cpp
0e73cdc9834c21df6363e7ed2b6acef5180b4dfc 04-Jan-2011 Wu-cheng Li <wuchengli@google.com> Camera::create should fail when it fails to connect the camera.

bug:3197565

Change-Id: I3439a25c06b00615e8257e6b3db85df081643643
amera/Camera.cpp
b4ff35df5c04aec71fce7e90a6d6f9ef7180c2ad 03-Jan-2011 Jeff Brown <jeffbrown@google.com> Mouse pointer integration.

Added support for loading the pointer icon from a resource.

Moved the system server related bits of the input manager out
of libui and into libinput since they do not need to be linked into
applications.

Change-Id: Iec11e0725b3add2b905c51f8ea2c3b4b0d1a2d67
i/Android.mk
i/EventHub.cpp
i/InputDispatcher.cpp
i/InputManager.cpp
i/InputReader.cpp
i/tests/Android.mk
i/tests/InputDispatcher_test.cpp
i/tests/InputReader_test.cpp
730ba19bc8c097fdcbee3adb04e86d435640bb72 04-Jan-2011 Eric Laurent <elaurent@google.com> Fix issue 3302649.

The cause of the problem is that AudioTrack::start() can fail if it is called from a newly created
thread that has the same ID as the AudioTrack callback thread that has just been stopped and not yet exited.
This is possible as the thread ID used by the Thread class is not the TID.

The fix consists in clearing the thread ID before exiting the thread loop.

Change-Id: I66e679665c384403cb3ba2c31746f5de72d5836d
tils/Threads.cpp
9872bf4a2d4ae1e7ded170c8e74d400fe6be9bfb 20-Dec-2010 Shachar Shemesh <lingnu@gmail.com> Normalize output from aapt d

Make the output from aapt dump --values resources and aapt dump xmltree normalized, so that it is unambigously displayed
regardless of the content of the strings.

Change-Id: Ia3bff36c4ee1e9a44f474534e154830948beabdf
tils/ResourceTypes.cpp
05d17b02225e3d194ef27f5ff95ab4314177c551 03-Jan-2011 Shih-wei Liao <sliao@google.com> Rename bcc::BCCscript -> bcc::Script. Ideally, should do:
include bcc.h instead of forward declaration.

Change-Id: I649f62d240ed4e13eb95a8988a9ee202b19e7436
s/rsScriptC.h
69011ff5e1e306d7f3e635be1b3681b622c51d67 30-Dec-2010 Jason Sams <rjsams@android.com> Merge "Move adapter2D to a derived class from Allocation."
49a05d7b82956009f03acbb92a064eed054eb031 29-Dec-2010 Jason Sams <rjsams@android.com> Move adapter2D to a derived class from Allocation.

Change-Id: I7e9d8b0028ba95956476f253da38dbe64564d0da
s/RenderScript.h
s/rs.spec
s/rsAllocation.cpp
s/rsAllocation.h
s/rsFont.cpp
s/rsHandcode.h
8235404786b9a78321691e4c3ac9bc66c55c602d 29-Dec-2010 Jeff Brown <jeffbrown@google.com> Merge "Add initial support for cursor-based pointing devices."
83c09685f2e62bc3cf7e71bc61d903f4b9ccaeb4 24-Dec-2010 Jeff Brown <jeffbrown@google.com> Add initial support for cursor-based pointing devices.

Some parts stubbed out but you can plug in a mouse and move
a green cursor around to interact with the UI.

Change-Id: I80d597a7f11d3bd92041890f74b3c77326975e6e
i/EventHub.cpp
i/InputDispatcher.cpp
i/InputReader.cpp
i/tests/InputReader_test.cpp
tils/PropertyMap.cpp
827521a8e3fe0bedc8624657f624cf2f9dab58e1 28-Dec-2010 Jean-Baptiste Queru <jbq@google.com> am 6637e307: am bfb5f596: Merge "Fix for writing empty strings to Parcel::writeString8()"

* commit '6637e307494475b85afe8869d312d4a2f832d8f4':
Fix for writing empty strings to Parcel::writeString8()
6637e307494475b85afe8869d312d4a2f832d8f4 28-Dec-2010 Jean-Baptiste Queru <jbq@google.com> am bfb5f596: Merge "Fix for writing empty strings to Parcel::writeString8()"

* commit 'bfb5f5966b36c4960b56f6de10ba261332208db9':
Fix for writing empty strings to Parcel::writeString8()
5c68a712dacf8cf0a419f1b743474a3b4290d024 24-Dec-2010 Jason Sams <rjsams@android.com> Fix teardown bug found in books.

Change-Id: I9ac449b644108148b331e0c552f289bf80a07f7e
s/rs.spec
s/rsAllocation.cpp
s/rsContext.cpp
s/rsContext.h
s/rsScriptC.cpp
fa93584a4fab6ca8d9348658dc30cedf76891753 23-Dec-2010 Jeff Brown <jeffbrown@google.com> am c6f2b3b3: Merge "Fix policy issues when screen is off. (DO NOT MERGE)" into gingerbread

* commit 'c6f2b3b302c06b8b7b81ec7e3a43a7df1813d0e0':
Fix policy issues when screen is off. (DO NOT MERGE)
c5300f14ad3d7145e187ff8526961a8248d61cd1 23-Dec-2010 Shih-wei Liao <sliao@google.com> Clean-up.

Change-Id: I43045da43a5e48e1bf759cd18c1b90d45f243450
s/rsScriptC.cpp
eb9f7a01b0f501a535d872a957c1102ebb13d1c7 30-Oct-2010 Jeff Brown <jeffbrown@google.com> Fix policy issues when screen is off. (DO NOT MERGE)

Rewrote interceptKeyBeforeQueueing to make the handling more systematic.
Behavior should be identical except:
- We never pass keys to applications when the screen is off and the keyguard
is not showing (the proximity sensor turned off the screen).
Previously we passed all non-wake keys through in this case which
caused a bug on Crespo where the screen would come back on if a soft key
was held at the time of power off because the resulting key up event
would sneak in just before the keyguard was shown. It would then be
passed through to the dispatcher which would poke user activity and
wake up the screen.
- We propagate the key flags when broadcasting media keys which
ensures that recipients can tell when the key is canceled.
- We ignore endcall or power if canceled (shouldn't happen anyways).

Changed the input dispatcher to not poke user activity for canceled
events since they are synthetic and should not wake the device.

Changed the lock screen so that it does not poke the wake lock when the
grab handle is released. This fixes a bug where the screen would come
back on immediately if the power went off while the user was holding
one of the grab handles because the sliding tab would receive an up
event after screen turned off and release the grab handles.

Bug: 3144874
Change-Id: Iebb91e10592b4ef2de4b1dd3a2e1e4254aacb697
i/InputDispatcher.cpp
b803c04cdaf3ce9dec387a874cabf141f0d8500f 15-Dec-2010 Pravat Dalbehera <pravat.dalbehera@sonyericsson.com> Fix for writing empty strings to Parcel::writeString8()

If writeString8 is called with the following sequence:

writeString8(String8(""));
writeString8(String8("TempString"));

Then in the readString8, the 2nd String i.e. "TempString" is not read,
instead an empty string is read.

The bug comes because of the write call for String8("") where there are
no String bytes present. In the write Statement, an extra ‘\0’ is
written. During the Marshalling, Following bytes are written:

1 2 3 4 5 ...
0x0 0x0 0xB ‘T’ ‘e’ ...

The readString8 function has a check that, if String length is 0, don’t
read anything. So the first byte is read as the length for the first
string. The second byte i.e. ‘\0’ is read as the length for the second
string and hence the second string becomes empty too.

Change-Id: Id7acc0c80ae16e77be4331f1ddf69ea87e758420
inder/Parcel.cpp
b4d7bb6872f523b4318144202e119766ed9054ed 21-Dec-2010 Alex Sakhartchouk <alexst@google.com> API cleanup for renderscript. This will be a multiproject commit.

Change-Id: Ida62d3a155285a20725be9daa62217faef1c3734
s/java/Balls/src/com/android/balls/BallsRS.java
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/ModelViewer/src/com/android/modelviewer/SceneGraphRS.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModelRS.java
s/java/Samples/src/com/android/samples/RsBenchRS.java
s/java/Samples/src/com/android/samples/RsRenderStatesRS.java
96abab264e4d96071dc169b4828e950c1ae59681 21-Dec-2010 Patrick Dubroy <dubroy@google.com> Merge "Ensure bitmaps aren't freed while referenced from a display list"
f890fab5a6715548e520a6f010a3bfe7607ce56e 20-Dec-2010 Patrick Dubroy <dubroy@google.com> Ensure bitmaps aren't freed while referenced from a display list

Also removes the reference queue finalizers. They aren't necessary
anymore now that Bitmaps are allocated in the heap.
wui/ResourceCache.cpp
e688213f6f2b2e10eb7a5c70b43fe0c3ad45db81 20-Dec-2010 Jason Sams <rjsams@android.com> Merge "Clean up Allocation buffer object api."
490db31b851af9195f8f5bd4c5b21f59be56b207 20-Dec-2010 Simon Wilson <simonwilson@google.com> am 0c8ad64d: Merge "fix [3127755] Launcher is missing anti-aliasing" into gingerbread

* commit '0c8ad64d64b23e2bdd62bc217e327c7e0583784b':
fix [3127755] Launcher is missing anti-aliasing
d19524047fa2d12ecd45ebcf69543836e1b45579 20-Dec-2010 Jason Sams <rjsams@android.com> Clean up Allocation buffer object api.

Change-Id: Id3e2391a93a99f4c414a805ee33cfd113242a7e6
s/rsScriptC_LibGL.cpp
s/scriptc/rs_graphics.rsh
eeca435dc6134a285b9bbb832cd6a1a88f34e85f 20-Dec-2010 Shih-wei Liao <sliao@google.com> Stale cache management to address a P1 bug # 3296131.

Change-Id: I593f35a91c4a14c055828f8989fe01b9e7790039
s/Android.mk
s/rs.spec
s/rsScriptC.cpp
s/rsScriptC.h
e27cdeeecba5b445e307d653d9cb7da007adfac3 17-Dec-2010 Alex Sakhartchouk <alexst@google.com> API reaview cleanup

Change-Id: Ib1aaf81130ffa6b5e6c60096c27c969e8891db3f
s/java/ModelViewer/src/com/android/modelviewer/SceneGraphRS.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModelRS.java
s/java/Samples/src/com/android/samples/RsBenchRS.java
s/java/Samples/src/com/android/samples/RsListRS.java
s/java/Samples/src/com/android/samples/RsRenderStatesRS.java
s/java/tests/src/com/android/rs/test/RSTestCore.java
s/rs.spec
s/rsFont.cpp
s/rsFont.h
667fb848aa7f457adcfb5fd083309340dc1bf718 16-Dec-2010 Shih-wei Liao <sliao@google.com> Whenever LoadBinary fails, recompile. Fixing the multi-instance bug.

Change-Id: Ib1565efe1353ed788a3ed3c81c6067e92d8ef0e5
s/rsScriptC.cpp
b146b1214ef6e4fc75d98779b22434335764cfdb 16-Dec-2010 Romain Guy <romainguy@google.com> Fix text shadow rendering issue.

Change-Id: Ic9eb0d38ad684d2f2c95a4f586f865db911cb872
wui/OpenGLRenderer.cpp
f9954c7eabfcbcae113a1efb8d3c525a725273b1 16-Dec-2010 Mathias Agopian <mathias@google.com> fix [3127755] Launcher is missing anti-aliasing

Enable limited forms of mipmaping when possible.

Change-Id: I39ad90becaa4048844fdbbbcb187333e7d59fc6a
s/rsContext.cpp
s/rsContext.h
s/rsSampler.cpp
0857196107d55bae312c12b72b115d25d5fee4f9 15-Dec-2010 Alex Sakhartchouk <alexst@google.com> Cleanup and refactoring of an earlier cl.

Change-Id: I5e356ed88375a1620846e0c500659e3b7ead5030
s/RenderScript.h
s/java/Samples/AndroidManifest.xml
s/java/Samples/res/raw/shader2movev.glsl
s/java/Samples/src/com/android/samples/RsBench.java
s/java/Samples/src/com/android/samples/RsBenchRS.java
s/java/Samples/src/com/android/samples/RsBenchView.java
s/java/Samples/src/com/android/samples/rsbench.rs
s/java/Samples/src/com/android/samples/rsrenderstates.rs
s/rsAllocation.cpp
s/rsAllocation.h
s/rsSampler.cpp
1eb9f161a6f03cc8fc3a464a71a36e92bc79bd01 15-Dec-2010 Jason Sams <rjsams@android.com> Merge "Fix mipmap bug introduced with Allocation cleanup. Add syncAll to rsg headers."
6d8eb266dd398abf0511685fdaf98abba3396174 15-Dec-2010 Jason Sams <rjsams@android.com> Fix mipmap bug introduced with Allocation cleanup.
Add syncAll to rsg headers.

Change-Id: I02c953f3fddab3c6f4e98570cdad45a59711bbde
s/java/ModelViewer/src/com/android/modelviewer/SceneGraphRS.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModelRS.java
s/java/Samples/src/com/android/samples/RsBenchRS.java
s/java/Samples/src/com/android/samples/RsRenderStatesRS.java
s/rsAllocation.cpp
s/rsFont.cpp
s/rsScriptC_LibGL.cpp
s/scriptc/rs_graphics.rsh
8d0d4783a0206c5884bf0b958d181f450ba5207d 15-Dec-2010 Romain Guy <romainguy@google.com> Cleanup OpenGLRenderer::drawLines()

Change-Id: I3545a616e964335897c6e4148c431a07a2ce2a8b
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
982b71bf4713d57b0fdb9acaaf9f9465a817aacb 15-Dec-2010 Patrick Dubroy <dubroy@google.com> Merge "Allocate bitmap backing buffers in the Java heap."
e4ac2d6b5723c95e648c489b187ddde449452c13 01-Dec-2010 Patrick Dubroy <dubroy@google.com> Allocate bitmap backing buffers in the Java heap.

Change-Id: I60f6ccff13357c1c518e9d56b02fe0171637edd1
wui/ResourceCache.cpp
a9c9b532358fd3ca3e33dc8076c76d89f32c8651 15-Dec-2010 Romain Guy <romainguy@google.com> Merge "Continue cleanup refactoring in OpenGLRenderer."
86568198f2c83d4ce5c4cd692eda074ba9de9ed2 15-Dec-2010 Romain Guy <romainguy@google.com> Continue cleanup refactoring in OpenGLRenderer.

Methods that still need refactoring:
- drawLines
- composeLayerRegion

Change-Id: If546641adf598d49c330988803667264fda50ac2
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
52e6ada69e0cdc4366f97cef12d8ce93c52c3b24 15-Dec-2010 Mathias Agopian <mathias@google.com> Merge "minor clean-up. SurfaceFlinger doesn't need libpixelflinger.so."
aa0e56f9f2f353f969a7230eb8d038fffff4d6da 15-Dec-2010 Mathias Agopian <mathias@google.com> Merge "dump callstack on Surface use error"
fc29088e588e2248acd4a50ec14be6c84cde2597 14-Dec-2010 Jason Sams <rjsams@android.com> Merge "Add support for non-malloc backed textures."
fa7952dbb86a8aff0c90418aa77dddee3802c23a 14-Dec-2010 Romain Guy <romainguy@google.com> Colors are in the [0..1] range, not [0..255]

This fixes rendering in YouTube and other applications.

Change-Id: Ib5f3df632cde97374113ed42f895f136b2796373
wui/OpenGLRenderer.cpp
89f4ec6a837d40c173ba0b5be7799c8583b7a12d 14-Dec-2010 Romain Guy <romainguy@google.com> Merge "Colors are in the [0..1] range, not [0..255]"
b36ba1d6d761d32b31f7140f25dec2538c12b1d2 14-Dec-2010 Romain Guy <romainguy@google.com> Merge "OpenGLRenderer would not render colors < ALPHA_THRESHOLD Bug #3282805"
6b32fab1dbfd8bc1cc176557fe0a7b2ebd4966bd 10-Dec-2010 Shih-wei Liao <sliao@google.com> 1. Add Context to a RenderScript or RenderScriptGL instance.
This is to allow RenderScript to better interact with the Android environment.
E.g., per-app cache.
2. Plumbing, testing.
3. Added getApplicationContext in RenderScript.java.

Change-Id: I85edeebe38825e20b2e86f4f4815689dfc332ef9
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
s/java/tests/src/com/android/rs/test/RSTestCore.java
s/java/tests/src/com/android/rs/test/RSTestView.java
s/java/tests/src/com/android/rs/test/UT_fp_mad.java
s/java/tests/src/com/android/rs/test/UT_primitives.java
s/java/tests/src/com/android/rs/test/UT_rsdebug.java
s/java/tests/src/com/android/rs/test/UT_rstypes.java
s/java/tests/src/com/android/rs/test/UnitTest.java
s/rs.spec
s/rsScriptC.cpp
s/rsScriptC.h
5536841e5452172e7772d84ad5f4a2fc7059c9dd 14-Dec-2010 Romain Guy <romainguy@google.com> OpenGLRenderer would not render colors < ALPHA_THRESHOLD
Bug #3282805

This bug was introduced with a previous refactoring. This also fixes
issues with setting the alpha when drawing bitmaps.

Change-Id: Id47641d26a4536c7e540041f92243bf6db9fc96d
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
0bd5243b751c9cad317758158f79b3347e7948af 14-Dec-2010 Brad Fitzpatrick <bradfitz@android.com> Framework-side support for Dalvik "isSensitiveThread" hook.

Used in lock contention stats.

Bug: 3226270
Change-Id: Ie6f58d130a29079a59bdefad40b80304d9bc3623
inder/IPCThreadState.cpp
f2e69a911aa4d8ebaa3ffb6bc025a5ea5fea4bac 14-Dec-2010 Jason Sams <rjsams@android.com> Merge "More API updates."
029feb941dac1b9b5e9b14f8549e4098b3f3763a 14-Dec-2010 Romain Guy <romainguy@google.com> Merge "Refactor OpenGLRenderer to simplify OpenGL drawing code."
70ca14e08ae197547ac412e8a1210e1ebdfb2eb1 14-Dec-2010 Romain Guy <romainguy@google.com> Refactor OpenGLRenderer to simplify OpenGL drawing code.

This is the first step of the refactoring:
- drawColorRect
- drawTextureMesh

Remaining methods to refactor:
- setupTextureAlpha8
- drawPath
- setupShadow
- drawText
- drawLines
- composeLayerRegion

Change-Id: I0fced6a05b6b6eee10ee7cef0c3fbdaa6cefab20
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/ProgramCache.h
5e0035af3671628945d9a88cd22cf16bc07eecd1 14-Dec-2010 Jason Sams <rjsams@android.com> Add support for non-malloc backed textures.

Change-Id: Iee8e987591caa17b4c8186f8173089925140a568
s/rsAllocation.cpp
s/rsAllocation.h
s/rsFont.cpp
06f9ebf4f6178d6b6970cace263ee180d4b61d36 14-Dec-2010 Mathias Agopian <mathias@google.com> minor clean-up. SurfaceFlinger doesn't need libpixelflinger.so.

Change-Id: I3bdca74351c8e480a05084bc412a96c5f685221d
urfaceflinger_client/Surface.cpp
d4b23b54445b13dacaafad97d100999abb36ea6f 14-Dec-2010 Jason Sams <rjsams@android.com> More API updates.

Change-Id: I754dc645ac08fa25019eed8fd8b7b3c47f178ff2
s/RenderScript.h
s/java/Balls/src/com/android/balls/BallsRS.java
s/java/Balls/src/com/android/balls/balls.rs
s/rs.spec
s/rsAllocation.cpp
s/rsAllocation.h
6b5222dd5334ebd8c8b641fa507776714505d198 13-Dec-2010 Alex Sakhartchouk <alexst@google.com> Perf test

Change-Id: I5cfc1b6dd438b13091993d4669e10fb2e49aaa06
s/java/Samples/AndroidManifest.xml
s/java/Samples/res/raw/multitexf.glsl
s/java/Samples/res/raw/shader2f.glsl
s/java/Samples/res/raw/shader2movev.glsl
s/java/Samples/res/raw/shader2v.glsl
s/java/Samples/src/com/android/samples/RsBench.java
s/java/Samples/src/com/android/samples/RsBenchRS.java
s/java/Samples/src/com/android/samples/RsBenchView.java
s/java/Samples/src/com/android/samples/rsbench.rs
s/java/Samples/src/com/android/samples/shader_def.rsh
s/rsContext.h
s/rsVertexArray.cpp
s/rsVertexArray.h
3ccc75fa5171192b1d3edf24b644bfae314ec0d3 12-Dec-2010 Jason Sams <rjsams@android.com> Merge "Add multitouch support to physics test. Fix context state overwrite calling invoke."
4859f5233c024c979e806a617ba059fa0cd9a154 12-Dec-2010 Jason Sams <rjsams@android.com> Add multitouch support to physics test.
Fix context state overwrite calling invoke.

Change-Id: I7a71237bcf36abb31f98eb6d872501fdfb007d81
s/java/Balls/src/com/android/balls/BallsRS.java
s/java/Balls/src/com/android/balls/BallsView.java
s/java/Balls/src/com/android/balls/ball_physics.rs
s/rsScriptC.cpp
0cfb45a4232f8ccb58b8136ff8628d9978582154 11-Dec-2010 Mathias Agopian <mathias@google.com> Merge "[3258939] Need snapshot to limit which layers are included"
3dd25a6bf71bd535bf9dbbe16234229ff45414a0 11-Dec-2010 Mathias Agopian <mathias@google.com> [3258939] Need snapshot to limit which layers are included

Change-Id: Id7351a0e3f53dde99b291cffba553d89fd4d7ca9
urfaceflinger_client/ISurfaceComposer.cpp
urfaceflinger_client/SurfaceComposerClient.cpp
54ca4587872c46ba7dfc4925e1e35061119ddcbf 11-Dec-2010 Jason Sams <rjsams@android.com> Merge "Remove CreateFromBitmapRef and add CopyTo(bitmap) replacement."
4ef6650bd05a39a09958ea1db92f120ea4949cb1 11-Dec-2010 Jason Sams <rjsams@android.com> Remove CreateFromBitmapRef and add
CopyTo(bitmap) replacement.

Change-Id: Ib73fb9f4bfe5f468eaf0f8f1bf68a93759eef00d
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
s/rs.spec
s/rsAllocation.cpp
f7d63cf2cbab403b14778ec45839107078e20824 11-Dec-2010 Mathias Agopian <mathias@google.com> dump callstack on Surface use error

Change-Id: I38e260dd47349b9af3a999dda683a083a94be16d
urfaceflinger_client/Surface.cpp
cfcea7a1d068a74660dc2dc4fde4f4f6b40fdd53 10-Dec-2010 Stephen Hines <srhines@google.com> Remove vector array test from RSTest.

This test will soon yield an appropriate compile-time error.

Change-Id: I8f9bef7c4c6f954753268a2c1816337f347eae06
s/java/tests/src/com/android/rs/test/RSTestCore.java
s/java/tests/src/com/android/rs/test/UT_vector_array.java
s/java/tests/src/com/android/rs/test/vector_array.rs
e8a8db1d3bed5224a02e0cdfbe24f69e1556cc28 10-Dec-2010 Romain Guy <romainguy@google.com> Merge "Ignore empty layers."
32963c393a804db2cd86c24443c2f1c6eee6064b 10-Dec-2010 Romain Guy <romainguy@google.com> Ignore empty layers.

Change-Id: Ib2f99cdab654881fe079306e27d87c5ef9535700
wui/OpenGLRenderer.cpp
a06cdd53d6b8f4150e1036a755887d08b1ef192e 10-Dec-2010 Romain Guy <romainguy@google.com> Merge "Correctly compare strings in UTF-8 instead of UTF-16 Bug #3272858"
25dc3a7dbac2f90f5144035e9c8ed99c09cc3132 10-Dec-2010 Romain Guy <romainguy@google.com> Correctly compare strings in UTF-8 instead of UTF-16
Bug #3272858

Change-Id: Idacd5d7c2c052b4834a8ddb5906ab32b3f548f73
wui/PatchCache.h
wui/Properties.h
wui/TextDropShadowCache.cpp
wui/TextDropShadowCache.h
6f7f877cc00b17605307776eaa87cbbec2369a43 10-Dec-2010 Jeff Brown <jeffbrown@google.com> Merge "Fix race condition in fallback key processing."
00045a7e6fbed88f3325d2bbb048dc96a082078c 10-Dec-2010 Jeff Brown <jeffbrown@google.com> Fix race condition in fallback key processing.

Need to ensure that the channel is still valid before proceeding.

Bug: 3271482
Change-Id: Ia6863cbedd9b53cbc5c9c8815e9ea90bef3d2218
i/InputDispatcher.cpp
af636ebf5feb2837683fbfe965040cb706b32ec1 10-Dec-2010 Romain Guy <romainguy@google.com> Don't set the invisible flag when saving an empty layer.
Bug #3270371

Change-Id: I65e85671c2fb70d74553c91213e5e759e0ac64ee
wui/OpenGLRenderer.cpp
wui/Snapshot.h
3eb3106137aa23ceb19c5817fa43bbe545636430 09-Dec-2010 Jason Sams <rjsams@android.com> Merge "Fix a severe cleanup bug where teardown of the GL driver could occur on the wrong thread."
546f01b6d52d8da18c7a39239a36adf5b05ccf48 09-Dec-2010 Jason Sams <rjsams@android.com> Fix a severe cleanup bug where teardown of the GL
driver could occur on the wrong thread.

Change-Id: Icd56182ccbd1371124a247695bf3ebd3085df450
s/rs.spec
s/rsContext.cpp
5c1619fff46670612fdcf3cd4cf9e6c7347fd694 09-Dec-2010 Jason Sams <rjsams@android.com> Fix build

Change-Id: I189d3b8afd351ab5cf604105579212593a98d5a4
s/java/Fountain/src/com/android/fountain/FountainRS.java
3247842c676c22fdfae56b931604571827fb430a 09-Dec-2010 Jason Sams <rjsams@android.com> Merge "Allocation API update."
279d34f4b26caf77e5dde2f7cbe3d286ac54dda6 09-Dec-2010 Romain Guy <romainguy@google.com> Merge "New, better line drawing implementation. Bug #3207544 Bug #3225875"
a957eea78557cb47a91d44d9e6ee641c58cf1c07 09-Dec-2010 Romain Guy <romainguy@google.com> New, better line drawing implementation.
Bug #3207544
Bug #3225875

Change-Id: Ibdd1dfc64e01625d5c441f39eb0aa3ee647f6ff5
wui/Caches.h
wui/Line.h
wui/OpenGLRenderer.cpp
wui/Vector.h
19f9eda28a1bd182a5f7bba9dde015b29ab04d25 09-Dec-2010 Mathias Agopian <mathias@google.com> fix [3259708] Graphic Buffer Mapper does not support YV12

remove a bunch of a code that was there only to support broken gralloc implementations

Change-Id: I3c1a9172224cbcc283601abfbbd695a20815451f
i/GraphicBufferAllocator.cpp
i/GraphicBufferMapper.cpp
5476b450e50939940dcf3f15c92335cee2fc572d 09-Dec-2010 Jason Sams <rjsams@android.com> Allocation API update.

Change-Id: I9b4a71f9e94c7d3978f06b7971051ab4f8472503
s/RenderScript.h
s/java/Balls/src/com/android/balls/BallsRS.java
s/java/Balls/src/com/android/balls/ball_physics.rs
s/java/Balls/src/com/android/balls/balls.rs
s/java/Balls/src/com/android/balls/balls.rsh
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/ModelViewer/src/com/android/modelviewer/SceneGraphRS.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModelRS.java
s/java/Samples/src/com/android/samples/RsListRS.java
s/java/Samples/src/com/android/samples/RsRenderStatesRS.java
s/java/tests/src/com/android/rs/test/RSTestCore.java
s/rs.spec
s/rsAllocation.cpp
s/rsAllocation.h
s/rsContext.h
s/rsContextHostStub.h
s/rsFont.cpp
s/rsProgramFragment.cpp
s/rsProgramVertex.cpp
s/rsScriptC_Lib.cpp
s/rsVertexArray.cpp
s/rsg_ScriptJavaClass.cpp
d2112306330ce0c162bee4b864991962ca2b655a 08-Dec-2010 Mathias Agopian <mathias@google.com> remove support for PUSH_BUFFER surfaces and overlays

the same functionality is now supported through
the h/w composer HAL, and YUV support in the GPU.

Change-Id: I8146605449954b8e8fd7f78810b7d873c2d8f5bf
urfaceflinger_client/ISurface.cpp
i/Android.mk
i/IOverlay.cpp
i/Overlay.cpp
94720d7ec40d2b5ee200d95a46588cdb0fb30e66 02-Dec-2010 Erik Gilling <konkers@android.com> surfaceflinger: add support for gralloc dump hooks

Change-Id: Ib6f539ed0132b70d040d653c03d52cc04249ac3c
i/FramebufferNativeWindow.cpp
i/GraphicBufferAllocator.cpp
1542af35976ce121b8a69812ab8dec7b71a0b283 08-Dec-2010 Kenny Root <kroot@google.com> Merge "Change assets to use 64-bit API"
ddb76c4644756b31be948d70aaa8ee541dd94999 24-Nov-2010 Kenny Root <kroot@google.com> Change assets to use 64-bit API

The asset system and supporting libraries were using off_t instead of
off64_t to access files larger than 2GB (32-bit signed). This change
replaces all off_t with off64_t and lseek64.

There is a new utils/Compat.h added for Mac OS compatibility.

Also fixed some size-related compiler warnings.

Bug: 3205336
Change-Id: I9097b3cb7a602e811fe52f245939d8975da55e9e
tils/Android.mk
tils/Asset.cpp
tils/FileMap.cpp
tils/ObbFile.cpp
tils/StreamingZipInflater.cpp
tils/ZipFileCRO.cpp
tils/ZipFileRO.cpp
dde4c353851fd107ebe122a4ad9328e007c169b9 08-Dec-2010 Romain Guy <romainguy@google.com> Merge "Correctly release the OpenGL Canvas on EGL error."
67f27952c1bcb2230beef9b5ca0bf42edad436a9 08-Dec-2010 Romain Guy <romainguy@google.com> Correctly release the OpenGL Canvas on EGL error.

Change-Id: Ib31fd8445f7ce5f7aa7e0205de0e7db80d024fc2
wui/Program.cpp
wui/Program.h
wui/ProgramCache.cpp
49ed71db425c5054e3ad9526496a7e116c89556b 07-Dec-2010 Jeff Brown <jeffbrown@google.com> Add support for fallback keycodes.

This change enables the framework to synthesize key events to implement
default behavior when an application does not handle a key.
For example, this change enables numeric keypad keys to perform
their associated special function when numlock is off.

The application is informed that it is processing a fallback keypress
so it can choose to ignore it.

Added a new keycode for switching applications.

Added ALT key deadkeys.

New default key mappings:
- ESC -> BACK
- Meta+ESC -> HOME
- Alt+ESC -> MENU
- Meta+Space -> SEARCH
- Meta+Tab -> APP_SWITCH

Fixed some comments.
Fixed some tests.

Change-Id: Id7f3b6645f3a350275e624547822f72652f3defe
i/InputDispatcher.cpp
i/InputReader.cpp
i/InputTransport.cpp
i/KeyCharacterMap.cpp
i/tests/InputDispatcher_test.cpp
i/tests/InputPublisherAndConsumer_test.cpp
i/tests/InputReader_test.cpp
f30c8287525ac049d4d7589a330be5713256046b 08-Dec-2010 Mathias Agopian <mathias@google.com> am 48f42f8c: am 4153bf3a: Merge "[3171580] don\'t automatically log GraphicBuffer allocation failures" into gingerbread

* commit '48f42f8c3fbd33b2f46c6290ff5963dd58938cf9':
[3171580] don't automatically log GraphicBuffer allocation failures
4e345ab7df737592528e99db73612c6b37e34545 07-Dec-2010 Mathias Agopian <mathias@google.com> am a2977c38: Merge changes Ie03796ae,Ide3e980a into gingerbread

* commit 'a2977c383d363e1e88a5b36230b1fa4c312807d2':
[3171580] SurfaceFlinger Bypass mode. (DO NOT MERGE)
[3171580] Add transform field to native buffers. (DO NOT MERGE)
48f42f8c3fbd33b2f46c6290ff5963dd58938cf9 07-Dec-2010 Mathias Agopian <mathias@google.com> am 4153bf3a: Merge "[3171580] don\'t automatically log GraphicBuffer allocation failures" into gingerbread

* commit '4153bf3a259624a2f2dc497b77b225a1fb517abc':
[3171580] don't automatically log GraphicBuffer allocation failures
a2977c383d363e1e88a5b36230b1fa4c312807d2 07-Dec-2010 Mathias Agopian <mathias@google.com> Merge changes Ie03796ae,Ide3e980a into gingerbread

* changes:
[3171580] SurfaceFlinger Bypass mode. (DO NOT MERGE)
[3171580] Add transform field to native buffers. (DO NOT MERGE)
4153bf3a259624a2f2dc497b77b225a1fb517abc 07-Dec-2010 Mathias Agopian <mathias@google.com> Merge "[3171580] don't automatically log GraphicBuffer allocation failures" into gingerbread
b7282bd2e773de998056c76d3da5d156c872114c 07-Dec-2010 Shih-wei Liao <sliao@google.com> Make ScriptC's mEnvironment.mIsThreadable survive the bcc caching and
then cache-reloading.

Change-Id: I0f5d54160dd9ee567fae53c69b246f99096993da
s/rsScriptC.cpp
92d502022d695d60575b405d883a9d56e186b597 07-Dec-2010 Romain Guy <romainguy@google.com> Merge "Fix 9patch rendering Bug #3253396"
8ab4079ca27e36e5c584495bcd71b573598ac021 07-Dec-2010 Romain Guy <romainguy@google.com> Fix 9patch rendering
Bug #3253396

Some quads were incorrectly assumed to be degenerate.

Change-Id: I9155699edc3424afe9d5a131886bb9966d46b109
wui/OpenGLRenderer.cpp
wui/Patch.cpp
wui/Patch.h
0252a7ebd44da1960ba6cf1e1f6b8b030c9e57f1 07-Dec-2010 Jason Sams <rjsams@android.com> Merge "API review cleanup."
3a3fa1be9ab8e11edc660ecb35ae21ae0b5c8cc2 07-Dec-2010 Romain Guy <romainguy@google.com> Draw text decorations correctly.

Change-Id: I237c0ca8bfe9f233e62476e80f72bcea4359398e
wui/OpenGLRenderer.cpp
de0ca31e88b0e2a1dd65e8b8d501614a5e4f0930 07-Dec-2010 Romain Guy <romainguy@google.com> Merge "Draw text decorations correctly."
ffac19ede6723ae00ed24ecc658d69c5effbe4bc 07-Dec-2010 Romain Guy <romainguy@google.com> Merge "Correctly render text when coordinates are not integers. Bug #3225632"
6620c6d413f972819fada92b574f0fa9e96d36c1 07-Dec-2010 Romain Guy <romainguy@google.com> Correctly render text when coordinates are not integers.
Bug #3225632

Change-Id: If09759e6e95eb2885362ab3ba088cf5aae64c7bf
wui/Matrix.cpp
wui/Matrix.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
bf6ef8d78fffbce6c1849a4a28fb3f4401ad039e 07-Dec-2010 Jason Sams <rjsams@android.com> API review cleanup.

Change-Id: Ieae7d450308b5637ed4253fe9baed3634c6ed141
s/RenderScript.h
s/java/Balls/src/com/android/balls/Balls.java
s/java/Balls/src/com/android/balls/BallsRS.java
s/java/Balls/src/com/android/balls/BallsView.java
s/java/Fountain/src/com/android/fountain/Fountain.java
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/Fountain/src/com/android/fountain/FountainView.java
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
s/java/ModelViewer/src/com/android/modelviewer/SceneGraph.java
s/java/ModelViewer/src/com/android/modelviewer/SceneGraphRS.java
s/java/ModelViewer/src/com/android/modelviewer/SceneGraphView.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModel.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModelRS.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModelView.java
s/java/Samples/src/com/android/samples/RsList.java
s/java/Samples/src/com/android/samples/RsListRS.java
s/java/Samples/src/com/android/samples/RsListView.java
s/java/Samples/src/com/android/samples/RsRenderStates.java
s/java/Samples/src/com/android/samples/RsRenderStatesRS.java
s/java/Samples/src/com/android/samples/RsRenderStatesView.java
s/java/tests/src/com/android/rs/test/RSTest.java
s/java/tests/src/com/android/rs/test/RSTestCore.java
s/java/tests/src/com/android/rs/test/RSTestView.java
s/java/tests/src/com/android/rs/test/UT_fp_mad.java
s/java/tests/src/com/android/rs/test/UT_primitives.java
s/java/tests/src/com/android/rs/test/UT_rsdebug.java
s/java/tests/src/com/android/rs/test/UT_rstypes.java
s/java/tests/src/com/android/rs/test/UT_vector_array.java
s/java/tests/src/com/android/rs/test/UnitTest.java
s/rsAllocation.cpp
s/rsType.cpp
23b791cd0f725d188b84dabfd9eeab4e3775b869 07-Dec-2010 James Dong <jdong@google.com> am d57fbe88: Fixed a race condition where some recording frames may not be released

* commit 'd57fbe887fabd027e644caeaa2139c863143a786':
Fixed a race condition where some recording frames may not be released
d57fbe887fabd027e644caeaa2139c863143a786 07-Dec-2010 James Dong <jdong@google.com> Fixed a race condition where some recording frames may not be released

bug - 3258924

Change-Id: I4f30d04a713676f5da40e6a7dd861510cc041f9b
amera/Camera.cpp
d4aa7d22f8550ccbfb4dc3d669f015b782296e4b 04-Dec-2010 Stephen Hines <srhines@google.com> Stop using anonymous structs in RS.

Change-Id: I90344683939f2934f841031fd5339dbe91cc9e05
s/java/ModelViewer/src/com/android/modelviewer/transform_def.rsh
s/java/tests/src/com/android/rs/test/vector_array.rs
f9adf6b74fe6e30bc55472863ada31cd7477f9cb 06-Dec-2010 Jason Sams <rjsams@android.com> Merge "Prevent message overrun in LocklessCommandFifo."
8ea061bcdd15588603ed4dbd720e493ec1d62a89 05-Dec-2010 Bryan Mawhinney <bryanmawhinney@google.com> Prevent message overrun in LocklessCommandFifo.

The previous logic in makeSpace and makeSpaceNonBlocking
was incorrect (probably a typo). We shouldn't loop if
looping will overwrite unread messages, or if we would
make the buffer appear empty (mPut == mGet).

Change-Id: Iabc82ca94a585a7041069db97cbed7709f2d388f
s/rsLocklessFifo.cpp
48e723a0ee9b625825d23642f843b91fa276ab7c 03-Nov-2010 Mathias Agopian <mathias@google.com> [3171580] Add transform field to native buffers. (DO NOT MERGE)

This field indicate how the content of the buffer
needs to be transformed.

Change-Id: Ide3e980a90599e931406135693231276626adbbb
i/GraphicBuffer.cpp
e869aee382cfe01d42dffba4912458a16bb791fb 04-Dec-2010 Mathias Agopian <mathias@google.com> [3171580] don't automatically log GraphicBuffer allocation failures

some of these failures are not fatal and even expected in some cases
so they should not emit a dump in the log in those cases.

Change-Id: Idcfa252e3bfa9d74e27fe4ad8f8623aa01aa9c5e
i/GraphicBuffer.cpp
i/GraphicBufferAllocator.cpp
7c2bacf6a904f470a7e850841c306065049feedc 04-Dec-2010 Romain Guy <romainguy@android.com> Merge "Don't render degenerate triangles in 9patches. Bug #3251983"
a5ef39a21683189e5906c9f252b997f0508e350d 04-Dec-2010 Romain Guy <romainguy@android.com> Don't render degenerate triangles in 9patches.
Bug #3251983

Change-Id: Ib0b38a7b8111542372f4c4c106b6321c26fe4ad4
wui/Debug.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Patch.cpp
wui/Patch.h
wui/Properties.h
592f4dd8c173f774ac3735211b301e51856d5175 03-Dec-2010 Kenny Root <kroot@google.com> Merge "Move disk usage utilities to its own library"
9d0161799c1f210937bb10e5cc92383a2c94bd9c 03-Dec-2010 Romain Guy <romainguy@google.com> Merge "Correctly index transparent quads when generating 9patch meshes. Bug #3250026"
bd41a11078e94b755c8b6f78e1e4242c715fccd4 03-Dec-2010 Romain Guy <romainguy@google.com> Correctly index transparent quads when generating 9patch meshes.
Bug #3250026

Change-Id: Id7e051e9ed81f6b4e7748756503d8055ac7d531a
wui/Patch.cpp
9065504a63d6bf37bf621191fda1d1fe4da76ee3 02-Dec-2010 Jeff Brown <jeffbrown@google.com> Improve support for external keyboards.

Use Vendor ID, Product ID and optionally the Version to
locate keymaps and configuration files for external devices.

Moved virtual key definition parsing to native code so that
EventHub can identify touch screens with virtual keys and load
the appropriate key layout file.

Cleaned up a lot of old code in EventHub.

Fixed a regression in ViewRoot's fallback event handling.

Fixed a minor bug in FileMap that caused it to try to munmap
or close invalid handled when released if the attempt to map
the file failed.

Added a couple of new String8 conveniences for formatting strings.

Modified Tokenizer to fall back to open+read when mmap fails since
we can't mmap sysfs files as needed to open the virtual key
definition files in /sys/board_properties/.

Change-Id: I6ca5e5f9547619fd082ddac47e87ce185da69ee6
i/Android.mk
i/EventHub.cpp
i/Input.cpp
i/InputDispatcher.cpp
i/InputReader.cpp
i/Keyboard.cpp
i/VirtualKeyMap.cpp
i/tests/InputReader_test.cpp
tils/FileMap.cpp
tils/String8.cpp
tils/Tokenizer.cpp
5e3af5fcba360916f38753bd505e47040fc87729 02-Dec-2010 Romain Guy <romainguy@google.com> Rescale ColorMatrix' vector to the [0..1] range
Bug #3246354

Change-Id: Idea7a1e6633c71119628315d65315076bc445eb0
wui/SkiaColorFilter.cpp
5faa078aeb9ec841b9905530c2b7e2bcd0a678b3 01-Dec-2010 James Dong <jdong@google.com> Merge "Add preferred preview size support in the camera framework"
4ddca9baccad95eb884114ce11723c07372286e2 30-Nov-2010 James Dong <jdong@google.com> Add preferred preview size support in the camera framework

bug - 3237021

Change-Id: Ica8a3ae5cfbee462b74de98770e33277186c9a2b
amera/CameraParameters.cpp
1f2451007c660091b7b090c1ea332f9044515d2d 19-Nov-2010 Jeff Brown <jeffbrown@google.com> Ensure the ShortcutManager uses the correct key character map.

The ShortcutManager used to only receive the key code of the key event
that triggered the shortcut. This change now provides the shortcut
manager with the whole key event so it can look up the associated
character using the correct key character map.

To make this more efficient, added a mechanism for recycling
key events. At the moment it is only used by key events owned by the
system process, since clients of the existing API (such as Views)
might continue to hold on to key events after dispatch has finished so
they would break if the key event were recycled by the framework.

Deprecated KeyCharacterMap.BUILT_IN_KEYBOARD.

Change-Id: I4313725dd63f2be01c350c005a41c7fde9bc67e8
i/EventHub.cpp
i/InputDispatcher.cpp
i/InputReader.cpp
i/tests/InputDispatcher_test.cpp
47e6b1b5eef8ee99872f278f66bc498c4fcca0d8 30-Nov-2010 Jeff Brown <jeffbrown@google.com> Support non-orientation aware keyboards and other devices.

Fixed a bug with dpad keys on external keyboards being rotated
according to the display orientation by adding a new input device
configuration property called "keyboard.orientationAware".

Added a mechanism for overriding the key layout and key character
map in the input device configuration file using the new
"keyboard.layout" and "keyboard.characterMap" properties.

Also added "trackball.orientationAware", "touch.orientationAware" and
"touch.deviceType" configuration properties.

Rewrote the configuration property reading code in native code
so that it can be used by EventHub and other components.

Added basic support for installable idc, kl, and kcm files
in /data/system/devices. However, there is no provision for
copying files there yet.

Disabled long-press character pickers on full keyboards so that
key repeating works as expected.

Change-Id: I1bd9f0c3d344421db444e7d271eb09bc8bab4791
i/EventHub.cpp
i/Input.cpp
i/InputReader.cpp
i/Keyboard.cpp
i/tests/InputReader_test.cpp
tils/Android.mk
tils/PropertyMap.cpp
33b2264ea9ab0f1980c49698729a0ab3c51d07fe 30-Nov-2010 Kenny Root <kroot@google.com> Move disk usage utilities to its own library

Disk usage calculation will happen in more places now, so move the
installd calculation utilities out to its own library that only gets
built for the target.

Change-Id: Idceb6bd663ca6ab3d38fa00e57ee74a25b784855
iskusage/Android.mk
iskusage/MODULE_LICENSE_APACHE2
iskusage/dirsize.c
6f72bebe92a4db7b5dc83f4ac5b5fd02e3b4e2cd 30-Nov-2010 Romain Guy <romainguy@google.com> Update 9patch structure when rendering with different divs/colors.
Bug #3221488

Change-Id: Ifc9e42a991d630feadc9e8032322f37504d09d6d
wui/Line.h
wui/OpenGLRenderer.cpp
wui/Patch.cpp
wui/Patch.h
wui/PatchCache.cpp
wui/PatchCache.h
b37f8a8af15425ed3e65104e8556099d33a9c1ce 29-Nov-2010 Vasu Nori <vnori@google.com> fix messages from sqlite layer in c++ code to be useful.

Change-Id: Ib13f86f3481aae391f5e887bb14877f12bf48034
inder/CursorWindow.cpp
ac19268a36d583df2d7ac763b9e3fc6ec6da40cc 29-Nov-2010 Iain Merrick <husky@google.com> Fix 'BCCscript' build break.

frameworks/compile/libbcc/include/bcc/bcc.h was updated
in change I3f3d31fc. What used to be "struct BCCscript"
is now "class bcc::BCCscript" for C++ code.

Looks like the framework/base header rsScriptC.h is just
trying to forward-declare the same type, so we just need
to make the same change there.

Change-Id: I6f6f9dd7608af01d519c2e26fd9b5e6649f71902
s/rsScriptC.h
d1479e7d45bbbe0cc9e087c2840898d45df58183 24-Nov-2010 Jason Sams <rjsams@android.com> Merge "Fix physics bug causing balls to stack."
c8abdeda287a62cc5a8233fcb9d167fe2d0da3dc 24-Nov-2010 Jason Sams <rjsams@android.com> Fix physics bug causing balls to stack.

Change-Id: I681905cf7499bb92db47ba2a4cca10d0834cf425
s/java/Balls/src/com/android/balls/BallsRS.java
s/java/Balls/src/com/android/balls/ball_physics.rs
aa0c8ab00bcbdf8ce125de7970cf18ee724bc862 24-Nov-2010 Chet Haase <chet@google.com> Merge "Fix hang in native bitmap recycling due to nested mutex locks"
42e514b0d108e1778189c3504c6e6310e1c8008d 24-Nov-2010 Jeff Brown <jeffbrown@google.com> Merge "Port Emulator keymaps."
061cf758841dfc972be3f0ec4857762fafe49aa6 19-Nov-2010 Jeff Brown <jeffbrown@google.com> Port Emulator keymaps.

Also added a validation tool for keymaps (not currently integrated
into the build system but getting there).

This change brings back Android.mk with the intent that it will
be used to validate keymaps in a later change.

Added some missing keys that are present on phones.

Bug: 3215210
Bug: 3225421
Change-Id: Id817c6e2215164616942c51a42752915d9ceacd3
i/Android.mk
i/KeyCharacterMap.cpp
5cafc52fb10bd05c587a7dec41c953c0722f302a 23-Nov-2010 Chet Haase <chet@google.com> Fix hang in native bitmap recycling due to nested mutex locks

Change-Id: Ic37d5408ddb3f68aba6520fb0c78ffde91dfbe62
wui/ResourceCache.cpp
wui/ResourceCache.h
39154dfb87f9595a5b0fdc61989b5be0c02b805e 23-Nov-2010 Jean-Baptiste Queru <jbq@google.com> am 9df7f313: am f0f6c54b: Merge "frameworks/base: Destroy the overlay even if there is an error"

* commit '9df7f31359866a77a47c9fab3171c71715fd0056':
frameworks/base: Destroy the overlay even if there is an error
9df7f31359866a77a47c9fab3171c71715fd0056 23-Nov-2010 Jean-Baptiste Queru <jbq@google.com> am f0f6c54b: Merge "frameworks/base: Destroy the overlay even if there is an error"

* commit 'f0f6c54b13831b11bd7a3bd7a01dc49b7505e56e':
frameworks/base: Destroy the overlay even if there is an error
add9d9633205f76cc34f04368b8482c2c369ba63 23-Nov-2010 Jason Sams <rjsams@android.com> More error checks

Change-Id: Id2b9ab7a76bbdf2ed745f5e36e552dc9b101982f
s/RenderScript.h
s/rs.spec
s/rsContext.cpp
s/rsContext.h
s/rsElement.cpp
s/rsProgramFragment.cpp
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsShaderCache.cpp
s/rsType.cpp
637e3fd523f79e179973c6d683ddc816b6fa67ac 18-Nov-2010 Naomi Luis <nluis@codeaurora.org> frameworks/base: Destroy the overlay even if there is an error

Allow the overlay object to be destroyed whenever the destroy is
invoked. Currently the destroy call returns if there is an error
encountered, which results in open data and control channels.

Change-Id: I1f2ef4ebb5fb1dcabf05ab50b5bbf6e5e240a63a
i/Overlay.cpp
a6210d061bb79e5c10ed88c99111df51e52e4472 19-Nov-2010 Jeff Brown <jeffbrown@google.com> Fix SDK build on Windows due to use of mmap.

Change-Id: Id4bd9a6f932285c93c5853e540efc20b99876564
tils/Tokenizer.cpp
732779a0c034d657075a1ad310f3d5f021dfcf1e 19-Nov-2010 Stephen Hines <srhines@google.com> Remove unnecessary export_func pragma.

Change-Id: Ibe5c5f186cfc12a31f3fb4f0f7472e3b60836394
s/java/Balls/src/com/android/balls/ball_physics.rs
s/java/Balls/src/com/android/balls/balls.rs
s/java/Fountain/src/com/android/fountain/fountain.rs
s/java/ImageProcessing/src/com/android/rs/image/threshold.rs
s/java/ImageProcessing/src/com/android/rs/image/vertical_blur.rs
s/java/tests/src/com/android/rs/test/fp_mad.rs
s/java/tests/src/com/android/rs/test/primitives.rs
s/java/tests/src/com/android/rs/test/rsdebug.rs
s/java/tests/src/com/android/rs/test/rstypes.rs
s/java/tests/src/com/android/rs/test/vector_array.rs
2f08ce033203bb4418d836129768b111d0b3b806 19-Nov-2010 Alex Sakhartchouk <alexst@google.com> Fixing the state restore bug.

Change-Id: I30446a2d552b98fc69878bc7b4fc1a0fd358fc99
s/rsContext.cpp
67f2e442a31b8395e3c1951f8e91139ec7f2be99 19-Nov-2010 Alex Sakhartchouk <alexst@google.com> Support for cubemaps.

Change-Id: Iaf6087f614451a8e233b3e5bc49c834ab0ad08ee
s/RenderScript.h
s/java/Samples/res/drawable/cubemap_test.png
s/java/Samples/res/raw/shadercubef.glsl
s/java/Samples/res/raw/shadercubev.glsl
s/java/Samples/src/com/android/samples/RsRenderStatesRS.java
s/java/Samples/src/com/android/samples/rsrenderstates.rs
s/rsAdapter.cpp
s/rsAllocation.cpp
s/rsAllocation.h
s/rsFont.cpp
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramFragment.cpp
s/rsProgramVertex.cpp
s/rsSampler.cpp
dd4e4603efef2c3df0e26835935f74e1e0e7deb2 18-Nov-2010 Jeff Brown <jeffbrown@google.com> Merge "Added support for full PC-style keyboards."
b7a4814f71817b8b3fbbb4b6eac91183ac7c5475 18-Nov-2010 Stephen Hines <srhines@google.com> Merge "Mark a non-exported function as static."
bed67e9925157d97986f6ff46bd1d4314522f92d 18-Nov-2010 Jeff Brown <jeffbrown@google.com> am b27b8c0c: Fix a key repeating bug. (DO NOT MERGE)

* commit 'b27b8c0caf8ff23d10eea655085769f314050427':
Fix a key repeating bug. (DO NOT MERGE)
a4846be127e4158c5b9da7d32e5f596c569235aa 18-Nov-2010 Jeff Brown <jeffbrown@google.com> am bfc1cc2d: Fix stuck keys when released out of order. (DO NOT MERGE)

* commit 'bfc1cc2d1ea85cc754e63b422eb8cef8ae6a3667':
Fix stuck keys when released out of order. (DO NOT MERGE)
6b53e8daa69cba1a2a5a7c95a01e37ce9c53226c 11-Nov-2010 Jeff Brown <jeffbrown@google.com> Added support for full PC-style keyboards.

BREAKING CHANGE: Redesigned the key character map format to
accomodate full keyboards with more comprehensive suite of modifiers.
Old key character maps will not work anymore and must be updated.
The new format is plain text only and it not compiled to a binary
file (so the "kcm" tool will be removed in a subsequent check-in).

Added FULL keyboard type to support full PC-style keyboards.

Added SPECIAL_FUNCTION keyboard type to support special function
keypads that do not have any printable keys suitable for typing
and only have keys like HOME and POWER

Added a special VIRTUAL_KEYBOARD device id convention that maps
to a virtual keyboard with a fixed known layout. This is designed
to work around issues injecting input events on devices whose
built-in keyboard does not have a useful key character map (ie.
when the built-in keyboard is a special function keyboard only.)

Modified several places where events were being synthesized
to use the virtual keyboard.

Removed support for the "qwerty" default layout.
The new default layout is "Generic". For the most part "qwerty"
was being used as a backstop in case the built-in keyboard did
not have a key character map (probably because it was a special
function keypad) and the framework needed to be able to inject
key events anyways. The latter issue is resolved by using the
special VIRTUAL_KEYBOARD device instead of BUILT_IN_KEYBOARD.

Added the concept of a key modifier behavior so that
MetaKeyKeyListener can distinguish between keyboards that use
chorded vs. toggled modifiers.

Wrote more robust key layout and key character map parsers
to enable support for new keyboard features and user installable
key maps.

Fixed a bug in InputReader generating key ups when keys
are released out of sequence.

Updated tons of documentation.

Currently QwertyKeyListener is being used for full keyboards
with autotext and capitalization disabled. This mostly works
but causes some problems with character pickers, etc.
These issues will be resolved in subsequent changes.

Change-Id: Ica48f6097a551141c215bc0d2c6f7b3fb634d354
i/Android.mk
i/EventHub.cpp
i/InputReader.cpp
i/KeyCharacterMap.cpp
i/KeyLayoutMap.cpp
i/KeyLayoutMap.h
i/Keyboard.cpp
tils/Android.mk
tils/String8.cpp
tils/Tokenizer.cpp
a914f340ae5b267dc3ab36c1156c795b8fa18f5d 08-Nov-2010 Shih-wei Liao <sliao@google.com> Add caching support of BCC binaries.

Change-Id: I1e75bb84d88319cb6f1bbe6d907cf6e8ed546142
s/rs.spec
s/rsScriptC.cpp
s/rsScriptC.h
b27b8c0caf8ff23d10eea655085769f314050427 03-Nov-2010 Jeff Brown <jeffbrown@google.com> Fix a key repeating bug. (DO NOT MERGE)

This change fixes a bug in the dispatcher where the window manager
policy would incorrectly receive a key repeat count of 0 in the case
where the key repeat was generated by the hardware or driver.
Long-press on HOME was broken as a result.

Repeating keys could also get stuck down.

Bug: 3159581
Bug: 3208156
Change-Id: I1145487cfcc41a7850dba4cafc63c4a5951ace5b
i/InputDispatcher.cpp
bfc1cc2d1ea85cc754e63b422eb8cef8ae6a3667 18-Nov-2010 Jeff Brown <jeffbrown@google.com> Fix stuck keys when released out of order. (DO NOT MERGE)

Bug: 3208156
Change-Id: I14e4d54f4912de5e2fabcd8638120623aa2d16e0
i/InputReader.cpp
d80661c129010f89e3b305797e1712f3d3481467 18-Nov-2010 Jean-Baptiste Queru <jbq@google.com> am 5e069074: am a15e4886: Merge "Framebuffer: Support variable number of framebuffers in the UI"

* commit '5e0690745a45f99d12d940dd4aaae814b00a429e':
Framebuffer: Support variable number of framebuffers in the UI
5e0690745a45f99d12d940dd4aaae814b00a429e 18-Nov-2010 Jean-Baptiste Queru <jbq@google.com> am a15e4886: Merge "Framebuffer: Support variable number of framebuffers in the UI"

* commit 'a15e4886de8f75f3cb137f51743d330414c910e8':
Framebuffer: Support variable number of framebuffers in the UI
e15c1133e23ef6fbc1c15aa493be071070725520 18-Nov-2010 Stephen Hines <srhines@google.com> Mark a non-exported function as static.

Change-Id: I2f497e8ec4dcfb878ce9491577e46d4c1ea09723
s/java/ModelViewer/src/com/android/modelviewer/transform.rs
a17af04e62a3f40f729e7ebb8bd868d192e18405 18-Nov-2010 Jason Sams <rjsams@android.com> Create holder inner class for pushing context state.
Fix bug with rsForEach corrupting parent context state.
Remove workaround from rsBalls.

Change-Id: I43a948536e70d44645d1c2ef7b97e1c5906f6943
s/java/Balls/src/com/android/balls/BallsRS.java
s/java/Balls/src/com/android/balls/balls.rs
s/rsContext.cpp
s/rsContext.h
s/rsFont.cpp
s/rsScriptC.cpp
s/rsScriptC_LibGL.cpp
6f4cf0b8885403ead157ae00fd43cf1282331c23 17-Nov-2010 Jason Sams <rjsams@android.com> Fix ref counting for globals when set from java code.

Change-Id: I415b6ddeaab277e60233e905a6bae357cd5193eb
s/rs.spec
s/rsScript.cpp
s/rsScript.h
7a21ee61484e7c55f8642231362821058104a49d 16-Nov-2010 Jason Sams <rjsams@android.com> Fix crash with extended debugging.

Change-Id: I982a7c7ea7ccae074be5254032c43a862137747a
s/rsScriptC.cpp
baa19bc59cd15e8a224cfae10454dc970baac23f 16-Nov-2010 Stephen Hines <srhines@google.com> Remove WARs for zero-init + destructors.

Change-Id: I919db554f3f6fa1fb027402298602a16fba4a235
s/java/ImageProcessing/src/com/android/rs/image/threshold.rs
s/java/Samples/src/com/android/samples/rslist.rs
s/java/tests/src/com/android/rs/test/rslist.rs
df7a856d3d7a62049e3d1091cf07e95019da4609 15-Nov-2010 James Dong <jdong@google.com> Fixed a race condition where some recording frames may not be released.

When startRecording() is called before setListener(), recording frames
are sent right after startRecording(), but there is no listener to
release the recording frames. This causes the hang in media server.

bug - 3166356

Change-Id: I19366ca682ef9f6b847590c190c30a15ed32b8e4
amera/Camera.cpp
b763fa1d7c7de7ee33ab359e3105accafe5a2fdc 15-Nov-2010 Kenny Root <kroot@google.com> Merge "Split UTF functions from String8/16"
c0aaccc485a78353eba5fbe4f392c389859b1c17 11-Nov-2010 Bryan Mawhinney <bryanmawhinney@google.com> Add support for integer mod.

Change-Id: I681b8220c8b39d865ade036a93ba93a965e259c9
s/rsScriptC_Lib.cpp
300ba6846949f5b21c6d93d7698dbc39716cf832 09-Nov-2010 Kenny Root <kroot@google.com> Split UTF functions from String8/16

Split out all the UTF-8/16/32 handling code from String8/16 to its own
file to allow better reuse of code.

Change-Id: If9ce63920edc75472c38da4adce0d13cda9ad2f7
s/rsFont.cpp
tils/Android.mk
tils/ResourceTypes.cpp
tils/String16.cpp
tils/String8.cpp
tils/Unicode.cpp
tils/tests/Android.mk
tils/tests/Unicode_test.cpp
c930e1f736053b7d1dcca50ce9d95670e67acf3b 13-Nov-2010 Jason Sams <rjsams@android.com> Merge "Fix line drawing in RS example."
815aaebb5909ebb4264ae1dd1ae157932eed76a1 12-Nov-2010 Jason Sams <rjsams@android.com> Fix line drawing in RS example.

Change-Id: I5a83ac8d943488d19d83af1bd20a15a3c02999da
s/java/Balls/src/com/android/balls/BallsRS.java
s/java/Balls/src/com/android/balls/balls.rs
46e75294d540fe807d78aec2582ae02cc38c7d42 11-Nov-2010 Jeff Brown <jeffbrown@google.com> Enable touch splitting for all windows by default.

New default only applies to applications with targetSdkVersion >=
HONEYCOMB. Old applications default to no touch splitting for
their windows.

In addition, enabled split touch for various system windows.

Bug: 3049580
Change-Id: Idc8da9baa2cd8e1e4e76af8967d7b6a5ccb94427
i/InputDispatcher.cpp
e7d2295c06ef9b9df6336cbff23007a13fb3f6e4 12-Nov-2010 Chet Haase <chet@google.com> make ResourceCache for display lists thread-safe

Change-Id: I41885b4ae249d7d7c000bab17bf32340ba85ab3a
wui/ResourceCache.cpp
wui/ResourceCache.h
add94f204c1672ad79da1730752f935576797974 12-Nov-2010 Romain Guy <romainguy@google.com> Merge "Free resources only from the GL context thread. Bug #3179882"
fe48f65922d4a3cc4aefe058cee5acec51504a20 12-Nov-2010 Romain Guy <romainguy@google.com> Free resources only from the GL context thread.
Bug #3179882

Resources were freed following garbage collections on a worker thread.
This worker thread had no EGL context, which would cause the renderer
to incorrectly assume that the memory was liberated.

Change-Id: Ifdb51f94ddf42641e8654522787bfac532976c7c
wui/Caches.cpp
wui/Caches.h
wui/DisplayListRenderer.cpp
wui/GradientCache.cpp
wui/GradientCache.h
wui/OpenGLRenderer.cpp
wui/PathCache.cpp
wui/PathCache.h
wui/ResourceCache.cpp
wui/TextureCache.cpp
wui/TextureCache.h
wui/utils/GenerationCache.h
7ab17a3426d3565f72c6832bb650d1709cbf52cf 12-Nov-2010 Jamie Gennis <jgennis@google.com> Merge "Implement reducing the buffer count of a Surface."
6c925d00e131e40811897e0ddc332d6f5bc83178 02-Nov-2010 Jamie Gennis <jgennis@google.com> Implement reducing the buffer count of a Surface.

Change-Id: I7f979c60c06d654aa8265002836277434bc1a64f
Bug: 3095167
urfaceflinger_client/SharedBufferStack.cpp
urfaceflinger_client/Surface.cpp
urfaceflinger_client/tests/SharedBufferStack/SharedBufferStackTest.cpp
088f50ccf74d191b3d0d01cff6e9045a1f04c0f1 11-Nov-2010 Jamie Gennis <jgennis@google.com> Merge "Fix a compile warning in the Surface class."
0b440fc34da7f53fcec24cc8c907b959218b957d 10-Nov-2010 Jamie Gennis <jgennis@google.com> Fix a compile warning in the Surface class.

Change-Id: Id744e71d2cd23c287925a5090e13a6d9908cdd99
urfaceflinger_client/Surface.cpp
01d065795794fa56be660d6346e4830eb7e90a41 11-Nov-2010 Romain Guy <romainguy@google.com> Reduce number of GL calls when drawing with shaders.

Change-Id: I27aca9f6d381d5c7e363d90a93225d185f2ff4e3
wui/OpenGLRenderer.cpp
wui/SkiaShader.cpp
wui/SkiaShader.h
6ae689201f23643bcffc8ca95872a905ff2f8d32 11-Nov-2010 Romain Guy <romainguy@google.com> Merge "Add new runtime debug flags."
e190aa69756aecfaffabdd4c6d32cb6b3220d842 11-Nov-2010 Romain Guy <romainguy@google.com> Add new runtime debug flags.

Change-Id: I07955de166a89b5053c6c13f250bb3e2936ca86e
wui/Caches.cpp
wui/Caches.h
wui/OpenGLRenderer.cpp
wui/PathCache.cpp
wui/PathCache.h
wui/Properties.h
wui/TextureCache.cpp
wui/TextureCache.h
95ab69f4f4c9c097d328a4bc2448e1aa8f0f2617 10-Nov-2010 Alex Sakhartchouk <alexst@google.com> Merge "Code cleanup to make formatting consistent across all the renderscript files."
bb69143ef5dcfddd8bbf04070cf6ba690e2674bb 10-Nov-2010 Romain Guy <romainguy@google.com> Merge "Move all debug flags in a single place."
c15008e72ec00ca20a271c3006dac649fd07533b 10-Nov-2010 Romain Guy <romainguy@google.com> Move all debug flags in a single place.

This change also adds a new memory usage flag. When turned on, the
following is printed after every frame:

D/OpenGLRenderer( 3723): Current memory usage / total memory usage (bytes):
D/OpenGLRenderer( 3723): TextureCache 3766680 / 20971520
D/OpenGLRenderer( 3723): LayerCache 3538944 / 8388608
D/OpenGLRenderer( 3723): GradientCache 135168 / 524288
D/OpenGLRenderer( 3723): PathCache 41180 / 4194304
D/OpenGLRenderer( 3723): TextDropShadowCache 0 / 2097152
D/OpenGLRenderer( 3723): FontRenderer 0 262144 / 262144
D/OpenGLRenderer( 3723): FontRenderer 1 262144 / 262144
D/OpenGLRenderer( 3723): FontRenderer 2 262144 / 262144
D/OpenGLRenderer( 3723): Other:
D/OpenGLRenderer( 3723): FboCache 2 / 12
D/OpenGLRenderer( 3723): PatchCache 31 / 512
D/OpenGLRenderer( 3723): Total memory usage:
D/OpenGLRenderer( 3723): 8268404 bytes, 7.89 MB

This should help tracking possibe memory issues.

Change-Id: I83f483ca1d2dbef904829bce368e33fe5503e8d6
wui/Caches.cpp
wui/Caches.h
wui/Debug.h
wui/FontRenderer.h
wui/GammaFontRenderer.h
wui/LayerCache.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/PatchCache.h
wui/PathCache.h
wui/ProgramCache.cpp
wui/ProgramCache.h
wui/TextureCache.h
ed9f210568082dd6d1d8a0c92c693d574d87d545 10-Nov-2010 Alex Sakhartchouk <alexst@google.com> Code cleanup to make formatting consistent
across all the renderscript files.

Change-Id: Idf5fcc60877e44c8f074f7176e37f70b3b895a3c
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/Fountain/src/com/android/fountain/FountainView.java
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
s/java/ImageProcessing/src/com/android/rs/image/horizontal_blur.rs
s/java/ImageProcessing/src/com/android/rs/image/threshold.rs
s/java/ImageProcessing/src/com/android/rs/image/vertical_blur.rs
s/java/ModelViewer/src/com/android/modelviewer/SceneGraphRS.java
s/java/ModelViewer/src/com/android/modelviewer/SceneGraphView.java
s/java/ModelViewer/src/com/android/modelviewer/SgTransform.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModelRS.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModelView.java
s/java/ModelViewer/src/com/android/modelviewer/transform.rs
s/java/Samples/src/com/android/samples/RsListRS.java
s/java/Samples/src/com/android/samples/RsListView.java
s/java/Samples/src/com/android/samples/RsRenderStatesRS.java
s/java/Samples/src/com/android/samples/RsRenderStatesView.java
s/java/Samples/src/com/android/samples/rslist.rs
s/java/Samples/src/com/android/samples/rsrenderstates.rs
s/rsAdapter.cpp
s/rsAdapter.h
s/rsAllocation.cpp
s/rsAllocation.h
s/rsAnimation.cpp
s/rsAnimation.h
s/rsComponent.cpp
s/rsComponent.h
s/rsContext.cpp
s/rsContext.h
s/rsContextHostStub.h
s/rsDevice.cpp
s/rsDevice.h
s/rsElement.cpp
s/rsElement.h
s/rsFileA3D.cpp
s/rsFileA3D.h
s/rsFont.cpp
s/rsFont.h
s/rsHandcode.h
s/rsLocklessFifo.cpp
s/rsLocklessFifo.h
s/rsMatrix.cpp
s/rsMatrix.h
s/rsMesh.cpp
s/rsMesh.h
s/rsMutex.cpp
s/rsObjectBase.cpp
s/rsObjectBase.h
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramFragment.cpp
s/rsProgramFragment.h
s/rsProgramRaster.cpp
s/rsProgramRaster.h
s/rsProgramStore.cpp
s/rsProgramStore.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsSampler.cpp
s/rsSampler.h
s/rsScript.cpp
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC.h
s/rsScriptC_Lib.cpp
s/rsScriptC_LibCL.cpp
s/rsScriptC_LibGL.cpp
s/rsShaderCache.cpp
s/rsShaderCache.h
s/rsSignal.cpp
s/rsStream.cpp
s/rsStream.h
s/rsThreadIO.cpp
s/rsThreadIO.h
s/rsType.cpp
s/rsType.h
s/rsUtils.h
s/rsVertexArray.cpp
s/rsVertexArray.h
s/rsg_ScriptJavaClass.cpp
s/rsg_generator.c
s/scriptc/rs_core.rsh
eaf6bd1a693f7afacb63940f8d467154b578883b 10-Nov-2010 Jason Sams <rjsams@android.com> Merge "Continue error check improvements and write some docs."
06d69de78845659e6904ae4964e606a7f1a6a4a8 10-Nov-2010 Jason Sams <rjsams@android.com> Continue error check improvements and write some docs.

Change-Id: I345b08490da21d9ee715ff1ddc80c1a816b579f4
s/rsAllocation.cpp
f70a7e34953438dd70573dbb6fd3dd34a1bce831 10-Nov-2010 Romain Guy <romainguy@google.com> Fix possible crash when texture is NULL in the drop shadow cache.

Change-Id: I2142c55dbcfebcdf013a7f4ae04b266a60f5ce8a
wui/TextDropShadowCache.cpp
9e10841c27d973b930e1b49a099c69d866659505 09-Nov-2010 Romain Guy <romainguy@google.com> Correctly remove unused paths from the cache.

Change-Id: I41d9334dcd9871634037344ab49bf69383498161
wui/DisplayListRenderer.cpp
wui/PathCache.cpp
wui/PathCache.h
wui/TextureCache.cpp
wui/TextureCache.h
2b425d3c9b39603054febe0c2135b05764748158 09-Nov-2010 Jason Sams <rjsams@android.com> Merge "Fix fountain bug with more than 10 touches reported."
641b0628cd9d8be001fa445771d460b47ba1f6cb 09-Nov-2010 Jason Sams <rjsams@android.com> Fix fountain bug with more than 10 touches reported.

Change-Id: Ie4ddefbcbe6407fb7ffae2c6e2440fec0b974cfb
s/java/Fountain/src/com/android/fountain/FountainRS.java
0d200833fdc53f9796698f97c18cefc4a1b82df2 05-Nov-2010 Chet Haase <chet@google.com> Fix GL rendering of translucent surfaces

GL renderer was not initializing scissor correctly for translucent
surfaces, resulting in invisible window backgrounds in some cases
like fading popup windows

Change-Id: I87a964986e1ba2c4f59708c8892c5fa71903e6fc
wui/OpenGLRenderer.cpp
1c41517124a90fcfdb95dc069fc492c6fcf1ff25 09-Nov-2010 Jason Sams <rjsams@android.com> Handle user message ID 0
Pass RS runtime errors back to java.
throw exceptions for runtime errors.

Change-Id: Ifcf16cbbf9b98137971dced5076f8a5563eb016c
s/RenderScript.h
s/rsContext.cpp
s/rsContext.h
s/rsScriptC_Lib.cpp
3fe599ce21a3a28a03a2d575fdeedb7b2ac8590a 09-Nov-2010 Alex Sakhartchouk <alexst@google.com> Merge "Moving attrib creation to Mesh. Adding arrays as shader inputs. Removing fixed size arrays."
9d71e2180062931416092f26276a07e55b318f62 09-Nov-2010 Alex Sakhartchouk <alexst@google.com> Moving attrib creation to Mesh. Adding arrays as shader inputs.
Removing fixed size arrays.

Change-Id: I0213e403a2f1283dd43f21bea770aeb059561903
s/java/Samples/res/raw/shaderarrayf.glsl
s/java/Samples/res/raw/shaderarrayv.glsl
s/java/Samples/res/raw/shaderf.glsl
s/java/Samples/res/raw/shaderv.glsl
s/java/Samples/src/com/android/samples/RsRenderStatesRS.java
s/java/Samples/src/com/android/samples/rsrenderstates.rs
s/java/Samples/src/com/android/samples/shader_def.rsh
s/rs.spec
s/rsContextHostStub.h
s/rsElement.cpp
s/rsElement.h
s/rsFont.cpp
s/rsMesh.cpp
s/rsMesh.h
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramFragment.cpp
s/rsProgramVertex.cpp
s/rsScriptC_LibGL.cpp
s/rsShaderCache.cpp
s/rsShaderCache.h
s/rsType.cpp
s/rsType.h
s/rsVertexArray.cpp
s/rsVertexArray.h
d8acf9b68235c9c9a73f797cf520b9384d1c9368 08-Nov-2010 Romain Guy <romainguy@google.com> Merge "Support nested display lists."
2ab777483c650b12f447a414c8bf9c175e8384e7 08-Nov-2010 Mathias Agopian <mathias@google.com> am fe40e9e0: Merge "fix [3148312] Region can access data out of bounds" into gingerbread

* commit 'fe40e9e0ce7b5536be9f9ff0596714a0eb921b1e':
fix [3148312] Region can access data out of bounds
fe40e9e0ce7b5536be9f9ff0596714a0eb921b1e 08-Nov-2010 Mathias Agopian <mathias@google.com> Merge "fix [3148312] Region can access data out of bounds" into gingerbread
1a542c7b8ed0be049869a12d1e01e2604d052ac2 08-Nov-2010 Joe Onorato <joeo@google.com> The CHEEK_TOUCH stuff never worked. Remove it.

Bug: 3104906
Change-Id: Ia37236ba1775fc3ec8c111e2e0b85b105e0dea6a
i/InputDispatcher.cpp
3915bb845b032dc184dba5e60970b803390ca3ed 05-Nov-2010 Jeff Brown <jeffbrown@google.com> Tell system server whether the app handled input events.

Refactored ViewRoot, NativeActivity and related classes to tell the
dispatcher whether an input event was actually handled by the application.

This will be used to move more of the global default key processing
into the system server instead of the application.

Change-Id: If06b98b6f45c543e5ac5b1eae2b3baf9371fba28
i/InputDispatcher.cpp
i/InputTransport.cpp
i/tests/InputDispatcher_test.cpp
i/tests/InputPublisherAndConsumer_test.cpp
0fe478ea04720a57ef3919dbc23711bc7eba517f 08-Nov-2010 Romain Guy <romainguy@google.com> Support nested display lists.

Change-Id: I3815a2832fc0f722c668ba8f51c5f177edb77c94
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLDebugRenderer.cpp
wui/OpenGLDebugRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
cce1d2a60bc1ef10ec6beb338ec3d4cf94486c47 08-Nov-2010 Stephen Hines <srhines@google.com> Merge "Add vector array test to RSTest."
5fe11d20e3c432fc04dc3526c35496c49045a19d 06-Nov-2010 Stephen Hines <srhines@google.com> Add vector array test to RSTest.

Change-Id: I258d23a44df011aaf64aa545c86c97611d70143f
s/java/tests/src/com/android/rs/test/RSTestCore.java
s/java/tests/src/com/android/rs/test/UT_vector_array.java
s/java/tests/src/com/android/rs/test/vector_array.rs
51e7fe7545e3509ebb5c31c10440acd31cec89a2 30-Oct-2010 Jeff Brown <jeffbrown@google.com> Rename the locked meta key constants for clarity.

Also added some tests for LED setting.

Change-Id: I3fd86322afd07ae8de52d1ccbc2fae2c6d586641
i/InputReader.cpp
i/tests/InputReader_test.cpp
7f78b0c3ae6222b39f6240524390de9764f21764 04-Nov-2010 Romain Guy <romainguy@google.com> Lines would not set the scissor before drawing.

Lines were not drawing in Calendar because they were getting clipped
by the previous clip rectangle. This change simply updates the scissor
as needed. This change also reduces the number of state changes in GL.

Change-Id: I41ab13dca3a33cfa6d1a44371c48852ab418b04e
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
8ad4b47920a88c6317c270514f0ce7b0b053d0a4 04-Nov-2010 Romain Guy <romainguy@google.com> Merge "Fix possible rendering issue when drawing a path."
1041aded2df45094c36831028245fb7c5e9b67b7 04-Nov-2010 Romain Guy <romainguy@google.com> Fix possible rendering issue when drawing a path.

Change-Id: I25f2e609589f0dd9294bcf7930de6398c0d7e377
wui/PathCache.cpp
6b81399aa1aebfcd02a0dff142996d13b75eacb7 04-Nov-2010 Jason Sams <rjsams@android.com> Merge "Update ScriptC constructor to remove depricated param."
3ba02b3d2f6fb49677466a2e93c96f307d2a7a41 04-Nov-2010 Jason Sams <rjsams@android.com> Update ScriptC constructor to remove depricated param.

Change-Id: Id36e325834526c6b5416fd78d5cf4259d7df97e9
s/java/Balls/src/com/android/balls/BallsRS.java
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
s/java/ModelViewer/src/com/android/modelviewer/SceneGraphRS.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModelRS.java
s/java/Samples/src/com/android/samples/RsListRS.java
s/java/Samples/src/com/android/samples/RsRenderStatesRS.java
s/java/tests/src/com/android/rs/test/RSTestCore.java
s/java/tests/src/com/android/rs/test/UT_fp_mad.java
s/java/tests/src/com/android/rs/test/UT_primitives.java
s/java/tests/src/com/android/rs/test/UT_rsdebug.java
617d74ac484ae1b8d9593627f1325ee079d7f223 04-Nov-2010 Romain Guy <romainguy@google.com> Merge "Fix rendering bug with saveLayerAlpha/drawColor."
e45362cad94c014d8b3765cb102db0f8c0d92500 04-Nov-2010 Romain Guy <romainguy@google.com> Fix rendering bug with saveLayerAlpha/drawColor.

drawColor() was not calling quickReject because it fills the clip region
and thus always passes the test. However, quickReject also checks whether
the current layer is invisible. drawColor() now performs the same check
and avoid drawing inside an invisible layer.

Change-Id: I63d0e9a8a9c0fba774f0f5c3870d58e6ed96fbd1
wui/OpenGLRenderer.cpp
9195f75df0d2503b4134be7e0deb7699c1613381 04-Nov-2010 Romain Guy <romainguy@google.com> Merge "Fix rendering issue with layers."
5ec9924d24495822b589f1a17996655d66273b30 04-Nov-2010 Romain Guy <romainguy@google.com> Fix rendering issue with layers.

Change-Id: I1d511ab2707000762a942d32c300a9944ab38603
wui/OpenGLRenderer.cpp
5dc336e23a0fcff66cbb31c002789d2e521abb5c 03-Nov-2010 Jason Sams <rjsams@android.com> Merge "RS Error cleanup. Thow java exception during init if the GL driver fails rather than native crash."
d5f06300341df0990be3e0b7a26fa49b13c6fc19 03-Nov-2010 Jason Sams <rjsams@android.com> RS Error cleanup.
Thow java exception during init if the
GL driver fails rather than native crash.

Change-Id: Ie96ef5a2ac12e64f9456545d86157c4c95179a8e
s/rsContext.cpp
s/rsContext.h
84043438cfa7f0f934cb8884315e9db2fd3c7e2c 03-Nov-2010 Rodrigo Obregon <robregon@ti.com> Framebuffer: Support variable number of framebuffers in the UI

This change defines a macro NUM_FRAME_BUFFERS to set
the desired number of framebuffers to be used by the UI,
instead of hard-coding 2 framebuffers.

Aditional logic has been added to handle the initialization
and destruction of NUM_FRAME_BUFFERS buffers.

Change-Id: I3a4bfec3e0f453432f2ffebf084c00f574d3be46
Signed-off-by: Rodrigo Obregon <robregon@ti.com>
i/FramebufferNativeWindow.cpp
e46a0a4693405eb8bbaa069c4e234a6976b48244 03-Nov-2010 Jeff Brown <jeffbrown@google.com> Fix a key repeating bug.

This change fixes a bug in the dispatcher where the window manager
policy would incorrectly receive a key repeat count of 0 in the case
where the key repeat was generated by the hardware or driver.
Long-press on HOME was broken as a result.

Bug: 3159581
Change-Id: If0f02662313f5b879a4e566fbb461389e274a550
i/InputDispatcher.cpp
5ffcd088cef3fdf3cebb674e47cd1aa739fde630 03-Nov-2010 Jeff Brown <jeffbrown@google.com> Merge "Add plumbing for volume mute key."
b0418da0e7594a8c2164a46985c5f1993632e010 01-Nov-2010 Jeff Brown <jeffbrown@google.com> Add plumbing for volume mute key.

Full support for the volume mute key will be implemented in a
later change.

Bug: 2912307
Change-Id: I98c27d6360f159c8b7447e04b45f442eff87b38a
i/Input.cpp
98444a944c9126898bc4c370f831a79bb3b30bd8 03-Nov-2010 Romain Guy <romainguy@google.com> Merge "Optimize FBO drawing with regions. This optimization is currently disabled until Launcher is modified to take advantage of it. The optimization can be enabled by turning on RENDER_LAYERS_AS_REGIONS in the OpenGLRenderer.h file."
5b3b35296e8b2c8d3f07d32bb645d5414db41a1d 28-Oct-2010 Romain Guy <romainguy@google.com> Optimize FBO drawing with regions.
This optimization is currently disabled until Launcher is
modified to take advantage of it. The optimization can be
enabled by turning on RENDER_LAYERS_AS_REGIONS in the
OpenGLRenderer.h file.

Change-Id: I2fdf59d0f4dc690a3d7f712173ab8db3848b27b1
wui/Android.mk
wui/Caches.cpp
wui/Caches.h
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/Extensions.h
wui/FboCache.h
wui/FontRenderer.cpp
wui/FontRenderer.h
wui/GammaFontRenderer.h
wui/GradientCache.h
wui/Layer.h
wui/LayerCache.h
wui/Line.h
wui/Matrix.cpp
wui/Matrix.h
wui/OpenGLDebugRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Patch.cpp
wui/Patch.h
wui/PatchCache.h
wui/PathCache.h
wui/Program.cpp
wui/Program.h
wui/ProgramCache.h
wui/Properties.h
wui/Rect.h
wui/ResourceCache.h
wui/SkiaColorFilter.h
wui/SkiaShader.h
wui/Snapshot.h
wui/TextDropShadowCache.h
wui/Texture.h
wui/TextureCache.cpp
wui/TextureCache.h
wui/Vertex.h
wui/utils/Compare.h
wui/utils/GenerationCache.h
wui/utils/SortedList.h
wui/utils/SortedListImpl.h
i/Region.cpp
611f56721f1552f0fd3c169103c558212247b31c 02-Nov-2010 Stephen Hines <srhines@google.com> Merge "New RS types test for checking compilation."
ce13d94ccb36512bf9a6ce6b9063a6d6f8c57710 25-Oct-2010 Stephen Hines <srhines@google.com> New RS types test for checking compilation.

Change-Id: Ib4d0326462d4d0229430f61c74f16979f7b38dbb
s/java/Balls/src/com/android/balls/balls.rs
s/java/ImageProcessing/src/com/android/rs/image/threshold.rs
s/java/Samples/src/com/android/samples/rslist.rs
s/java/tests/src/com/android/rs/test/RSTestCore.java
s/java/tests/src/com/android/rs/test/UT_rstypes.java
s/java/tests/src/com/android/rs/test/rslist.rs
s/java/tests/src/com/android/rs/test/rstypes.rs
5c4cf8cd7ccd76f25a8433096774b44a6dd8ead8 02-Nov-2010 Kenny Root <kroot@google.com> Fix default return code for getResource

Reorganization of getResource to allow for other densities accidentally
overrode the default return code for getResource from BAD_VALUE to
BAD_INDEX. This corrects the default return to BAD_VALUE which restores
other things to working.

Bug: 3155824
Change-Id: I13dafff85bc6978c5f5435fc09ab0474c7885c4d
tils/ResourceTypes.cpp
c4b5bf3c7668d3875362bb86af05b3e47937e2ee 02-Nov-2010 Jeff Brown <jeffbrown@google.com> am 7ab5d2d9: am a87ea46c: Fix bugs related to cheek event suppression.

* commit '7ab5d2d951792c9b1a1e7cfb279280c2d076506f':
Fix bugs related to cheek event suppression.
7ab5d2d951792c9b1a1e7cfb279280c2d076506f 02-Nov-2010 Jeff Brown <jeffbrown@google.com> am a87ea46c: Fix bugs related to cheek event suppression.

* commit 'a87ea46cb023763e0a9b0222da20b0a354f79d8d':
Fix bugs related to cheek event suppression.
a87ea46cb023763e0a9b0222da20b0a354f79d8d 02-Nov-2010 Jeff Brown <jeffbrown@google.com> Fix bugs related to cheek event suppression.

Two issues:

1. First, due to an inverted conditional in the input dispatcher, we were
reporting touches as long touches and vice-versa to the power manager.

2. Power manager user activity cheek event suppression also suppresses touch
events (but not long touch or up events). As a result, if cheek event
suppression was enabled, touches would not poke the user activity timer.
However due to the above logic inversion, this actually affected long
touches. Net result, if cheek suppression was enabled in the power manager
and you held your thumb on the screen long enough, the phone would
go to sleep!

Cheek event suppression is commonly turned on when making a phone call.
Interestingly, it does not seem to get turned off afterward...

This change fixes the logic inversion and exempts touches from the cheek
suppression. The reason we do the latter is because the old behavior
was actually harmful in other ways too: a touch down would be suppressed
but not a long touch or the touch up. This would cause bizarre behavior
if you touched the screen while it was dimmed. Instead of brightening
immediately, it would brighten either when you lifted your finger or
300ms later, whichever came first.

Bug: 3154895
Change-Id: Ied9ccec6718fbe86506322ff47a4e3eb58f81834
i/InputDispatcher.cpp
fe17625238fbf48608040619a929bdf8a04129f1 01-Nov-2010 Jeff Brown <jeffbrown@google.com> Merge "Fix policy issues when screen is off."
4d396052deb54399cbadbeb8abd873df6f3af342 30-Oct-2010 Jeff Brown <jeffbrown@google.com> Fix policy issues when screen is off.

Rewrote interceptKeyBeforeQueueing to make the handling more systematic.
Behavior should be identical except:
- We never pass keys to applications when the screen is off and the keyguard
is not showing (the proximity sensor turned off the screen).
Previously we passed all non-wake keys through in this case which
caused a bug on Crespo where the screen would come back on if a soft key
was held at the time of power off because the resulting key up event
would sneak in just before the keyguard was shown. It would then be
passed through to the dispatcher which would poke user activity and
wake up the screen.
- We propagate the key flags when broadcasting media keys which
ensures that recipients can tell when the key is canceled.
- We ignore endcall or power if canceled (shouldn't happen anyways).

Changed the input dispatcher to not poke user activity for canceled
events since they are synthetic and should not wake the device.

Changed the lock screen so that it does not poke the wake lock when the
grab handle is released. This fixes a bug where the screen would come
back on immediately if the power went off while the user was holding
one of the grab handles because the sliding tab would receive an up
event after screen turned off and release the grab handles.

Fixed a couple of issues where media keys were being handled inconsistently
or not at all, particularly in the case of the new PAUSE, PLAY
and RECORD keys.

Bug: 3144874
Change-Id: Ie630f5fb6f128cfdf94845f9428067045f42892c
i/InputDispatcher.cpp
8f0adba7cbac2391719896947601e403b5895fdc 01-Nov-2010 Jason Sams <rjsams@android.com> Add code to mark functions rather than whole files as threadable.

Change-Id: Ie635fbbb96b8ade48501ec564fe135edc256537d
s/rsScriptC.cpp
s/rsScriptC.h
s/rsScriptC_Lib.cpp
s/rsScriptC_LibCL.cpp
s/rsScriptC_LibGL.cpp
ab3ff25a6fdb7648dbf243923b8698bb3a894611 30-Oct-2010 Jason Sams <rjsams@android.com> Remove excessive logging.

Change-Id: I22497b1b169ca0f3edbc20649594f6f58f6144d0
s/rsScriptC.cpp
7bf1521b6b90bac8d323d4751f2d300f4cacc046 30-Oct-2010 Mathias Agopian <mathias@google.com> fix [3148312] Region can access data out of bounds

Change-Id: Ic46f31d40943f405e37da21a50b55edd5a2c4124
i/Region.cpp
03034739eb90a41c930201253f5d709c232ce5a9 29-Oct-2010 Kenny Root <kroot@google.com> Merge "Add path to get different DPI drawables"
55fc850cf992cdcb0993cb109d2f716613c0dbdd 28-Oct-2010 Kenny Root <kroot@google.com> Add path to get different DPI drawables

Allow a caller to request a different density than their current display
allows. This can mean a device displaying mdpi can get a resource that's
in hdpi and have it pretend to be in mdpi resolution. If a drawable
that's returned is not in the requested density, it will set it at the
appropriate density to be scaled up later on.

The API for this is hidden currently.

Bug: 3134688
Change-Id: I6c3908cbdef4907b8d3f1576df9e3b0e7af1755a
tils/ResourceTypes.cpp
5585e36a413dcc70a4bdd04063ea31db2519ea8d 29-Oct-2010 Jason Sams <rjsams@android.com> Balls test app.

Change-Id: I842f43e37145f8112120e2bd49925f81c588c40c
s/java/Balls/Android.mk
s/java/Balls/AndroidManifest.xml
s/java/Balls/res/drawable/flares.png
s/java/Balls/res/drawable/test_pattern.png
s/java/Balls/src/com/android/balls/Balls.java
s/java/Balls/src/com/android/balls/BallsRS.java
s/java/Balls/src/com/android/balls/BallsView.java
s/java/Balls/src/com/android/balls/ball_physics.rs
s/java/Balls/src/com/android/balls/balls.rs
s/java/Balls/src/com/android/balls/balls.rsh
s/rsContext.cpp
s/rsScriptC.cpp
858b93c0fd24f9ee5158247e1deedaf8b239a941 28-Oct-2010 Jim Miller <jaggies@google.com> Merge "Fix 3140348: Signature was wrong for atan2() in RS."
420a5fbbd58d6a0b4ee38948410be9d83b007e07 28-Oct-2010 Jim Miller <jaggies@google.com> Fix 3140348: Signature was wrong for atan2() in RS.

Change-Id: I6c5b79efc12e2dcef06f3f0bcbbdf8871947af26
s/rsScriptC_LibCL.cpp
de33dd7c0ded0ae9b71de9f82081c2bede7083c0 28-Oct-2010 Alex Sakhartchouk <alexst@google.com> Merge "Adding nvidia extension for limited npot support. Updating a3d loading to be async."
88e7b31ba1447e98f65e4d2939dbf66268c75e35 28-Oct-2010 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of df3cccf3 to master

Change-Id: I425496a9fc4e9cbc50ad6938e9dccb14827d9558
df3cccf3dc6b59ec4a45d80fb483022360e13830 28-Oct-2010 Jeff Brown <jeffbrown@google.com> am 120a4594: Drop all dispatcher state when dispatcher is disabled.
120a4594855951ed5eb185fdfc19bf98efef3ba2 28-Oct-2010 Jeff Brown <jeffbrown@google.com> Drop all dispatcher state when dispatcher is disabled.

This patch makes the dispatcher drop all of its state when it is
disabled (when the screen turns off). This ensures that the dispatcher
does not get stuck thinking a pointer is still down if the screen
turned off while the user was touching the display (such as a fat touch
while hitting the power button).

Bug: 3098344
Change-Id: If50ef5804870aa1acd3179fd4b40e3cda58dd39d
i/InputDispatcher.cpp
581cc64028e8b8f66cec8105bf530b16d5fb34eb 27-Oct-2010 Alex Sakhartchouk <alexst@google.com> Adding nvidia extension for limited npot support.
Updating a3d loading to be async.

Change-Id: I4be71d2002b9ad6ab8896d63e625f031e6b7ea6c
s/RenderScript.h
s/rs.spec
s/rsAllocation.cpp
s/rsContext.cpp
s/rsContext.h
s/rsElement.cpp
s/rsFileA3D.cpp
s/rsMesh.cpp
s/rsSampler.cpp
s/rsType.cpp
fd7b62d5be677c51dd488feaad32e333d9c776c3 27-Oct-2010 Vasu Nori <vnori@google.com> Merge "convert one of the LOGE to LOG_WINDOW msg to reduce grief"
e6544e4cc906c6b5c4157fccdc928149fc39d7d6 27-Oct-2010 Vasu Nori <vnori@google.com> convert one of the LOGE to LOG_WINDOW msg to reduce grief

grief from people who think this message is bad news.
but in reality, this message is really just an informational message
to aid in debugging

Change-Id: I1a2ab1666a27adb7d3fd210528b2c5218640d53d
inder/CursorWindow.cpp
f887594d0e83542d8b374d294b62a1bff606478f 27-Oct-2010 Romain Guy <romainguy@google.com> Merge "Remove unnecessary GL calls."
746b7401ceb86b5f2805f8c0d3b39ac739152015 27-Oct-2010 Romain Guy <romainguy@google.com> Remove unnecessary GL calls.

This change batches calls to glScissor() and removes extra GL
queries and glActiveTexture() calls.

Change-Id: I1cd079d314f87cd9c088f95c8d4909c2f860f6aa
wui/Caches.cpp
wui/Caches.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
64eb351cff16db2aeaf2c279fbcce9c6a80d0047 27-Oct-2010 Jason Sams <rjsams@android.com> Merge "Begin adding async allocation creation."
31a7e42f4baa059352f0db119de38428e655eab2 26-Oct-2010 Jason Sams <rjsams@android.com> Begin adding async allocation creation.

Change-Id: I5d1381699e2b334c1d824f357bd6b310a5f79be8

Implement async bitmap upload and clean up types.

Change-Id: Icbe9894e04c1319351c1cd75b0e0017855198f20
s/RenderScript.h
s/rs.spec
s/rsAllocation.cpp
s/rsElement.cpp
s/rsFont.cpp
s/rsObjectBase.cpp
s/rsObjectBase.h
s/rsProgramFragment.cpp
s/rsProgramVertex.cpp
s/rsType.cpp
s/rsType.h
9440083be22ec13e252aa347e654911d33e50086 26-Oct-2010 Chet Haase <chet@google.com> Merge "Optimizing ColorFilter in display lists"
ad93c2bb63dfc813b2eefa1043aa63afbddce655 23-Oct-2010 Chet Haase <chet@google.com> Optimizing ColorFilter in display lists

Change-Id: Ie4d5e5b0bc45e0ce47bba144049303c270762e54
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/ResourceCache.cpp
wui/ResourceCache.h
wui/SkiaColorFilter.cpp
wui/SkiaColorFilter.h
32b1dd2632b2424fa4686418af622bab6b5d5cbd 26-Oct-2010 Mathias Agopian <mathias@google.com> am 85c5ca07: am 2f19f56a: Merge "Updade Surface (ANativeWindow) format based on its buffers format" into gingerbread
85c5ca07b9c6e58337a149d36bc3cecbdb879046 26-Oct-2010 Mathias Agopian <mathias@google.com> am 2f19f56a: Merge "Updade Surface (ANativeWindow) format based on its buffers format" into gingerbread
dcaff67a807de225bc7e5b6dccc98fa15b329512 26-Oct-2010 Chet Haase <chet@google.com> Merge "DisplayList optimizations and fixes."
d98aa2de9ab18e09c2be1997f41212740f51f6e6 26-Oct-2010 Chet Haase <chet@google.com> DisplayList optimizations and fixes.

We now use a copy of SkPaint objects to avoid having it changed from under us.
We reuse copies that have not changed. We also copy the SkMatrix every time to
avoid the same problem.

Change-Id: If3fd80698f2d43ea16d23302063e0fd8d0549027
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/ResourceCache.cpp
wui/ResourceCache.h
wui/TextureCache.cpp
wui/TextureCache.h
3f87246dd3db8644f4687b9c270c827aba04cd25 26-Oct-2010 Jeff Brown <jeffbrown@google.com> Merge "Tweak log messages a bit."
9bca4793a33d2714b306d69ceb870925a588fe71 26-Oct-2010 Romain Guy <romainguy@google.com> Small cleanup.

Removes unnecessary forward class declaration, make Caches::currentBuffer
private instead of public.

Change-Id: Idba6325c8c602d89239e667cb8ec87e7943f8e75
wui/Caches.cpp
wui/Caches.h
wui/Patch.cpp
3e3ba155fc0ef7a7f40f06762240d9ba22f62b19 26-Oct-2010 Romain Guy <romainguy@google.com> Don't change texture unit when not needed.

Change-Id: Ifa84426d234f2122402cb13533cb5964f1ce95ec
wui/OpenGLRenderer.cpp
8164c2d338781c3a3c4a443941070dca5d88f2a7 26-Oct-2010 Romain Guy <romainguy@google.com> Don't change textures wrap modes on every draw.

Change-Id: If6d3f313778cc7f3e803a063338539c8b3e165e3
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/SkiaShader.cpp
wui/SkiaShader.h
wui/Texture.h
76860e3fe73a791b1b04f33d78b908eb3163b4b2 26-Oct-2010 Jeff Brown <jeffbrown@google.com> Tweak log messages a bit.

Change-Id: Ifadf78c1ab8db49106216c70086f98860795c65f
i/InputDispatcher.cpp
b9737a1d1b9eb24cab18a6f50659a43c8bca79be 26-Oct-2010 Mathias Agopian <mathias@google.com> Updade Surface (ANativeWindow) format based on its buffers format

this is to allow applications to change the format of a surface's
buffer, and have it reflected in EGL; which is needed for
EGLConfig validation.

Change-Id: Iee074c30ad765881e2409c1d37450b05e561c44d
urfaceflinger_client/Surface.cpp
7631cbbed41ad3183723e5bc6e082d40549664b9 25-Oct-2010 Jeff Brown <jeffbrown@google.com> Add test stubs for newly added methods.

Change-Id: I44139adebbbed1358f613fbcbfcddac6617ef5bd
i/tests/InputReader_test.cpp
3ae4ac8538765d6cf5b8aceea8c81b21854321bd 24-Oct-2010 Jeff Brown <jeffbrown@google.com> am 2ef36763: am 860c2df4: Merge "Add unit tests for native input and fix bugs identified." into gingerbread

Merge commit '2ef36763700eff5679d6012e7f078c57f1a4c465'

* commit '2ef36763700eff5679d6012e7f078c57f1a4c465':
Add unit tests for native input and fix bugs identified.
2ef36763700eff5679d6012e7f078c57f1a4c465 24-Oct-2010 Jeff Brown <jeffbrown@google.com> am 860c2df4: Merge "Add unit tests for native input and fix bugs identified." into gingerbread

Merge commit '860c2df4132a2a0be9bcb0e91bfb7e79588c000f' into gingerbread-plus-aosp

* commit '860c2df4132a2a0be9bcb0e91bfb7e79588c000f':
Add unit tests for native input and fix bugs identified.
715a89ebbf3f8c7a4621fc3a1396e6c1539bea28 24-Oct-2010 Chet Haase <chet@google.com> Merge "Fix Caches singleton to avoid resource leaks"
dd78ccacff83f0714ad90be98b58ad85f5d08c66 23-Oct-2010 Chet Haase <chet@google.com> Fix Caches singleton to avoid resource leaks

The declaration of Singleton objects must be in CPP files (not header
files) to avoid creating separate instances of what is supposedly a
single object.

Change-Id: Ie903384824a458b5572f3ce5b6cfb359c18a9c44
wui/Android.mk
wui/Caches.cpp
wui/Caches.h
9c937f3687968e1a07f2e061fca1ad64fa106c04 24-Oct-2010 Romain Guy <romainguy@android.com> Merge "Fix rendering issue with layers."
0175e01f54670d0133d131222826f7033e2e2c03 23-Oct-2010 Shih-wei Liao <sliao@google.com> Enable optimized bitcode that is also jitted faster.

Change-Id: I08832cfaf4e8465c16b445eeb1b82f72d874d0ef
s/Android.mk
s/rsScriptC.cpp
s/rslib.bc
c3db858de9fa152480b9cf53c8c0cb793a280722 21-Oct-2010 Jeff Brown <jeffbrown@google.com> Add unit tests for native input and fix bugs identified.

Fixed a bug where we would lose the first touch point when swiping out of
the virtual key area.

Fixed a bug where we would not send an ACTION_MOVE event in cases where
individual pointers went down/up and the remaining pointers actually moved.
This is important since many applications do not handle pointer movements
during ACTION_POINTER_DOWN or ACTION_POINTER_UP. In the case of
ACTION_POINTER_UP the movement was completely lost since all pointers were
dispatched using their old location rather than the new location.

Improved motion event validation to check for duplicate pointer ids.

Added an input source constant that was missing from the NDK api but
defined in the framework api.

Added a timestamp when reporting added/removed devices in EventHub.

Bug: 3070082
Change-Id: I3206a030f43b7616e2f48006e5a9d522c4d92e56
i/EventHub.cpp
i/InputDispatcher.cpp
i/InputReader.cpp
i/tests/Android.mk
i/tests/InputDispatcher_test.cpp
i/tests/InputReader_test.cpp
ae88e5e8e9cb6c9539314c4360c5b20f8ec1fefc 23-Oct-2010 Romain Guy <romainguy@android.com> Fix rendering issue with layers.

A change was made earlier in the renderer to not snap the current clip rect
on every clip operation. The clip rect must not be snapped to pixel boundaries
before being used for pixel precision operations. Some operations were doing
this correctly, others were not. For instance, a layer was always created by
rounding to the correct pixels, but composing a layer was done with a non
rounded clip, thus resulting in slightly odd behaviors.

Change-Id: I31c2cf0a343450470bcd449c3f13fe37648b9c7c
wui/OpenGLRenderer.cpp
wui/Rect.h
58ae6db4ff8a9d0910e1183ee8be9a038a2712a6 22-Oct-2010 Romain Guy <romainguy@android.com> Don't use two different variables to refer to mSnapshot.

Change-Id: Ie4a0616d2fe0b040ac14b734a9ddf77bf1f35b0c
wui/OpenGLRenderer.cpp
b0be86e08ea124c525eebc41f256a96ee4fc10cc 22-Oct-2010 Romain Guy <romainguy@android.com> Merge "Don't perform glCopyTextImage with coordinates outside the buffer."
ae517591d96be39f5f18a1716c856ade13a8bcc7 22-Oct-2010 Romain Guy <romainguy@android.com> Don't perform glCopyTextImage with coordinates outside the buffer.

Bug #3122179

Change-Id: I91ed397e9e553a8eeb69d82d0c5b1e49a3cdd5ff
wui/OpenGLRenderer.cpp
da36c84a9706b1a7a1052113dcec527d0c71156e 22-Oct-2010 Kenny Root <kroot@google.com> am 7ba8c44e: am 8ad30b5b: Merge "Initialized check in ZipFileRO::findEntryByName" into gingerbread

Merge commit '7ba8c44ef7ba22d83a670e50314d69d0ddce1b9c'

* commit '7ba8c44ef7ba22d83a670e50314d69d0ddce1b9c':
Initialized check in ZipFileRO::findEntryByName
7ba8c44ef7ba22d83a670e50314d69d0ddce1b9c 22-Oct-2010 Kenny Root <kroot@google.com> am 8ad30b5b: Merge "Initialized check in ZipFileRO::findEntryByName" into gingerbread

Merge commit '8ad30b5b7e380428701a44458393cbc2381f205b' into gingerbread-plus-aosp

* commit '8ad30b5b7e380428701a44458393cbc2381f205b':
Initialized check in ZipFileRO::findEntryByName
8ad30b5b7e380428701a44458393cbc2381f205b 22-Oct-2010 Kenny Root <kroot@google.com> Merge "Initialized check in ZipFileRO::findEntryByName" into gingerbread
b38d534873ca514f5a5230596c838aa37eca1568 21-Oct-2010 Jason Sams <rjsams@android.com> Fix refcounting bugs where the sys refcount
could be corrupted during async type creation.

Change-Id: If42828e92990598b0cb5da81c82ea513f94725f2

Fix stack object deletion bug.

Change-Id: I2c723aa5ad15e0c99dc9cd0cfbc7db80bace172a
s/RenderScript.h
s/rsAdapter.cpp
s/rsAllocation.cpp
s/rsElement.cpp
s/rsFont.cpp
s/rsMesh.cpp
s/rsObjectBase.cpp
s/rsObjectBase.h
s/rsProgram.cpp
s/rsProgramFragment.cpp
s/rsProgramRaster.cpp
s/rsProgramStore.cpp
s/rsProgramVertex.cpp
s/rsSampler.cpp
s/rsScript.cpp
s/rsScriptC.cpp
s/rsType.cpp
s/rsType.h
470ce098f82047304f78162646d65ed3a908e95e 22-Oct-2010 Kenny Root <kroot@google.com> am d7cd560a: am 1d79a9d9: Use correct size of GAMEPAD_KEYCODES

Merge commit 'd7cd560af506f75d07034c136bea09b409b4d408'

* commit 'd7cd560af506f75d07034c136bea09b409b4d408':
Use correct size of GAMEPAD_KEYCODES
d7cd560af506f75d07034c136bea09b409b4d408 22-Oct-2010 Kenny Root <kroot@google.com> am 1d79a9d9: Use correct size of GAMEPAD_KEYCODES

Merge commit '1d79a9d9f85f932a1fd6dcddba335450b65ba4e6' into gingerbread-plus-aosp

* commit '1d79a9d9f85f932a1fd6dcddba335450b65ba4e6':
Use correct size of GAMEPAD_KEYCODES
1d79a9d9f85f932a1fd6dcddba335450b65ba4e6 22-Oct-2010 Kenny Root <kroot@google.com> Use correct size of GAMEPAD_KEYCODES

Compute the actual number of indices in the GAMEPAD_KEYCODES instead of
the pure size in bytes.

Bug: 3121536
Change-Id: I71edbd8bf6eff2c8cc0ea5c6845362b3d1e06466
i/EventHub.cpp
0b224238781fdd6d11f76a30376bc1556e1d217a 22-Oct-2010 Kenny Root <kroot@google.com> Initialized check in ZipFileRO::findEntryByName

If a ZipFileRO object is uninitialized, the hash table will not have
been initialized. This condition wasn't checked in findEntryByName.

Bug: 3121109
Change-Id: Ib696e0e7e0cb4dd0fb2e456d6a847e5e8f4fe14e
tils/ZipFileRO.cpp
bdccfe4ac4b3c727febecd7443dda7828533e554 21-Oct-2010 Chet Haase <chet@google.com> Merge "Optimizing display lists by referencing pointers to resources instead of copying them"
5c13d89c1332fcc499379b9064b891187b75ca32 08-Oct-2010 Chet Haase <chet@google.com> Optimizing display lists by referencing pointers to resources instead of copying them

Change-Id: I81ad3551d74aa1e5bb64d69e33d2eb29a6c1eb6a
wui/Android.mk
wui/Caches.h
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLDebugRenderer.cpp
wui/OpenGLDebugRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/ResourceCache.cpp
wui/ResourceCache.h
wui/SkiaShader.h
385a753dead6ef15f2e30eae47f73e642b3ef7ed 21-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of 368fdba4 to master

Change-Id: I42b7b433c86a71a5da5db67109f056a280077c9d
4ceee5a6b0089ffbec75690b7284f80d481ab212 21-Oct-2010 Mathias Agopian <mathias@google.com> am 73655bd2: Merge "propagate RS context priority to EGLContext when possible. DO NOT MERGE." into gingerbread

Merge commit '73655bd2d303f8b3fe5c4bb0d8e4824361647381' into gingerbread-plus-aosp

* commit '73655bd2d303f8b3fe5c4bb0d8e4824361647381':
propagate RS context priority to EGLContext when possible. DO NOT MERGE.
73655bd2d303f8b3fe5c4bb0d8e4824361647381 21-Oct-2010 Mathias Agopian <mathias@google.com> Merge "propagate RS context priority to EGLContext when possible. DO NOT MERGE." into gingerbread
38311859e809118f2cba3597d056abffe4eb80c0 19-Oct-2010 James Dong <jdong@google.com> Camera framework change required for 0-memcpy recording

bug - 3042125

Change-Id: I46eb7a10b5394086b353fd73e4503beceeed76f1
amera/Camera.cpp
amera/ICamera.cpp
368fdba47a49f249aa4346edaf3f45291ca6a7ff 19-Oct-2010 Joe Onorato <joeo@google.com> am bdf1706a: Merge "Reduce logging." into gingerbread

Merge commit 'bdf1706ac680c0fe74765b8d6d34823b8ac05306' into gingerbread-plus-aosp

* commit 'bdf1706ac680c0fe74765b8d6d34823b8ac05306':
Reduce logging.
431bb2269532f2514861b908d5fafda8fa64da79 19-Oct-2010 Joe Onorato <joeo@google.com> Reduce logging.

Remember, the system and main logs are
- Shared resources
- Primarily for recording problems
- To be used only for large grained events during normal operation

Bug: 3104855
Change-Id: I136fbd101917dcbc8ebc3f96f276426b48bde7b7
tils/StreamingZipInflater.cpp
50c0f093d942a59d4e01b2c76d26c0e9d6ed796c 19-Oct-2010 Romain Guy <romainguy@google.com> Solve rendering issue with embedded WebViews.
Bug #3094017

The blending mode was not appropriately set after WebView released the
context.

Change-Id: Ib36d48e82c12f6d131dd5a0bcde9106925b8da63
wui/OpenGLRenderer.cpp
b8b200d10847dd91bcff7a576e401d7d21fff696 19-Oct-2010 Jeff Brown <jeffbrown@google.com> am f2c40603: am 7689dd49: Merge "Fix bug where home presses were not poking user activity." into gingerbread

Merge commit 'f2c406030874b355ca9e4e67cc0e3aff6103c23e'

* commit 'f2c406030874b355ca9e4e67cc0e3aff6103c23e':
Fix bug where home presses were not poking user activity.
f7c51552f038dab7ba64e38f35a5e7c52a4d72e8 19-Oct-2010 Alex Sakhartchouk <alexst@google.com> Merge "Some cleanup"
fb0c3aa596aba488d59d632281b5375d072abd49 19-Oct-2010 Shih-wei Liao <sliao@google.com> Merge "Remove unneeded inclusion of rs_math.rsh."
422266e43d0ba67339b18f46e4c20659456da70d 19-Oct-2010 Jeff Brown <jeffbrown@google.com> Merge "Add support for calibrating touch position."
511ee5f89fad45bd0456b1335b745f2b8d87641b 18-Oct-2010 Jeff Brown <jeffbrown@google.com> Add support for calibrating touch position.

Useful for tweaking touch screen alignment without having to modify the
kernel device driver x/y axis bounds.

Change-Id: I6ca43d3c138548f9dfb76aa33150a0c853698fb6
i/InputReader.cpp
98bfe5d02a81c15fff52570178a2edd830701665 19-Oct-2010 Alex Sakhartchouk <alexst@google.com> Some cleanup

Change-Id: Ie10746d2f77318d63101d919214e76f778159fa0
s/rsAllocation.cpp
s/rsContext.cpp
s/rsContextHostStub.h
s/rsFont.cpp
b9a8eb3f1239e460f2eb71b262aa98d9ad31ea94 19-Oct-2010 Shih-wei Liao <sliao@google.com> Remove unneeded inclusion of rs_math.rsh.

Change-Id: I7e9beb88c3b0fb88e30bdbabdde2a2529825dbef
s/scriptc/rs_graphics.rsh
f2c406030874b355ca9e4e67cc0e3aff6103c23e 19-Oct-2010 Jeff Brown <jeffbrown@google.com> am 7689dd49: Merge "Fix bug where home presses were not poking user activity." into gingerbread

Merge commit '7689dd4928d1cc4080e43f83a523521b5ecf44e5' into gingerbread-plus-aosp

* commit '7689dd4928d1cc4080e43f83a523521b5ecf44e5':
Fix bug where home presses were not poking user activity.
dbde527e9b4f171fdd8cb537f48c7de4e4840986 19-Oct-2010 Romain Guy <romainguy@google.com> Merge "Small cleanup."
2665b85b2bd08faabf7c520a622a0e4d3465245f 19-Oct-2010 Romain Guy <romainguy@google.com> Small cleanup.

Change-Id: I0e5b9154a2d93af793d62f462d68cb7c6c3f6d75
wui/Patch.cpp
wui/Patch.h
wui/PathCache.h
wui/utils/Compare.h
ab1c57593fdb32ebd25f02707fe38ac8ca083fac 18-Oct-2010 Romain Guy <romainguy@google.com> Merge "Use VBOs to render most geometries."
e2fe69edc009a0e0348e5351cf83062224e011ac 18-Oct-2010 Jeff Brown <jeffbrown@google.com> Fix bug where home presses were not poking user activity.

We now poke user activity twice: once upon dequeueing an event
for dispatch and then again just before we dispatch it. The second
poke is to compensate for the fact that it can take a few seconds to
identify the dispatch target (if the application is responding slowly)
but we want to keep the display from going to sleep for X amount of time
after the app gets a chance to actually receive the event. This mirrors
pre-Gingerbread behavior.

Removed some unnecessary code that filters user activity pokes when sending
events to KeyGuard. We don't need this because KeyGuard already tells the
power manager to disable user activity.

Bug: 3101397
Change-Id: I8c3a77601fdef8f584e84cfdd11aa79da0ff51db
i/InputDispatcher.cpp
03750a067e818ca7fbd0f590e2ff6a8fded21e6c 18-Oct-2010 Romain Guy <romainguy@google.com> Use VBOs to render most geometries.

Change-Id: I4360dc4fe5693ab425450c107282b2c22db4dca7
wui/Android.mk
wui/Caches.h
wui/Line.h
wui/Matrix.cpp
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Patch.cpp
wui/Patch.h
wui/PatchCache.cpp
wui/PathCache.h
wui/utils/Compare.h
e2a26e155b79a57b94125a605e7b33ef8eb6096b 18-Oct-2010 Stephen Hines <srhines@google.com> Adding new unit test for rsDebug().

Change-Id: I8a354e40640b83aca3148aa0cf13d3335ff37dd4
s/java/tests/src/com/android/rs/test/RSTestCore.java
s/java/tests/src/com/android/rs/test/UT_rsdebug.java
s/java/tests/src/com/android/rs/test/rsdebug.rs
2cd6f4709c6c260bfde999d7fe5364e88ee46b53 18-Oct-2010 Stephen Hines <srhines@google.com> Merge "Add support for rsDebug with 64-bit types."
195226a3c83be8f3b2cfaeab3e5db0b9165ef414 18-Oct-2010 Jeff Brown <jeffbrown@google.com> am 9e0e0543: am 36e65ffd: Merge "Fix a native crash in input dispatcher when windows are removed." into gingerbread

Merge commit '9e0e054388689fd618c84a283c28ee484477b44d'

* commit '9e0e054388689fd618c84a283c28ee484477b44d':
Fix a native crash in input dispatcher when windows are removed.
c52862edcfbf4ead5f63929111e84993c2ab8c4a 16-Oct-2010 Jeff Brown <jeffbrown@google.com> am 5f0cbfce: am c1e7b218: Merge "Improve input device calibration format." into gingerbread

Merge commit '5f0cbfcecc4db20f897507c826296b3aac70c592'

* commit '5f0cbfcecc4db20f897507c826296b3aac70c592':
Improve input device calibration format.
9e0e054388689fd618c84a283c28ee484477b44d 16-Oct-2010 Jeff Brown <jeffbrown@google.com> am 36e65ffd: Merge "Fix a native crash in input dispatcher when windows are removed." into gingerbread

Merge commit '36e65ffd16f2610dcec702e23d596fe4eb6b6c4a' into gingerbread-plus-aosp

* commit '36e65ffd16f2610dcec702e23d596fe4eb6b6c4a':
Fix a native crash in input dispatcher when windows are removed.
6ba052b4847d85831c38c9b8e2942cef4987e55b 16-Oct-2010 Jeff Brown <jeffbrown@google.com> am c1a564b1: Merge "Add support for secure system overlays. (DO NOT MERGE)" into gingerbread

Merge commit 'c1a564b108c511c0bdd699567c245b031930e718' into gingerbread-plus-aosp

* commit 'c1a564b108c511c0bdd699567c245b031930e718':
Add support for secure system overlays. (DO NOT MERGE)
cfa25f20ffdcb9fdd938ae6bf75f0f4a3b0820a6 16-Oct-2010 Jason Sams <rjsams@android.com> Merge "Fix header file to always inline stub functions."
e2cb1f005350cf1116d49dbe9456a2cafb1ec8dc 16-Oct-2010 Romain Guy <romainguy@google.com> Merge "Don't draw entirely transparent 9patch meshes."
ec13bf79d9474972e1737a13598b1f216b342726 16-Oct-2010 Jason Sams <rjsams@android.com> Fix header file to always inline stub functions.

Change-Id: I9999007c4d467d92d2f8ba5ad2a6f68fbb910959
s/scriptc/rs_graphics.rsh
054dc1840941665e32036f9523df51720ad069c8 16-Oct-2010 Romain Guy <romainguy@google.com> Don't draw entirely transparent 9patch meshes.

Change-Id: If3e62e18b8e0dbde8a22f8ede2889b86500a4dc2
wui/FontRenderer.cpp
wui/OpenGLRenderer.cpp
wui/PatchCache.cpp
3b2b354ec1ba070eae13391d004d97a3e1403050 15-Oct-2010 Jeff Brown <jeffbrown@google.com> Add support for secure system overlays.

Manual merge from Gingerbread.

This change adds a new window type for secure system overlays
created by the system itself from non-secure system overlays that
might be created by applications that have the system alert permission.
Secure views ignore the presence of secure system overlays.

Bug: 3098519
Change-Id: Id876736fd8bf332ff9a5428bde59f5268aa49c3a
i/InputDispatcher.cpp
af48cae6e59f579c20c3ecd08623214896e7923e 16-Oct-2010 Jeff Brown <jeffbrown@google.com> Fix a native crash in input dispatcher when windows are removed.

Bug: 3101826
Change-Id: I040838600a6105c8d9f3235025dc0a7b5b27da2e
i/InputDispatcher.cpp
3eee9de19f11a76b9efbfe0821e830e638c69fee 16-Oct-2010 Romain Guy <romainguy@google.com> Merge "Fix text rendering artifact."
9d13fe25f4f10b25776b1dc5c858f9ebb0b28b30 16-Oct-2010 Romain Guy <romainguy@google.com> Fix text rendering artifact.

Change-Id: I50f47207846e4208d363dde4e8f5f1a0f23d2d75
wui/OpenGLRenderer.cpp
2d3f159aa9622e05a18e7f93cecd57ad673955ae 15-Oct-2010 Jeff Brown <jeffbrown@google.com> Add support for secure system overlays. (DO NOT MERGE)

This change adds a new window type for secure system overlays
created by the system itself from non-secure system overlays that
might be created by applications that have the system alert permission.
Secure views ignore the presence of secure system overlays.

Bug: 3098519
Change-Id: I8f8398f4fdeb0469e5d71124c21bedf121bd8c07
i/InputDispatcher.cpp
497a92cc5ba2176b8a8484b0a7da040eac0e887b 13-Sep-2010 Jeff Brown <jeffbrown@google.com> Add keycodes and meta-key modifiers to support external keyboards.

Added new key maps for external keyboards. These maps are intended to
be shared across devices by inheriting the "keyboards.mk" product
makefile as part of the device's product definition.

One of the trickier changes here was to unwind some code in
MetaKeyKeyListener that assumed that only the low 8 bits of the meta key
state were actually used. The new code abandons bitshifts in favor
of simple conditionals that are probably easier to read anyways.
The special meta key state constants used by MetaKeyKeyListener
are now (@hide) defined in KeyEvent now so as to make it clearer that they
share the same code space even if those codes are not valid for KeyEvents.

The EventHub now takes care of detecting the appropriate key layout
map and key character map when the device is added and sets system
properties accordingly. This avoids having duplicate code in
KeyCharacterMap to probe for the appropriate key character map
although the current probing mechanism has been preserved for legacy
reasons just in case.

Added support for tracking caps lock, num lock and scroll lock and
turning their corresponding LEDs on and off as needed.

The key character map format will need to be updated to correctly support
PC style external keyboard semantics related to modifier keys.
That will come in a later change so caps lock doesn't actually do
anything right now except turn the shiny LEDs on and off...

Added a list of symbolic key names to KeyEvent and improved the toString()
output for debug diagnosis. Having this list in a central place in the
framework also allows us to remove it from Monkey so there is one less
thing to maintain when we add new keycodes.

Bug: 2912307
Change-Id: If8c25e8d50a7c29bbf5d663c94284f5f86de5da4
i/EventHub.cpp
i/InputReader.cpp
i/KeyCharacterMap.cpp
tils/String8.cpp
cd9afc3722a1edebf0e6f7172627930052c81ce4 15-Oct-2010 Raphael Moll <raphael@google.com> am 729503c2: am 848a2bc4: Merge "MinGW/Cygwin requires open() in O_BINARY mode." into gingerbread

Merge commit '729503c280e0d5b2621a8b7a6c93dd20fe1f5d0f'

* commit '729503c280e0d5b2621a8b7a6c93dd20fe1f5d0f':
MinGW/Cygwin requires open() in O_BINARY mode.
a617fdc65be94d0ff875090d45168eec354c919e 15-Oct-2010 Jeff Brown <jeffbrown@google.com> am 567db077: am 2d441e14: Merge "Make sure EventHub reports added/removed devices immediately." into gingerbread

Merge commit '567db07702f851f2e7fb1fb0021ce2871469183e'

* commit '567db07702f851f2e7fb1fb0021ce2871469183e':
Make sure EventHub reports added/removed devices immediately.
6568896117197216de4877a31c382c7769617a10 15-Oct-2010 Stephen Hines <srhines@google.com> Add support for rsDebug with 64-bit types.

Bug: 3099081
Change-Id: Ieb3af7757489876ef951be8527aa73f69e1481fd
s/rsScriptC_Lib.cpp
s/scriptc/rs_core.rsh
fcab0f5502410b975afe045354bbae31ccba68a5 15-Oct-2010 Kenny Root <kroot@google.com> am 8fda1636: am bdf8034c: Merge "OBB: use PBKDF2 for key generation." into gingerbread

Merge commit '8fda1636e3e35f060b9046294efd3c062a1fdb84'

* commit '8fda1636e3e35f060b9046294efd3c062a1fdb84':
OBB: use PBKDF2 for key generation.
10aca41e51934822dc492cb69b69cef37f42ad42 15-Oct-2010 Romain Guy <romainguy@google.com> Merge "Fix clipping issue in StackView."
e5ebcb0107a939395e03592fd44c746cd09e311d 15-Oct-2010 Romain Guy <romainguy@google.com> Fix clipping issue in StackView.

Change-Id: I7ec28f25c3993a2bd7ef6399ba1923839d239905
wui/Matrix.cpp
wui/OpenGLRenderer.cpp
afbcc82ae89c24e97295124a0bf890dff92fce7b 15-Oct-2010 Jason Sams <rjsams@android.com> Merge "Fix deadlock on RS teardown."
0d2b2d5e13ef4dcff89a28b4d6b25d5f0a05b96d 15-Oct-2010 Jason Sams <rjsams@android.com> Fix deadlock on RS teardown.

Change-Id: I34d2702b535e28e9519c7368fd8a942bfe0724bc
s/rsObjectBase.cpp
99e3fab534d3a489726665cb8c71edecd5798b04 15-Oct-2010 Mathias Agopian <mathias@google.com> am 5bfa3a34: am 011b5bcc: Merge "implement part of [3094280] New animation for screen on and screen off add support for screen on animation" into gingerbread

Merge commit '5bfa3a34eaef759c3ec4def76f646eb1c0bf997f'

* commit '5bfa3a34eaef759c3ec4def76f646eb1c0bf997f':
implement part of [3094280] New animation for screen on and screen off
5f0cbfcecc4db20f897507c826296b3aac70c592 15-Oct-2010 Jeff Brown <jeffbrown@google.com> am c1e7b218: Merge "Improve input device calibration format." into gingerbread

Merge commit 'c1e7b2182594aa0463c4a738cc8e7eea6777ef50' into gingerbread-plus-aosp

* commit 'c1e7b2182594aa0463c4a738cc8e7eea6777ef50':
Improve input device calibration format.
c1e7b2182594aa0463c4a738cc8e7eea6777ef50 15-Oct-2010 Jeff Brown <jeffbrown@google.com> Merge "Improve input device calibration format." into gingerbread
c6d282bb8223ed21666878f71c5a55013ee37805 15-Oct-2010 Jeff Brown <jeffbrown@google.com> Improve input device calibration format.

Added support for calibrating touch size for devices that report
size as an area measurement rather than as a width.
Fixed some bugs.

Bug: 3096045
Change-Id: I30a12e73752883516ed054f8af407204bca45814
i/InputReader.cpp
3b9c52ab8c1ab240d2299358d01a8efbe392d111 15-Oct-2010 Jason Sams <rjsams@android.com> Async type creation.

Change-Id: I4d98446fabbf7e8a98c97f85b573a58c8a0c58c2
s/RenderScript.h
s/rs.spec
s/rsAllocation.cpp
s/rsAllocation.h
s/rsContext.cpp
s/rsLocklessFifo.cpp
s/rsObjectBase.cpp
s/rsObjectBase.h
s/rsScriptC.cpp
s/rsType.cpp
s/rsType.h
d2a1ff003b9b1212c9ab4b5f679b5b097720a359 14-Oct-2010 Romain Guy <romainguy@google.com> Fix text rendering issue.

The local clip rect could be off by one pixel when a 3D transform
was applied to a text primitive. This would cause small rendering
glitches in Launcher in particular.

Change-Id: I1254f6a5838c26810cbe969b096679d40b8dd504
wui/OpenGLRenderer.cpp
wui/Snapshot.h
729503c280e0d5b2621a8b7a6c93dd20fe1f5d0f 14-Oct-2010 Raphael Moll <raphael@google.com> am 848a2bc4: Merge "MinGW/Cygwin requires open() in O_BINARY mode." into gingerbread

Merge commit '848a2bc4cc6eab0f1d0bc030616b9305df3aa7da' into gingerbread-plus-aosp

* commit '848a2bc4cc6eab0f1d0bc030616b9305df3aa7da':
MinGW/Cygwin requires open() in O_BINARY mode.
848a2bc4cc6eab0f1d0bc030616b9305df3aa7da 14-Oct-2010 Raphael Moll <raphael@google.com> Merge "MinGW/Cygwin requires open() in O_BINARY mode." into gingerbread
567db07702f851f2e7fb1fb0021ce2871469183e 14-Oct-2010 Jeff Brown <jeffbrown@google.com> am 2d441e14: Merge "Make sure EventHub reports added/removed devices immediately." into gingerbread

Merge commit '2d441e148502bb492816ef84837510397f77a039' into gingerbread-plus-aosp

* commit '2d441e148502bb492816ef84837510397f77a039':
Make sure EventHub reports added/removed devices immediately.
2d441e148502bb492816ef84837510397f77a039 14-Oct-2010 Jeff Brown <jeffbrown@google.com> Merge "Make sure EventHub reports added/removed devices immediately." into gingerbread
838c6a15783b3ca9adc1ab49b25043ee272f63de 14-Oct-2010 Alex Sakhartchouk <alexst@google.com> Merge "Changing scenegraph sample to use arrays."
a9b84229a3e9e0ae15e3e964985fac2314247be2 14-Oct-2010 Jeff Brown <jeffbrown@google.com> Make sure EventHub reports added/removed devices immediately.

Fixed a bug where EventHub would not report changes in devices
until the next event.

Bug: 3096147
Change-Id: Ie4c3e1d14d0ad806cfaa212611ce06034d1b94d4
i/EventHub.cpp
eb86aaaab34687a77454fa130b08788db1317d74 14-Oct-2010 Joe Onorato <joeo@google.com> am 9a12a3c8: am ba799098: Merge changes I76513387,I335fb671 into gingerbread

Merge commit '9a12a3c8d4bb20042cf69e07d268e3a04ac71f96'

* commit '9a12a3c8d4bb20042cf69e07d268e3a04ac71f96':
Remove dead code, and make the animation a setting.
turn off the electron beam
8fda1636e3e35f060b9046294efd3c062a1fdb84 14-Oct-2010 Kenny Root <kroot@google.com> am bdf8034c: Merge "OBB: use PBKDF2 for key generation." into gingerbread

Merge commit 'bdf8034c657147226b2390eef113ff841e0d6065' into gingerbread-plus-aosp

* commit 'bdf8034c657147226b2390eef113ff841e0d6065':
OBB: use PBKDF2 for key generation.
5c4d4da4b74aff0a47a1da566ed30594e07661b3 14-Oct-2010 Raphael Moll <raphael@google.com> MinGW/Cygwin requires open() in O_BINARY mode.

Alsso printf %zd is not supported on MinGW/Cygwin.

Change-Id: I03811dabb46e2b05dd1d8abcc0ff97b125c77d54
tils/ZipFileRO.cpp
4afdf666fdb034834c48445570ed9d6f4133fc71 14-Oct-2010 Romain Guy <romainguy@android.com> Color filters were ignored by the program cache fast path.

Change-Id: I08f2f02d356234a674be778d088e0558fd49c849
wui/ProgramCache.cpp
wui/ProgramCache.h
bdf8034c657147226b2390eef113ff841e0d6065 14-Oct-2010 Kenny Root <kroot@google.com> Merge "OBB: use PBKDF2 for key generation." into gingerbread
93d2361c6d294c390cb5c4a13bd1b88dcd465fd7 14-Oct-2010 Romain Guy <romainguy@google.com> Fix layer rendering glitch.

Change-Id: If2f987fe5526fc88743ca3e91edde4f8232ff658
wui/OpenGLRenderer.cpp
wui/Rect.h
3b1abba6bbc895d63da3e82e9b158c01bd12eddd 14-Oct-2010 Kenny Root <kroot@google.com> OBB: use PBKDF2 for key generation.

Switch to using PBKDF2 for the key generation for OBBs. Any previously
generated OBBs will stop being read correctly. A small pbkdf2gen program
is available to allow generation of appropriate keys with the salts.

Bug: 3059950
Change-Id: If4305c989fd692fd1150eb270dbf751e09c37295
tils/ObbFile.cpp
tils/tests/ObbFile_test.cpp
909cbaf8f92d69f507bbdba9e5aa960d1e6c7a1f 14-Oct-2010 Romain Guy <romainguy@google.com> Don't draw TextView's alpha layers when not needed.

Change-Id: Iedf42cbc62d727f18500c78fcccf2d081a761fec
wui/OpenGLRenderer.cpp
5d794412e3e429e47404395badcd11b0b8639e8b 14-Oct-2010 Romain Guy <romainguy@google.com> Small potential performance improvement for fonts rendering.

Change-Id: If59c1e7803b84340fbc8b31ce6171ef0e5dc6189
wui/FontRenderer.cpp
99bcdc52dcb365ed7d8cfa13540fb33fbcbbac9d 14-Oct-2010 Romain Guy <romainguy@google.com> Return identity matrix when rendering in an FBO.

Change-Id: I57438e745b30c8cfe16c269f3cafcd719049d705
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
cd4af421ca6b102cabd2cf1ff63488e086c32c44 14-Oct-2010 Jeff Brown <jeffbrown@google.com> am 4b255a23: am 03aa28fb: Merge "Improve the input policy handling a bit." into gingerbread

Merge commit '4b255a23041225103a6870e77a236f78c2816eda'

* commit '4b255a23041225103a6870e77a236f78c2816eda':
Improve the input policy handling a bit.
9f164aa9b39ddd42963f52ca47d1739ee4bb1e7d 14-Oct-2010 Jeff Brown <jeffbrown@google.com> am b05632aa: am a28d5aff: Merge "Fix a bug synthesizing cancelation events for motions." into gingerbread

Merge commit 'b05632aae37ea3a3573aabf10e6868733546de96'

* commit 'b05632aae37ea3a3573aabf10e6868733546de96':
Fix a bug synthesizing cancelation events for motions.
5bfa3a34eaef759c3ec4def76f646eb1c0bf997f 14-Oct-2010 Mathias Agopian <mathias@google.com> am 011b5bcc: Merge "implement part of [3094280] New animation for screen on and screen off add support for screen on animation" into gingerbread

Merge commit '011b5bcc0355338b7ff906656282a54ffaa04b5a' into gingerbread-plus-aosp

* commit '011b5bcc0355338b7ff906656282a54ffaa04b5a':
implement part of [3094280] New animation for screen on and screen off
fd14fb59584a3670a676ca014ba74f788734dfeb 14-Oct-2010 Kenny Root <kroot@google.com> am c3041432: am de846ac6: Merge "Change to new binder implementation for OBB" into gingerbread

Merge commit 'c30414329c381afba7bd23bdd0f1237fad0850a6'

* commit 'c30414329c381afba7bd23bdd0f1237fad0850a6':
Change to new binder implementation for OBB
0a9b54e88b9cbb30748b5f0b331aec3f3ef8d639 14-Oct-2010 Kenny Root <kroot@google.com> resolved conflicts for merge of 8bb7a1df to master

Change-Id: Ieec036f494a54eab74a27b954d1423bf981dd3f9
0726fd9e835579019f6b23ab50d7b45401e11dbe 14-Oct-2010 Jason Sams <rjsams@android.com> Merge "Begin hooking up SurfaceConfig."
11c8af9ded3a319635b4e91a639a616ec97fc7e3 14-Oct-2010 Jason Sams <rjsams@android.com> Begin hooking up SurfaceConfig.

Change-Id: I328138f29affbed11fcfb5e9ed0872d4ba22d241
s/RenderScript.h
s/rsContext.cpp
s/rsContext.h
s/rsProgramStore.cpp
9e401bcd88a0fdeea96f53cb776e5de7b5b084cb 13-Oct-2010 Alex Sakhartchouk <alexst@google.com> Changing scenegraph sample to use arrays.

Change-Id: Ifa454d503c1445efcad6e31243b65d75e62e3035
s/java/ModelViewer/src/com/android/modelviewer/SgTransform.java
s/java/ModelViewer/src/com/android/modelviewer/scenegraph.rs
s/java/ModelViewer/src/com/android/modelviewer/transform.rs
s/java/ModelViewer/src/com/android/modelviewer/transform_def.rsh
s/rsElement.cpp
2d2b803a92ba531cf6c4bb7042326653255b8780 13-Oct-2010 Mathias Agopian <mathias@google.com> implement part of [3094280] New animation for screen on and screen off
add support for screen on animation

Change-Id: If50cf52ae04b95b42da7d74cf7fa96d5cb54d238
urfaceflinger_client/ISurfaceComposer.cpp
79c92540877d6683290511617aac8e3108b68ad1 13-Oct-2010 Romain Guy <romainguy@google.com> Merge "Add a getNativeMatrix() API."
41030da16856c8869e1e51d4a0405432fa96614e 13-Oct-2010 Romain Guy <romainguy@google.com> Add a getNativeMatrix() API.

This API can be used by WebView to apply the appropriate transform
on its rendering.

Change-Id: I79aa39a29805f462fb08226370328815e74bdc52
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
d6edfbbb789548c573c827914f35f662e2713085 13-Oct-2010 Alex Sakhartchouk <alexst@google.com> Merge "Packing the struct to work around llvm bug."
c119493e01fb54108394a02c46b302f050de5ab6 13-Oct-2010 Alex Sakhartchouk <alexst@google.com> Packing the struct to work around llvm bug.

Change-Id: If94d6659df7e00b70c39619b05732046233cb196
s/java/ModelViewer/src/com/android/modelviewer/transform_def.rsh
eb07af687319a0f52c219c3c0c1b73162fce9d04 13-Oct-2010 Romain Guy <romainguy@google.com> Optimize layer clears.

Don't clear the entire texture when we use textures that are bigger
than the layer itself. This will save time during the glClear() calls.

Change-Id: I06f3259ba62affb3708ba69ea41418832c7e1a65
wui/OpenGLRenderer.cpp
8cbda423d0ac189d6d86c3288d6ea6333cfe99cf 13-Oct-2010 Romain Guy <romainguy@google.com> Merge "Tweak layers caching for better performance in Launcher."
e91080581f467d55913a8c5ab53dedc2dab2e5b6 13-Oct-2010 Romain Guy <romainguy@google.com> Tweak layers caching for better performance in Launcher.

Change-Id: Ia6e67699d98f69c8a93385b3ecbdd814c7b16921
wui/LayerCache.cpp
wui/LayerCache.h
wui/OpenGLRenderer.cpp
wui/Properties.h
290dcfb4e6824caa982bd14bfb5dcd5756adaeca 13-Oct-2010 Romain Guy <romainguy@google.com> Merge "Remove logging."
1f114a55b5eaaa81bd302c9ad851362512b61e2f 13-Oct-2010 Romain Guy <romainguy@google.com> Remove logging.

Change-Id: Ibcb11d704653d8875e22629ea39e4ee2ebce3c22
wui/PatchCache.h
84349e3ef7335fa1daa8927f4504bc1ddd5bdf84 13-Oct-2010 Romain Guy <romainguy@google.com> Merge "Optimize 9patch rendering."
4bb942083a0d4db746adf95349108dd8ef842e32 13-Oct-2010 Romain Guy <romainguy@google.com> Optimize 9patch rendering.

This change detects empty quads in 9patches and removes them from
the mesh to avoid unnecessary blending.

Change-Id: I4500566fb4cb6845d64dcb59b522c0be7a0ec704
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/Matrix.cpp
wui/OpenGLDebugRenderer.cpp
wui/OpenGLDebugRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Patch.cpp
wui/Patch.h
wui/PatchCache.cpp
wui/PatchCache.h
wui/PathCache.h
wui/utils/Compare.h
9a12a3c8d4bb20042cf69e07d268e3a04ac71f96 12-Oct-2010 Joe Onorato <joeo@google.com> am ba799098: Merge changes I76513387,I335fb671 into gingerbread

Merge commit 'ba799098608c7be8ff1e18adfa7dc1f452205a7e' into gingerbread-plus-aosp

* commit 'ba799098608c7be8ff1e18adfa7dc1f452205a7e':
Remove dead code, and make the animation a setting.
turn off the electron beam
2bc063fdb697574a58eddf12adf2cc301d6aab74 12-Oct-2010 Alex Sakhartchouk <alexst@google.com> Merge "Fixing font bug, initialization was done in the wrong order."
aab758e87991d1460ca94d4a5f22c0ef34641e2d 11-Oct-2010 Mathias Agopian <mathias@google.com> turn off the electron beam

Change-Id: I335fb6719f1d5a3f1c6f37a046fd1c2c4ed2bbc6
urfaceflinger_client/ISurfaceComposer.cpp
960ae15cf37fe31790e255521ee2045312e82d36 12-Oct-2010 Alex Sakhartchouk <alexst@google.com> Fixing font bug, initialization was done in the wrong order.

Change-Id: Icc7b932f25be1ca6e5423bba6a5cfc965f6c3341
s/rsFont.cpp
735821fccc181bdfbebd6f067296182130934e5d 12-Oct-2010 Romain Guy <romainguy@google.com> Merge "Simplify black texture fragment shader."
9db91243c5ace4421091557b76a0b1cbd2312fec 12-Oct-2010 Romain Guy <romainguy@google.com> Simplify black texture fragment shader.

Change-Id: If2d43f92f4c98ec128692761a670b0f31207a3c0
wui/ProgramCache.cpp
e28c8f286d9bd4c7b558d6ffb8bd2fb1226ada2e 12-Oct-2010 Kenny Root <kroot@google.com> Merge "Add API to check for emulated external storage"
c00972bb162779e52d1b0d8f662a9f6033bf9182 12-Oct-2010 Romain Guy <romainguy@google.com> Don't recreate a new texture every time we draw a layer.

Change-Id: I3c28aff5acffc7c6f1ac74805869725426c62d28
wui/OpenGLRenderer.cpp
e1ff214e32ed5c546a7603b07b054908c4d93312 12-Oct-2010 Kenny Root <kroot@google.com> Add API to check for emulated external storage

When the storage is emulated, we don't want to install ASEC containers
to it. This adds the API to check when the external storage is emulated
and uses it to check whether or not to install packages to the external
storage in an ASEC container.

Bug: 3024387
Change-Id: Ia0318aca9e4938a4897deaada5603a4c7c1d0f48
torage/IMountService.cpp
7d4cb2e1183285d171c36007897790069cd10ed3 12-Oct-2010 Alex Sakhartchouk <alexst@google.com> Merge "Fixing refcounting debug statements that've gotten bitrotten."
af55cc711abc51a24d1b33d0a34c55e877711405 12-Oct-2010 Alex Sakhartchouk <alexst@google.com> Fixing refcounting debug statements that've gotten bitrotten.

Change-Id: Ie93bf651b9e469b7b4e9cacd8f79b38d04012892
s/rsObjectBase.cpp
4b255a23041225103a6870e77a236f78c2816eda 12-Oct-2010 Jeff Brown <jeffbrown@google.com> am 03aa28fb: Merge "Improve the input policy handling a bit." into gingerbread

Merge commit '03aa28fb36589a3d601be08e75c08a24c4344d6f' into gingerbread-plus-aosp

* commit '03aa28fb36589a3d601be08e75c08a24c4344d6f':
Improve the input policy handling a bit.
3122e4488aa0749cbec9890ace22c366e35350c3 12-Oct-2010 Jeff Brown <jeffbrown@google.com> Improve the input policy handling a bit.

Fixed some issues with Monkeys turning off their own screens. Ook ook!
Added some more comments to explain what's going on.

Change-Id: Id2bc0466161a642a73ef7ef97725d1c81e984b12
i/InputDispatcher.cpp
2db76167b17262aa3e341cbc85c949d119a14aa6 12-Oct-2010 Mathias Agopian <mathias@google.com> propagate RS context priority to EGLContext when possible. DO NOT MERGE.

Change-Id: Ic9fa5c71324c629ba4cbb41ee4a9e4549810d05e
s/Android.mk
s/rsContext.cpp
26b6df74b9bcc693a5b57347d427b352cdc0541a 12-Oct-2010 Jeff Brown <jeffbrown@google.com> Merge "Track input state when transferring touch focus."
b05632aae37ea3a3573aabf10e6868733546de96 12-Oct-2010 Jeff Brown <jeffbrown@google.com> am a28d5aff: Merge "Fix a bug synthesizing cancelation events for motions." into gingerbread

Merge commit 'a28d5aff5466a55149b9e6f9cd908fcc225c25ff' into gingerbread-plus-aosp

* commit 'a28d5aff5466a55149b9e6f9cd908fcc225c25ff':
Fix a bug synthesizing cancelation events for motions.
9c9f1a3ba1bc19754e4d38cb27a537d4dfedc0fe 12-Oct-2010 Jeff Brown <jeffbrown@google.com> Track input state when transferring touch focus.

Copies the input state to the destination window and sends synthesic
cancelation events to the source window.

Change-Id: Ia75820b0d756ed5d6cd22dce7830251ac85141ed
i/InputDispatcher.cpp
a1160a798b688370bed3642a105dfeb7fba2f5f3 12-Oct-2010 Jeff Brown <jeffbrown@google.com> Fix a bug synthesizing cancelation events for motions.

Change-Id: I881c0fa16c1d22c4b1b6cca24deb0105405ff5b0
i/InputDispatcher.cpp
4231124c9df51727a42cb1c09777816797c912cb 12-Oct-2010 Jeff Brown <jeffbrown@google.com> Merge "Fix an event injection bug when the policy is bypassed."
d5d2b7382cd863dd5c92c99575fb345777f0c567 12-Oct-2010 Romain Guy <romainguy@google.com> Merge "Don't draw fully transparent views/primitives."
dbc26d2ba13f80a7590c57de2d80530d96832969 12-Oct-2010 Romain Guy <romainguy@google.com> Don't draw fully transparent views/primitives.

Change-Id: Icd7d8ef1f57b51a24faf32f7004125e6300d4fdc
wui/OpenGLRenderer.cpp
wui/ProgramCache.h
wui/Snapshot.h
e20c9e0264190f94324197a8271cf03811a4ca58 11-Oct-2010 Jeff Brown <jeffbrown@google.com> Fix an event injection bug when the policy is bypassed.

Added the concept of a "trusted" event to distinguish between events from
attached input devices or trusted injectors vs. other applications.
This change enables us to move certain policy decisions out of the
dispatcher and into the policy itself where they can be handled more
systematically.

Cherry pick of b931a1b4 from gingerbread into master.

Change-Id: I700a5f07b8b227878cea9437a289a45a245c0424
i/InputDispatcher.cpp
c30414329c381afba7bd23bdd0f1237fad0850a6 12-Oct-2010 Kenny Root <kroot@google.com> am de846ac6: Merge "Change to new binder implementation for OBB" into gingerbread

Merge commit 'de846ac659e8c14d898a3fa14bd0504b24096057' into gingerbread-plus-aosp

* commit 'de846ac659e8c14d898a3fa14bd0504b24096057':
Change to new binder implementation for OBB
dd8b0c90400a1c59d4d71d768c02eed961596bc8 12-Oct-2010 Jeff Brown <jeffbrown@google.com> am 41aabeb5: am 1e6a3a53: Merge "Added more robust tracking and cancelation of events." into gingerbread

Merge commit '41aabeb51305d19747687f246080f44fc2a74435'

* commit '41aabeb51305d19747687f246080f44fc2a74435':
Added more robust tracking and cancelation of events.
de846ac659e8c14d898a3fa14bd0504b24096057 12-Oct-2010 Kenny Root <kroot@google.com> Merge "Change to new binder implementation for OBB" into gingerbread
4a99ed897796bec95039496a66ed1be066b6294c 12-Oct-2010 Kenny Root <kroot@google.com> Change to new binder implementation for OBB

Change-Id: I3282df361a11fc37e94bc5ba4bd5860ae62a10e4
torage/IMountService.cpp
5d3f6073bfc62811f552a16be7d58483104a29a3 12-Oct-2010 Stephen Hines <srhines@google.com> Merge "Support for unsigned long and unsigned long long."
8bb7a1dfbb43dda49fb3c4f86181bcd7f969a832 12-Oct-2010 Kenny Root <kroot@google.com> am b4de3dca: Merge "OBB: rearrange to be entirely asynchronous" into gingerbread

Merge commit 'b4de3dca96b9ff18562062e181dcd8b83e641e45' into gingerbread-plus-aosp

* commit 'b4de3dca96b9ff18562062e181dcd8b83e641e45':
OBB: rearrange to be entirely asynchronous
f2e0681ada3ffe1de994a51dcebd6ef045d27434 12-Oct-2010 Jeff Brown <jeffbrown@google.com> am 1da8d4d1: Merge "Fix an event injection bug when the policy is bypassed." into gingerbread

Merge commit '1da8d4d1697cec871dea8c30dad67e90db10bde6' into gingerbread-plus-aosp

* commit '1da8d4d1697cec871dea8c30dad67e90db10bde6':
Fix an event injection bug when the policy is bypassed.
b4de3dca96b9ff18562062e181dcd8b83e641e45 12-Oct-2010 Kenny Root <kroot@google.com> Merge "OBB: rearrange to be entirely asynchronous" into gingerbread
af9d667ccf3e24058214cf4cc0a8aa8bc5100e3c 08-Oct-2010 Kenny Root <kroot@google.com> OBB: rearrange to be entirely asynchronous

Rearrange structure of MountService handling of OBBs to be entirely
asynchronous so we don't rely on locking as much. We still need the
locking to support dumpsys which has been improved to output all the
data structures for OBBs.

Added more tests to cover more of the error return codes.

Oh and fix a logic inversion bug.

Change-Id: I34f541192dbbb1903b24825889b8fa8f43e6e2a9
torage/IMountService.cpp
torage/IObbActionListener.cpp
20b4cf8cc7e59d84aaf9ff9b3bd42161cb1d4752 12-Oct-2010 Romain Guy <romainguy@google.com> Merge changes I9a5e01bc,If1caee31

* changes:
Optimize GLSL shaders.
Improve performance of linear gradients.
707b2f78ccaa09965d7e030fda3a883ce9b75ea8 12-Oct-2010 Romain Guy <romainguy@google.com> Optimize GLSL shaders.

Change-Id: I9a5e01bced63d8da0c61330a543a2b805388a59d
wui/OpenGLRenderer.cpp
wui/Program.cpp
wui/Program.h
wui/ProgramCache.cpp
wui/ProgramCache.h
b931a1b4183386ba840edc1bcc507eccf11b5cbe 11-Oct-2010 Jeff Brown <jeffbrown@google.com> Fix an event injection bug when the policy is bypassed.

Added the concept of a "trusted" event to distinguish between events from
attached input devices or trusted injectors vs. other applications.
This change enables us to move certain policy decisions out of the
dispatcher and into the policy itself where they can be handled more
systematically.

Change-Id: I4d56fdcdd31aaa675d452088af39a70c4e039970
i/InputDispatcher.cpp
52d836332f6aae74ed97fda1b53681f36710af64 12-Oct-2010 Stephen Hines <srhines@google.com> Support for unsigned long and unsigned long long.

Change-Id: I2f9cfb7f352e2e7e7fd49eac42a821c03b5fcb9f
s/java/tests/src/com/android/rs/test/UT_primitives.java
s/java/tests/src/com/android/rs/test/primitives.rs
1e1ebcb2d0bb1eaefa48a8d774beb0f459fe8b2c 12-Oct-2010 Stephen Hines <srhines@google.com> Merge "Test exported "long" type."
7537f856f9076a84db04d8de447f6527b67166fd 11-Oct-2010 Romain Guy <romainguy@google.com> Improve performance of linear gradients.

Change-Id: If1caee31fc045dea13a4c5c10f25f2ffd325c4f8
wui/ProgramCache.cpp
2332340b0e4b4202962b5307194addf44cf88236 11-Oct-2010 Stephen Hines <srhines@google.com> Test exported "long" type.

Change-Id: I1239aecf29f6d25ed975c8d026328366624d58b9
s/java/tests/src/com/android/rs/test/UT_primitives.java
s/java/tests/src/com/android/rs/test/primitives.rs
26ae3904e8050eae655722caf93ee5d3f0ab195a 11-Oct-2010 Alex Sakhartchouk <alexst@google.com> Update allocation from bitmap.
GL attribute cleanup in type.

Change-Id: I504dcf6744ad13d65e068e784b6608c999ab48c6
s/rs.spec
s/rsAllocation.cpp
s/rsElement.cpp
s/rsElement.h
s/rsType.cpp
s/rsType.h
031ec58cfc7a20927302a5300eba3f5fc1709b50 11-Oct-2010 Stephen Hines <srhines@google.com> Fix support for 64-bit integers.

Change-Id: I4e2146a5fda41f280ee3f6f685a34f3cff28f05e
s/java/tests/src/com/android/rs/test/UT_primitives.java
s/java/tests/src/com/android/rs/test/UnitTest.java
s/java/tests/src/com/android/rs/test/primitives.rs
s/rs.spec
s/rsScript.cpp
2222aa90031604e9752ebc2909303a84139b8b18 11-Oct-2010 Jason Sams <rjsams@android.com> Cleanup error message for null binding address.
Only print the debug if script debugging is enabled.

Change-Id: I72b9c2a73d49987a73b354442e9defec02b93bc6

Implement inner utiliy class to specify surface formats.
Remove boxed bitmap upload functions.

Change-Id: I3ff5ca59e53d02b9d75277afa947ea3d218459eb
s/java/Fountain/src/com/android/fountain/FountainView.java
s/java/ModelViewer/src/com/android/modelviewer/SceneGraphRS.java
s/java/ModelViewer/src/com/android/modelviewer/SceneGraphView.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModelRS.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModelView.java
s/java/Samples/src/com/android/samples/RsListView.java
s/java/Samples/src/com/android/samples/RsRenderStatesView.java
s/java/tests/src/com/android/rs/test/RSTestView.java
s/rs.spec
s/rsScript.cpp
s/rsScriptC.cpp
41aabeb51305d19747687f246080f44fc2a74435 10-Oct-2010 Jeff Brown <jeffbrown@google.com> am 1e6a3a53: Merge "Added more robust tracking and cancelation of events." into gingerbread

Merge commit '1e6a3a53fc4d56e3a0f86c8721dedfd46e738a32' into gingerbread-plus-aosp

* commit '1e6a3a53fc4d56e3a0f86c8721dedfd46e738a32':
Added more robust tracking and cancelation of events.
b699726018a0049665d8ad6b90dbc5af0e18f135 09-Oct-2010 Jeff Brown <jeffbrown@google.com> Added more robust tracking and cancelation of events.

This change fixes several issues where events would be dropped in the
input dispatch pipeline in such a way that the dispatcher could not
accurately track the state of the input device.

Given more robust tracking, we can now also provide robust cancelation
of input events in cases where an application might otherwise become
out of sync with the event stream due to ANR, app switch, policy decisions,
or forced focus transitions.

Pruned some of the input dispatcher log output.

Moved the responsibility for calling intercept*BeforeQueueing into
the input dispatcher instead of the input reader and added support for
early interception of injected events for events coming from trusted
sources. This enables behaviors like injection of media keys while
the screen is off, haptic feedback of injected virtual keys, so injected
events become more "first class" in a way.

Change-Id: Iec6ff1dd21e5f3c7feb80ea4feb5382bd090dbd9
i/InputDispatcher.cpp
i/InputReader.cpp
584ad9af405e891aebaf3f29b150a91c7d5bc4f1 10-Oct-2010 Jamie Gennis <jgennis@google.com> Merge "Move binder magic from the Surface class to GraphicBuffer."
1ef773ff9caf9c1b9ee32b634f1c80e9a065aa6a 07-Oct-2010 Jamie Gennis <jgennis@google.com> Move binder magic from the Surface class to GraphicBuffer.

- Register buffers with Gralloc when unflattening a GraphicBuffer (rather than
doing it in the Surface class).
- Add support for a GraphicBuffer that wraps an android_native_window_t*.

Change-Id: I029ac086111bbac800e5ca37eb505f558b718cd8
urfaceflinger_client/Surface.cpp
i/GraphicBuffer.cpp
4475c0edcc35b283a16c9b27033c8e83d8cf1496 10-Oct-2010 Jeff Brown <jeffbrown@google.com> am f10929fb: am a1bf0a06: Merge "Minor fix for InputReader support for non-touchscreen devices." into gingerbread

Merge commit 'f10929fb350395c21edd2cba7641479afe75e750'

* commit 'f10929fb350395c21edd2cba7641479afe75e750':
Minor fix for InputReader support for non-touchscreen devices.
d5da367024c36b317b101fc066a7a4cf992c7d58 10-Oct-2010 Jeff Brown <jeffbrown@google.com> am 22cb4ef8: am d577cfd7: Merge "Switch Looper back to using poll() instead of epoll()." into gingerbread

Merge commit '22cb4ef8ce9c4d5536ac5cee5c40b82bfa56ccc5'

* commit '22cb4ef8ce9c4d5536ac5cee5c40b82bfa56ccc5':
Switch Looper back to using poll() instead of epoll().
4c0c81a30733ba677c16db14a54349d80c642b5b 09-Oct-2010 Stephen Hines <srhines@google.com> Merge "Remove pragma for RS export variables."
c4e43d80b3cc026f7b7084de60de5c0b7d358720 09-Oct-2010 Romain Guy <romainguy@google.com> Merge "Move GenerationCache to the utils directory."
21b028a44f3e0bd9b0f0432b8b92c45f661d22a4 09-Oct-2010 Romain Guy <romainguy@google.com> Move GenerationCache to the utils directory.

Change-Id: I210ffa8f1d76a102bb7d971c649c20a74d03fbe6
wui/GenerationCache.h
wui/GradientCache.h
wui/PatchCache.cpp
wui/PathCache.h
wui/TextDropShadowCache.h
wui/TextureCache.h
wui/utils/GenerationCache.h
b154dfe757a533b5359467472a830b083a6b52ae 09-Oct-2010 Romain Guy <romainguy@google.com> Merge "Don't update 9patches on every frame."
2728f961614a385df1f056fc24803a9f65c90fab 09-Oct-2010 Romain Guy <romainguy@google.com> Don't update 9patches on every frame.

Change-Id: I7ffb2365f83e0453e7d0a0cdcb3fc9308b305238
wui/OpenGLRenderer.cpp
wui/Patch.h
wui/PatchCache.cpp
wui/PatchCache.h
wui/Properties.h
5a6d7ac2bdf70fdf571750979ea05972fc293f98 08-Oct-2010 Stephen Hines <srhines@google.com> Remove pragma for RS export variables.

Change-Id: Icfd958e8212843f4f1a6b64dd43ce63e09d00d7c
s/java/Fountain/src/com/android/fountain/fountain.rs
s/java/ImageProcessing/src/com/android/rs/image/threshold.rs
s/java/ModelViewer/src/com/android/modelviewer/scenegraph.rs
s/java/ModelViewer/src/com/android/modelviewer/simplemodel.rs
s/java/ModelViewer/src/com/android/modelviewer/transform.rs
s/java/Samples/src/com/android/samples/rslist.rs
s/java/Samples/src/com/android/samples/rsrenderstates.rs
s/java/tests/src/com/android/rs/test/fp_mad.rs
s/java/tests/src/com/android/rs/test/primitives.rs
s/java/tests/src/com/android/rs/test/rslist.rs
s/java/tests/src/com/android/rs/test/shared.rsh
s/java/tests/src/com/android/rs/test/test_root.rs
1cb9465372f9439afbe9d5400a16328e6d9bc8da 09-Oct-2010 Romain Guy <romainguy@google.com> Merge "Better cache for layers, reduce memory usage and increase framerate."
8550c4c7b5952b7a4e1e0ede95c9492d03099a13 09-Oct-2010 Romain Guy <romainguy@google.com> Better cache for layers, reduce memory usage and increase framerate.

Change-Id: I5ff864a361db4791bd5ff6be716f7ce692ef572d
wui/Android.mk
wui/GenerationCache.h
wui/Layer.h
wui/LayerCache.cpp
wui/LayerCache.h
wui/OpenGLRenderer.cpp
wui/Properties.h
wui/utils/SortedList.h
wui/utils/SortedListImpl.cpp
wui/utils/SortedListImpl.h
6f91cb6af7a8b20e3e001f90406e27f4580a1ccd 09-Oct-2010 Alex Sakhartchouk <alexst@google.com> Removing fixed size arrays.

Change-Id: I5c65b29a197013de2517cfb6dbe7abb9e24a688b
s/rsScript.cpp
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC.h
s/rsType.cpp
s/rsType.h
708e04ff413ee5c9b2700de1d83391704e0d2292 08-Oct-2010 Shih-wei Liao <sliao@google.com> Move rsDebug from rs_math.rsh to rs_core.rsh: rsDebug is more like core functionalities instead of math functionalities. Also portions of rsDebug implementation has been in rs_core.rsh already.
Add #define guard for rs_types.rsh to prevent multiple inclusion.

Change-Id: I1db6dac9825c2618db3660e22c8791aff08d6243
s/scriptc/rs_core.rsh
s/scriptc/rs_math.rsh
s/scriptc/rs_types.rsh
ecd31740a00f8fb07090209cd979257c38cbcc92 08-Oct-2010 Romain Guy <romainguy@google.com> Merge "Add 3D transforms support to all gradients."
f10929fb350395c21edd2cba7641479afe75e750 08-Oct-2010 Jeff Brown <jeffbrown@google.com> am a1bf0a06: Merge "Minor fix for InputReader support for non-touchscreen devices." into gingerbread

Merge commit 'a1bf0a06b26ecc039adfdb98eab6fb984d5d5571' into gingerbread-plus-aosp

* commit 'a1bf0a06b26ecc039adfdb98eab6fb984d5d5571':
Minor fix for InputReader support for non-touchscreen devices.
22cb4ef8ce9c4d5536ac5cee5c40b82bfa56ccc5 08-Oct-2010 Jeff Brown <jeffbrown@google.com> am d577cfd7: Merge "Switch Looper back to using poll() instead of epoll()." into gingerbread

Merge commit 'd577cfd73a223279f9a5af698f55edd38a3fe4db' into gingerbread-plus-aosp

* commit 'd577cfd73a223279f9a5af698f55edd38a3fe4db':
Switch Looper back to using poll() instead of epoll().
14830948d02f768c41b97b7a8d15e1b3cab78267 08-Oct-2010 Romain Guy <romainguy@google.com> Add 3D transforms support to all gradients.

Change-Id: I61409edd00dab3a11684a3f5e4f7df0afc734758
wui/ProgramCache.cpp
wui/SkiaShader.cpp
wui/SkiaShader.h
8da727a1aa28205b9fb8acf63808ce1543bbf00e 07-Oct-2010 Jeff Brown <jeffbrown@google.com> Minor fix for InputReader support for non-touchscreen devices.

Change-Id: I2256e37dd1c6f3836f82786aae14ee5d0c98f4c6
i/InputReader.cpp
415d8c38199e258dfce92cdb0c69e056b3b51ef8 06-Oct-2010 Jeff Brown <jeffbrown@google.com> Switch Looper back to using poll() instead of epoll().

Added a couple of micro-optimizations to avoid calling wake() unnecessarily
and reduce JNI overhead slightly.

Fixed a minor issue where we were not clearing the "next" field of Messages
returned by the MessageQueue so the Message would hold on to its successor
and potentially prevent the GC from collecting it if the message were leaked
somehow.

Change-Id: I488d29417ce0cdd7d0e447cda76ec978ef7f811c
tils/Looper.cpp
tils/tests/Looper_test.cpp
928b5bfa7db23cddc93624a6ff31ff208e8b24bf 07-Oct-2010 Jeff Brown <jeffbrown@google.com> am 56364bcd: am 78d15acf: Merge "Make secure views tolerate IME overlays." into gingerbread

Merge commit '56364bcd0d1a1b064db3e83fdb64f948ce5c2ad7'

* commit '56364bcd0d1a1b064db3e83fdb64f948ce5c2ad7':
Make secure views tolerate IME overlays.
b8f69ab7c6628943dd04e32f9825f600453d7170 07-Oct-2010 Stephen Hines <srhines@google.com> Merge "Add RS testing for long and long long."
1d73e57a044a83d8a4c32ab1e6c9ccfcc3f708d6 07-Oct-2010 Stephen Hines <srhines@google.com> Add RS testing for long and long long.

Change-Id: I42716b1a273c79103474b2e96441e7e3eac020b9
s/java/tests/src/com/android/rs/test/primitives.rs
e743bd2bac1ed8a04d32def6e6ccfa5c9c180458 07-Oct-2010 Romain Guy <romainguy@google.com> Merge "Don't clear the framebuffer when not needed."
6b7bd24659fb175fe1f0e97c86c18969918b496a 07-Oct-2010 Romain Guy <romainguy@google.com> Don't clear the framebuffer when not needed.
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLDebugRenderer.cpp
wui/OpenGLDebugRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
499f518400d54f2f14753a674edd95c5bb11acfd 07-Oct-2010 Mathias Agopian <mathias@google.com> am ff04e97f: am f4619308: Merge "fix [2835280] Add support for cancelling buffers to ANativeWindow" into gingerbread

Merge commit 'ff04e97faf75c435e453d4c1caf7eeac8b9c1ceb'

* commit 'ff04e97faf75c435e453d4c1caf7eeac8b9c1ceb':
fix [2835280] Add support for cancelling buffers to ANativeWindow
a6983b4ee5def8ee4951213d7fcc8b90149605af 07-Oct-2010 Romain Guy <romainguy@google.com> Merge "Apply 3D transformations to gradient shaders."
e3095e0c1e2a4a4f34f741aa386eae56536ca5aa 07-Oct-2010 Romain Guy <romainguy@google.com> Apply 3D transformations to gradient shaders.

This fixes only linear gradients. Sweep and radial gradients, as well as
bitmap shaders, will be fixed in a future commit.

Change-Id: I4eee4ff62e9bbf3b9339fc111a780167449ecfef
wui/ProgramCache.cpp
wui/SkiaShader.cpp
wui/SkiaShader.h
38d509697c7d1f989509281cbd9cfaacf9a20ac3 07-Oct-2010 Alex Sakhartchouk <alexst@google.com> Merge "changing vec4 to vec2 for perf reasons."
d2091639be426574c04f74969fe553162d7a51c9 06-Oct-2010 Alex Sakhartchouk <alexst@google.com> changing vec4 to vec2 for perf reasons.

Change-Id: Ic885a6dc697af4fd82e184158772863673f041bd
s/java/Samples/res/raw/multitexf.glsl
s/rsFont.cpp
s/rsProgramFragment.cpp
s/rsProgramVertex.cpp
1e14f49d06b871d8101e33c47ba34b87c3c8089d 06-Oct-2010 Romain Guy <romainguy@google.com> Merge "Optimize saveLayer() when the clip flag is set."
eb99356a0548684a501766e6a524529ab93304c8 06-Oct-2010 Romain Guy <romainguy@google.com> Optimize saveLayer() when the clip flag is set.

This speeds up applications, especially Launcher.
wui/FboCache.cpp
wui/FboCache.h
wui/GenerationCache.h
wui/Layer.h
wui/LayerCache.cpp
wui/LayerCache.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Properties.h
wui/Snapshot.h
4f65ea60555ef01e6ca0cd64acc0ef698640c853 06-Oct-2010 Kenny Root <kroot@google.com> am bfa33b94: am f84a5918: Merge "Use pread() in ZipFileRO for Linux" into gingerbread

Merge commit 'bfa33b9484e2c0a019ab81f30261b9696df23a9b'

* commit 'bfa33b9484e2c0a019ab81f30261b9696df23a9b':
Use pread() in ZipFileRO for Linux
572ce01e9e0b72a3eb9f033ae32e15c3f36b8673 06-Oct-2010 Vasu Nori <vnori@google.com> Merge "turn off some useless messages"
b7e2c783af9753da65d08924a622560829ba2dbb 06-Oct-2010 Vasu Nori <vnori@google.com> turn off some useless messages

Change-Id: I5ed5696cd052b70e7cf7b872205470cd56fada90
inder/CursorWindow.cpp
eccce09f1ed5d3704601e4dad0ed9ca4184849a9 06-Oct-2010 Alex Sakhartchouk <alexst@google.com> Merge "Adding average fps counter. Removing rsLight from libRS"
10bc36522592179622a0fa7b7f6fffba5907fbf5 06-Oct-2010 Romain Guy <romainguy@google.com> Merge "Add support for paletted textures."
7adaf3d1aa18c7e521f7154e545fe52d329763c3 05-Oct-2010 Romain Guy <romainguy@google.com> Add support for paletted textures.

Change-Id: I36e6069bd58f78c609cdd1f3e4560c98f128f48e
wui/TextureCache.cpp
wui/TextureCache.h
68159aabb3d116ec06671fef3900be6fab2de502 05-Oct-2010 Jason Sams <rjsams@android.com> Merge "Implement allocation resizing."
5edc608a0749ed4b7074b5c1243043eb722c3c31 05-Oct-2010 Jason Sams <rjsams@android.com> Implement allocation resizing.

Change-Id: Ie38d42419d595cec730a8721cc1321c5edb6b4d6
s/rs.spec
s/rsAllocation.cpp
s/rsAllocation.h
s/rsType.cpp
s/rsType.h
76322af2a6c109a79431f019dcef6e038c030686 05-Oct-2010 Alex Sakhartchouk <alexst@google.com> Adding average fps counter.
Removing rsLight from libRS

Change-Id: I8622efd10619dc120d37f3a12122e9c7fc34ff2e
s/Android.mk
s/RenderScript.h
s/RenderScriptEnv.h
s/rsContext.cpp
s/rsContext.h
s/rsContextHostStub.h
s/rsFileA3D.cpp
s/rsFont.cpp
s/rsLight.cpp
s/rsLight.h
s/rsVertexArray.h
56364bcd0d1a1b064db3e83fdb64f948ce5c2ad7 05-Oct-2010 Jeff Brown <jeffbrown@google.com> am 78d15acf: Merge "Make secure views tolerate IME overlays." into gingerbread

Merge commit '78d15acfb20269ce263ce19514a2c0e7a98409e2' into gingerbread-plus-aosp

* commit '78d15acfb20269ce263ce19514a2c0e7a98409e2':
Make secure views tolerate IME overlays.
cd1b8d3665fcab89e28592838cfba1a09bc8202a 05-Oct-2010 Alex Sakhartchouk <alexst@google.com> Merge "Adding text metrics to renderscript."
19dfc83c376d8f5ff3b128ee4c675790cffbc02d 05-Oct-2010 Jeff Brown <jeffbrown@google.com> Make secure views tolerate IME overlays.

Change-Id: I3cf09b9d91045f4d9c558b4aace482a7b0bbd3d8
i/InputDispatcher.cpp
10825a07ae3a7520110a5fb642a6c8745d7b3956 05-Oct-2010 Alex Sakhartchouk <alexst@google.com> Adding text metrics to renderscript.

Change-Id: Ica460525243d714a278e4ad5e436af43e1008e0c
s/java/Samples/src/com/android/samples/RsRenderStatesRS.java
s/java/Samples/src/com/android/samples/rsrenderstates.rs
s/rsContext.cpp
s/rsFont.cpp
s/rsFont.h
s/rsScriptC_LibGL.cpp
s/scriptc/rs_graphics.rsh
ff04e97faf75c435e453d4c1caf7eeac8b9c1ceb 05-Oct-2010 Mathias Agopian <mathias@google.com> am f4619308: Merge "fix [2835280] Add support for cancelling buffers to ANativeWindow" into gingerbread

Merge commit 'f461930872beb4362998642c115691bdd2e94617' into gingerbread-plus-aosp

* commit 'f461930872beb4362998642c115691bdd2e94617':
fix [2835280] Add support for cancelling buffers to ANativeWindow
8ddd2c72ee7dd6f45e5375a197774b8671b982b7 02-Oct-2010 Mathias Agopian <mathias@google.com> fix [2835280] Add support for cancelling buffers to ANativeWindow

There is a new ANativeWindow::cancelBuffer() API that can be used to
cancel any dequeued buffer, BEFORE it's been enqueued. The buffer is
returned to the list of availlable buffers. dequeue and cancel are not
mutually thread safe, they must be called from the same thread or
external synchronization must be used.

Change-Id: I86cc7985bace8b6a93ad2c75d2bef5c3c2cb4d61
urfaceflinger_client/SharedBufferStack.cpp
urfaceflinger_client/Surface.cpp
bba3b8efbe7dc9dd6fa326103ef7ddefc28d5ba5 05-Oct-2010 Mathias Agopian <mathias@google.com> am 19058877: Merge "refactored screenshot code" into gingerbread

Merge commit '19058877df9bf94f197a72855f810f7f6bf8d068' into gingerbread-plus-aosp

* commit '19058877df9bf94f197a72855f810f7f6bf8d068':
refactored screenshot code
19058877df9bf94f197a72855f810f7f6bf8d068 05-Oct-2010 Mathias Agopian <mathias@google.com> Merge "refactored screenshot code" into gingerbread
597c7f67b5f2491c6098a1de241a3f0fd274688a 29-Sep-2010 Mathias Agopian <mathias@google.com> refactored screenshot code

the core screenshot function now can capture the screen at any lower resolution
performing bilinear filtering.

we also now have some client code to interface with the screenshot service.

it's now possible to request a screenshot at a lower resolution.

Change-Id: I33689bba98507ab928d0898b21596d0d2fe4b953
urfaceflinger_client/ISurfaceComposer.cpp
urfaceflinger_client/SurfaceComposerClient.cpp
bdb801ca993bcccbf2a4c2401d1720c3fa523777 05-Oct-2010 Romain Guy <romainguy@google.com> Remove logs to reduce logcat spam.

Change-Id: I5fc295b05b5d82bb86827b88e94dd51e8bcdc7d3
wui/OpenGLRenderer.cpp
11fd654a90359043e17ac78c1a3d6578c38b5c42 05-Oct-2010 Romain Guy <romainguy@google.com> Reorder logs.

Change-Id: I4adbd53662e1f509c860898c8ff9d19eaabd6d5b
wui/Caches.h
bfa33b9484e2c0a019ab81f30261b9696df23a9b 05-Oct-2010 Kenny Root <kroot@google.com> am f84a5918: Merge "Use pread() in ZipFileRO for Linux" into gingerbread

Merge commit 'f84a5918f5e0572c0280fa705970ef7459b45393' into gingerbread-plus-aosp

* commit 'f84a5918f5e0572c0280fa705970ef7459b45393':
Use pread() in ZipFileRO for Linux
259ec46e8e80a9f1d0b5c7a3865a498110a7f11b 04-Oct-2010 Kenny Root <kroot@google.com> Use pread() in ZipFileRO for Linux

AssetManager instances are created by zygote and passed to all its
children so that they don't have to individually open
frameworks-res.apk. This creates a problem for determining the current
file offset when using lseek() on those files, because you can't
guarantee the cross-process locking of a mutex. Luckily, Linux
implements pread() to get around this suckiness.

The problem is that only Linux implements this, so we have to keep the
old locking for use on host builds with aapt and friends. aapt doesn't
have this same problem of sharing file descriptors across forked
processes, so we can keep the local AutoMutex to protect accesses of
those files.

Change-Id: Ibe9f11499a53fe345f50fbaea438815ec0fd363e
tils/ZipFileRO.cpp
3b3e457c270a4bc5fe3047e815b5867d99b36f8a 04-Oct-2010 Romain Guy <romainguy@google.com> Snap the clip rectangle to pixel boundaries.

Change-Id: Iac2765303552f385995fe46e219af456e0501da7
wui/Snapshot.h
e8cb9c14309b0f01c0159efdf9a7198f44a62642 04-Oct-2010 Romain Guy <romainguy@google.com> Apply bilinear filtering on text only when necessary.

Change-Id: Ic903f4b5d30e9c92528c6291941896efe4729ee3
wui/FontRenderer.cpp
wui/FontRenderer.h
wui/Matrix.cpp
wui/Matrix.h
wui/OpenGLRenderer.cpp
6d95c0d941fa0d9ea50b74e60baf82956a4d4452 04-Oct-2010 Kenny Root <kroot@google.com> am ac754073: am b58b2714: Merge "ZipFileRO: moar logging and wrap close" into gingerbread

Merge commit 'ac7540733cafcca5bdb1842e1ebcb396ba064583'

* commit 'ac7540733cafcca5bdb1842e1ebcb396ba064583':
ZipFileRO: moar logging and wrap close
ac7540733cafcca5bdb1842e1ebcb396ba064583 04-Oct-2010 Kenny Root <kroot@google.com> am b58b2714: Merge "ZipFileRO: moar logging and wrap close" into gingerbread

Merge commit 'b58b27142a936aa76897a7040c08b8a0989a685b' into gingerbread-plus-aosp

* commit 'b58b27142a936aa76897a7040c08b8a0989a685b':
ZipFileRO: moar logging and wrap close
b58b27142a936aa76897a7040c08b8a0989a685b 04-Oct-2010 Kenny Root <kroot@google.com> Merge "ZipFileRO: moar logging and wrap close" into gingerbread
4fd446f7b7e55dec61f15bcba8f9984af49b9c31 30-Sep-2010 James Dong <jdong@google.com> Video size retrieval/configuration support in camera hal

This is the first part of the camera hal change required for
0-memcpy of input video frames for video recording.

o removed check in setVideoSize()/getVideoSize() for impl consistency

Change-Id: I01274a62b9f9eaf32154d98f8d0bfedacf645698
amera/CameraParameters.cpp
a07139d92321c999e560c0b4d019a538c99a2532 03-Oct-2010 Romain Guy <romainguy@android.com> Merge "Initialize font texture cache."
1de1083e98cde9bdd5e8539dbc54fdea6531906e 03-Oct-2010 Romain Guy <romainguy@android.com> Initialize font texture cache.

Now that text is renderer using bilinear filtering, each character is surrounded by
a 1 pixel border. This border needs to be initialized to a transparent value.

Change-Id: I26d3195db4bd576ac1f2da4c8f8e4dd18768bf12
wui/FontRenderer.cpp
a4d45cda697dbd8fa164766b87163d1b0469bd81 02-Oct-2010 Jeff Brown <jeffbrown@google.com> am ea58d1ba: am e951ef07: Merge "Wait for initial device scan to finish before updating config." into gingerbread

Merge commit 'ea58d1bac2960c1794f048bfa5d1a60b1a3d23a1'

* commit 'ea58d1bac2960c1794f048bfa5d1a60b1a3d23a1':
Wait for initial device scan to finish before updating config.
0f5f2e4c27612e2cda231473aec0c06838ff3750 02-Oct-2010 Jeff Brown <jeffbrown@google.com> am e11b76d3: am f6295b35: Merge "Minor logging changes to input dispatcher to help with debugging." into gingerbread

Merge commit 'e11b76d3efb056edea301d53a354d0730adf3520'

* commit 'e11b76d3efb056edea301d53a354d0730adf3520':
Minor logging changes to input dispatcher to help with debugging.
ea58d1bac2960c1794f048bfa5d1a60b1a3d23a1 02-Oct-2010 Jeff Brown <jeffbrown@google.com> am e951ef07: Merge "Wait for initial device scan to finish before updating config." into gingerbread

Merge commit 'e951ef07dd8cb36ec0e127e80f5d558b8a2d6125' into gingerbread-plus-aosp

* commit 'e951ef07dd8cb36ec0e127e80f5d558b8a2d6125':
Wait for initial device scan to finish before updating config.
e11b76d3efb056edea301d53a354d0730adf3520 02-Oct-2010 Jeff Brown <jeffbrown@google.com> am f6295b35: Merge "Minor logging changes to input dispatcher to help with debugging." into gingerbread

Merge commit 'f6295b35db7a7c40d4fb1c981e231bebcf13e2ba' into gingerbread-plus-aosp

* commit 'f6295b35db7a7c40d4fb1c981e231bebcf13e2ba':
Minor logging changes to input dispatcher to help with debugging.
7342bb9693f480f6c713b4a4f82a9ad9131cd667 02-Oct-2010 Jeff Brown <jeffbrown@google.com> Wait for initial device scan to finish before updating config.

This change narrows the opportunity for a race condition setting the
resource Configuration while devices are being updated.

Change-Id: I58efa563f4129ab0fce7108511d16a99dff7e451
i/EventHub.cpp
i/InputReader.cpp
6cb241f9024c6923715cf4e9eeaf803a7d258750 02-Oct-2010 Kenny Root <kroot@google.com> ZipFileRO: moar logging and wrap close

There is apparently still a race upon reading the entry Local File
Header that can't be tracked down, so move the LFH check inside the
mutex-protected block so we can call lseek again to see where we are
when we log an error.

Also, close() can fail so use TEMP_FAILURE_RETRY on it so we don't
unwittingly leak file descriptors when Mean Mr. EINTR comes a-knocking.

Change-Id: I753abad0bd882fe28f7281c406fa76f64393ef4c
tils/ZipFileRO.cpp
f2f487183052865d50c004a835360be1728b5a52 02-Oct-2010 Jeff Brown <jeffbrown@google.com> Minor logging changes to input dispatcher to help with debugging.

Added dumpsys reporting to EventHub.
Made the formatting a bit clearer.
Added 'Locked' suffix to some internal methods of EventHub.

Change-Id: Ic449560bcce378f6361895d27c66854e9724abb0
i/EventHub.cpp
i/InputDispatcher.cpp
i/InputReader.cpp
efb8a3d6e058c8bc90bb9da6c58dde453f359851 02-Oct-2010 Jeff Brown <jeffbrown@google.com> am 57fa3e8b: am 9e32a438: Merge "Support haptic feedback for virtual keys defined in key layout." into gingerbread

Merge commit '57fa3e8b4c94125ddb5be015dd7fbde4a458894f'

* commit '57fa3e8b4c94125ddb5be015dd7fbde4a458894f':
Support haptic feedback for virtual keys defined in key layout.
3eaf6e961b3cd3cc3a8ef0d643947cc616bfa800 02-Oct-2010 Romain Guy <romainguy@google.com> Merge "Apply bilinear filtering to text."
7975fb6d12cb1eb96b75e3a563627cd4c4081bd6 02-Oct-2010 Romain Guy <romainguy@google.com> Apply bilinear filtering to text.

Change-Id: I2c81ad657ee2a11a2139e0b11ae3749db54c0749
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/FontRenderer.cpp
wui/FontRenderer.h
57fa3e8b4c94125ddb5be015dd7fbde4a458894f 02-Oct-2010 Jeff Brown <jeffbrown@google.com> am 9e32a438: Merge "Support haptic feedback for virtual keys defined in key layout." into gingerbread

Merge commit '9e32a438fd87180692da55197972ecddb1a731d9' into gingerbread-plus-aosp

* commit '9e32a438fd87180692da55197972ecddb1a731d9':
Support haptic feedback for virtual keys defined in key layout.
3bf3ea0d839010cc9e0e5a6bd51c325d375f679d 02-Oct-2010 Alex Sakhartchouk <alexst@google.com> Fix for bug 3053078
Font gamma correction to match with lib HWUI.

Change-Id: I329a2f97058f4929b96724c9df39fbfad4243b33
s/rsFont.cpp
s/rsFont.h
0eaf3931a31c29f3a3883aab426b595c231c2a58 01-Oct-2010 Jeff Brown <jeffbrown@google.com> Support haptic feedback for virtual keys defined in key layout.

Change-Id: I83e4108a87332692e03791dc066206becbc7941f
i/InputReader.cpp
feede2aee6fe3e721ee71ffc35b277f1d9260e03 01-Oct-2010 Alex Sakhartchouk <alexst@google.com> fixing bugs 3053960, 3044804, 3044798
shader cleanup and removing unnecessary state setup.

Change-Id: Ibddf2ad3a26bb983fc43bdeb58b1cec6224920b4
s/rsContext.cpp
s/rsContext.h
s/rsProgram.cpp
s/rsProgramFragment.cpp
s/rsProgramVertex.cpp
s/rsScriptC_LibGL.cpp
s/rsShaderCache.cpp
s/rsShaderCache.h
2a471bb690c20533ccf20246be968f77c867c467 01-Oct-2010 Mathias Agopian <mathias@google.com> Merge "refactored screenshot code"
0bb5667b4ef91fefd0500fae0186789d15d54e0e 01-Oct-2010 Romain Guy <romainguy@android.com> Fix INVALID_OPERATION error with layers rendering.

This change is a workaround for a driver bug that causes an INVALID_OPERATION
to be thrown on every glCopyTexSubImage() call. This change also adds a new
test for gradients local matrices.

Change-Id: I41b7437481026702d0a3a9677f099b4557c0a84e
wui/Layer.h
wui/LayerCache.cpp
wui/OpenGLRenderer.cpp
37ece16cdc87b33c022986a66ae1c4cc50e65936 01-Oct-2010 Jason Sams <rjsams@android.com> Merge "Add object validity checking."
f166d9b5a280f0ec2ce7e089471c20a1477e2dbb 01-Oct-2010 Jason Sams <rjsams@android.com> Add object validity checking.

Change-Id: I2613e87b09a6e560f0381d4ed620d60a10bc30e4
s/java/ImageProcessing/src/com/android/rs/image/threshold.rs
s/rsContext.cpp
s/rsContext.h
s/rsObjectBase.cpp
s/rsObjectBase.h
s/rsScriptC_Lib.cpp
s/rsScriptC_LibGL.cpp
52a4ac3f5ede7e781c97d787297d9e644dfef958 01-Oct-2010 Jeff Brown <jeffbrown@google.com> am 5d3cef8a: am e0c12c88: Merge "Move verbose logging of device capabilities to dumpsys." into gingerbread

Merge commit '5d3cef8a6d1baec29512764b9e0ba240ccd7fcfe'

* commit '5d3cef8a6d1baec29512764b9e0ba240ccd7fcfe':
Move verbose logging of device capabilities to dumpsys.
d79991277043d6bdbd90bb63fd8aff73ef9e06a5 01-Oct-2010 Romain Guy <romainguy@google.com> Make simple paths made of lines work.

Bug #3041098

Change-Id: Ife9c3f01ded10e2bb35b1cdf1a54734d8347fee4
wui/PathCache.cpp
5d3cef8a6d1baec29512764b9e0ba240ccd7fcfe 01-Oct-2010 Jeff Brown <jeffbrown@google.com> am e0c12c88: Merge "Move verbose logging of device capabilities to dumpsys." into gingerbread

Merge commit 'e0c12c8803a7e2457098afc5dbf00e501d725fa0' into gingerbread-plus-aosp

* commit 'e0c12c8803a7e2457098afc5dbf00e501d725fa0':
Move verbose logging of device capabilities to dumpsys.
ef3d7e861154c1ce1b8f86292138fc36c30232a3 30-Sep-2010 Jeff Brown <jeffbrown@google.com> Move verbose logging of device capabilities to dumpsys.

Change-Id: I5d55eaebfdf049bd1ac1e7bab2758886cfefc9d7
i/InputReader.cpp
12c08f2c874972c258f5d7dfe8865bc9d16a25e5 30-Sep-2010 Alex Sakhartchouk <alexst@google.com> Merge "Adding anisotropic filtering and related samples."
f5b3510c706ed1f7611760dff0c94f2111531c68 30-Sep-2010 Alex Sakhartchouk <alexst@google.com> Adding anisotropic filtering and related samples.

Change-Id: Idb173274417feb5e25bfd64c5e9fa2492a23a17e
s/RenderScript.h
s/java/Samples/res/drawable/checker.png
s/java/Samples/src/com/android/samples/RsRenderStatesRS.java
s/java/Samples/src/com/android/samples/rsrenderstates.rs
s/rs.spec
s/rsAdapter.cpp
s/rsAllocation.cpp
s/rsContextHostStub.h
s/rsSampler.cpp
s/rsSampler.h
s/rsType.cpp
01f0ad7c13b8878c2167bff10ea875d7509edca5 29-Sep-2010 Stephen Hines <srhines@google.com> Fix clear() operation for rsScriptC.

- This removes a memory leak where some elements were not getting tracked
properly (and then triggering an assert when a context is destroyed).
- Convert ScriptCState to use a tracked object reference for mScript.
- Add a missing clear to FontState.
- Clean up synchronization in RSTest so that our graphics context outlives
any subtest context.

Change-Id: I0d5768c4d2f8810dd1ae2f68b1edd7e150f382fd
s/java/tests/src/com/android/rs/test/RSTestCore.java
s/java/tests/src/com/android/rs/test/RSTestView.java
s/java/tests/src/com/android/rs/test/UT_fp_mad.java
s/java/tests/src/com/android/rs/test/UT_primitives.java
s/java/tests/src/com/android/rs/test/UnitTest.java
s/rsContext.cpp
s/rsFont.cpp
s/rsObjectBase.cpp
s/rsScriptC.cpp
s/rsScriptC.h
38ed2e39c54a42dda8f00620f960788f569a3698 29-Sep-2010 Mathias Agopian <mathias@google.com> refactored screenshot code

the core screenshot function now can capture the screen at any lower resolution
performing bilinear filtering.

we also now have some client code to interface with the screenshot service.

it's now possible to request a screenshot at a lower resolution.

Change-Id: I5a3b0e431421800e3aad601d9af8f94adffbc71f
urfaceflinger_client/ISurfaceComposer.cpp
urfaceflinger_client/SurfaceComposerClient.cpp
3ebb1ba50c9b98e5303eb21ed6fa488c3f9bd632 30-Sep-2010 Alex Sakhartchouk <alexst@google.com> Merge "More robust attribute binding Adding attribute and uniform debug logging. Checking to see if aniso filtering is available."
e17c054d34676c25f03b4eb0d8daebe41b84bf6e 29-Sep-2010 Romain Guy <romainguy@google.com> Merge "Add display lists caching."
b051e895ccb696604349c6c5efe7c4747e1d1ab6 29-Sep-2010 Romain Guy <romainguy@google.com> Add display lists caching.

Change-Id: Iac3a248a81ed8cb076a83ef9d186b8ebba685b4c
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLRenderer.h
4378f1175546616c76ecb7f0b1159940ab22d5f4 29-Sep-2010 Alex Sakhartchouk <alexst@google.com> More robust attribute binding
Adding attribute and uniform debug logging.
Checking to see if aniso filtering is available.

Change-Id: I2ed9d166ed7ff3df971d7af18b7a33f4e3ade928
s/rsContext.cpp
s/rsContext.h
s/rsFont.cpp
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramFragment.cpp
s/rsProgramVertex.cpp
s/rsScriptC_LibGL.cpp
s/rsShaderCache.cpp
s/rsShaderCache.h
s/rsType.cpp
s/rsVertexArray.cpp
bff405f91001237ec94ec64f86fa2370c4509559 29-Sep-2010 Kenny Root <kroot@google.com> resolved conflicts for merge of d8e8186c to master

Change-Id: Ica3f6cd958717ea7033cab8b4bf9cd3425c1e1c5
d8e8186c887fe47977721315f439465771a96374 29-Sep-2010 Kenny Root <kroot@google.com> am 05105f7a: Update OBB API to include callbacks

Merge commit '05105f7abe02b2dff91d6260b3628c8b97816bab' into gingerbread-plus-aosp

* commit '05105f7abe02b2dff91d6260b3628c8b97816bab':
Update OBB API to include callbacks
05105f7abe02b2dff91d6260b3628c8b97816bab 23-Sep-2010 Kenny Root <kroot@google.com> Update OBB API to include callbacks

Add a callback for users of the StorageManager API to be able to receive
notifications when the requested operation completes for mountObb and
unmountObb.

Add NDK API to get to ObbInfo like the Java API has.

Also update the docs for the API and remove the "STOPSHIP" comments.

Change-Id: I23a4409c7f8b74d3169614beba920b4d667990a4
torage/IMountService.cpp
f3470edc8a929d73797789656ce840aff918dcd0 28-Sep-2010 Jason Sams <rjsams@android.com> Fix safe for mp check in ScriptC.

Change-Id: Id91b3c1e99b2705fd39f9e74a52c61110805e246
s/rsContext.cpp
s/rsContext.h
s/rsScriptC.cpp
d6b55a66ff3a00156bb120f618d2c496600c664d 28-Sep-2010 Stephen Hines <srhines@google.com> Merge "Fix RS bug with message ID 0."
0c1f756812442aa61fcd9c19c009657729a05d80 28-Sep-2010 Jeff Brown <jeffbrown@google.com> Fix bug in split touches.

Cherry-picked down to master.

Change-Id: I786761bd6aecc021ae22d8c9a022324f3a9980d1
i/InputDispatcher.cpp
7d6f864f9ee66035bab98e61e9947d2389f1f341 28-Sep-2010 Jeff Brown <jeffbrown@google.com> am 65a5ba45: Merge "Fix bug in split touches." into gingerbread

Merge commit '65a5ba45559e88a50c258d794a1728498c248376' into gingerbread-plus-aosp

* commit '65a5ba45559e88a50c258d794a1728498c248376':
Fix bug in split touches.
aeec2bf66a6119261ca47d98ef1aef954fb56462 28-Sep-2010 Jeff Brown <jeffbrown@google.com> Fix bug in split touches.

Change-Id: I808c2201a06938f82817058059f4ddcc9b1a9ae2
i/InputDispatcher.cpp
c188062eb6c44c05d24aeb207df4d7e5dbdf089e 28-Sep-2010 Jeff Brown <jeffbrown@google.com> am 26d5786f: am 9c37447e: Merge "Fix pointer index when splitting secondary pointers." into gingerbread

Merge commit '26d5786fb1a43d82b40fa908e1220a018b748c93'

* commit '26d5786fb1a43d82b40fa908e1220a018b748c93':
Fix pointer index when splitting secondary pointers.
ab98bb6e8b95bef7415c1ad239be71f93322fbad 24-Sep-2010 Stephen Hines <srhines@google.com> Fix RS bug with message ID 0.

Clamp RSTest list to nice viewable range.

Change-Id: I0909511e16984ec78150cda17c22e22af1fa0cdb
s/java/tests/src/com/android/rs/test/RSTestCore.java
s/java/tests/src/com/android/rs/test/UnitTest.java
s/java/tests/src/com/android/rs/test/fp_mad.rs
s/java/tests/src/com/android/rs/test/primitives.rs
s/java/tests/src/com/android/rs/test/rslist.rs
26d5786fb1a43d82b40fa908e1220a018b748c93 28-Sep-2010 Jeff Brown <jeffbrown@google.com> am 9c37447e: Merge "Fix pointer index when splitting secondary pointers." into gingerbread

Merge commit '9c37447e5c3555e4063777e4ef82e355e57f4c68' into gingerbread-plus-aosp

* commit '9c37447e5c3555e4063777e4ef82e355e57f4c68':
Fix pointer index when splitting secondary pointers.
9a01d0519fa56fa75864cb96045c6ee832a39ff4 28-Sep-2010 Jeff Brown <jeffbrown@google.com> Fix pointer index when splitting secondary pointers.

Change-Id: Ib01e810ea5b64501b1303000bbef0f0a1db2114e
i/InputDispatcher.cpp
e65041225ec0bbc3d67a3b70cdc6d598a5760043 27-Sep-2010 Jeff Brown <jeffbrown@google.com> Add support for transferring touch focus.

Prerequisite for drag and drop.

Change-Id: Iedbe93ed0f3e1c4083130fe66b4ba06d416afce0
i/InputDispatcher.cpp
464fb74e28b6d76d5e741abcdbb714eea2d9b4d1 27-Sep-2010 Jeff Brown <jeffbrown@google.com> am 9785bf0f: am 14a288da: Merge "Add suuport for splitting touch events across windows." into gingerbread

Merge commit '9785bf0f2b6b8758aed7ded3b996a2ef0be89919'

* commit '9785bf0f2b6b8758aed7ded3b996a2ef0be89919':
Add suuport for splitting touch events across windows.
1121c6ce8b2e13f1656bc03a03cee0ae99161746 27-Sep-2010 Alex Sakhartchouk <alexst@google.com> Merge "Error checking for MVP matrix computation. Fixing more padding bugs."
9785bf0f2b6b8758aed7ded3b996a2ef0be89919 27-Sep-2010 Jeff Brown <jeffbrown@google.com> am 14a288da: Merge "Add suuport for splitting touch events across windows." into gingerbread

Merge commit '14a288da6a372230d9af41da12241fe500eec837' into gingerbread-plus-aosp

* commit '14a288da6a372230d9af41da12241fe500eec837':
Add suuport for splitting touch events across windows.
14a288da6a372230d9af41da12241fe500eec837 27-Sep-2010 Jeff Brown <jeffbrown@google.com> Merge "Add suuport for splitting touch events across windows." into gingerbread
7215b5115ed8c34448b502dbfae1efa295c0a1e5 27-Sep-2010 Alex Sakhartchouk <alexst@google.com> Error checking for MVP matrix computation.
Fixing more padding bugs.

Change-Id: Ic5d4260027b7dc86a50fdab7221c7296c7d3ea0d
s/rsProgramVertex.cpp
s/rsVertexArray.cpp
01ce2e9eee41cc0c24b0d16465710a28ea337d5d 27-Sep-2010 Jeff Brown <jeffbrown@google.com> Add suuport for splitting touch events across windows.

This feature is currently used to enable dragging the start and end
selection handles of a TextView at the same time. Could be used for
other things later.

Deleted some dead code in ArrowKeyMovementMethod and CursorControllers.

Change-Id: I930accd97ca1ca1917aab8a807db2c950fc7b409
i/InputDispatcher.cpp
i/InputReader.cpp
1f0d3963d65d092d2a0ed6e38b4223243290f183 27-Sep-2010 Romain Guy <romainguy@google.com> Merge "Adding display lists to the GL renderer (checkpoint.)"
4aa90573bbf86db0d33a3a790c5dbd0d93b95cfe 27-Sep-2010 Romain Guy <romainguy@google.com> Adding display lists to the GL renderer (checkpoint.)

Change-Id: Iaa49757600a53b39369dbb23f8c3feab282518e6
wui/Android.mk
wui/DisplayListRenderer.cpp
wui/DisplayListRenderer.h
wui/OpenGLDebugRenderer.cpp
wui/OpenGLDebugRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/PatchCache.cpp
wui/PatchCache.h
eb1a73c2be34e3f9a80a1cf173cf8bbfb453268d 25-Sep-2010 Alex Sakhartchouk <alexst@google.com> Adding timer to display renderscript jit duration.

Change-Id: I8ab1dea60a833cd11771cf145cadbc96ac52b934
s/rsScriptC.cpp
1c1797acff49857b41ea1e3630d23d940882791c 25-Sep-2010 Romain Guy <romainguy@google.com> Merge "Add debug mode to measure performance."
e2d345ea67e2960b37bfdc0fc8626d1bfa747404 25-Sep-2010 Romain Guy <romainguy@google.com> Add debug mode to measure performance.

Change-Id: I9d4c84034dc200b99c8266165942a7cdbcb5c0c5
wui/Android.mk
wui/Caches.h
wui/FboCache.cpp
wui/FboCache.h
wui/FontRenderer.cpp
wui/OpenGLDebugRenderer.cpp
wui/OpenGLDebugRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Properties.h
d95fec08916698f7bdd9f4b293d418ae4b4f60c5 25-Sep-2010 Mathias Agopian <mathias@google.com> am 495ad4f2: am beabe75a: Merge changes I1f7c4535,I741c68a2 into gingerbread

Merge commit '495ad4f22096aa172d025c16c25497e7dad8f2bd'

* commit '495ad4f22096aa172d025c16c25497e7dad8f2bd':
simple test app for screen capture API
add support for [1974164] Be able to take a screen shot on the device
495ad4f22096aa172d025c16c25497e7dad8f2bd 25-Sep-2010 Mathias Agopian <mathias@google.com> am beabe75a: Merge changes I1f7c4535,I741c68a2 into gingerbread

Merge commit 'beabe75a842d521b005999460d3a6361ab32108e' into gingerbread-plus-aosp

* commit 'beabe75a842d521b005999460d3a6361ab32108e':
simple test app for screen capture API
add support for [1974164] Be able to take a screen shot on the device
beabe75a842d521b005999460d3a6361ab32108e 25-Sep-2010 Mathias Agopian <mathias@google.com> Merge changes I1f7c4535,I741c68a2 into gingerbread

* changes:
simple test app for screen capture API
add support for [1974164] Be able to take a screen shot on the device
405e012681aa563b1d7b66c671c90ed2deb26e41 25-Sep-2010 Dianne Hackborn <hackbod@google.com> am deaa8ff1: am a7ef18fc: Merge "Some debugging support." into gingerbread

Merge commit 'deaa8ff1b10d38add4f7c276e7be2ffc19359a14'

* commit 'deaa8ff1b10d38add4f7c276e7be2ffc19359a14':
Some debugging support.
deaa8ff1b10d38add4f7c276e7be2ffc19359a14 25-Sep-2010 Dianne Hackborn <hackbod@google.com> am a7ef18fc: Merge "Some debugging support." into gingerbread

Merge commit 'a7ef18fca50d0db99a161d8c7e2d8979f0445503' into gingerbread-plus-aosp

* commit 'a7ef18fca50d0db99a161d8c7e2d8979f0445503':
Some debugging support.
a7ef18fca50d0db99a161d8c7e2d8979f0445503 25-Sep-2010 Dianne Hackborn <hackbod@google.com> Merge "Some debugging support." into gingerbread
26b4e0411ee1b5c2d18aad72f4e51b19926f9f1c 25-Sep-2010 Kenny Root <kroot@google.com> am c55f6da7: am 0b606263: Merge "Revert "Revert "Free created FileMap when uncompressing files""" into gingerbread

Merge commit 'c55f6da7281d34a4b875975cdf68f5062dfe4b34'

* commit 'c55f6da7281d34a4b875975cdf68f5062dfe4b34':
Revert "Revert "Free created FileMap when uncompressing files""
dcdab6aef1a4e24234982698908a24a9925ce9ab 25-Sep-2010 Kenny Root <kroot@google.com> am 3e07c000: am 74865ef6: Merge "Add locking around ZIP seeking" into gingerbread

Merge commit '3e07c0007b10fbda945516acaf6b2a8787a6ca06'

* commit '3e07c0007b10fbda945516acaf6b2a8787a6ca06':
Add locking around ZIP seeking
ca5edbeba92b96913291792a4df984e158853b6d 24-Sep-2010 Mathias Agopian <mathias@google.com> add support for [1974164] Be able to take a screen shot on the device

screenshots are taken using ISurfaceComposer::captureScreen() which returns
the size of the screenshot and an IMemoryHeap containing the data.
screenshots have limitations:
- they will always fail if a secure window is up on screen
- require GL_OES_framebuffer_object extension
- in some situation, video planes won't been captured

Change-Id: I741c68a2d2984fb139039301c3349e6780e2cd58
urfaceflinger_client/ISurfaceComposer.cpp
f123e49bf0708719b51a7064ae134c097abe4a54 24-Sep-2010 Dianne Hackborn <hackbod@google.com> Some debugging support.

- New feature to "am monitor" to have it automatically launch
gdbserv for you when a crash/ANR happens, and tell you how to
run the client.

- Update dumpstate to match new location of binder debug logs

- Various commented out logs that are being used to track down
issues.

Change-Id: Ia5dd0cd2df983a1fc6be697642a4590aa02a26a5
inder/IPCThreadState.cpp
9ba15e376bd10af0b69893f0566617fefc3f9ca7 24-Sep-2010 Stephen Hines <srhines@google.com> Merge "Adding support for dynamically updated test status"
c55f6da7281d34a4b875975cdf68f5062dfe4b34 24-Sep-2010 Kenny Root <kroot@google.com> am 0b606263: Merge "Revert "Revert "Free created FileMap when uncompressing files""" into gingerbread

Merge commit '0b60626391ec840cc4a6d58ef77a2d029c2209dd' into gingerbread-plus-aosp

* commit '0b60626391ec840cc4a6d58ef77a2d029c2209dd':
Revert "Revert "Free created FileMap when uncompressing files""
3e07c0007b10fbda945516acaf6b2a8787a6ca06 24-Sep-2010 Kenny Root <kroot@google.com> am 74865ef6: Merge "Add locking around ZIP seeking" into gingerbread

Merge commit '74865ef6600e2e81cecf6619ab7141df6a7dfeb9' into gingerbread-plus-aosp

* commit '74865ef6600e2e81cecf6619ab7141df6a7dfeb9':
Add locking around ZIP seeking
04b5dd4b04df45eea0b568ac8d7ad5c4903c5cf5 24-Sep-2010 Alex Sakhartchouk <alexst@google.com> Merge "Adding support for all allowed textures. Cleaning up unused code Adding error messages"
ba606d46f446003f068f27388707923e57e6bf26 24-Sep-2010 Kenny Root <kroot@google.com> Revert "Revert "Free created FileMap when uncompressing files""

This revert reverts commit a19ef306bd0a257c67b50f5e0e669e9fe52b0889.
tils/ZipFileRO.cpp
6458fa0fce4bce7f3f9cccbacf9116f6f08abdf1 24-Sep-2010 Kenny Root <kroot@google.com> Add locking around ZIP seeking

Since we switched to seeking to the LFH to verify its existence instead
of a huge mmap of the file, we have to guarantee that another seek
doesn't happen before we finish our read on the LFH.

Change-Id: If8135d9cb6f2f5cc4db734eafa4f6b5f6269c62a
tils/ZipFileRO.cpp
bbc529244d7ec0ade499afebe0582be6735a4416 24-Sep-2010 Stephen Hines <srhines@google.com> Adding support for dynamically updated test status

Change-Id: If67de45f7fbf3ecaf4c6e85ed8dded0099e543fd
s/java/tests/src/com/android/rs/test/RSTestCore.java
s/java/tests/src/com/android/rs/test/UT_fp_mad.java
s/java/tests/src/com/android/rs/test/UT_primitives.java
s/java/tests/src/com/android/rs/test/UnitTest.java
s/java/tests/src/com/android/rs/test/rslist.rs
b89aaacb2ca9d062e0a17a32e3d4dbf3f6948a17 24-Sep-2010 Alex Sakhartchouk <alexst@google.com> Adding support for all allowed textures.
Cleaning up unused code
Adding error messages

Change-Id: I3a92476738ff7699d49feeafcd3eee6f70621acb
s/java/Samples/res/raw/multitexf.glsl
s/java/Samples/src/com/android/samples/RsRenderStatesRS.java
s/java/Samples/src/com/android/samples/rsrenderstates.rs
s/rs.spec
s/rsContext.cpp
s/rsContext.h
s/rsContextHostStub.h
s/rsElement.cpp
s/rsElement.h
s/rsFileA3D.cpp
s/rsFont.cpp
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramFragment.cpp
s/rsProgramFragment.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsScriptC_LibGL.cpp
s/rsType.cpp
s/rsType.h
ff4d70872aa48675a06fc4673c732860c1619758 22-Sep-2010 Stephen Hines <srhines@google.com> Add RsList implementation to RSTest.

Run subtests in their own thread / RS context.
Created UnitTest framework using message passing for RS.
Add color status reporting to device output.
Fix some typos in RsList.

Change-Id: I251d632b9550a1c117d677f011741a796b561e59
s/java/Samples/src/com/android/samples/RsList.java
s/java/tests/src/com/android/rs/test/RSTestCore.java
s/java/tests/src/com/android/rs/test/RSTestView.java
s/java/tests/src/com/android/rs/test/UT_fp_mad.java
s/java/tests/src/com/android/rs/test/UT_primitives.java
s/java/tests/src/com/android/rs/test/UnitTest.java
s/java/tests/src/com/android/rs/test/fp_mad.rs
s/java/tests/src/com/android/rs/test/primitives.rs
s/java/tests/src/com/android/rs/test/rslist.rs
s/java/tests/src/com/android/rs/test/shared.rsh
38c85b907a478af96d71b9a5df5a2066b8475311 23-Sep-2010 Romain Guy <romainguy@android.com> Correctly initialize/refresh layers.

Change-Id: Id8cdcf587b13098460f7d4aa1bd17708784d89bb
wui/Layer.h
wui/LayerCache.cpp
wui/OpenGLRenderer.cpp
7275290a1f3a29ec09c7f746ebb190c07e1799d5 23-Sep-2010 Romain Guy <romainguy@android.com> Merge "Draw text decorations with lines instead of rectangles."
e20ecbd12d26467754a7770d44bcce2ea92335ef 23-Sep-2010 Romain Guy <romainguy@android.com> Draw text decorations with lines instead of rectangles.

Change-Id: Icd25c85c3a24da96a3d2f76f9477da6f87e0303c
wui/OpenGLRenderer.cpp
deea2df0a727de0b7232b1043d1b3757a90de671 23-Sep-2010 Romain Guy <romainguy@android.com> Merge "Fix OpenGL errors in various places."
29d8997bd43b7c4ad37fc3d6f91eaafa74913c88 23-Sep-2010 Romain Guy <romainguy@android.com> Fix OpenGL errors in various places.

Change-Id: I3a4e115d8fb13b6c443e65460d92987b16f2524c
wui/Caches.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/SkiaShader.cpp
wui/SkiaShader.h
wui/TextureCache.cpp
f119b91e1a05fd1ba5163ef125b0d20b21389433 23-Sep-2010 Jason Sams <rjsams@android.com> Better debugging for scripts.

Change-Id: I916cea86dcfdb43a9465708ea4a16f19cbe42370
s/rs.spec
s/rsScriptC.cpp
7a3403b0b8339963293543f4cd97c0b5789c3381 22-Sep-2010 Jason Sams <rjsams@android.com> Merge "Remove excessive logging."
442ce762d2206d1813a94979d71b47908836df03 22-Sep-2010 Jason Sams <rjsams@android.com> Remove excessive logging.

Change-Id: If8e30fcb93d7cbf639c3a6c280c23f4553f11e5b
s/rsProgramFragment.cpp
1473f273a1f2d96c3993f87e9fb14bf510a1611b 22-Sep-2010 Romain Guy <romainguy@android.com> Merge "Fix texture corruption issue, faster re-upload of textures."
353a48e8ed90c028fb51fe145dae6113661f03e4 22-Sep-2010 Jason Sams <rjsams@android.com> Merge "Fix two minor RS bugs. 1: index set size was populated with bad value in java, 2: bad error check in uploadToBufferObject."
1bfccb45dfe53da00e0618e5af5062c1e37a6c18 22-Sep-2010 Jason Sams <rjsams@android.com> Fix two minor RS bugs.
1: index set size was populated with bad value in java,
2: bad error check in uploadToBufferObject.

Change-Id: I5946053cdfba0b2fbbaa34d562a9ec53e26ce9f2
s/rsMesh.cpp
8c749f87d29e1a363ddf9027c3a51753c612d510 22-Sep-2010 Romain Guy <romainguy@android.com> Fix texture corruption issue, faster re-upload of textures.

Bug #2950691

Change-Id: I57e2bc1d1a23e8683c25de7d09d6f5af2df59f41
wui/TextureCache.cpp
wui/TextureCache.h
f847cd4cf02724db7aaa32fb2a20e6c2e9d3d1af 22-Sep-2010 Stephen Hines <srhines@google.com> Merge "Test use of "f" suffix on float initializers."
76f609118574a76b10cb90bcf061b15546bc38ee 22-Sep-2010 Romain Guy <romainguy@google.com> Merge "Add support for circular gradients to the GL renderer."
ddb80bebb0776e6d852aab6e8bba5d5591847a55 21-Sep-2010 Romain Guy <romainguy@google.com> Add support for circular gradients to the GL renderer.

This change also adds full support for local transformation matrices on
sweep and radial gradients.

Change-Id: Id8773bc0766575190e3f3d51984fc5e57b266c3f
wui/Matrix.cpp
wui/Matrix.h
wui/ProgramCache.cpp
wui/SkiaShader.cpp
wui/SkiaShader.h
fdc85679cc300e9f7ee75040c25bef1826372ff0 22-Sep-2010 Jeff Brown <jeffbrown@google.com> am 4ec134cd: am cce0cd13: Merge "Looper: use pthread_once for TLS key initialization." into gingerbread

Merge commit '4ec134cdba52b663506562c6406b07915820b007'

* commit '4ec134cdba52b663506562c6406b07915820b007':
Looper: use pthread_once for TLS key initialization.
4ec134cdba52b663506562c6406b07915820b007 22-Sep-2010 Jeff Brown <jeffbrown@google.com> am cce0cd13: Merge "Looper: use pthread_once for TLS key initialization." into gingerbread

Merge commit 'cce0cd138dd0dc338db59083052aca01a51bd52d' into gingerbread-plus-aosp

* commit 'cce0cd138dd0dc338db59083052aca01a51bd52d':
Looper: use pthread_once for TLS key initialization.
72e1687b70144833195adf8d7c51f4aa4eaf1781 22-Sep-2010 Stephen Hines <srhines@google.com> Test use of "f" suffix on float initializers.

Change-Id: I3325576d1ec2d7c1c966afd8ef279745c549125f
s/java/tests/src/com/android/rs/test/primitives.rs
134b4ae90103a7b205cd84d0491a4868cb102a7c 22-Sep-2010 Jeff Brown <jeffbrown@google.com> Looper: use pthread_once for TLS key initialization.

Also fix a Valgrind complaint by zeroing out the entire epoll event
struct since otherwise the data field union would be partly
uninitialized (but not in a harmful way).

Change-Id: I2091ce517e87fcad7c9caf90e2c5e4854a7ca465
tils/Looper.cpp
065149f1628a2882a46af810ca9fc3913f7b0438 21-Sep-2010 Stephen Hines <srhines@google.com> Updated RSTest to test primitive type assignments.

Change-Id: I6c377cfdc647806d9362effc4c1715638dcf5bfb
s/java/tests/src/com/android/rs/test/RSTestCore.java
s/java/tests/src/com/android/rs/test/primitives.rs
s/java/tests/src/com/android/rs/test/shared.rsh
d276720edb060617168388f44005f0960fa89ad1 21-Sep-2010 Wu-cheng Li <wuchengli@google.com> am 2ad1ebca: am d45cb72a: Rename FOCUS_MODE_CONTINUOUS to FOCUS_MODE_CONTINUOUS_VIDEO.

Merge commit '2ad1ebcaabb632c8fe714f0c3fd88bdfa14697bd'

* commit '2ad1ebcaabb632c8fe714f0c3fd88bdfa14697bd':
Rename FOCUS_MODE_CONTINUOUS to FOCUS_MODE_CONTINUOUS_VIDEO.
a86c1a622fb61d8157dac9ef3d66084a6ac2f0e0 21-Sep-2010 Stephen Hines <srhines@google.com> Merge "Add support for Float64 (double) to RenderScript."
2ad1ebcaabb632c8fe714f0c3fd88bdfa14697bd 21-Sep-2010 Wu-cheng Li <wuchengli@google.com> am d45cb72a: Rename FOCUS_MODE_CONTINUOUS to FOCUS_MODE_CONTINUOUS_VIDEO.

Merge commit 'd45cb72ac0d7d57829ffc9223decb89a5fc42ce2' into gingerbread-plus-aosp

* commit 'd45cb72ac0d7d57829ffc9223decb89a5fc42ce2':
Rename FOCUS_MODE_CONTINUOUS to FOCUS_MODE_CONTINUOUS_VIDEO.
d45cb72ac0d7d57829ffc9223decb89a5fc42ce2 21-Sep-2010 Wu-cheng Li <wuchengli@google.com> Rename FOCUS_MODE_CONTINUOUS to FOCUS_MODE_CONTINUOUS_VIDEO.

This constant is not public yet. Continuous autofocus should
behave differently in still camera and camcorder. In camcorder,
lens movement may be more smooth. And the triggers to start a
new focus search may be different. If there is a need,
FOCUS_MODE_CONTINUOUS_PHOTO can be added in the future.

Change-Id: I05df9e491aca37829be3df92a73b952f26c86a4a
amera/CameraParameters.cpp
399542a7a30aa691c4923961c557fc99960786fd 21-Sep-2010 Romain Guy <romainguy@google.com> Merge "Add support for SweepGradient in the GL renderer."
ee916f14cbd1fe1422c063ce2ef7b185e2bc5c6f 21-Sep-2010 Romain Guy <romainguy@google.com> Add support for SweepGradient in the GL renderer.

Change-Id: I7aa397ed4e34655ead9ba1f5b4ce087665e0f022
wui/GradientCache.cpp
wui/GradientCache.h
wui/ProgramCache.cpp
wui/ProgramCache.h
wui/SkiaShader.cpp
wui/SkiaShader.h
ca54ec302f5bddd1674ea1f36cd3b7c540b2fbca 21-Sep-2010 Stephen Hines <srhines@google.com> Add support for Float64 (double) to RenderScript.

Change-Id: Iad1c4adadf657a46aa38a3fad7813927e643e29d
s/rs.spec
s/rsScript.cpp
a2135836d1f9f134060c1cf20d5971c5cc833fc0 18-Sep-2010 Jeff Brown <jeffbrown@google.com> am a8d95248: am 7d4739be: Merge "Reduce lock thrashing in native Looper." into gingerbread

Merge commit 'a8d95248bdbb8ea0933ecf86d2859964324978a7'

* commit 'a8d95248bdbb8ea0933ecf86d2859964324978a7':
Reduce lock thrashing in native Looper.
a8d95248bdbb8ea0933ecf86d2859964324978a7 18-Sep-2010 Jeff Brown <jeffbrown@google.com> am 7d4739be: Merge "Reduce lock thrashing in native Looper." into gingerbread

Merge commit '7d4739bed5cd5f41ddfa431446b51f61b94d7b0b' into gingerbread-plus-aosp

* commit '7d4739bed5cd5f41ddfa431446b51f61b94d7b0b':
Reduce lock thrashing in native Looper.
960498728904a1a6ea65171f0cfb3b41187c29ae 18-Sep-2010 Jeff Brown <jeffbrown@google.com> Reduce lock thrashing in native Looper.

In the common case, there is nothing interesting happening on the native
Looper besides occasional wake ups. There is no point grabbing the
semaphore then.

Change-Id: Ib5c426d0e158dfa37891b7ff5537b6f833592fad
tils/Looper.cpp
5e87e0d07dd909535b3a78b5fec8b544324b2c90 18-Sep-2010 Romain Guy <romainguy@google.com> Merge "Fix positioning of 1 pixel wide lines (esp. non AA lines.)"
be3512735cb79fcc789fc3fd902431b2bac97823 18-Sep-2010 Romain Guy <romainguy@google.com> Merge changes Id5200e94,I08fcbfa7

* changes:
Add support for non AA lines.
Correctly free memory.
b5ab4173e0927e4668a45298c9900cd8007584e1 18-Sep-2010 Romain Guy <romainguy@google.com> Fix positioning of 1 pixel wide lines (esp. non AA lines.)

Change-Id: Ic155cac72f351edae35dffdfbb236954f57ba7de
wui/Line.h
wui/OpenGLRenderer.cpp
c95c8d6bf8fda5c4e8ebd0033b789be7868e6e07 18-Sep-2010 Romain Guy <romainguy@google.com> Add support for non AA lines.

Change-Id: Id5200e94815404d62760437d0d2dbb0a9276c700
wui/Line.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
580807a20acfbd6ef313cf7fa51f0a9de16154ec 17-Sep-2010 Stephen Hines <srhines@google.com> Merge "Handle RS reflection name changes."
2c6f34480c5940e9b394222456c5e8c304a4a446 17-Sep-2010 Stephen Hines <srhines@google.com> Merge "Minor app updates for RS. force RSTest to portrait."
d74a72fd0ae97d9ef7b0708665995a70d6f060ae 17-Sep-2010 Jason Sams <rjsams@android.com> Merge "Fix function name match for refcounting funcs."
4fd8bb4b562078f51958af3285c94a72a052df67 17-Sep-2010 Jason Sams <rjsams@android.com> Fix function name match for refcounting funcs.

Change-Id: I3fa8211200023e0df494cd9aab698e215b3c2164
s/rsScriptC_Lib.cpp
31529ff7918ce891fba9a660d0a861eb313ea554 17-Sep-2010 Romain Guy <romainguy@google.com> Correctly free memory.

Change-Id: I08fcbfa7d27ae413e0a8e8ca6ea305c8530a72c1
wui/Line.h
wui/Patch.cpp
wui/Program.cpp
93a958f0958b852c0a2c7b940c74eeae283ba02b 17-Sep-2010 Stephen Hines <srhines@google.com> Handle RS reflection name changes.

Change-Id: I0f3f9805a0f0bf44ce9e9944a3eaa5a80dd0cdde
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
s/java/ModelViewer/src/com/android/modelviewer/SceneGraphRS.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModelRS.java
s/java/Samples/src/com/android/samples/RsListRS.java
s/java/Samples/src/com/android/samples/RsRenderStatesRS.java
s/java/tests/src/com/android/rs/test/RSTestCore.java
f81174b281decbf689ab3727fbbbadf3aee056f5 17-Sep-2010 Brian Carlstrom <bdc@google.com> am f3f822ed: am 987ba541: Merge "Fix sim-eng build on Hardy" into gingerbread

Merge commit 'f3f822edc7d9f08edc91a2e1826de127a19c235d'

* commit 'f3f822edc7d9f08edc91a2e1826de127a19c235d':
Fix sim-eng build on Hardy
f3f822edc7d9f08edc91a2e1826de127a19c235d 17-Sep-2010 Brian Carlstrom <bdc@google.com> am 987ba541: Merge "Fix sim-eng build on Hardy" into gingerbread

Merge commit '987ba54127caaaa87056965b3d98b7e1a5b110b7' into gingerbread-plus-aosp

* commit '987ba54127caaaa87056965b3d98b7e1a5b110b7':
Fix sim-eng build on Hardy
987ba54127caaaa87056965b3d98b7e1a5b110b7 17-Sep-2010 Brian Carlstrom <bdc@google.com> Merge "Fix sim-eng build on Hardy" into gingerbread
00030e9e70292fb7243da473ee80eb1695021ed1 17-Sep-2010 Mathias Agopian <mathias@google.com> am 876e0e56: am 36f429d3: Fix typo which causes sensors to fail miserably

Merge commit '876e0e5646f3f062b5f81ead9ff42bfc1da5ffe1'

* commit '876e0e5646f3f062b5f81ead9ff42bfc1da5ffe1':
Fix typo which causes sensors to fail miserably
876e0e5646f3f062b5f81ead9ff42bfc1da5ffe1 17-Sep-2010 Mathias Agopian <mathias@google.com> am 36f429d3: Fix typo which causes sensors to fail miserably

Merge commit '36f429d300be2550d7459b488dfc05b00ec59312' into gingerbread-plus-aosp

* commit '36f429d300be2550d7459b488dfc05b00ec59312':
Fix typo which causes sensors to fail miserably
36f429d300be2550d7459b488dfc05b00ec59312 17-Sep-2010 Mathias Agopian <mathias@google.com> Fix typo which causes sensors to fail miserably

Change-Id: Ieca18fc089e2bdf7d049f213836971b54d11cd76
ui/SensorEventQueue.cpp
a977120681904ee6309f3e90f51c6cc43615c007 17-Sep-2010 Romain Guy <romainguy@google.com> Merge "Add support for drawLines(), with anti-aliasing"
759ea80dca64ad652110a129e0d8bf93fea79f61 17-Sep-2010 Romain Guy <romainguy@google.com> Add support for drawLines(), with anti-aliasing

Change-Id: I16c0593c5671490909dec13a85df601e1428a1a6
wui/Line.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Patch.cpp
wui/Patch.h
wui/Rect.h
wui/SkiaShader.cpp
wui/SkiaShader.h
99ce45732030d379549f74248f1f5cc88dfbf191 17-Sep-2010 Mathias Agopian <mathias@google.com> am 8f476407: am 08710dcd: Merge "part of fix for [3004226] Cannot end the call - Proximity sensor doesn\'t work" into gingerbread

Merge commit '8f476407bf4e6283b128532d594d44cc527e8204'

* commit '8f476407bf4e6283b128532d594d44cc527e8204':
part of fix for [3004226] Cannot end the call - Proximity sensor doesn't work
4ffde2b041ffa43fb4b50f20445a90e5b05b8532 17-Sep-2010 Jason Sams <rjsams@android.com> Merge "Cleanup GL setup code and remove legacy 1.1 paths. Reset pointers to NULL when allocations are unbound."
d081fffab58b4cb8a36b7a083ab7793585bc1510 17-Sep-2010 Jason Sams <rjsams@android.com> Cleanup GL setup code and remove legacy 1.1 paths.
Reset pointers to NULL when allocations are unbound.

Change-Id: Ifaba634ecbb154970b7fb47faa8e6475d16d2f66
s/rsAllocation.cpp
s/rsAllocation.h
s/rsContext.cpp
s/rsContext.h
s/rsProgramFragment.cpp
s/rsProgramFragment.h
s/rsProgramRaster.cpp
s/rsProgramRaster.h
s/rsProgramStore.cpp
s/rsProgramStore.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsSampler.cpp
s/rsSampler.h
s/rsScriptC.cpp
s/rsVertexArray.h
8f476407bf4e6283b128532d594d44cc527e8204 17-Sep-2010 Mathias Agopian <mathias@google.com> am 08710dcd: Merge "part of fix for [3004226] Cannot end the call - Proximity sensor doesn\'t work" into gingerbread

Merge commit '08710dcd589432c5828cefce25e4b565b15de9a6' into gingerbread-plus-aosp

* commit '08710dcd589432c5828cefce25e4b565b15de9a6':
part of fix for [3004226] Cannot end the call - Proximity sensor doesn't work
08710dcd589432c5828cefce25e4b565b15de9a6 17-Sep-2010 Mathias Agopian <mathias@google.com> Merge "part of fix for [3004226] Cannot end the call - Proximity sensor doesn't work" into gingerbread
4d3cb63b9b9177b79c575ca1b21040cc42ee7879 17-Sep-2010 Mathias Agopian <mathias@google.com> part of fix for [3004226] Cannot end the call - Proximity sensor doesn't work

- In SensorEventQueue, only bail on errors from Looper::loopOnce
- Improve sensor error logging

Change-Id: Ib3cf8d5d9fdac8513a3d753155827e0feeda1662
ui/SensorEventQueue.cpp
ec8ae3ce1aa5f2d006780e2bb40bb491538da357 17-Sep-2010 Jeff Brown <jeffbrown@google.com> am d3576ef8: am 1ac48eab: Merge "Ensure input dispatcher and native looper handles EINTR." into gingerbread

Merge commit 'd3576ef8906798d91da3ee88a103f4bedcab169e'

* commit 'd3576ef8906798d91da3ee88a103f4bedcab169e':
Ensure input dispatcher and native looper handles EINTR.
711f82784fadb93d488b829c04bda35860903a67 17-Sep-2010 Jeff Brown <jeffbrown@google.com> am 6f0ff46c: am 9c258710: Merge "Fix app switch latency optimization." into gingerbread

Merge commit '6f0ff46c6f1fd1b61325b545ab9e93c5ebf37d25'

* commit '6f0ff46c6f1fd1b61325b545ab9e93c5ebf37d25':
Fix app switch latency optimization.
d3576ef8906798d91da3ee88a103f4bedcab169e 17-Sep-2010 Jeff Brown <jeffbrown@google.com> am 1ac48eab: Merge "Ensure input dispatcher and native looper handles EINTR." into gingerbread

Merge commit '1ac48eabd39e0cfd087ddf2c3b6ba8e56803bdd4' into gingerbread-plus-aosp

* commit '1ac48eabd39e0cfd087ddf2c3b6ba8e56803bdd4':
Ensure input dispatcher and native looper handles EINTR.
6f0ff46c6f1fd1b61325b545ab9e93c5ebf37d25 17-Sep-2010 Jeff Brown <jeffbrown@google.com> am 9c258710: Merge "Fix app switch latency optimization." into gingerbread

Merge commit '9c2587104ae259b9fa6a3525063197cc08e8820b' into gingerbread-plus-aosp

* commit '9c2587104ae259b9fa6a3525063197cc08e8820b':
Fix app switch latency optimization.
1ac48eabd39e0cfd087ddf2c3b6ba8e56803bdd4 17-Sep-2010 Jeff Brown <jeffbrown@google.com> Merge "Ensure input dispatcher and native looper handles EINTR." into gingerbread
7dae0e47abb5c1fb852c10b3ba0bc6464dd76e96 17-Sep-2010 Jeff Brown <jeffbrown@google.com> Ensure input dispatcher and native looper handles EINTR.

Change-Id: I0a42db5f273b9bfe4ab174e4ee65d5d852f9f6bc
i/InputTransport.cpp
tils/Looper.cpp
54a1825121d006d4a4dcbbadf4eac9910f44ef8c 16-Sep-2010 Jeff Brown <jeffbrown@google.com> Fix app switch latency optimization.

This optimization was broken due to recent changes in how ANRs are handled.

Change-Id: Ic99248a12755fadac8d4893e7d305b773e038d3d
i/InputDispatcher.cpp
dbb7b6da080782d032251c1ab181145eaa3fc2b2 17-Sep-2010 Brian Carlstrom <bdc@google.com> Fix sim-eng build on Hardy

Older glibc version do not include BSD htole32 and htole64 which are
present in bionic. This worksaround a sim-eng build issue by only
using htole32/htole64 if the host is not little endian.

Change-Id: Ia8d0d36285f3c34c51a331790458e52a21c2925f
i/GraphicLog.cpp
c5958f8a659969b40aa624043264aee32c3c61af 16-Sep-2010 Romain Guy <romainguy@google.com> Merge "Snap layer bounds to pixel boundaries."
bf434114cbf55b216fdc76fc8d65a75e84c9dab5 16-Sep-2010 Romain Guy <romainguy@google.com> Snap layer bounds to pixel boundaries.

Change-Id: I272ceebf469a119f01ea9d73cdd68519afdffa99
wui/OpenGLRenderer.cpp
wui/Rect.h
885b1f21d95c5c356d7dbe40a4d033d558c2c772 16-Sep-2010 Romain Guy <romainguy@google.com> Merge "Better error handling in the OpenGL renderer."
b025b9c8b4efefadb01937db61a1f8ee7d2452bf 16-Sep-2010 Romain Guy <romainguy@google.com> Better error handling in the OpenGL renderer.

Add a glGetError() check on every frame
Don't attempt to create textures larger than the maximum size allowed

Change-Id: Iee4afae16089406dbe8bf10fc93b674f1271a0ca
wui/LayerCache.cpp
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
9b61dc564e673a116928838e42dae25bdf1e0796 16-Sep-2010 James Dong <jdong@google.com> Add YUV420P color format support for video output from camera hal

Change-Id: I5c8266348d0840361c8095ce351ac85c44d4068f
amera/CameraParameters.cpp
707929d6f8f8ff2663da9982a99f943736b8be5c 16-Sep-2010 Jeff Brown <jeffbrown@google.com> am 61cf67a2: am 24326f72: Merge "Input API review." into gingerbread

Merge commit '61cf67a220ba3205737c646c1c836a92074220de'

* commit '61cf67a220ba3205737c646c1c836a92074220de':
Input API review.
61cf67a220ba3205737c646c1c836a92074220de 16-Sep-2010 Jeff Brown <jeffbrown@google.com> am 24326f72: Merge "Input API review." into gingerbread

Merge commit '24326f7223275ba9c85014b86d42040e3a7d2815' into gingerbread-plus-aosp

* commit '24326f7223275ba9c85014b86d42040e3a7d2815':
Input API review.
24326f7223275ba9c85014b86d42040e3a7d2815 16-Sep-2010 Jeff Brown <jeffbrown@google.com> Merge "Input API review." into gingerbread
6cca469ed6e58444dc6264a353510250cacfcf09 16-Sep-2010 Jeff Brown <jeffbrown@google.com> am 9284b454: am b9eb949b: Merge "Fix input dispatcher regression on launcher drag&drop." into gingerbread

Merge commit '9284b454e28a49f514f9caddaace15b91d41165c'

* commit '9284b454e28a49f514f9caddaace15b91d41165c':
Fix input dispatcher regression on launcher drag&drop.
9284b454e28a49f514f9caddaace15b91d41165c 16-Sep-2010 Jeff Brown <jeffbrown@google.com> am b9eb949b: Merge "Fix input dispatcher regression on launcher drag&drop." into gingerbread

Merge commit 'b9eb949bcae977a3f86e8307f3854f157227c34c' into gingerbread-plus-aosp

* commit 'b9eb949bcae977a3f86e8307f3854f157227c34c':
Fix input dispatcher regression on launcher drag&drop.
2a95c2a9ec703b9d19b750cb854fb4ec4899e205 16-Sep-2010 Jeff Brown <jeffbrown@google.com> Fix input dispatcher regression on launcher drag&drop.

Change-Id: I40e937bd712cd2ed6cceac95dfd1b8c8e070724f
i/InputDispatcher.cpp
b27d07cccf2dbd34e486f6ae5cfdf361e6437162 16-Sep-2010 Jeff Brown <jeffbrown@google.com> am 03335af0: am 567c00a8: Merge "Fix NPE when handling certain kinds of ANRs." into gingerbread

Merge commit '03335af0dbf14d1eb4503be92a5b10199719898c'

* commit '03335af0dbf14d1eb4503be92a5b10199719898c':
Fix NPE when handling certain kinds of ANRs.
03335af0dbf14d1eb4503be92a5b10199719898c 16-Sep-2010 Jeff Brown <jeffbrown@google.com> am 567c00a8: Merge "Fix NPE when handling certain kinds of ANRs." into gingerbread

Merge commit '567c00a86f748ad4d798ae50a09505cc051fc095' into gingerbread-plus-aosp

* commit '567c00a86f748ad4d798ae50a09505cc051fc095':
Fix NPE when handling certain kinds of ANRs.
dc3e00563ee6400936e3cb82405bb94df0b35078 16-Sep-2010 Jeff Brown <jeffbrown@google.com> Fix NPE when handling certain kinds of ANRs.

Change-Id: Iccef1852e52c84f6f49d30c491431460a10b33d3
i/InputDispatcher.cpp
fa8186c71662ae9c869adbf379ccc2d917638881 16-Sep-2010 Jeff Brown <jeffbrown@google.com> am 7642c82c: am f4d788c9: Merge "Make input dispatcher only ANR for foreground windows." into gingerbread

Merge commit '7642c82c291051919aad87c797e2dc1d77ed55e1'

* commit '7642c82c291051919aad87c797e2dc1d77ed55e1':
Make input dispatcher only ANR for foreground windows.
7642c82c291051919aad87c797e2dc1d77ed55e1 16-Sep-2010 Jeff Brown <jeffbrown@google.com> am f4d788c9: Merge "Make input dispatcher only ANR for foreground windows." into gingerbread

Merge commit 'f4d788c9309bc5480100d980608472e4cb04f309' into gingerbread-plus-aosp

* commit 'f4d788c9309bc5480100d980608472e4cb04f309':
Make input dispatcher only ANR for foreground windows.
519e024d1e682ca458cc2dab743589a12992c0e1 16-Sep-2010 Jeff Brown <jeffbrown@google.com> Make input dispatcher only ANR for foreground windows.

Redesigned the input dispatcher's ANR timeout mechanism so it is much
closer to Froyo's policy. ANR is only ever signalled if the dispatcher
is waiting on a window to finish processing its previous event(s) and
there is new pending input.

In the old code, we tracked the dispatch timeout separately for each
input channel. This was somewhat complicated and also resulted in the
situation where applications could ANR long after the user had pushed
them into the background.

Change-Id: I666ecada0952d4b95f1d67b9f733842b745c7f4b
i/InputDispatcher.cpp
857d7cf80ee37fc3b1d55ecfa4c27029672f5114 16-Sep-2010 Romain Guy <romainguy@google.com> Merge "Fix 9patch rendering."
6820ac8b14b4558f5d8b833dde80895306a3e137 16-Sep-2010 Romain Guy <romainguy@google.com> Fix 9patch rendering.

Change-Id: Ic4c18ff483cca95fbabcb10843f7714efe488adb
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Patch.cpp
wui/Patch.h
a8c6ceedbaf73c052795c44ad00de90254486fe0 13-Sep-2010 Stephen Hines <srhines@google.com> Minor app updates for RS. force RSTest to portrait.

Change-Id: Ic2356644e00be8d373da97a9072f008e59a0264a
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
s/java/tests/AndroidManifest.xml
s/java/tests/src/com/android/rs/test/RSTest.java
49478536b6b8b28f33398393bed5e939085af7af 15-Sep-2010 Jeff Brown <jeffbrown@google.com> am 14bc6b5d: am 09340a4b: Merge "Replace epoll() with poll() and rename PollLoop to Looper." into gingerbread

Merge commit '14bc6b5d0677e5c454a67775c852f90389bb4567'

* commit '14bc6b5d0677e5c454a67775c852f90389bb4567':
Replace epoll() with poll() and rename PollLoop to Looper.
a5ab8ce602ecfd897805e185c89a6eff0c78aabe 15-Sep-2010 Mathias Agopian <mathias@google.com> resolved conflicts for merge of 48a86240 to master

Change-Id: I2305fef9f4dd46183337217d822df3c675b6b6e5
dc1ab4b5cc274b7d744c11a939bb5910becec5e0 15-Sep-2010 Jeff Brown <jeffbrown@google.com> Input API review.

Drop currently unsupported input features.
Add documentation comments.

Change-Id: I407d2e1dd90c5ee82983a3ccf177430d35ee7592
i/InputReader.cpp
14bc6b5d0677e5c454a67775c852f90389bb4567 15-Sep-2010 Jeff Brown <jeffbrown@google.com> am 09340a4b: Merge "Replace epoll() with poll() and rename PollLoop to Looper." into gingerbread

Merge commit '09340a4bb99507d9b6bfbfc68a450d4d4f354d73' into gingerbread-plus-aosp

* commit '09340a4bb99507d9b6bfbfc68a450d4d4f354d73':
Replace epoll() with poll() and rename PollLoop to Looper.
09340a4bb99507d9b6bfbfc68a450d4d4f354d73 15-Sep-2010 Jeff Brown <jeffbrown@google.com> Merge "Replace epoll() with poll() and rename PollLoop to Looper." into gingerbread
48a862407dda482450bdfd5aa2a2cd8b3e8e38dd 15-Sep-2010 Mathias Agopian <mathias@google.com> am b3ffc78f: Merge "Add logging of various important graphics events" into gingerbread

Merge commit 'b3ffc78f3432344702e6f5232067ab624083cad2' into gingerbread-plus-aosp

* commit 'b3ffc78f3432344702e6f5232067ab624083cad2':
Add logging of various important graphics events
cfc04366998cd0c626594c9cf70336a11bdf5996 14-Sep-2010 Jason Sams <rjsams@android.com> Fix partial NP2 support and restrict mipmaps and clamp
modes on HW that does not support proper NP2
bug 2965170

Change-Id: If9a3ac45264861fc75b9616e98957e12a5464411
s/rsContext.cpp
s/rsSampler.cpp
d3326231dc3d334054fbeeacdf691965d1618a0c 14-Sep-2010 Alex Sakhartchouk <alexst@google.com> Merge "Shader changes to allow for more flexible constant binding."
c984dd73c6f96d16e11813ae433ef70f7648ae77 14-Sep-2010 Alex Sakhartchouk <alexst@google.com> Shader changes to allow for more flexible constant binding.

Change-Id: Ic66e6e2a371c6e3d5dce1b00f63acab8c09bd110
s/RenderScriptEnv.h
s/java/Samples/res/raw/shaderf.glsl
s/java/Samples/res/raw/shaderv.glsl
s/java/Samples/src/com/android/samples/RsRenderStatesRS.java
s/java/Samples/src/com/android/samples/rsrenderstates.rs
s/java/Samples/src/com/android/samples/shader_def.rsh
s/rsElement.cpp
s/rsElement.h
s/rsFont.cpp
s/rsFont.h
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramFragment.cpp
s/rsProgramVertex.cpp
s/rsProgramVertex.h
4fe6c3e51be77e35f40872cdbca6c80f8f8b7ecb 14-Sep-2010 Jeff Brown <jeffbrown@google.com> Replace epoll() with poll() and rename PollLoop to Looper.

As part of this change, consolidated and cleaned up the Looper API so
that there are fewer distinctions between the NDK and non-NDK declarations
(no need for two callback types, etc.).

Removed the dependence on specific constants from sys/poll.h such as
POLLIN. Instead looper.h defines events like LOOPER_EVENT_INPUT for
the events that it supports. That should help make any future
under-the-hood implementation changes easier.

Fixed a couple of compiler warnings along the way.

Change-Id: I449a7ec780bf061bdd325452f823673e2b39b6ae
ui/SensorEventQueue.cpp
i/InputDispatcher.cpp
tils/Android.mk
tils/Looper.cpp
tils/PollLoop.cpp
tils/tests/Android.mk
tils/tests/Looper_test.cpp
tils/tests/PollLoop_test.cpp
04262e9f842edf20168399b6a70f0d67e518fe69 14-Sep-2010 Mathias Agopian <mathias@google.com> Add logging of various important graphics events

There are 16 events logged in the event log:
SF_APP_DEQUEUE_BEFORE
SF_APP_DEQUEUE_AFTER
SF_APP_LOCK_BEFORE
SF_APP_LOCK_AFTER
SF_APP_QUEUE

SF_REPAINT
SF_COMPOSITION_COMPLETE
SF_UNLOCK_CLIENTS
SF_SWAP_BUFFERS
SF_REPAINT_DONE

SF_FB_POST_BEFORE
SF_FB_POST_AFTER
SF_FB_DEQUEUE_BEFORE
SF_FB_DEQUEUE_AFTER
SF_FB_LOCK_BEFORE
SF_FB_LOCK_AFTER

all events log the buffer conserned and a timestamp in microseconds.

by default the logging is not enabled, to turn it on:
adb shell service call SurfaceFlinger 1006 i31 1
adb shell setprop debug.graphic_log 1

The effect is immediate in SurfaceFlinger, but applications need to be
restarted.

Change-Id: Ifc2e31f7aed072d9a7dede20ff2ce59231edbec1
urfaceflinger_client/Surface.cpp
i/Android.mk
i/FramebufferNativeWindow.cpp
i/GraphicLog.cpp
87a76578f76f4a6bceb187da6b7a01899ca0d85a 14-Sep-2010 Romain Guy <romainguy@google.com> Docs updates.

Change-Id: Iff395e1c6d81a484a2c4ad6e88357c0134971b78
wui/OpenGLRenderer.cpp
wui/Snapshot.h
1c740bce8a762f02b5283045a0e2de7c8fb41277 14-Sep-2010 Romain Guy <romainguy@google.com> Document the implementation of saveLayer().

The implementation is simple but tricky. Leave explanations to my
future self so that I don't invent a time machine to come back to
now and slap my self.

This change also simplifies the way the GL blending function is
chosen when compositing a layer. It reuses existing OpenGLRenderer
APIs and is easier to understand.

Change-Id: I1b9cf8c5d51e09836d85b8cf157a1c284aa65c59
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
81ab046a1127bd2ad397e6d1c6f8021b202a97ff 14-Sep-2010 Romain Guy <romainguy@google.com> Forgot the return value...

Change-Id: Iccf369a613c1cf83f3e948460c567291b084fad2
wui/OpenGLRenderer.cpp
8411f336c786379c5a03106e9ed3bc8622b579a5 14-Sep-2010 Romain Guy <romainguy@google.com> Fix rendering issue with layers intersecting the clip rect.

Change-Id: Icbe35194fa219ef13ce639d33631235f8d7df3d7
wui/OpenGLRenderer.cpp
58ef7fbf16864164efe98bf613b15c64deb1afc0 13-Sep-2010 Romain Guy <romainguy@google.com> Forces windows to draw the first time they show.

Change-Id: I239572ee49bc60f30d957f548104e75844859a93
wui/FontRenderer.cpp
2bffd268f135df8308c9e67af110525a5c463424 13-Sep-2010 Romain Guy <romainguy@google.com> Fix text rendering issue with text scaling.

Change-Id: I1f3ae40025697e8f8ca0616ee6550fe215cadcc8
wui/FontRenderer.cpp
wui/FontRenderer.h
wui/OpenGLRenderer.cpp
b3787d57fffbb898f4767f7a94031cafe974a0b0 13-Sep-2010 Jeff Brown <jeffbrown@google.com> am 0f0541e4: am b88102f5: Input dispatcher ANR handling enhancements.

Merge commit '0f0541e40cfef51eb5c3769e53c1aa853b53aaf6'

* commit '0f0541e40cfef51eb5c3769e53c1aa853b53aaf6':
Input dispatcher ANR handling enhancements.
0f0541e40cfef51eb5c3769e53c1aa853b53aaf6 13-Sep-2010 Jeff Brown <jeffbrown@google.com> am b88102f5: Input dispatcher ANR handling enhancements.

Merge commit 'b88102f5b7e51552a3576cf197b4c8cf96f193d1' into gingerbread-plus-aosp

* commit 'b88102f5b7e51552a3576cf197b4c8cf96f193d1':
Input dispatcher ANR handling enhancements.
b88102f5b7e51552a3576cf197b4c8cf96f193d1 08-Sep-2010 Jeff Brown <jeffbrown@google.com> Input dispatcher ANR handling enhancements.

This change is essentially a rewrite of the main input dispatcher loop
with the target identification folded in. Since the input dispatcher now
has all of the window state, it can make better decisions about
when to ANR.

Added a .5 second deadline for processing app switch keys. This behavior
predates Gingerbread but had not previously been ported.

Fixed some timing inaccuracies in the ANR accounting that could cause
applications to ANR sooner than they should have.

Added a mechanism for tracking key and motion events that have been
dispatched to a window so that appropriate cancelation events can be
synthesized when recovering from ANR. This change helps to keep
applications in sync so they don't end up with stuck buttons upon
recovery from ANRs.

Added more comments to describe the tricky parts of PollLoop.

Change-Id: I13dffca27acb436fc383980db536abc4d8b9e6f1
i/InputDispatcher.cpp
i/InputManager.cpp
i/InputReader.cpp
tils/PollLoop.cpp
6d000d4eb733fc6ad7fcd27a4022a41f8433306d 12-Sep-2010 Romain Guy <romainguy@google.com> Merge "Optimize calls to glCopyTexImage2D()."
8694230ff25fa0a60e480d424843e56b718f0516 12-Sep-2010 Romain Guy <romainguy@google.com> Optimize calls to glCopyTexImage2D().

Change-Id: I34ee87bd4472864f440916e03a2894fae24bbe4a
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
ae44d554b765597bd82d42e2d7c1008468b42b8e 12-Sep-2010 Romain Guy <romainguy@google.com> Merge "Correct implementation of saveLayer()."
f607bdc167f66b3e7003acaa4736ae46d78c1492 11-Sep-2010 Romain Guy <romainguy@google.com> Correct implementation of saveLayer().

Change-Id: I5375126636913e0a84f2d6bbd0ebe40d2e4f2763
wui/Layer.h
wui/LayerCache.cpp
wui/LayerCache.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/ProgramCache.cpp
wui/ProgramCache.h
wui/Snapshot.h
84d10ad4294d6da4ce8e434100fc1f130f5a07de 10-Sep-2010 Dianne Hackborn <hackbod@google.com> am 510951e9: am a8512a71: Always set the scheduling group when starting a new thread.

Merge commit '510951e98bdb861130f38c087956cd05e0b41dcd'

* commit '510951e98bdb861130f38c087956cd05e0b41dcd':
Always set the scheduling group when starting a new thread.
510951e98bdb861130f38c087956cd05e0b41dcd 10-Sep-2010 Dianne Hackborn <hackbod@google.com> am a8512a71: Always set the scheduling group when starting a new thread.

Merge commit 'a8512a71d3c2e3e67bbccf11251ed594d66f1f25' into gingerbread-plus-aosp

* commit 'a8512a71d3c2e3e67bbccf11251ed594d66f1f25':
Always set the scheduling group when starting a new thread.
a8512a71d3c2e3e67bbccf11251ed594d66f1f25 10-Sep-2010 Dianne Hackborn <hackbod@google.com> Always set the scheduling group when starting a new thread.

Change-Id: Ia33acf13fc3752707f3819928c36315e223fa1bd
tils/Threads.cpp
a5aed0d58962a24c44728ffc46dc9e1ba2f9fda5 09-Sep-2010 Romain Guy <romainguy@google.com> Add support for advanced blend modes with the framebuffer.

This adds the ability to blend with the framebuffer using Darken,
Lighten, Add, Multiply, Overlay and Screen.

Change-Id: Iae01a53797d4ad39c373cba6ff2a42293129da1a
wui/Extensions.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/ProgramCache.cpp
wui/ProgramCache.h
d90f23e24a4d1768d5a7ed0e7072e67af6330a45 09-Sep-2010 Romain Guy <romainguy@google.com> Do not convert 8888 bitmaps to 565 when doing a copy.

Bug #2988077
This change keeps the 8888 format for new bitmaps and also keeps,
when possible, the opaque flag.

Change-Id: Ia61f2e89936916b329212a4c59a7d815c329f84e
wui/OpenGLRenderer.cpp
183f17e7eb2f51be24489e7b1bd3e2e5e4bc579a 09-Sep-2010 Romain Guy <romainguy@google.com> A Path can exist in several cache entries.

Change-Id: I742f7425d2b6bef753ed3e04fb39ebb103b2dc00
wui/PathCache.cpp
9584a542e345fa18fc62eb0b5947f250226f211d 09-Sep-2010 Romain Guy <romainguy@google.com> Merge "Purge Skia objects from GL caches as needed."
a2341a9f6addcd79723965ec5b1a1c5ae0f8bd65 09-Sep-2010 Romain Guy <romainguy@google.com> Purge Skia objects from GL caches as needed.

Change-Id: I754c671cf790ad5ae8bf047ad328034217da4ecc
wui/Caches.h
wui/GenerationCache.h
wui/GradientCache.cpp
wui/GradientCache.h
wui/PathCache.cpp
wui/PathCache.h
wui/TextureCache.cpp
wui/TextureCache.h
53e7ae9065e506da2f0337c7c77cf2749d9ee970 09-Sep-2010 Romain Guy <romainguy@google.com> Merge "Fix possible infinite loop when purging textures."
9aaa8269a3e7291aab84d01c3fc9c744d8f2d2f4 09-Sep-2010 Romain Guy <romainguy@google.com> Fix possible infinite loop when purging textures.

Change-Id: Ib05b398ae03e734da2dab0496df416fed4570b1c
wui/GenerationCache.h
wui/PatchCache.h
wui/Texture.h
wui/TextureCache.cpp
wui/TextureCache.h
3dfc5721ad4dfe15962fd18daf038044cd09bf86 08-Sep-2010 Jeff Brown <jeffbrown@google.com> am 8723bb58: am b21fb104: Fix key repeat delay.

Merge commit '8723bb58b17a07b7ca036cc76d737c6c0f4b13c7'

* commit '8723bb58b17a07b7ca036cc76d737c6c0f4b13c7':
Fix key repeat delay.
8723bb58b17a07b7ca036cc76d737c6c0f4b13c7 08-Sep-2010 Jeff Brown <jeffbrown@google.com> am b21fb104: Fix key repeat delay.

Merge commit 'b21fb104cc95fe7e5daf3b3626241e525c39a3f1' into gingerbread-plus-aosp

* commit 'b21fb104cc95fe7e5daf3b3626241e525c39a3f1':
Fix key repeat delay.
b380c4d7edc158788a85c906900232675c0164ac 08-Sep-2010 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of a05088c1 to master

Change-Id: I7973f9f28586dec9b9659f8f662f40db7997a521
b21fb104cc95fe7e5daf3b3626241e525c39a3f1 07-Sep-2010 Jeff Brown <jeffbrown@google.com> Fix key repeat delay.

Change-Id: I6216e082324ee29bf50e37acc673350ca5417c4d
i/InputDispatcher.cpp
a05088c18d22f822e78e7b91d60f518dc3dc06fc 08-Sep-2010 Jeff Brown <jeffbrown@google.com> am 85a31767: Add support for secure views.

Merge commit '85a3176704b5bfbeece9bd928369fbb76eec7dc6' into gingerbread-plus-aosp

* commit '85a3176704b5bfbeece9bd928369fbb76eec7dc6':
Add support for secure views.
85a3176704b5bfbeece9bd928369fbb76eec7dc6 02-Sep-2010 Jeff Brown <jeffbrown@google.com> Add support for secure views.

Added the MotionEvent.FLAG_WINDOW_IS_OBSCURED flag which is set by the
input manager whenever another visible window is partly or wholly obscured
the target of a touch event so that applications can filter touches
accordingly.

Added a "filterTouchesWhenObscured" attribute to View which can be used to
enable filtering of touches when the view's window is obscured.

Change-Id: I936d9c85013fd2d77fb296a600528d30a29027d2
i/Input.cpp
i/InputDispatcher.cpp
i/InputReader.cpp
i/InputTransport.cpp
i/tests/InputPublisherAndConsumer_test.cpp
db09da1071f369ebb05aa3b3cd757c7806d964ca 08-Sep-2010 Ying Wang <wangying@google.com> Merge "Reflected class name and bc file name changes."
a009dde6f481464fe60e3fca5ead9fcfab03ddcf 08-Sep-2010 Kenny Root <kroot@google.com> am 2a08e2a9: am a19ef306: Revert "Free created FileMap when uncompressing files"

Merge commit '2a08e2a9f881d06a03e36367585137e05706f592'

* commit '2a08e2a9f881d06a03e36367585137e05706f592':
Revert "Free created FileMap when uncompressing files"
2a08e2a9f881d06a03e36367585137e05706f592 08-Sep-2010 Kenny Root <kroot@google.com> am a19ef306: Revert "Free created FileMap when uncompressing files"

Merge commit 'a19ef306bd0a257c67b50f5e0e669e9fe52b0889' into gingerbread-plus-aosp

* commit 'a19ef306bd0a257c67b50f5e0e669e9fe52b0889':
Revert "Free created FileMap when uncompressing files"
a19ef306bd0a257c67b50f5e0e669e9fe52b0889 08-Sep-2010 Kenny Root <kroot@google.com> Revert "Free created FileMap when uncompressing files"

This reverts commit 52b8235238fb4d8cf141020cc1ae33880929dc3f.

munmap() on a region that overlaps something else (e.g, the ZIP Central
Directory in this case) unmaps those other regions as well making the
ZipFileRO class unhappy. Revert this for now until we can have FileMap
deal with this craziness.
tils/ZipFileRO.cpp
347262622b86410ff8a4ff3530ab3688b6a20b21 08-Sep-2010 Dianne Hackborn <hackbod@google.com> am a1205f07: am 2d3739d4: Merge "Modify native ALooper to take an explicit ident." into gingerbread

Merge commit 'a1205f07a6f0c745e8f42f16fe38c06af04143c7'

* commit 'a1205f07a6f0c745e8f42f16fe38c06af04143c7':
Modify native ALooper to take an explicit ident.
c24ffe6fdc34964442f2fe4c223c856bde8e1e96 08-Sep-2010 Anatol Pomazau <anatol@google.com> Fix header path.

Now libbcc is located under framework/compile

Change-Id: I39cd0d27da73ce31e8cb92772bfda3a942ccd27c
s/rsScriptC.cpp
a1205f07a6f0c745e8f42f16fe38c06af04143c7 08-Sep-2010 Dianne Hackborn <hackbod@google.com> am 2d3739d4: Merge "Modify native ALooper to take an explicit ident." into gingerbread

Merge commit '2d3739d479d67ba736cefbdd6087a11eadfb14ea' into gingerbread-plus-aosp

* commit '2d3739d479d67ba736cefbdd6087a11eadfb14ea':
Modify native ALooper to take an explicit ident.
42c03e579aade011b451e2a13ea3f44a2ef0056a 08-Sep-2010 Dianne Hackborn <hackbod@google.com> Modify native ALooper to take an explicit ident.

The ALooper API now uses an explicit "identifier" for the integer
that is returned rather than implicitly using the fd. This allows
the APIs that had the fd to be a little more sane.

Change-Id: I8507f535ad484c0bdc4a1bd016d87bb09acd7ff0
ui/SensorEventQueue.cpp
tils/PollLoop.cpp
6aa616c94aff14687ace1cb3ee1874a044a89821 07-Sep-2010 Dianne Hackborn <hackbod@google.com> am 05dff838: am 11bbe200: Hopefully fix the build.

Merge commit '05dff838946abb01caa3c3172cf0f367964a0b6d'

* commit '05dff838946abb01caa3c3172cf0f367964a0b6d':
Hopefully fix the build.
49706753163e5da5d2484685ab74aee3e5cf8069 07-Sep-2010 Dianne Hackborn <hackbod@google.com> am b8bcfed5: am f703b77c: Merge "Add system property to turn off scheduling groups." into gingerbread

Merge commit 'b8bcfed5524a37ee51e3f1129f1df91bc4a59cb4'

* commit 'b8bcfed5524a37ee51e3f1129f1df91bc4a59cb4':
Add system property to turn off scheduling groups.
05dff838946abb01caa3c3172cf0f367964a0b6d 07-Sep-2010 Dianne Hackborn <hackbod@google.com> am 11bbe200: Hopefully fix the build.

Merge commit '11bbe200cba150cfa5593bb87b54f3072a5ab2c5' into gingerbread-plus-aosp

* commit '11bbe200cba150cfa5593bb87b54f3072a5ab2c5':
Hopefully fix the build.
11bbe200cba150cfa5593bb87b54f3072a5ab2c5 07-Sep-2010 Dianne Hackborn <hackbod@google.com> Hopefully fix the build.

Change-Id: Id8cd92c0895c9939e1386ef488bd1309a3be3568
tils/Threads.cpp
db6f11bd30ad8afc94fdaffd81c9588289a3f6e5 07-Sep-2010 Alex Sakhartchouk <alexst@google.com> Fixing a3d files to reflect the new element structure.

Change-Id: I44d95c9411706813dde815c5f052f3615e8b483e
s/java/ModelViewer/res/raw/robot.a3d
s/java/ModelViewer/src/com/android/modelviewer/SceneGraphRS.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModelRS.java
s/java/ModelViewer/src/com/android/modelviewer/scenegraph.rs
s/java/ModelViewer/src/com/android/modelviewer/simplemodel.rs
s/java/Samples/res/raw/torus.a3d
70d4e5024298f71edb3b04867e05568f5495b4ce 03-Sep-2010 Jason Sams <rjsams@android.com> Add arrays to elements.

Change-Id: I624b03bfc1fd26136afd9305a96026b91b1fad3c
s/rs.spec
s/rsElement.cpp
s/rsElement.h
s/rsFont.cpp
b8bcfed5524a37ee51e3f1129f1df91bc4a59cb4 07-Sep-2010 Dianne Hackborn <hackbod@google.com> am f703b77c: Merge "Add system property to turn off scheduling groups." into gingerbread

Merge commit 'f703b77c96a6d133fda534158eaf6190ff7c87f7' into gingerbread-plus-aosp

* commit 'f703b77c96a6d133fda534158eaf6190ff7c87f7':
Add system property to turn off scheduling groups.
8dff092ecadf17e0898d66fc1d096b38aadc5bf4 07-Sep-2010 Ying Wang <wangying@google.com> Reflected class name and bc file name changes.

Any non-alnum chars in the rs file name will be removed when we derive the bc file name.
The reflected class names are converted to camel case.

Change-Id: I0184fe8ef2987a19dbdbc93c72163e02b5b0de89
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
s/java/tests/src/com/android/rs/test/RSTestCore.java
84bb52ed614f3a13370c923a8bc2a8b7c6db8d30 04-Sep-2010 Dianne Hackborn <hackbod@google.com> Add system property to turn off scheduling groups.

Do this:

adb shell setprop debug.sys.noschedgroups 1

Change-Id: I6e06a74205fd45ee1526ce71fe33944465d39984
tils/Threads.cpp
355383e424882b590139590296562d644dd97a95 03-Sep-2010 Alex Sakhartchouk <alexst@google.com> Merge "Fixing fragment shader bounding code"
caaac0f8271ddc34c1163cb45b4026c014b3ec12 03-Sep-2010 Alex Sakhartchouk <alexst@google.com> Fixing fragment shader bounding code

Change-Id: I743dae12bb3f226f758a065d9b353eff36e2f964
s/rsProgramFragment.cpp
s/rsProgramFragment.h
871603074739320b8e7a82772da12c48587f3a40 03-Sep-2010 Kenny Root <kroot@google.com> am 8d5250c6: am 2e246549: Merge "Add better debug output for ResourceType errors" into gingerbread

Merge commit '8d5250c601504da7a7fde3a3fd7b1c51335becdf'

* commit '8d5250c601504da7a7fde3a3fd7b1c51335becdf':
Add better debug output for ResourceType errors
8d5250c601504da7a7fde3a3fd7b1c51335becdf 03-Sep-2010 Kenny Root <kroot@google.com> am 2e246549: Merge "Add better debug output for ResourceType errors" into gingerbread

Merge commit '2e2465497c08061cccf4908e49095f2d19a35eea' into gingerbread-plus-aosp

* commit '2e2465497c08061cccf4908e49095f2d19a35eea':
Add better debug output for ResourceType errors
68c2e915fdf4ac4c9f48c0b182e9190620014bc6 02-Sep-2010 Kenny Root <kroot@google.com> Add better debug output for ResourceType errors

An error code is returned as -ESOMETHING, but the debug code was
printing out 0x%08x for these codes making -74 print out as 0xffffffb5
which is kind of silly.

Change-Id: I7d77fb3da2e146845949f121404f662b47288e61
tils/ResourceTypes.cpp
8e95466b5aa16b13c9e39b7ff8167f47a643c4ba 02-Sep-2010 Alex Sakhartchouk <alexst@google.com> Adding ability to dirty the allocation and notify shaders using it.

Change-Id: Id5ac8dbba5185cb1f43bedcf4098fcef9f477c51
s/java/Samples/src/com/android/samples/rsrenderstates.rs
s/rsAllocation.h
s/rsScriptC_Lib.cpp
s/scriptc/rs_math.rsh
18b8a04cdcfb5f954291ea2f429aaea5e09d2ec0 02-Sep-2010 Jason Sams <rjsams@android.com> Merge "Remove ACC and other legacy bits from RS."
8aef54fa17f2a3753d9a8f2027629bc480088f69 02-Sep-2010 Romain Guy <romainguy@android.com> Add support for Canvas flags on save.

This is required for the rewrite of layers support.

Change-Id: I5c0867dcf5aeb0392c8d0fbab05febb0eaff70d9
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Rect.h
wui/SkiaShader.cpp
wui/Snapshot.h
deb0008c6340e49805fa5386761a6a6a7949763f 01-Sep-2010 Jason Sams <rjsams@android.com> Remove ACC and other legacy bits from RS.

Change-Id: I12a3b0477f3201ec7ca63564ae2b387ecc89dedf
s/rsProgramVertex.cpp
s/rsScriptC_Lib.cpp
s/rsScriptC_LibGL.cpp
3927dbb52a99382802f8df8d03fef496a8e0a1ea 01-Sep-2010 Jason Sams <rjsams@android.com> Merge "SubElementData data upload functions."
ee6d676c5b997a1214e96b6ba3755054382717c5 01-Sep-2010 Jeff Brown <jeffbrown@google.com> am df02df11: am 307ed31c: Merge "Remove incomplete input device enumeration NDK API." into gingerbread

Merge commit 'df02df115a594553b3ebaa95a0a7f7185a8787d3'

* commit 'df02df115a594553b3ebaa95a0a7f7185a8787d3':
Remove incomplete input device enumeration NDK API.
df02df115a594553b3ebaa95a0a7f7185a8787d3 01-Sep-2010 Jeff Brown <jeffbrown@google.com> am 307ed31c: Merge "Remove incomplete input device enumeration NDK API." into gingerbread

Merge commit '307ed31c93f16dd3d34348c92cb22d81ddeba6c0' into gingerbread-plus-aosp

* commit '307ed31c93f16dd3d34348c92cb22d81ddeba6c0':
Remove incomplete input device enumeration NDK API.
49bdaf0293408159df18a1d8540360f9623c40f7 31-Aug-2010 Jason Sams <rjsams@android.com> SubElementData data upload functions.

Change-Id: I5f8c738b5457ae7f6085fc4cd331cf3d13ad75cf
s/rs.spec
s/rsAllocation.cpp
s/rsAllocation.h
s/rsHandcode.h
s/rsProgramVertex.cpp
5fad2675e8deee60aa91d7a96c9ac4826357f2c5 01-Sep-2010 Jeff Brown <jeffbrown@google.com> Remove incomplete input device enumeration NDK API.

Change-Id: I32de74ff5fcf0e29179a2aee03ddabd22fa485bb
i/Input.cpp
1423f51ec5fe2c9bf5fa44866443b2c52db165be 01-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am ae087369: am 63070856: Merge "Don\'t propagate StrictMode over one-way Binder calls." into gingerbread

Merge commit 'ae087369c56a270c33c1c1af5be7d3c5d7f94e80'

* commit 'ae087369c56a270c33c1c1af5be7d3c5d7f94e80':
Don't propagate StrictMode over one-way Binder calls.
fdf5b0808ff6f6a3c067dab17a9533cfd66229f1 01-Sep-2010 Alex Sakhartchouk <alexst@google.com> Merge "Fixing uniform binding for fragment shader. Updating the glsl fragment shader to color the lights."
ae087369c56a270c33c1c1af5be7d3c5d7f94e80 01-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am 63070856: Merge "Don\'t propagate StrictMode over one-way Binder calls." into gingerbread

Merge commit '63070856d034a2819a26560bc7f2881e501c78b7' into gingerbread-plus-aosp

* commit '63070856d034a2819a26560bc7f2881e501c78b7':
Don't propagate StrictMode over one-way Binder calls.
0234376503ce421c4b871d5d811c541f5094301a 31-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> Don't propagate StrictMode over one-way Binder calls.

This was causing stack stitching problems where a one-way call with
violations followed by a two-way call without violations was getting
the previous one-way call's violation stack stitched on to the second
caller's stack.

The solution is a little more indirect than I would've liked
(preserving the binder's onTransact flags until enforceInterface) but
was seemingly necessary to work without changing the AIDL compiler.
It should also be sufficiently cheap, since no new calls to
thread-local IPCThreadState lookups were required. The additional
work is just same-thread getter/setters on the existing
IPCThreadState.

Change-Id: I4b6db1d445c56e868e6d0d7be3ba6849f4ef23ae
inder/IPCThreadState.cpp
inder/Parcel.cpp
8442e0bffe0cdf731449d16494da35f9df956cee 31-Aug-2010 Alex Sakhartchouk <alexst@google.com> Fixing uniform binding for fragment shader.
Updating the glsl fragment shader to color the lights.

Change-Id: I6f850d1aa22059a2974e379f652f7e99d6a799fb
s/java/Samples/res/raw/shaderf.glsl
s/java/Samples/src/com/android/samples/rsrenderstates.rs
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramFragment.cpp
s/rsProgramVertex.cpp
s/rsProgramVertex.h
2cbe236138d1e8b003730087ee9c8e9ecca83795 31-Aug-2010 Romain Guy <romainguy@google.com> Merge "Add hooks for hardware accelerated WebView."
da8532c6f48b4c10b5e2ccb9e08690341efa1616 31-Aug-2010 Romain Guy <romainguy@google.com> Add hooks for hardware accelerated WebView.

Change-Id: I907cdec8a67594f87749ac46bda85f04af5a2003
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
22f5ee93746f37823265b8cb9b1e94e572607514 31-Aug-2010 Jeff Brown <jeffbrown@google.com> am 36f0cb26: am 8d60866e: Input device calibration and capabilities.

Merge commit '36f0cb26cbb4ef62995ff2e5a540cf8814e7f030'

* commit '36f0cb26cbb4ef62995ff2e5a540cf8814e7f030':
Input device calibration and capabilities.
36f0cb26cbb4ef62995ff2e5a540cf8814e7f030 31-Aug-2010 Jeff Brown <jeffbrown@google.com> am 8d60866e: Input device calibration and capabilities.

Merge commit '8d60866e2100db70ecf0502c14768a384514d7e9' into gingerbread-plus-aosp

* commit '8d60866e2100db70ecf0502c14768a384514d7e9':
Input device calibration and capabilities.
8d60866e2100db70ecf0502c14768a384514d7e9 30-Aug-2010 Jeff Brown <jeffbrown@google.com> Input device calibration and capabilities.

Finished the input device capability API.
Added a mechanism for calibrating touch devices to obtain more
accurate information about the touch contact area.
Improved pointer location to show new coordinates and capabilities.
Optimized pointer location display and formatting to avoid allocating large
numbers of temporary objects. The GC churn was causing the application to
stutter very badly when more than a couple of fingers were down).
Added more diagnostics.

Change-Id: Ie25380278ed6f16c5b04cd9df848015850383498
i/EventHub.cpp
i/InputDispatcher.cpp
i/InputReader.cpp
b8f7f42f70790121f954c2ae3d2e7b915808510a 30-Aug-2010 Wu-cheng Li <wuchengli@google.com> am 6e46e6f7: am 7ec7b997: Remove camera metering mode API.

Merge commit '6e46e6f7488ad1f4e6ab762d141790798fe3f2d5'

* commit '6e46e6f7488ad1f4e6ab762d141790798fe3f2d5':
Remove camera metering mode API.
6e46e6f7488ad1f4e6ab762d141790798fe3f2d5 30-Aug-2010 Wu-cheng Li <wuchengli@google.com> am 7ec7b997: Remove camera metering mode API.

Merge commit '7ec7b9970cc3a6311bf043e228991adf24c43523' into gingerbread-plus-aosp

* commit '7ec7b9970cc3a6311bf043e228991adf24c43523':
Remove camera metering mode API.
7ec7b9970cc3a6311bf043e228991adf24c43523 28-Aug-2010 Wu-cheng Li <wuchengli@google.com> Remove camera metering mode API.

Metering mode is not supported yet.

Change-Id: Id6906d6ab0cd1a9dcbc5c303d8d5081b2cda699e
amera/CameraParameters.cpp
9846bc6a9bbcc1282791faf60718384fff12233e 30-Aug-2010 Alex Sakhartchouk <alexst@google.com> Merge "Fixing renderscript uniform binding bugs. Working on custom shaders."
7a97e5a21ef1fdb1985aa146bea91e82fad907db 28-Aug-2010 Kenny Root <kroot@google.com> am 8e724905: am ad6731b0: Merge "Add debugging to ZipFileRO" into gingerbread

Merge commit '8e724905261bf4913bac75adc64fb08ed5ba8b7d'

* commit '8e724905261bf4913bac75adc64fb08ed5ba8b7d':
Add debugging to ZipFileRO
54c4bf27437b8d7f8d2a494acd9de53d55696dea 28-Aug-2010 Mathias Agopian <mathias@google.com> am d322d163: am ae66946b: Merge "fix a race in SF buffer management" into gingerbread

Merge commit 'd322d16323176ddd5fef3383798176f64d0078c8'

* commit 'd322d16323176ddd5fef3383798176f64d0078c8':
fix a race in SF buffer management
a41174ecb03331d770614ecc6351cbc890874c28 28-Aug-2010 Alex Sakhartchouk <alexst@google.com> Fixing renderscript uniform binding bugs.
Working on custom shaders.

Change-Id: I0d51e879e1c2b46ef5ab696b35162898f4196fc8
s/java/Samples/res/raw/shaderf.glsl
s/java/Samples/res/raw/shaderv.glsl
s/java/Samples/res/raw/torus.a3d
s/java/Samples/src/com/android/samples/RsRenderStatesRS.java
s/java/Samples/src/com/android/samples/rsrenderstates.rs
s/java/Samples/src/com/android/samples/shader_def.rsh
s/rsProgramVertex.cpp
s/rsVertexArray.cpp
8e724905261bf4913bac75adc64fb08ed5ba8b7d 27-Aug-2010 Kenny Root <kroot@google.com> am ad6731b0: Merge "Add debugging to ZipFileRO" into gingerbread

Merge commit 'ad6731b0fc759e446504bca163d8fd2fb6326577' into gingerbread-plus-aosp

* commit 'ad6731b0fc759e446504bca163d8fd2fb6326577':
Add debugging to ZipFileRO
ad6731b0fc759e446504bca163d8fd2fb6326577 27-Aug-2010 Kenny Root <kroot@google.com> Merge "Add debugging to ZipFileRO" into gingerbread
6329fdbded79bc659fedcd6b7051de8840a5de64 27-Aug-2010 Kenny Root <kroot@google.com> Add debugging to ZipFileRO

Some assets are failing to read from ZIP files. This adds a bit more
debugging to figure out what's going on.

Change-Id: Id90e10546c54c85069a34478fbc28bc2523bda5d
tils/ZipFileRO.cpp
d322d16323176ddd5fef3383798176f64d0078c8 27-Aug-2010 Mathias Agopian <mathias@google.com> am ae66946b: Merge "fix a race in SF buffer management" into gingerbread

Merge commit 'ae66946bd9e9f1168241c75196d2379b43e3ca30' into gingerbread-plus-aosp

* commit 'ae66946bd9e9f1168241c75196d2379b43e3ca30':
fix a race in SF buffer management
b45c0c9774bd19a9dbe77d149abae4e124b08bf6 27-Aug-2010 Romain Guy <romainguy@google.com> Apply gamma correction to font rendering.

Change-Id: I1b05f40e356221b2a5eb9400e67d77ecd98ed6c4
wui/Android.mk
wui/Caches.h
wui/FontRenderer.cpp
wui/FontRenderer.h
wui/GammaFontRenderer.cpp
wui/GammaFontRenderer.h
wui/OpenGLRenderer.cpp
wui/Properties.h
wui/TextDropShadowCache.cpp
c9289fa1c4d3aeba5122863cdae7d0a9806d8833 27-Aug-2010 Mathias Agopian <mathias@google.com> fix a race in SF buffer management

also remove some unused code.

Change-Id: Iae2c3309b7a08055f3e13a5b866c5c084993e352
urfaceflinger_client/SharedBufferStack.cpp
1d45c47975ab2a8cef6db5a8976276de31e1e8d0 25-Aug-2010 Jason Sams <rjsams@android.com> Add matrix component types.
Fix potental overflow in script -> java messages.

Change-Id: Ie6fd9dc376be4043fc938a1517106936937689c8
s/RenderScript.h
s/java/ModelViewer/src/com/android/modelviewer/SgTransform.java
s/java/ModelViewer/src/com/android/modelviewer/scenegraph.rs
s/java/ModelViewer/src/com/android/modelviewer/transform.rs
s/java/ModelViewer/src/com/android/modelviewer/transform_def.rsh
s/rsComponent.cpp
s/rsContext.cpp
375d19656a17517bd155e812115ff13699817005 25-Aug-2010 Romain Guy <romainguy@google.com> Merge "Fix passion build"
f6fcac7ce16a631ca2b101f5bbebe58af5b247a8 25-Aug-2010 Romain Guy <romainguy@google.com> Fix passion build

Change-Id: I93322bd36a004ac5aa9a0409d22dbf36a2da1680
wui/Caches.h
bce2e90ca9bc2277a4816b7996f84506df411cf9 25-Aug-2010 Mathias Agopian <mathias@google.com> am bc4389ed: am 8395b462: Merge "fix [2931513] Add support for setting the orientation of an ANativeWindow" into gingerbread

Merge commit 'bc4389edfbb5777aec1a9af7863b2ca3ade2fa64'

* commit 'bc4389edfbb5777aec1a9af7863b2ca3ade2fa64':
fix [2931513] Add support for setting the orientation of an ANativeWindow
a84e02ce3cc392ccf23bbe89cdfbef650047ffe7 25-Aug-2010 Romain Guy <romainguy@google.com> Merge "Use only one GL context per process, share chaches."
fb8b763f762ae21923c58d64caa729b012f40e05 24-Aug-2010 Romain Guy <romainguy@google.com> Use only one GL context per process, share chaches.

Change-Id: Ieabaa25338d2f4b8d4fd90e7401ad6e7452eae11
wui/Caches.h
wui/GenerationCache.h
wui/GradientCache.cpp
wui/GradientCache.h
wui/LayerCache.cpp
wui/LayerCache.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/PatchCache.cpp
wui/PatchCache.h
wui/PathCache.cpp
wui/PathCache.h
wui/ProgramCache.h
wui/Properties.h
wui/TextDropShadowCache.cpp
wui/TextDropShadowCache.h
wui/TextureCache.cpp
wui/TextureCache.h
bc4389edfbb5777aec1a9af7863b2ca3ade2fa64 25-Aug-2010 Mathias Agopian <mathias@google.com> am 8395b462: Merge "fix [2931513] Add support for setting the orientation of an ANativeWindow" into gingerbread

Merge commit '8395b4625b96f2133e2e4f595fdc69fbe222e4fc' into gingerbread-plus-aosp

* commit '8395b4625b96f2133e2e4f595fdc69fbe222e4fc':
fix [2931513] Add support for setting the orientation of an ANativeWindow
e96aa3e859cb747e241dfa2999fcd142a688ed57 20-Aug-2010 Mathias Agopian <mathias@google.com> fix [2931513] Add support for setting the orientation of an ANativeWindow

Also implement support for cropping.

Change-Id: Iba5888dd242bf2feaac9e9ce26e404c1f404c280
urfaceflinger_client/SharedBufferStack.cpp
urfaceflinger_client/Surface.cpp
d36f248eaf06c569010649902df653da1a9e2acc 24-Aug-2010 Alex Sakhartchouk <alexst@google.com> More work on the renderscript sample

Change-Id: Ib1812bbaa38180ca63d6d53c9cc3aeeee4134725
s/java/Samples/res/drawable/torusmap.png
s/java/Samples/res/raw/torus.a3d
s/java/Samples/src/com/android/samples/RsRenderStatesRS.java
s/java/Samples/src/com/android/samples/rsrenderstates.rs
53e75ea847df20b29124966a4232dc0109c37e27 24-Aug-2010 Kenny Root <kroot@google.com> resolved conflicts for merge of 485de781 to master

Change-Id: I483cb81596f09b024b1aea7fc55960183f38b24f
e0e6a0fc8e7962b7a6f68281fbb038c546dcdf7a 24-Aug-2010 Kenny Root <kroot@google.com> am b90b9d54: am 6be23712: Merge "Free created FileMap when uncompressing files" into gingerbread

Merge commit 'b90b9d54eb6bbc3a4045ff0bf46d3366822e835e'

* commit 'b90b9d54eb6bbc3a4045ff0bf46d3366822e835e':
Free created FileMap when uncompressing files
eee09313c659b1c97ef6188b6ae4066c87615159 24-Aug-2010 Wu-cheng Li <wuchengli@google.com> am 346b6126: am 97a56269: Merge "Add camera fps range API." into gingerbread

Merge commit '346b6126d54bda4ddc705b27f49004b5cf3a2b3e'

* commit '346b6126d54bda4ddc705b27f49004b5cf3a2b3e':
Add camera fps range API.
85cfdd011241a5f2fb7fabc65b5943a39af7e1de 11-Aug-2010 Jamie Gennis <jgennis@google.com> Change the framework to use the new camera preview path.

This change makes the camera HAL interface take an ANativeWindow interface from
which all the camera preview buffers will be allocated. The framework code
running in application processes now passes a Surface object rather than an
ISurface to the camera server via Binder when setting the preview surface. The
camera server then forwards that Surface object (which implements the
ANativeWindow interface) to the camera HAL, which uses it to communicate with
SurfaceFlinger to allocate the camera preview buffers.

Change-Id: Ie438f721559cd7de5e4f848a26d96360dda07b5f
amera/Camera.cpp
amera/ICamera.cpp
urfaceflinger_client/SharedBufferStack.cpp
urfaceflinger_client/Surface.cpp
40a87586761450f80ad44f948a35266e87f326de 23-Jun-2010 Sean McNeil <sean.mcneil@windriver.com> Only monitor recognized uevent devices.

system_server can potentially monitor uevent devices that are
of no use to it. For instance, an accelerometer implementation
as uevents. This would cause the process to be busy when
unnecessary. If a device cannot be classified, don't monitor it.

Change-Id: I489cc453bdce7cb376102cba67a9ea470e13292d
i/EventHub.cpp
a1f1174b396cda7bdff469a2e974a737600c5eb0 23-Aug-2010 Alex Sakhartchouk <alexst@google.com> Merge "Renderscript samples. Resolving name conflict in model viewer. Adding fov projection matrix function. Adding helper methods for blending."
32e09b5891da0174f161d99e2d3ebe67d6efa39c 23-Aug-2010 Alex Sakhartchouk <alexst@google.com> Renderscript samples.
Resolving name conflict in model viewer.
Adding fov projection matrix function.
Adding helper methods for blending.

Change-Id: Ibd3f1510436811398787c285845d050158bd6de8
s/java/ModelViewer/AndroidManifest.xml
s/java/ModelViewer/src/com/android/modelviewer/ModelViewer.java
s/java/ModelViewer/src/com/android/modelviewer/ModelViewerRS.java
s/java/ModelViewer/src/com/android/modelviewer/ModelViewerView.java
s/java/ModelViewer/src/com/android/modelviewer/SceneGraphRS.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModel.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModelRS.java
s/java/ModelViewer/src/com/android/modelviewer/SimpleModelView.java
s/java/ModelViewer/src/com/android/modelviewer/modelviewer.rs
s/java/ModelViewer/src/com/android/modelviewer/simplemodel.rs
s/java/Samples/AndroidManifest.xml
s/java/Samples/res/drawable/data.png
s/java/Samples/res/drawable/leaf.png
s/java/Samples/src/com/android/samples/RsRenderStates.java
s/java/Samples/src/com/android/samples/RsRenderStatesRS.java
s/java/Samples/src/com/android/samples/RsRenderStatesView.java
s/java/Samples/src/com/android/samples/rsrenderstates.rs
s/scriptc/rs_core.rsh
0b6d4aed033c774f044691d163040c2e8a115f8a 21-Aug-2010 Mathias Agopian <mathias@google.com> am a90a1e55: am 545eab8a: Merge "remove unused pixel format" into gingerbread

Merge commit 'a90a1e55c60604b930eecff03fe25429205ec7df'

* commit 'a90a1e55c60604b930eecff03fe25429205ec7df':
remove unused pixel format
302b93a47bb66f4dc7cb3a1dacf9f469075c8926 21-Aug-2010 Jeff Brown <jeffbrown@google.com> am d7d58be0: am 00144745: Merge "Make the throttling more sensitive to end-to-end latency." into gingerbread

Merge commit 'd7d58be0b8c1be69bfb774f38bf6d1410d87c4ce'

* commit 'd7d58be0b8c1be69bfb774f38bf6d1410d87c4ce':
Make the throttling more sensitive to end-to-end latency.
e49564e0f710ba4a1405cfdfde068cb776ee474e 21-Aug-2010 Kenny Root <kroot@google.com> am 821afa9a: am 54d41379: Merge "Add OBB flags to support overlays" into gingerbread

Merge commit '821afa9aec8d3a4ffd2e72ce797d8097eaf13973'

* commit '821afa9aec8d3a4ffd2e72ce797d8097eaf13973':
Add OBB flags to support overlays
feb02e7695c99d6eab0884f2424cff5bf48f4df4 21-Aug-2010 Jeff Brown <jeffbrown@google.com> am d25f0aea: am 99401b29: Merge "Add support for throttling motion events." into gingerbread

Merge commit 'd25f0aea1cebe93aff55a75374e172f87115f1b3'

* commit 'd25f0aea1cebe93aff55a75374e172f87115f1b3':
Add support for throttling motion events.
a80d32f7b69aa37026ab99e4ade1ad86dae76a81 21-Aug-2010 Romain Guy <romainguy@google.com> Add support for textScaleX.

This will not look great because we render fonts using bitmaps, not
paths.

Change-Id: I01b87b81bfbdbfa28460a5d5309d38e2a65e77c4
wui/OpenGLRenderer.cpp
485de781f6bd30dfb7aa1e55c4f1efb3d3b11eba 21-Aug-2010 Kenny Root <kroot@google.com> am 06c81f29: Merge changes I8a257579,I82d16312 into gingerbread

Merge commit '06c81f29a61ad3568a77f111b6be93e1f437f5bd' into gingerbread-plus-aosp

* commit '06c81f29a61ad3568a77f111b6be93e1f437f5bd':
Add AStorageManager API to NDK
Reorganize MountService IPC
b90b9d54eb6bbc3a4045ff0bf46d3366822e835e 20-Aug-2010 Kenny Root <kroot@google.com> am 6be23712: Merge "Free created FileMap when uncompressing files" into gingerbread

Merge commit '6be237120e9673e3cfc5243da5bbca287effcf09' into gingerbread-plus-aosp

* commit '6be237120e9673e3cfc5243da5bbca287effcf09':
Free created FileMap when uncompressing files
be857d42849eaaa554d4772dbba7755f8a0f3547 19-Aug-2010 Kenny Root <kroot@google.com> Reorganize MountService IPC

Remove auto-generated AIDL files and replace them with manually edited
.java and .cpp/.h files so that binder calls can be made from either
Java or C++.

Update the makefiles to not attempt to generate the AIDL files and also
remove the old auto-generated .java files.

Put all the storage-related C++ things in libstorage so that we don't
pollute other libraries.

Change-Id: I82d1631295452709f12ff1270f36c3100e652806
torage/Android.mk
torage/IMountService.cpp
torage/IMountServiceListener.cpp
torage/IMountShutdownObserver.cpp
torage/IObbActionListener.cpp
torage/MODULE_LICENSE_APACHE2
torage/NOTICE
6be237120e9673e3cfc5243da5bbca287effcf09 20-Aug-2010 Kenny Root <kroot@google.com> Merge "Free created FileMap when uncompressing files" into gingerbread
346b6126d54bda4ddc705b27f49004b5cf3a2b3e 20-Aug-2010 Wu-cheng Li <wuchengli@google.com> am 97a56269: Merge "Add camera fps range API." into gingerbread

Merge commit '97a56269d06770712f9da7a2a29385012ec9714e' into gingerbread-plus-aosp

* commit '97a56269d06770712f9da7a2a29385012ec9714e':
Add camera fps range API.
97a56269d06770712f9da7a2a29385012ec9714e 20-Aug-2010 Wu-cheng Li <wuchengli@google.com> Merge "Add camera fps range API." into gingerbread
454630f23784afcf3dd6fc58becbb9fb6aa878a9 12-Aug-2010 Wu-cheng Li <wuchengli@google.com> Add camera fps range API.

Original preview frame rate API assumes the frame rate
is fixed. It does not not work with auto frame rate camera.

Change-Id: I38f7122ac8ec844ffd63558dc0763ffa17b0926a
amera/CameraParameters.cpp
4bd3e95ce5de1f92c0548063aca14e294e4dd0fc 20-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am 6d5bb884: am aac6a748: Merge "Only monitor recognized uevent devices." into gingerbread

Merge commit '6d5bb88454db2fc798a07ec1085ef55572dbe670'

* commit '6d5bb88454db2fc798a07ec1085ef55572dbe670':
Only monitor recognized uevent devices.
0ca7aae911be0a9585cafce6eb614b3d69607e10 20-Aug-2010 Jeff Brown <jeffbrown@google.com> am 33992d41: am 72e0b2ab: Merge "Fix some input device mapping bugs with certain drivers." into gingerbread

Merge commit '33992d4195fe55f42ba6919f5a07707a51a12d5d'

* commit '33992d4195fe55f42ba6919f5a07707a51a12d5d':
Fix some input device mapping bugs with certain drivers.
52b8235238fb4d8cf141020cc1ae33880929dc3f 20-Aug-2010 Kenny Root <kroot@google.com> Free created FileMap when uncompressing files

Change-Id: Ice22c4ecb7c129b74bf60cd66ae79e110b017a4a
tils/ZipFileRO.cpp
494413faa24192526689d2d95c5420ba021477a7 19-Aug-2010 Romain Guy <romainguy@google.com> Merge "Update OpenGLRenderer test to test opaque ARGB8888 bitmaps."
e9e7fd0813f1485d20c6cd0014d59aff53c35d84 19-Aug-2010 Romain Guy <romainguy@google.com> Update OpenGLRenderer test to test opaque ARGB8888 bitmaps.

Change-Id: I7159825f4b1d6f5a1cd09ec091994801b52b6bda
wui/TextureCache.cpp
a90a1e55c60604b930eecff03fe25429205ec7df 19-Aug-2010 Mathias Agopian <mathias@google.com> am 545eab8a: Merge "remove unused pixel format" into gingerbread

Merge commit '545eab8ae80b070177cc442931eadc8cd980de26' into gingerbread-plus-aosp

* commit '545eab8ae80b070177cc442931eadc8cd980de26':
remove unused pixel format
545eab8ae80b070177cc442931eadc8cd980de26 19-Aug-2010 Mathias Agopian <mathias@google.com> Merge "remove unused pixel format" into gingerbread
d7d58be0b8c1be69bfb774f38bf6d1410d87c4ce 19-Aug-2010 Jeff Brown <jeffbrown@google.com> am 00144745: Merge "Make the throttling more sensitive to end-to-end latency." into gingerbread

Merge commit '0014474569b8bb237f00fa692ab173678bff619e' into gingerbread-plus-aosp

* commit '0014474569b8bb237f00fa692ab173678bff619e':
Make the throttling more sensitive to end-to-end latency.
0014474569b8bb237f00fa692ab173678bff619e 19-Aug-2010 Jeff Brown <jeffbrown@google.com> Merge "Make the throttling more sensitive to end-to-end latency." into gingerbread
0f4d7bc1844af4934a0288e715a4f1350fd5dac2 19-Aug-2010 Jeff Brown <jeffbrown@google.com> Make the throttling more sensitive to end-to-end latency.

The code now takes into account the time when the event was generated.
So with a 60Hz throttling rate, it ensures that a motion event will not
be delayed due to throttling by any more than 1/60th of second past
the time it was generated.

Change-Id: Iaea1d4f76e79036b4a18873485230731c3cd63c3
i/InputDispatcher.cpp
e509328efcbb05856e5e9c0310394911ee3243dc 19-Aug-2010 Mathias Agopian <mathias@google.com> remove unused pixel format

Change-Id: I55bc3cc41385743c07f7e4de06335c922f746f73
i/PixelFormat.cpp
6694c71dd8507370262998ec1da8ff5e0ffcdf49 19-Aug-2010 Wu-cheng Li <wuchengli@google.com> am eba12749: Merge "Adding getSupportedPreviewSizes to CameraParameters.DO NOT MERGE" into gingerbread

Merge commit 'eba1274978911ea188eead128645299669d02f60' into gingerbread-plus-aosp

* commit 'eba1274978911ea188eead128645299669d02f60':
Adding getSupportedPreviewSizes to CameraParameters.DO NOT MERGE
9ba1ed6a8fe9a79d147d50abb03f5e22d27766b9 19-Aug-2010 Wu-cheng Li <wuchengli@google.com> am ccb91596: Merge "Adding getSupportedPictureSizes to CameraParameters.DO NOT MERGE" into gingerbread

Merge commit 'ccb915963e70c9b4e8fc47b5af97ab37b979195a' into gingerbread-plus-aosp

* commit 'ccb915963e70c9b4e8fc47b5af97ab37b979195a':
Adding getSupportedPictureSizes to CameraParameters.DO NOT MERGE
eba1274978911ea188eead128645299669d02f60 19-Aug-2010 Wu-cheng Li <wuchengli@google.com> Merge "Adding getSupportedPreviewSizes to CameraParameters.DO NOT MERGE" into gingerbread
ccb915963e70c9b4e8fc47b5af97ab37b979195a 19-Aug-2010 Wu-cheng Li <wuchengli@google.com> Merge "Adding getSupportedPictureSizes to CameraParameters.DO NOT MERGE" into gingerbread
526e7a3c8549f504850d7e9148f70682ad0c537e 19-Aug-2010 Alex Sakhartchouk <alexst@google.com> Should fix the build.

Change-Id: Ib4f065341c6a90db70cca1adae2978fbff453b74
s/java/Samples/AndroidManifest.xml
7723d8c6a0ac4afa4b1e627794a368f87f87edd0 19-Aug-2010 Alex Sakhartchouk <alexst@google.com> Hopefully this fixes the build.

Change-Id: I2002ba7e66039d39f8c6754fe7b7e0ca91e7ec13
s/java/Samples/res/drawable/test_pattern.png
6c008b86409202b00fcfc2ca9db3a026c20ccaf7 04-Aug-2010 Nipun Kwatra <nkwatra@google.com> Adding getSupportedPreviewSizes to CameraParameters.DO NOT MERGE

Moved functionality to parse string of sizes from getSupportedPictureSizes
to parseSizesList.
Added getSupportedPreviewSizes which returns a list of supported preview sizes.

Change-Id: I41d4f62f9f1641e9e9258aa2ebaeda13ba846c02
amera/CameraParameters.cpp
0de0c4960da1ec2f6aeada9718755c37cfee45e0 30-Jul-2010 Nipun Kwatra <nkwatra@google.com> Adding getSupportedPictureSizes to CameraParameters.DO NOT MERGE

Also added a struct 'Size' containing a width and a height field.
Modified parse_size to optionally set an end pointer pointing to the
character after the found size.

Change-Id: I0c95ebf1ad4684721b32165f363db7d4d15a1b19
amera/CameraParameters.cpp
3e5ea4a814fae0162273cfcf8b85e69f4e85ad48 19-Aug-2010 Alex Sakhartchouk <alexst@google.com> Merge "Renderscript samples. Merged two model related projects. Cleanup."
821afa9aec8d3a4ffd2e72ce797d8097eaf13973 19-Aug-2010 Kenny Root <kroot@google.com> am 54d41379: Merge "Add OBB flags to support overlays" into gingerbread

Merge commit '54d41379357d1d800d0a7bd7c5dc56111710482a' into gingerbread-plus-aosp

* commit '54d41379357d1d800d0a7bd7c5dc56111710482a':
Add OBB flags to support overlays
54d41379357d1d800d0a7bd7c5dc56111710482a 19-Aug-2010 Kenny Root <kroot@google.com> Merge "Add OBB flags to support overlays" into gingerbread
c4d8eb6fb7c88c5c4da38b0b113c24cc4b78c0b7 19-Aug-2010 Romain Guy <romainguy@google.com> Speedup TextView fades (no more layers required.)

Also fixes a crash in the drop shadows cache and improves
drop shadows caching.

Change-Id: I9c0208a49467f9201d786ae0c129194b8d423923
wui/TextDropShadowCache.h
d25f0aea1cebe93aff55a75374e172f87115f1b3 19-Aug-2010 Jeff Brown <jeffbrown@google.com> am 99401b29: Merge "Add support for throttling motion events." into gingerbread

Merge commit '99401b29c3f39488a058d3eb616009b751879a77' into gingerbread-plus-aosp

* commit '99401b29c3f39488a058d3eb616009b751879a77':
Add support for throttling motion events.
8b55f377655d13a445b08a0a8ed09b6e95c752b0 19-Aug-2010 Romain Guy <romainguy@google.com> Fix drawing issues with layers.

Prior to this change layers would clip their content incorrectly. They would
also not apply alpha properly.

Change-Id: Id7b3aaa7dbdc51de68fe050e64458f68e40503fd
wui/OpenGLRenderer.cpp
wui/Snapshot.h
ae9fc03bdccda709101291bbcd3beaa5b6daebfc 19-Aug-2010 Jeff Brown <jeffbrown@google.com> Add support for throttling motion events.

Change-Id: I24b3a17753e91ecda60a60fe5cd2e6b3260e033d
i/InputDispatcher.cpp
27f50523a45100f3b4861762b6263e0b9ba6e22e 19-Aug-2010 Alex Sakhartchouk <alexst@google.com> Renderscript samples. Merged two model related projects. Cleanup.

Change-Id: I6fdc70420eee7dfecf0b051fd687e5797c6580ce
s/java/ModelViewer/AndroidManifest.xml
s/java/ModelViewer/src/com/android/modelviewer/SceneGraph.java
s/java/ModelViewer/src/com/android/modelviewer/SceneGraphRS.java
s/java/ModelViewer/src/com/android/modelviewer/SceneGraphView.java
s/java/ModelViewer/src/com/android/modelviewer/SgTransform.java
s/java/ModelViewer/src/com/android/modelviewer/scenegraph.rs
s/java/ModelViewer/src/com/android/modelviewer/transform.rs
s/java/ModelViewer/src/com/android/modelviewer/transform_def.rsh
s/java/Samples/Android.mk
s/java/Samples/AndroidManifest.xml
s/java/Samples/src/com/android/samples/RsList.java
s/java/Samples/src/com/android/samples/RsListRS.java
s/java/Samples/src/com/android/samples/RsListView.java
s/java/Samples/src/com/android/samples/rslist.rs
s/java/SceneGraph/Android.mk
s/java/SceneGraph/AndroidManifest.xml
s/java/SceneGraph/res/drawable/robot.png
s/java/SceneGraph/res/raw/robot.a3d
s/java/SceneGraph/src/com/android/scenegraph/SceneGraph.java
s/java/SceneGraph/src/com/android/scenegraph/SceneGraphRS.java
s/java/SceneGraph/src/com/android/scenegraph/SceneGraphView.java
s/java/SceneGraph/src/com/android/scenegraph/SgTransform.java
s/java/SceneGraph/src/com/android/scenegraph/scenegraph.rs
s/java/SceneGraph/src/com/android/scenegraph/transform.rs
s/java/SceneGraph/src/com/android/scenegraph/transform_def.rsh
s/rsFont.cpp
a9abfa54d32718fb778b006b1eb94c2e64542b5b 18-Aug-2010 Jeff Brown <jeffbrown@google.com> am 29eb491a: am 3922484d: Merge "Optimize EventHub reads." into gingerbread

Merge commit '29eb491a5addc78003299ecab6ab6c716201f9dc'

* commit '29eb491a5addc78003299ecab6ab6c716201f9dc':
Optimize EventHub reads.
671cc0ec30dfd73e17c3f3bd0170341c06ac945e 18-Aug-2010 Jeff Brown <jeffbrown@google.com> am 8fd80e92: am 72ce4235: Merge "Fix possible race conditions during channel unregistration." into gingerbread

Merge commit '8fd80e924a2f40f6a785f834914f8a6f18a3aa9d'

* commit '8fd80e924a2f40f6a785f834914f8a6f18a3aa9d':
Fix possible race conditions during channel unregistration.
6d5bb88454db2fc798a07ec1085ef55572dbe670 18-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am aac6a748: Merge "Only monitor recognized uevent devices." into gingerbread

Merge commit 'aac6a7481757e3477e489f311e53385988a5d9a0' into gingerbread-plus-aosp

* commit 'aac6a7481757e3477e489f311e53385988a5d9a0':
Only monitor recognized uevent devices.
aeb00c409d1ead2a3cb0f3d98b78de80adeec52b 23-Jun-2010 Sean McNeil <sean.mcneil@windriver.com> Only monitor recognized uevent devices.

system_server can potentially monitor uevent devices that are
of no use to it. For instance, an accelerometer implementation
as uevents. This would cause the process to be busy when
unnecessary. If a device cannot be classified, don't monitor it.

Change-Id: Ib2c93105e7d746d9c1a7414bea8bab3fb8c0b70a
i/EventHub.cpp
33992d4195fe55f42ba6919f5a07707a51a12d5d 18-Aug-2010 Jeff Brown <jeffbrown@google.com> am 72e0b2ab: Merge "Fix some input device mapping bugs with certain drivers." into gingerbread

Merge commit '72e0b2ab08dc49857955a4560de296fdddada8dc' into gingerbread-plus-aosp

* commit '72e0b2ab08dc49857955a4560de296fdddada8dc':
Fix some input device mapping bugs with certain drivers.
72e0b2ab08dc49857955a4560de296fdddada8dc 18-Aug-2010 Jeff Brown <jeffbrown@google.com> Merge "Fix some input device mapping bugs with certain drivers." into gingerbread
2dfd7a7cbfa565e3aca584a9e5b6f681692b5781 18-Aug-2010 Jeff Brown <jeffbrown@google.com> Fix some input device mapping bugs with certain drivers.

On single-touch devices, pointer up/down is signalled by a BTN_TOUCH
key event. Previously we handled BTN_TOUCH immediately but some drivers
may produce the sequence BTN_TOUCH, ABS_X, ABS_Y, SYN_REPORT on pointer down
which caused us to emit a bad initial pointer down location.
Now we wait for SYN_REPORT before reporting the up or down.

On multi-touch devices, pointer up can be signalled by as little as
the sequence SYN_MT_REPORT, SYN_REPORT. This change ensures that we
handle this case.

Added support for reading ABS_MT_PRESSURE when available.
Corrected mapping of touchMajor/touchMinor on single touch devices.
Minor code cleanup.

Change-Id: Ic7ec4811241ed85a06e59b8a839ca05180d491d4
i/InputReader.cpp
29eb491a5addc78003299ecab6ab6c716201f9dc 18-Aug-2010 Jeff Brown <jeffbrown@google.com> am 3922484d: Merge "Optimize EventHub reads." into gingerbread

Merge commit '3922484d7458a4ab72fc1ca8952a0776dd1c7d20' into gingerbread-plus-aosp

* commit '3922484d7458a4ab72fc1ca8952a0776dd1c7d20':
Optimize EventHub reads.
8fd80e924a2f40f6a785f834914f8a6f18a3aa9d 18-Aug-2010 Jeff Brown <jeffbrown@google.com> am 72ce4235: Merge "Fix possible race conditions during channel unregistration." into gingerbread

Merge commit '72ce42352c1c229e05d910b4176f3cddb608e814' into gingerbread-plus-aosp

* commit '72ce42352c1c229e05d910b4176f3cddb608e814':
Fix possible race conditions during channel unregistration.
cadef53810468a92a9a2fdd376118f13d4d05482 18-Aug-2010 Romain Guy <romainguy@google.com> Merge "Fix the build."
1f8c9602eeff0a35f8af70bd3fdcd770f0127775 18-Aug-2010 Romain Guy <romainguy@google.com> Fix the build.

Change-Id: I8bd418ba21e3e3f68b793030398d1a5e933dfb19
wui/OpenGLRenderer.cpp
2f728bf4413af273cddd54fe7f1ac6b1b75881e9 18-Aug-2010 Jason Sams <rjsams@android.com> Merge "Fix bug looping non-blocking fifos."
2ea56efb1fd3d846e02e8fe0189f4f4e352362d8 18-Aug-2010 Jason Sams <rjsams@android.com> Merge "Remove OOB object destruction."
d0cb106ff27d535365215ac3830c67239c7b5ced 18-Aug-2010 Jason Sams <rjsams@android.com> Fix bug looping non-blocking fifos.

Change-Id: I33dcf575466bfef672af4e113ad692397b5213e9
s/rsContext.cpp
s/rsLocklessFifo.cpp
s/rsLocklessFifo.h
756879836bd3acb9fd500ca0aefebe7579567148 18-Aug-2010 Romain Guy <romainguy@google.com> Merge "Layers were using an extra Snapshot causing extra clipping."
2542d199745cdf3ec910b8e3e4cff5851ed24e9b 18-Aug-2010 Romain Guy <romainguy@google.com> Layers were using an extra Snapshot causing extra clipping.

Bug #2919310

Change-Id: I72ccd44bba7a3f3db72f581aa96198b6226e4478
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Snapshot.h
c4554b9a0885ac3713575e91d8d33c5670b52322 22-Jun-2010 Jens Gulin <jens.gulin@sonyericsson.com> Keep track of remaining fd when devices are removed

Sometimes the wrong fd was accessed when the device was addressed
by device id.

The earlier implementation assumed that two arrays were in sync
but one of them was compacted when devices were removed. Instead
of that dependency the device now keeps track of it's file descriptor.

Change-Id: Ib0f320603aafb07ded354bc3687de9759c9068f2
i/EventHub.cpp
02ca31fbae9f35dd30f79de6927fae11b549391a 12-Aug-2010 Kenny Root <kroot@google.com> Add OBB flags to support overlays

* Add flags field in OBB footer to support overlays.

* Remove unused 'crypto' and 'filesystem' fields in obbtool (could
later be supported in the "flags" field of the OBB footer).

* Add notes to document OBB classes before shipping.

Change-Id: I386b43c32c5edef55210acb5d3322639c08010ba
tils/ObbFile.cpp
cc2e717f1d43a836d1abdee06bcb946416d06fd6 18-Aug-2010 Jeff Brown <jeffbrown@google.com> Optimize EventHub reads.

Change-Id: Id7d09c0a6e5c741c1e29becd2b6560772c5ff372
i/EventHub.cpp
fb545906ad59b226d7121d0b50debed7f2a2a32f 18-Aug-2010 Jason Sams <rjsams@android.com> Merge "Make java entry points for native fifo synchronized."
d78be37d81f6c1aba75180c7608753a027a881ee 18-Aug-2010 Jason Sams <rjsams@android.com> Remove OOB object destruction.

Change-Id: Icaa06aca4a701ec663c124d3141d9dbb633d7dc1
s/RenderScript.h
s/rsContext.cpp
s/rsContext.h
8fb954263dd2f918ad339045cc6d82e346515599 18-Aug-2010 Romain Guy <romainguy@google.com> Fix save()/restore() issues in the OpenGL renderer.

The save stack now behaves exactly like in Skia.

Change-Id: If7e642f41f2c8f693f6e8c26cba81507d466562e
wui/OpenGLRenderer.cpp
wui/Snapshot.h
2cbecea4c9627d95377fc3e3b8a319116cee7feb 18-Aug-2010 Jeff Brown <jeffbrown@google.com> Fix possible race conditions during channel unregistration.

Previously, the input dispatcher assumed that the input channel's
receive pipe file descriptor was a sufficiently unique identifier for
looking up input channels in its various tables. However, it can happen
that an input channel is disposed and then a new input channel is
immediately created that reuses the same file descriptor. Ordinarily
this is not a problem, however there is a small opportunity for a race
to arise in InputQueue.

When InputQueue receives an input event from the dispatcher, it
generates a finishedToken that encodes the channel's receive pipe fd,
and a sequence number. The finishedToken is used by the ViewRoot
as a handle for the event so that it can tell the InputQueue when
the event has finished being processed.

Here is the race:

1. InputQueue receives an input event, assigns a new finishedToken.
2. ViewRoot begins processing the input event.
3. During processing, ViewRoot unregisters the InputChannel.
4. A new InputChannel is created and is registered with the Input Queue.
This InputChannel happens to have the same receive pipe fd as
the one previously registered.
5. ViewRoot tells the InputQueue that it has finished processing the
input event, passing along the original finishedToken.
6. InputQueue throws an exception because the finishedToken's receive
pipe fd is registered but the sequence number is incorrect so it
assumes that the client has called finish spuriously.

The fix is to include a unique connection id within the finishedToken so
that the InputQueue can accurately confirm that the token belongs to
the currently registered InputChannel rather than to an old one that
happened to have the same receive pipe fd. When it notices this, it
ignores the spurious finish.

I've also made a couple of other small changes to avoid similar races
elsewhere.

This patch set also includes a fix to synthesize a finished signal
when the input channel is unregistered on the client side to
help keep the server and client in sync.

Bug: 2834068
Change-Id: I1de34a36249ab74c359c2c67a57e333543400f7b
i/InputDispatcher.cpp
2e1872fe07cf8952812a417985e6e1f61bdeab5d 18-Aug-2010 Jason Sams <rjsams@android.com> Make java entry points for native fifo synchronized.

Change-Id: I1baf2beb920016f0202042982075cbce1e67df42
s/rs.spec
89c7ec3453ab72c3e00e9f3890a3415ba212204a 17-Aug-2010 Romain Guy <romainguy@google.com> Merge changes I16ce79ab,Ib86a7309

* changes:
Correctly set the viewport in layers.
Cleanup, better code reuse.
1d83e1981c8b89da93dff37a4f8b2b1ad8480b44 17-Aug-2010 Romain Guy <romainguy@google.com> Correctly set the viewport in layers.

Bug #2919295

Change-Id: I16ce79ab0d5747cb01c6c1abe531da3dfd93fb54
wui/Matrix.cpp
wui/OpenGLRenderer.cpp
wui/Snapshot.h
wui/TextDropShadowCache.h
94bbccc36322168a596369c8341dad938c8f949f 17-Aug-2010 Alex Sakhartchouk <alexst@google.com> Propagating some useful font changes.

Change-Id: Ia3b31a0fa0c59c5edbd3edaca164ca85e090e708
s/rsFont.cpp
s/rsFont.h
0c316eeb437a0ac1d6840690be643d1a553f0b23 17-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am ddbcce3a: Merge "resolved conflicts for merge of be50507b to gingerbread-plus-aosp" into gingerbread-plus-aosp

Merge commit 'ddbcce3afbb38680fb84583f7bad5209307e6459'

* commit 'ddbcce3afbb38680fb84583f7bad5209307e6459':
Keep track of remaining fd when devices are removed
6525fca692c57f9746ab65535d3b2f7ec712113c 17-Aug-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of be50507b to gingerbread-plus-aosp

Change-Id: Iaa5fb62f7b82b488bca192e7f374c044c7e1e6a7
be50507bae350a8dea2a1a865513c31317d4cde9 17-Aug-2010 Jean-Baptiste Queru <jbq@google.com> Merge "Keep track of remaining fd when devices are removed"
0a41749953f35d33f61b3119e3161a82bb5fa59e 17-Aug-2010 Romain Guy <romainguy@google.com> Cleanup, better code reuse.

Change-Id: Ib86a7309ae579cce3b7cf464782c34e70a74c616
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
fe0c474c2106fdc95289a7b30c5f8eb818b291ca 17-Aug-2010 Alex Sakhartchouk <alexst@google.com> Merge "Added frustum plane extraction and sphere culling code."
cbed7524eacb4adf61c20a0af8bfb37938610bd6 17-Aug-2010 Alex Sakhartchouk <alexst@google.com> Added frustum plane extraction and sphere culling code.

Change-Id: I9d55baecddc962f8973f0269f2f9977f1d4ce008
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsScriptC_LibGL.cpp
s/scriptc/rs_core.rsh
s/scriptc/rs_graphics.rsh
43c31421b4ce1cdff7c26c988bfe5e1bff64ce23 16-Aug-2010 Jason Sams <rjsams@android.com> Remove extra float<>int conversions in ImageProcessing.
Remove or shrink test bitmaps for Fountain and ModelViewer.

Change-Id: Ieeb530375aebb6b953aa564788fc5b5ef21a362e
s/java/Fountain/res/drawable/gadgets_clock_mp3.png
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
s/java/ImageProcessing/src/com/android/rs/image/horizontal_blur.rs
s/java/ImageProcessing/src/com/android/rs/image/levels.rs
s/java/ImageProcessing/src/com/android/rs/image/threshold.rs
s/java/ImageProcessing/src/com/android/rs/image/vertical_blur.rs
s/java/ModelViewer/res/drawable/robot.png
02f62aa7d110b025b1867cb200891196f98b2628 16-Aug-2010 Jason Sams <rjsams@android.com> Support reference operations in RS scripts.

Change-Id: I9cb5f3cb71823ab24ca51bf0167a0f52cf0691f9
s/rsScriptC_Lib.cpp
s/scriptc/rs_math.rsh
s/scriptc/rs_types.rsh
1e45aae5de003657e5d18f74d34998f5de5db5b7 14-Aug-2010 Romain Guy <romainguy@google.com> Add drop shadows.

Change-Id: Ic6a72409d4785968d1fbdff229f17ee5c00b240b
wui/Android.mk
wui/FontRenderer.cpp
wui/FontRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/PathCache.cpp
wui/Properties.h
wui/TextDropShadowCache.cpp
wui/TextDropShadowCache.h
aece2d0ca012144007870db9bb2cf0e360cbb973 13-Aug-2010 Alex Sakhartchouk <alexst@google.com> Merge "Adding bounding box computation."
a80145de0014aff9bdafe14601046ca511a2f90c 13-Aug-2010 Alex Sakhartchouk <alexst@google.com> Adding bounding box computation.

Change-Id: I682609312519d9474176556ade7a208c7d0a1323
s/rsMesh.cpp
s/rsMesh.h
s/rsScriptC_LibGL.cpp
s/scriptc/rs_graphics.rsh
04ba60895adb80e4d542e22fae56e147b5eeebdd 13-Aug-2010 Alex Sakhartchouk <alexst@google.com> Merge "Renderscript scenegraph prototype."
094a068bc46f725a7358ff84317cff2ca4528601 13-Aug-2010 Alex Sakhartchouk <alexst@google.com> Renderscript scenegraph prototype.

Change-Id: Ic4daaf6eca8850caf46bd766e148cf12eb6c6ca1
s/java/SceneGraph/Android.mk
s/java/SceneGraph/AndroidManifest.xml
s/java/SceneGraph/res/drawable/robot.png
s/java/SceneGraph/res/raw/robot.a3d
s/java/SceneGraph/src/com/android/scenegraph/SceneGraph.java
s/java/SceneGraph/src/com/android/scenegraph/SceneGraphRS.java
s/java/SceneGraph/src/com/android/scenegraph/SceneGraphView.java
s/java/SceneGraph/src/com/android/scenegraph/SgTransform.java
s/java/SceneGraph/src/com/android/scenegraph/scenegraph.rs
s/java/SceneGraph/src/com/android/scenegraph/transform.rs
s/java/SceneGraph/src/com/android/scenegraph/transform_def.rsh
4e806c596f99d0054f4fd1185809319c3b298a0b 13-Aug-2010 Jason Sams <rjsams@android.com> Merge "Start adding RS tests."
2a114bdc64a33df509abb84de1a730ed3be49119 13-Aug-2010 Jason Sams <rjsams@android.com> Start adding RS tests.

Change-Id: I025357407eca3e515823493ff63e4c78249e8126
s/java/tests/Android.mk
s/java/tests/AndroidManifest.xml
s/java/tests/res/drawable/test_pattern.png
s/java/tests/src/com/android/rs/test/RSTest.java
s/java/tests/src/com/android/rs/test/RSTestCore.java
s/java/tests/src/com/android/rs/test/RSTestView.java
s/java/tests/src/com/android/rs/test/fp_mad.rs
s/java/tests/src/com/android/rs/test/shared.rsh
s/java/tests/src/com/android/rs/test/test_root.rs
2a115d84228ee8e289b0eceae4af3a935ffcd1f2 13-Aug-2010 Jason Sams <rjsams@android.com> Merge "Thread launch strategies."
e0b8d3cbf73a3694a24f366ab43488bfaef9da71 13-Aug-2010 Romain Guy <romainguy@google.com> Merge "Fix GC issue, fix local shader transformations."
0ba681bce12d522c5575dfccb5a6ca12f0fba746 13-Aug-2010 Romain Guy <romainguy@google.com> Fix GC issue, fix local shader transformations.

Change-Id: I208bdf89815dcd18dcadd43df932a77362918435
wui/Matrix.cpp
wui/Matrix.h
wui/SkiaShader.cpp
6675f26c566ce1b39a7fe70ba8822e0b47a2fa2f 12-Aug-2010 Romain Guy <romainguy@google.com> Merge "Better support for rotation and perspective matrices."
af28b514964861d81b48902f942f706050936d38 12-Aug-2010 Romain Guy <romainguy@google.com> Better support for rotation and perspective matrices.

Change-Id: I56b5ae3321735ba5ee42aafc9bc0eb399b9e75b5
wui/Matrix.cpp
wui/Matrix.h
wui/Snapshot.h
2cbd298f390a8a944892198efdb25d81f07de3ae 11-Aug-2010 Jason Sams <rjsams@android.com> Thread launch strategies.

Change-Id: I506df786e815205a8e51906c2b517302c1ef2471
s/java/ImageProcessing/src/com/android/rs/image/horizontal_blur.rs
s/rsScript.h
s/rsScriptC.cpp
s/scriptc/rs_math.rsh
4199175ff34c7c15120c3cc3714d454d84e7afcf 12-Aug-2010 Jason Sams <rjsams@android.com> Merge "Fix field packer bug for U32 data. Fix initial refcounts in allocations. Support null references in allocations."
ee73498ddf896f6ed003e9ce1fab87aefda90173 12-Aug-2010 Jason Sams <rjsams@android.com> Fix field packer bug for U32 data.
Fix initial refcounts in allocations.
Support null references in allocations.

Change-Id: Ifba6406ba750e69737bd77fa7df5d7fb8e27a5b4
s/rsAllocation.cpp
s/rsElement.cpp
0de9444aa6c25d2c586e8204a6168d10e67376e0 11-Aug-2010 Alex Sakhartchouk <alexst@google.com> Preparing renderscript java code for use with phanton references.
Changing rs_quaternion to be float4

Change-Id: Ibf49f412be8979eaa04cb252b407467eacd9dbf0
s/scriptc/rs_types.rsh
009e51e654ad46eeaa0ec3049d39a35f79b54e1f 12-Aug-2010 Shih-wei Liao <sliao@google.com> Merge "Fix anonymous struct."
66bda36563e3379b5fe3d2239a0fd9a36418a62c 12-Aug-2010 Shih-wei Liao <sliao@google.com> Fix anonymous struct.

Change-Id: Icdee2f05738a8712a309720d8d27dc2efc0dd749
s/java/ImageProcessing/src/com/android/rs/image/ip.rsh
959c91f7f7b4f921d341264f5b4ef54e702a0df0 12-Aug-2010 Romain Guy <romainguy@google.com> Bunch of fixes.

Fixes memory leak, fixes multiple context support, fix 3d transforms.

Change-Id: I7462cfbc57857dbd4de4e76b9d4cba58a1bce77b
wui/OpenGLRenderer.cpp
wui/Snapshot.h
73b77af86131cd4dad16c32ba1898028ce08da36 12-Aug-2010 Romain Guy <romainguy@google.com> Merge "Delete shaders after a compile error. Also disable extra logging."
98173a277f8bd6d53d6ff9f7ff09e084f2666fc1 12-Aug-2010 Romain Guy <romainguy@google.com> Delete shaders after a compile error. Also disable extra logging.

Change-Id: I9b1558b0feac3d9b2cca926feeaf73921664cc73
wui/Program.cpp
wui/ProgramCache.h
1f5a8d96da2f0d095196113a2bfa901c18592206 11-Aug-2010 Kenny Root <kroot@google.com> am 80328ba0: am 8ea71511: Merge "Initial tool for OBB manipulation" into gingerbread

Merge commit '80328ba09606bd0825d7d4c9a4f213d1de09e53a'

* commit '80328ba09606bd0825d7d4c9a4f213d1de09e53a':
Initial tool for OBB manipulation
80328ba09606bd0825d7d4c9a4f213d1de09e53a 11-Aug-2010 Kenny Root <kroot@google.com> am 8ea71511: Merge "Initial tool for OBB manipulation" into gingerbread

Merge commit '8ea71511c64e61fe23004889ff7032f991a751c8' into gingerbread-plus-aosp

* commit '8ea71511c64e61fe23004889ff7032f991a751c8':
Initial tool for OBB manipulation
6e7ac5f0bceddf51947fbf3b376e278df0735603 19-Jul-2010 Kenny Root <kroot@google.com> Initial tool for OBB manipulation

Add "obbtool" host command for adding, removing, and querying Opaque
Binary Blob (OBB) information from a file.

Change-Id: Id2ac41e687ad2a500c362616d6738a8ae7e8f5c3
tils/ObbFile.cpp
2ce0e3ff30daeab43950513fdf12b72c0302d749 11-Aug-2010 Alex Sakhartchouk <alexst@google.com> Adding allocation reference counting to the a3d models.

Change-Id: I225b431d09bfebbebf49df75b7df5e4d5961a564
s/rsAllocation.cpp
s/rsElement.cpp
a919112f4a68c5a929c68b0838011cdd55f8dca7 11-Aug-2010 Alex Sakhartchouk <alexst@google.com> Renaming stucts back.

Change-Id: Ic9315c7fb2e03d0e88a07ae2361836d35106ab4b
s/scriptc/rs_types.rsh
0dde1f89a434fef356e12fbbbc3a322dfae3bb0d 11-Aug-2010 Alex Sakhartchouk <alexst@google.com> Merge "Adding quaternion functions to math library."
7b6d0d99b6904b511996267efae215fe9cb5e98f 11-Aug-2010 Dianne Hackborn <hackbod@google.com> am 679ac09a: am a5ae50cd: Merge "More native work." into gingerbread

Merge commit '679ac09a5c22175354f3a04b28456b323839530e'

* commit '679ac09a5c22175354f3a04b28456b323839530e':
More native work.
679ac09a5c22175354f3a04b28456b323839530e 11-Aug-2010 Dianne Hackborn <hackbod@google.com> am a5ae50cd: Merge "More native work." into gingerbread

Merge commit 'a5ae50cd838b5725c63ed485292aae4edd1a98cb' into gingerbread-plus-aosp

* commit 'a5ae50cd838b5725c63ed485292aae4edd1a98cb':
More native work.
08d5b8fad8d46ccb64db2fdcb4d66972ec87bf48 04-Aug-2010 Dianne Hackborn <hackbod@google.com> More native work.

Implement save/restore of state, and add native APIs for
configuration information.

Change-Id: I2a3ddc2ba605db58d7c8b2b31b9215fb323f90b5
tils/AssetManager.cpp
9e187ed8210ddb0418e19109dd43a03928c11f57 11-Aug-2010 Romain Guy <romainguy@google.com> Merge "Add extra blending modes."
48daa54d31fc59ec969dcff65eb3cbb0ce879a8d 11-Aug-2010 Romain Guy <romainguy@google.com> Add extra blending modes.

This change adds the following blending modes for shaders and color filters:
Add
Multiply
Screen
Overlay
Darken
Lighten

Change-Id: Iff22f5ce6041b43c71b1857d73013f5010ab3413
wui/ProgramCache.cpp
wui/ProgramCache.h
7d73206ab263e1114b4711912ac3eb786f91b6c5 11-Aug-2010 Jason Sams <rjsams@android.com> Merge "Refcounting in allocations."
cc6e6c9f13c3ea85fa796d2500e154f5349dd5a5 11-Aug-2010 Jason Sams <rjsams@android.com> Merge "Update image processing to cleaup code by not inlining functions that should be handled by the runtime."
facd6fc4be5706f4ca5def9702a69bec94eb6adf 11-Aug-2010 Alex Sakhartchouk <alexst@google.com> Adding quaternion functions to math library.

Change-Id: I692214648892120943ca7d3b00034e27d1c330cf
s/scriptc/rs_core.rsh
s/scriptc/rs_types.rsh
f79ad0c205dc0bbbb9181169f266e00609036b17 11-Aug-2010 Romain Guy <romainguy@google.com> Merge "Add support for text underline and strikethru."
a674ab74e359ac73b4c4dd6b1a3a771836ac7e40 11-Aug-2010 Romain Guy <romainguy@google.com> Add support for text underline and strikethru.

Change-Id: I3a0e6643d7cafbdd06d9a908c8cf9347dcaba146
wui/OpenGLRenderer.cpp
ea48ff4ba405923a88f5f0ef22be607be6310564 11-Aug-2010 Jeff Brown <jeffbrown@google.com> am 95105f3c: am c3fc2d03: Fix safe mode and KeyEvent.getMaxKeyCode().

Merge commit '95105f3c25110f28b236cfa71e9ad74533eef854'

* commit '95105f3c25110f28b236cfa71e9ad74533eef854':
Fix safe mode and KeyEvent.getMaxKeyCode().
95105f3c25110f28b236cfa71e9ad74533eef854 11-Aug-2010 Jeff Brown <jeffbrown@google.com> am c3fc2d03: Fix safe mode and KeyEvent.getMaxKeyCode().

Merge commit 'c3fc2d03d58a258c53c9265a70143d4af076b764' into gingerbread-plus-aosp

* commit 'c3fc2d03d58a258c53c9265a70143d4af076b764':
Fix safe mode and KeyEvent.getMaxKeyCode().
c3fc2d03d58a258c53c9265a70143d4af076b764 11-Aug-2010 Jeff Brown <jeffbrown@google.com> Fix safe mode and KeyEvent.getMaxKeyCode().

Bug: 2901731
Change-Id: I78617c1b9dee3790fc590e5af4b5083368873184
i/InputReader.cpp
a48a1a87ba17f20f7006eaab21dcedf86c015c13 10-Aug-2010 Romain Guy <romainguy@google.com> Fast text selection drawing.

Change-Id: I93fb1312b47bc05345defa9b6cfe47c0658bb329
wui/SkiaShader.cpp
61c8c9c5b2006d18e9310b6521c65b36ffe75ce4 10-Aug-2010 Romain Guy <romainguy@google.com> Fix tons of bugs and add new text rendering support.

Change-Id: I326c66b10784006f6df2f12d38e120cef94cd0d7
wui/FontRenderer.cpp
wui/OpenGLRenderer.cpp
wui/PathCache.cpp
wui/ProgramCache.cpp
wui/SkiaShader.cpp
b28ca96fd69be0d3d12106f81c415439d185b017 10-Aug-2010 Jason Sams <rjsams@android.com> Refcounting in allocations.

Change-Id: Ida2dfb404b2cd832e622d981d73a938d5bc5b821
s/rsAllocation.cpp
s/rsAllocation.h
s/rsComponent.cpp
s/rsComponent.h
s/rsElement.cpp
s/rsElement.h
05716aa0a1f42b72e04a2f41d565f3ca6c3aea1e 09-Aug-2010 Jason Sams <rjsams@android.com> Update image processing to cleaup code by not inlining
functions that should be handled by the runtime.

Change-Id: I54c590913285bceb02a9076dbe6355d6f6bc6661
s/java/ImageProcessing/src/com/android/rs/image/vertical_blur.rs
163935113919a184122b8b3bd672ef08c8df65dc 08-Aug-2010 Romain Guy <romainguy@android.com> Make libhwui entirely optional.

The makefile variable USE_OPENGL_RENDERER must be set to true to compile
libhwui and the related code in the JNI layer.

This change also removes obsolete APIs from Canvas that must not be used
and would be confusing if left in. These APIs were remnants of our first
attempt at an OpenGL renderer for the view hierarchy and had not been
taken out before Android 1.0 was released.

Change-Id: I2475ff1307212bab26c926724f3c508681c7dae1
wui/Android.mk
wui/TextureCache.cpp
wui/TextureCache.h
9cccc2b9bdd4850a3f9679569aaec3ab98477a5d 08-Aug-2010 Romain Guy <romainguy@android.com> Enforce maximum texture size.

When an app tries to render a bitmap or path larger than the GPU's maximum
texture size, the drawing command is ignored and a warning is logged. This
change also makes texture drawing more robust by catching potential errors
during texture creation.

This change also fixes a crash in the FontRenderer. The destructor would
sometimes try to free an uninitialized array.

Change-Id: I95ae0939c52192d97b340aa02417bf6d0c962c57
wui/FontRenderer.cpp
wui/GradientCache.cpp
wui/OpenGLRenderer.cpp
wui/PathCache.cpp
wui/PathCache.h
wui/SkiaShader.cpp
wui/SkiaShader.h
wui/TextureCache.cpp
wui/TextureCache.h
91fc6e8c89f176e157083c3fb06f05af01f61fc3 07-Aug-2010 Kenny Root <kroot@google.com> am d7ce227b: am 818490ab: Fix String8::operator+

Merge commit 'd7ce227bcb854f048124bbc487eba844c6599142'

* commit 'd7ce227bcb854f048124bbc487eba844c6599142':
Fix String8::operator+
d7ce227bcb854f048124bbc487eba844c6599142 07-Aug-2010 Kenny Root <kroot@google.com> am 818490ab: Fix String8::operator+

Merge commit '818490ab2abe36dfc6c13d01fea5220bd64cca8c' into gingerbread-plus-aosp

* commit '818490ab2abe36dfc6c13d01fea5220bd64cca8c':
Fix String8::operator+
072671f0ee5bb506a2668280e18cb12c9492ed12 07-Aug-2010 Jason Sams <rjsams@android.com> Merge "Fix debugging support for float vectors and add matrix debugging."
d64188a4a4acc0f494551367e09f63b44f0ed7f3 07-Aug-2010 Jason Sams <rjsams@android.com> Fix debugging support for float vectors and add matrix debugging.

Change-Id: Ie1ee3764a32889f3c39b923186f14af74ecb772f
s/rsScriptC_Lib.cpp
s/scriptc/rs_core.rsh
s/scriptc/rs_math.rsh
8e3e359e59385e4dee38cedf194a4a58e4ad92a8 07-Aug-2010 Alex Sakhartchouk <alexst@google.com> Merge "Added drop shadow renderer to the font class."
f18136cb3c881a9d16c1a4f0f341732c276936bf 06-Aug-2010 Alex Sakhartchouk <alexst@google.com> Added drop shadow renderer to the font class.

Change-Id: Id243abfbbb58e54f6a05f592a302984b5321e608
wui/FontRenderer.cpp
wui/FontRenderer.h
22158e139a3d6c6a9787ca0de224e9368f643284 06-Aug-2010 Romain Guy <romainguy@google.com> Automatically cleanup textures that don't fit in the cache.

Change-Id: I4f29ed96ea11118b391fb957e1e4d1b8fcef1537
wui/OpenGLRenderer.cpp
wui/PathCache.cpp
wui/PathCache.h
wui/Texture.h
wui/TextureCache.cpp
25ee037fee1607e8a77b1f2e259356e74dd6f645 06-Aug-2010 Romain Guy <romainguy@google.com> Fix incorrect memory cleanup in SkiaShader.

Bug #2895037

Change-Id: Id233c2a8a5b709dc9f26ff60aad989e9583a2382
wui/SkiaShader.cpp
818490ab2abe36dfc6c13d01fea5220bd64cca8c 06-Aug-2010 Kenny Root <kroot@google.com> Fix String8::operator+

The LHS was ignored when using:
String8 + String8
String8 + (const char*)

Add unit tests for above.

Bug: 2898473
Change-Id: Ic8fe7be668b665c36aaaa3fc3c3ffdfff0fbba25
tils/tests/Android.mk
tils/tests/String8_test.cpp
b423dac932df48de2ab6869824aca12b1966b8dd 06-Aug-2010 Jason Sams <rjsams@android.com> Merge "Fix length normilization bug in rsMatrixLoadRotate."
41d9825b9aa1eb986990cd43513f7bdc6be0b88e 06-Aug-2010 Jason Sams <rjsams@android.com> Fix length normilization bug in rsMatrixLoadRotate.

Change-Id: Ibdc1a64f2db6110acd971f8cacd6b1f9c09b02de
s/rsMatrix.cpp
s/scriptc/rs_core.rsh
f6b5306e90ea0604af0e084210bdd17af5d7b888 06-Aug-2010 Jason Sams <rjsams@android.com> Merge "Use lowp colors in fixed funtion emulation."
1911c60a4eeff9ee28734687ae7699bd2290931c 06-Aug-2010 Jason Sams <rjsams@android.com> Use lowp colors in fixed funtion emulation.

Change-Id: Ie525ee6e52652ba83efe4d9f1627410d846824ee
s/rsProgramFragment.cpp
8cc44cb6696995d8387226cd131fc22386aa4f7f 06-Aug-2010 Romain Guy <romainguy@google.com> Merge "Add support for paths."
7fbcc0492fca03857e3c45064f4aa040af817d55 05-Aug-2010 Romain Guy <romainguy@google.com> Add support for paths.

Rendering is implementing by rasterizing the paths into A8 textures.
This cna be extremely inefficient if the path changes often.

Change-Id: I609343f304ae38e0d319359403ee73b9b5b3c93a
wui/Android.mk
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/PathCache.cpp
wui/PathCache.h
wui/ProgramCache.cpp
wui/Properties.h
b39a8272f520017a95617ffeb504575098eb4b25 06-Aug-2010 Jason Sams <rjsams@android.com> Fix behavior where the non-blocking sendToCliend would block
when there was enough room for the message but not the message header.

Change-Id: I600db04b91e76fa7966c7d8a98e5c56593e1806d
s/rsContext.cpp
d70cbb8943947f433b8f1f4527daf86f9b0827e9 05-Aug-2010 Kenny Root <kroot@google.com> am aec3e36f: am 2d817f75: Free scanBuf in ZipFileRO

Merge commit 'aec3e36fd4f8cdcc53110bbcd7f0afa20bf315d4'

* commit 'aec3e36fd4f8cdcc53110bbcd7f0afa20bf315d4':
Free scanBuf in ZipFileRO
55e81983562ca507883f32f817e9d24e1c49b909 05-Aug-2010 Alex Sakhartchouk <alexst@google.com> Fixing fonts to use constant color instead of variable.

Change-Id: Ia590dfed482f82b7bc748c25b7b1592efea5b68c
s/java/ModelViewer/src/com/android/modelviewer/modelviewer.rs
s/rsContext.cpp
s/rsFont.cpp
s/rsFont.h
518f033b68649c151cc8725ea8c557eae01cc567 05-Aug-2010 Alex Sakhartchouk <alexst@google.com> Adding more matrix math functions.

Fixing build.

Change-Id: Ie0f6724ba063ada94d1d44d99bbe56e21d9bd72f
s/rsContext.cpp
s/scriptc/rs_core.rsh
442a647424e6537e94341654e3ae5d52efd84862 05-Aug-2010 Jason Sams <rjsams@android.com> Support constant and varying colors in ProgramFragment.

Change-Id: I16ce84ff427016f3a1923594efc718eca32dd7f2
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/Fountain/src/com/android/fountain/fountain.rs
s/rsFont.cpp
s/rsProgramFragment.cpp
s/rsProgramFragment.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsScriptC_LibGL.cpp
s/scriptc/rs_graphics.rsh
aec3e36fd4f8cdcc53110bbcd7f0afa20bf315d4 05-Aug-2010 Kenny Root <kroot@google.com> am 2d817f75: Free scanBuf in ZipFileRO

Merge commit '2d817f75969cf3942ae3bcb9d194b9c095288dc7' into gingerbread-plus-aosp

* commit '2d817f75969cf3942ae3bcb9d194b9c095288dc7':
Free scanBuf in ZipFileRO
2d817f75969cf3942ae3bcb9d194b9c095288dc7 05-Aug-2010 Kenny Root <kroot@google.com> Free scanBuf in ZipFileRO

In the success case, the 65kB scanBuf was not freed!

Also, get rid of annoying complaints about ssize_t from printf in error
cases.

Change-Id: If154ac19bf47637f898b4ec8c8e27c9a073a7b81
tils/ZipFileRO.cpp
42d530f18abc09c7c4567aabd4a0c4908541d330 05-Aug-2010 Romain Guy <romainguy@google.com> Merge "Fix native crash in SkiaShader."
6c07daf86c0d3824e1cd88fea455e2dd7b88cbcd 05-Aug-2010 Romain Guy <romainguy@google.com> Fix native crash in SkiaShader.

Bug #2893733

Change-Id: I7feb9ab113fe0012cf9eb271f2b044f12a5c9c4e
wui/SkiaShader.cpp
wui/SkiaShader.h
f61f33dd386b0e7100753ae5688d8a5f3ba5a391 04-Aug-2010 Alex Sakhartchouk <alexst@google.com> Merge "Added ability to set font color. Propagating the name of meshes and allocations from native a3d to java"
fb10c16a0528a418053e4b8e75eebe57476b86ef 04-Aug-2010 Alex Sakhartchouk <alexst@google.com> Added ability to set font color.
Propagating the name of meshes and allocations from native a3d to java

Change-Id: If781f55340b5369459610e5e92ea69e240dcd24e
s/rs.spec
s/rsContext.cpp
s/rsFont.cpp
s/rsFont.h
s/rsScriptC_LibGL.cpp
s/scriptc/rs_graphics.rsh
b70c1db70fc0481863ee57ab87e311ff11cc2c9d 04-Aug-2010 Nipun Kwatra <nkwatra@google.com> Adding parseSizesList, getSupportedPreviewSizes to CameraParameters.

Moved functionality to parse string of sizes from getSupportedPictureSizes
to parseSizesList.
Added getSupportedPreviewSizes which returns a list of supported preview sizes.

Change-Id: I435317427c1ee9623caef435f93e95d4476b7285
amera/CameraParameters.cpp
374b4d90914b9b78aec648df4831c33ee82131d1 04-Aug-2010 Alex Sakhartchouk <alexst@google.com> Merge "Adding onscreen frame and script time for debugging."
6de555001bc9b3ea6baf8ce1293e6c366a9bd6ce 03-Aug-2010 Alex Sakhartchouk <alexst@google.com> Adding onscreen frame and script time for debugging.

Change-Id: I5780092d14d49dae556b9969b937c7768e705a64
s/rsContext.cpp
s/rsContext.h
a275354c54b372bdfaae429fd2a2f5c2bdcd5d1e 03-Aug-2010 Alex Sakhartchouk <alexst@google.com> Merge "Adding drop shadow support"
db1938e0e6ef816e228c815adccebd5cb05f2aa8 03-Aug-2010 Romain Guy <romainguy@google.com> Add support for ColorFilters.

Color filters are fully supported and can be used with shaders.

Change-Id: Id90ccf1c81cb462f2431f366f3f8f710d7971e04
wui/Android.mk
wui/Extensions.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/ProgramCache.cpp
wui/ProgramCache.h
wui/SkiaColorFilter.cpp
wui/SkiaColorFilter.h
wui/SkiaShader.h
89a524ac2d4a36739e51b01b336c0bade77e2ee0 03-Aug-2010 Alex Sakhartchouk <alexst@google.com> Adding drop shadow support

Change-Id: I9b1b9568d6cebc0761d96ab678b018571f705ae1
wui/FontRenderer.cpp
wui/FontRenderer.h
eb4e0c3c1c8e82f363b86a3751f72d7d496ebd1f 31-Jul-2010 Romain Guy <romainguy@google.com> Merge "Refactor Skia shaders handling."
06f96e2652e4855b6520ad9dd70583677605b79a 31-Jul-2010 Romain Guy <romainguy@google.com> Refactor Skia shaders handling.

With this change, Skia shaders can easily be applied to any mesh. This change also
supports ComposeShader. For instance, this can be used to blend a gradient and a
bitmap togehter and paint a string of text with the result.

Change-Id: I701c2f9cf7f89b2ff58005e8a1d0d80ccf4a4aea
wui/Android.mk
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/ProgramCache.cpp
wui/ProgramCache.h
wui/SkiaShader.cpp
wui/SkiaShader.h
51c2ec24116919d710e8770e253f14e15e295f2b 30-Jul-2010 Nipun Kwatra <nkwatra@google.com> Adding getSupportedPictureSizes which returns a Vector of supported Sizes.

Also added a struct 'Size' containing a width and a height field.
Modified parse_size to optionally set an end pointer pointing to the
character after the found size.

Change-Id: I51a56bbf2cb7c91d7b80a28e6bd6a559f40a1333
amera/CameraParameters.cpp
bc6ed6c9f651b140939e857b0fb60eff27a6b760 30-Jul-2010 Jeff Brown <jeffbrown@google.com> am 3b724c83: am 00e5c613: Merge "Improve thread safety of input mappers." into gingerbread

Merge commit '3b724c836b13b320b2b2c492c28660617e0d503e'

* commit '3b724c836b13b320b2b2c492c28660617e0d503e':
Improve thread safety of input mappers.
3b724c836b13b320b2b2c492c28660617e0d503e 30-Jul-2010 Jeff Brown <jeffbrown@google.com> am 00e5c613: Merge "Improve thread safety of input mappers." into gingerbread

Merge commit '00e5c61366d3d3d62c259277823ea15a14f68ad4' into gingerbread-plus-aosp

* commit '00e5c61366d3d3d62c259277823ea15a14f68ad4':
Improve thread safety of input mappers.
00e5c61366d3d3d62c259277823ea15a14f68ad4 30-Jul-2010 Jeff Brown <jeffbrown@google.com> Merge "Improve thread safety of input mappers." into gingerbread
6328cdc89e099806a1893b89e4c724d596272d9e 30-Jul-2010 Jeff Brown <jeffbrown@google.com> Improve thread safety of input mappers.

Also fixed bug where old touch screen size could be reported by
getMotionRange if an orientation change occurred but the user has not
yet touched the screen.

Bug: 2877345
Change-Id: I7878f47458f310ed6ebe6a5d1b2c9bec2c598ab9
i/InputReader.cpp
154a320069a316491c25b716f2aeea8c51a758e8 30-Jul-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of 27eecb70 to gingerbread

Change-Id: If064f2f4950fc1a4ff38e6927fe2120af76b26f1
b82da65cb1601be504241f36778395cd6cb9f87b 30-Jul-2010 Romain Guy <romainguy@google.com> Fix improper clipping after a save()

Change-Id: I13426a67f20d77e2710bd500d82884098f4be97c
wui/OpenGLRenderer.cpp
wui/Snapshot.h
3534531bb76fe099cef90c6ac88d1da533227819 30-Jul-2010 Jason Sams <rjsams@android.com> Merge "Cleanup of signed/unsigned Make all functions overloadable."
ce49d03aa40123a086d6017052873bed83835298 30-Jul-2010 Mathias Agopian <mathias@google.com> resolved conflicts for merge of 02513855 to master

Change-Id: Ie33d57798d3d5b800edde753dac86de062bc270c
f0690c4f29f3c6fbff2fd5a9cc6d3ff028e1e066 30-Jul-2010 Jason Sams <rjsams@android.com> Cleanup of signed/unsigned
Make all functions overloadable.

Change-Id: I443c83afcf9a7acfae394585201f081681f309db

Update examples.

Change-Id: I100d6fa8dd1af376bcee0b2c42c5aabe9c03bb6e

force rebuild of all .rs files to pick up core header changes.

Change-Id: I6231a8a024388481ca231507e83b108ebdbc3500
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
s/rsScriptC_Lib.cpp
s/rsScriptC_LibGL.cpp
s/scriptc/rs_graphics.rsh
s/scriptc/rs_math.rsh
b827f458e1df2f23d807f5a5c2eae23a9151bd90 30-Jul-2010 Romain Guy <romainguy@google.com> Merge "Fix gradients rendering and destructor crashes."
ae5575b3421c8fbe590ab046d7d5f2b36ecfd821 30-Jul-2010 Romain Guy <romainguy@google.com> Fix gradients rendering and destructor crashes.

This changes binds all textures to GL_TEXTURE0, this will have
to be changed when combining shader capabilities.

Change-Id: I02df4f5ba41e9b01ffa52fd7c26b41477c7ed18f
wui/FontRenderer.cpp
wui/GenerationCache.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Snapshot.h
02513855530b80dd554b13852db75f3adde2c9f4 30-Jul-2010 Mathias Agopian <mathias@google.com> am 050b5624: Added SensorManager.getMinDelay()

Merge commit '050b56244ff46d43e4886018d7cd20f0b1dc02b9' into gingerbread-plus-aosp

* commit '050b56244ff46d43e4886018d7cd20f0b1dc02b9':
Added SensorManager.getMinDelay()
050b56244ff46d43e4886018d7cd20f0b1dc02b9 30-Jul-2010 Mathias Agopian <mathias@google.com> Added SensorManager.getMinDelay()

Exposed the new "min delay" sensor property through native and
java sensor apis. This allows the caller to know what is the
maximum rate at which a sensor can return events, or, if a sensor
works in "update" mode (events returned only when the value changes).

Also augmented SensorManager.regusterSensorEvent() so that it can
accept a value in microsecond in addition to the 4 constants already
defined.

Change-Id: If425e9979892666df8c989d7de3c362230fa19e0
ui/Sensor.cpp
ui/SensorEventQueue.cpp
8f5d160c92bb03a9156301e0577fa590f1ce0199 30-Jul-2010 Jean-Baptiste Queru <jbq@google.com> am 0c51c98f: am 4506c62a: fix inaccurate copyrights

Merge commit '0c51c98fd9edf0bdc8f2c567470fc332b5ae3adf'

* commit '0c51c98fd9edf0bdc8f2c567470fc332b5ae3adf':
fix inaccurate copyrights
0c51c98fd9edf0bdc8f2c567470fc332b5ae3adf 30-Jul-2010 Jean-Baptiste Queru <jbq@google.com> am 4506c62a: fix inaccurate copyrights

Merge commit '4506c62abd5767d6d42a97e8e87793a1b3bcb625' into gingerbread-plus-aosp

* commit '4506c62abd5767d6d42a97e8e87793a1b3bcb625':
fix inaccurate copyrights
edb2fc6aa8eaa3a8423db877a9ee92123994fc75 30-Jul-2010 Jim Miller <jaggies@google.com> Merge "Fix 2877497: export rsgProgramVertexLoadProjectionMatrix()"
83407b993f79e06470100f605748aba41cbeb966 30-Jul-2010 Jean-Baptiste Queru <jbq@google.com> fix inaccurate copyrights

Change-Id: I33b0f68f2da34ca4728211d83159cf32a127f6dd
amera/Camera.cpp
4506c62abd5767d6d42a97e8e87793a1b3bcb625 30-Jul-2010 Jean-Baptiste Queru <jbq@google.com> fix inaccurate copyrights

Change-Id: I33b0f68f2da34ca4728211d83159cf32a127f6dd
amera/Camera.cpp
f82447e43e87c288c3bb41cdb0474a3204c2bd0d 29-Jul-2010 Romain Guy <romainguy@google.com> Merge "Moved all the rendering code to the new shader generator."
889f8d1403761d5668115ced6cbb3f767cfe966d 29-Jul-2010 Romain Guy <romainguy@google.com> Moved all the rendering code to the new shader generator.

The generator supports features that are not yet implement in the
renderer: color matrix, lighting, porterduff color blending and
composite shaders.

This change also adds support for repeated/mirrored non-power of 2
bitmap shaders.

Change-Id: I903a11a070c0eb9cc8850a60ef305751e5b47234
wui/FontRenderer.cpp
wui/Matrix.cpp
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Program.cpp
wui/Program.h
wui/ProgramCache.cpp
wui/ProgramCache.h
wui/shaders/drawColor.frag
wui/shaders/drawLinearGradient.frag
wui/shaders/drawLinearGradient.vert
wui/shaders/drawText.frag
wui/shaders/drawTexture.frag
wui/shaders/drawTexture.vert
1fdacef18d6491eab1b76e75bb315bb075a01a18 29-Jul-2010 Christopher Tate <ctate@google.com> am 06abd0a6: am 571180c4: Merge "Attempt to fix the SDK build" into gingerbread

Merge commit '06abd0a6a833beda1c0e68aed44912d145745a42'

* commit '06abd0a6a833beda1c0e68aed44912d145745a42':
Attempt to fix the SDK build
06abd0a6a833beda1c0e68aed44912d145745a42 29-Jul-2010 Christopher Tate <ctate@google.com> am 571180c4: Merge "Attempt to fix the SDK build" into gingerbread

Merge commit '571180c4c72e0bb4f930f8971edf000a652f10f6' into gingerbread-plus-aosp

* commit '571180c4c72e0bb4f930f8971edf000a652f10f6':
Attempt to fix the SDK build
571180c4c72e0bb4f930f8971edf000a652f10f6 29-Jul-2010 Christopher Tate <ctate@google.com> Merge "Attempt to fix the SDK build" into gingerbread
466b22b76e438b3419cedbe782ab71b8ade18260 29-Jul-2010 Christopher Tate <ctate@google.com> Attempt to fix the SDK build

On the assumption that the local min() function declaration is in
conflict with some 'min' #define floating around, rename the local
function to min_of().

Change-Id: I62aa27f213c6093cc78805de611cf4aa75f0eef2
tils/StreamingZipInflater.cpp
74278c7317b5fe14aadc0701be06068378fe8ca0 29-Jul-2010 Jeff Brown <jeffbrown@google.com> am 9c705411: am aab985b9: Fix touch input in landscape mode.

Merge commit '9c7054119a701b46758cc6e04878bb0961e18ae9'

* commit '9c7054119a701b46758cc6e04878bb0961e18ae9':
Fix touch input in landscape mode.
9c7054119a701b46758cc6e04878bb0961e18ae9 29-Jul-2010 Jeff Brown <jeffbrown@google.com> am aab985b9: Fix touch input in landscape mode.

Merge commit 'aab985b951c4cf5ec2753ffbec516164b3c03c3a' into gingerbread-plus-aosp

* commit 'aab985b951c4cf5ec2753ffbec516164b3c03c3a':
Fix touch input in landscape mode.
b0a57502c6f17edd1a63bee1463bc2f9fd78e4a4 29-Jul-2010 Jeff Brown <jeffbrown@google.com> am 6ec402b5: DO NOT MERGE: Fix input event injection ANRs on UI thread.

Merge commit '6ec402b5ae33c8927694d8522b4cc6a5c8ba974e' into gingerbread-plus-aosp

* commit '6ec402b5ae33c8927694d8522b4cc6a5c8ba974e':
DO NOT MERGE: Fix input event injection ANRs on UI thread.
aab985b951c4cf5ec2753ffbec516164b3c03c3a 29-Jul-2010 Jeff Brown <jeffbrown@google.com> Fix touch input in landscape mode.

Change-Id: I7d47e9b02e6443ed604a6bf842028a5db934d90d
i/InputReader.cpp
6ec402b5ae33c8927694d8522b4cc6a5c8ba974e 29-Jul-2010 Jeff Brown <jeffbrown@google.com> DO NOT MERGE: Fix input event injection ANRs on UI thread.

Added a new asynchronous injection mode and made the existing
synchronization mechanism more robust.

Change-Id: Ia4aa04fd9b75ea2461a844c5b7933c831c1027e6
i/InputDispatcher.cpp
i/InputManager.cpp
bbda99d2086d79ac70b403cad38a47c35af84adf 29-Jul-2010 Jeff Brown <jeffbrown@google.com> Fixed StatusBar ANRs due to input event injection on UI thread.

Added a new asynchronous injection mode and made the existing
synchronization mechanism more robust.

Change-Id: I0464f70ff5cbd519dbb02686b2cb5d810fe7dbb2
i/InputDispatcher.cpp
i/InputManager.cpp
98d4a5cfd4e3c18ae86e56c12b202aa6a2199d1b 29-Jul-2010 Chris Tate <ctate@android.com> am 4dc8ead1: am 7b40518e: Merge "Change unistd.h to stddef.h to be correct" into gingerbread

Merge commit '4dc8ead1b4e63165c0a9e65adfbe46159758947a'

* commit '4dc8ead1b4e63165c0a9e65adfbe46159758947a':
Change unistd.h to stddef.h to be correct
4dc8ead1b4e63165c0a9e65adfbe46159758947a 29-Jul-2010 Chris Tate <ctate@android.com> am 7b40518e: Merge "Change unistd.h to stddef.h to be correct" into gingerbread

Merge commit '7b40518e56a3238b28b24a786a2ff22d5a425765' into gingerbread-plus-aosp

* commit '7b40518e56a3238b28b24a786a2ff22d5a425765':
Change unistd.h to stddef.h to be correct
7b40518e56a3238b28b24a786a2ff22d5a425765 29-Jul-2010 Chris Tate <ctate@android.com> Merge "Change unistd.h to stddef.h to be correct" into gingerbread
a4879bad704981da014206380eca93163f4c5a2b 29-Jul-2010 Kenny Root <kroot@google.com> Change unistd.h to stddef.h to be correct

size_t should be defined through inclusion of stddef.h instead of unistd.h

Change-Id: Ieaadacfca1e1c44c2533ea95f73fc060c1519b52
tils/StreamingZipInflater.cpp
d1548557ab6376868ea669b08d741bac3ce5e6d3 29-Jul-2010 Kenny Root <kroot@google.com> am 47cf709a: am 8c5d9430: Merge "Add unistd.h for size_t typedef to fix sim-eng" into gingerbread

Merge commit '47cf709aa3c07d2573340187edb5e11ea75824b1'

* commit '47cf709aa3c07d2573340187edb5e11ea75824b1':
Add unistd.h for size_t typedef to fix sim-eng
47cf709aa3c07d2573340187edb5e11ea75824b1 29-Jul-2010 Kenny Root <kroot@google.com> am 8c5d9430: Merge "Add unistd.h for size_t typedef to fix sim-eng" into gingerbread

Merge commit '8c5d9430d2f029be0c1100f7b3c38a2fb9fe99b6' into gingerbread-plus-aosp

* commit '8c5d9430d2f029be0c1100f7b3c38a2fb9fe99b6':
Add unistd.h for size_t typedef to fix sim-eng
8c5d9430d2f029be0c1100f7b3c38a2fb9fe99b6 29-Jul-2010 Kenny Root <kroot@google.com> Merge "Add unistd.h for size_t typedef to fix sim-eng" into gingerbread
fdbb58cb11ac459ca6ea83725a6314379002ec09 29-Jul-2010 Mathias Agopian <mathias@google.com> am 9362ea76: am 9f2a91bc: Merge "fix [2873058] Surface::dequeueBuffer blocks on last buffer, i.e. cannot dequeue all allocated buffers at once." into gingerbread

Merge commit '9362ea760f565389f5accce7e17476d05510ed59'

* commit '9362ea760f565389f5accce7e17476d05510ed59':
fix [2873058] Surface::dequeueBuffer blocks on last buffer, i.e. cannot dequeue all allocated buffers at once.
9362ea760f565389f5accce7e17476d05510ed59 29-Jul-2010 Mathias Agopian <mathias@google.com> am 9f2a91bc: Merge "fix [2873058] Surface::dequeueBuffer blocks on last buffer, i.e. cannot dequeue all allocated buffers at once." into gingerbread

Merge commit '9f2a91bc2b01c2cc60f73a0bae673225fdddec09' into gingerbread-plus-aosp

* commit '9f2a91bc2b01c2cc60f73a0bae673225fdddec09':
fix [2873058] Surface::dequeueBuffer blocks on last buffer, i.e. cannot dequeue all allocated buffers at once.
9d90ed71ccf45bc1e422ee2abc9acf0a806b9319 29-Jul-2010 Kenny Root <kroot@google.com> Add unistd.h for size_t typedef to fix sim-eng

Change-Id: Ida4f1742547f39539b601f13182c722aa7cf863e
tils/StreamingZipInflater.cpp
9f2a91bc2b01c2cc60f73a0bae673225fdddec09 29-Jul-2010 Mathias Agopian <mathias@google.com> Merge "fix [2873058] Surface::dequeueBuffer blocks on last buffer, i.e. cannot dequeue all allocated buffers at once." into gingerbread
9835d6127280a10ae2bfab31d9ad6b8b8c74762c 29-Jul-2010 Christopher Tate <ctate@google.com> am 1de9f490: am bae6fe24: Merge "Support streaming of compressed assets > 1 megabyte" into gingerbread

Merge commit '1de9f490b5c3f293b3748be3d4ccf3f78cdf460b'

* commit '1de9f490b5c3f293b3748be3d4ccf3f78cdf460b':
Support streaming of compressed assets > 1 megabyte
1de9f490b5c3f293b3748be3d4ccf3f78cdf460b 29-Jul-2010 Christopher Tate <ctate@google.com> am bae6fe24: Merge "Support streaming of compressed assets > 1 megabyte" into gingerbread

Merge commit 'bae6fe242ff9a97840ff0c5d9d87c0575d261682' into gingerbread-plus-aosp

* commit 'bae6fe242ff9a97840ff0c5d9d87c0575d261682':
Support streaming of compressed assets > 1 megabyte
bae6fe242ff9a97840ff0c5d9d87c0575d261682 29-Jul-2010 Christopher Tate <ctate@google.com> Merge "Support streaming of compressed assets > 1 megabyte" into gingerbread
b100cbf178e91d6652ebbad3ed36684cacb9d10e 26-Jul-2010 Christopher Tate <ctate@google.com> Support streaming of compressed assets > 1 megabyte

Compressed assets larger than one megabyte are now decompressed on demand
rather than being decompressed in their entirety and held in memory. Reading
the data in order is relatively efficient, as is seeking forward in the stream.
Seeking backwards is supported, but requires reprocessing the compressed data
from the beginning, so is very inefficient.

In addition, the size limit on compressed assets has been eliminated.

Change-Id: I6e68247957e6c53e7e8ba70d12764695f1723bad
tils/Android.mk
tils/Asset.cpp
tils/StreamingZipInflater.cpp
d8e76204555e5739df495f92061cd3861ad83bb9 28-Jul-2010 Jim Miller <jaggies@google.com> Fix 2877497: export rsgProgramVertexLoadProjectionMatrix()

This updates renderscript to allow loading of the projection
matrix.

Change-Id: I9af03e06ce6b5432ffbf3db8f6cda7b29aa21c7f
s/rsScriptC_LibGL.cpp
s/scriptc/rs_graphics.rsh
2279971b6f66d60240b8c72a9d52644a3bcdf01b 28-Jul-2010 Jeff Brown <jeffbrown@google.com> am 9795a25d: am 6d0fec2d: Refactor input reader to support new device types more easily.

Merge commit '9795a25da060f9a7df87da8ab43fb1086d4322a5'

* commit '9795a25da060f9a7df87da8ab43fb1086d4322a5':
Refactor input reader to support new device types more easily.
9795a25da060f9a7df87da8ab43fb1086d4322a5 28-Jul-2010 Jeff Brown <jeffbrown@google.com> am 6d0fec2d: Refactor input reader to support new device types more easily.

Merge commit '6d0fec2de3601821f4f44eeb7d7deedebb2b7117' into gingerbread-plus-aosp

* commit '6d0fec2de3601821f4f44eeb7d7deedebb2b7117':
Refactor input reader to support new device types more easily.
6d0fec2de3601821f4f44eeb7d7deedebb2b7117 24-Jul-2010 Jeff Brown <jeffbrown@google.com> Refactor input reader to support new device types more easily.

Refactored the input reader so that each raw input protocol is handled
by a separate subclass of the new InputMapper type. This way, behaviors
pertaining to keyboard, trackballs, touchscreens, switches and other
devices are clearly distinguished for improved maintainability.

Added partial support for describing capabilities of input devices
(incomplete and untested for now, will be fleshed out in later commits).

Simplified EventHub interface somewhat since InputReader is taking over
more of the work.

Cleaned up some of the interactions between InputManager and
WindowManagerService related to reading input state.

Fixed swiping finger from screen edge into display area.

Added logging of device information to 'dumpsys window'.

Change-Id: I17faffc33e3aec3a0f33f0b37e81a70609378612
i/Android.mk
i/EventHub.cpp
i/Input.cpp
i/InputDevice.cpp
i/InputManager.cpp
i/InputReader.cpp
5193a5bab165a4f812b8e72d656b6a18ee04f42b 28-Jul-2010 Jason Sams <rjsams@android.com> Merge "Cleanup sendToClient and add rsGetDt(). Remove legacy implemtation of matrix calls which were moved to llvm bc."
17966517a1ecbe38b276235967dbc03b58628bbc 28-Jul-2010 Jason Sams <rjsams@android.com> Cleanup sendToClient and add rsGetDt().
Remove legacy implemtation of matrix calls which were moved to llvm bc.

Change-Id: I527740590067db3bcb2147233ef41fb057f1d2a8
s/java/Fountain/src/com/android/fountain/fountain.rs
s/java/ImageProcessing/src/com/android/rs/image/threshold.rs
s/rsContext.cpp
s/rsScript.h
s/rsScriptC_Lib.cpp
s/scriptc/rs_math.rsh
51c70e3e41ee8bedc1d951a06a74202dafa13009 28-Jul-2010 Mathias Agopian <mathias@google.com> fix [2873058] Surface::dequeueBuffer blocks on last buffer, i.e. cannot dequeue all allocated buffers at once.

this situation happened when the last buffer needed to be resized
(or allocated, the first time). the assumption was that the buffer
was in use by SF itself as the current buffer (obviously, this
assumption made no sense when the buffer had never been allocated, btw).

the system would wait until some other buffer became the "front" buffer.

we fix this problem by entirely removing the requirement that the
buffer being resized cannot be the front buffer. instead, we just
allocate a new buffer and replace the front buffer by the new one.

the downside is that this uses more memory (an extra buffer) for a
brief amount of time while the old buffer is being reallocated and
before it has actually been replaced.

Change-Id: I022e4621209474ceb1c671b23deb4188eaaa7285
urfaceflinger_client/SharedBufferStack.cpp
85d8daa889db113b51c5d98929245e80f7277388 28-Jul-2010 Romain Guy <romainguy@google.com> Merge "Generate shaders to cover all possible cases."
ac670c0433d19397d4e36ced2110475b6f54fe26 28-Jul-2010 Romain Guy <romainguy@google.com> Generate shaders to cover all possible cases.

With this change, all the vertex and fragment shaders used by the GL
renderer are now generated based on a program description supplied
by the caller. This allows the renderer to generate a large number
of shaders without having to write all the possible combinations by
hand. The generated shaders are stored in a program cache.

Change-Id: If54d286e77ae021c724d42090da476df12a18ebb
wui/Android.mk
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Program.cpp
wui/Program.h
wui/ProgramCache.cpp
wui/ProgramCache.h
wui/Vertex.h
wui/shaders/drawColor.vert
wui/shaders/drawLinearGradient.vert
84fabc0ce3d7c3da73903380d0d6141d60fa4448 27-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> am 245cb784: am 84c924a6: Merge "Replace several IPCThreadState::get() lookups with one." into gingerbread

Merge commit '245cb7846c82f7c0840e13f0b994d356846b1678'

* commit '245cb7846c82f7c0840e13f0b994d356846b1678':
Replace several IPCThreadState::get() lookups with one.
245cb7846c82f7c0840e13f0b994d356846b1678 27-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> am 84c924a6: Merge "Replace several IPCThreadState::get() lookups with one." into gingerbread

Merge commit '84c924a6c53cb63ca018013c9fda0077413d0005' into gingerbread-plus-aosp

* commit '84c924a6c53cb63ca018013c9fda0077413d0005':
Replace several IPCThreadState::get() lookups with one.
7bcad8a315f12bd6251a998781efac7b11c2ca84 27-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> Replace several IPCThreadState::get() lookups with one.

Also, make StrictMode's ThreadLocal final.

Change-Id: I08d400ed254fa67bb7a3dae1227f205a54c00df0
inder/Parcel.cpp
468737307854d1395e50c05cb5498334381c78c0 27-Jul-2010 Jason Sams <rjsams@android.com> Merge "Query the CPU count and use the result to determine if and how many worker threads we use."
7f4d0c9705af50351753b608fc107e0220c9a2f4 27-Jul-2010 Jason Sams <rjsams@android.com> Query the CPU count and use the result to determine
if and how many worker threads we use.

Change-Id: I8fc1fb17aff835cfe8ed7c474287bccd532cbb29
s/rsContext.cpp
65ef909776c03417d8b597738da54ca211e37e4f 26-Jul-2010 Alex Sakhartchouk <alexst@google.com> When font cache still has empty space,
precache some commonly used characters to reduce studder.

Change-Id: I1f66f57482c4a025672dfd1d8ecaf2b9736cd9a0
wui/FontRenderer.cpp
wui/FontRenderer.h
wui/OpenGLRenderer.cpp
e8e62a4a032a80409114a37908b5f18ab0080848 24-Jul-2010 Romain Guy <romainguy@google.com> Add text alignment support to drawText().

This change also integrates better support for RTL text.

Change-Id: I6da8f5cf5dc28ca7cf1b22e27b0d853c919e8481
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
9b9902ddbb01548f4a0199087b7035e7c10b2ae7 23-Jul-2010 Alex Sakhartchouk <alexst@google.com> Updating parts of font cache as needed instead of the entire map.

Change-Id: If9a37e10197255122acdb5b10a0c356edd942d67
wui/FontRenderer.cpp
wui/FontRenderer.h
51769a68a5cb34e9564740c6a854fcb93018789d 23-Jul-2010 Romain Guy <romainguy@android.com> Cleanup, added properties for the FontRenderer.

Change-Id: I909c74815d3ac394438ad8071d17fef5401dbeed
wui/Extensions.h
wui/FontRenderer.cpp
wui/FontRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Properties.h
b84b7e8f2172964fb32598728cc25cada73cb148 23-Jul-2010 Mathias Agopian <mathias@google.com> am 1db0e88e: am 4782cdbb: Merge "Fix a memory corruption when writting Sensor into a parcel" into gingerbread

Merge commit '1db0e88e60ca4f99edff149fe2ab8499e749df47'

* commit '1db0e88e60ca4f99edff149fe2ab8499e749df47':
Fix a memory corruption when writting Sensor into a parcel
1db0e88e60ca4f99edff149fe2ab8499e749df47 23-Jul-2010 Mathias Agopian <mathias@google.com> am 4782cdbb: Merge "Fix a memory corruption when writting Sensor into a parcel" into gingerbread

Merge commit '4782cdbbbe4b2c7714af1fb6cdc4f52f1d1d20d7' into gingerbread-plus-aosp

* commit '4782cdbbbe4b2c7714af1fb6cdc4f52f1d1d20d7':
Fix a memory corruption when writting Sensor into a parcel
b54a3c95801da5464bbfcbb551545b543ca4d46c 23-Jul-2010 Mathias Agopian <mathias@google.com> Fix a memory corruption when writting Sensor into a parcel

Change-Id: I03f703ae2224f43924031bfea4c68aa979bb9f05
ui/Sensor.cpp
b7e703674a8d64f7180a4fa86756cc0d1484371a 23-Jul-2010 Romain Guy <romainguy@google.com> Merge "Add a way to query GL extensions."
bd0e6aa0ff0bd8b376772c3e23513a6021bdda87 23-Jul-2010 Romain Guy <romainguy@google.com> Add a way to query GL extensions.

Change-Id: Ic27dbf72289dacf641b640a749fbd40c12cd474f
wui/Extensions.h
wui/FontRenderer.h
wui/OpenGLRenderer.h
wui/TextureCache.cpp
6d6b749b24fccfbbab41567fcf1eba1f14f5ad21 23-Jul-2010 Mathias Agopian <mathias@google.com> move native services under services/

moved surfaceflinger, audioflinger, cameraservice

all native services should now reside in this location.

Change-Id: Icd7336f7289db35df9c8c1857a5122bb8a6f1c86
udioflinger/A2dpAudioInterface.cpp
udioflinger/A2dpAudioInterface.h
udioflinger/Android.mk
udioflinger/AudioBufferProvider.h
udioflinger/AudioDumpInterface.cpp
udioflinger/AudioDumpInterface.h
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
udioflinger/AudioHardwareGeneric.cpp
udioflinger/AudioHardwareGeneric.h
udioflinger/AudioHardwareInterface.cpp
udioflinger/AudioHardwareStub.cpp
udioflinger/AudioHardwareStub.h
udioflinger/AudioMixer.cpp
udioflinger/AudioMixer.h
udioflinger/AudioPolicyManagerBase.cpp
udioflinger/AudioPolicyService.cpp
udioflinger/AudioPolicyService.h
udioflinger/AudioResampler.cpp
udioflinger/AudioResampler.h
udioflinger/AudioResamplerCubic.cpp
udioflinger/AudioResamplerCubic.h
udioflinger/AudioResamplerSinc.cpp
udioflinger/AudioResamplerSinc.h
urfaceflinger/Android.mk
urfaceflinger/Barrier.h
urfaceflinger/BlurFilter.cpp
urfaceflinger/BlurFilter.h
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/DisplayHardware/DisplayHardware.h
urfaceflinger/DisplayHardware/DisplayHardwareBase.cpp
urfaceflinger/DisplayHardware/DisplayHardwareBase.h
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBlur.cpp
urfaceflinger/LayerBlur.h
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
urfaceflinger/LayerDim.cpp
urfaceflinger/LayerDim.h
urfaceflinger/MODULE_LICENSE_APACHE2
urfaceflinger/MessageQueue.cpp
urfaceflinger/MessageQueue.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger/Tokenizer.cpp
urfaceflinger/Tokenizer.h
urfaceflinger/Transform.cpp
urfaceflinger/Transform.h
urfaceflinger/clz.cpp
urfaceflinger/clz.h
urfaceflinger/tests/Android.mk
urfaceflinger/tests/overlays/Android.mk
urfaceflinger/tests/overlays/overlays.cpp
urfaceflinger/tests/resize/Android.mk
urfaceflinger/tests/resize/resize.cpp
b621677c97ba80804a5ae5d53167616774908867 23-Jul-2010 Jason Sams <rjsams@android.com> Merge "Minor ImageProcessing script optimization to make it a better FP benchmark."
f46f25a4bdb266f05a862d51a0751b0b5316bf09 22-Jul-2010 Jason Sams <rjsams@android.com> Minor ImageProcessing script optimization to make it a better FP benchmark.

Change-Id: I24b11d98c9ac32d91153d3572da511b34e79f7f0
s/java/ImageProcessing/src/com/android/rs/image/horizontal_blur.rs
s/java/ImageProcessing/src/com/android/rs/image/levels.rs
s/java/ImageProcessing/src/com/android/rs/image/vertical_blur.rs
09147fbdc8206a0cac78bfe9083e7e15b3c5689c 22-Jul-2010 Romain Guy <romainguy@google.com> Add support for text culling.

Change-Id: Ibf0adacdc5c64d40a8000b21d7cb0797d63efe29
wui/FontRenderer.cpp
wui/FontRenderer.h
wui/OpenGLRenderer.cpp
wui/Snapshot.h
236d4ee896c831183ca8b873406e3fe7b5fa3058 22-Jul-2010 Romain Guy <romainguy@google.com> Merge "Add text rendering."
694b519ac647fe998fd396fe0784cc8e179aadc4 22-Jul-2010 Romain Guy <romainguy@google.com> Add text rendering.

Change-Id: Ibe5a9fa844d531b31b55e43de403a98d49f659b9
wui/Android.mk
wui/FontRenderer.cpp
wui/FontRenderer.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Program.cpp
wui/Program.h
wui/shaders/drawText.frag
5c49ec30b57a18ac022601473c9524f40554c9cf 22-Jul-2010 Mathias Agopian <mathias@google.com> am 1f2ec407: am 23e8de26: propagate sensor event rate properly

Merge commit '1f2ec4070aa9c999d41dc50a892a896e894c5710'

* commit '1f2ec4070aa9c999d41dc50a892a896e894c5710':
propagate sensor event rate properly
50558b956157dad980441bf4fb44931ce834e36b 22-Jul-2010 Mathias Agopian <mathias@google.com> resolved conflicts for merge of bc54e63c to master

Change-Id: I4245b15b4cda6963d735442c0c6a04a0477ff5e1
1f2ec4070aa9c999d41dc50a892a896e894c5710 22-Jul-2010 Mathias Agopian <mathias@google.com> am 23e8de26: propagate sensor event rate properly

Merge commit '23e8de26b7b3d04daf08526f314c2fdd2f8fee65' into gingerbread-plus-aosp

* commit '23e8de26b7b3d04daf08526f314c2fdd2f8fee65':
propagate sensor event rate properly
bc54e63c84a517f0dca88ba900ff2b56719f685b 22-Jul-2010 Mathias Agopian <mathias@google.com> am e4764521: Merge "new SensorService" into gingerbread

Merge commit 'e4764521353e898554931a557460fc49209fb0a9' into gingerbread-plus-aosp

* commit 'e4764521353e898554931a557460fc49209fb0a9':
new SensorService
23e8de26b7b3d04daf08526f314c2fdd2f8fee65 22-Jul-2010 Mathias Agopian <mathias@google.com> propagate sensor event rate properly

Change-Id: I32e67d30e4295285a6827956cc8161b2025d70bc
ui/SensorEventQueue.cpp
1cc4523c6af3be37ef54707db33f813c4c003e05 21-Jul-2010 Shih-wei Liao <sliao@google.com> rs_types.rsh and rs_math.rsh are default include files. Remove their #include.

Change-Id: Id69efbd98fd563a82cffdcaba96afa4cd8671bb2
s/java/Fountain/src/com/android/fountain/fountain.rs
s/java/ImageProcessing/src/com/android/rs/image/horizontal_blur.rs
s/java/ImageProcessing/src/com/android/rs/image/levels.rs
s/java/ImageProcessing/src/com/android/rs/image/threshold.rs
s/java/ImageProcessing/src/com/android/rs/image/vertical_blur.rs
s/java/ModelViewer/src/com/android/modelviewer/modelviewer.rs
19a25c1be9a0b846c5c1b4216edd9b33a23129be 21-Jul-2010 Shih-wei Liao <sliao@google.com> Merge "Use bccGetExportVars to get mFieldCount, instead of hardwiring "100" in calloc."
2a0a47892db7025f1dafae24f72172572de82475 21-Jul-2010 Romain Guy <romainguy@google.com> Merge "Add preliminary support for text rendering."
07876467556a4603b8186ccf60fa8fc3d55a7d5a 21-Jul-2010 Shih-wei Liao <sliao@google.com> Use bccGetExportVars to get mFieldCount, instead of hardwiring "100" in calloc.

Change-Id: I6023b93865f785779b966acf03bf120078ac3c74
s/rsScriptC.cpp
a1db574036c9bc2d397b69f8200594027e1fff16 20-Jul-2010 Romain Guy <romainguy@google.com> Add preliminary support for text rendering.

Change-Id: I547eb631dbda24d13960d54b4144fb8908fd8a49
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
3b7fd8abe7ec6283c91e2260a58c9a7035f30353 21-Jul-2010 Jason Sams <rjsams@android.com> Attempt to fix build '<>' works on mac but does not appear to work on linux yet.

Change-Id: Ic0bfaf3cf052e9be43320aa2cdd89ca4d0f48fc6
s/java/ImageProcessing/src/com/android/rs/image/horizontal_blur.rs
s/java/ImageProcessing/src/com/android/rs/image/levels.rs
s/java/ImageProcessing/src/com/android/rs/image/threshold.rs
s/java/ImageProcessing/src/com/android/rs/image/vertical_blur.rs
c7f4e41ecd8211227b4f0037ac3312a83db389cc 21-Jul-2010 Jason Sams <rjsams@android.com> Update imageprocessing to remove generated files.
Fix thread launch race condition.

Change-Id: I24d7f87ac87db6f9e3418d6a429471a71d2c9e9d
s/java/ImageProcessing/Android.mk
s/java/ImageProcessing/res/raw/horizontal_blur.rs
s/java/ImageProcessing/res/raw/horizontal_blur_bc.bc
s/java/ImageProcessing/res/raw/ip.rsh
s/java/ImageProcessing/res/raw/threshold.rs
s/java/ImageProcessing/res/raw/threshold_bc.bc
s/java/ImageProcessing/res/raw/vertical_blur.rs
s/java/ImageProcessing/res/raw/vertical_blur_bc.bc
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
s/java/ImageProcessing/src/com/android/rs/image/ScriptC_Horizontal_blur.java
s/java/ImageProcessing/src/com/android/rs/image/ScriptC_Threshold.java
s/java/ImageProcessing/src/com/android/rs/image/ScriptC_Vertical_blur.java
s/java/ImageProcessing/src/com/android/rs/image/horizontal_blur.rs
s/java/ImageProcessing/src/com/android/rs/image/ip.rsh
s/java/ImageProcessing/src/com/android/rs/image/levels.rs
s/java/ImageProcessing/src/com/android/rs/image/threshold.rs
s/java/ImageProcessing/src/com/android/rs/image/vertical_blur.rs
s/rsContext.cpp
s/rsContext.h
s/rsScriptC.cpp
1e37e875efa2adfb93c86d4d1dcdf097b12be12e 20-Jul-2010 Alex Sakhartchouk <alexst@google.com> Fixing potential buffer overrun errors.

Change-Id: I77c43f0dd3a5d5a54465ff5d562f8e2b4d7fa3c3
s/rsType.cpp
b1cd67bb48d7f9b35585563043c45da72e0acc2b 20-Jul-2010 Shih-wei Liao <sliao@google.com> Merge "Fix Android build"
57e7a95b160cfe8c518c3c16dee147497001633f 20-Jul-2010 Shih-wei Liao <sliao@google.com> Fix Android build

Change-Id: I531dec556e6774518d19707f91c99ecaaf344c0f
s/java/ImageProcessing/Android.mk
9d07ed1f5d6f84a4c786697952934ab63ad1154c 20-Jul-2010 Shih-wei Liao <sliao@google.com> Merge "Change the include path."
7152c05724d633870ebed849992f5286860bf680 20-Jul-2010 Shih-wei Liao <sliao@google.com> Change the include path.

Change-Id: I884f95e40ab2d7080fd1eec0ecc9b86794b7c042
s/java/ModelViewer/src/com/android/modelviewer/modelviewer.rs
c67dc1afba731df5ad0b026d73759fcf95d7d3c9 20-Jul-2010 Shih-wei Liao <sliao@google.com> Merge "Port ModelViewer to use the new build system. Fix the simulator build on Fountain."
3485976e84ff97cf54f640d8434affb6bec1a484 20-Jul-2010 Shih-wei Liao <sliao@google.com> Port ModelViewer to use the new build system.
Fix the simulator build on Fountain.

Change-Id: I89b05c31595f0a8c3001171957eeeb2fec253c74
s/java/Fountain/Android.mk
s/java/ModelViewer/Android.mk
s/java/ModelViewer/res/raw/modelviewer.rs
s/java/ModelViewer/res/raw/modelviewer_bc.bc
s/java/ModelViewer/src/com/android/modelviewer/ModelViewerRS.java
s/java/ModelViewer/src/com/android/modelviewer/ScriptC_Modelviewer.java
s/java/ModelViewer/src/com/android/modelviewer/modelviewer.rs
6ddaacef9b76402c590218cdec13fbcd0770dc91 20-Jul-2010 Ying Wang <wangying@google.com> Switch back to use the default search of include path

since slang has been fixed to add current dir as one of the default search path.

Change-Id: Id3e80955ce445f155fc518927974be7986daff1f
s/java/Fountain/src/com/android/fountain/fountain.rs
c0ac193b9415680f0a69e20a3f5f22d16f8053be 20-Jul-2010 Romain Guy <romainguy@google.com> Add support for linear gradients.

Change-Id: Id15329da065045b3f06fdaed615f33cd57608496
wui/Android.mk
wui/GradientCache.cpp
wui/GradientCache.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Program.cpp
wui/Program.h
wui/TextureCache.cpp
wui/shaders/drawLinearGradient.vert
bbe72dcda60f8d9ec61d893d23bb202f055ce48a 20-Jul-2010 Ying Wang <wangying@google.com> Fix build

Slang uses env var that build server does not set, so we still need to use relative path.

Change-Id: Ibf57710b113674fe546700d81154e5236920134c
s/java/Fountain/src/com/android/fountain/fountain.rs
1bf797857e025e8a71db86fb9e79765a767ec1eb 15-Jul-2010 Mathias Agopian <mathias@google.com> new SensorService

remove old sensor service and implement SensorManager
on top of the new (native) SensorManger API.

Change-Id: Iddb77d498755da3e11646473a44d651f12f40281
ui/ISensorEventConnection.cpp
ui/ISensorServer.cpp
ui/Sensor.cpp
ui/SensorEventQueue.cpp
ui/SensorManager.cpp
caaf428f470d4ade8c917bcbd959a942201bbcaa 20-Jul-2010 Ying Wang <wangying@google.com> Merge ".rs files are now built by the build system."
39c186dd91c3671dfe38d4dd0c7d40a852c03eae 20-Jul-2010 Jamie Gennis <jgennis@google.com> am 98f8e0cb: am ff7049ab: Remove some debug logging that I accidentally committed.

Merge commit '98f8e0cbaa19b4a045e6f201290e731ddfad67ba'

* commit '98f8e0cbaa19b4a045e6f201290e731ddfad67ba':
Remove some debug logging that I accidentally committed.
98f8e0cbaa19b4a045e6f201290e731ddfad67ba 20-Jul-2010 Jamie Gennis <jgennis@google.com> am ff7049ab: Remove some debug logging that I accidentally committed.

Merge commit 'ff7049ab2886acc73e145367118646f7741ce333' into gingerbread-plus-aosp

* commit 'ff7049ab2886acc73e145367118646f7741ce333':
Remove some debug logging that I accidentally committed.
ff7049ab2886acc73e145367118646f7741ce333 20-Jul-2010 Jamie Gennis <jgennis@google.com> Remove some debug logging that I accidentally committed.

Change-Id: Ib182455fad5e5b3f3f59b3ff24f59dcd7f638292
urfaceflinger_client/Surface.cpp
bc8112fd6db905aa02b86bc73c2a4086c89253d1 16-Jul-2010 Ying Wang <wangying@google.com> .rs files are now built by the build system.

Change-Id: Iba28bed6cc05883a28a59b8dd0ff12e1bfbe0c04
s/java/Fountain/Android.mk
s/java/Fountain/res/raw/fountain_bc.bc
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/Fountain/src/com/android/fountain/ScriptC_Fountain.java
s/java/Fountain/src/com/android/fountain/ScriptField_Point.java
s/java/Fountain/src/com/android/fountain/fountain.rs
s/java/Fountain/src/fountain.rs
8e6c17fcc40bfb2391dcadecb397431239ab8a18 20-Jul-2010 Jason Sams <rjsams@android.com> Threading RS ForEach.

Change-Id: I5d6fe4db2b6ac0613394bc5a066ff90ec146d60e
s/java/ImageProcessing/res/raw/horizontal_blur.rs
s/java/ImageProcessing/res/raw/horizontal_blur_bc.bc
s/java/ImageProcessing/res/raw/ip.rsh
s/java/ImageProcessing/res/raw/threshold.rs
s/java/ImageProcessing/res/raw/threshold_bc.bc
s/java/ImageProcessing/res/raw/vertical_blur.rs
s/java/ImageProcessing/res/raw/vertical_blur_bc.bc
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
s/java/ImageProcessing/src/com/android/rs/image/ScriptC_Horizontal_blur.java
s/java/ImageProcessing/src/com/android/rs/image/ScriptC_Vertical_blur.java
s/rsContext.cpp
s/rsContext.h
s/rsScriptC.cpp
s/rsScriptC_Lib.cpp
s/rsUtils.h
s/scriptc/rs_math.rsh
b6a45e39931e0094edb18534815c1a182261e8c8 17-Jul-2010 Romain Guy <romainguy@android.com> Merge "Add program for linear gradient."
f9764a4f532561f6e2e985ff3b25112f1132ce44 17-Jul-2010 Romain Guy <romainguy@android.com> Add program for linear gradient.

This change adds a new DrawLinearGradientProgram class to enable the drawing
of linear gradients. Two new vertex and fragment shaders are introduced,
based on DrawTextureProgram's shaders.

Change-Id: I885afc076bb6cef8cd3962ae21a086fa6a03bf96
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Program.cpp
wui/Program.h
wui/shaders/drawLinearGradient.frag
wui/shaders/drawLinearGradient.vert
5ab048822372de40fcbbacdfac974a2fd7756149 17-Jul-2010 Jeff Brown <jeffbrown@google.com> am 3994396b: am d3616592: Fix trackball down and movement bugs.

Merge commit '3994396b089c36f432a7af5d542ef594142dd09b'

* commit '3994396b089c36f432a7af5d542ef594142dd09b':
Fix trackball down and movement bugs.
3994396b089c36f432a7af5d542ef594142dd09b 17-Jul-2010 Jeff Brown <jeffbrown@google.com> am d3616592: Fix trackball down and movement bugs.

Merge commit 'd3616592fe1b315b589766c4b74ce728fc4968f5' into gingerbread-plus-aosp

* commit 'd3616592fe1b315b589766c4b74ce728fc4968f5':
Fix trackball down and movement bugs.
d3616592fe1b315b589766c4b74ce728fc4968f5 17-Jul-2010 Jeff Brown <jeffbrown@google.com> Fix trackball down and movement bugs.

Bug: 2823788
Change-Id: Icb0c392b58f7e735614460b5eb87439cb73ac4f2
i/InputDispatcher.cpp
i/InputReader.cpp
ea2604d966dfc62f50922a516caaa9cc411d9c64 17-Jul-2010 Romain Guy <romainguy@android.com> Merge "Add plumbing to support gradients in OpenGL renderer."
7fac2e18339f765320d759e8d4c090f92431959e 17-Jul-2010 Romain Guy <romainguy@android.com> Add plumbing to support gradients in OpenGL renderer.

The LinearGradient class keeps a copy of the various parameters that
define the gradient. The copies are native arrays to avoid copying
Java arrays on every draw call. The gradient code path is implemented
until OpenGLRenderer::drawRect() (see TODO.) The actual gradient
implementation will be added in a latter change.

Change-Id: I9300d250ef5e2e9c2e097c3116ee71dfc9d752d8
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Snapshot.h
691a9fcb2bc1b78f1f1048c3d7a39143be9dcdd7 17-Jul-2010 Jamie Gennis <jgennis@google.com> am 04b95313: am c8c79a65: Merge "Re-use existing Surface objects when reading them from parcels." into gingerbread

Merge commit '04b953132edb5482f0aa6d992f89e7016961528c'

* commit '04b953132edb5482f0aa6d992f89e7016961528c':
Re-use existing Surface objects when reading them from parcels.
5b45b1c274d448a304188d07cb54ac5d2668f203 17-Jul-2010 Jeff Brown <jeffbrown@google.com> am 7b8df313: am 00ba8844: Fix individual pointer id up/down reporting.

Merge commit '7b8df313f714d6e8d536e0f8bbe5496fe9a6c26d'

* commit '7b8df313f714d6e8d536e0f8bbe5496fe9a6c26d':
Fix individual pointer id up/down reporting.
04b953132edb5482f0aa6d992f89e7016961528c 17-Jul-2010 Jamie Gennis <jgennis@google.com> am c8c79a65: Merge "Re-use existing Surface objects when reading them from parcels." into gingerbread

Merge commit 'c8c79a654d4ae8e3a883854e19cc2df757f72d82' into gingerbread-plus-aosp

* commit 'c8c79a654d4ae8e3a883854e19cc2df757f72d82':
Re-use existing Surface objects when reading them from parcels.
c8c79a654d4ae8e3a883854e19cc2df757f72d82 17-Jul-2010 Jamie Gennis <jgennis@google.com> Merge "Re-use existing Surface objects when reading them from parcels." into gingerbread
7b8df313f714d6e8d536e0f8bbe5496fe9a6c26d 17-Jul-2010 Jeff Brown <jeffbrown@google.com> am 00ba8844: Fix individual pointer id up/down reporting.

Merge commit '00ba884436dc8b222ad850c73c936d87bf4e84de' into gingerbread-plus-aosp

* commit '00ba884436dc8b222ad850c73c936d87bf4e84de':
Fix individual pointer id up/down reporting.
00ba884436dc8b222ad850c73c936d87bf4e84de 17-Jul-2010 Jeff Brown <jeffbrown@google.com> Fix individual pointer id up/down reporting.

Fix a minor threading bug in InputManager dump.

Change-Id: Ic2eecf7df5a8dc9f40561fcb03ebe58a2c073778
i/InputReader.cpp
dcb7a7062d5c52e1731bad2f48460af416b676af 17-Jul-2010 Romain Guy <romainguy@android.com> Merge "Optimize textures binding."
1e79386ba34f0db38c1b35b22cdf122632534354 17-Jul-2010 Romain Guy <romainguy@android.com> Optimize textures binding.

The renderer is still changing textures' wrap modes every time, this will require
a latter optimization.

Change-Id: I3eb92cb8c886c4a692b7f0ca759911f9371d4d2c
wui/LayerCache.cpp
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/TextureCache.cpp
9a89b0e1b9d4d7ebc9496442b219f2f58f30f5e8 16-Jul-2010 Romain Guy <romainguy@android.com> Merge "Improve clip support (add intersect, union and replace.)"
079ba2c85b15e882629b8d188f5fbdb42f7f8eea 16-Jul-2010 Romain Guy <romainguy@android.com> Improve clip support (add intersect, union and replace.)

This change also modifies the way the clip is stored. The clip is now
always stored in screen-space coordinates.

Change-Id: I96375784d82dfe975bc6477a159e6866e7052487
wui/Matrix.cpp
wui/Matrix.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Rect.h
wui/Snapshot.h
5ee65f0d441ca558bc95b60c1468f2aadfeeddbd 16-Jul-2010 Jamie Gennis <jgennis@google.com> Re-use existing Surface objects when reading them from parcels.

This change adds a process-global cache of previously deserialized Surface
objects so that if a Surface object wrapping the same ISurface gets received
again the same Surface can be used. This is important because the 'tail'
pointer in the SharedBufferClient is stored only on the client side, and needs
to be the same for all the Surface objects wrapping an ISurface instance. This
solves the problem by making there only be one Surface object wrapping an
ISurface per process.

Change-Id: I4bf0b8787885c56277622fca053022d2bb638902
urfaceflinger_client/Surface.cpp
eb857f12d605659b385d168ef1ea7d4ba5193585 16-Jul-2010 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of f7adbe10 to master

Change-Id: I898a5e53b180adaee2337c0c0b9896c799d056e7
781d34747941f3534b2a985ff57368ad89855d7d 16-Jul-2010 Dianne Hackborn <hackbod@google.com> am 9c37e5ad: am 75a91389: Merge "Implement native key pre-dispatching to IMEs." into gingerbread

Merge commit '9c37e5add9d7678a29b4e0d1e178fe78a13db961'

* commit '9c37e5add9d7678a29b4e0d1e178fe78a13db961':
Implement native key pre-dispatching to IMEs.
f7adbe10c23ca86e70a6e3a8b1a90ebe23142d29 16-Jul-2010 Jeff Brown <jeffbrown@google.com> am eec69d29: Merge "Fix bug with phantom input windows." into gingerbread

Merge commit 'eec69d2923636b2aaa51df93bacc2b3bbb742736' into gingerbread-plus-aosp

* commit 'eec69d2923636b2aaa51df93bacc2b3bbb742736':
Fix bug with phantom input windows.
e33348ba54cd68d6936cffd4507037c14d4b10c2 16-Jul-2010 Jeff Brown <jeffbrown@google.com> Fix bug with phantom input windows.

Add dumpsys integration for the native input dispatcher.
Add some InputDevice API stubs.
Add an appendFormat helper method to String8 for printf style
string formatting mainly for debugging purposes.
Use generic ArrayList<WindowState> everywhere in WindowManagerService
to eliminate unnecessary casts all over.

Change-Id: I9d1e3bd90eb7222d10620200477f11b7bfd25e44
tils/String8.cpp
b75fa30aaf03d9e425d150b452501e5df0621351 16-Jul-2010 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of aca672ba to master

Change-Id: I7ae11fca0acdbf513a4870226d0d3e3cafbe9a08
3fdab65f244c92aed36bc0a5ee435d5dfbe2d673 16-Jul-2010 Shih-wei Liao <sliao@google.com> Merge "Fix include path problem."
28b40e642610fb74e9aed2b1937ca3def47b6fa0 16-Jul-2010 Shih-wei Liao <sliao@google.com> Fix include path problem.

Change-Id: Ic1abbce767b9895e95e0a24e6f76150b31a6c75a
s/java/Fountain/src/fountain.rs
d2f6c7fe735ffcdb67852c6a1287565a2afa412d 16-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> am 3e5e21d4: am 1772c34e: Merge "StrictMode: gather and return violating stacks in Binder replies" into gingerbread

Merge commit '3e5e21d4dc74751e64d17379c5563ece39a7e35d'

* commit '3e5e21d4dc74751e64d17379c5563ece39a7e35d':
StrictMode: gather and return violating stacks in Binder replies
9555a1323e846aba16e6a7f2e5d9a9227523e595 16-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> am cc52121c: am c4b204bd: Merge "More StrictMode work, keeping Binder & BlockGuard\'s thread-locals in-sync." into gingerbread

Merge commit 'cc52121c4f88e9feb8404937bcbfff6e73084666'

* commit 'cc52121c4f88e9feb8404937bcbfff6e73084666':
More StrictMode work, keeping Binder & BlockGuard's thread-locals in-sync.
ebd6f94dbdafdb14d620d2bd8e08535a309f266a 16-Jul-2010 Shih-wei Liao <sliao@google.com> Merge "Preparing for build system change. Fix the build error in http://b/issue?id=2781522."
a560d7a2fd08a46a835bdbe53f9a5da6ea34cf1f 16-Jul-2010 Shih-wei Liao <sliao@google.com> Preparing for build system change. Fix the build error in http://b/issue?id=2781522.

Change-Id: I4513504bb05de9bb82cd12d40045a7e4090edb3c
s/java/Fountain/res/raw/fountain.rs
s/java/Fountain/src/fountain.rs
9c37e5add9d7678a29b4e0d1e178fe78a13db961 16-Jul-2010 Dianne Hackborn <hackbod@google.com> am 75a91389: Merge "Implement native key pre-dispatching to IMEs." into gingerbread

Merge commit '75a91389f1938214397aaee262f4136e6bb6b094' into gingerbread-plus-aosp

* commit '75a91389f1938214397aaee262f4136e6bb6b094':
Implement native key pre-dispatching to IMEs.
2c6081ce3593712f30dacd990a97209c791d6ced 16-Jul-2010 Dianne Hackborn <hackbod@google.com> Implement native key pre-dispatching to IMEs.

This significantly re-works the native key dispatching code to
allow events to be pre-dispatched to the current IME before
being processed by native code. It introduces one new public
API, which must be called after retrieving an event if the app
wishes for it to be pre-dispatched.

Currently the native code will only do pre-dispatching of
system keys, to avoid significant overhead for gaming input.
This should be improved to be smarted, filtering for only
keys that the IME is interested in. Unfortunately IMEs don't
currently provide this information. :p

Change-Id: Ic1c7aeec8b348164957f2cd88119eb5bd85c2a9f
i/Input.cpp
aca672ba2eea19420df16906851d56077a3fd3b2 16-Jul-2010 Jeff Brown <jeffbrown@google.com> am c5ed5910: Add support for new input sources.

Merge commit 'c5ed5910c9ef066cec6a13bbb404ec57b1e92637' into gingerbread-plus-aosp

* commit 'c5ed5910c9ef066cec6a13bbb404ec57b1e92637':
Add support for new input sources.
c5ed5910c9ef066cec6a13bbb404ec57b1e92637 15-Jul-2010 Jeff Brown <jeffbrown@google.com> Add support for new input sources.

Added several new coordinate values to MotionEvents to capture
touch major/minor area, tool major/minor area and orientation.

Renamed NDK input constants per convention.

Added InputDevice class in Java which will eventually provide
useful information about available input devices.

Added APIs for manufacturing new MotionEvent objects with multiple
pointers and all necessary coordinate data.

Fixed a bug in the input dispatcher where it could get stuck with
a pointer down forever.

Fixed a bug in the WindowManager where the input window list could
end up containing stale removed windows.

Fixed a bug in the WindowManager where the input channel was being
removed only after the final animation transition had taken place
which caused spurious WINDOW DIED log messages to be printed.

Change-Id: Ie55084da319b20aad29b28a0499b8dd98bb5da68
i/EventHub.cpp
i/Input.cpp
i/InputDevice.cpp
i/InputDispatcher.cpp
i/InputReader.cpp
i/InputTransport.cpp
i/tests/InputPublisherAndConsumer_test.cpp
6ea3b2a5dad44b1817562d24b0d11a74da72a751 16-Jul-2010 Jason Sams <rjsams@android.com> Merge "1st cut of ForEach and test."
8f8a5724bee0f958ef81a7154e4fd40fb6f07a49 16-Jul-2010 Jason Sams <rjsams@android.com> 1st cut of ForEach and test.

Change-Id: I6534569c8d26db8b9691666134a555c8bf94184e
s/RenderScript.h
s/java/ImageProcessing/res/raw/horizontal_blur.rs
s/java/ImageProcessing/res/raw/horizontal_blur_bc.bc
s/java/ImageProcessing/res/raw/ip.rsh
s/java/ImageProcessing/res/raw/threshold.rs
s/java/ImageProcessing/res/raw/threshold_bc.bc
s/java/ImageProcessing/res/raw/vertical_blur.rs
s/java/ImageProcessing/res/raw/vertical_blur_bc.bc
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
s/java/ImageProcessing/src/com/android/rs/image/ScriptC_Horizontal_blur.java
s/java/ImageProcessing/src/com/android/rs/image/ScriptC_Threshold.java
s/java/ImageProcessing/src/com/android/rs/image/ScriptC_Vertical_blur.java
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC.h
s/rsScriptC_Lib.cpp
s/scriptc/rs_math.rsh
3e5e21d4dc74751e64d17379c5563ece39a7e35d 16-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> am 1772c34e: Merge "StrictMode: gather and return violating stacks in Binder replies" into gingerbread

Merge commit '1772c34e5331a6456c8a93051192d19ff873c062' into gingerbread-plus-aosp

* commit '1772c34e5331a6456c8a93051192d19ff873c062':
StrictMode: gather and return violating stacks in Binder replies
cc52121c4f88e9feb8404937bcbfff6e73084666 16-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> am c4b204bd: Merge "More StrictMode work, keeping Binder & BlockGuard\'s thread-locals in-sync." into gingerbread

Merge commit 'c4b204bdc4ab974f1f96814c93d8eaa750c15122' into gingerbread-plus-aosp

* commit 'c4b204bdc4ab974f1f96814c93d8eaa750c15122':
More StrictMode work, keeping Binder & BlockGuard's thread-locals in-sync.
51b7ebc652e320ee89b546f3e699ba31e9394a2c 16-Jul-2010 Alex Sakhartchouk <alexst@google.com> Merge "Populate java objects with native data from a3d file. Remove legacy constructor from programraster Make a3d object creation synchronous"
c96cdc9844d60d54683fb7700fc5908fdb8ff856 15-Jul-2010 Romain Guy <romainguy@google.com> Merge "Add support for BitmapShader."
d27977d1a91d5a6b3cc9fa7664ac7e835e7bd895 15-Jul-2010 Romain Guy <romainguy@google.com> Add support for BitmapShader.

This change also fixes an issue with the clip and layers.

Change-Id: I5fd9832098d8cf7ae8eb781ff9bffe7defaea279
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Snapshot.h
wui/shaders/drawColor.frag
wui/shaders/drawTexture.frag
dfac814c18f73dd7289f9927edca3e3b6ec6bc00 15-Jul-2010 Alex Sakhartchouk <alexst@google.com> Populate java objects with native data from a3d file.
Remove legacy constructor from programraster
Make a3d object creation synchronous

Change-Id: Ic7d7547cf6eee6f9a7c6e3ee12cd104e80056a7b
s/rs.spec
s/rsElement.cpp
s/rsType.cpp
5b747191ff8ad43a54d41faf50436271d1d7fcc8 12-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> StrictMode: gather and return violating stacks in Binder replies

Now, when Thread A has a strict mode policy in effect and does a
Binder call to Thread B (most likely in another process), the strict
mode policy is passed along, but with the GATHER penalty bit set which
overrides other policies and instead gathers all offending stack
traces to a threadlocal which are then written back in the Parcel's
reply header.

Change-Id: I7d4497032a0609b37b1a2a15855f5c929ba0584d
inder/Parcel.cpp
727de40c6bc7c6521a0542ea9def5d5c7b1c5e06 08-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> More StrictMode work, keeping Binder & BlockGuard's thread-locals in-sync.

Change-Id: Ia67cabcc17a73a0f15907ffea683d06bc41b90e5
inder/IPCThreadState.cpp
inder/Parcel.cpp
c0689d0b6c2ff9139c67d097549b2092ab9c46a8 15-Jul-2010 Jeff Brown <jeffbrown@google.com> am d1313da5: am eb6e0df1: Don\'t build framework tests for simulator target.

Merge commit 'd1313da5999e06be16e52527cfba443f66b333a1'

* commit 'd1313da5999e06be16e52527cfba443f66b333a1':
Don't build framework tests for simulator target.
d1313da5999e06be16e52527cfba443f66b333a1 15-Jul-2010 Jeff Brown <jeffbrown@google.com> am eb6e0df1: Don\'t build framework tests for simulator target.

Merge commit 'eb6e0df18a6567d38caa039ba0b0e49e2e9b46c3' into gingerbread-plus-aosp

* commit 'eb6e0df18a6567d38caa039ba0b0e49e2e9b46c3':
Don't build framework tests for simulator target.
eb6e0df18a6567d38caa039ba0b0e49e2e9b46c3 15-Jul-2010 Jeff Brown <jeffbrown@google.com> Don't build framework tests for simulator target.

Change-Id: I70f29c7eb307e4f3ec5702f4eb9d97b4342e2f36
i/tests/Android.mk
tils/tests/Android.mk
0779682a490f12f102cd0cf1e768e3c68cfdc512 15-Jul-2010 Mathias Agopian <mathias@google.com> am 78983a91: am 4055b780: Merge "move native services under services/" into gingerbread

Merge commit '78983a9133d3dd3f08b1ec462a7e2f9e7bfa9e2f'

* commit '78983a9133d3dd3f08b1ec462a7e2f9e7bfa9e2f':
move native services under services/
78983a9133d3dd3f08b1ec462a7e2f9e7bfa9e2f 15-Jul-2010 Mathias Agopian <mathias@google.com> am 4055b780: Merge "move native services under services/" into gingerbread

Merge commit '4055b780bb7e85abcf4754b84e50bf407c45bec8' into gingerbread-plus-aosp

* commit '4055b780bb7e85abcf4754b84e50bf407c45bec8':
move native services under services/
08e83bb3b7cc41f603867acbeb1168019cf535fe 15-Jul-2010 Mathias Agopian <mathias@google.com> move native services under services/

moved surfaceflinger, audioflinger, cameraservice

all native services should now reside in this location.

Change-Id: Iee42b83dd2a94c3bf5107ab0895fe2dfcd5337a8
udioflinger/A2dpAudioInterface.cpp
udioflinger/A2dpAudioInterface.h
udioflinger/Android.mk
udioflinger/AudioBufferProvider.h
udioflinger/AudioDumpInterface.cpp
udioflinger/AudioDumpInterface.h
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
udioflinger/AudioHardwareGeneric.cpp
udioflinger/AudioHardwareGeneric.h
udioflinger/AudioHardwareInterface.cpp
udioflinger/AudioHardwareStub.cpp
udioflinger/AudioHardwareStub.h
udioflinger/AudioMixer.cpp
udioflinger/AudioMixer.h
udioflinger/AudioPolicyManagerBase.cpp
udioflinger/AudioPolicyService.cpp
udioflinger/AudioPolicyService.h
udioflinger/AudioResampler.cpp
udioflinger/AudioResampler.h
udioflinger/AudioResamplerCubic.cpp
udioflinger/AudioResamplerCubic.h
udioflinger/AudioResamplerSinc.cpp
udioflinger/AudioResamplerSinc.h
urfaceflinger/Android.mk
urfaceflinger/Barrier.h
urfaceflinger/BlurFilter.cpp
urfaceflinger/BlurFilter.h
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/DisplayHardware/DisplayHardware.h
urfaceflinger/DisplayHardware/DisplayHardwareBase.cpp
urfaceflinger/DisplayHardware/DisplayHardwareBase.h
urfaceflinger/GLExtensions.cpp
urfaceflinger/GLExtensions.h
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBlur.cpp
urfaceflinger/LayerBlur.h
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
urfaceflinger/LayerDim.cpp
urfaceflinger/LayerDim.h
urfaceflinger/MODULE_LICENSE_APACHE2
urfaceflinger/MessageQueue.cpp
urfaceflinger/MessageQueue.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger/TextureManager.cpp
urfaceflinger/TextureManager.h
urfaceflinger/Transform.cpp
urfaceflinger/Transform.h
urfaceflinger/clz.cpp
urfaceflinger/clz.h
urfaceflinger/tests/Android.mk
urfaceflinger/tests/overlays/Android.mk
urfaceflinger/tests/overlays/overlays.cpp
urfaceflinger/tests/resize/Android.mk
urfaceflinger/tests/resize/resize.cpp
764f436cb9e734afdc55a7b4ac65b27860383a09 15-Jul-2010 Mathias Agopian <mathias@google.com> am db386f2c: am c9a11088: Merge "first step at implementing the native sensor support" into gingerbread

Merge commit 'db386f2c263c6e9e4b825d4c9a320849f8f2c916'

* commit 'db386f2c263c6e9e4b825d4c9a320849f8f2c916':
first step at implementing the native sensor support
172b79e9df9a5689681cf0355921ec2445bc9f6f 15-Jul-2010 Mathias Agopian <mathias@google.com> am 98704f14: am 38eea8bf: Merge "Remove the YV16 format for simplicity\'s sake." into gingerbread

Merge commit '98704f14eaeef6c9bcb73fea162f4941dd9bbd87'

* commit '98704f14eaeef6c9bcb73fea162f4941dd9bbd87':
Remove the YV16 format for simplicity's sake.
db386f2c263c6e9e4b825d4c9a320849f8f2c916 15-Jul-2010 Mathias Agopian <mathias@google.com> am c9a11088: Merge "first step at implementing the native sensor support" into gingerbread

Merge commit 'c9a11088e503b9e3ae52a3f671b2d21f5cd54f06' into gingerbread-plus-aosp

* commit 'c9a11088e503b9e3ae52a3f671b2d21f5cd54f06':
first step at implementing the native sensor support
98704f14eaeef6c9bcb73fea162f4941dd9bbd87 15-Jul-2010 Mathias Agopian <mathias@google.com> am 38eea8bf: Merge "Remove the YV16 format for simplicity\'s sake." into gingerbread

Merge commit '38eea8bf990540360b45b963195a7766c30b55d2' into gingerbread-plus-aosp

* commit '38eea8bf990540360b45b963195a7766c30b55d2':
Remove the YV16 format for simplicity's sake.
3d58c03de0d8877b36cdb78b0ca8b5cac7f600e2 15-Jul-2010 Romain Guy <romainguy@google.com> Do not apply transforms when using drawColor().

This fixes an issue in the way the clip transformations were applied.

Change-Id: I91e7b5d15baf244d1280e48938282bb33609081d
wui/Matrix.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Snapshot.h
c9a11088e503b9e3ae52a3f671b2d21f5cd54f06 15-Jul-2010 Mathias Agopian <mathias@google.com> Merge "first step at implementing the native sensor support" into gingerbread
058d0390a44f68b67788021bae9ca1775812997b 07-Jul-2010 Mathias Agopian <mathias@google.com> Remove the YV16 format for simplicity's sake.

Change-Id: Iee03d100933ba0c67b13d51e0435be3b4cd953cf
urfaceflinger/TextureManager.cpp
i/PixelFormat.cpp
b957b9d63c88efd3a961759424987b99219adeed 14-Jul-2010 Mathias Agopian <mathias@google.com> first step at implementing the native sensor support

in this commit:
- implemented the C stub
- implemented the binder interfaces involved
- implemented most of the C++ client side

missing:
- SensorManager cannot connect to the SensorServer yet
(because there is no SensorServer yet)

Change-Id: I75010cbeef31c98d6fa62fd5d388dcef87c2636b
ui/Android.mk
ui/ISensorEventConnection.cpp
ui/ISensorServer.cpp
ui/Sensor.cpp
ui/SensorChannel.cpp
ui/SensorEventQueue.cpp
ui/SensorManager.cpp
2388ad9eef109fa7f63c196c819c83f0376f0645 14-Jul-2010 Dianne Hackborn <hackbod@google.com> am f8d9379b: am d76b67c3: IME events are now dispatched to native applications.

Merge commit 'f8d9379bd834573feca085284970cf686993c330'

* commit 'f8d9379bd834573feca085284970cf686993c330':
IME events are now dispatched to native applications.
f8d9379bd834573feca085284970cf686993c330 14-Jul-2010 Dianne Hackborn <hackbod@google.com> am d76b67c3: IME events are now dispatched to native applications.

Merge commit 'd76b67c340d1564abf8d14d976fdaf83bf2b3320' into gingerbread-plus-aosp

* commit 'd76b67c340d1564abf8d14d976fdaf83bf2b3320':
IME events are now dispatched to native applications.
d76b67c340d1564abf8d14d976fdaf83bf2b3320 14-Jul-2010 Dianne Hackborn <hackbod@google.com> IME events are now dispatched to native applications.

And also:

- APIs to show and hide the IME, and control its interaction with the app.
- APIs to tell the app when its window resizes and needs to be redrawn.
- API to tell the app the content rectangle of its window (to layout
around the IME or status bar).

There is still a problem with IME interaction -- we need a way for the
app to deliver events to the IME before it handles them, so that for
example the back key will close the IME instead of finishing the app.

Change-Id: I37b75fc2ec533750ef36ca3aedd2f0cc0b5813cd
i/InputTransport.cpp
6ac7674e143f9716312f048da3f25ca83b646315 14-Jul-2010 Jeff Brown <jeffbrown@google.com> am 89ee578b: am fd035829: Add initial gamepad support.

Merge commit '89ee578b7053d27a50922f82feb94bf6054b330c'

* commit '89ee578b7053d27a50922f82feb94bf6054b330c':
Add initial gamepad support.
89ee578b7053d27a50922f82feb94bf6054b330c 14-Jul-2010 Jeff Brown <jeffbrown@google.com> am fd035829: Add initial gamepad support.

Merge commit 'fd03582995e0fce963dd0fa0669e3211b74c0dd7' into gingerbread-plus-aosp

* commit 'fd03582995e0fce963dd0fa0669e3211b74c0dd7':
Add initial gamepad support.
e5e285509fdba2b996006e610e0d2888450230f0 14-Jul-2010 Romain Guy <romainguy@google.com> Merge "Enable 32-bits only assets."
594f4065141a53427cad6f4fc89219d2f27e1a7d 14-Jul-2010 Romain Guy <romainguy@google.com> Enable 32-bits only assets.

Go away dithering!

Change-Id: Iee5ee2e9430606e732d9b0abb3adc9f68275bd6d
wui/TextureCache.cpp
fd03582995e0fce963dd0fa0669e3211b74c0dd7 01-Jul-2010 Jeff Brown <jeffbrown@google.com> Add initial gamepad support.

Change-Id: I0439648f6eb5405f200e4223c915eb3a418b32b9
i/Android.mk
i/EventHub.cpp
i/Input.cpp
i/InputDevice.cpp
i/InputDispatcher.cpp
i/InputReader.cpp
i/tests/InputPublisherAndConsumer_test.cpp
tils/Android.mk
f5574e0f8ca5624c822737eae497e27b60e33662 14-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> am 706623dd: am c0a7e690: Add Parcel::readExceptionCode() and Parcel::writeNoException()

Merge commit '706623ddb8314850c0551f0b66e24b5f0bd28620'

* commit '706623ddb8314850c0551f0b66e24b5f0bd28620':
Add Parcel::readExceptionCode() and Parcel::writeNoException()
706623ddb8314850c0551f0b66e24b5f0bd28620 14-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> am c0a7e690: Add Parcel::readExceptionCode() and Parcel::writeNoException()

Merge commit 'c0a7e690bfd32dd897ceccd04dd0fa6bf6e9cee6' into gingerbread-plus-aosp

* commit 'c0a7e690bfd32dd897ceccd04dd0fa6bf6e9cee6':
Add Parcel::readExceptionCode() and Parcel::writeNoException()
c0a7e690bfd32dd897ceccd04dd0fa6bf6e9cee6 14-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> Add Parcel::readExceptionCode() and Parcel::writeNoException()

Add native Parcel methods analogous to the Java versions.

Currently, these don't do much, but upcoming StrictMode work changes
the RPC calling conventions in some cases, so it's important that
everybody uses these consistently, rather than having a lot of code
trying to parse RPC responses out of Parcels themselves.

As a summary, the current convention that Java Binder services use is
to prepend the reply Parcel with an int32 signaling the exception
status:

0: no exception
-1: Security exception
-2: Bad Parcelable
-3: ...
-4: ...
-5: ...

... followed by Parceled String if the exception code is non-zero.

With an upcoming change, it'll be the case that a response Parcel can,
non-exceptionally return rich data in the header, and also return data
to the caller. The important thing to note in this new case is that
the first int32 in the reply parcel *will not be zero*, so anybody
manually checking for it with reply.readInt32() will get false
negative failures.

Short summary: If you're calling into a Java service and manually
checking the exception status with reply.readInt32(), change it to
reply.readExceptionCode().

Change-Id: I23f9a0e53a8cfbbd9759242cfde16723641afe04
inder/IPermissionController.cpp
inder/IServiceManager.cpp
inder/Parcel.cpp
250fd1144f238ce40ba7c40c7ad4d77c20a44695 13-Jul-2010 Alex Sakhartchouk <alexst@google.com> Merge "Work on synchronizing a3d created files and java layer. Adding culling to ProgramRaster"
405278954f3a328026e3037c6d9b4ba8d200da45 13-Jul-2010 Eric Laurent <elaurent@google.com> am 66fa2b44: am 8e886be4: Merge "Modifications in audio effect engine state management." into gingerbread

Merge commit '66fa2b44cadf8694cc1b7e2aae1f8abaff4fc547'

* commit '66fa2b44cadf8694cc1b7e2aae1f8abaff4fc547':
Modifications in audio effect engine state management.
66fa2b44cadf8694cc1b7e2aae1f8abaff4fc547 13-Jul-2010 Eric Laurent <elaurent@google.com> am 8e886be4: Merge "Modifications in audio effect engine state management." into gingerbread

Merge commit '8e886be413570fab6c623930a5775dd36a6d11e1' into gingerbread-plus-aosp

* commit '8e886be413570fab6c623930a5775dd36a6d11e1':
Modifications in audio effect engine state management.
7d850f23c857fe0c0deec9b9ea593d3029665a16 09-Jul-2010 Eric Laurent <elaurent@google.com> Modifications in audio effect engine state management.

- Separate the updating of effect engine state from the process call in EffectModule so that the state
of all effects in the same effect chain is updated simultaneusly before all process functions are called.
- Added a mechanism for the effect engine to continue being called for processing after receiving the disable
commands untils it considers that the framework can stop calling the process function without causing
a glitch or loosing some effect tail.
- Updated test reverb and equalizer to support this new feature

Change-Id: Icb56ae2c84c076d4dbad6cf733b1a62f823febe7
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
a979474f15b454c8e2963f239a3770e200bb227c 13-Jul-2010 Romain Guy <romainguy@google.com> Cleanup: remove unnecessary parameters.

Change-Id: I5956ef1db6be28a01369387aaeeb65a94656c48c
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
92429d9266edf63cf632c132c5936f0e31850988 13-Jul-2010 Romain Guy <romainguy@google.com> Fix premultiplied alpha.

Change-Id: I08da422c5350503e1f4f27b9890f15a813d0c6c7
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
6926c72e25b8dec3dd4b84af0819fa1937ae7296 13-Jul-2010 Romain Guy <romainguy@google.com> Correctly support pre-multiplied alpha, optimizations, more stuff.

Add support for the following drawing functions:
- drawBitmap(int[]...)
- drawPaint()

Optimizes shader state changes by enabling/disabling attribute arrays
only when needed.

Adds quick rejects when drawing trivial shapes to avoid unnecessary
OpenGL operations.

Change-Id: Ic2c6c2ed1523d08a63a8c95601a1ec40b6c7fbc9
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Program.cpp
wui/Program.h
80a4c2cd34aedb4f1a2e5e7d1ac26a9aeebe41ae 13-Jul-2010 Alex Sakhartchouk <alexst@google.com> Work on synchronizing a3d created files and java layer.
Adding culling to ProgramRaster

Change-Id: I58ccc82d37edc9539289d5eba44ea0e720874af5
s/RenderScript.h
s/java/ModelViewer/res/raw/robot.a3d
s/rs.spec
s/rsAllocation.cpp
s/rsFont.cpp
s/rsMesh.cpp
s/rsProgramRaster.cpp
s/rsProgramRaster.h
260e102162322958cf17dbd895cd6bd30dc87e32 12-Jul-2010 Romain Guy <romainguy@google.com> Optimize shader binding changes.

This change also cleans up the internal API a little bit by using mat4
everywhere instead of float[16] (for the ortho matrix for instance.)

Change-Id: I35924c7dc17bad17f30307118d5ed437c2ed37e0
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Program.cpp
wui/Program.h
wui/Snapshot.h
d12315ae7ee06902f4b7470259ce33076b6f542c 12-Jul-2010 Romain Guy <romainguy@google.com> Merge "Remove math from the vertex shader."
f27c6c100113dafdba7c4ee849a76d126079270f 12-Jul-2010 Kenny Root <kroot@google.com> am ceb8465e: am 87bb1857: Merge changes I2337051b,I19b426cb into gingerbread

Merge commit 'ceb8465e974ba5fa971ffe1b5b74e94a1bd53f97'

* commit 'ceb8465e974ba5fa971ffe1b5b74e94a1bd53f97':
Tweak ObbFile class
Allow things that can install packages to set Obb paths
ceb8465e974ba5fa971ffe1b5b74e94a1bd53f97 12-Jul-2010 Kenny Root <kroot@google.com> am 87bb1857: Merge changes I2337051b,I19b426cb into gingerbread

Merge commit '87bb18579a5eea2e24af78af8c0f54f5455ce8fd' into gingerbread-plus-aosp

* commit '87bb18579a5eea2e24af78af8c0f54f5455ce8fd':
Tweak ObbFile class
Allow things that can install packages to set Obb paths
87bb18579a5eea2e24af78af8c0f54f5455ce8fd 12-Jul-2010 Kenny Root <kroot@google.com> Merge changes I2337051b,I19b426cb into gingerbread

* changes:
Tweak ObbFile class
Allow things that can install packages to set Obb paths
87315aa1f0b64efcef416628215be89851cc4736 12-Jul-2010 Kenny Root <kroot@google.com> Tweak ObbFile class

* Move error messages around to clarify the errors.

* Add extra error check when reading a file.

* Seek to the end of a file when writing the signature so the users of
the API don't have to remember to do it.

Change-Id: I2337051b9f9fa8147c5900237deec790dcd92436
tils/ObbFile.cpp
tils/tests/ObbFile_test.cpp
0b9db91c3dc8007b47c8fd4fb9dd85be97201a88 10-Jul-2010 Romain Guy <romainguy@google.com> Remove math from the vertex shader.

Change-Id: I02847a60a8734bf8b3d29ec12e76297795095e38
wui/OpenGLRenderer.cpp
wui/Program.cpp
wui/Program.h
wui/shaders/drawColor.vert
wui/shaders/drawTexture.vert
8445ca6c3ba9b7cee6d20f5919e3b3ba8e6b8c96 10-Jul-2010 Dianne Hackborn <hackbod@google.com> am b14f325a: am 289b9b62: Add ANativeWindow API for directly drawing to the surface bits.

Merge commit 'b14f325a0118ffce286155caaabaae149653462c'

* commit 'b14f325a0118ffce286155caaabaae149653462c':
Add ANativeWindow API for directly drawing to the surface bits.
b14f325a0118ffce286155caaabaae149653462c 10-Jul-2010 Dianne Hackborn <hackbod@google.com> am 289b9b62: Add ANativeWindow API for directly drawing to the surface bits.

Merge commit '289b9b62372ef52a06113b83dfb870e2c2fb325a' into gingerbread-plus-aosp

* commit '289b9b62372ef52a06113b83dfb870e2c2fb325a':
Add ANativeWindow API for directly drawing to the surface bits.
289b9b62372ef52a06113b83dfb870e2c2fb325a 09-Jul-2010 Dianne Hackborn <hackbod@google.com> Add ANativeWindow API for directly drawing to the surface bits.

Also other cleanup and fixes:

- We now properly set the default window format to 565.
- New APIs to set the window format and flags from native code.
- Tweaked glue for simpler handling of the "destroy" message.
- Um, other stuff.

Change-Id: Id7790a21a2fa9a19b91854d225324a7c1e7c6ade
i/Rect.cpp
4670268f47d38e10c76a9b6bdd9b22f423cd33ab 10-Jul-2010 Romain Guy <romainguy@google.com> Merge "Fix alpha blending and improve fragment shaders performance."
16202fc9745e9b11db089ebc8f40119d13732016 10-Jul-2010 Romain Guy <romainguy@google.com> Fix alpha blending and improve fragment shaders performance.

Change-Id: Ib74f6941d25ca6f6a41708e541174eaa7e8d9bc2
wui/OpenGLRenderer.cpp
wui/Program.cpp
wui/shaders/drawColor.frag
wui/shaders/drawColor.vert
wui/shaders/drawTexture.frag
wui/shaders/drawTexture.vert
53a93d5e917038504ba4422e4ad346ae37131365 10-Jul-2010 Jason Sams <rjsams@android.com> Remove points from fixed function.
Add basic GL performance test.

Change-Id: I421a41b6683b2c5f70045cdd0f610a6939105fee
s/rs.spec
s/rsProgramRaster.cpp
s/rsProgramRaster.h
s/rsProgramVertex.cpp
s/rsShaderCache.cpp
s/rsVertexArray.cpp
s/scriptc/rs_math.rsh
fb5e23c327cd5f8f93d1eaa7c10f34d6fd3efb6c 09-Jul-2010 Romain Guy <romainguy@google.com> Refactoring to move vertex computing to the Patch class.

This change is mostly cleanup to keep less code in OpenGLRenderer.

Change-Id: I954375143b2943829457ab470423729b60b844f5
wui/Android.mk
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Patch.cpp
wui/Patch.h
82ba814ca0dea659be2cc6523bc0137679d961ce 09-Jul-2010 Romain Guy <romainguy@google.com> Optimize blending state changes.

Change-Id: I7c22a8aecccb8b5abfcf7243f049a4ef3cf3979a
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Vertex.h
831e550b49f0edb111b035245353c1ea323ab7c9 09-Jul-2010 Romain Guy <romainguy@google.com> Merge "Draw n-patches using OpenGL."
f7f93556c8fcc640ab5adef79d021a80a72a645a 09-Jul-2010 Romain Guy <romainguy@google.com> Draw n-patches using OpenGL.

Currently only tested with title bars and buttons.

Change-Id: I8263a9281898dc0e943b1b8412827fe55639b9d6
wui/Android.mk
wui/Layer.h
wui/LayerCache.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Patch.h
wui/PatchCache.cpp
wui/PatchCache.h
wui/Vertex.h
d8a6271bb1da4ee2a8ae126b532f1b5f302decb8 09-Jul-2010 Dianne Hackborn <hackbod@google.com> am 49159f07: am 74bf59b4: Merge "Add new glue code for writing native apps." into gingerbread

Merge commit '49159f0748c704e53a7bd754f26113d9ab844a97'

* commit '49159f0748c704e53a7bd754f26113d9ab844a97':
Add new glue code for writing native apps.
28e230352b24b190d6750aa38a79b69e2fada067 09-Jul-2010 Kenny Root <kroot@google.com> am d481cdd4: am c9535de8: Merge "Add OBB file helper class" into gingerbread

Merge commit 'd481cdd4c0305f8afd857fe3ec3fbf189b744370'

* commit 'd481cdd4c0305f8afd857fe3ec3fbf189b744370':
Add OBB file helper class
1a33274d28a3174b9062ae0dcce77bf1d68cd463 09-Jul-2010 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of 167449e5 to master

Change-Id: Ib448e69a726eb45b5c9099d2574e40b8345eee67
49159f0748c704e53a7bd754f26113d9ab844a97 08-Jul-2010 Dianne Hackborn <hackbod@google.com> am 74bf59b4: Merge "Add new glue code for writing native apps." into gingerbread

Merge commit '74bf59b450daf9e7e6bf234f01db164099edbfd5' into gingerbread-plus-aosp

* commit '74bf59b450daf9e7e6bf234f01db164099edbfd5':
Add new glue code for writing native apps.
818505aa3035c57b6b419343814135fdbb501bc2 08-Jul-2010 Romain Guy <romainguy@google.com> Merge "Create FBOs in LayerCache."
f18fd99b5c182329cd8936a9611f0103d8ece44a 08-Jul-2010 Romain Guy <romainguy@google.com> Create FBOs in LayerCache.

This moves a bit of code away from OpenGLRenderer and matches
what happens with the TextureCache.

Change-Id: I3c67f54f83d7240770daa015861c0e75a1dd8c42
wui/LayerCache.cpp
wui/LayerCache.h
wui/OpenGLRenderer.cpp
85448bbecd4e0909eecfab15b7c3605f114d0427 07-Jul-2010 Dianne Hackborn <hackbod@google.com> Add new glue code for writing native apps.

This factors out the boiler-plate code from the sample
app to a common glue code that can be used for everyone
writing this style of app: a dedicated app thread that
takes care of waiting for events and processing them.

As part of doing this, ALooper has a new facility to allow
registration of fds that cause ALooper_pollOnce() to return
the fd that has data, allowing the app to drive the loop
without callbacks. Hopefully this makes some people feel better. :)

Also do some other cleanup of the ALooper API, plus some
actual documentation.

Change-Id: Ic53bd56bdf627e3ba28a3c093faa06a92be522b8
i/InputDispatcher.cpp
tils/PollLoop.cpp
tils/tests/PollLoop_test.cpp
98449546fa33f420e2aef7d0d1c1afb538af4069 08-Jul-2010 Eric Laurent <elaurent@google.com> am b91881fd: am dacabf97: Merge "Added Visualizer effect." into gingerbread

Merge commit 'b91881fdd1608cc922f105ec552b5505da1fecb9'

* commit 'b91881fdd1608cc922f105ec552b5505da1fecb9':
Added Visualizer effect.
9c959e77f19365157620a8bdb3684f74c7bf044a 08-Jul-2010 Jason Sams <rjsams@android.com> Merge "Fix image processing resource problem for non high-density devices. Protect include file."
d481cdd4c0305f8afd857fe3ec3fbf189b744370 08-Jul-2010 Kenny Root <kroot@google.com> am c9535de8: Merge "Add OBB file helper class" into gingerbread

Merge commit 'c9535de8e398d766c95144f9a831f34b2cecfd91' into gingerbread-plus-aosp

* commit 'c9535de8e398d766c95144f9a831f34b2cecfd91':
Add OBB file helper class
c9535de8e398d766c95144f9a831f34b2cecfd91 08-Jul-2010 Kenny Root <kroot@google.com> Merge "Add OBB file helper class" into gingerbread
deba785f122a47915756ffd991f5540d952cf937 08-Jul-2010 Romain Guy <romainguy@google.com> Add support to draw 9patches in OpenGL.

This change only adds the necessary API and stubs. The implementation
will be added in another change.

Change-Id: Ie50b8aff5868e78796cee331df15bdbf990d2ea1
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
167449e5f810a49741133de375eea1006f7218c0 08-Jul-2010 Chris Tate <ctate@android.com> am b17f4dcf: Merge "More native input dispatch work." into gingerbread

Merge commit 'b17f4dcfb3edba25bd8c30e60449b9bbcd600a57' into gingerbread-plus-aosp

* commit 'b17f4dcfb3edba25bd8c30e60449b9bbcd600a57':
More native input dispatch work.
b17f4dcfb3edba25bd8c30e60449b9bbcd600a57 08-Jul-2010 Chris Tate <ctate@android.com> Merge "More native input dispatch work." into gingerbread
6c8c2f22e9c7efc5b8fdb3d02a4c19be7a1728ec 07-Jul-2010 Jason Sams <rjsams@android.com> Fix image processing resource problem for non high-density devices.
Protect include file.

Change-Id: I5c6721033b37e35261b9fe424d74d3aef0620791
s/java/ImageProcessing/res/drawable/data.jpg
s/scriptc/rs_math.rsh
b91881fdd1608cc922f105ec552b5505da1fecb9 08-Jul-2010 Eric Laurent <elaurent@google.com> am dacabf97: Merge "Added Visualizer effect." into gingerbread

Merge commit 'dacabf97c609a040ada857a7da6c560097448ae3' into gingerbread-plus-aosp

* commit 'dacabf97c609a040ada857a7da6c560097448ae3':
Added Visualizer effect.
dacabf97c609a040ada857a7da6c560097448ae3 08-Jul-2010 Eric Laurent <elaurent@google.com> Merge "Added Visualizer effect." into gingerbread
6c81893c626499e58c8eeb20d6c35ec4e1ce808b 08-Jul-2010 Romain Guy <romainguy@google.com> Simpler way to deal with the FBO multi-cache.

This change removes the need for the SortedList and instead just
add a generated id to each FBO stored in the cache. This is an
artificial way to store several FBOs with the same dimensions.

Change-Id: I9638364e9bdc0f2391261937a0c86096f20505bf
wui/Android.mk
wui/GenerationCache.h
wui/Layer.h
wui/LayerCache.cpp
wui/LayerCache.h
wui/OpenGLRenderer.cpp
wui/SortedList.cpp
wui/SortedList.h
wui/TextureCache.cpp
wui/TextureCache.h
5f0c6a483900f3989f4d2a8f913cf5b6a9777d03 07-Jul-2010 Romain Guy <romainguy@google.com> Optimize FBO cache.

This change introduces a new generational cache called GenerationMultiCache
that can store several values with the same key. This can be used to use
multiple layers of the same size at the same time, without recreating them
over and over again.

Change-Id: I425466a20908b862c5f464a0f9e582ec18cbd7ac
wui/Android.mk
wui/GenerationCache.h
wui/LayerCache.cpp
wui/LayerCache.h
wui/OpenGLRenderer.cpp
wui/SortedList.cpp
wui/SortedList.h
wui/TextureCache.cpp
wui/TextureCache.h
df9b81ced437b11f8a3fcf4ba3ea6af703d121e2 02-Jul-2010 Eric Laurent <elaurent@google.com> Added Visualizer effect.

The visualizer enables application to retrieve part of the currently playing audio for visualization purpose.
It is not an audio recording interface and only returns partial and low quality audio content as a waveform or
a frequency representation (FFT).

Removed temporary hack made in MediaPlayer for animated wall papers based on audio visualization (snoop() method.

This commit also includes a change in AudioEffect class:
- the enable()/disable() methods have been replaced bya more standard setEnabled() method.
- some fixes in javadoc

Change-Id: Id092a1340e9e38dae68646ade7be054e3a36980e
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
7cee34a051eb0087322c8b965e498f88b1aa52d3 01-Jun-2010 Kenny Root <kroot@google.com> Add OBB file helper class

ObbFile is a binary blob that will be used in packaging large files
with smaller APKs.

Change-Id: Ib1594346cfa2f49113de6565af77c24efbd89d63
tils/Android.mk
tils/ObbFile.cpp
tils/tests/Android.mk
tils/tests/ObbFile_test.cpp
97250d5c4ab5c36dc4f7cf1d9d48157ed934615d 07-Jul-2010 Dianne Hackborn <hackbod@google.com> am e24901d3: am 68267415: Add new native Looper API.

Merge commit 'e24901d3adb28fff72821d4e8e2ccc25b2184550'

* commit 'e24901d3adb28fff72821d4e8e2ccc25b2184550':
Add new native Looper API.
e24901d3adb28fff72821d4e8e2ccc25b2184550 07-Jul-2010 Dianne Hackborn <hackbod@google.com> am 68267415: Add new native Looper API.

Merge commit '682674154e3fe88f6061245145f934f25f1a2eb8' into gingerbread-plus-aosp

* commit '682674154e3fe88f6061245145f934f25f1a2eb8':
Add new native Looper API.
8cb6240125068da07cbcc10a210014f600a953da 06-Jul-2010 Romain Guy <romainguy@android.com> Merge "Add a layer (FBO) cache."
dda570201ac851dd85af3861f7e575721d3345da 06-Jul-2010 Romain Guy <romainguy@android.com> Add a layer (FBO) cache.

The cache is used to draw layers so that a new
texture does not have to be recreated every time
a call to saveLayer() happens.

The FBO cache used a KeyedVector, which is a bad
idea. The cache should be able to store several
FBOs of the same size (this happens a lot during
scrolling with fading edges for instance.) This
will be changed in a future CL.

Change-Id: Ic316189e625f0dbcf0d273a71cc981a433d48726
wui/Android.mk
wui/GenerationCache.h
wui/Layer.h
wui/LayerCache.cpp
wui/LayerCache.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Snapshot.h
wui/TextureCache.cpp
wui/TextureCache.h
00fa7bdd69f0868fd17ea7c881c771d785b2fbbd 03-Jul-2010 Jeff Brown <jeffbrown@google.com> More native input dispatch work.

Removed old input dispatch code.
Refactored the policy callbacks.
Pushed a tiny bit of the power manager state down to native.
Fixed long press on MENU.
Made the virtual key detection and cancelation a bit more precise.

Change-Id: I5d8c1062f7ea0ab3b54c6fadb058c4d5f5a9e02e
i/InputDispatcher.cpp
i/InputReader.cpp
682674154e3fe88f6061245145f934f25f1a2eb8 03-Jul-2010 Dianne Hackborn <hackbod@google.com> Add new native Looper API.

This allows us to avoid exposing the file descriptor of
the event queue; instead, you attach an event queue to
a looper. This will also should allow native apps to be
written without the need for a separate thread, by attaching
the event queue to the main thread's looper and scheduling
their own messages there.

Change-Id: I38489282635895ae2cbfacb88599c1b1cad9b239
tils/PollLoop.cpp
26657e73887de62ae7648c962c860ab1bf0abd38 03-Jul-2010 Jason Sams <rjsams@android.com> Merge "Improve multitouch support so pointers other than 0 can change colors."
c70e5b79884a163e741b5dd756d41c0f5e9b2fde 03-Jul-2010 Jason Sams <rjsams@android.com> Merge "Cleanup pass on the mesh api change. Removed all the simple mesh related calls and temporary objects."
8287a9bc5e184f1bbb91866591c4358a3a9eb168 02-Jul-2010 Alex Sakhartchouk <alexst@google.com> Cleanup pass on the mesh api change.
Removed all the simple mesh related calls and temporary objects.

Change-Id: Ic64a72a894e0314f216f10e1cfc0d45b17e2e182
s/ScriptC_Modelviewer.java
s/java/ModelViewer/res/raw/robot.a3d
s/rs.spec
s/rsMesh.cpp
s/rsMesh.h
s/rsScriptC_LibGL.cpp
s/scriptc/rs_graphics.rsh
7d139ba2c331f11e9b485753cc727a0ff202f2a4 02-Jul-2010 Romain Guy <romainguy@android.com> Remove extra leftover logs and use uint32_t instead of unsigned int.

Change-Id: I944f82fe3255de38dc04048cc8bd861f578f01a7
wui/GenerationCache.h
wui/OpenGLRenderer.cpp
wui/Texture.h
wui/TextureCache.cpp
wui/TextureCache.h
f601ce2c1455cbfee3289309d20e55172df71bf6 02-Jul-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Ifec16490ea2170728cb6ccb18d2e74fcb3478db6
d73ddd2c9d459e363c07a8f5e47995b52b4ae049 02-Jul-2010 Mathias Agopian <mathias@google.com> am 377e2352: am 7f8edbd9: Merge "remove unused YUV formats" into gingerbread

Merge commit '377e2352574c3cad1f64d222974afd93e821cff1'

* commit '377e2352574c3cad1f64d222974afd93e821cff1':
remove unused YUV formats
61c55c49073d4b10ca4dfdbb4e86684d11ac9c1c 02-Jul-2010 Mathias Agopian <mathias@google.com> remove unused YUV formats

Change-Id: Ie84616f842c7e0329d68e67e65a65d510558004b
urfaceflinger/TextureManager.cpp
i/PixelFormat.cpp
5468cab7fbe99bccc29bb61baa7f0e96be85062f 02-Jul-2010 Romain Guy <romainguy@google.com> Merge "Track the size in memory of the texture cache."
121e2242565d5f09ad83a2d33ecd2225838802c5 02-Jul-2010 Romain Guy <romainguy@google.com> Track the size in memory of the texture cache.

The texture cache was previously checking the number of stored textures. This was
not very useful as this could easily lead to an abuse of memory. The new cache
instead tracks the total size occupied in RAM by the cached textures. When a new
texture is generated, older textures are kicked out as needed.

Change-Id: Ib27142f4a018d5bf84774c1fb6f45a67a85f20bc
wui/GenerationCache.h
wui/OpenGLRenderer.cpp
wui/TextureCache.cpp
wui/TextureCache.h
f60cf818896f2eef579c11f07bfdb9727be287a1 02-Jul-2010 Jason Sams <rjsams@android.com> Improve multitouch support so pointers other than 0 can change colors.

Change-Id: I4f9f71f70306cc4a3b11906ae47a5fa2e305fc3f
s/java/Fountain/src/com/android/fountain/FountainView.java
164aaedf7f24827c3da84acc733325ae985930d6 02-Jul-2010 Alex Sakhartchouk <alexst@google.com> Start of mesh API cleanup.
Switched all native code to go through Mesh class.
Removed SimpleMesh
Added java Mesh class
Will need to port all existing code to use java Mesh, then remove java SimpleMesh.

Change-Id: Idb9c03d0b06b4ef87db28dffcffa1881d39120e5
s/Android.mk
s/RenderScript.h
s/RenderScriptEnv.h
s/java/Fountain/res/raw/fountain.rs
s/java/Fountain/res/raw/fountain_bc.bc
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/Fountain/src/com/android/fountain/ScriptC_Fountain.java
s/java/ModelViewer/res/raw/modelviewer.rs
s/java/ModelViewer/res/raw/modelviewer_bc.bc
s/java/ModelViewer/res/raw/robot.a3d
s/java/ModelViewer/src/com/android/modelviewer/ModelViewerRS.java
s/java/ModelViewer/src/com/android/modelviewer/ScriptC_Modelviewer.java
s/rs.spec
s/rsContext.h
s/rsContextHostStub.h
s/rsFileA3D.cpp
s/rsMesh.cpp
s/rsMesh.h
s/rsScriptC_LibGL.cpp
s/rsSimpleMesh.cpp
s/rsSimpleMesh.h
s/scriptc/rs_graphics.rsh
3cd310f18dd5e8dc451583319c67270bac4e4b4f 02-Jul-2010 Jason Sams <rjsams@android.com> Merge "Update fountain with multitouch support."
f86ef57f8bcd8ba43ce222ec6a8b4f67d3600640 01-Jul-2010 Romain Guy <romainguy@google.com> Don't use full screen FBOs, this dramatically increase performance.

The next step will be to add an FBO cache to avoid churning memory on every
frame we draw. This change also adds support for drawBitmap(Bitmap, Matrix, Paint).

Change-Id: I7825cdcf0cad9bffe6219e05d8328a53d4a6e583
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Snapshot.h
60b0c1dada455de304834a6d62ec0231da4c7b6c 01-Jul-2010 Jason Sams <rjsams@android.com> Update fountain with multitouch support.

Change-Id: I510f3f2d604f4ecacd7e18d8c6eddd827f458c70
s/java/Fountain/res/raw/fountain.rs
s/java/Fountain/res/raw/fountain_bc.bc
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/Fountain/src/com/android/fountain/FountainView.java
s/java/Fountain/src/com/android/fountain/ScriptC_Fountain.java
8ba548f81d1ab5f1750cbf86098c4a14e0b8bead 01-Jul-2010 Romain Guy <romainguy@google.com> Add implementation for drawBitmap(Bitmap, Rect, Rect, Paint)

Change-Id: I10904d2325a5431d15801aebcec1048715678e8c
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/TextureCache.cpp
e07f6eeb3af2defe99fbd63a73b8e636139edd1a 01-Jul-2010 Romain Guy <romainguy@google.com> Merge "Add implementation for drawBitmap()."
c1396e93b6a5286a5183c00c781b62e940a12c1f 01-Jul-2010 Romain Guy <romainguy@google.com> Add implementation for drawBitmap().

Change-Id: Iada9325f3c5642b61c2e0c4cd80bcfbc92cb491e
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/TextureCache.cpp
50331a1e2f1f36e78886832a694ca8fbc8d0cafc 01-Jul-2010 Alex Sakhartchouk <alexst@google.com> Merge "Fixing freetype init/uninit code. Removing debug output from stream."
b6b34891fa7f76c99f5e9a3096576ada86c99f1e 01-Jul-2010 Alex Sakhartchouk <alexst@google.com> Fixing freetype init/uninit code.
Removing debug output from stream.

Change-Id: I401232e77cc011953e5ccc59069b22ec59958214
s/rsFont.cpp
s/rsStream.cpp
efcd77407b321498a43ca380c8f67b84eb5a2d6e 01-Jul-2010 Dianne Hackborn <hackbod@google.com> am 177c405a: am c6e1d880: Merge "Introduce official public NativeWindow type." into gingerbread

Merge commit '177c405a242e811b1010bd8382b5807ab8df31a8'

* commit '177c405a242e811b1010bd8382b5807ab8df31a8':
Introduce official public NativeWindow type.
01959f65520a69537a2d93f4e543b03705694ad9 01-Jul-2010 Romain Guy <romainguy@google.com> Merge "Remove unnecessary return and add bitmap generation ID tracking."
1dc623e3b32e9ad605bb7078713499a324c16775 01-Jul-2010 Mathias Agopian <mathias@google.com> am e341a0b5: am 30fe6fa0: Merge "fix live wallpapers on Droid" into gingerbread

Merge commit 'e341a0b5e9a1e30a020970a69c58c34f902ea06f'

* commit 'e341a0b5e9a1e30a020970a69c58c34f902ea06f':
fix live wallpapers on Droid
fe8809471a40cac8acc984adfa51c39e13e83947 01-Jul-2010 Romain Guy <romainguy@google.com> Remove unnecessary return and add bitmap generation ID tracking.

Change-Id: Icf5e0635e789f5ea53268c22fad51cf733b5b1a6
wui/Texture.h
wui/TextureCache.cpp
wui/TextureCache.h
c6e1d88022db800773401c16803e1ab27fd01a7e 01-Jul-2010 Dianne Hackborn <hackbod@google.com> Merge "Introduce official public NativeWindow type." into gingerbread
30fe6fa07a9b9c6e7498198608125add8eb40744 01-Jul-2010 Mathias Agopian <mathias@google.com> Merge "fix live wallpapers on Droid" into gingerbread
364703c6fa4aa1a7d2ef5b0c048ea2a0d57a4c40 01-Jul-2010 Romain Guy <romainguy@google.com> Fix the build.

Change-Id: I08bd6daf25351daca3ae552e1cfcfce85eefa73b
wui/GenerationCache.h
wui/TextureCache.cpp
wui/TextureCache.h
68e9a49aeb0b07d0d99c0a05771348bcd460a703 01-Jul-2010 Romain Guy <romainguy@google.com> Merge "Add hooks for drawBitmap()."
5840b7c1193e0deb28dd4e2f622eaa62cb0483a2 01-Jul-2010 Jeff Brown <jeffbrown@google.com> am 0c2df984: am d8ae2885: Merge "Fix injection of specially intercepted keys like HOME." into gingerbread

Merge commit '0c2df98425c8fa4ce092eebea80ae197547f6a86'

* commit '0c2df98425c8fa4ce092eebea80ae197547f6a86':
Fix injection of specially intercepted keys like HOME.
25a98b8e21f7840ae582ce0a4cde21694c4c94ec 01-Jul-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 7f6c6e8f to master

Change-Id: Id9dddb78c51f16ff8c4b60339421c94fde506db2
4cfb3a69d2906fc2539dd30508aa6ba8d39065a9 01-Jul-2010 Mathias Agopian <mathias@google.com> fix live wallpapers on Droid

On omap3 h/w we force opaque formats to RGB_565 instead of RGBX_8888
because the GL driver doesn't support it. RGBX_8888 is always remapped
to RGBA_8888.

Change-Id: I0bfabeb98c8d3a399079e6797cf2a0ee95915324
urfaceflinger/Android.mk
urfaceflinger/SurfaceFlinger.cpp
i/GraphicBuffer.cpp
8b49bd1a2f8117e1c22884f0150e72cbcf838f32 30-Jun-2010 Dianne Hackborn <hackbod@google.com> Introduce official public NativeWindow type.

Not yet hooked up to anything in the NDK, but requires renaming
the existing android_native_window_t type everywhere.

Change-Id: Iffee6ea39c93b8b34e20fb69e4d2c7c837e5ea2e
s/rs.spec
s/rsContext.cpp
s/rsContext.h
urfaceflinger_client/Surface.cpp
i/FramebufferNativeWindow.cpp
ce0537b80087a6225273040a987414b1dd081aa0 30-Jun-2010 Romain Guy <romainguy@google.com> Add hooks for drawBitmap().

Change-Id: I58e962c3a8b2bc75c2605fe369ad3002579d86e0

Add texture cache.

Change-Id: I1c0e5581d228869e114438258a1014e33e024ad7
wui/Android.mk
wui/GenerationCache.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Texture.h
wui/TextureCache.cpp
wui/TextureCache.h
d0097871828bb7d5d6eec06cadd92c2e3358849b 30-Jun-2010 Jeff Brown <jeffbrown@google.com> Fix injection of specially intercepted keys like HOME.

This change mainly unwinds a premature optimization in the
dispatch pipeline.
To test HOME injection, run 'adb shell input keyevent 3'.

Change-Id: I1c4b7377c205da7c898014b8b07fc6dc1d46e4dd
i/InputReader.cpp
071508d9f3d1c004cd9ef8d5329949e7a8a949c8 30-Jun-2010 Alex Sakhartchouk <alexst@google.com> Removing font initialization on startup

Change-Id: I6f28204c3d431955fbf0f2f74dde09012bba0a4d
s/rsFont.cpp
s/rsFont.h
e519b37f5ad8ef96c7a2ec6f1481e5a8e56f5fb9 30-Jun-2010 Jason Sams <rjsams@android.com> Fix an uninitialized pointer.

Change-Id: If66a502b6b23d00c4a2dd02fb46912f6dee2866b
s/rsVertexArray.cpp
3c80a4a044865bdf1289c7896baffa1c082d835c 30-Jun-2010 Dianne Hackborn <hackbod@google.com> Implement default key handling for native code.

The native code now maintains a list of all keys that may use
default handling. If the app finishes one of these keys
without handling it, the key will be passed back off to Java
for default treatment.

Change-Id: I6a842a0d728eeafa4de7142fae573f8c11099e18
i/Input.cpp
41254a8ddd4dd737969524eaca4afdda2392c023 30-Jun-2010 Chris Tate <ctate@android.com> am af4a2d1f: am ddcb543a: Merge "Fix native input dispatch in the emulator." into gingerbread

Merge commit 'af4a2d1f52c7d54408db341781399d2886de72c1'

* commit 'af4a2d1f52c7d54408db341781399d2886de72c1':
Fix native input dispatch in the emulator.
ddcb543ac8d9615ea78fbf8341949f54d86e6fbc 30-Jun-2010 Chris Tate <ctate@android.com> Merge "Fix native input dispatch in the emulator." into gingerbread
0b72e82c5f5d4ab709539c3490d6c7023f680dff 30-Jun-2010 Jeff Brown <jeffbrown@google.com> Fix native input dispatch in the emulator.

Set a default orientation of ROTATION_0.
Added some more careful checks based on whether we have valid
absolute axis information from the driver.
Reset key repeating during configuration changes since the keyboard
device may have been removed.

Change-Id: I685960828acffcb17595fc5683309e8064a76714
i/InputDispatcher.cpp
i/InputReader.cpp
e595a547fc9fd9924d59735f118458557069c645 30-Jun-2010 Mathias Agopian <mathias@google.com> am 33df868b: am 1eb442ee: Merge "remove a hack that was used only used on h/w we no longer support." into gingerbread

Merge commit '33df868bb35726d250c8a6d0ebd8c84749ffd51f'

* commit '33df868bb35726d250c8a6d0ebd8c84749ffd51f':
remove a hack that was used only used on h/w we no longer support.
1eb442eef737051bd2734d823fa4c12c17c1da36 30-Jun-2010 Mathias Agopian <mathias@google.com> Merge "remove a hack that was used only used on h/w we no longer support." into gingerbread
c19ffcba19f0d94552945105a7e29530b4806dd4 30-Jun-2010 Mathias Agopian <mathias@google.com> remove a hack that was used only used on h/w we no longer support.

this should fix the opal build.

Change-Id: I43d7633696fea5be6bc834293a832d22f6bdfc61
urfaceflinger/Android.mk
urfaceflinger/LayerDim.cpp
639061d9c29fb97646c083f719a26992a7d24d85 29-Jun-2010 Dianne Hackborn <hackbod@google.com> am b5f05d00: am 0934fbb6: Merge "Update native activity & event APIs to follow correct conventions." into gingerbread

Merge commit 'b5f05d0018d72531e40c2afadfee90e9bc0c8893'

* commit 'b5f05d0018d72531e40c2afadfee90e9bc0c8893':
Update native activity & event APIs to follow correct conventions.
2e9f93e8db509d5236229dc8540e0904c5dbb9f5 29-Jun-2010 Dianne Hackborn <hackbod@google.com> Update native activity & event APIs to follow correct conventions.

Change-Id: Ie64fb3a9c68bc9c117fa5621b75d1f609e304e0e
i/InputTransport.cpp
b23ef2937deb4c28b37902387f7f51a3fffdc1e6 29-Jun-2010 Mathias Agopian <mathias@google.com> am 5d31a452: am f0562b4b: Merge changes I93dfc4c8,I781953d6 into gingerbread

Merge commit '5d31a4523bf5d1d3e3b5aa51043a1551d7aa56d7'

* commit '5d31a4523bf5d1d3e3b5aa51043a1551d7aa56d7':
fix[2798925] Gingerbread TOT not booting
Revert "Revert "fix [2793164] Spam 2x/second with TOT master in SurfaceFlinger""
f0562b4b071b74a760ad9c9caa0e41687ae6f407 29-Jun-2010 Mathias Agopian <mathias@google.com> Merge changes I93dfc4c8,I781953d6 into gingerbread

* changes:
fix[2798925] Gingerbread TOT not booting
Revert "Revert "fix [2793164] Spam 2x/second with TOT master in SurfaceFlinger""
8fa4c811e6d0da82282f9db1a32706399ee538bc 29-Jun-2010 Mathias Agopian <mathias@google.com> fix[2798925] Gingerbread TOT not booting

Fixed a typo where checking against the wrong constant caused GL_TEXTURE_EXTERNAL_OES
to be used with a regular texture, which some GL driver will choke on.

Change-Id: I93dfc4c8fa674433bbb678eee31954e9a8d0cb4b
urfaceflinger/TextureManager.cpp
f40e4928b9d8e1da4166c76dbd3f86a6bd2d3f72 29-Jun-2010 Chris Tate <ctate@android.com> am 96725326: am 31e0ffe8: Merge "Native input event dispatching." into gingerbread

Merge commit '96725326149687168937cf62f75364cf9cc3e96b'

* commit '96725326149687168937cf62f75364cf9cc3e96b':
Native input event dispatching.
349703effce5acc53ed96f7ed8556131f0c65e18 22-Jun-2010 Jeff Brown <jeffbrown@google.com> Native input event dispatching.

Target identification is now fully native.
Fixed a couple of minor issues related to input injection.
Native input enabled by default, can be disabled by setting
WindowManagerPolicy.ENABLE_NATIVE_INPUT_DISPATCH to false.

Change-Id: I7edf66ed3e987cc9306ad4743ac57a116af452ff
i/InputDispatcher.cpp
i/InputManager.cpp
i/InputReader.cpp
i/InputTransport.cpp
d55a86120dd1e8ebcc6906c9ffd463f7460348da 29-Jun-2010 Romain Guy <romainguy@google.com> Add support for saveLayer().

saveLayer() is affected by the paint's alpha and xfermode.

Change-Id: I28693a9337052643adccdb4889a8f228d4e17903
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Snapshot.h
026c5e16704e817cac7d9c382914c947e34f87e0 29-Jun-2010 Romain Guy <romainguy@google.com> Implement support for PorterDuff's blending modes.

The blending modes are currently hooked up only when drawing filled rects but the
code is reusable for other primitives. This will allow implementation of saveLayer().
This method is required to support the fade effects used throughout the standard
Android UI.

Change-Id: I396023d123436f16cdafc606e358e4eb80c9df2c
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
6d85ea9c556be7b49302d2f35f4ebc99b4827366 22-Jun-2010 Jens Gulin <jens.gulin@sonyericsson.com> Keep track of remaining fd when devices are removed

Sometimes the wrong fd was accessed when the device was addressed
by device id.

The earlier implementation assumed that two arrays were in sync
but one of them was compacted when devices were removed. Instead
of that dependency the device now keeps track of it's file descriptor.

Change-Id: I2b8a793d76b89ab464ae830482b309fe86031671
i/EventHub.cpp
5cbbce535744b89df5ecea95de21ee3733298260 28-Jun-2010 Romain Guy <romainguy@android.com> Reduced the complexity of layers composition.

This change also refactors the code base a bit by moving classes out of
OpenGLRenderer into separate headers/implementations. This makes the code
more manageable.

This change also adds documentation for implementation methods. The
undocumented methods are simply Skia's Canvas methods.

Change-Id: I54c68b443580a0129251dddc1a7ac95813d5289e
wui/Android.mk
wui/Matrix.cpp
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Program.cpp
wui/Program.h
wui/Rect.h
wui/Snapshot.h
1d58b498de5eb3b53ca0c7ffd14b1c209833d297 26-Jun-2010 Romain Guy <romainguy@android.com> Merge "Add implementations for saveLayerAlpha() and textured rects."
bd6b79b40247aea7bfe13d0831c6c0472df6c636 26-Jun-2010 Romain Guy <romainguy@android.com> Add implementations for saveLayerAlpha() and textured rects.

Even though there's an implementation for textured rects, drawBitmap() is not
hooked up yet as it will require a good texture cache.

This method is implemented using FBOs. There's currently an issue either in the
driver or in the Canvas renderer that forces the FBO to be fullscreen, which is
extremely expensive and yields terrible performance.

Change-Id: I148419195e12d45653c60186938aa78c23a68e2c
wui/Matrix.cpp
wui/Matrix.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/shaders/drawColor.frag
wui/shaders/drawTexture.frag
wui/shaders/drawTexture.vert
781953d62dc17d761e39540f0480e5ca7451cdbe 26-Jun-2010 Mathias Agopian <mathias@google.com> Revert "Revert "fix [2793164] Spam 2x/second with TOT master in SurfaceFlinger""

This reverts commit 330dd304a471d260a73e342a240921c03c825f99.
urfaceflinger/Android.mk
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/DisplayHardware/DisplayHardware.h
urfaceflinger/GLExtensions.cpp
urfaceflinger/GLExtensions.h
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBlur.cpp
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
urfaceflinger/LayerDim.cpp
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/TextureManager.cpp
urfaceflinger/TextureManager.h
2afa22003d546c726e9f7b16ba89675f6acb028f 26-Jun-2010 Jason Sams <rjsams@android.com> Merge "Update fountain to use boolean rather than ints for true/false."
61d10a4e43aea5cc60b849ce3cee718792233146 26-Jun-2010 Jason Sams <rjsams@android.com> Update fountain to use boolean rather than ints for true/false.

Change-Id: I5e8334f53239c869caeaff45e611309cea5ba284
s/java/Fountain/res/raw/fountain.rs
s/java/Fountain/res/raw/fountain_bc.bc
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/Fountain/src/com/android/fountain/ScriptC_Fountain.java
s/java/Fountain/src/com/android/fountain/ScriptField_Point.java
cf3a2b79f3f1bbd249a147c1626a6da4a419c270 25-Jun-2010 Eric Laurent <elaurent@google.com> am cdf1357b: am 8e103da1: Merge "Various fixes and improvements in audio effects implementation" into gingerbread

Merge commit 'cdf1357b6e0152280dcd611b5f096db4887d8126'

* commit 'cdf1357b6e0152280dcd611b5f096db4887d8126':
Various fixes and improvements in audio effects implementation
7ae7ac48aa2b53453c9805075171ecd5bcafd7de 25-Jun-2010 Romain Guy <romainguy@android.com> Convert tabs to spaces.

Change-Id: I5d3ae48af79b19b6d293deff0521e4bb57d5114b
wui/Matrix.cpp
wui/Matrix.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Rect.h
wui/shaders/drawColor.vert
1b6333863962ba637be394cb0ba17a12ca62ce61 25-Jun-2010 Romain Guy <romainguy@android.com> Merge "Implement quickReject() and drawRect()."
c7d53494f1fbd9f9d74af89053ff9fdb1ccbac6c 25-Jun-2010 Romain Guy <romainguy@android.com> Implement quickReject() and drawRect().

The OpenGL ES 2.0 renderer can now draw colored rectangles. At least there's
something on screen now.

Change-Id: I80a13ccc1dd56784edf74f2670a364f30700234a
wui/Matrix.cpp
wui/Matrix.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/shaders/drawColor.vert
3d54108d98eaa2ced9063fdc661cfc9971330362 25-Jun-2010 Jason Sams <rjsams@android.com> Merge "Add support for non-VBO drawing in Meshes."
eeeaccc89971268a0cc63ac0ae0868b5c003c9a9 25-Jun-2010 Jason Sams <rjsams@android.com> Add support for non-VBO drawing in Meshes.

Change-Id: Ic4dd88cbe591091ebe740babe30213c15ad60cb3
s/java/Fountain/res/raw/fountain.rs
s/java/Fountain/res/raw/fountain_bc.bc
s/java/Fountain/src/com/android/fountain/ScriptC_Fountain.java
s/rsAllocation.h
s/rsSimpleMesh.cpp
s/rsVertexArray.cpp
s/rsVertexArray.h
53334cdb81bab4a4dfd0a41d2ef50709015a36c8 24-Jun-2010 Eric Laurent <elaurent@google.com> Various fixes and improvements in audio effects implementation

Effect API:
- Use different definitions for audio device, channels, formats... in AudioSystem and EffectApi:
Removed media/AudioCommon.h file created for initial version of EffectApi
- Indicate audio session and output ID to effect library when calling EffectCreate(). Session ID can be useful to optimize
the implementation of effect chains in the same audio session. Output ID can be used for effects implemented in audio hardware.
- Renamed EffectQueryNext() function to EffectQueryEffect() and changed operating mode:
now an index is passed for the queried effect instead of implicitly querying the next one.
- Added CPU load and memory usage indication in effects descriptor
- Added flags and commands to indicate changes in audio mode (ring tone, in call...) to effect engine
- Added flag to indicate hardware accelerated effect implementation.
- Renamed EffectFactoryApi.h to EffectsFactoryApi.h for consistency with EffectsFactory.c/h

Effect libraries:
- Reflected changes in Effect API
- Several fixes in reverb implementation
- Added build option TEST_EFFECT_LIBRARIES in makefile to prepare integration of actual effect library.
- Replaced pointer by integer identifier for library handle returned by effects factory

Audio effect framework:
- Added support for audio session -1 in preparation of output stage effects configuration.
- Reflected changes in Effect API
- Removed volume ramp up/down when effect is inserted/removed: this has to be taken care of by effect engines.
- Added some overflow verification on indexes used for deferred parameter updates via shared memory
- Added hardcoded CPU and memory limit check when creating a new effect instance

Change-Id: I43fee5182ee201384ea3479af6d0acb95092901d
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
5b7e333cf2f91c94e37dbb7024fa38da3db34619 25-Jun-2010 Alex Sakhartchouk <alexst@google.com> Merge "Adding freetype font rendering to renderscript."
fd23461c2b9e482262f5af6b96fcabf99fecca7f 25-Jun-2010 Bruce Beare <brucex.j.beare@intel.com> Fix missing NL

Change-Id: I323f0c01d2e9ad4c9f07cad24bf6b63edc28ad62
Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
s/rsNoise.cpp
c086d9403f08d4f7505eff4dfdd61e0f22d26abf 25-Jun-2010 Jeff Hamilton <jham@android.com> Revert "am 256fc043: am 081bc5c4: fix [2793164] Spam 2x/second with TOT master in SurfaceFlinger"

This reverts commit e02dec8c4cbab17d09983af1328308b8aa61ef85, reversing
changes made to 6d7a052fb04b251c517d0a9049b8d5d7408ce8c0.

Bug: 2798567
urfaceflinger/Android.mk
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/DisplayHardware/DisplayHardware.h
urfaceflinger/GLExtensions.cpp
urfaceflinger/GLExtensions.h
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBlur.cpp
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
urfaceflinger/LayerDim.cpp
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/TextureManager.cpp
urfaceflinger/TextureManager.h
e02dec8c4cbab17d09983af1328308b8aa61ef85 25-Jun-2010 Mathias Agopian <mathias@google.com> am 256fc043: am 081bc5c4: fix [2793164] Spam 2x/second with TOT master in SurfaceFlinger

Merge commit '256fc04394431cbd332e56747fdbfda4cb4c2e25'

* commit '256fc04394431cbd332e56747fdbfda4cb4c2e25':
fix [2793164] Spam 2x/second with TOT master in SurfaceFlinger
081bc5c47d8a980e6eafa70ddafcd89981586391 25-Jun-2010 Mathias Agopian <mathias@google.com> fix [2793164] Spam 2x/second with TOT master in SurfaceFlinger

Make sure to not use GL_TEXTURE_EXTERNAL when it's not supported
by the GL. The error was harmless, but annoying.

Change-Id: I571a9a9b05d35da51420950a6a6e95629067efd0
urfaceflinger/Android.mk
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/DisplayHardware/DisplayHardware.h
urfaceflinger/GLExtensions.cpp
urfaceflinger/GLExtensions.h
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBlur.cpp
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
urfaceflinger/LayerDim.cpp
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/TextureManager.cpp
urfaceflinger/TextureManager.h
ca9d544e386124c489484b4bd1d059646700bd5c 25-Jun-2010 Romain Guy <romainguy@google.com> Merge "Add colored rectangles implementation in OpenGLRenderer."
9d5316e3f56d138504565ff311145ac01621dff4 25-Jun-2010 Romain Guy <romainguy@google.com> Add colored rectangles implementation in OpenGLRenderer.

Drawing two rectangles one after the other discards the second one because of
Z buffering issues. This will be fixed in another changelist.

Change-Id: Ida1b3cde8a78e60cacc07e477abc44def527ff67
wui/Matrix.cpp
wui/Matrix.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Rect.h
wui/shaders/drawColor.frag
wui/shaders/drawColor.vert
6495128049975815e46081874b8ede8efddad2f4 25-Jun-2010 Jason Sams <rjsams@android.com> Fix return values for rsClamp.

Change-Id: Ic9980a2304797a74392c729d6b8ec9f477a906d6
s/scriptc/rs_core.rsh
9b949fce39f0f39ce9275b71d7c347210775e7a8 25-Jun-2010 Alex Sakhartchouk <alexst@google.com> Adding freetype font rendering to renderscript.

Change-Id: I3a10ffe27092a41df156341c9cb3f7aa19c49f19
s/Android.mk
s/RenderScript.h
s/ScriptC_Modelviewer.java
s/java/ModelViewer/res/raw/modelviewer.rs
s/java/ModelViewer/res/raw/modelviewer_bc.bc
s/java/ModelViewer/src/com/android/modelviewer/ModelViewerRS.java
s/java/ModelViewer/src/com/android/modelviewer/ModelViewerView.java
s/java/ModelViewer/src/com/android/modelviewer/ScriptC_Modelviewer.java
s/rs.spec
s/rsContext.cpp
s/rsContext.h
s/rsFileA3D.cpp
s/rsFont.cpp
s/rsFont.h
s/rsScriptC_LibGL.cpp
s/rsType.cpp
s/scriptc/rs_graphics.rsh
s/scriptc/rs_types.rsh
8f31bd6b68c796d4a4176721a6e13bfdba2166e0 24-Jun-2010 Jason Sams <rjsams@android.com> Merge "Add matrix ops to RSH headers."
fae3f6b4153ff39c4f9e00dcf635b413d0ae4e85 24-Jun-2010 Jason Sams <rjsams@android.com> Add matrix ops to RSH headers.

Change-Id: I7e2843983a12e0155114b4a18813799e4341d26f
s/java/ImageProcessing/res/raw/threshold.rs
s/java/ImageProcessing/res/raw/threshold_bc.bc
s/rsScriptC_Lib.cpp
s/scriptc/rs_core.rsh
s/scriptc/rs_math.rsh
s/scriptc/rs_types.rsh
038ecb097a4ee4997938d5c3a21c1c450c3beedc 24-Jun-2010 Romain Guy <romainguy@google.com> Merge "Add support for transformations."
f6a11b8a9e25ff9861bbba19251bea84d8a5daf2 24-Jun-2010 Romain Guy <romainguy@google.com> Add support for transformations.

This change adds partial support for the following transforms:
- scale()
- translate()
- rotate()
- setMatrix()
- getMatrix()

The transform is stored in a snapshot and saved/restored as needed.
The transform is currently not applied to the clip rect and is not
mapped to the vertex shader.

Change-Id: Id48993453311200804149917d0c126a4d0471226
wui/Matrix.cpp
wui/Matrix.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
a6e2e01f75771266db02bc23e861ef9abbb91c7f 24-Jun-2010 Christopher Tate <ctate@google.com> am bc0793e4: am 03791188: Merge "Remember to initialize timestamps in the dispatch allocator" into gingerbread

Merge commit 'bc0793e4b77f1f8ec30294a4edac67dfca81f31d'

* commit 'bc0793e4b77f1f8ec30294a4edac67dfca81f31d':
Remember to initialize timestamps in the dispatch allocator
e91a5db35b0faecb9387ba09341713568b1ae86c 24-Jun-2010 Christopher Tate <ctate@google.com> Remember to initialize timestamps in the dispatch allocator

Change-Id: I83a2d353c34ff84a7d130e602c6dedc6a5541944
i/InputDispatcher.cpp
bb9524b6bdddc7ac77d8628daa8b366b8a7be4a4 23-Jun-2010 Romain Guy <romainguy@google.com> Add implementations for clipRect(), save() and restore().

The current implementation of clipRect() does not apply local transformations
before setting the new clip.

Change-Id: I5997871bb638dfcd1a8ef96354846af52427e445
wui/Matrix.cpp
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/Rect.h
320742b15a710ede57862eee170945da26ef0172 23-Jun-2010 Dianne Hackborn <hackbod@google.com> am e3e2883f: am e24a60aa: Merge "First stab at attaching native event dispatching." into gingerbread

Merge commit 'e3e2883f2232007174ead562610eb01201890d9b'

* commit 'e3e2883f2232007174ead562610eb01201890d9b':
First stab at attaching native event dispatching.
3b224f931e32a9eee92e4f0b5516d812492f9ebe 23-Jun-2010 Mathias Agopian <mathias@google.com> am a4f98094: am 07ccf5ad: remove unused YUV formats

Merge commit 'a4f980948e112cfdcc7051e12e29c71b78383a6f'

* commit 'a4f980948e112cfdcc7051e12e29c71b78383a6f':
remove unused YUV formats
fc94e89a7f7aadf101ac1144073be964d9bfcf6b 23-Jun-2010 Brad Fitzpatrick <bradfitz@android.com> am efcf68aa: am ef8f96a7: Merge "Start of work on passing around StrictMode policy over Binder calls." into gingerbread

Merge commit 'efcf68aa1fd7fcfd52cf3d2837ed8db8e797194b'

* commit 'efcf68aa1fd7fcfd52cf3d2837ed8db8e797194b':
Start of work on passing around StrictMode policy over Binder calls.
f3a8f74f7b8a0fb3672534d50b1fd942ab0742a2 23-Jun-2010 Mathias Agopian <mathias@google.com> am b9fd188a: am d91ac98a: fix [2785833] valgrind error in android::Layer::requestBuffer

Merge commit 'b9fd188a0b1cd71e38c03a7bb4a4688eedf83667'

* commit 'b9fd188a0b1cd71e38c03a7bb4a4688eedf83667':
fix [2785833] valgrind error in android::Layer::requestBuffer
37d9a6b7c2e4c3ca50e08faefac64d849e0d74e3 23-Jun-2010 Mathias Agopian <mathias@google.com> am cefb8858: am 28333315: Merge "Added support for the GL_TEXTURE_EXTERNAL target" into gingerbread

Merge commit 'cefb88587443323d147e687ff78eae9195eb584c'

* commit 'cefb88587443323d147e687ff78eae9195eb584c':
Added support for the GL_TEXTURE_EXTERNAL target
e981c883d5ca99ccb97c317d824b9c288b613f67 23-Jun-2010 Jeff Brown <jeffbrown@google.com> am b1efc3f6: am 7fbdc84e: More native input event dispatching.

Merge commit 'b1efc3f68277a8c38c21e2d2e8ce05287118ecfe'

* commit 'b1efc3f68277a8c38c21e2d2e8ce05287118ecfe':
More native input event dispatching.
433517b0165d42fe7a8ef02d561a2680cd2e512c 23-Jun-2010 Jason Sams <rjsams@android.com> Merge "Fix 32&24 ->16 bit bitmap uploads."
0ebd5690b8a9eb55dc940b670267c11600cf7380 23-Jun-2010 Jason Sams <rjsams@android.com> Fix 32&24 ->16 bit bitmap uploads.

Change-Id: If8c52dd8ff34393c2908516e702a2d5daeb7bbb3
s/rsAllocation.cpp
7493c5287112692e833af8d44981997074655fa0 23-Jun-2010 Jason Sams <rjsams@android.com> Merge "Re-enable optimization for detecting nop state changes in fragment and vertex programs."
7c1f4c38a2d3a972f7dc6f508d3318c11ec539c7 23-Jun-2010 Jason Sams <rjsams@android.com> Re-enable optimization for detecting nop state changes in fragment
and vertex programs.

Change-Id: Ic5b9ecf564d121d7a00a1eed92afb4c4783ce8bc
s/rsProgramFragment.cpp
s/rsProgramVertex.cpp
3e168335b3422008908ac6973bb36078fd979f35 22-Jun-2010 Romain Guy <romainguy@google.com> Fix simulator build again.

Change-Id: Ifd204d64eaa4c356422e3363ec0a6e6aa61c52dc
wui/Android.mk
wui/Matrix.cpp
85bf02fc16784d935fb9eebfa9cb20fe46ff7951 22-Jun-2010 Romain Guy <romainguy@google.com> Fix the simulator build.

Change-Id: Ie404f7c2c308f0657f273af19a56e8c039b61898
wui/Android.mk
wui/Matrix.cpp
wui/Matrix.h
wui/OpenGLRenderer.cpp
wui/OpenGLRenderer.h
wui/UIMatrix.cpp
wui/UIMatrix.h
wui/UIOpenGLRenderer.cpp
wui/UIOpenGLRenderer.h
a95e4cb62f3642cb190d032dbf7dc40d9ecc6973 19-Jun-2010 Dianne Hackborn <hackbod@google.com> First stab at attaching native event dispatching.

Provides the basic infrastructure for a
NativeActivity's native code to get an object representing
its event stream that can be used to read input events.

Still work to do, probably some API changes, and reasonable
default key handling (so that for example back will still
work).

Change-Id: I6db891bc35dc9683181d7708eaed552b955a077e
i/Input.cpp
i/InputTransport.cpp
102fb89b9a4d2a6620f88b247405f853d78a09b6 22-Jun-2010 Romain Guy <romainguy@google.com> Merge "Add glOrtho equivalent to the OpenGL ES 2.0 renderer."
08ae317c21ec3086b5017672bba87420cc38a407 22-Jun-2010 Romain Guy <romainguy@google.com> Add glOrtho equivalent to the OpenGL ES 2.0 renderer.

Change-Id: I063dad3d81dab7833acb1e7a9c7121f8efd2a044
wui/Android.mk
wui/UIMatrix.cpp
wui/UIMatrix.h
wui/UIOpenGLRenderer.cpp
wui/UIOpenGLRenderer.h
07ccf5ad7edfeeebb79208ad3e8a52917fe038a8 22-Jun-2010 Mathias Agopian <mathias@google.com> remove unused YUV formats

Change-Id: Id0ae28b1700cf771cdbe0ca27b139d32cab90b2a
urfaceflinger/TextureManager.cpp
i/PixelFormat.cpp
f110d4b787b91dabe968a812e76e5c1f8d953487 22-Jun-2010 Jason Sams <rjsams@android.com> Move ImageProcessing and ModelViewer to reflected files.
Implement boolean support.

Change-Id: Iac2dc28067ac430b3e413fc651dfaa0b96214e2e
s/RenderScript.h
s/java/ImageProcessing/res/raw/threshold.rs
s/java/ImageProcessing/res/raw/threshold_bc.bc
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
s/java/ImageProcessing/src/com/android/rs/image/ScriptC_Threshold.java
s/java/ModelViewer/res/raw/modelviewer_bc.bc
s/java/ModelViewer/src/com/android/modelviewer/ModelViewerRS.java
s/java/ModelViewer/src/com/android/modelviewer/ScriptC_ModelViewer.java
s/java/ModelViewer/src/com/android/modelviewer/ScriptC_Modelviewer.java
s/rsComponent.cpp
s/rsComponent.h
s/rsElement.cpp
s/rsElement.h
s/rsProgramVertex.cpp
s/scriptc/rs_cl.rsh
ef8f96a717554a85aa63a60f8c61be2afbd12a5c 22-Jun-2010 Brad Fitzpatrick <bradfitz@android.com> Merge "Start of work on passing around StrictMode policy over Binder calls." into gingerbread
d91ac98a8ead216b12af6df61d90229b74c7f0f6 22-Jun-2010 Mathias Agopian <mathias@google.com> fix [2785833] valgrind error in android::Layer::requestBuffer

fix uninitialized variable

Change-Id: I99e1b619ae8c88dd9d77b3abf4762f801019047e
urfaceflinger/Layer.cpp
28333315c6f62b303de2ec0ac9e48158ed419f06 22-Jun-2010 Mathias Agopian <mathias@google.com> Merge "Added support for the GL_TEXTURE_EXTERNAL target" into gingerbread
3ac8da87bba83de254e612ff8387db23e6434119 22-Jun-2010 Jason Sams <rjsams@android.com> Remove the obsolete film example.

Change-Id: Ifb6b991276a3a7e95f75d783141b397080631e63
s/java/Film/Android.mk
s/java/Film/AndroidManifest.xml
s/java/Film/res/drawable/p01.png
s/java/Film/res/drawable/p02.png
s/java/Film/res/drawable/p03.png
s/java/Film/res/drawable/p04.png
s/java/Film/res/drawable/p05.png
s/java/Film/res/drawable/p06.png
s/java/Film/res/drawable/p07.png
s/java/Film/res/drawable/p08.png
s/java/Film/res/drawable/p09.png
s/java/Film/res/drawable/p10.png
s/java/Film/res/drawable/p11.png
s/java/Film/res/drawable/p12.png
s/java/Film/res/drawable/p13.png
s/java/Film/res/raw/filmimage.c
s/java/Film/res/raw/filmstrip.c
s/java/Film/src/com/android/film/Film.java
s/java/Film/src/com/android/film/FilmRS.java
s/java/Film/src/com/android/film/FilmStripMesh.java
s/java/Film/src/com/android/film/FilmView.java
7fbdc84e87dd3a0e196b9803bb04495d11e9cb8a 18-Jun-2010 Jeff Brown <jeffbrown@google.com> More native input event dispatching.

Added ANRs handling.
Added event injection.
Fixed a NPE ActivityManagerServer writing ANRs to the drop box.
Fixed HOME key interception.
Fixed trackball reporting.
Fixed pointer rotation in landscape mode.

Change-Id: I50340f559f22899ab924e220a78119ffc79469b7
i/InputDispatcher.cpp
i/InputManager.cpp
i/InputReader.cpp
27b3a7a75960d026655f3acd1de8a672e80a5776 18-Jun-2010 Brad Fitzpatrick <bradfitz@android.com> Start of work on passing around StrictMode policy over Binder calls.

This is (intendend to be) a no-op change.

At this stage, Binder RPCs just have an additional uint32 passed around
in the header, right before the interface name. But nothing is actually
done with them yet. That value should right now always be 0.

This now boots and seems to work.

Change-Id: I135b7c84f07575e6b9717fef2424d301a450df7b
inder/IPCThreadState.cpp
inder/IServiceManager.cpp
inder/Parcel.cpp
94d075998772d7ef20c40473434aeb999892417a 19-Jun-2010 Jason Sams <rjsams@android.com> Fountain example cleanup.
Remove compatability versions of rsg functions that took old 'i' types.

Change-Id: Icea268a37df5e212237299e094ba26c6f76468d7
s/java/Fountain/res/raw/fountain.rs
s/java/Fountain/res/raw/fountain_bc.bc
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/Fountain/src/com/android/fountain/ScriptC_Fountain.java
s/rsScriptC_LibGL.cpp
a5cb3b87d60c74f70560910fd4c2ab95f1fef528 18-Jun-2010 Jason Sams <rjsams@android.com> Merge "Remove legacy drawing functions. Skip element names starting with '#'"
6d1cf4148cbaec21cbc7d200894f6c7923075ed0 18-Jun-2010 Jason Sams <rjsams@android.com> Remove legacy drawing functions.
Skip element names starting with '#'

Change-Id: I6b0967ed1dc47c072c3bed7c0219e2215a7068a6
s/rsProgramVertex.cpp
s/rsScriptC_LibGL.cpp
s/rsVertexArray.cpp
s/scriptc/rs_graphics.rsh
aba8d302256da893e3f6d1a323d883e42111dc0b 18-Jun-2010 Jason Sams <rjsams@android.com> Merge "Add skip to field packer. remove hsb functions from env headers. add RS_PACKED define for packed structures."
020bb7b5ac26a6e2d2f6852952a84bb246445fcf 18-Jun-2010 Jason Sams <rjsams@android.com> Add skip to field packer.
remove hsb functions from env headers.
add RS_PACKED define for packed structures.

Change-Id: Idc661edff85c0047baa201f43e0839ac82c74593
s/scriptc/rs_graphics.rsh
s/scriptc/rs_types.rsh
3b970e78d2974eacc621258bb6e581d458d9bbd3 17-Jun-2010 Romain Guy <romainguy@google.com> Merge "Add libhwui, to hardware accelerate the Canvas API using OpenGL ES 2.0."
e4d011201cea40d46cb2b2eef401db8fddc5c9c6 17-Jun-2010 Romain Guy <romainguy@google.com> Add libhwui, to hardware accelerate the Canvas API using OpenGL ES 2.0.

This is the initial checkin to setup the library and turn on OEGL ES 2.0
in ViewRoot, not a functional renderer.

Change-Id: I6655c54166e2967da2e21e7d6dcfba78bf113b44
wui/Android.mk
wui/MODULE_LICENSE_APACHE2
wui/NOTICE
wui/UIOpenGLRenderer.cpp
wui/UIOpenGLRenderer.h
4e74ae3d5b27d917ea26d0929015f9fdc64af412 17-Jun-2010 Jeff Brown <jeffbrown@google.com> am 42bb545a: am 5c225b16: Even more native input dispatch work in progress.

Merge commit '42bb545a54d89f0ddbb230d7a01ea4210c0f6c00'

* commit '42bb545a54d89f0ddbb230d7a01ea4210c0f6c00':
Even more native input dispatch work in progress.
5c225b1680e696ae8bbf505a1997d6f720672f74 16-Jun-2010 Jeff Brown <jeffbrown@google.com> Even more native input dispatch work in progress.

Added more tests.
Fixed a regression in Vector.
Fixed bugs in pointer tracking.
Fixed a starvation issue in PollLoop when setting or removing callbacks.
Fixed a couple of policy nits.

Modified the internal representation of MotionEvent to be more
efficient and more consistent.

Added code to skip/cancel virtual key processing when there are multiple
pointers down. This helps to better disambiguate virtual key presses
from stray touches (such as cheek presses).

Change-Id: I2a7d2cce0195afb9125b23378baa94fd2fc6671c
i/Input.cpp
i/InputDispatcher.cpp
i/InputReader.cpp
i/InputTransport.cpp
i/tests/Android.mk
i/tests/InputChannel_test.cpp
i/tests/InputDispatcher_test.cpp
i/tests/InputPublisherAndConsumer_test.cpp
tils/PollLoop.cpp
tils/VectorImpl.cpp
tils/tests/PollLoop_test.cpp
tils/tests/TestHelpers.h
f8b4b4408cb864bf604608221eafa9d37323d348 15-Jun-2010 Mathias Agopian <mathias@google.com> Added support for the GL_TEXTURE_EXTERNAL target

This will allow us to support YUV surfaces.

Change-Id: I2d4da75f1006a5285bdc552695d4caeecccf2183
urfaceflinger/Layer.cpp
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBlur.cpp
urfaceflinger/LayerDim.cpp
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/TextureManager.cpp
urfaceflinger/TextureManager.h
i/PixelFormat.cpp
cb8e982754c1532feaa835e443a1d4aa9dff9e2d 16-Jun-2010 Jason Sams <rjsams@android.com> Merge "Remove InvokeData and add ContextFinish to generate a sync point."
8959f1c71b99a712abf732f9814aa66054d75943 16-Jun-2010 Jeff Brown <jeffbrown@google.com> am 2dfd2aa4: am 92266a78: Merge "More work in progress on native events." into gingerbread

Merge commit '2dfd2aa413a91965c1a247980598c795db9b4c38'

* commit '2dfd2aa413a91965c1a247980598c795db9b4c38':
More work in progress on native events.
92266a7894becc1cdf2298fd02380749ab036131 16-Jun-2010 Jeff Brown <jeffbrown@google.com> Merge "More work in progress on native events." into gingerbread
9c3cda04d969912bc46184f2b326d1db95e0aba5 15-Jun-2010 Jeff Brown <jeffbrown@google.com> More work in progress on native events.

Refactored the code to eliminate potential deadlocks due to re-entrant
calls from the policy into the dispatcher. Also added some plumbing
that will be used to notify the framework about ANRs.

Change-Id: Iba7a10de0cb3c56cd7520d6ce716db52fdcc94ff
i/InputDispatcher.cpp
i/InputManager.cpp
i/InputReader.cpp
afcc0f88741b336fe5f3cb26c2eb5b30447ecfa3 15-Jun-2010 Jason Sams <rjsams@android.com> Merge "update image processing."
96ed4cfa62dd09aafb3f9da01e047661b4fe3c95 15-Jun-2010 Jason Sams <rjsams@android.com> Remove InvokeData and add ContextFinish to generate a sync point.

Change-Id: I27da8bf5fba2c8a428964cb6a5e66dd7a94958d8
s/java/Fountain/res/raw/fountain.rs
s/java/Fountain/res/raw/fountain_bc.bc
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/Fountain/src/com/android/fountain/ScriptC_Fountain.java
s/java/Fountain/src/com/android/fountain/ScriptField_Point.java
s/java/Fountain/src/com/android/fountain/ScriptField_Point_s.java
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
s/java/ImageProcessing/src/com/android/rs/image/ScriptC_Threshold.java
s/rs.spec
s/rsContext.cpp
s/rsHandcode.h
s/rsScriptC.cpp
s/rsScriptC_LibGL.cpp
4e094c142880b338e78cb3343214a58058dabdb6 15-Jun-2010 Shih-wei Liao <sliao@google.com> Merge "Comment out rsqrt for now. Long-term: Need to figur out why rsqrt caused slang to abort."
722a5d710435dffe08415026fc846ee5ac8937fe 15-Jun-2010 Shih-wei Liao <sliao@google.com> Comment out rsqrt for now. Long-term: Need to figur out why rsqrt caused slang to abort.

Change-Id: I635eecead3ef71690124e51f29afa163373e2329
s/scriptc/rs_cl.rsh
889eb886d328d5850175e841619255c689289903 15-Jun-2010 Jeff Brown <jeffbrown@google.com> am e0e5da0d: am 96e59eb8: Merge "Support for multiple tests" into gingerbread

Merge commit 'e0e5da0d648f4167e2a12ea02f4794f81a057da7'

* commit 'e0e5da0d648f4167e2a12ea02f4794f81a057da7':
Support for multiple tests
f1d3802ea2e0c68f3f6e7524c2450379aae670a8 15-Jun-2010 Jeff Brown <jeffbrown@google.com> Support for multiple tests

The build system enforces some invariants that were being ignored
before.

Change-Id: Ie7675042af7f961a507386c13b2a0b592b591af8
i/tests/Android.mk
tils/tests/Android.mk
56985cea7759fa1e72085ec851fafa2d9a450dd7 11-Jun-2010 Jason Sams <rjsams@android.com> update image processing.

Change-Id: I5899f88f05b9fb2ac2d7cdcb725b97d3a48d536b
s/java/ImageProcessing/res/raw/threshold.rs
s/java/ImageProcessing/res/raw/threshold_bc.bc
s/java/ImageProcessing/src/com/android/rs/image/ScriptC_Threshold.java
1fdcb0814b4790ebc0ab4b960ffabbd3678b05c8 14-Jun-2010 Shih-wei Liao <sliao@google.com> Merge "To enable the reflection of rs_mesh etc. Side benefit: Better type checking. Double-checked with Nick that the extra "struct" is enabling reflection and type checking without incurring overhead."
d983a25b253673271ad751175121533502e96f63 14-Jun-2010 Jeff Brown <jeffbrown@google.com> am 4166aec5: am 28a6c8e9: am d890cbf7: Remove PollLoop from host build.

Merge commit '4166aec567b6fa4aa725a20d7c0a6dc5866c9f7b'

* commit '4166aec567b6fa4aa725a20d7c0a6dc5866c9f7b':
Remove PollLoop from host build.
d890cbf700695c869e6b45cddf7f132484697588 14-Jun-2010 Jeff Brown <jeffbrown@google.com> Remove PollLoop from host build.

We can't build (and we don't need) PollLoop in the SDK on all platforms.

Change-Id: I3b0f327bbb8bc58b9b8630b0161cf360403fea68
tils/Android.mk
0d6be5800a6dc639271f221cf5743bc6331499c9 14-Jun-2010 Jeff Brown <jeffbrown@google.com> am 34b418cd: am 5e95930b: am 43a9527c: Fix include paths.

Merge commit '34b418cddbd2f05d5c0a98c550c65e457015134e'

* commit '34b418cddbd2f05d5c0a98c550c65e457015134e':
Fix include paths.
43a9527c54b71cb17515591af37eeeef6c22e3ff 14-Jun-2010 Jeff Brown <jeffbrown@google.com> Fix include paths.

Change-Id: Ifda45688f9f02710a74d5d7a7d902bacf1441e2e
i/InputDispatcher.cpp
i/InputReader.cpp
8e03b7566c42621fda01186b66b019142eb84fbf 14-Jun-2010 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of 9e660c82 to master

Change-Id: Ic4bd85cbaa5b9a10dcb474a0dad46490bf967e43
46b9ac0ae2162309774a7478cd9d4e578747bfc2 23-Apr-2010 Jeff Brown <jeffbrown@google.com> Native input dispatch rewrite work in progress.

The old dispatch mechanism has been left in place and continues to
be used by default for now. To enable native input dispatch,
edit the ENABLE_NATIVE_DISPATCH constant in WindowManagerPolicy.

Includes part of the new input event NDK API. Some details TBD.

To wire up input dispatch, as the ViewRoot adds a window to the
window session it receives an InputChannel object as an output
argument. The InputChannel encapsulates the file descriptors for a
shared memory region and two pipe end-points. The ViewRoot then
provides the InputChannel to the InputQueue. Behind the
scenes, InputQueue simply attaches handlers to the native PollLoop object
that underlies the MessageQueue. This way MessageQueue doesn't need
to know anything about input dispatch per-se, it just exposes (in native
code) a PollLoop that other components can use to monitor file descriptor
state changes.

There can be zero or more targets for any given input event. Each
input target is specified by its input channel and some parameters
including flags, an X/Y coordinate offset, and the dispatch timeout.
An input target can request either synchronous dispatch (for foreground apps)
or asynchronous dispatch (fire-and-forget for wallpapers and "outside"
targets). Currently, finding the appropriate input targets for an event
requires a call back into the WindowManagerServer from native code.
In the future this will be refactored to avoid most of these callbacks
except as required to handle pending focus transitions.

End-to-end event dispatch mostly works!

To do: event injection, rate limiting, ANRs, testing, optimization, etc.

Change-Id: I8c36b2b9e0a2d27392040ecda0f51b636456de25
i/Android.mk
i/EventHub.cpp
i/Input.cpp
i/InputDispatcher.cpp
i/InputManager.cpp
i/InputReader.cpp
i/InputTransport.cpp
i/tests/Android.mk
i/tests/InputDispatcher_test.cpp
i/tests/region.cpp
i/tests/region/Android.mk
i/tests/region/region.cpp
tils/Android.mk
tils/PollLoop.cpp
tils/Pool.cpp
tils/StopWatch.cpp
tils/VectorImpl.cpp
tils/tests/Android.mk
tils/tests/PollLoop_test.cpp
tils/tests/TestHelpers.h
4b983d9f301648d27b6585a69ca5a61f172fa110 11-Jun-2010 Chih-Chung Chang <chihchung@google.com> am dac5e001: am b8bb78f5: Change camera interface to support multiple cameras.

Merge commit 'dac5e0013d1ea396f0b3a3f07654f2ecbfb79ac9'

* commit 'dac5e0013d1ea396f0b3a3f07654f2ecbfb79ac9':
Change camera interface to support multiple cameras.
b8bb78f54b48868465a9d69d65fda08524ab5ae1 10-Jun-2010 Chih-Chung Chang <chihchung@google.com> Change camera interface to support multiple cameras.

Change-Id: Ie88fe706d2278acf762eca87780de349434778a4
amera/Camera.cpp
amera/ICameraService.cpp
669bdbf6d1907c6c0eb3dac8eb5dd32360dc2c28 11-Jun-2010 Andreas Huber <andih@google.com> am b9d7b46b: am 8f864513: Merge "Fix String8 to free its memory only after assignment operations based on pointers are finished in case that pointer referred to the string\'s original contents." into kraken
62a2aa01528e70c63aef60a6f48929da5a06761a 10-Jun-2010 Andreas Huber <andih@google.com> Fix String8 to free its memory only after assignment operations based on pointers are finished in case that pointer referred to the string's original contents.

Change-Id: I6961f3cf10ba3b728579ea63262db750a4cf8577
tils/String8.cpp
cac4d6d96551a756121361df2a83e7580e34a862 10-Jun-2010 Shih-wei Liao <sliao@google.com> To enable the reflection of rs_mesh etc. Side benefit: Better type checking.
Double-checked with Nick that the extra "struct" is enabling reflection and
type checking without incurring overhead.

Change-Id: I624efd9547a8f847d9525906ab3a49278055c9e9
s/scriptc/rs_types.rsh
c3db34e58f2a1a6f0f3c90ed7e5e817061fd3fd8 10-Jun-2010 Jason Sams <rjsams@android.com> Merge "Remove float8/16 from RS type list. We will not have time to work through ABI issues for these types on arm for our ship date. Can be re-added later."
96d719c91708fda5abc0442fcf6d275584d2cad6 09-Jun-2010 Jason Sams <rjsams@android.com> Remove float8/16 from RS type list.
We will not have time to work through ABI issues for these types
on arm for our ship date. Can be re-added later.

Change-Id: I957758be7e900a1c55eff9cb5aeb16fa636bd9a0
s/rsUtils.h
s/scriptc/rs_cl.rsh
s/scriptc/rs_core.rsh
s/scriptc/rs_graphics.rsh
s/scriptc/rs_types.rsh
5e4d9a04fdf9bf28650853cb19a1b06b0d543c51 08-Jun-2010 Kenny Root <kroot@google.com> Add invariant check for stylesString size

It was possible for stylesStrings to claim to start past the end of the
data area thereby making mStringPoolSize larger than the data area.

Change-Id: Ibc4d5b429e3a388516135801c8abc3681daae291
tils/ResourceTypes.cpp
70eeab74120f1f4a335412bb849812cbc998c285 09-Jun-2010 Mathias Agopian <mathias@google.com> am 34e5d967: am 55f8209d: Merge "allow re-targetting of surfaces" into kraken
5e14010b1fc066dfcbc0a577d59492687c99667d 09-Jun-2010 Mathias Agopian <mathias@google.com> allow re-targetting of surfaces

Surfaces can now be parcelized and sent to remote
processes. When a surface crosses a process
boundary, it looses its connection with the
current process and gets attached to the new one.

Change-Id: I39c7b055bcd3ea1162ef2718d3d4b866bf7c81c0
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger_client/SharedBufferStack.cpp
urfaceflinger_client/Surface.cpp
i/GraphicBuffer.cpp
570898098f9b7c654633627d016a257bd37cd2e5 09-Jun-2010 Mathias Agopian <mathias@google.com> am 37583aeb: am 1debc665: fix [2751143] Device crashes when in a text box for too long
cbe4a73fef42602f68c698462ecc2e4b358d91b6 09-Jun-2010 Jason Sams <rjsams@android.com> Merge "Begin using reflected files."
1debc66521f699bbf0a8eb80cababaef8bc63607 09-Jun-2010 Mathias Agopian <mathias@google.com> fix [2751143] Device crashes when in a text box for too long
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger_client/SurfaceComposerClient.cpp
e29f3e74f71ea730519ff8ae1d8dd4c1630bbaf9 09-Jun-2010 Jason Sams <rjsams@android.com> Begin using reflected files.

Change-Id: I5307a0eac9c206b85c0cf7451d3f8300134bf8e3
s/RenderScript.h
s/java/Fountain/res/raw/fountain.rs
s/java/Fountain/res/raw/fountain_bc.bc
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/Fountain/src/com/android/fountain/ScriptC_Fountain.java
s/java/Fountain/src/com/android/fountain/ScriptField_Point.java
s/java/Fountain/src/com/android/fountain/ScriptField_Point_s.java
s/rsScriptC.cpp
s/scriptc/rs_core.rsh
06983bc566eca6dc3ef477baaa1520bfa95cee52 08-Jun-2010 Kenny Root <kroot@google.com> Range checking for ResTable_map

Correct previous offset change and get ready for safe-iop.

Change-Id: Ib276c726f32b0711a72f47d3263eb21640e5a800
tils/ResourceTypes.cpp
3379195a76fff85a13ffd3c443edeb8fde48b085 08-Jun-2010 Kenny Root <kroot@google.com> Improve checking in aapt dump

The aapt dump reading had less error checking than the actual parsing,
so this change brings it more into parity so that bad APKs don't crash
"aapt dump"

Change-Id: Ib30e63e41be5c652645c4aa0de580a87b184529d
tils/ResourceTypes.cpp
58006194f87c2278990091e7014a60f442a21baa 05-Jun-2010 Mathias Agopian <mathias@google.com> am f5f7d389: am fae5cb2b: optimize Surface.readFromParcel()
5f98310f9a9f5630628f93a2d1b0f8c73a36e43c 05-Jun-2010 Mathias Agopian <mathias@google.com> am fd89b1c8: am 7623da43: split surface management from surface\'s buffers management
18fa1de510782d844bfde37ae24e2c8ba04cd67f 05-Jun-2010 Mathias Agopian <mathias@google.com> am cfa6de70: am 593c05ce: clean-up client management.
fae5cb2b356a1fef172b43066180a7ab4c32dbac 05-Jun-2010 Mathias Agopian <mathias@google.com> optimize Surface.readFromParcel()

this is called for each relayout() and used to create a full Surface (cpp)
which in turn did some heavy work (including an IPC with surfaceflinger),
most of the time to destroy it immediatelly when the returned surface
(the one in the parcel) was the same.

we now more intelligentely read from the parcel and construct the new
object only if needed.

Change-Id: Idfd40d9ac96ffc6d4ae5fd99bcc0773e131e2267
urfaceflinger_client/Surface.cpp
7623da435e45c7c03ef6a00a43675deb6645f070 02-Jun-2010 Mathias Agopian <mathias@google.com> split surface management from surface's buffers management

Change-Id: If3c5655d1231f8f0c49ba68f972b1b20c93b3f87
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger_client/ISurfaceComposer.cpp
urfaceflinger_client/ISurfaceComposerClient.cpp
urfaceflinger_client/SharedBufferStack.cpp
urfaceflinger_client/Surface.cpp
urfaceflinger_client/SurfaceComposerClient.cpp
i/GraphicBuffer.cpp
593c05ce7bcf7b6d94bd8c50da2b818cf05116b1 03-Jun-2010 Mathias Agopian <mathias@google.com> clean-up client management.

simplified things a lot, the biggest change is that the concept
of "ClientID" is now gone, instead we simply use references.

Change-Id: Icbc57f80865884aa5f35ad0d0a0db26f19f9f7ce
urfaceflinger/Android.mk
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBlur.cpp
urfaceflinger/LayerBlur.h
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
urfaceflinger/LayerDim.cpp
urfaceflinger/LayerDim.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger/Tokenizer.cpp
urfaceflinger/Tokenizer.h
89ec91b64dda5e50fdc5f544beeb5610c7e89e9d 05-Jun-2010 Alex Sakhartchouk <alexst@google.com> Merge "Removing debug output."
422ce6b4dba085140fd116fdbce1ef0c8a44065d 05-Jun-2010 Alex Sakhartchouk <alexst@google.com> Removing debug output.

Change-Id: I05bd821607e3312180ed910313c88722a7c13f22
s/rsSimpleMesh.cpp
ddcafcbd62c4efdc70bc626ab210a3c41dd1333c 04-Jun-2010 Konstantin Lopyrev <klopyrev@google.com> Fix 1684100: Making sure that empty package, type and resource ids are not accepted.

Change-Id: I4c94877e4312e9a5b4d22c8625069ca056c62e40
tils/ResourceTypes.cpp
0829f0d51f73b529a018b9afd931d01711db2f89 04-Jun-2010 Alex Sakhartchouk <alexst@google.com> Merge "Creating the jni and java layer to integrate a3d"
aae74ad6144470c66e72b075ac3afeddb186fa98 04-Jun-2010 Alex Sakhartchouk <alexst@google.com> Creating the jni and java layer to integrate a3d

Change-Id: I438359633bae59bf9188cd2c4664a92ca16c5f37
s/RenderScript.h
s/java/ModelViewer/Android.mk
s/java/ModelViewer/AndroidManifest.xml
s/java/ModelViewer/res/drawable/robot.png
s/java/ModelViewer/res/raw/modelviewer.rs
s/java/ModelViewer/res/raw/modelviewer_bc.bc
s/java/ModelViewer/res/raw/robot.a3d
s/java/ModelViewer/src/com/android/modelviewer/ModelViewer.java
s/java/ModelViewer/src/com/android/modelviewer/ModelViewerRS.java
s/java/ModelViewer/src/com/android/modelviewer/ModelViewerView.java
s/java/ModelViewer/src/com/android/modelviewer/ScriptC_ModelViewer.java
s/rs.spec
s/rsAdapter.h
s/rsAllocation.cpp
s/rsAllocation.h
s/rsAnimation.h
s/rsElement.cpp
s/rsElement.h
s/rsFileA3D.cpp
s/rsFileA3D.h
s/rsFileA3DDecls.h
s/rsLight.h
s/rsMesh.cpp
s/rsMesh.h
s/rsObjectBase.h
s/rsProgramFragment.h
s/rsProgramRaster.h
s/rsProgramStore.h
s/rsProgramVertex.h
s/rsSampler.h
s/rsScriptC.h
s/rsSimpleMesh.cpp
s/rsSimpleMesh.h
s/rsStream.cpp
s/rsStream.h
s/rsType.cpp
s/rsType.h
s/rsUtils.h
baff93de27b71b690eb9bdcb39a1bb044d9eade2 04-Jun-2010 Wu-cheng Li <wuchengli@google.com> am ab5e67c6: am cefb01ab: Merge "Add KEY_SUPPORTED_METERING_MODES and fix some typos." into kraken
cefb01abbfdb175e0c4b298126bcb4a98bf6371f 04-Jun-2010 Wu-cheng Li <wuchengli@google.com> Merge "Add KEY_SUPPORTED_METERING_MODES and fix some typos." into kraken
8aba232dbce3d7a1e3efd5fa41c37810de79d0ea 04-Jun-2010 Wu-cheng Li <wuchengli@google.com> Add KEY_SUPPORTED_METERING_MODES and fix some typos.

bug:2737111
Change-Id: I108ae7057786921bf99385ad66dbc1f02d6a1448
amera/CameraParameters.cpp
4b18200b9cc97d22ac4b77634195ec5f48004568 04-Jun-2010 Eric Laurent <elaurent@google.com> am 030a1553: am 2ea200c5: Merge "Issue 2667801: [Audio Effect Framework] AudioFlinger, AudioMixer AudioTrack modifications." into kraken
2ea200c5a7c13e6a7e8bfdb04e96066a38b19240 04-Jun-2010 Eric Laurent <elaurent@google.com> Merge "Issue 2667801: [Audio Effect Framework] AudioFlinger, AudioMixer AudioTrack modifications." into kraken
3c358eb7bd20af41d921c67fc461dbf9f85db118 04-Jun-2010 Wu-cheng Li <wuchengli@google.com> am 2f98f99c: am 5f5df382: Merge "Add camera metering mode API." into kraken
5f5df382e5b87f02399f21c916e0ebb6c48c759d 04-Jun-2010 Wu-cheng Li <wuchengli@google.com> Merge "Add camera metering mode API." into kraken
65b65459e6ac59f8a257009df8014467ae0838ee 02-Jun-2010 Eric Laurent <elaurent@google.com> Issue 2667801: [Audio Effect Framework] AudioFlinger, AudioMixer AudioTrack modifications.

First drop of audio framework modifications for audio effects support.

- AudioTrack/AudioRecord:
Added support for auxiliary effects in AudioTrack
Added support for audio sessions
Fixed left right channel inversion in setVolume()

- IAudioFlinger:
Added interface methods for effect enumeraiton and instantiation
Added support for audio sessions.

- IAudioTrack:
Added method to attach auxiliary effect.

- AudioFlinger
Created new classes to control effect engines in effect library and manage effect connections to tracks or
output mix:
EffectModule: wrapper object controlling the effect engine implementation in the effect library. There
is one EffectModule per instance of an effect in a given audio session
EffectChain: group of effects associated to one audio session. There is one EffectChain per audio session.
EffectChain for session 0 is for output mix effects, other chains are attached to audio tracks
with same session ID. Each chain contains a variable number of EffectModules
EffectHandle: implements the IEffect interface. There is one EffectHandle object for each application
controlling (or using) an effect module. THe EffectModule maintians a list of EffectHandles.

Added support for effect modules and effect chains creation in PlaybackThread.
modified mixer thread loop to allow track volume control by effect modules and call effect processing.

-AudioMixer
Each track now specifies its output buffer used by mixer for accumulation
Modified mixer process functions to process tracks by groups of tracks with same buffer
Modified track process functions to support accumulation to auxiliary channel

Change-Id: I26d5f7c9e070a89bdd383e1a659f8b7ca150379c
udioflinger/Android.mk
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
udioflinger/AudioMixer.cpp
udioflinger/AudioMixer.h
f7f6333831e7b991d92abeddfbd46c2884afa405 03-Jun-2010 Wu-cheng Li <wuchengli@google.com> Add camera metering mode API.

bug:2737111
Change-Id: Ie986fee56ebeaaed2d2efb757701dfe3ffdec8d8
amera/CameraParameters.cpp
b8b1e1fcfaf4a85cdca547d02b72e3e4bc8c1f75 02-Jun-2010 Jason Sams <rjsams@android.com> Merge "Disabble vertex logging. bug 2734616"
ab67fb9a80057453e90e29ef72d558d130287053 02-Jun-2010 Jason Sams <rjsams@android.com> Disabble vertex logging.
bug 2734616


Change-Id: Ibad63dfbf0f2ea3c7e475c7cf0689fd487d12be4
s/rsVertexArray.cpp
be5cd38a845593ba6749601788e24b348c0d95e0 02-Jun-2010 Jason Sams <rjsams@android.com> Merge "Remove RS_KIND from vertex arrays types. Legacy vertex programs now bind by name just like the user programs. This removes the need for two different ways of declairing the same information."
9e83c02917439bdedaeb06d904f25125a74cef14 02-Jun-2010 Jason Sams <rjsams@android.com> Merge "types update."
491271d3f5c19873fdb955accbdb0414b2f65b3a 02-Jun-2010 Mathias Agopian <mathias@google.com> am 7258fd92: am 5be7de5f: Merge "fix a bug where fading in/out of opaque 32-bits windows wasn\'t working" into kraken
bd69e1b8518ccae73719c1a185a4312a910a6206 02-Jun-2010 Mathias Agopian <mathias@google.com> am 5220af87: am 770492cb: more clean-up in preparation of bigger changes
a0612e41dd5e6e9ec0a89e8e7437a3dafec0ee10 13-Apr-2010 Mathias Agopian <mathias@google.com> fix a bug where fading in/out of opaque 32-bits windows wasn't working

opaque 32-bits windows are now allocated as RGBX_8888 buffers and
SurfaceFlinger always uses GL_MODULATE instead of trying to
optimize to GL_REPLACE when possible (makes no sense on
h/w accelerated GL).

we still have a small hack for devices that don't support
RGBX_8888 in their gralloc implementation where we revert to
RGBA_8888.
urfaceflinger/LayerBase.cpp
i/GraphicBuffer.cpp
8cb39de03aef6097a90033600d11a60ae000a6e4 02-Jun-2010 Jason Sams <rjsams@android.com> Remove RS_KIND from vertex arrays types.
Legacy vertex programs now bind by name just like the user programs.
This removes the need for two different ways of declairing the same
information.

Change-Id: I0178c0962842a1bbffb6726984ae1b8f5bb7529c
s/java/Fountain/res/raw/fountain.rs
s/java/Fountain/res/raw/fountain_bc.bc
s/java/Fountain/src/com/android/fountain/ScriptField_Point.java
s/rsProgramVertex.cpp
s/rsScriptC_LibGL.cpp
s/rsShaderCache.cpp
s/rsSimpleMesh.cpp
s/rsType.cpp
s/rsType.h
s/rsVertexArray.cpp
s/rsVertexArray.h
s/scriptc/rs_core.rsh
c9d0a87d504b3f0322b43f971f9cb4838ee521fb 29-May-2010 Jason Sams <rjsams@android.com> types update.

Change-Id: I3bd43e163c919be4c3a38e0dd228cee220c62b76
s/scriptc/rs_core.rsh
s/scriptc/rs_math.rsh
s/scriptc/rs_types.rsh
3678f1989e6ced6d97afaa5bb28743b1955d39a3 29-May-2010 Jason Sams <rjsams@android.com> Merge "Rough implemetation of ForEach. Remove launchID from root graphics script."
f17bccc9050498f51a32a2ee78f5d5a306008e3d 29-May-2010 Jason Sams <rjsams@android.com> Rough implemetation of ForEach.
Remove launchID from root graphics script.

Change-Id: I9f80c0d4df1264f2ee1624a6d7216b9dfdf8502e
s/rsContext.cpp
s/rsContext.h
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC.h
s/rsScriptC_Lib.cpp
s/scriptc/rs_math.rsh
12fc0af972684990fb22cdecae95688f2465e26f 29-May-2010 Jason Sams <rjsams@android.com> Merge "Fountain update. Update field names to match legacy expectations. Cleanup java code."
96d3749e4ed3a780e1d6f505edea3a67b8a8c7d2 29-May-2010 Jason Sams <rjsams@android.com> Fountain update. Update field names to match legacy expectations.
Cleanup java code.

Change-Id: I1ad9ae462e46166a7b6ff2b399417dbfe50a5542
s/java/Fountain/res/raw/fountain.rs
s/java/Fountain/res/raw/fountain_bc.bc
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/Fountain/src/com/android/fountain/ScriptField_Point.java
770492cb2b19f6a36ad748cd05fbedfbb9a67dfa 28-May-2010 Mathias Agopian <mathias@google.com> more clean-up in preparation of bigger changes

the most important change here is the renaming of
ISurfaceFlingerClient to ISurfaceComposerClient

Change-Id: I94e18b0417f50e06f21377446639c61f65f959b3
urfaceflinger/LayerBase.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger_client/Android.mk
urfaceflinger_client/ISurfaceComposer.cpp
urfaceflinger_client/ISurfaceComposerClient.cpp
urfaceflinger_client/ISurfaceFlingerClient.cpp
urfaceflinger_client/SharedBufferStack.cpp
urfaceflinger_client/Surface.cpp
urfaceflinger_client/SurfaceComposerClient.cpp
8eb25c28c01beed326f1612b0381f421f75516fc 28-May-2010 Mike Lockwood <lockwood@android.com> Merge "Move CursorWindow class from core/jni to libbinder"
922283288288399363ebaebb25e13ddc08fa3b8d 28-May-2010 Wu-cheng Li <wuchengli@google.com> am 3ed1da35: am 198975bb: Merge "Add video frame parameter." into kraken
cf789214369c1d5d029c14fd5938a39808a166d1 28-May-2010 Mathias Agopian <mathias@google.com> am 6a9d88ff: am 64ff6ab4: Merge "more clean-up of Surfaceflinger\'s client management" into kraken
2807df89af680e46cb35ee0035bb10b42d3136a2 27-May-2010 Mike Lockwood <lockwood@android.com> Move CursorWindow class from core/jni to libbinder

To allow use of the native CursorWindow class outside of the core framework jni

Change-Id: I72e8dcb91a2c691130c33cdfd9a25d343da1c592
Signed-off-by: Mike Lockwood <lockwood@android.com>
inder/Android.mk
inder/CursorWindow.cpp
198975bb010531e6e21f35582fb7040960364473 28-May-2010 Wu-cheng Li <wuchengli@google.com> Merge "Add video frame parameter." into kraken
d2c2929c94bec68741b85f4174e11307fb65157f 28-May-2010 Wu-cheng Li <wuchengli@google.com> Add video frame parameter.

The image format of preview frames and video frames may be different.
We need another parameter for video frame format.

bug:2720893
Change-Id: I966a31b0ce8cab25cdde65db65a18c8cbe9c7bd6
amera/CameraParameters.cpp
c7b388c2b3a9558c85e3730a7c6b261392ce493e 28-May-2010 Mathias Agopian <mathias@google.com> more clean-up of Surfaceflinger's client management

SurfaceComposerClient now only exist on the WindowManager side,
the client side uses the new SurfaceClient class, which only
exposes what a client needs.

also instead of keeping mappings from IBinder to SurfaceComposerClients
we have a SurfaceClient per Surface (referring to the same IBinder), this
is made possible by the fact that SurfaceClient is very light.

Change-Id: I6a1f7015424f07871632a25ed6a502c55abfcfa6
urfaceflinger_client/Surface.cpp
urfaceflinger_client/SurfaceComposerClient.cpp
9855b591dc912caaa20fa2cd56e2d5e723f05393 27-May-2010 Mathias Agopian <mathias@google.com> am ec272924: am df0364de: Merge "minor clean-up GLclampx -> GLclampf" into kraken
0d3c0063aa998bc32e7f22114e38a0f8df61ad65 27-May-2010 Mathias Agopian <mathias@google.com> minor clean-up GLclampx -> GLclampf
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBuffer.cpp
4e49bb98905ad74daddc023831213d8e47fdf2f1 27-May-2010 Mathias Agopian <mathias@google.com> am ed34e950: am d908822d: Merge "clean-up dead-code" into kraken
7d1508b854dff2b9b3469b5eef7e2123eada1cd7 27-May-2010 Mathias Agopian <mathias@google.com> clean-up dead-code
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
2342fbdccbcd9de76d74682ad0ddb6cd31251015 27-May-2010 Mathias Agopian <mathias@google.com> am 521b8d5c: am a950aa84: Merge "Make sure to use filtering while in fixed-size mode" into kraken
923770333574fd71674781a9a62f40e8acaf5ef1 27-May-2010 Mathias Agopian <mathias@google.com> Make sure to use filtering while in fixed-size mode
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBuffer.cpp
801f90bd80d76db56171956aeba152d45062b139 27-May-2010 Mathias Agopian <mathias@google.com> am 2a0f01ea: am 7ca7eedb: Merge "oopsie. forgot to displatch SET_BUFFERS_GEOMETRY" into kraken
663baddda9de01d0a7eccffaeb7ce39899e95146 27-May-2010 Mathias Agopian <mathias@google.com> oopsie. forgot to displatch SET_BUFFERS_GEOMETRY
urfaceflinger_client/Surface.cpp
b3ece2d595811c0dba2cada7d7d4f511001ae5ec 26-May-2010 Mathias Agopian <mathias@google.com> am eaac2761: am 64f7549b: Merge "fix [2712278] The preview buffer left some black borders in left and bottom edges" into kraken
2ce19af45bf4c5e311a73df474ffe88d96d118c5 26-May-2010 Mathias Agopian <mathias@google.com> fix [2712278] The preview buffer left some black borders in left and bottom edges

we were incorrectly flagging push_buffer surfaces as invalid

Change-Id: I4dfd4ffbbe8a71f7e23e835db8d71966416c29bb
urfaceflinger/LayerBase.cpp
urfaceflinger_client/SharedBufferStack.cpp
urfaceflinger_client/Surface.cpp
urfaceflinger_client/SurfaceComposerClient.cpp
cc9c4242e3f77c20a943bdbc5fde5fe28cc2def6 25-May-2010 Eric Laurent <elaurent@google.com> Fix issue 2641884: Bluetooth volume is dependent on in call volume.

The problem is that the code in AudioPolicyManagerBase::checkAndSetVolume() that forces
voice volume to max when setting bluetooth SCO volume is not called if the bluetooth stream
volume did not actually change. So even if we re apply volumes when switching to bluetooth
device, the volume voice volume is not changed and remains what it was when routed to earpiece
What makes things worse on Passion is that stream volumes are limited when connected to bluetooth
and their actual value does not change as soon as they exceed the limit threshold.

Change-Id: I18265e5e6686db0a1f30fc37a31e2ecde4f3fbc6
udioflinger/AudioPolicyManagerBase.cpp
b00d12beaec607c0a72b3917990f0a9c6cbe3417 25-May-2010 Mathias Agopian <mathias@google.com> am 61a58708: am 2e948ca1: Merge "added the notion of fixed-size buffers" into kraken
7cce3d3dcd3c050fefb81ec18b36bddb8dc0255c 25-May-2010 Mathias Agopian <mathias@google.com> am 27d2f0ca: am acdc44bb: Merge "fix a bug when reallocating a window\'s buffers is needed" into kraken
2be352adab7f11646fda7c0240e496bbb37f7bd1 22-May-2010 Mathias Agopian <mathias@google.com> added the notion of fixed-size buffers

the new native_window_set_buffers_geometry allows
to specify a size and format for all buffers to be
dequeued. the buffer will be scalled to the window's
size.

Change-Id: I2c378b85c88d29cdd827a5f319d5c704d79ba381
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger_client/ISurface.cpp
urfaceflinger_client/SharedBufferStack.cpp
urfaceflinger_client/Surface.cpp
57d89899c9fb978a1c097f298aa94c5db1f61bb6 21-May-2010 Mathias Agopian <mathias@google.com> fix a bug when reallocating a window's buffers is needed

we need to mark the buffers that need to be reallocated,
NOT the buffer's indices.

Change-Id: I809e2e1b03b56c4d2ab983c25523dae99aa1da74
urfaceflinger_client/SharedBufferStack.cpp
f7b4150a890c0446319da0018147320645e0c30f 21-May-2010 Mathias Agopian <mathias@google.com> am 6099e141: am 25f0bdae: added native_window_set_buffer_count()
25f0bdaea6d1a34aae3faf6688cad4fbebcca969 21-May-2010 Mathias Agopian <mathias@google.com> added native_window_set_buffer_count()

this method can be used to change the number of buffers
associated to a native window. the default is two.

Change-Id: I608b959e6b29d77f95edb23c31dc9b099a758f2f
urfaceflinger_client/SharedBufferStack.cpp
urfaceflinger_client/Surface.cpp
aa7d2884cb563f87294003981e03e37a1abeb961 21-May-2010 Alex Sakhartchouk <alexst@google.com> Removed unnecessary change based on comments.
Now using android utils lib.
collada_to_a3d seems to work with android util libs.
Integrating old changelist
Changing assert to rsAssrt in VertexArray
making context compile.
Change-Id: I33890defa777f09253bfab630d97782359ec49d7

Added serialization code to rsLib
Integrated old changelist
Change-Id: Ie4746113f6d1817fbb3264f97fdddde25b779311

Added serialization code to rsLib

Change-Id: Ie4746113f6d1817fbb3264f97fdddde25b779311
s/Android.mk
s/rsAdapter.cpp
s/rsAdapter.h
s/rsAllocation.cpp
s/rsAllocation.h
s/rsAnimation.cpp
s/rsAnimation.h
s/rsComponent.cpp
s/rsComponent.h
s/rsContextHostStub.h
s/rsDevice.cpp
s/rsElement.cpp
s/rsElement.h
s/rsFileA3D.cpp
s/rsFileA3D.h
s/rsFileA3DDecls.h
s/rsLight.cpp
s/rsLight.h
s/rsMesh.cpp
s/rsMesh.h
s/rsObjectBase.cpp
s/rsObjectBase.h
s/rsProgram.cpp
s/rsProgramFragment.cpp
s/rsProgramFragment.h
s/rsProgramRaster.cpp
s/rsProgramRaster.h
s/rsProgramStore.cpp
s/rsProgramStore.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsSampler.cpp
s/rsSampler.h
s/rsScriptC.h
s/rsShaderCache.cpp
s/rsSimpleMesh.cpp
s/rsSimpleMesh.h
s/rsStream.cpp
s/rsStream.h
s/rsType.cpp
s/rsType.h
s/rsUtils.h
s/rsVertexArray.cpp
dd56b39ec000b3ddd206d242b0fe24b4b955c8ee 21-May-2010 Mathias Agopian <mathias@google.com> am 9840fe25: am 4f5f2786: Merge "fix the threading issue for setBuffercount()" into kraken
898c4c91be8e11b6d5388c623ae80f12ac25fd27 19-May-2010 Mathias Agopian <mathias@google.com> fix the threading issue for setBuffercount()

this change introduces R/W locks in the right places.
on the server-side, it guarantees that setBufferCount()
is synchronized with "retire" and "resize".
on the client-side, it guarantees that setBufferCount()
is synchronized with "dequeue", "lockbuffer" and "queue"
urfaceflinger/Barrier.h
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBlur.cpp
urfaceflinger/MessageQueue.cpp
urfaceflinger/MessageQueue.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger/TextureManager.cpp
urfaceflinger/TextureManager.h
urfaceflinger_client/SharedBufferStack.cpp
urfaceflinger_client/Surface.cpp
urfaceflinger_client/SurfaceComposerClient.cpp
urfaceflinger_client/tests/SharedBufferStack/SharedBufferStackTest.cpp
1001a5b97bf910c164dce45c174c4660d678d818 21-May-2010 Jason Sams <rjsams@android.com> Remove noise functions and update images processing to use new rs namespace names.

Change-Id: I2dc9b5ec7877acd630bea1a011ecc4a6d43a31eb
s/Android.mk
s/java/ImageProcessing/res/raw/threshold.rs
s/java/ImageProcessing/res/raw/threshold_bc.bc
s/rsNoise.cpp
s/rsNoise.h
s/rsScriptC_Lib.cpp
s/rsScriptC_LibGL.cpp
s/scriptc/rs_math.rsh
d79b2e9f8b0fa43f6734aaa5e9d0d389d5da5109 20-May-2010 Jason Sams <rjsams@android.com> Begin naming cleanup for renderscript runtime.
Prefix functions with "rs" or "rsg".

Change-Id: I4435b486831bfab1ea473ccfad435b404e68f1c9
s/java/Film/src/com/android/film/FilmRS.java
s/java/Fountain/res/raw/fountain.rs
s/java/Fountain/res/raw/fountain_bc.bc
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/Fountain/src/com/android/fountain/ScriptC_Fountain.java
s/rs.spec
s/rsContext.cpp
s/rsContext.h
s/rsScript.cpp
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC.h
s/rsScriptC_Lib.cpp
s/rsScriptC_LibGL.cpp
s/scriptc/rs_cl.rsh
s/scriptc/rs_graphics.rsh
s/scriptc/rs_math.rsh
s/scriptc/rs_types.rsh
d52498a64ff0bef28cd48ed28acd84a680a1d9b5 20-May-2010 Alex Sakhartchouk <alexst@google.com> Merge "Added benchmark mode. Added some image processing operations."
814326b3b945d61ea48d05e32899fb5a036cc2d3 20-May-2010 Alex Sakhartchouk <alexst@google.com> Added benchmark mode.
Added some image processing operations.

Change-Id: Ic7ba45fbf57eff6fc7d20377c148d0ba7ac862f7
s/java/ImageProcessing/AndroidManifest.xml
s/java/ImageProcessing/res/layout/main.xml
s/java/ImageProcessing/res/raw/threshold.rs
s/java/ImageProcessing/res/raw/threshold_bc.bc
s/java/ImageProcessing/res/values/strings.xml
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
s/java/ImageProcessing/src/com/android/rs/image/ScriptC_Threshold.java
db3be83ac6932eae7d77ead7a80c1fc8a6493fd6 19-May-2010 Jason Sams <rjsams@android.com> Merge "Split ScriptC Lib into CL, GL, and basic."
536923df75eb53a2c27e889526b200e170e45492 18-May-2010 Jason Sams <rjsams@android.com> Split ScriptC Lib into CL, GL, and basic.

Change-Id: Iadab35f2a967a1afd7a2fd13216d0a7acf4b6a50
s/Android.mk
s/rsScriptC.cpp
s/rsScriptC.h
s/rsScriptC_Lib.cpp
s/rsScriptC_LibCL.cpp
s/rsScriptC_LibGL.cpp
e0e9cb54346c182cd89314a07677b361227ce699 18-May-2010 Mathias Agopian <mathias@google.com> am f98b752a: am d633215b: Merge "add a few tests to SharedBufferStackTest" into kraken
35b1a93d1925fbae83c654e627647b66539b8d90 18-May-2010 Mathias Agopian <mathias@google.com> add a few tests to SharedBufferStackTest

Change-Id: I1c46c07aa1483aee4d4ebd8745638a2c462cc1b3
urfaceflinger_client/tests/SharedBufferStack/SharedBufferStackTest.cpp
d073c8a9ac1cbcee7c2a7e4955e68eda9140c8b2 18-May-2010 Mathias Agopian <mathias@google.com> am fdc1f4a7: am f75d738d: Merge "improve SharedBufferStack test" into kraken
c93ae7519c3c43aa2c9cd1b2638cf14c64af3cba 18-May-2010 Mathias Agopian <mathias@google.com> am 1e381015: am 88bcc1c6: Merge "fix a bug where queueBuffer() would fail after the SharedbufferStack is resized" into kraken
662be102ee3a89645ca60650a6094003f35894e0 18-May-2010 Mathias Agopian <mathias@google.com> improve SharedBufferStack test

Change-Id: I32683bfe0916918757280db89113595867acd5a7
urfaceflinger_client/tests/SharedBufferStack/SharedBufferStackTest.cpp
be6c8fc4d5f8144cbfc715da0d2ef3c704db279d 18-May-2010 Mathias Agopian <mathias@google.com> fix a bug where queueBuffer() would fail after the SharedbufferStack is resized

Change-Id: I12bf13a62018ce1349bab7be0b0cad7fad13fee8
urfaceflinger_client/SharedBufferStack.cpp
5e9987560f8385f5ea8e02e767505607fa99f687 18-May-2010 Mathias Agopian <mathias@google.com> am d4a5ea29: am 2b2529f2: Merge "fix some bugs in SharedBufferStack::resize" into kraken
c378dab087bc2fa6de339fd443194f8409b5df46 18-May-2010 Jason Sams <rjsams@android.com> Remove excess logging.

Change-Id: Ib4af6428c5fd87c3891f41eca6ca43d84f0edc97
s/rsProgramFragment.cpp
s/rsScriptC.cpp
cd30f4f849bb215509bd2645726048271b5db01e 18-May-2010 Mathias Agopian <mathias@google.com> fix some bugs in SharedBufferStack::resize

added buffers should now be labeled properly.

Change-Id: I28aa753fbe89ab89134e7753575319478934c7fa
urfaceflinger_client/SharedBufferStack.cpp
1de0b87168837cfcd9318bec5c97d2e7d78d3293 17-May-2010 Jason Sams <rjsams@android.com> Remove more pieces of setRoot. Add pointer to allocation lookup for scripts.

Change-Id: I2c3075d2056f02bb834bfad403dc72da991f3156
s/java/Film/src/com/android/film/FilmRS.java
s/rs.spec
s/rsScript.cpp
s/rsScriptC.cpp
s/rsScriptC.h
s/rsScriptC_Lib.cpp
s/scriptc/rs_math.rsh
38a9544825c6f3482237f9e29cddee58ebc093c3 17-May-2010 Eric Laurent <elaurent@google.com> am f62b6ff9: am eb8f850d: Fix issue 2553359: Pandora does not work well with Passion deskdock / Cardock.
e1d07bded7c443f70e3adab15cd3d10ffc0a4000 17-May-2010 Wu-cheng Li <wuchengli@google.com> am 8dc80423: am ae7ca4c3: Fix build error.
c3848824f85e774b582758b39df2f739007423ad 17-May-2010 Wu-cheng Li <wuchengli@google.com> am a3b5ff07: am e339c5ed: Add camera focus distances API.
2a466809dffb33314dcb8d791108c8de23104e46 17-May-2010 Mathias Agopian <mathias@google.com> am 2ff19fa9: am 4606d5dd: Merge "fix uninitialized variable in DisplayHardware" into kraken
eb8f850d0b7e53956e917fd9645f808c1a09bc88 14-May-2010 Eric Laurent <elaurent@google.com> Fix issue 2553359: Pandora does not work well with Passion deskdock / Cardock.

The problem is due to a too big difference between the buffer size used at the hardware interface and at the A2DP interface.
When no resampling occurs we don't notice problems but the timing is very tight. As soon as resampling is activated, the AudioTrack underruns.
This is because the AudioTrack buffers are not resized when moving the AudioTrack from hardware to A2DP output.
The AudioTrack buffers are calculated based on a hardware output buffer size of 3072 bytes. Which is much less than the A2DP output buffer size (10240).

The solution consists in creating new tracks with new buffers in AudioFlinger when the A2DP output is opened
instead of just transfering active tracks from hardware output mixer thread to the new A2DP output mixer thread.
To avoid synchronization issues between mixer threads and client processes, this is done by invalidating tracks
by setting a flag in their control block and having AudioTrack release the handle on this track (IAudioTrack)
and create a new IAudioTrack when this flag is detected next time obtainBuffer() or start() is executed.

AudioFlinger modifications:
- invalidate the tracks when setStreamOutput() is called
- make sure that notifications of output opening/closing and change of stream type to output mapping are sent synchronously to client process.
This is necessary so that AudioSystem has the new stream to output mapping when the AudioTrack detects the invalidate flag in the client process.
Previously their were sent when the corresponding thread loop was executed.

AudioTrack modifications:
- move frame count calculation and verification from set() to createTrack() so that is is updated every time a new IAudioTrack is created.
- detect track invalidate flag in obtainBuffer() and start() and create a new IAudioTrack.

AudioTrackShared modifications
- group all flags (out, flowControlFlag, forceReady...) into a single bit filed to save space.

Change-Id: I9ac26b6192230627d35084e1449640caaf7d56ee
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
udioflinger/AudioPolicyManagerBase.cpp
ae7ca4c32cb37ea82e77ad1462fbfcd4d6dfabd3 15-May-2010 Wu-cheng Li <wuchengli@google.com> Fix build error.

Original name INFINITY conflicts with the macro in math.h.

Change-Id: I9845ed84fca17813dd971239a902cc1e0bad1e3e
amera/CameraParameters.cpp
e339c5edbebedf446581f18ad70214007309bf4b 13-May-2010 Wu-cheng Li <wuchengli@google.com> Add camera focus distances API.

Applications can use this API to estimate the distance
between the subject and the camera.

bug:1955650
Change-Id: Ie6c8ea4971759cab6c9bcdda2c5ceb5925791c27
amera/CameraParameters.cpp
4606d5dd95b3dcf3a874f54e6d3d8d1ee95fcdca 15-May-2010 Mathias Agopian <mathias@google.com> Merge "fix uninitialized variable in DisplayHardware" into kraken
51c66aa4ce2797e21e880824e08de3b1228b3b0a 15-May-2010 Mathias Agopian <mathias@google.com> fix uninitialized variable in DisplayHardware

this fixes the issue where the display is all messed-up sometimes.

Change-Id: I20be91b5166bfff0c6d353a777351842c9df8e95
urfaceflinger/DisplayHardware/DisplayHardware.cpp
a250f20b02c85fd50dd0d7fb1290e7a95ea2893f 15-May-2010 Jason Sams <rjsams@android.com> Merge "Delete legacy setDefine API."
ec67275e5f7edb2fe4e6f76ab8b4e01e8990bc92 15-May-2010 Jason Sams <rjsams@android.com> Delete legacy setDefine API.

Change-Id: I1bae13533ab9efea3d3b0ebb6a3711343e922f8a
s/rs.spec
s/rsScriptC.cpp
c3ae11271dfe253de141608985ea49ee2cf830f4 15-May-2010 Jason Sams <rjsams@android.com> Merge "Delete old createFromClass methods. It no longer makes sense to create type info from Java since this cannot be exported to scripts. The new flow is in the opposite direction."
b42315d37ab22e64ef88d3aed38ed75fd7071eed 15-May-2010 Jason Sams <rjsams@android.com> Delete old createFromClass methods.
It no longer makes sense to create type info from Java since this
cannot be exported to scripts. The new flow is in the opposite direction.

Change-Id: I9b46e3f57abf84c01326bd9b9b834f3ff0f7c504
s/java/Film/src/com/android/film/FilmRS.java
71491ab2456182072589997e6ccd309c9b4acb5f 15-May-2010 Nick Kralevich <nnk@google.com> Merge "resolved conflicts for merge of cbf26fd3 to master"
ca4d143146a225a73ef402ea32f82edafc6ce2b7 15-May-2010 Jason Sams <rjsams@android.com> Merge "Change RS to use the passed surface size rather than EGL size. Its possible that during a resize the EGL information could be stale so caching this is bad. The surface size should always be correct."
963b0cdbaf206050fb537c21641c0ee26a48611e 15-May-2010 Nick Kralevich <nnk@google.com> resolved conflicts for merge of cbf26fd3 to master

Change-Id: I1feb7266c1d5cdebbfb8b8fa0d87d986953a20b6
f603d212552485c634e25f3556f847dc2b022bd5 15-May-2010 Jason Sams <rjsams@android.com> Change RS to use the passed surface size rather than EGL size.
Its possible that during a resize the EGL information could be stale so
caching this is bad. The surface size should always be correct.

Change-Id: Ifd479e1ea70b1cada1a8690c7c82e91aa391b685

Conflicts:

libs/rs/rsProgramStore.cpp
libs/rs/rsProgramStore.h
s/rsContext.cpp
s/rsContext.h
s/rsProgramFragment.cpp
s/rsProgramFragment.h
s/rsProgramRaster.cpp
s/rsProgramRaster.h
s/rsProgramStore.cpp
s/rsProgramStore.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsScript.cpp
bfb776acf20652801b88a53f362cb4e0ac517515 15-May-2010 Nick Kralevich <nnk@google.com> Merge "Get rid of warnings when compiled with -Wformat-security" into kraken
aa8da3dc405dca80c6aff71a7c17f883edea2814 15-May-2010 The Android Open Source Project <initial-contribution@android.com> am a8e0f75b: am 7450c02a: am 900b6157: merge from open-source master
7450c02a35d7c1f8580f906d6f1c1a11bc5c4fd0 15-May-2010 The Android Open Source Project <initial-contribution@android.com> am 900b6157: merge from open-source master

Merge commit '900b6157f5dee2ed7b2c73cf320b2baf293230ff' into kraken

* commit '900b6157f5dee2ed7b2c73cf320b2baf293230ff':
Only hold a weak pointer on SurfaceComposerClients
900b6157f5dee2ed7b2c73cf320b2baf293230ff 15-May-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I0249c6d796b35af9ba08cbccd463a1f5cf779ecd
84498a7ab57dd0ffc80bae600ff2b2f1c563c68d 14-May-2010 Chih-Chung Chang <chihchung@google.com> am 9c192e44: am 29f5d9b6: Merge "Fix deadlock if the last reference of ICameraClient is removed in ICamera::connect()" into kraken
29f5d9b61da0f496fc243edfc838f09a9b5c6eaf 14-May-2010 Chih-Chung Chang <chihchung@google.com> Merge "Fix deadlock if the last reference of ICameraClient is removed in ICamera::connect()" into kraken
03bb2b9651c466c2cc7143bfeda4f2344e33697d 14-May-2010 Eric Laurent <elaurent@google.com> am 10fde074: am 9f0810e8: Merge "AudioFlinger: rename variables to clarify reference to track channel count or channel mask" into kraken
b0a0147f344a2d26d86be2b1bdf5bfde50ef86c2 14-May-2010 Eric Laurent <elaurent@google.com> AudioFlinger: rename variables to clarify reference to track channel count or channel mask

Some variables and structure members should be renamed to reflect the fact that they contain the
number of channels in a track (channel count) or the actual channels used by a track (channel mask).
Especially member "channels" of track control block (struct audio_track_cblk_t) is actually the
number of channels (channels count).

Change-Id: I220c8dede9fc00c8a5693389e790073b6ed307b8
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
553447b8ff949618f299bba38ef04c2b6740f1d3 13-May-2010 Chih-Chung Chang <chihchung@google.com> Fix deadlock if the last reference of ICameraClient is removed in
ICamera::connect()

Change-Id: I34ab3e4f07435c62168175e9bb159022c8fb99f4
amera/Camera.cpp
54db59c3594e887a412a24713fc3daa1c2404593 14-May-2010 Jason Sams <rjsams@android.com> Rename ProgramFragmentStore to ProgramStore.

Change-Id: Ia8ad9ac856944838ced38a2f1e8f07387050bdfd
s/Android.mk
s/RenderScript.h
s/RenderScriptEnv.h
s/rs.spec
s/rsContext.cpp
s/rsContext.h
s/rsProgramFragmentStore.cpp
s/rsProgramFragmentStore.h
s/rsProgramStore.cpp
s/rsProgramStore.h
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC_Lib.cpp
ce2cbe4c9605bfc4843968ff6e9746d23643f031 13-May-2010 Nick Kralevich <nnk@google.com> Get rid of warnings when compiled with -Wformat-security

Change-Id: I63c3bf786bbe7a0276624e71a4ba80c4a9aaa4bb
s/rsProgram.cpp
s/rsScriptC.cpp
f6860f1979b30646e57d41c214b3a60e401abcd1 13-May-2010 Jason Sams <rjsams@android.com> Merge "Add missing bindProgramRaster to scriptC_lib."
6dd5f73e8c4c6380a67ccc166477a82993865562 13-May-2010 Eric Laurent <elaurent@google.com> am 06a237b0: am ca20104a: Merge "Fix issue 2678048: binder death detection in AudioFlinger is broken." into kraken
bd62a9eb6e517676a312534a4dca2918bf1c85c5 13-May-2010 Eric Laurent <elaurent@google.com> am 76a95619: am c247328d: Merge "Several fixes in AudioDumpInterface:" into kraken
ca20104a3ab0c10d570080e3d3b4ff94fedf60ee 13-May-2010 Eric Laurent <elaurent@google.com> Merge "Fix issue 2678048: binder death detection in AudioFlinger is broken." into kraken
c247328dfd86f7967846ffceb5ef99405dd22ab0 13-May-2010 Eric Laurent <elaurent@google.com> Merge "Several fixes in AudioDumpInterface:" into kraken
0c677318b54581d488ac6510b6b68e7772d7ab5a 13-May-2010 Jason Sams <rjsams@android.com> Add missing bindProgramRaster to scriptC_lib.

Change-Id: I06a7075a94ef907478f986b59ded4ff3e2766585
s/rsScriptC_Lib.cpp
b81f6c4c3fa044ad30e252906faa6cfb90b68d5b 13-May-2010 Mathias Agopian <mathias@google.com> am 19f64314: am 2f0e6753: Merge "SharedBufferStack now can grow up to 16 buffers." into kraken
55c97878c0c42ea59d2068a18a8e87ab376b7208 13-May-2010 Mathias Agopian <mathias@google.com> am e0630ae3: am 6a70cb8a: Merge "Refactor some code in surfaceflinger in preparation of upcoming changes" into kraken
74c932d9739f8c9cf119b512fa475cfc7748794e 13-May-2010 Mathias Agopian <mathias@google.com> am 32286409: am ca64ed6a: Merge "remove the "memcpy" hack" into kraken
2f0e6753d6c0d67e0e133105bf3fdc8596749412 13-May-2010 Mathias Agopian <mathias@google.com> Merge "SharedBufferStack now can grow up to 16 buffers." into kraken
6a70cb8a3813a60b92618892188bc4e2f9e0ab2c 13-May-2010 Mathias Agopian <mathias@google.com> Merge "Refactor some code in surfaceflinger in preparation of upcoming changes" into kraken
ca64ed6a8114f08e153b065cf429d006ab210f2b 13-May-2010 Mathias Agopian <mathias@google.com> Merge "remove the "memcpy" hack" into kraken
59751dbf7d8f12aeb5c4c07719b7dbbf1f9b5d4b 08-May-2010 Mathias Agopian <mathias@google.com> SharedBufferStack now can grow up to 16 buffers.

there is a new resize() api, which currently only allows growing.

Change-Id: Ia37b81b73be466d2491ffed7f3a23cd8e113c6fe
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger_client/ISurface.cpp
urfaceflinger_client/SharedBufferStack.cpp
urfaceflinger_client/Surface.cpp
9f2c4fd9a14ea79e4cbbd3ab8925794711a6411c 11-May-2010 Mathias Agopian <mathias@google.com> Refactor some code in surfaceflinger in preparation of upcoming changes

the new TextureMagager class now handle texture creation and upload
as well as EGL image creation and binding to GraphicBuffers. This is
used indirectly by Layer and directly by LayerBuffer

the new BufferManager class handles the set of buffers used for a
Layer (Surface), it abstracts how many buffer there is as well as
the use of EGLimage vs. regular texture ops (glTexImage2D).

Change-Id: I2da1ddcf27758e6731400f6cc4e20bef35c0a39a
urfaceflinger/Android.mk
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
urfaceflinger/TextureManager.cpp
urfaceflinger/TextureManager.h
urfaceflinger_client/SharedBufferStack.cpp
aca2ee8a7045e6b3d0399736d7d1adf7e1dbf825 11-May-2010 Mathias Agopian <mathias@google.com> remove the "memcpy" hack

this hack was used for gpus that don't support cached buffers
for s/w clients. currently we have no gpu with this issue.
this removes quite a bit of complexity.

Change-Id: I72564669f124f92805030e61983711f61c76b6d9
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/DisplayHardware/DisplayHardware.h
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
cdcc6a0061756d9d1e9a6e3801981a66dd152de2 13-May-2010 Kenny Root <kroot@google.com> am d6effb06: am e8621534: Merge "ZipUtilsRO rewrite based on Dalvik Zip rewrite" into kraken
e8621534db97070cc40f729d1eb8074f2e69df9d 12-May-2010 Kenny Root <kroot@google.com> Merge "ZipUtilsRO rewrite based on Dalvik Zip rewrite" into kraken
f355b34014a44623c46e5972f1cf7fca53ab1f7f 12-May-2010 Wu-cheng Li <wuchengli@google.com> am 9813a3a2: am b3390135: am d8c33747: am 78624e41: Add remove method in CameraParameters class.
fc1246640f1ac7f562c6a05ab34d7847ff8cca05 12-May-2010 Eric Laurent <elaurent@google.com> Several fixes in AudioDumpInterface:

- forward setMode() and getInputBufferSize() calls to underlying audio hardware interface.
- Allow capture of more than one output stream (previous implementation was only capturing
the first output opened, namely the hardware output).
- Allow capture of input streams: previous implementation was only simulating input streams
when more than one was open at a time by reading from a file on SD card). Now the default
behavior is to capture PCM data read from input stream if it was successfully opened or
simulate capture otherwise.

Change-Id: I7e2892b25e295fc3c19c7eb0f71bfaea5816b73a
udioflinger/AudioDumpInterface.cpp
udioflinger/AudioDumpInterface.h
b3390135890800b9c5f0ab58ae3af80ab200dd8e 12-May-2010 Wu-cheng Li <wuchengli@google.com> am d8c33747: am 78624e41: Add remove method in CameraParameters class.

Merge commit 'd8c33747afbe98e893e0569f3bf45b67a9e8e728' into kraken

* commit 'd8c33747afbe98e893e0569f3bf45b67a9e8e728':
Add remove method in CameraParameters class.
4f0f17d2f10ceb22c2e23b593bab434fc899ecb7 12-May-2010 Eric Laurent <elaurent@google.com> Fix issue 2678048: binder death detection in AudioFlinger is broken.

There is a bug in the way notification client list is managed when the client binder
interface dies that makes that the dead client is not removed from the list: the week
reference passed by binderDied() cannot be promoted and compared to the strong
references in the list.

The fix consists in creating a new NotificationClient class that implements the
binder DeathRecipient and holds a strong reference to the IAudioFlingerClient interface.
A new instance of this class is created for each cient and a strong reference to this
object is added to the notification client list maintained by AudioFlinger.
When binderDied() is called on this object, it is removed from the list preventing
AudioFlinger to notify this client for further io changes.

Also added code to disable LifeVibes effects when the client that has enabled the
enhancements dies.

Change-Id: Icedc4af171759e9ae9a575d82d44784b4e8267e8
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
68246dcec17c245a434dad70b778960dc5c84af1 23-Apr-2010 Kenny Root <kroot@google.com> ZipUtilsRO rewrite based on Dalvik Zip rewrite

Change the way zip archives are handled. This is necessary to deal with
very large (~1GB) APK files, for which our current approach of mapping
the entire file falls over.

We now do the classic scavenger hunt for the End Of Central Directory
magic on a buffer of data read from the file, instead of a memory-mapped
section. We use what we find to create a map that covers the Central
Directory only.

If the caller is interested in unpacking the file contents, we have to
do an additional file read to discover the size of the Local File Header
section so we can skip past it.

This is based on Change I745fb15abb in the dalvik tree. Both
implementations share a common ancestry, but the cost of unifying them
outweighs the benefits of wrapping C calls.

Change-Id: Iddacb50fe913917c2845708a530872d65fdbe620
tils/AssetManager.cpp
tils/ZipFileCRO.cpp
tils/ZipFileRO.cpp
4d3399337d18ef04116bc8a2e5799274655d0c30 11-May-2010 Jason Sams <rjsams@android.com> Convert renderscript from using ACC to LLVM for its compiler.

This will also require application to be updated to support
the new compiler and data passing models.

Change-Id: If078e3a5148af395ba1b936169a407d8c3ad727f
s/Android.mk
s/java/Film/src/com/android/film/FilmRS.java
s/java/Fountain/res/raw/fountain.c
s/java/Fountain/res/raw/fountain.rs
s/java/Fountain/res/raw/fountain2.rs
s/java/Fountain/res/raw/fountain_bc.bc
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/Fountain/src/com/android/fountain/ScriptC_Fountain.java
s/java/Fountain/src/com/android/fountain/ScriptField_Point.java
s/java/ImageProcessing/res/raw/threshold.rs
s/java/ImageProcessing/res/raw/threshold2.rs
s/java/ImageProcessing/res/raw/threshold_bc.bc
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
s/java/ImageProcessing/src/com/android/rs/image/ScriptC_Threshold.java
s/rs.spec
s/rsContext.cpp
s/rsContext.h
s/rsHandcode.h
s/rsProgramFragment.cpp
s/rsScript.cpp
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC.h
s/rsScriptC_Lib.cpp
s/rsUtils.h
s/scriptc/rs_geom.rsh
s/scriptc/rs_graphics.rsh
s/scriptc/rs_math.rsh
78624e41da166712aaa5ae47e4d3467337ac810a 10-May-2010 Wu-cheng Li <wuchengli@google.com> Add remove method in CameraParameters class.

bug:2672651
Change-Id: I537c817b5ca6a3d925f22febe9a5769156354d00
amera/CameraParameters.cpp
f0b8679b5d39490919823e6d80115e38744ef00c 11-May-2010 Wu-cheng Li <wuchengli@google.com> am 0c3bba3e: am e1b2b3b0: Merge "Add continuous focus mode constant." into kraken
e1b2b3b0d23c964470badb7faa2569b0fa0f182e 11-May-2010 Wu-cheng Li <wuchengli@google.com> Merge "Add continuous focus mode constant." into kraken
5705a886c693688d60417f8c995d1fd6f8266f33 10-May-2010 Mathias Agopian <mathias@google.com> am ef474f3f: am 4cfc21ec: am 56aed6bd: am c69775d6: Merge "fix [2664345] Flash: Bad flicker at the end of a pinch zoom." into froyo
4cfc21ecd914ac89a3160e5b19105b768546853f 10-May-2010 Mathias Agopian <mathias@google.com> am 56aed6bd: am c69775d6: Merge "fix [2664345] Flash: Bad flicker at the end of a pinch zoom." into froyo

Merge commit '56aed6bde0c52658d2cb1207c0cfe8ba0a764c59' into kraken

* commit '56aed6bde0c52658d2cb1207c0cfe8ba0a764c59':
fix [2664345] Flash: Bad flicker at the end of a pinch zoom.
ca099614841bc619f217dfa088da630a7eb1ab65 06-May-2010 Wu-cheng Li <wuchengli@google.com> Add continuous focus mode constant.

bug:2612447
Change-Id: I9bc3f5a47ad50722a265d50b1d28fb82a2253dc9
amera/CameraParameters.cpp
fdaa7790e8a81b165333e3cd7ecc7c238f53f6fa 10-May-2010 Chih-Chung Chang <chihchung@google.com> am c2ed1817: am e25cc656: Support multiple cameras in framework.
e25cc656392d8866e163f78b60c7791455d0fb44 06-May-2010 Chih-Chung Chang <chihchung@google.com> Support multiple cameras in framework.

Change-Id: I081f0fbdca4b633715ea7c3b3d42f8662d27598a
amera/Camera.cpp
amera/ICameraService.cpp
2df6f515675917a7a2812cf35faa5a1f47a6305f 07-May-2010 Mathias Agopian <mathias@google.com> fix [2664345] Flash: Bad flicker at the end of a pinch zoom.

the window manger puts SurfaceViews up before they have been
rendered into, because of that surfaceflinger doesn't have
anything ready to draw for that surface when an udpate occurs
and responds by filling the surface with black.
With this fix, we only fill those areas of the framebuffer
that would otherwise be undefined (no content at all).

in the Flash case, the "flash" window is not drawn at all
until it has some content, instead the underlaying browser
window is shown.

Change-Id: Ifb610f7f8c27b88edf83e09adc4803fc295c15a1
urfaceflinger/Layer.cpp
f486ccb7ad8bf0ff2f7138973037098be8e7ad72 07-May-2010 Dan Egnor <egnor@google.com> am 92f6eda5: am a269d195: am ca48c88c: am 8a8658a5: Merge "Make static versions of libutils and libbinder." into froyo
a269d195d41ced934d2153fd81fa69ffe7854740 07-May-2010 Dan Egnor <egnor@google.com> am ca48c88c: am 8a8658a5: Merge "Make static versions of libutils and libbinder." into froyo

Merge commit 'ca48c88c3d5733c4405a2fc4f7d9bb7fbba3d43f' into kraken

* commit 'ca48c88c3d5733c4405a2fc4f7d9bb7fbba3d43f':
Make static versions of libutils and libbinder.
08b3d2e5ef01a5114424a871934dd9fc153352c0 06-May-2010 Dan Egnor <egnor@google.com> Make static versions of libutils and libbinder.

Fix some small static-initialization-order issues (and a static-
initializers-missing issue) that result from doing so. The static
libraries don't actually get used for anything real at the moment --
they're used for perf tests of bug 2660235.

Bug: 2660235
Change-Id: Iee2f38f79cc93b395e8d0a5a144ed92461f5ada0
inder/Android.mk
inder/Binder.cpp
tils/Android.mk
tils/String8.cpp
168f4c0d20b260fe26c1b19ca44109026b2a42d6 01-May-2010 Mathias Agopian <mathias@google.com> am 8f227c96: am 3b91e13e: make sure the server-side validates pointers/indices visible on the client side
b6bac619fcfd34a51d72bff0d48c460f5c54262f 01-May-2010 Mathias Agopian <mathias@google.com> am 1bb8b670: Merge "Add support for enqueuing buffers in arbitrary order" into kraken
3b91e13ec7cdf7d607a221feda2eb0afc1e02050 30-Apr-2010 Mathias Agopian <mathias@google.com> make sure the server-side validates pointers/indices visible on the client side

Change-Id: I604f58d3fcd2d09ec7998123c627401081345cd6
urfaceflinger_client/SharedBufferStack.cpp
1bb8b670f99c1029def72ec408142077abd66cc4 30-Apr-2010 Mathias Agopian <mathias@google.com> Merge "Add support for enqueuing buffers in arbitrary order" into kraken
b638bd08b9fd4b98feac0207ec461e5c9d1c7144 29-Apr-2010 Mathias Agopian <mathias@google.com> am daedd81f: Merge "cleanup. waitForCondition() now uses polymorphsim instead of templtes" into kraken
9ab5edd2047b53acd7d62eadaca2e40ee333fb44 29-Apr-2010 Mathias Agopian <mathias@google.com> am 1d0fa397: Merge "fix a race condition in undoDequeue(), where \'tail\' could be computed incorrectly." into kraken
daedd81f089c296ac7355e9be47f1e4c6d645b04 29-Apr-2010 Mathias Agopian <mathias@google.com> Merge "cleanup. waitForCondition() now uses polymorphsim instead of templtes" into kraken
1d0fa397ce6c7f654fc3086e6267e1c611dd19ea 29-Apr-2010 Mathias Agopian <mathias@google.com> Merge "fix a race condition in undoDequeue(), where 'tail' could be computed incorrectly." into kraken
8640c1d0e55281530da58350ef54a881d5c51187 29-Apr-2010 Dianne Hackborn <hackbod@google.com> am 14cee9f6: New xlarge screen size.
14cee9f688c32d63d8521188e7422811629bb7c2 24-Apr-2010 Dianne Hackborn <hackbod@google.com> New xlarge screen size.

Not complete, only for experimentation at this point.

This includes a reworking of how screen size configurations are matched,
so that if you are on a larger screen we can select configurations for
smaller screens if there aren't any exactly matching the current screen.

The screen size at which we switch to xlarge has been arbitrarily
chosen; the compatibility behavior has not yet been defined.

Change-Id: I1a33b3818eeb51a68fb72397568c39ab040a07f5
tils/ResourceTypes.cpp
bfe7f0b12165a1ad4a73b6d8f013cb9e115a3c60 28-Apr-2010 Mathias Agopian <mathias@google.com> Add support for enqueuing buffers in arbitrary order

Also added a very simple SharedBufferStack unit test.

Change-Id: I253dbbe98a53c966b78d22d4d6dd59f8aefc8c40
urfaceflinger_client/SharedBufferStack.cpp
urfaceflinger_client/tests/Android.mk
urfaceflinger_client/tests/SharedBufferStack/Android.mk
urfaceflinger_client/tests/SharedBufferStack/SharedBufferStackTest.cpp
f590f702c8142fa5225a6d2ea6649515c1a2961f 28-Apr-2010 Mathias Agopian <mathias@google.com> cleanup. waitForCondition() now uses polymorphsim instead of templtes

the reason for the above change is that waitForCondition() had become
large over time, mainly to handle error cases, using inlines to
evaluate the condition doesn't buys us much anymore while it increases
code size.

Change-Id: I2595d850832628954b900ab8bb1796c863447bc7
urfaceflinger_client/SharedBufferStack.cpp
urfaceflinger_client/Surface.cpp
c54c12713b98f308f848d2eb9ed7ef28ecc62c55 28-Apr-2010 Mathias Agopian <mathias@google.com> fix a race condition in undoDequeue(), where 'tail' could be computed incorrectly.

in the undoDequeue() case, 'tail' was recalculated from 'available' and 'head'
however there was a race between this and retireAndLock(), which could cause
'tail' to be recalculated wrongly.

the interesting thing though is that retireAndLock() shouldn't have any impact
on the value of 'tail', which is client-side only attribute.
we fix the race by saving the value of 'tail' before dequeue() and restore it
in the case of undoDequeue(), since we know it doesn't depend on retireAndLock().

Change-Id: I4bcc4d16b6bc4dd93717ee739c603040b18295a0
urfaceflinger_client/SharedBufferStack.cpp
e5ba231b55e96411b862da34be37e0ff5f8856c7 22-Apr-2010 Mathias Agopian <mathias@google.com> am 9bce8737: more surfaceflinger cleanups
fb3c87f2f4423178cf8efc77099d17ae11000d29 22-Apr-2010 Mathias Agopian <mathias@google.com> am 33c8e2b8: Merge "better fix for [2420565] Surface.lockCanvas() updates the dirty region too often" into kraken
9bce8737f2f7581ade57445286aa150de051ff89 21-Apr-2010 Mathias Agopian <mathias@google.com> more surfaceflinger cleanups

get rid of the "fake rtti" code, and use polymorphism instead.
also simplify how we log SF's state (using polymorphism)

Change-Id: I2bae7c98de4dd207a3e2b00083fa3fde7c467922
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBlur.cpp
urfaceflinger/LayerBlur.h
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
urfaceflinger/LayerDim.cpp
urfaceflinger/LayerDim.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
a8a0aa8b922c45fb4633f51610f264a19f9bd825 22-Apr-2010 Mathias Agopian <mathias@google.com> better fix for [2420565] Surface.lockCanvas() updates the dirty region too often

Change-Id: I83438b40effd21538f1c74396dc665254b9d5ab6
urfaceflinger/Layer.cpp
urfaceflinger/LayerBase.cpp
urfaceflinger_client/SharedBufferStack.cpp
urfaceflinger_client/Surface.cpp
83512d4dfc06137bc2d9db0cb62644c54f41a771 21-Apr-2010 Mathias Agopian <mathias@google.com> DO NOT MERGE fix [2557396] Adreno200: glDrawTexi() doesn't work with height <= 16

don't use glDrawTexi() anymore

Change-Id: If71334de39114b0edce7771366f8d8dc26f6911e
urfaceflinger/LayerBase.cpp
345dd8ef83e6a1532135d7e32b5bf3c932077a94 21-Apr-2010 Mathias Agopian <mathias@google.com> am b834b38a: Merge "added setCrop() to android_native_window_t" into kraken
2ff1ef2c8eb182742b3c70cf2a0c9304e917c71c 21-Apr-2010 Mathias Agopian <pixelflinger@google.com> am 827cda45: Merge "add support for up to 16 buffers per surface" into kraken
b834b38a28660a46357e652ac2524e9947a13ba5 21-Apr-2010 Mathias Agopian <mathias@google.com> Merge "added setCrop() to android_native_window_t" into kraken
827cda456a469777c9da60b3aaf491049a999515 21-Apr-2010 Mathias Agopian <pixelflinger@google.com> Merge "add support for up to 16 buffers per surface" into kraken
62788470dff15027483f6e130fa9a77b6c53169a 21-Apr-2010 Mathias Agopian <mathias@google.com> am 360865e2: Merge "clean-up surfaceflinger a bit" into kraken
360865e26c1e6078a1d8363e469fc0ef2e05a159 21-Apr-2010 Mathias Agopian <mathias@google.com> Merge "clean-up surfaceflinger a bit" into kraken
e5c0a7b7810092a593ff386843927238c175bdbd 20-Apr-2010 Mathias Agopian <mathias@google.com> clean-up surfaceflinger a bit

get rid of the glDrawTexi path and use floating points instead of fixed point maths

Change-Id: I3aa9ce2dc082f702160e605a16ba5fe987cdf087
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/DisplayHardware/DisplayHardware.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBlur.cpp
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/Transform.cpp
urfaceflinger/Transform.h
73db44151f7580276f7aa4bbc70dcd92dfefa786 20-Apr-2010 Jean-Michel Trivi <jmtrivi@google.com> am bb331f73: am 0fabf2e8: am 8ccbd4ba: Merge "Fix bug 2604132 40s skip after undocking In case of A2DP write errors, there is an overflow in the calculation of the sleep duration to simulate the timing of a successful write." into froyo
bb331f7333b643794062a7c9e9eac329699f6502 20-Apr-2010 Jean-Michel Trivi <jmtrivi@google.com> am 0fabf2e8: am 8ccbd4ba: Merge "Fix bug 2604132 40s skip after undocking In case of A2DP write errors, there is an overflow in the calculation of the sleep duration to simulate the timing of a successful write." into froyo

Merge commit '0fabf2e81559106cb4aaf9e8ba45b0bed37d5eb8' into kraken

* commit '0fabf2e81559106cb4aaf9e8ba45b0bed37d5eb8':
Fix bug 2604132 40s skip after undocking
16a86ee30b70aea8c254b836c708f54a608d25f3 16-Apr-2010 Mathias Agopian <mathias@google.com> added setCrop() to android_native_window_t

hooked up the new method up to Surface.cpp
the actual crop is not implemented in SF yet

Change-Id: Ic6e313c98fd880f127a051a0ccc71808bd689751
urfaceflinger_client/SharedBufferStack.cpp
urfaceflinger_client/Surface.cpp
6bb5ebaa0305a30b5037f6533b3b989e0437d26c 06-Apr-2010 Mathias Agopian <pixelflinger@google.com> add support for up to 16 buffers per surface

also increase the dirtyregion size from 1 to 6 rectangles.
Overall we now need 27KiB process instead of 4KiB

Change-Id: Iebda5565015158f49d9ca8dbcf55e6ad04855be3
urfaceflinger_client/SharedBufferStack.cpp
2f22d35936d5e9dfaec529ebbe1fbd2a27e843d7 20-Apr-2010 Jean-Michel Trivi <jmtrivi@google.com> Fix bug 2604132 40s skip after undocking
In case of A2DP write errors, there is an overflow in the calculation
of the sleep duration to simulate the timing of a successful write.

Change-Id: Ic4e570aebf07fac69735aab1bbc2fc73512ee795
udioflinger/A2dpAudioInterface.cpp
20f5a2fa88f6312349d0b0fb0952475a7db58166 20-Apr-2010 Mathias Agopian <mathias@google.com> am 732c73e1: am 26f61635: am 0a4ab1b9: Merge "fix [2599939] "cannot play video" after open/close a video player a dozen of times" into froyo
732c73e1e76fef4f3857a1649b03021305639c3c 20-Apr-2010 Mathias Agopian <mathias@google.com> am 26f61635: am 0a4ab1b9: Merge "fix [2599939] "cannot play video" after open/close a video player a dozen of times" into froyo

Merge commit '26f6163557980062dbb203388b3d0794ee0d06f7' into kraken

* commit '26f6163557980062dbb203388b3d0794ee0d06f7':
fix [2599939] "cannot play video" after open/close a video player a dozen of times
92c3b393275e967f37162b40b3438c5616328372 20-Apr-2010 Mathias Agopian <mathias@google.com> fix [2599939] "cannot play video" after open/close a video player a dozen of times

get rid off the MAP_ONCE flag is MemoryHeapBase (as well as it's functionality),
this feature should not be used anymore.

the software renderer was incorrectly using the default ctor which set MAP_ONCE,
causing the leak. the software renderer itself is incorrectly used while coming
back from sleep.

Change-Id: I123621f8d140550b864f352bbcd8a5729db12b57
inder/IMemory.cpp
120c457672056280e5925589c4b19107a9ee814a 16-Apr-2010 android-build SharedAccount <android-build@google.com> manual merge

Change-Id: I235ae925559b5db6d64cc8f8b188704a84d7b6a2
67bbac844d3fda5c693464deddf349b80c5190a0 15-Apr-2010 Mathias Agopian <mathias@google.com> when a zero dimension buffer is allocated, turn the allocation into
a 1x1 buffer instead of Nx1 (or 1xN)

Change-Id: I27eeb15e83e13002dd9405f4e52b54f7dffc0fe7
i/GraphicBufferAllocator.cpp
141264fabb6fd89b71ed159c5ca290575e502680 15-Apr-2010 Mathias Agopian <mathias@google.com> am 24af70e8: am e7d5a2f9: am 45423465: Merge "fix [2594950] Flash: Zooming in on some content crashes the Nexus One and causes it to reboot (runtime restart)" into froyo
24af70e8bc1772324ade08299908a0b57730ef21 15-Apr-2010 Mathias Agopian <mathias@google.com> am e7d5a2f9: am 45423465: Merge "fix [2594950] Flash: Zooming in on some content crashes the Nexus One and causes it to reboot (runtime restart)" into froyo

Merge commit 'e7d5a2f9ae47d8ea8face3f1e451314ed36f4026' into kraken

* commit 'e7d5a2f9ae47d8ea8face3f1e451314ed36f4026':
fix [2594950] Flash: Zooming in on some content crashes the Nexus One and causes it to reboot (runtime restart)
967dce306267109a6e8aec408b65609ac5642a03 15-Apr-2010 Mathias Agopian <mathias@google.com> fix [2594950] Flash: Zooming in on some content crashes the Nexus One and causes it to reboot (runtime restart)

We now limit the size of the surface to the maximum size supported by the GPU.
On Nexus One this will 2048 -- it could be different on other devices.
Surface creation fails if the limit is exceeded.

Change-Id: I9ecfc2e9c58c9e283782b61ebfc6b590f71df785
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/DisplayHardware/DisplayHardware.h
urfaceflinger/Layer.cpp
62331ea9f1051b1dee7cc14c3004da974f52549f 10-Apr-2010 Wu-cheng Li <wuchengli@google.com> am 76fc56fb: am 926d9a89: am 08caa704: am c58b4232: Add SCENE_MODE_BARCODE and FOCUS_MODE_EDOF.
926d9a89ed1cd4636001387f98a980381f2eb5c5 10-Apr-2010 Wu-cheng Li <wuchengli@google.com> am 08caa704: am c58b4232: Add SCENE_MODE_BARCODE and FOCUS_MODE_EDOF.

Merge commit '08caa704ae6c1dd8434186fa2dc22b1d7f8a5f9c' into kraken

* commit '08caa704ae6c1dd8434186fa2dc22b1d7f8a5f9c':
Add SCENE_MODE_BARCODE and FOCUS_MODE_EDOF.
c58b42327df5fbc826e2fcc2674ab6db0edfcd92 29-Mar-2010 Wu-cheng Li <wuchengli@google.com> Add SCENE_MODE_BARCODE and FOCUS_MODE_EDOF.

bug:2544367
Change-Id: If122a7745e080f9e4bffb15dc4930d71f0421867
amera/CameraParameters.cpp
8e35fad15efa84cdc6755071fe5b7d14b539b75b 09-Apr-2010 Eric Laurent <elaurent@google.com> am 6bde88b9: am 2dc3da60: am 1921527c: am 9da7730d: Merge "Additional fix for isssue 2548710: Native AudioTrack resources never freed." into froyo
2dc3da60c43199a88ba10a7bc9c15bcd584fc757 09-Apr-2010 Eric Laurent <elaurent@google.com> am 1921527c: am 9da7730d: Merge "Additional fix for isssue 2548710: Native AudioTrack resources never freed." into froyo

Merge commit '1921527c8dbcb9f10683e43bca12648cb2c6e5b7' into kraken

* commit '1921527c8dbcb9f10683e43bca12648cb2c6e5b7':
Additional fix for isssue 2548710: Native AudioTrack resources never freed.
270d49a246c876dfda85b6d7d4576e722784f16d 09-Apr-2010 Mathias Agopian <mathias@google.com> am 88235a5e: am 672ea584: Merge "fix [2420565] Surface.lockCanvas() updates the dirty region too often" into kraken
380558bc5d61ab3dd73fc58ba4c70556062aa438 09-Apr-2010 Eric Laurent <elaurent@google.com> Additional fix for isssue 2548710: Native AudioTrack resources never freed.

This changes fixes the issue for the direct output thread that was not
addressed by commit 71f37cd8a175ee00635cb91506d6810fd02b5b51.

Change-Id: I1bbe26be5f444415dd97270e49257650f5d2858f
udioflinger/AudioFlinger.cpp
db3647ff4f1266e505e8d6406ba697b48d609a97 09-Apr-2010 Mathias Agopian <mathias@google.com> fix [2420565] Surface.lockCanvas() updates the dirty region too often

There was a bug where we were we could be reallocating buffers for no reason.

Change-Id: Ieb8a81a289da9339ab7faf987cd3a73428943c1a
urfaceflinger_client/Surface.cpp
d0964b3fdf546cdd00a319072353818ed8d56f08 23-Feb-2010 Matt Fischer <matt.fischer@garmin.com> Only hold a weak pointer on SurfaceComposerClients

Each process maintains an array of active SurfaceComposerClient
objects, so that they can be reused as new surfaces are parceled
across. When a SurfaceComposerClient is disposed, it will remove
itself from this list. However, because the list maintains a strong
reference on the object, a reference cycle is created, and the
client is never deleted.

This patch changes the list to maintain weak pointers on the clients
instead.

Change-Id: I93dc8155fe28b4e350366a3400cdf22a8c77cdd3
i/SurfaceComposerClient.cpp
325d32711f073e5601b21dd448e0173c8aca2f36 06-Apr-2010 Mathias Agopian <mathias@google.com> am 01bd2a2f: Merge "Make pixels prettier." into kraken
59962ce3b0d8b7efec2840accca8fb7a6066f2bd 06-Apr-2010 Mathias Agopian <mathias@google.com> Make pixels prettier.

Change-Id: If3b0774b70cbe943894c15ffa1da111ad887010f
urfaceflinger/SurfaceFlinger.cpp
7605fe92761b68a4593eb47ce813cc7cad16dd13 01-Apr-2010 Eric Laurent <elaurent@google.com> am 673e6720: am 110c432e: am 3fe1708d: Merge "Fix isssue 2548710: Native AudioTrack resources never freed." into froyo
71f37cd8a175ee00635cb91506d6810fd02b5b51 31-Mar-2010 Eric Laurent <elaurent@google.com> Fix isssue 2548710: Native AudioTrack resources never freed.

The problem is a bug in AudioFlinger::MixerThread::prepareTracks_l() that makes that even if the TrackHandle
is destroyed, the corresponding Track will remain active as long as frames are ready for mixing.
If the track uses shared memory (static mode) and the sound is looped, this track will play for ever.

The fix consists in removing the track from active list immediately if the track is terminated.

Change-Id: I4582aa1d981079ab79be442fb6185f5afaed5cf3
udioflinger/AudioFlinger.cpp
656f26a9a6794b5f42efe80f1990d955c9f8441c 31-Mar-2010 Dianne Hackborn <hackbod@google.com> am 2e41ffe7: am b19b6fec: am 966fcb81: Revert "fix [2542425] memory leak during video recording"
966fcb81eece9096040ccc185bb662335d3964cf 31-Mar-2010 Dianne Hackborn <hackbod@google.com> Revert "fix [2542425] memory leak during video recording"

This reverts commit 544592e14f8d7643238e40ba9879727497900f35.
tils/VectorImpl.cpp
958a8762ff26f15d6f516c85a52abc39b6563046 31-Mar-2010 Mathias Agopian <mathias@google.com> am 9bb4473f: am 65bfca37: am 544592e1: fix [2542425] memory leak during video recording
544592e14f8d7643238e40ba9879727497900f35 31-Mar-2010 Mathias Agopian <mathias@google.com> fix [2542425] memory leak during video recording

[Sorted|Keyed]Vector<TYPE> would leak their whole storage when resized
from the end and TYPE had trivial dtor and copy operators.

Change-Id: I8555bb1aa0863df72de27d67ae50e20706e90cf5
tils/VectorImpl.cpp
6f1765b3a1d6c04ff094fb237a81898d0a15e042 30-Mar-2010 Mathias Agopian <mathias@google.com> am 22db6f53: am 6874362a: am 04fdd180: Merge "fix [2542425] memory leak during video recording" into froyo
04fdd180cc64f2724c8b8598f1b8495fb1fa1d93 30-Mar-2010 Mathias Agopian <mathias@google.com> Merge "fix [2542425] memory leak during video recording" into froyo
d74145285373193af8584ac86ee73c7aea3e1600 29-Mar-2010 Mathias Agopian <mathias@google.com> fix [2542425] memory leak during video recording

Vector::sort() is using _do_copy() incorrectly; _do_copy() calls the
copy constructor, not the assignment operator, so we need to destroy
the "destination" before copying the item.

Change-Id: Iaeeac808fa5341a7d219edeba4aa63d44f31473c
tils/VectorImpl.cpp
a369ad03027281f58df68be19fe21d53441b70f8 29-Mar-2010 Wu-cheng Li <wuchengli@google.com> am 4d47e1b1: am 0ca25191: Add some comments for zoom methods.
0ca25191c663ef229f1f475b17899f2017ed6980 29-Mar-2010 Wu-cheng Li <wuchengli@google.com> Add some comments for zoom methods.

Also change RuntimeException to IllegalArgumentException.
bug:2458926

Change-Id: I87af31f5f3f10244131a1117bd1725c2d292b587
amera/ICamera.cpp
2d71bc7b4c46a32cead32a35e6e137d13e8315ea 27-Mar-2010 Jason Sams <rjsams@android.com> Update Script java classes and llvm samples.

Change-Id: I05c8d63fcca095d4fea6abb1ff5736ab9d78a3e6
s/java/Fountain/res/raw/fountain2.rs
s/java/ImageProcessing/res/raw/threshold2.rs
a70f416c9cf2fc6cc5e132c1d656ce07441d6b82 26-Mar-2010 Jason Sams <rjsams@android.com> Checkin new types for RS.

Change-Id: I3d7a1a91c45cc1c97c60f3615f32e54e98e12f91
s/scriptc/rs_geom.rsh
s/scriptc/rs_graphics.rsh
s/scriptc/rs_math.rsh
s/scriptc/rs_types.rsh
c1d726c2d62424867ec14f2cde16b00fe0ddfee1 18-Mar-2010 Jason Sams <rjsams@android.com> Seperate out Mutex and Signal code into reusable classes.

Change-Id: I381d09d89b567d433a10a91e0d7e59c24d3444d8
s/Android.mk
s/rsContext.cpp
s/rsContext.h
s/rsLocklessFifo.cpp
s/rsLocklessFifo.h
s/rsMutex.cpp
s/rsMutex.h
s/rsSignal.cpp
s/rsSignal.h
s/rsg_ScriptJavaClass.cpp
3cfae1bbf41e12fe2749c5f4a97507c19a8beb1b 26-Mar-2010 Jason Sams <rjsams@android.com> Merge "checkpoint animations"
dc5ce9c548533e0c149e7a5b2a0597f321905bef 25-Mar-2010 Mathias Agopian <mathias@google.com> fix [2545826] calling into gralloc with external lock held

Change-Id: I2d0e017382404c684c768a0dd0423d574213f10a
i/GraphicBufferAllocator.cpp
cfea8fda1291feab9b04a1c99824d1a3965782a8 25-Mar-2010 Chih-Chung Chang <chihchung@google.com> Call unlinkToDeath() when we disconnect the Camera,
so we don't hold the (weak) reference to it, which caused
(small) memory leaks.

Change-Id: If7d58a354fd38c8bc380946bf227b52988ac5118
amera/Camera.cpp
c2662bf9b98ff1dea1079f7fbf3aee9120aec4f1 20-Mar-2010 Mathias Agopian <mathias@google.com> Merge "libutils Condition are now PRIVATE by default"
a729f97e8bfba67a94b1cde26d0d78d84528de85 20-Mar-2010 Mathias Agopian <mathias@google.com> libutils Condition are now PRIVATE by default

Condition must be initialized with SHARED for the old behavior, where
they can be used accross processes.

Updated the two places android that require SHARED conditions.

PRIVATE conditions (and mutexes) use more efficient syscalls.

Change-Id: I9a281a4b88206e92ac559c66554e886b9c62db3a
urfaceflinger_client/SharedBufferStack.cpp
7182ef360498b7f45cc5253c167bd9975cfc5335 19-Mar-2010 Christopher Tate <ctate@google.com> Ensure that binder incalls to the system process keep the fg cgroup

On binder incalls, the handler thread is given the caller's priority by the
driver, but not the caller's cgroup. We have explicit code that sets the
handler's cgroup to match the caller's, *except* that the system process
explicitly disables this behavior. This led to a siuation in which we were
running binder incalls to the system process at nice=10 but cgroup=fg.

That's fine as far as it goes, except that if a GC happened in the handler
thread, it would be promoted to foreground priority and cgroup both, to avoid
having the GC take forever. Then, when GC finished, the original priority
is reset, and the cgroup set *based on that priority*. This would push the
handler thread into nice=10 cgroup=bg_non_interactive -- which matches the
caller, but is supposed to be impossible in the system process.

The end result of this was that we could be running "lengthy" operations in
the system process in the background. Unfortunately, some of the operations
that wound up like this would hold important global system locks for up to
twenty seconds as a result, making the entire device unresponsive to input
for that period.

This CL fixes the binder incall setup to ensure that within the system process,
a binder incall is always begun from the normal foreground priority as well
as cgroup. In practice now the device still becomes laggy/sluggish when the
offending lock-holding time-consuming incall occurs, but since it still runs
as a foreground task it is able to proceed to completion within a short time
rather than taking 20 seconds.

Fixes bug #2403717

Change-Id: Id046aeabd0e80c48eef94accc37842835eab308d
inder/IPCThreadState.cpp
5335600a2960d918793831914c84f962bf1cd134 19-Mar-2010 Jason Sams <rjsams@android.com> Change opaque RS typedefs from void * to int. These will likely become int64_t once proper support for >32bits is worked out.

Change-Id: Ic30240fe6c79170a0a88fd51185a1f01bd616c45
s/scriptc/rs_types.rsh
cb88ac9f53920e5362818d9477ccf652569a78ed 18-Mar-2010 Jason Sams <rjsams@android.com> Change global variables from extern to non static. Make script local global vars static.

Change-Id: I73656978e0f0ceeb927afef292fc4ed9755b7214
s/java/Fountain/res/raw/fountain2.rs
4ab7b236efd06f53b345a73d3c25d2ec714c861e 18-Mar-2010 Jason Sams <rjsams@android.com> More rsh headers for renderscript and a llvm compatible test script for fountain.

Change-Id: If5d682e549e6f849ba809619587feb58c1e4ed0a
s/java/Fountain/res/raw/fountain2.rs
s/scriptc/rs_graphics.rsh
4889fb75d463278241d5174baac05a41dbef25a8 17-Mar-2010 Eric Laurent <elaurent@google.com> Merge "Fix issue 2416481: Support Voice Dialer over BT SCO."
9c041bbd81789c209e2369ba958306979b67614f 17-Mar-2010 Mathias Agopian <mathias@google.com> fix [2511580] Window poop on screen - drop down list left some residual when it resized

Change-Id: Ib9a3622e7a568ba26717a93b5bfa4a191651f4d0
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/SurfaceFlinger.cpp
ef9500fe53b6ec67b610207832b52f8bfbb20cd5 11-Mar-2010 Eric Laurent <elaurent@google.com> Fix issue 2416481: Support Voice Dialer over BT SCO.

- AudioPolicyManager: allow platform specific choice for opening a direct output.
Also fixed problems in direct output management.
- AudioFliinger: use shorter standby delay and track inactivity grace period for direct output
thread to free hardware resources as soon as possible.
- AudioSystem: do not use cached output selection in getOutput() when a direct output
can be selected.

Change-Id: If44b50d29237b8402ffd7a5ba1dc43c56f903e9b
udioflinger/AudioFlinger.cpp
udioflinger/AudioPolicyManagerBase.cpp
41e6ce1e41491ecb5d09ee9224fa661ef8f4b262 16-Mar-2010 Jason Sams <rjsams@android.com> Merge "First cut of basic RS headers for ScriptC. Not nearly complete."
33bcfa210abe67ab4829ebc03f15ea87be626d6d 16-Mar-2010 Jason Sams <rjsams@android.com> First cut of basic RS headers for ScriptC. Not nearly complete.

Change-Id: I15df067936d3c0ff0e0917fd5ca44dc8e1352154
s/scriptc/rs_math.rsh
s/scriptc/rs_types.rsh
f468700b6dd02cf68d4424567a8288a24084f51a 11-Mar-2010 Jason Sams <rjsams@android.com> checkpoint animations

Change-Id: I14ef05bf56470565e4b0cb706f9fb358cdcb42ff
s/Android.mk
s/RenderScript.h
s/rs.spec
s/rsAllocation.cpp
s/rsAnimation.cpp
s/rsAnimation.h
s/rsContext.h
9e3d693b1895010f3a2dc1efaf11389da8557cb8 16-Mar-2010 Mathias Agopian <mathias@google.com> fix [2515291] Native crash and runtime restart while trying to preview captured picture on Sapphire

if a buffer couldn't be allocated because of an OOM, SF could, in some case dereference
a null pointer.

Change-Id: I5321248c38a21e56d5278b6aada2694e64451378
urfaceflinger/Layer.cpp
e4b8c4230128193ebaa93ebddf8378f2ca5b8430 13-Mar-2010 Jean-Michel Trivi <jmtrivi@google.com> Fix bug 2203203 Route STREAM_VOICE_CALL to A2DP when not in call.

Change-Id: I5581702780308658415dc4ad19fbe409fdc5c368
udioflinger/AudioPolicyManagerBase.cpp
2f7540e78f2a0952ddbbd9b953e186b90f401734 12-Mar-2010 Mathias Agopian <mathias@google.com> implement connect/disconnect in our native_window_t implementations

the framebuffer implementation doesn't do anything special with this
but the surfaceflinger implementation makes sure the surface is not used
by two APIs simultaneously.

Change-Id: Id4ca8ef7093d68846abc2ac814327cc40a64b66b
urfaceflinger_client/Surface.cpp
i/FramebufferNativeWindow.cpp
015b59756eecdbec46f9aeda620ad0de1c8c9a23 10-Mar-2010 Mathias Agopian <mathias@google.com> fix [2483456] Video orientation is wrong on Droid for some videos

Change-Id: I450191f1335f57bffc51aff3e27295395847dbc0
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/Transform.cpp
urfaceflinger/Transform.h
c57346035aa4ee2b08e4f8c5653923613d16250f 10-Mar-2010 Jean-Baptiste Queru <jbq@google.com> Merge "Use proper config to enable LVMX"
99c085bd5a34cfe4311f97beac5914cd51004522 10-Mar-2010 Jean-Baptiste Queru <jbq@google.com> Use proper config to enable LVMX

Change-Id: Ifa75a82884b99aeee139e055f40e7c510cf28213
udioflinger/Android.mk
cf244ada58539ce857ec041d7288d0271204fbb6 10-Mar-2010 Dianne Hackborn <hackbod@google.com> Add ability for some manifest attributes to reference resources.

This loosens our restriction on many manifest attributes requiring
literal string values, to allow various ones to use values from
resources. This is only allowed if the resource value does not change
from configuration changes, and the restriction is still in place
for attributes that are core to security (requesting permissions) or
market operation (used libraries and features etc).

Change-Id: I4da02f6a5196cb6a7dbcff9ac25403904c42c2c8
tils/ResourceTypes.cpp
871c16cec850c042c61aa06a7ffc0e1965867bcf 05-Mar-2010 Glenn Kasten <gkasten@google.com> Initial version of LifeVibes integration.
Also changed tabs to spaces in other audioflinger files.
udioflinger/Android.mk
udioflinger/AudioFlinger.cpp
udioflinger/AudioHardwareStub.cpp
udioflinger/AudioResampler.h
758559e6b7e310cf46cc269437f44decd58d68d6 09-Mar-2010 Jean-Michel Trivi <jmtrivi@google.com> Fix bug 2329540
Part 1 of the fix: when the user doesn't elect to use the car dock
for music and media, the APM was not aware of the device being
docked.
This is fixed by dissociating the notification for the APM of
the docking to the dock from the sink state change of the A2DP
device.
Also missing was forcing the volumes to be reevaluated whenever
the device is docked or undocked, as volumes for docks may
differ, even when the same output device is being used.

Change-Id: If5314e27821a71adbd6df6fdf887c45208241d96
udioflinger/AudioPolicyManagerBase.cpp
85b8d12207c12531d736c7ec836f10d1e6f448e4 09-Mar-2010 Mathias Agopian <mathias@google.com> improve SF logging/debugging a little bit

Change-Id: I6a57f89c25defc293fd748cc1fbd710031c02ec2
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/SurfaceFlinger.cpp
8d8a915a935378405fcf9978b83bd815ac5a265c 09-Mar-2010 Mathias Agopian <mathias@google.com> Merge "Fix a small bug where we could compute SharedBufferStack's tail incorrectly."
4119c543024b4ae647b22a2da1422f8848a6ef7a 09-Mar-2010 Mathias Agopian <mathias@google.com> Fix a small bug where we could compute SharedBufferStack's tail incorrectly.

Also add "tail" to the debug dump().

Change-Id: I04b1ea375dfc9ddcc22f0c6b6cd01300e507572e
urfaceflinger_client/SharedBufferStack.cpp
27dd40bc27815a2929a7791d17bd945f3c9a868c 09-Mar-2010 Wu-cheng Li <wuchengli@google.com> Merge "Add camera parameter string constant for "true"."
9e7b076cadc941feaa44838d39497537b8106ff0 09-Mar-2010 Mathias Agopian <mathias@google.com> Merge "fixes for [2474091] Saw Poor behaviour playing a video."
d9ef5d7f13be0e5e0f9cf0ea768742fd91636c8d 09-Mar-2010 Wu-cheng Li <wuchengli@google.com> Add camera parameter string constant for "true".

bug:2458926
Change-Id: I11eaae8ff031765e23f2627ded5873eabc09cead
amera/CameraParameters.cpp
1d211f8ee0b422a3a741c3f88246c7c72ce483b0 08-Mar-2010 Mathias Agopian <mathias@google.com> fixes for [2474091] Saw Poor behaviour playing a video.

- fix a bug when hacking video buffers into gralloc buffers
where the buffer size was incorrect this was causing the
"direct-form-texture" mode to fail

- also when the above fails, make sure to revert to the
"mdp copy mode" before going to "slow mode"

- finally disable completely the "direct-from-texture" mode
for now. It cannot work because the allocated buffers can't
respect the GPU constraints (alignment and such). We'll
have to find a solution for that.
urfaceflinger/Layer.cpp
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
fe2e075e07a4764857c48fbe9b5a11b4d6423f1d 07-Mar-2010 Eric Laurent <elaurent@google.com> Fix issue 2317760: Change the priority between wired headset and A2DP.

Modified audio policy manager so that wired headset has precedence over A2DP headset.
udioflinger/AudioPolicyManagerBase.cpp
29855801de083e82b76dee18e5e161d154bdb60c 06-Mar-2010 Eric Laurent <elaurent@google.com> Merge "Fix issue 2428563: Camera rendered inoperable by voice call interruption."
ba8811f5528404527b0cbad584a836f0b1807d26 03-Mar-2010 Eric Laurent <elaurent@google.com> Fix issue 2428563: Camera rendered inoperable by voice call interruption.

The problem is that AudioRecord never exits read() when a timeout occurs while trying
to get new PCM data from audio hardware input buffer: it just keeps waiting and retrying until stop() is called.
In the same time, opencore AndroidAudioInput::audin_thread_func() loop cannot be exited when stuck
in AudioRecord::read() because the iExitAudioThread flag can only be sampled when AudioRecord::read()
returns. We remain stuck with the audio input thread running.

The fix consists in modifying AudioRecord behavior in case of timeout when getting new PCM samples.
We now wait only one timeout period and try to restart audio record, in case the problem is due to a media_server
process crash. If this fails, we exit read() with a number of bytes read equals to 0 so that
AndroidAudioInput::audin_thread_func() loop can exit.

Also modified Audioflinger::RecordThread() loop so that we attempt to recover from HAL read errors.
In case of read error, the input stream is forced to standby so that next read attempt does a
reconfiguration and restart of the audio input device.
udioflinger/AudioFlinger.cpp
b776d5be97f64d90e5d28e46325a1c6ecff3179f 05-Mar-2010 Christopher Tate <ctate@google.com> Calculate bitmask array sizes correctly in the EventHub

We've gotten lucky to date: the previous calculation of bitmask array
sizes, (maxval+1)/8 only works properly when 'maxval' is one less than
a multiple of 8. Fortunately, this has either been the case for us,
or there has been sufficient 'unused' space at the end of the defined
max value range that we haven't wound up overreading/overwriting the
allocated buffers.

Change-Id: I563a93a86644ab9f19489565e06c28e06bb53abc
i/EventHub.cpp
4ff7e223a9507b95ffc58a188be20217f2b3c26e 05-Mar-2010 Christopher Tate <ctate@google.com> Fix #2489986 : The key bitmask needs to cover all possible keys

Change-Id: Ieebd2f879e6b6fbc0388655dd66f34be89e809a0
i/EventHub.cpp
20cb56e26e91df91bd64d4251222e0d421cdbe47 04-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix some bugs.

Bug #2376231: Apps lose window focus (and back key causes ANR) if the
lock screen is dismissed while the phone is in landscape mode

This is another case where we weren't recomputing the focused window
after changing the visibility policy.

bug #2479958: Investigate source of "Resources don't contain package
for resource number 0x7f0a0000"

Um, okay, so it turns out there were bugs all over the place where
we would load an XML resource from a another application, but not
use the Resources for that application to retrieve its resources...!
I think the only reason any of this stuff was working at all was
because it typically only cared about retrieving the resource
identifiers of the items (it would look up the values later).

Bug #2401082: Passion ERE26 monkey crash - InputMethodManagerService

Add some null checks.
tils/ResourceTypes.cpp
055c986ab841f8f758398841730f1e90313b132a 23-Feb-2010 Ray Chen <raychen@google.com> Add location provider name to gps-processing-method in EXIF header.
amera/CameraParameters.cpp
156cce698093023d9e79a4ff4fb96f4e4d3019db 03-Mar-2010 Jason Sams <rjsams@android.com> Improve RS error handling. On errors RS will now store the error and a message that can be read from the app. RS will then not continue rendering frames while an unchecked error is present until new state is received.
s/RenderScript.h
s/rs.spec
s/rsContext.cpp
s/rsContext.h
s/rsProgram.cpp
s/rsProgram.h
s/rsScript.cpp
s/rsScriptC.cpp
s/rsScriptC_Lib.cpp
s/rsShaderCache.cpp
s/rsShaderCache.h
s/spec.l
a2e92266b3f768f74ab7fcb42972a22d6c739b39 03-Mar-2010 Dianne Hackborn <hackbod@google.com> Maybe fix issue #2482201: Paired bluetooth device looks like a qwerty keyboard

We now only consider a device to be a default keyboard if its name
has "-keypad". A hack, but whatever.

Also add some debug logging for the input state to help identify such
issues in the future.
i/EventHub.cpp
6b1806b2d3dac4ac11c4c5d306320fcabf5fac1e 03-Mar-2010 Dima Zavin <dima@android.com> surfaceflinger: remove un-cached buffers hack for Adreno

Change-Id: I5ae4e74bfa3e25b55be2cddf7b3c51368a140ab9
Signed-off-by: Dima Zavin <dima@android.com>
urfaceflinger/DisplayHardware/DisplayHardware.cpp
47d0a9264fa5297db6333697ad750e6bc06822aa 26-Feb-2010 Eric Laurent <elaurent@google.com> Issue 2071329: audio track is shorter than video track for video capture on sholes

Add API to retrieve number of frames dropped by audio input kernel driver.

Submitted on behalf of Masaki Sato <masaki.sato@motorola.com>
udioflinger/AudioDumpInterface.cpp
udioflinger/AudioDumpInterface.h
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
udioflinger/AudioHardwareGeneric.h
udioflinger/AudioHardwareStub.h
ef05e076ced1a32c5c0aaee28403779834adb2ba 02-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2448075: aapt doesn't fix up activity-alias android:targetActivity links

And related:

- The aapt tool now sets a resource configurations sdk level to match any configs
that have been set (for example if you specify density your sdk level will be
at least 4).
- New option to modify the targetPackage attribute of instrumentation.
- Clean up of aapt options help.
- Fix of UI type values to leave 0 for "unspecified".
- Make the UI mode config APIs public.
tils/ResourceTypes.cpp
31901cc0b6f0c678be4f629c8c3405700e63c346 02-Mar-2010 Mathias Agopian <mathias@google.com> fix [2425395] portrait UI briefly shows in landscape

the "freeze" timeout was not initialized properly which caused it
to kick-in immediately instead of after 5s
urfaceflinger/SurfaceFlinger.cpp
5d26c1e38dabb3ad8b4b6e1000375f3b1a6b7693 02-Mar-2010 Mathias Agopian <mathias@google.com> Added a name to Surface created by SurfaceFlinger

Updated the window manager to use this new facility.
Surfaces name are now printed by "dumpsys".
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger_client/ISurfaceFlingerClient.cpp
urfaceflinger_client/SurfaceComposerClient.cpp
922a12e14d28bb7137c72acc73eecaf133ee02d1 02-Mar-2010 Ficus Kirkpatrick <ficus@android.com> Merge "Demote the famous ResourceTypes warning to LOGV."
56c0952a1f200665934a4d11975d0feb832f9908 02-Mar-2010 Ficus Kirkpatrick <ficus@android.com> Demote the famous ResourceTypes warning to LOGV.

It is spamming the log bigtime and can be promoted back to LOGW
or worse by whoever decides to actually investigate the bug.

Change-Id: I72d950155378f641ebdfbacabae774f5736a52bc
tils/ResourceTypes.cpp
108831a72c5ec7ca22c9e3697381e85f1a313276 02-Mar-2010 Jason Sams <rjsams@android.com> Merge "Add support for linking to a skia bitmap rather than always copying the data from the bitmap."
1549257d12d8c134c0671ae56981e2e40d471d05 02-Mar-2010 Jason Sams <rjsams@android.com> Merge "Support defered generation of mipmaps. With this change we support mipmap generation when the texture is uploaded to GL without requiring RS to retain the full chain."
053100e6b6fdb57dbea98f7adff48fd07455c00b 02-Mar-2010 Jason Sams <rjsams@android.com> Merge "Begin implementation of generated java files from RS files."
8cbb8f5e1f939b03515cb4d5942c3fcb226efb9e 01-Mar-2010 Wu-cheng Li <wuchengli@google.com> Unhide zoom API.

bug:2458926
amera/CameraParameters.cpp
8a64743f37ed35af7c2204acd18bb3d62d8f66d5 02-Mar-2010 Jason Sams <rjsams@android.com> Add support for linking to a skia bitmap rather than always copying the data from the bitmap.
s/RenderScript.h
s/rs.spec
s/rsAllocation.cpp
s/rsAllocation.h
022a43b15bb5de7544c72e073394c6ff5cfc3d47 27-Feb-2010 Mathias Agopian <mathias@google.com> to help debugging [2461567] Home screen redraw messed up

log SF's idea of the front buffer in dumpsys.
urfaceflinger/Layer.h
urfaceflinger/SurfaceFlinger.cpp
24b326a8978bf78e3e560723dde221792784325b 20-Feb-2010 Wu-cheng Li <wuchengli@google.com> Unhide exposure compensation API.

bug:2375993
amera/CameraParameters.cpp
bda568fb80a74bc965294572d94af6ff1486f73b 25-Feb-2010 Eric Laurent <elaurent@google.com> Merge "Fix issue 2327064: Music played via line out is interrupted due to the phone call audio on BT hs."
ce3e038ac96b0460c4fd760439ae6b886918e33d 24-Feb-2010 Eric Laurent <elaurent@google.com> Fix issue 2327064: Music played via line out is interrupted due to the phone call audio on BT hs.

This is not a real fix for the issue but a change to make sure that the behavior is consistent regardless of
external condidions (WIFI ON or OFF, music started before call or not, A2DP device same as SCO device...).

As there is now way to guaranty good quality audio over both SCO and A2DP simultaneously, especially when WIFI is on, We will stick to this behavior:
When music is playing and we are docked to the desk dock and a call is answered with a BT SCO headset, A2DP output will be suspended.
If music is restarted during the call, it will appear muted to the user until the call is terminated.
udioflinger/AudioPolicyManagerBase.cpp
9ff1f96fdf1c88c55c45e0876b10a3a9686dc28a 24-Feb-2010 Kenny Root <kroot@google.com> Merge "Use UTF-8 strings to avoid duplicate caching, part 1"
8bb2103416cab84b96d1a911cfb3cf70ce88e0b2 24-Feb-2010 Eric Laurent <elaurent@google.com> Merge "Fix issue 2305382: Pick up original call makes a noisy beep when wired headset connected."
c2908e60c9b021fb4bb69acff8d49981dd4dade8 24-Feb-2010 Jason Sams <rjsams@android.com> Support defered generation of mipmaps. With this change we support mipmap generation when the texture is uploaded to GL without requiring RS to retain the full chain.
s/rs.spec
s/rsAllocation.cpp
s/rsAllocation.h
s/rsScriptC_Lib.cpp
7eecbf2085bcfe475daf68090a1a4f47fbb6ec72 24-Feb-2010 Jason Sams <rjsams@android.com> Begin implementation of generated java files from RS files.
s/RenderScript.h
s/rsg_ScriptJavaClass.cpp
s/rsg_generator.c
80bd6a16379a009fbad697fe1c4ffabe0f2630ff 23-Feb-2010 Mathias Agopian <mathias@google.com> Merge "remove a dependency of surfaceflinger on libskia"
22e1ca3fc59acebd05af0225b1eaed0122bc30d2 23-Feb-2010 Eric Laurent <elaurent@google.com> Fix issue 2305382: Pick up original call makes a noisy beep when wired headset connected.

The noise is the residual ring tone that is still playing while the call is answered and the
audio route changed to headset or earpiece.

The fix consists in muting the ringing tone when changing mode from ringtone to in call
and delaying the route change until the audio buffers are emptied.
udioflinger/AudioPolicyManagerBase.cpp
780d2a1b714724d85227141c76b3c64f543f00b4 23-Feb-2010 Kenny Root <kroot@google.com> Use UTF-8 strings to avoid duplicate caching, part 1

StringBlock instances containing UTF-8 strings use a cache to convert
into UTF-16, but using that cache and then using a JNI call to NewString
causes the UTF-8 string as well as two copies of the UTF-16 string to
be held in memory. Getting the UTF-8 string directly from the StringPool
eliminates one copy of the UTF-16 string being held in memory.

This is part 1. Part 2 will include ResXMLParser optimizations.

Change-Id: Ibd4509a485db746d59cd4b9501f544877139276c
tils/ResourceTypes.cpp
8c20ca39c1248bc876ab164b37ae36261c86ad98 22-Feb-2010 Mathias Agopian <mathias@google.com> remove a dependency of surfaceflinger on libskia

libskia was only used for a small part of SkTransform. We now implement
Transform is surfaceflinger directly.
urfaceflinger/Android.mk
urfaceflinger/LayerBase.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/Transform.cpp
urfaceflinger/Transform.h
2978bfc6ad79c8f1138d34a704ce5b3d3d70d2c1 23-Feb-2010 Jason Sams <rjsams@android.com> beging np2 extension check work.
s/rsContext.cpp
s/rsContext.h
s/rsProgramFragment.cpp
s/rsSampler.cpp
s/rsSampler.h
s/rsType.cpp
s/rsType.h
c86727f5805f28fbd25da141c50fb6843f364f3a 12-Feb-2010 Mathias Agopian <mathias@google.com> remove a dependency of GraphicBuffer (libui) on Parcel (libbinder).

Add a Flattenable interface to libutils which can be used to flatten
an object into bytestream + filedescriptor stream.
Parcel is modified to handle Flattenable. And GraphicBuffer implements
Flattenable.

Except for the overlay classes libui is now independent of libbinder.
inder/Parcel.cpp
urfaceflinger_client/ISurface.cpp
i/GraphicBuffer.cpp
tils/Android.mk
tils/Flattenable.cpp
ed2ab7f1062e002053e5a9d8c73672b74268dcbb 20-Feb-2010 Mathias Agopian <mathias@google.com> Initialize layer position
urfaceflinger/LayerBase.cpp
bf31ed256a058310df657b072c685d60f48923d0 19-Feb-2010 Jason Sams <rjsams@android.com> Merge "Add test pattern icon to Fountain."
c2cb25d49534cc05d114332b09dbeb36480348a3 19-Feb-2010 Jason Sams <rjsams@android.com> Add test pattern icon to Fountain.
s/java/Fountain/AndroidManifest.xml
s/java/Fountain/res/drawable/test_pattern.png
eba3bb06a8018bc12510a266cadc267d2163e949 18-Feb-2010 Mathias Agopian <mathias@google.com> Merge "Remove a dependency of Region (libui) on Parcel (libbinder)."
e59a54c0edc65f6092a62a137226ddf540361022 18-Feb-2010 Mathias Agopian <mathias@google.com> Remove a dependency of Region (libui) on Parcel (libbinder).
urfaceflinger_client/LayerState.cpp
i/Region.cpp
e4c487a75282e8a38a8b3defd49e7799c8670881 18-Feb-2010 Jason Sams <rjsams@android.com> Implement type collapsing for Elements and Types. Now if a user creates two or more identical objects we simply reuse the existing object rather than create a new one.
s/rsElement.cpp
s/rsElement.h
s/rsObjectBase.cpp
s/rsObjectBase.h
s/rsProgramVertex.cpp
s/rsType.cpp
s/rsType.h
102f49f361b9d8d780b0f683f417f8c02a4e25f3 17-Feb-2010 Mathias Agopian <mathias@google.com> fix a bug I introduced recently where YUV formats would crash the system
i/PixelFormat.cpp
8f2423e8f394ae0666f1b61f83df4c0c7a4782d9 17-Feb-2010 Mathias Agopian <mathias@google.com> get rid off the YUV formats at the libui layer
urfaceflinger/Layer.cpp
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
i/PixelFormat.cpp
be16be13c6f03e5e94fc442ba6a95e420e1a0fef 16-Feb-2010 Mathias Agopian <mathias@google.com> Merge "minor cleanup."
08956f04c628bd4d15c26b06af5beecf167deefd 13-Feb-2010 Mathias Agopian <mathias@google.com> minor cleanup.
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
6f8a3dfa6bda25d98e9a3001c046496575212648 13-Feb-2010 Jason Sams <rjsams@android.com> Merge "Add comment block matching the type defines added by RS."
941533186c70d80c014859d3f09b518d31f535bf 13-Feb-2010 Jason Sams <rjsams@android.com> Add comment block matching the type defines added by RS.
s/java/ImageProcessing/res/raw/threshold.rs
a9886c580b299984e62303a995bf7b13276b5bc8 12-Feb-2010 Kenny Root <kroot@google.com> Totally remove Unicode.cpp and rely on ICU

Unicode.cpp used a packed data table for character data that essentially
duplicated ICU's functionality.

Change-Id: Ia68fe4ac94e89dc68d9a3f45f33f6e648a5500b7
tils/Android.mk
tils/CharacterData.h
tils/Unicode.cpp
7f66d6e63dc79709ea308440ec57906980046531 12-Feb-2010 Mathias Agopian <mathias@google.com> Merge changes I128ce4b2,I5cbb940c

* changes:
real fix for [2440014] launcher2 crashing in loop during boot
Revert "Revert "RenderScript should not depend on libsurfaceflinger_client.so""
128ce4b24ad0ee2c2ed56af9a0d800d7dc6111c0 12-Feb-2010 Mathias Agopian <mathias@google.com> real fix for [2440014] launcher2 crashing in loop during boot

Surface* cannot be casted to void* and then to android_native_window_t*
s/rs.spec
s/rsContext.cpp
564bfc27f253694183f5972cdda6357c66bd7bbd 12-Feb-2010 Kenny Root <kroot@google.com> Excise code from Unicode.cpp that was dead

Remove some utility functions for discovering character data
that ICU probably took over a while ago.

Change-Id: I97abe4de2f51eb2bf48679941258bc501184c3dc
tils/CharacterData.h
tils/Unicode.cpp
5cbb940cf6b1fd2b44d66bc40e5c3e8429bbd741 12-Feb-2010 Mathias Agopian <mathias@google.com> Revert "Revert "RenderScript should not depend on libsurfaceflinger_client.so""

This reverts commit a0659aa36c987e28e29778bd97e75fe52152c60e.
s/rsContext.cpp
s/rsContext.h
a0659aa36c987e28e29778bd97e75fe52152c60e 12-Feb-2010 Jack Palevich <jackpal@google.com> Revert "RenderScript should not depend on libsurfaceflinger_client.so"

This reverts commit 88b55fb090ace1a835f890758866f42f03795c12.
s/rsContext.cpp
s/rsContext.h
0b9bbb6dc5d7dabecf23e8c6bb4a267ba8c34fe8 12-Feb-2010 Jason Sams <rjsams@android.com> DO NOT MERGE. Merge Froyo renderscript to Eclair to support live wallpapers on droid. This gives the necessary CPU reduction to allow the wallpapers to work on the slower CPU.

Committer: Jason Sams <rjsams@android.com>

On branch droid
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)

modified: libs/rs/rsAllocation.cpp
modified: libs/rs/rsAllocation.h
modified: libs/rs/rsContext.cpp
modified: libs/rs/rsContext.h
modified: libs/rs/rsProgram.cpp
modified: libs/rs/rsProgram.h

Delete the old rollo sample which is obsolete.

Fix film init

Begin gl2 support. Renderscript still uses GL1.1 by default. However, 2.0 can be enabled and will render most tests correctly.

Fix film

Beging GL2 user shaders. Switch master to using GL2 by default.

Implement RS tracked defered texture and buffer object uploads.

Committer: Jason Sams <rjsams@android.com>

On branch droid
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)

modified: libs/rs/rsAllocation.cpp
modified: libs/rs/rsAllocation.h
modified: libs/rs/rsContext.h
modified: libs/rs/rsProgramFragment.cpp
modified: libs/rs/rsSimpleMesh.cpp

Remove check for surface valid that is no longer valid.

Continue development of es2.0 user shader support for renderscript. This change cleans up ProgramVertex creation and adds support for passing input, output, and constant type info.

Continue es2 shader dev

Conflicts:

graphics/java/android/renderscript/Program.java
graphics/java/android/renderscript/ProgramVertex.java

Place shader logging behind prop to declutter logs.

Fix emulated glColor in es2 mode.

Fix live wallpaper many. Z coordinate was being ignored for draw quad call.

Add argument checking to sampler builder to disallow illegal modes.

Move texture bindings to base program object. Change ProgramFragment creation to require a texture format in 1.0 mode.

Element restructuring. Add support for new basic Element types including the RS objects and vectors(2-4). In theory this paves the way for maintaining type info for RS objects, passing elements for GLSL uiforms/attribs/varyings, and supporting nested structures.

This will break some apps, checkings for other projects will follow to unbreak them.

Disable excessive RS logging.

Add RS support for generic attribs as input to vertex programs.

More complete support for named attribs. Adds user typed attribs as available to programVertex. Non user attribs are not treated like user for GL2 for simplicity.

Support npot on es 2.0 HW.

Change user attribs to look for empty slot rather than using them in order. Prevents conflict with numbered legacy slots.

Fix npot but where mipmap level sizes were rounding in the wrong direction. Should always be floor.

Implement type generation for user uniforms in vertex shader.

Remove excessive logging, fix error in GLSL uniform generation.

Fix RS mipmap generation for 8 bit alpha textures.

Cleanup seperation of Legacy and user attribs. All user programs now use the new names. Legacy vertex attribs are given default names.

Fix some minor bugs with GL state setup that were exposed by Droids driver.

Implement drawSpriteCropped on es2.0
s/Android.mk
s/RenderScript.h
s/RenderScriptEnv.h
s/java/Film/src/com/android/film/FilmRS.java
s/java/Film/src/com/android/film/FilmView.java
s/java/Fountain/res/raw/fountain.c
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/Fountain/src/com/android/fountain/FountainView.java
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
s/java/Rollo/Android.mk
s/java/Rollo/AndroidManifest.xml
s/java/Rollo/res/drawable/test_pattern.png
s/java/Rollo/res/raw/browser.png
s/java/Rollo/res/raw/calendar.png
s/java/Rollo/res/raw/g1155.png
s/java/Rollo/res/raw/g2140.png
s/java/Rollo/res/raw/maps.png
s/java/Rollo/res/raw/market.png
s/java/Rollo/res/raw/path1920.png
s/java/Rollo/res/raw/path1927.png
s/java/Rollo/res/raw/path3099.png
s/java/Rollo/res/raw/path3950.png
s/java/Rollo/res/raw/path431.png
s/java/Rollo/res/raw/path4481.png
s/java/Rollo/res/raw/path5168.png
s/java/Rollo/res/raw/path676.png
s/java/Rollo/res/raw/path754.png
s/java/Rollo/res/raw/path815.png
s/java/Rollo/res/raw/photos.png
s/java/Rollo/res/raw/polygon2408.png
s/java/Rollo/res/raw/rollo.c
s/java/Rollo/res/raw/rollo2.c
s/java/Rollo/res/raw/settings.png
s/java/Rollo/src/com/android/rollo/Rollo.java
s/java/Rollo/src/com/android/rollo/RolloRS.java
s/java/Rollo/src/com/android/rollo/RolloView.java
s/rs.spec
s/rsAllocation.cpp
s/rsAllocation.h
s/rsComponent.cpp
s/rsComponent.h
s/rsContext.cpp
s/rsContext.h
s/rsElement.cpp
s/rsElement.h
s/rsFileA3D.cpp
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramFragment.cpp
s/rsProgramFragment.h
s/rsProgramFragmentStore.cpp
s/rsProgramFragmentStore.h
s/rsProgramRaster.cpp
s/rsProgramRaster.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsSampler.cpp
s/rsSampler.h
s/rsScriptC.cpp
s/rsScriptC_Lib.cpp
s/rsShaderCache.cpp
s/rsShaderCache.h
s/rsSimpleMesh.cpp
s/rsSimpleMesh.h
s/rsType.cpp
s/rsType.h
s/rsVertexArray.cpp
s/rsVertexArray.h
88b55fb090ace1a835f890758866f42f03795c12 11-Feb-2010 Mathias Agopian <mathias@google.com> RenderScript should not depend on libsurfaceflinger_client.so
s/rsContext.cpp
s/rsContext.h
000479f9e325b4e426a67033abd92d47da412725 10-Feb-2010 Mathias Agopian <mathias@google.com> split libsurfaceflinger_client and libcamera_client out of libui
amera/Android.mk
amera/Camera.cpp
amera/CameraParameters.cpp
amera/ICamera.cpp
amera/ICameraClient.cpp
amera/ICameraService.cpp
s/rsContext.cpp
s/rsContext.h
urfaceflinger/Android.mk
urfaceflinger/Layer.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBlur.h
urfaceflinger/SurfaceFlinger.h
urfaceflinger/tests/overlays/Android.mk
urfaceflinger/tests/overlays/overlays.cpp
urfaceflinger/tests/resize/Android.mk
urfaceflinger/tests/resize/resize.cpp
urfaceflinger_client/Android.mk
urfaceflinger_client/ISurface.cpp
urfaceflinger_client/ISurfaceComposer.cpp
urfaceflinger_client/ISurfaceFlingerClient.cpp
urfaceflinger_client/LayerState.cpp
urfaceflinger_client/SharedBufferStack.cpp
urfaceflinger_client/Surface.cpp
urfaceflinger_client/SurfaceComposerClient.cpp
i/Android.mk
i/Camera.cpp
i/CameraParameters.cpp
i/FramebufferNativeWindow.cpp
i/ICamera.cpp
i/ICameraClient.cpp
i/ICameraService.cpp
i/ISurface.cpp
i/ISurfaceComposer.cpp
i/ISurfaceFlingerClient.cpp
i/LayerState.cpp
i/SharedBufferStack.cpp
i/Surface.cpp
i/SurfaceComposerClient.cpp
8dd9ca3e971c6f69b58ca201a313c61f94fa93ef 11-Feb-2010 Jason Sams <rjsams@android.com> Change default mode.
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
586f3b5d32c0464a4e69c92f89865eea672ab665 11-Feb-2010 Jason Sams <rjsams@android.com> Add java benchmark to imageProcessing.
s/java/ImageProcessing/res/raw/threshold.rs
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
1d317d1453348d66e41c8b677a27340803139d4b 11-Feb-2010 Jason Sams <rjsams@android.com> Cleanup image processing example script.
s/java/ImageProcessing/res/raw/threshold.rs
a5cbed967d98926a89c8da6ea76635a9c597e579 11-Feb-2010 Jason Sams <rjsams@android.com> Merge "Fix ImageProcessing example."
ec2746c33f10d4cd24823d217fa26a4b9f3eab76 11-Feb-2010 Jason Sams <rjsams@android.com> Fix ImageProcessing example.
s/java/ImageProcessing/res/raw/threshold.rs
ca35953c9064114cb09181e8bffddb2f7c2d8d53 10-Feb-2010 Wu-cheng Li <wuchengli@google.com> Merge "Remove some logs."
ca9d9dc8271017e60e3a0e477e416283433e721c 10-Feb-2010 Wu-cheng Li <wuchengli@google.com> Remove some logs.
i/Camera.cpp
i/ICamera.cpp
be14332227f1265fb5196ed3f38fb6a2a1e0a39d 10-Feb-2010 Wu-cheng Li <wuchengli@google.com> Merge "Add exposure compensation parameter."
b687581d4cf67fe8f25bac4333b513bcba2f3cb2 10-Feb-2010 Jason Sams <rjsams@android.com> Merge "Preview seperating RenderScript into RenderScript and RenderScriptGL"
704ff64b099406bb328898a7443921f22dbffd6d 10-Feb-2010 Jason Sams <rjsams@android.com> Preview seperating RenderScript into RenderScript and RenderScriptGL
s/RenderScript.h
s/java/Film/src/com/android/film/FilmRS.java
s/java/Film/src/com/android/film/FilmView.java
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/Fountain/src/com/android/fountain/FountainView.java
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
s/rsContext.cpp
s/rsContext.h
ba637f87367878b1cebaf1b23a62f077e9c8006f 10-Feb-2010 Mathias Agopian <mathias@google.com> Merge "Add support for physically rotated displays"
ff723b6c43d5a8fd0ae0e0732f5d47012d74e01d 09-Feb-2010 Wu-cheng Li <wuchengli@google.com> Add exposure compensation parameter.

bug:2375993
i/CameraParameters.cpp
5bec3aa2c6bcde7f81ca77b0887296bf05a745c8 09-Feb-2010 Jason Sams <rjsams@android.com> Fix fountain and put the demos back in the optional build.
s/Android.mk
s/rsVertexArray.cpp
66c77a5b42517b15c933431e12445b856d804ce5 09-Feb-2010 Mathias Agopian <mathias@google.com> Add support for physically rotated displays

This feature is currently controled by a system property.
"ro.sf.hwrotation" can be set to either 90 or 270. It'll cause
SF to rotate the screen by 90 and 270 degres respectively.

That is, if the driver reports 800x480 for instance, and
ro.sf.hwrotation is set to 90, applications will "see" a
480x800 display and will run in portrait.

This is implemented by introducing an extra "display"
transformation in the GraphicPlane.
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
fcdd394f3b25e336a3ff55960b695bc0943d4d3d 05-Feb-2010 Mathias Agopian <mathias@google.com> Add support for direct EGLImageKHR use with pushbuffer API

We now always first try to use the EGLImageKHR directly before
making a copy with copybit. The copy may be needed when
EGLImage doesn't support the requested format, which is
currently the case with YUV.
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
7eae31cab43a36b6feccf523f212968619abe599 31-Jan-2010 Wu-cheng Li <wuchengli@google.com> Add float support for set and get in CameraParameters.

bug:2375989
bug:2375987
i/CameraParameters.cpp
6c8d2760736a0753dad96b4bb8f98c7d075e6d54 27-Jan-2010 Wu-cheng Li <wuchengli@google.com> Add focal length and view angle API.

bug:2375989,2375987
i/CameraParameters.cpp
6faf7893b6307a3295993380d61af49f2cda965c 26-Jan-2010 Mathias Agopian <mathias@google.com> Simplify the MemoryDealer implementation

At some point the implementation became complicated because of
SurfaceFlinger's special needs, since we are now relying on gralloc
we can go back to much simpler MemoryDealer.

Removed HeapInterface and AllocatorInterface, since those don't need
to be paramterized anymore. Merged SimpleMemory and Allocation.
Made SimplisticAllocator non virtual.

Removed MemoryDealer flags (READ_ONLY, PAGE_ALIGNED)

Removed a lot of unneeded code.
udioflinger/AudioFlinger.cpp
inder/MemoryDealer.cpp
inder/MemoryHeapPmem.cpp
f145108a68bf4123ae03544d80ce4fef84320005 28-Jan-2010 Eric Laurent <elaurent@google.com> Remove verbose log from AudioPolicyManagerBase.
udioflinger/AudioPolicyManagerBase.cpp
2060b637f793c1ac969aad85ab0b8e27351ab711 27-Jan-2010 Jason Sams <rjsams@android.com> Merge "Fix some minor bugs with GL state setup that were exposed by Droids driver."
5dbfe93b3f15f3a837836d024958635fd8f9ad14 27-Jan-2010 Jason Sams <rjsams@android.com> Fix some minor bugs with GL state setup that were exposed by Droids driver.
s/rsProgramFragment.cpp
s/rsProgramVertex.cpp
s/rsSampler.cpp
s/rsSampler.h
s/rsSimpleMesh.cpp
s/rsVertexArray.cpp
s/rsVertexArray.h
0ebff76e95aab7f6827ce1a8c25f1b4ad87a9029 27-Jan-2010 Eric Laurent <elaurent@google.com> Merge "Fix issue 2285561: New AudioFlinger and audio driver API needed for A/V sync"
89e02edf6f92c034942b697be4eccea46930cdfb 27-Jan-2010 Chih-Chung Chang <chihchung@google.com> Merge "Add support for setting camera display orientation."
0986e7907ffc8387b04fb201e285784bcd11b9b7 20-Jan-2010 Eric Laurent <elaurent@google.com> Fix issue 2285561: New AudioFlinger and audio driver API needed for A/V sync

Added getRenderPosition() API to IAudioFlinger to retreive number of audio frames
written by AudioFlinger to audio HAL and by DSP to DAC.

Added getRenderPosition() API to AudioHardwareInterface to retreive number of audio frames
written by DSP to DAC.

Exposed AudioTrack::getPosition() to AudioSink() to make it available to media player.

Removed excessive log in AudioHardwareGeneric.
udioflinger/A2dpAudioInterface.cpp
udioflinger/A2dpAudioInterface.h
udioflinger/AudioDumpInterface.cpp
udioflinger/AudioDumpInterface.h
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
udioflinger/AudioHardwareGeneric.cpp
udioflinger/AudioHardwareGeneric.h
udioflinger/AudioHardwareStub.cpp
udioflinger/AudioHardwareStub.h
122b309481f5e606b9af4c8266d1dd75e5b1bc8c 26-Jan-2010 Jason Sams <rjsams@android.com> Merge "Turn the debugging back on."
a1d302e867cc86d1e9c91a2fd613af9f1eb76574 26-Jan-2010 Jason Sams <rjsams@android.com> Turn the debugging back on.
s/rsUtils.h
d1d7706fce19a9a0cf71ff9b65f3aba9b89eeb3b 23-Jan-2010 Chih-Chung Chang <chihchung@google.com> Add support for setting camera display orientation.
i/CameraParameters.cpp
c8b60d1932bb9f294550584126fc5b58a6312406 26-Jan-2010 Nick Pelly <npelly@google.com> Revert "Fix failure to open AVRCP input device due to EPERM."

This reverts commit e6b1bbd8acca3f6e174c24cf4eb23a66db2d08a2.
i/EventHub.cpp
a667fda9f54f4fd44e3eb53e159b3129e0aa36fa 26-Jan-2010 Nick Pelly <npelly@google.com> am 425324e9: am e834722f: Merge "Fix failure to open AVRCP input device due to EPERM." into eclair

Merge commit '425324e97bba75cd69bb6c81de6248529540e6fe'

* commit '425324e97bba75cd69bb6c81de6248529540e6fe':
Fix failure to open AVRCP input device due to EPERM.
23f25cda0c73f8eb878844dea32fb0bd419edca2 25-Jan-2010 Eric Laurent <elaurent@google.com> Fix issue 2378022: AudioService should direct volume control to STREAM_VOICE_CALL stream when STREAM_VOICE_CALL stream is active.

Modified AudioService.getActiveStreamType() so that STREAM_VOICE_CALL is selected when a track using this stream
type is playing.

Chanded isMusicActive() for a more generic isStreamActive(stream) method in AudioSystem, IAudioFlinger and AudioFlinger.
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
df48b571144ed0b0a09c735f997cc408c3d22b2b 25-Jan-2010 Jason Sams <rjsams@android.com> Cleanup seperation of Legacy and user attribs. All user programs now use the new names. Legacy vertex attribs are given default names.
s/rsProgramVertex.cpp
s/rsScriptC_Lib.cpp
s/rsShaderCache.cpp
s/rsShaderCache.h
s/rsType.cpp
s/rsVertexArray.cpp
s/rsVertexArray.h
acf77033bbd4682566bcd3c535f4f1e94d23f962 25-Jan-2010 Wu-cheng Li <wuchengli@google.com> Change key to KEY_SUPPORTED_JPEG_THUMBNAIL_SIZES for consistency.

bug:2375986
i/CameraParameters.cpp
60e8495c1699f6f4d4046a3394b1eafdeefe6d64 23-Jan-2010 Chih-Chung Chang <chihchung@google.com> Merge "Add support for 180/270 degrees rotation."
ac127dc31bd071ed522f5cd48a910065756c8ded 23-Jan-2010 Chih-Chung Chang <chihchung@google.com> Add support for 180/270 degrees rotation.
urfaceflinger/LayerBase.cpp
f226e9f27baa5a29aacffab87e0c0fc52d59fe13 22-Jan-2010 Mathias Agopian <mathias@google.com> Merge "return an error when Surface::lock() is called while the surface is already locked."
116e541eacde53f8c83e1136229d8653bad6bf61 22-Jan-2010 Mathias Agopian <mathias@google.com> return an error when Surface::lock() is called while the surface is already locked.
i/Surface.cpp
e1ceec234c618729cc7bd35fecb11744b52c1cc8 22-Jan-2010 Chih-Chung Chang <chihchung@google.com> Add an orientation parameter for overlay, so we can do camera preview in portrait mode.
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
urfaceflinger/Transform.cpp
urfaceflinger/Transform.h
i/ISurface.cpp
2d41cb9433ef3845560a252a5cf8226e1d78209a 22-Jan-2010 Mathias Agopian <mathias@google.com> fix [2324665] texture leak in surfaceflinger when using camera
urfaceflinger/LayerBuffer.cpp
a1a1798599361f5f1db8fe612606323c801f4f6c 22-Jan-2010 Mathias Agopian <mathias@google.com> fix a texture leak introduced recently.

create the texture name once and for all for a given BufferSource
and make sure to recreate it when we're forced to delete the texture.
urfaceflinger/LayerBuffer.cpp
e6b1bbd8acca3f6e174c24cf4eb23a66db2d08a2 21-Jan-2010 Nick Pelly <npelly@google.com> Fix failure to open AVRCP input device due to EPERM.

Sleep for 100us and try to open the input device again if it fails, with a
maximum of 10 attempts.

We need the retry logic because setting permissions on a new input device is
racy. The init process watches for new input device (via uevent) and sets the
permission on them in devices.c:make_device(). However at the same time
EventHub.cpp watches for new input devices from the system_server process, and
immediately tries to open them. I can't see a simple way to avoid this race
condition.

As best as I can tell this race condition has always exisited.
There must have been some timing change that happened recently that causes us
to hit this race condition much more often. See repro notes in referenced bug.

Bug: 2375632
i/EventHub.cpp
973fbb1591b94c83fe1d62593c3e26eaf82741f3 21-Jan-2010 Mathias Agopian <mathias@google.com> Merge "fix [2363362] [Sapphire] Corrupted raw picture displayed during snapshot"
6fb0f22b294f5ded0a60e49e0725d38419fe89b2 21-Jan-2010 Mathias Agopian <mathias@google.com> Merge "part of fix for [2363362] [Sapphire] Corrupted raw picture displayed during snapshot"
af07b591bbb39df30f6018c5a64791552a06ed00 20-Jan-2010 Joe Onorato <joeo@google.com> am b3699b14: am 836e1666: Merge "add drawSpriteScreenspaceCropped to renderscript" into eclair

Merge commit 'b3699b14be3a3db1d75ea4c38853b0a53d14b1be'

* commit 'b3699b14be3a3db1d75ea4c38853b0a53d14b1be':
add drawSpriteScreenspaceCropped to renderscript
d23fa27630c3756216dc64cbb8518af49c60ce34 20-Jan-2010 Mathias Agopian <mathias@google.com> fix [2363362] [Sapphire] Corrupted raw picture displayed during snapshot

handled all cases where the scale factor of a video is out of bounds of
supported scale factors in copybit.
urfaceflinger/LayerBuffer.cpp
d2832fb4154771e42f7a4fdb8286ac85827ebe9d 20-Jan-2010 Mathias Agopian <mathias@google.com> part of fix for [2363362] [Sapphire] Corrupted raw picture displayed during snapshot

make sure to fallback properly to software when copybit operation fails.
with this change, the preview image will at least be displayed in b&w
(since GL doesn't support the yuv format). This would also fix
2363506, but that one is now handled more cleanly.
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
3bc0346b3da584fcb529807b697ff6a22af18bb4 20-Jan-2010 Mathias Agopian <mathias@google.com> Merge "fix [2363506] [Sapphire] Video playback broken"
7323e545c8778beb6736a09a5d2c9f81b451e13f 20-Jan-2010 Mathias Agopian <mathias@google.com> fix [2363506] [Sapphire] Video playback broken

don't try to use copybit for incompatible buffers
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
243bf50e1e582d280829bc0e16bfb6d43c70c32f 20-Jan-2010 Eric Laurent <elaurent@google.com> Merge "Create base class for audio policy manager."
e20e3b41db0bc8bb68f40e8a60b351933028ffd6 20-Jan-2010 Jason Sams <rjsams@android.com> Fix RS mipmap generation for 8 bit alpha textures.
s/rsAllocation.cpp
6656c1be2b2f5d266645742e6d4c7f910b3f30b3 14-Jan-2010 Joe Onorato <joeo@android.com> add drawSpriteScreenspaceCropped to renderscript
s/Android.mk
s/rsScriptC_Lib.cpp
22550a19431919915a1cb454fcc1ffa5d5b6eb5c 13-Jan-2010 Jason Sams <rjsams@android.com> Merge "Remove excessive logging, fix error in GLSL uniform generation."
e17e365b71030ff2d839c63ac6e5d044b4b15773 13-Jan-2010 Jason Sams <rjsams@android.com> Remove excessive logging, fix error in GLSL uniform generation.
s/rsProgram.cpp
s/rsProgramVertex.cpp
cef3cd79489fa7897ffbacbc4e435651fb04f10d 10-Dec-2009 Eric Laurent <elaurent@google.com> Create base class for audio policy manager.

First implementations of audio policy manager in Eclair branch have shown that most code is common to all platforms.
Creating AudioPolicyManagerBase base class will improve code maintainability and readability.

Audio policy manager code for platforms using generic audio previously in AudioPolicyManagerGeneric is replaced by AudioPolicyManagerBase.
Audio policy manager test code previously in AudioPolicyManagerGeneric is moved to AudioPolicyManagerBase.

Also added a wake lock for delayed commands in AudioPolicyService.
udioflinger/Android.mk
udioflinger/AudioPolicyManagerBase.cpp
udioflinger/AudioPolicyManagerGeneric.cpp
udioflinger/AudioPolicyManagerGeneric.h
udioflinger/AudioPolicyService.cpp
udioflinger/AudioPolicyService.h
b9c56e39689e650afcebed4da38ad79c7b6cfcdf 13-Jan-2010 Jason Sams <rjsams@android.com> Merge "Implement type generation for user uniforms in vertex shader."
ea87e96959895ef94cc3aa9576f41a660d2bbf03 12-Jan-2010 Jason Sams <rjsams@android.com> Implement type generation for user uniforms in vertex shader.
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsScriptC_Lib.cpp
s/rsShaderCache.cpp
980a938c1c9a6a5791a8240e5a1e6638ab28dc77 09-Jan-2010 Romain Guy <romainguy@android.com> Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
s/java/ImageProcessing/res/layout/main.xml
f5d95cbc1a6974afeb4d3155bdaa8dae55722a39 08-Jan-2010 Joe Onorato <joeo@android.com> less log spew
s/rsUtils.h
917cd4fcda61c63429d73639284f34bb85c97f37 08-Jan-2010 Jason Sams <rjsams@android.com> Fix npot but where mipmap level sizes were rounding in the wrong direction. Should always be floor.
s/rsType.cpp
6286953eced16648d18e1efc57c3b089c49b5608 08-Jan-2010 Jason Sams <rjsams@android.com> Change user attribs to look for empty slot rather than using them in order. Prevents conflict with numbered legacy slots.
s/rsProgramVertex.cpp
s/rsVertexArray.cpp
s/rsVertexArray.h
74e02ef2000ff2783e526d6916e2f0b5d517593e 07-Jan-2010 Jason Sams <rjsams@android.com> Support npot on es 2.0 HW.
s/java/Film/src/com/android/film/FilmRS.java
s/rsAllocation.cpp
a09a6e145b778861f7abee86ce17e59507ed221e 06-Jan-2010 Jason Sams <rjsams@android.com> More complete support for named attribs. Adds user typed attribs as available to programVertex. Non user attribs are not treated like user for GL2 for simplicity.
s/RenderScript.h
s/rsContext.cpp
s/rsProgram.h
s/rsProgramFragment.cpp
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsScriptC_Lib.cpp
s/rsShaderCache.cpp
s/rsSimpleMesh.cpp
s/rsType.cpp
s/rsType.h
s/rsVertexArray.cpp
s/rsVertexArray.h
ca328e70ed7a64b42b24fc3ca35149aec173d0b8 05-Jan-2010 Jean-Baptiste Queru <jbq@google.com> explicit set an "optional" tag
s/java/Film/Android.mk
s/java/Fountain/Android.mk
s/java/ImageProcessing/Android.mk
e17964e150e459bacced5658ae36fe1c56082e37 05-Jan-2010 Jason Sams <rjsams@android.com> Add RS support for generic attribs as input to vertex programs.
s/rs.spec
s/rsComponent.cpp
s/rsComponent.h
s/rsContext.cpp
s/rsContext.h
s/rsElement.cpp
s/rsElement.h
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramVertex.cpp
s/rsScriptC.cpp
7d46f612a25fc9f190358e9bd807b71d424ce7d2 23-Dec-2009 Jason Sams <rjsams@android.com> Disable excessive RS logging.
s/rsElement.cpp
718cd1f322ee5b62b6a49cb36195bcb18a5ab711 23-Dec-2009 Jason Sams <rjsams@android.com> Element restructuring. Add support for new basic Element types including the RS objects and vectors(2-4). In theory this paves the way for maintaining type info for RS objects, passing elements for GLSL uiforms/attribs/varyings, and supporting nested structures.

This will break some apps, checkings for other projects will follow to unbreak them.
s/Android.mk
s/RenderScript.h
s/java/Film/src/com/android/film/FilmRS.java
s/java/Fountain/res/raw/fountain.c
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
s/rs.spec
s/rsAllocation.cpp
s/rsComponent.cpp
s/rsComponent.h
s/rsContext.cpp
s/rsContext.h
s/rsElement.cpp
s/rsElement.h
s/rsFileA3D.cpp
s/rsProgramFragment.cpp
s/rsProgramVertex.cpp
s/rsScriptC.cpp
s/rsScriptC_Lib.cpp
s/rsShaderCache.cpp
s/rsSimpleMesh.cpp
s/rsType.cpp
s/rsVertexArray.cpp
s/rsVertexArray.h
b9a44165c765524ce4eaa822e7764a0af5ac9c83 22-Dec-2009 Eric Laurent <elaurent@google.com> am 0c5cc224: am d20a55af: Merge change Iccfa50fe into eclair

Merge commit '0c5cc224b052654ee38d39effce427a47697481b'

* commit '0c5cc224b052654ee38d39effce427a47697481b':
Fix issue 2323920: Notification & A2DP audio stutter.
8ac9f8d1c708dc8bb853f7697f10051031eb73c5 18-Dec-2009 Eric Laurent <elaurent@google.com> Fix issue 2323920: Notification & A2DP audio stutter.

Modified AudioFlinger duplicating output thread so that audio tracks are not mixed until both outputs (A2DP and hardware) have exited standby mode. This avoids to have one output far ahead of the other and audio frames dropped because the compensation mechanism cannot keep up.
Also calculate the maximum wait time in OutputTrack::write() based the on smallest frame count of all output threads instead of the frame count of the thread the OutputTrack is connected to. This avoids starving the thread with the smallest frame count by waiting too long on the other thread.
Since the frame count was reduced on hardware output to reduce latency the difference between A2DP and hardware outputs frame counts had become problematic.
Also increased the number of overflow buffers to cope with bigger timing differences among outputs.
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
68afd01ec9fd37774d8291192952a25e5605b6fb 18-Dec-2009 Jason Sams <rjsams@android.com> Move texture bindings to base program object. Change ProgramFragment creation to require a texture format in 1.0 mode.
s/RenderScript.h
s/java/Film/src/com/android/film/FilmRS.java
s/rs.spec
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramFragment.cpp
s/rsProgramFragment.h
s/rsScriptC_Lib.cpp
7b7f29a35ce15d682ff688ea11b5a516075131f3 16-Dec-2009 Jason Sams <rjsams@android.com> Fix live wallpaper many. Z coordinate was being ignored for draw quad call.
s/rsScriptC_Lib.cpp
ce9adcce02ef528cf5a65c3650099aa54ebb712a 16-Dec-2009 Jason Sams <rjsams@android.com> Fix emulated glColor in es2 mode.
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsScriptC_Lib.cpp
5dad8b4d1fda37b7b4763ef7361c5eb92131cb7e 16-Dec-2009 Jason Sams <rjsams@android.com> Place shader logging behind prop to declutter logs.
s/rsContext.cpp
s/rsContext.h
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramFragment.cpp
s/rsProgramFragment.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsShaderCache.cpp
s/rsShaderCache.h
7e5ab3b177b10fee304d011b3a4b9ee03e2b18b5 15-Dec-2009 Jason Sams <rjsams@android.com> Continue es2 shader dev

Conflicts:

graphics/java/android/renderscript/Program.java
graphics/java/android/renderscript/ProgramVertex.java
s/RenderScript.h
s/rs.spec
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramFragment.cpp
s/rsProgramFragment.h
0011bcf57ff711a221a3a4c73f2a79125111647d 15-Dec-2009 Jason Sams <rjsams@android.com> Continue development of es2.0 user shader support for renderscript. This change cleans up ProgramVertex creation and adds support for passing input, output, and constant type info.
s/Android.mk
s/RenderScript.h
s/RenderScriptEnv.h
s/java/Film/src/com/android/film/FilmRS.java
s/rs.spec
s/rsComponent.cpp
s/rsComponent.h
s/rsContext.cpp
s/rsContext.h
s/rsElement.cpp
s/rsElement.h
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramFragment.cpp
s/rsProgramFragmentStore.cpp
s/rsProgramFragmentStore.h
s/rsProgramRaster.cpp
s/rsProgramRaster.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsScriptC.cpp
s/rsType.cpp
3b7d39bb51f851ddee441fa34884495217e477f9 14-Dec-2009 Jason Sams <rjsams@android.com> Implement RS tracked defered texture and buffer object uploads.
s/rsAllocation.cpp
s/rsAllocation.h
s/rsContext.h
s/rsProgramFragment.cpp
s/rsSimpleMesh.cpp
0ba88469102c8fc7af3bbacfb96789aed194bc6c 11-Dec-2009 Mathias Agopian <mathias@google.com> am 2378f141: am b63d91c6: am f9b0e826: fix [2269582] [TOP-10][Passion_1506][APT:Camera]Sometimes camera preview screen is truncated after launching and back to home screen by home key repeatedly

Merge commit '2378f1413426987ccfe9d6ed5f856bb01c9d7c30'

* commit '2378f1413426987ccfe9d6ed5f856bb01c9d7c30':
fix [2269582] [TOP-10][Passion_1506][APT:Camera]Sometimes camera preview screen is truncated after launching and back to home screen by home key repeatedly
57e9a3fa2f2f955343be3c04aeb08de742acac8c 11-Dec-2009 Mathias Agopian <mathias@google.com> am 871f9de3: am 02472639: am 083a557c: fix [2319255] crash in openGL : from the media recorder stress test.

Merge commit '871f9de3554ccfd2028837dea97b76fcaf5ffedb'

* commit '871f9de3554ccfd2028837dea97b76fcaf5ffedb':
fix [2319255] crash in openGL : from the media recorder stress test.
b63d91c6fc90ee8f71bad9380b45dfe6b5d96f57 11-Dec-2009 Mathias Agopian <mathias@google.com> am f9b0e826: fix [2269582] [TOP-10][Passion_1506][APT:Camera]Sometimes camera preview screen is truncated after launching and back to home screen by home key repeatedly

Merge commit 'f9b0e826689cca5ecbd40aa49f3ea7f7c73ad2a2' into eclair-mr2

* commit 'f9b0e826689cca5ecbd40aa49f3ea7f7c73ad2a2':
fix [2269582] [TOP-10][Passion_1506][APT:Camera]Sometimes camera preview screen is truncated after launching and back to home screen by home key repeatedly
f9b0e826689cca5ecbd40aa49f3ea7f7c73ad2a2 11-Dec-2009 Mathias Agopian <mathias@google.com> fix [2269582] [TOP-10][Passion_1506][APT:Camera]Sometimes camera preview screen is truncated after launching and back to home screen by home key repeatedly

When a surface is removed from the screen while it holds a "freeze lock", the
release of that lock happens in the destructor as a "safety net". However, it
doesn't trigger an update at that point.

Make sure that "freeze locks" are released from the transaction at the point
a surface is removed from the screen (if it's not on screen, it shouldn't
prevent the screen to redraw, and therefore cannot hold a freeze lock).
The refresh corresponding to that transaction will pick it up as soon as possible.
urfaceflinger/Layer.cpp
24a4f2224bf88945fc3ae6a284bb01ba0ba5d83b 11-Dec-2009 Kenny Root <kroot@google.com> am 1e1d4492: am 218aa945: Merge change I6478884a into eclair-mr2

Merge commit '1e1d44924a334637f9fb47ca8796625bd86cb66a'

* commit '1e1d44924a334637f9fb47ca8796625bd86cb66a':
Add string resource type inspection
55e070baa145ca8fdd2bd724ab8b54844e01baef 11-Dec-2009 Mathias Agopian <mathias@google.com> am abcb3703: am 75ca58d6: am 76169da0: fix [2315900] Monochrome camera preview screen after launching camera

Merge commit 'abcb37038a4981e935e516dd4d56cecd1f6fcb39'

* commit 'abcb37038a4981e935e516dd4d56cecd1f6fcb39':
fix [2315900] Monochrome camera preview screen after launching camera
024726391ad1536c5fa4af3f786141e200efed54 11-Dec-2009 Mathias Agopian <mathias@google.com> am 083a557c: fix [2319255] crash in openGL : from the media recorder stress test.

Merge commit '083a557c25e0032bc4900f335b6643d0badd09ce' into eclair-mr2

* commit '083a557c25e0032bc4900f335b6643d0badd09ce':
fix [2319255] crash in openGL : from the media recorder stress test.
218aa94581293876a4283f8d5908843c8f818e3a 11-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I6478884a into eclair-mr2

* changes:
Add string resource type inspection
75ca58d6f877541516f4f2710b4bed39fa7c4266 11-Dec-2009 Mathias Agopian <mathias@google.com> am 76169da0: fix [2315900] Monochrome camera preview screen after launching camera

Merge commit '76169da0e84b0fcf621aeac6141af3ee85bc7c1e' into eclair-mr2

* commit '76169da0e84b0fcf621aeac6141af3ee85bc7c1e':
fix [2315900] Monochrome camera preview screen after launching camera
aad442ec278e6528bf1b96bd02c05d2914d033f9 11-Dec-2009 Jason Sams <rjsams@android.com> am b62954b6: am 8f31c230: am 57ce0888: Merge change Id22c0137 into eclair

Merge commit 'b62954b66542e3e2654d97a81123c51805bceca7'

* commit 'b62954b66542e3e2654d97a81123c51805bceca7':
Throttle low priority RS threads by sleeping once per frame to avoid starving other apps.
54db799ada726ccfffc94c5bb4e33e895bfb25b8 11-Dec-2009 Mathias Agopian <mathias@google.com> am d1b8019a: am ae5bd2b9: am d8c752ef: Merge change Ib548dbb2 into eclair

Merge commit 'd1b8019a69d186df74f072cc51b413e34c3016f4'

* commit 'd1b8019a69d186df74f072cc51b413e34c3016f4':
improve video performance to minimize the tearing effect seen in 720p movies
8f31c23021a3f8164eee08cf904c3f083ddfc3d2 11-Dec-2009 Jason Sams <rjsams@android.com> am 57ce0888: Merge change Id22c0137 into eclair

Merge commit '57ce0888fcb1376b385c3dab5e4262793acaaf16' into eclair-mr2

* commit '57ce0888fcb1376b385c3dab5e4262793acaaf16':
Throttle low priority RS threads by sleeping once per frame to avoid starving other apps.
ae5bd2b9cc36a21b890ded808d9374ab02364d1d 11-Dec-2009 Mathias Agopian <mathias@google.com> am d8c752ef: Merge change Ib548dbb2 into eclair

Merge commit 'd8c752ef74bc6d8b412defe35caf1a19be15eb8b' into eclair-mr2

* commit 'd8c752ef74bc6d8b412defe35caf1a19be15eb8b':
improve video performance to minimize the tearing effect seen in 720p movies
083a557c25e0032bc4900f335b6643d0badd09ce 11-Dec-2009 Mathias Agopian <mathias@google.com> fix [2319255] crash in openGL : from the media recorder stress test.

never call eglCreateImageKHR() with a NULL native buffer, which can
happen in OOM conditions.
urfaceflinger/Layer.cpp
bb79f64b89bd7be7019035a0347c681e6f39fe6b 10-Dec-2009 Kenny Root <kroot@google.com> Add string resource type inspection

Allows "aapt dump --values resource" to print out whether a string in a
ResStringPool is in UTF-8 or UTF-16 encoding.

Change-Id: I6478884a70a3b46fee862dece6cb33454fc34843
tils/ResourceTypes.cpp
8415afdb706c94cc297195a0dd5b5a62726d66e4 10-Dec-2009 Dianne Hackborn <hackbod@google.com> am ea483723: am 9fbb534e: Merge change Iafbeb31b into eclair-mr2

Merge commit 'ea483723b3cc630cf5b5b6fda7b08d9592bdbbde'

* commit 'ea483723b3cc630cf5b5b6fda7b08d9592bdbbde':
Maybe really fix windows build.
02909d44d5b283991bdd392fcccae12986ddc6c1 10-Dec-2009 Dianne Hackborn <hackbod@google.com> am b901f0c6: am 484fe4d6: Merge change I06fb2c1c into eclair-mr2

Merge commit 'b901f0c6dd4c833e4d5a0aa409066d25762abbbb'

* commit 'b901f0c6dd4c833e4d5a0aa409066d25762abbbb':
Hopefully fix Windows build
30cee478b79c960cc17b172f8620eaaaeef7cb7b 10-Dec-2009 Kenny Root <kroot@google.com> am 5cd6fcd5: am e6c0e993: Merge change I129483f8 into eclair-mr2

Merge commit '5cd6fcd518d47d1974a10fccf3c3d5431a83307a'

* commit '5cd6fcd518d47d1974a10fccf3c3d5431a83307a':
Optional use of UTF-8 strings in resource bundles
314664d2479a55b182035f0585eadd40a0e6833d 10-Dec-2009 Dianne Hackborn <hackbod@google.com> am 68a3b8b6: am 24eca800: Merge change I887f355f into eclair-mr2

Merge commit '68a3b8b66044d0a9fa901ad306fc6db6d13f94d3'

* commit '68a3b8b66044d0a9fa901ad306fc6db6d13f94d3':
Propagate background scheduling class across processes.
76169da0e84b0fcf621aeac6141af3ee85bc7c1e 09-Dec-2009 Mathias Agopian <mathias@google.com> fix [2315900] Monochrome camera preview screen after launching camera

this was introduced by a recent change. when we try to figure out the size of
the yuv->rgb temporary buffer, the output resolution has not been computed yet
and an invalid buffer size is used. most of the time the allocation fails
and the system reverts to "standard" GL will uses onle the Y plane.

the allocation of the temporary buffer is moved to onDraw(), the first
time it is called, by that time, the window is positioned properly.
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
57ce0888fcb1376b385c3dab5e4262793acaaf16 09-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Id22c0137 into eclair

* changes:
Throttle low priority RS threads by sleeping once per frame to avoid starving other apps.
b9d5c574ff11a9470b92c5b9a62da6a655d9ef7a 09-Dec-2009 Jason Sams <rjsams@android.com> Throttle low priority RS threads by sleeping once per frame to avoid starving other apps.
s/rsContext.cpp
s/rsContext.h
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC.h
afbeb31bffd54ecd332da5d3751b42da02b62330 09-Dec-2009 Dianne Hackborn <hackbod@google.com> Maybe really fix windows build.
tils/Threads.cpp
b548dbb22595edc843f1d78ce97bafab1e626a89 09-Dec-2009 Mathias Agopian <mathias@google.com> improve video performance to minimize the tearing effect seen in 720p movies

always rescale videos to their target size using copybit during yuv->rgb
conversion. this improves performance of the GPU pass and doesn't require
linear filtering to be enabled. Also always use 16-bits buffers.

the average processing time for 720p dropped from ~50ms to ~30ms
urfaceflinger/LayerBuffer.cpp
06fb2c1c398d91787440978bf358bb9808cc2928 09-Dec-2009 Dianne Hackborn <hackbod@google.com> Hopefully fix Windows build
tils/Threads.cpp
e6c0e99334bc2f47e5d36db253ac8f166047c03b 08-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I129483f8 into eclair-mr2

* changes:
Optional use of UTF-8 strings in resource bundles
887f355f99ff83d568ef2885a4fdcaae475583df 08-Dec-2009 Dianne Hackborn <hackbod@google.com> Propagate background scheduling class across processes.

This is a very simply implementation: upon receiving an IPC, if the handling
thread is at a background priority (the driver will have taken care of
propagating this from the calling thread), then stick it in to the background
scheduling group. Plus an API to turn this off for the process, which is
used by the system process.

This also pulls some of the code for managing scheduling classes out of
the Process JNI wrappers and in to some convenience methods in thread.h.
inder/IPCThreadState.cpp
tils/Threads.cpp
f997e3a0f9775330ba0d37cf32f627f33b79b79c 08-Dec-2009 Eric Laurent <elaurent@google.com> am bf831e0d: am 38f6bdc4: am 0a08029f: Fix issue 2306779: Runtime restart - Init failed at android.media.ToneGenerator.

Merge commit 'bf831e0de0fd1636a7ee2670faed208f96f23f65'

* commit 'bf831e0de0fd1636a7ee2670faed208f96f23f65':
Fix issue 2306779: Runtime restart - Init failed at android.media.ToneGenerator.
feab08b9014a049c3bcd54f4e57ca36095a75593 08-Dec-2009 Eric Laurent <elaurent@google.com> am e30bae7f: am b8341cf7: am 6d42d806: Merge change I9cc489a2 into eclair

Merge commit 'e30bae7f8ef0489788c155ae44d9a57beca1acf5'

* commit 'e30bae7f8ef0489788c155ae44d9a57beca1acf5':
Fix issue 2304669: VoiceIME: starting and canceling voice IME yields persistent "error 8" state on future attempts and breaks voice search.
aa096cd9fba6c981b41c1080da166e8cbb4bb4ec 08-Dec-2009 Dima Zavin <dima@android.com> am 0c15b889: am 401f4220: am 0019215f: Revert "When using MDP, we needed to use a texture for diming."

Merge commit '0c15b889317e9569282e4513db598369a0506b40'

* commit '0c15b889317e9569282e4513db598369a0506b40':
Revert "When using MDP, we needed to use a texture for diming."
19138468caf7050d482dc15f35a344eab11bb756 04-Dec-2009 Kenny Root <kroot@google.com> Optional use of UTF-8 strings in resource bundles

Allows the use of UTF-8 for packing resources instead of the
default of UTF-16 for Java. When strings are extracted from the
ResStringPool, they are converted to UTF-16 and the result is
cached for subsequent calls.

When using aapt to package, add in the "-8" switch to pack the
resources using UTF-8. This will result in the value, key, and
type strings as well as the compiled XML string values taking
significantly less space in the final application package in
most scenarios.

Change-Id: I129483f8b3d3b1c5869dced05cb525e494a6c83a
tils/ResourceTypes.cpp
tils/String16.cpp
tils/String8.cpp
38f6bdc4187f27f86c7f77c88095c663e005dbf4 07-Dec-2009 Eric Laurent <elaurent@google.com> am 0a08029f: Fix issue 2306779: Runtime restart - Init failed at android.media.ToneGenerator.

Merge commit '0a08029fc9a370c6ef2a2a6fd1d800d9159b61f8' into eclair-mr2

* commit '0a08029fc9a370c6ef2a2a6fd1d800d9159b61f8':
Fix issue 2306779: Runtime restart - Init failed at android.media.ToneGenerator.
0a08029fc9a370c6ef2a2a6fd1d800d9159b61f8 07-Dec-2009 Eric Laurent <elaurent@google.com> Fix issue 2306779: Runtime restart - Init failed at android.media.ToneGenerator.

The ToneGenerator failed to initialize because no more tracks were available in AudioFlinger mixer.

All tracks were used because the duplicating output was failing to free the tracks on audio hardware output mixer when exiting due to a misplaced test on output activity: output tracks where only freed if the duplicating output was active when exiting.

The fix consists in freeing the output tracks when the duplicating thread is destroyed without condition.
udioflinger/AudioFlinger.cpp
b8341cf7c8b0b4af14ea87a4c2335e28865adff1 07-Dec-2009 Eric Laurent <elaurent@google.com> am 6d42d806: Merge change I9cc489a2 into eclair

Merge commit '6d42d80653f2c41f3e72a878a1d9a6f9693b89f7' into eclair-mr2

* commit '6d42d80653f2c41f3e72a878a1d9a6f9693b89f7':
Fix issue 2304669: VoiceIME: starting and canceling voice IME yields persistent "error 8" state on future attempts and breaks voice search.
6d42d80653f2c41f3e72a878a1d9a6f9693b89f7 07-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I9cc489a2 into eclair

* changes:
Fix issue 2304669: VoiceIME: starting and canceling voice IME yields persistent "error 8" state on future attempts and breaks voice search.
9cc489a2196e449dbe090ad9bdbc5cedd0b8334f 05-Dec-2009 Eric Laurent <elaurent@google.com> Fix issue 2304669: VoiceIME: starting and canceling voice IME yields persistent "error 8" state on future attempts and breaks voice search.

Fixed AudioFlinger::openInput() broken in change ddb78e7753be03937ad57ce7c3c842c52bdad65e
so that an invalid IO handle (0) is returned in case of failure.
Applied the same correction to openOutput().
Modified RecordThread start procedure so that a failure occuring during the first read from audio input stream is detected and causes
the record start to fail.
Modified RecordThread stop procedure to make sure that audio input stream fd is closed before we exit the stop function.

Fixed AudioRecord JAVA and JNI implementation to take status of native AudioRecord::start() into account
and not change mRecordingState to RECORDSTATE_RECORDING if start fails.
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
401f422078581ae741b68d879609e57a4b227455 07-Dec-2009 Dima Zavin <dima@android.com> am 0019215f: Revert "When using MDP, we needed to use a texture for diming."

Merge commit '0019215fc395ef12c191049b1903eeabf70859cf' into eclair-mr2

* commit '0019215fc395ef12c191049b1903eeabf70859cf':
Revert "When using MDP, we needed to use a texture for diming."
0019215fc395ef12c191049b1903eeabf70859cf 07-Dec-2009 Dima Zavin <dima@android.com> Revert "When using MDP, we needed to use a texture for diming."

This reverts commit bf0c320afbf6bf2441916755ecb443b64afbe73f.
urfaceflinger/Android.mk
1d51165f49872f2e7f352c1ed51aa7c4d076338e 04-Dec-2009 Erik Gilling <konkers@android.com> am 20208ff6: am 9b565d5b: am cef8d031: Merge change I00d0b54a into eclair

Merge commit '20208ff643b33956c93d1f3fa1fa2c2d06fc7d02'

* commit '20208ff643b33956c93d1f3fa1fa2c2d06fc7d02':
surfaceflinger: remove un-cached buffer hack for SGX
5c49a9080df9e46193efa8326318c86bc8976eea 04-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ic73ec39b into eclair

* changes:
DO NOT MERGE. Implement WAR which should prevent the white square bug from appearing on user devices. If we see a 0 texture id during bind for rendering, attempt to re-upload. If this fails log debug info and restart the app.
c73ec39bd0e9ff983eb2fc17a863100825721d49 04-Dec-2009 Jason Sams <rjsams@android.com> DO NOT MERGE. Implement WAR which should prevent the white square bug from appearing on user devices. If we see a 0 texture id during bind for rendering, attempt to re-upload. If this fails log debug info and restart the app.
s/rsProgramFragment.cpp
9b565d5bf38e77774956524f137d509471ae5fb2 04-Dec-2009 Erik Gilling <konkers@android.com> am cef8d031: Merge change I00d0b54a into eclair

Merge commit 'cef8d031e842b773bbd6481b517996a185391e92' into eclair-mr2

* commit 'cef8d031e842b773bbd6481b517996a185391e92':
surfaceflinger: remove un-cached buffer hack for SGX
00d0b54af1a6405366a659b34f0022dedf054ddf 03-Dec-2009 Erik Gilling <konkers@android.com> surfaceflinger: remove un-cached buffer hack for SGX

Signed-off-by: Erik Gilling <konkers@android.com>
urfaceflinger/DisplayHardware/DisplayHardware.cpp
a65168a0d3d03f8907b99d7418364a87f80d4568 03-Dec-2009 Mathias Agopian <mathias@google.com> am 2aa10791: am 96dac84b: am 121a31ac: Merge change Id86beb99 into eclair

Merge commit '2aa107917b5a7e6de720a34c4701de55ee9772eb'

* commit '2aa107917b5a7e6de720a34c4701de55ee9772eb':
fix [2291418] Camera preview cannot work in Emulator
2f065852d63f6e289a83e252cd01b4e15d183290 03-Dec-2009 Eric Laurent <elaurent@google.com> am 52d390e8: am 6076046a: am 1ac56b60: Merge change Iac196e17 into eclair

Merge commit '52d390e8892967c1fad717a00731c0a25e268686'

* commit '52d390e8892967c1fad717a00731c0a25e268686':
Fix issue 2292062: Audio freezes for three seconds when choosing ringtones with a headset connected and music playing.
67fd40f51b93509185267a1b897acaa2151fd464 03-Dec-2009 Mathias Agopian <mathias@google.com> am 44dcf411: am f764dae4: am 33ad0f9e: Merge change I0e44976a into eclair

Merge commit '44dcf411b01bdbd0ae2aeef3e958403a1096f36b'

* commit '44dcf411b01bdbd0ae2aeef3e958403a1096f36b':
fix [2297155] SurfaceFlinger's freeze-timeout doesn't work
96dac84be4143d83b13648045b9af31ac0f81004 03-Dec-2009 Mathias Agopian <mathias@google.com> am 121a31ac: Merge change Id86beb99 into eclair

Merge commit '121a31ac3901fcb81c808da2b4a9a7cf66c12b7c' into eclair-mr2

* commit '121a31ac3901fcb81c808da2b4a9a7cf66c12b7c':
fix [2291418] Camera preview cannot work in Emulator
d86beb99a7c9625daad01c4aaa5eaf4ca3ac2194 03-Dec-2009 Mathias Agopian <mathias@google.com> fix [2291418] Camera preview cannot work in Emulator

The image buffer used by glTexImage2d() would be uninitialized when no copybit engine
can be found.
We now always initialize images, since the abscence of copybit is not necessarily fatal.
urfaceflinger/LayerBuffer.cpp
6076046a11d2cd3733e4c7d108b3b26d167ae731 02-Dec-2009 Eric Laurent <elaurent@google.com> am 1ac56b60: Merge change Iac196e17 into eclair

Merge commit '1ac56b602aa6a1ac54c608e5a8b76f44638db23b' into eclair-mr2

* commit '1ac56b602aa6a1ac54c608e5a8b76f44638db23b':
Fix issue 2292062: Audio freezes for three seconds when choosing ringtones with a headset connected and music playing.
f764dae4a5f662660bea0657746622b6672b24a9 02-Dec-2009 Mathias Agopian <mathias@google.com> am 33ad0f9e: Merge change I0e44976a into eclair

Merge commit '33ad0f9ec8d47660b16ced45242a45f369fe2547' into eclair-mr2

* commit '33ad0f9ec8d47660b16ced45242a45f369fe2547':
fix [2297155] SurfaceFlinger's freeze-timeout doesn't work
1ac56b602aa6a1ac54c608e5a8b76f44638db23b 02-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Iac196e17 into eclair

* changes:
Fix issue 2292062: Audio freezes for three seconds when choosing ringtones with a headset connected and music playing.
2b9d7b1d6041c43c72e5970c0a186949c9a7a700 02-Dec-2009 Mathias Agopian <mathias@google.com> am a628e023: am 102f4dbb: am 8e4a110b: Merge change I5469a4ac into eclair

Merge commit 'a628e0238519a596e2d10981aae0aab65418f271'

* commit 'a628e0238519a596e2d10981aae0aab65418f271':
fixed [2260070] display stopped updating
0e44976aa425b0c2a0dcf6ec8db918e6a6f51b1a 02-Dec-2009 Mathias Agopian <mathias@google.com> fix [2297155] SurfaceFlinger's freeze-timeout doesn't work

There was bug in the logic that calculated the relative timeout, the start time was
reset each time an event was received, which caused the timeout to never occur if
an application was constantly redrawing.

Now we always check for a timeout when we come back from the waitEvent() and
process the "anti-freeze" if needed, regardless of whether an event was received.
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
102f4dbb2396e779c588862cfb748ebfc333340d 02-Dec-2009 Mathias Agopian <mathias@google.com> am 8e4a110b: Merge change I5469a4ac into eclair

Merge commit '8e4a110b3e146b30b804d7e2cd0825bf56bd7d0f' into eclair-mr2

* commit '8e4a110b3e146b30b804d7e2cd0825bf56bd7d0f':
fixed [2260070] display stopped updating
ac196e175dd64eca99aeff244ba2db008a746ddc 01-Dec-2009 Eric Laurent <elaurent@google.com> Fix issue 2292062: Audio freezes for three seconds when choosing ringtones with a headset connected and music playing.

The problem comes from a deadlock with AudioPolicyService mutex: When the second ringtone starts,
this mutex is locked by AudioPolicyService::startOutput() which in turn calls setParameters() to change the output device.
Audioflinger::ThreadBase::setParameters() signals the parameter change to the AudioFlinger mixer thread and waits for a condition
indicating that the parameter change has been processed.
At the same time, the mixer thread detects that the audio track corresponding to the first ring tone has been killed and calls its destructor.
This calls AudioPolicyService::releaseOutput() which tries to lock the AudioPolicyService mutex.
If this happens before the mixer thread can process the setParameters() command we are deadlocked.
The deadlock ends because setParameters() uses a timeout when waiting for the condition.

This regression was introduced by change 33736 fixing issue 2265163.

The fix consists in calling AudioPolicyService::releaseOutput() from Track::destroy() instead of from Track destructor: as detroy() is never called from the mixer thread loop (as opposed to the destructor) the deadlock described above cannot occur.
udioflinger/AudioFlinger.cpp
54c0ec14e016e4a1bf3ceab40ed6ca5447da4725 30-Nov-2009 Jason Sams <rjsams@android.com> Beging GL2 user shaders. Switch master to using GL2 by default.
s/rs.spec
s/rsContext.cpp
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramFragment.cpp
s/rsProgramVertex.cpp
s/rsShaderCache.cpp
5469a4ac1c5073bde2c7caf8540a459c8fb759cd 30-Nov-2009 Mathias Agopian <mathias@google.com> fixed [2260070] display stopped updating

always check that the visible region isn't empty after all visible regions are recomputed
clear he freeze-lock if it is.
urfaceflinger/Layer.cpp
7efde12a03b8d56c9344d5586d76336806638f11 26-Nov-2009 Jason Sams <rjsams@android.com> Fix film
s/java/Film/src/com/android/film/FilmView.java
bb51c40d89c7dbdee7d7507fdfe0a64e8f4f87a9 25-Nov-2009 Jason Sams <rjsams@android.com> Begin gl2 support. Renderscript still uses GL1.1 by default. However, 2.0 can be enabled and will render most tests correctly.
s/Android.mk
s/java/Fountain/src/com/android/fountain/FountainView.java
s/rsContext.cpp
s/rsContext.h
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramFragment.cpp
s/rsProgramFragment.h
s/rsProgramFragmentStore.cpp
s/rsProgramFragmentStore.h
s/rsProgramRaster.cpp
s/rsProgramRaster.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsSampler.cpp
s/rsScriptC_Lib.cpp
s/rsShaderCache.cpp
s/rsShaderCache.h
s/rsSimpleMesh.cpp
s/rsSimpleMesh.h
s/rsType.cpp
s/rsType.h
s/rsVertexArray.cpp
s/rsVertexArray.h
3fdee335fe95ab94ef1ee619ad37f9369447fde5 25-Nov-2009 Eric Laurent <elaurent@google.com> am 3f6ee1a1: am 1565d2ef: Merge change I4ad9ec48 into eclair-mr2

Merge commit '3f6ee1a180268ca2e30723ce2c45b81c2e671abb'

* commit '3f6ee1a180268ca2e30723ce2c45b81c2e671abb':
Fix A2dpAudioInterface getParameters.
4ad9ec488c3e680dcd16b39582cb1d4907d2735e 25-Nov-2009 Eric Laurent <elaurent@google.com> Fix A2dpAudioInterface getParameters.

A2dpAudioInterface::getParameters() was prepending a ';' to the key value pair returned from underlying AudioHardwareInterface.
udioflinger/A2dpAudioInterface.cpp
02395a27888aa98e305647f273f6aa0a0716d5dd 25-Nov-2009 Mathias Agopian <mathias@google.com> am 40f92fe9: am 1e22cffa: am 63851404: Merge change Ibf0c320a into eclair

Merge commit '40f92fe967f36d524d173b7819dc875af2cd9971'

* commit '40f92fe967f36d524d173b7819dc875af2cd9971':
When using MDP, we needed to use a texture for diming.
638514048141bf9f28a4bede77b83c3238f5c194 24-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ibf0c320a into eclair

* changes:
When using MDP, we needed to use a texture for diming.
0a2e7a39632cb5e98b1e9ae593609bbdda829dc2 24-Nov-2009 Jason Sams <rjsams@android.com> am e4df64bd: am 66358e24: am 9dab667e: Force a crash under conditions where white square bug in all apps is likely to occur.

Merge commit 'e4df64bdaaf86fb7d06715de122a97d723d7fea2'

* commit 'e4df64bdaaf86fb7d06715de122a97d723d7fea2':
Force a crash under conditions where white square bug in all apps is likely to occur.
9dab667e03632181e487a04a8a170b3fa0bd5037 24-Nov-2009 Jason Sams <rjsams@android.com> Force a crash under conditions where white square bug in all apps is likely to occur.
s/rsAllocation.cpp
s/rsAllocation.h
s/rsContext.cpp
s/rsContext.h
bf0c320afbf6bf2441916755ecb443b64afbe73f 24-Nov-2009 Mathias Agopian <mathias@google.com> When using MDP, we needed to use a texture for diming.
urfaceflinger/Android.mk
79e2646504f1b931bcdadc02d41f869ac024d1e9 24-Nov-2009 Jason Sams <rjsams@android.com> am 9f96a37a: am 6a2500a3: am 39dbb099: Merge change I36176536 into eclair

Merge commit '9f96a37aabbffffe719c1dfb73b5c437f190bcf0'

* commit '9f96a37aabbffffe719c1dfb73b5c437f190bcf0':
Fix ref counting bug that could cause memory leak in allApps.
361765361ae70a17fe4de64b8c1a3299a84e212d 24-Nov-2009 Jason Sams <rjsams@android.com> Fix ref counting bug that could cause memory leak in allApps.
s/rsAllocation.cpp
0b74d40ac13ae2162dca4519935fc0805d9aa8c5 21-Nov-2009 Eric Laurent <elaurent@google.com> am 86526461: am 949c572a: am e7800946: Merge change I49f02be9 into eclair

Merge commit '8652646105a6ace559280b579ee8935541ada6c1'

* commit '8652646105a6ace559280b579ee8935541ada6c1':
Issue 2265163: Audio still reported routed through earpiece on sholes
e7800946a42c0ebe8e0b3f6eba04a96a9641aaff 21-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I49f02be9 into eclair

* changes:
Issue 2265163: Audio still reported routed through earpiece on sholes
5973cbc163e9d12782c7003bc2b89884cc535311 21-Nov-2009 Dianne Hackborn <hackbod@google.com> am e71db657: am f2900600: am 1824ec8c: Merge change If2b0bbed into eclair

Merge commit 'e71db6579c2afe06fe95dd88217a667d18fe4e20'

* commit 'e71db6579c2afe06fe95dd88217a667d18fe4e20':
Debugging for issue #2228381 android.view.InflateException
b8d81679553ee33f6ae5281310abf2effca4ffcd 20-Nov-2009 Dianne Hackborn <hackbod@google.com> Debugging for issue #2228381 android.view.InflateException

Binary XML file line #37: Error inflating class <unknown> after adding a secondary account

Now that I have these debug logs, I want to keep them since they will make
debugging these kinds of issues a lot easier in the future. (Note in this
case there was no problem in the framework.)

Change-Id: If2b0bbeda4706b7c5dc1ba4a5db04b74f40e1543
tils/ResourceTypes.cpp
49f02be9d7fafb8841f75394a90f1409c6f82c1f 19-Nov-2009 Eric Laurent <elaurent@google.com> Issue 2265163: Audio still reported routed through earpiece on sholes

This is a second attempt to fix the audio routed to earpiece syndrom.
The root cause identified this time is the crash of an application having an active AudioTrack playing on the VOICE_CALL stream type.
When this happens, the AudioTrack destructor is not called and the audio policy manager is not notified of the track stop.
Results a situation where the VOICE_CALL stream is considered as always in use by audio policy manager which makes that audio is routed to earpiece.

The fix consists in moving the track start/stop/close notification to audio policiy manager from AudioTrack to AudioFlinger Track objet.
The net result is that in the case of a client application crash, the AudioFlinger TrackHandle object (which implements the remote side of the IAudioTrack binder interface) destructor is called which in turn destroys the Track object and we can notify the audio policy manager of the track stop and removal.

The same modification is made for AudioRecord although no bug related to record has been reported yet.
Also fixed a potential problem if record stop is called while the record thread is exiting.
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
5e04bbc7613da127ad830c51113d161cef4c3296 20-Nov-2009 Mathias Agopian <mathias@google.com> am 9aaf01b9: am 793810f6: am 23aa34a7: Merge change I137dac6f into eclair

Merge commit '9aaf01b9d03e931c9d37858562ea47dbaf44a3be'

* commit '9aaf01b9d03e931c9d37858562ea47dbaf44a3be':
backout a workaround that is not needed anymore
0fd4a3007c9ef9250d9fb2fb490ec6f357d725b1 20-Nov-2009 Mathias Agopian <mathias@google.com> am ce18c968: am fc64165e: am 74a331b5: Merge change I4c29c948 into eclair

Merge commit 'ce18c9680e3c151dcd4df5cdaa9fa352ad134691'

* commit 'ce18c9680e3c151dcd4df5cdaa9fa352ad134691':
fix [2269022] The raw picture displayed post shutter seems to have low-resolution
857d2b156536c7120532661cf581bf491e3d06b3 20-Nov-2009 Jason Sams <rjsams@android.com> am 93f409b5: am d581b1a8: am ddac83a5: Fix extended logging for object dumping.

Merge commit '93f409b5f7992767594107b7f468143e4a89a8c1'

* commit '93f409b5f7992767594107b7f468143e4a89a8c1':
Fix extended logging for object dumping.
137dac6f10a1a727268bbea60955882baceeaaca 20-Nov-2009 Mathias Agopian <mathias@google.com> backout a workaround that is not needed anymore

we had to add a call to glFinish() before glReadPixels() because of a bug in the GL ES
driver of a certain device. This is not needed anymore.
urfaceflinger/LayerBlur.cpp
74a331b5dd1d39da44b608743c36ab3523f598d2 20-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I4c29c948 into eclair

* changes:
fix [2269022] The raw picture displayed post shutter seems to have low-resolution
4c29c9487e47c5f0a23790e670dc3dc7a215d04c 19-Nov-2009 Mathias Agopian <mathias@google.com> fix [2269022] The raw picture displayed post shutter seems to have low-resolution

Make sure to always enable linear filtering in LayerBuffer. This change doesn't affect
devices using overlays.
urfaceflinger/LayerBuffer.cpp
ddac83a516e939b55f20b226365596760159c9df 19-Nov-2009 Jason Sams <rjsams@android.com> Fix extended logging for object dumping.
s/rsObjectBase.cpp
f5fac58f50eda336cd996b7eda240eee0e423674 18-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Id10824da

* changes:
Fix film init
d10824dadc658e20ed85cd47fe4364b659a7fe2a 18-Nov-2009 Jason Sams <rjsams@android.com> Fix film init
s/java/Film/src/com/android/film/FilmView.java
9390931b6ec800a5c670592c9b0f196705ad1817 18-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I948415fd

* changes:
Delete the old rollo sample which is obsolete.
948415fdd9bfee77aa46deae76f8602788befe6d 17-Nov-2009 Jason Sams <rjsams@android.com> Delete the old rollo sample which is obsolete.
s/java/Rollo/Android.mk
s/java/Rollo/AndroidManifest.xml
s/java/Rollo/res/drawable/test_pattern.png
s/java/Rollo/res/raw/browser.png
s/java/Rollo/res/raw/calendar.png
s/java/Rollo/res/raw/g1155.png
s/java/Rollo/res/raw/g2140.png
s/java/Rollo/res/raw/maps.png
s/java/Rollo/res/raw/market.png
s/java/Rollo/res/raw/path1920.png
s/java/Rollo/res/raw/path1927.png
s/java/Rollo/res/raw/path3099.png
s/java/Rollo/res/raw/path3950.png
s/java/Rollo/res/raw/path431.png
s/java/Rollo/res/raw/path4481.png
s/java/Rollo/res/raw/path5168.png
s/java/Rollo/res/raw/path676.png
s/java/Rollo/res/raw/path754.png
s/java/Rollo/res/raw/path815.png
s/java/Rollo/res/raw/photos.png
s/java/Rollo/res/raw/polygon2408.png
s/java/Rollo/res/raw/rollo.c
s/java/Rollo/res/raw/rollo2.c
s/java/Rollo/res/raw/settings.png
s/java/Rollo/src/com/android/rollo/Rollo.java
s/java/Rollo/src/com/android/rollo/RolloRS.java
s/java/Rollo/src/com/android/rollo/RolloView.java
644a0e320d4bda1871f38858e63aad2c9864570f 18-Nov-2009 Jason Sams <rjsams@android.com> resolved conflicts for merge of f6309041 to master
715333b832fb448c32165c7d97d408a3fa43f7cb 18-Nov-2009 Jason Sams <rjsams@android.com> Add support for dumping RS objects to aid in debugging of white blocks bug.
s/rs.spec
s/rsAllocation.cpp
s/rsAllocation.h
s/rsContext.cpp
s/rsObjectBase.cpp
s/rsObjectBase.h
277c2de96975de1da236a2042d9318db254206a3 17-Nov-2009 Mathias Agopian <mathias@google.com> am af3e233f: am fc36afcb: am f998c4a2: Merge change I1c0bebbc into eclair

Merge commit 'af3e233fe3222990440433d5f90a6a310d0170e3'

* commit 'af3e233fe3222990440433d5f90a6a310d0170e3':
fix [2262591] Junk on screen in ERD46
41301259fb0a6bc0aa9da861e876c18d3bf719c4 17-Nov-2009 Jason Sams <rjsams@android.com> am 234e509a: am 22186a2c: am ec8178eb: Merge change I9c1bad53 into eclair

Merge commit '234e509a67eb32606f3051d21eb3ea25b272d80d'

* commit '234e509a67eb32606f3051d21eb3ea25b272d80d':
Add setPriority to allow wallpapers to run at lower cpu priority than default.
f998c4a289b3ed10bafcf581618d2cc8a8f69806 17-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I1c0bebbc into eclair

* changes:
fix [2262591] Junk on screen in ERD46
1c0bebbc9548dfe929f0f9db4473eb93af9339f5 16-Nov-2009 Mathias Agopian <mathias@google.com> fix [2262591] Junk on screen in ERD46

since we're using the GPU for composition, don't use a texture for dimming,
instead simply use an alpha-blended quad.

also workaround what looks like a GL driver bug by calling glFinish() before
glReadPixels().
urfaceflinger/Android.mk
urfaceflinger/LayerBlur.cpp
7d787b4722eaeb79cab42c36060336e092b77b5f 15-Nov-2009 Jason Sams <rjsams@android.com> Add setPriority to allow wallpapers to run at lower cpu priority than default.
s/rs.spec
s/rsContext.cpp
s/rsContext.h
f24824231831fe0cfc0d3e2b3e7f0e9c8a7eab54 14-Nov-2009 Mathias Agopian <mathias@google.com> am 6df012ad: am cc96ede2: am 20aec2dd: Merge change I830df4b1 into eclair

Merge commit '6df012ad2639918f3256340ceb9c07bccfa04cdf'

* commit '6df012ad2639918f3256340ceb9c07bccfa04cdf':
addresses several bugs: 2206097, 2166583, 2261119, 2216759
830df4b16971527b07a829cf80a0c9e07a89b89a 14-Nov-2009 Mathias Agopian <mathias@google.com> addresses several bugs: 2206097, 2166583, 2261119, 2216759

2206097: Broken suggestions while composing message
2166583: Color artifacts with MDP dithering
2261119: Passion transition animations are rough
2216759: Screen flicker when dropdown list in background window shows or hides

This is part of enabling GPU composition instead of using the MDP. This change
is dependent on another change in the vendor project.

Specifically this change disables the use of EGLImageKHR for s/w buffers
for cache coherency reasons. memcpy is used instead.
urfaceflinger/DisplayHardware/DisplayHardware.cpp
ed63ce412f651eae991c4d174b36203e4051d6ca 14-Nov-2009 Mathias Agopian <mathias@google.com> am 70a37eac: am 35ede78e: am 91e40e78: Merge change I18e02606 into eclair

Merge commit '70a37eac62e887d16c4964b805a612d41254ca7f'

* commit '70a37eac62e887d16c4964b805a612d41254ca7f':
fix some aspects of [2258746] native crash in launcher2
18e026066a95e5d63c2ece8007883b46599373ca 14-Nov-2009 Mathias Agopian <mathias@google.com> fix some aspects of [2258746] native crash in launcher2

Surface::validate() could sometimes dereference a null pointer before checking it wasn't null.
This will prevent the application to crash when given bad parameters or used incorrectly.
However, the bug above probably has another cause.
i/Surface.cpp
4f2ef8c857ae0cf8964aeaa451a2c751d416f38f 13-Nov-2009 Eric Laurent <elaurent@google.com> am 99e03a3f: am 6efdbcc3: am fddfb9ae: Merge change Iad79689a into eclair

Merge commit '99e03a3f94ff8bbd68599e7f43517dbc25421fe9'

* commit '99e03a3f94ff8bbd68599e7f43517dbc25421fe9':
Improvements for issue 2197683: English IME key-press latency is noticeably higher on passion than sholes
16536c27d4084d142a6c84223c8f0f8ee8496a43 13-Nov-2009 Rebecca Schultz Zavin <rebecca@android.com> am bd328d01: am 9b942117: am 5f8f1487: Merge change Ia0a40883 into eclair

Merge commit 'bd328d0113ae29bd351d39faedc6c4e7957db4ad'

* commit 'bd328d0113ae29bd351d39faedc6c4e7957db4ad':
Modify the binder to request 1M - 2 pages instead of 1M. The backing store
d7bc5e9891c8515437533d940b602bc9b288dcc2 13-Nov-2009 Jason Sams <rjsams@android.com> am 8dcb4233: am 4834887e: am 4dd6fee7: Merge change Ieb4b0318 into eclair

Merge commit '8dcb4233fcb043f82774768d3e5bee86d867b852'

* commit '8dcb4233fcb043f82774768d3e5bee86d867b852':
Make default vertex program correctly track surface size.
bc4d75bc64c0d76da3993f305d7e4e33074bd003 13-Nov-2009 Jason Sams <rjsams@android.com> am adf38939: am da8bb292: am 59175ac2: Merge change I81b1421a into eclair

Merge commit 'adf38939836ee1d1f5967fc45d02e07117f44009'

* commit 'adf38939836ee1d1f5967fc45d02e07117f44009':
Defer EGL init until the surface changed call comes in. Pass w,h along with surface for verification of driver state.
fddfb9ae03a2730ac5ce27fa4c47b7d3a0285d0f 13-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Iad79689a into eclair

* changes:
Improvements for issue 2197683: English IME key-press latency is noticeably higher on passion than sholes
5f8f1487be78064e8d653dd2d105d8dd444d6a35 13-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ia0a40883 into eclair

* changes:
Modify the binder to request 1M - 2 pages instead of 1M. The backing store in the kernel requires a guard page, so 1M allocations fragment memory very badly. Subtracting a couple of pages so that they fit in a power of two allows the kernel to make more efficient use of its virtual address space.
a0a40883d0f4bdc0694b236353ad66a4b4ca92fa 31-Oct-2009 Rebecca Schultz Zavin <rebecca@android.com> Modify the binder to request 1M - 2 pages instead of 1M. The backing store
in the kernel requires a guard page, so 1M allocations fragment memory very
badly. Subtracting a couple of pages so that they fit in a power of
two allows the kernel to make more efficient use of its virtual address space.

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
inder/ProcessState.cpp
eb4b031804f42d52645d0d74f8ebc806f85a043b 13-Nov-2009 Jason Sams <rjsams@android.com> Make default vertex program correctly track surface size.
s/java/Fountain/src/com/android/fountain/FountainView.java
s/rsContext.cpp
s/rsProgramVertex.cpp
s/rsProgramVertex.h
3bc47d438171dce294e816366d53bc9eca772c5b 13-Nov-2009 Jason Sams <rjsams@android.com> Defer EGL init until the surface changed call comes in. Pass w,h along with surface for verification of driver state.
s/RenderScript.h
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
s/rs.spec
s/rsContext.cpp
s/rsContext.h
s/rsLocklessFifo.cpp
s/rsUtils.h
b597e6b60ca7ed17352c71e6be92c775cef9cfd1 12-Nov-2009 Romain Guy <romainguy@android.com> am 440110fb: am 897a744b: am b602c328: Merge change I31c52bef into eclair

Merge commit '440110fbfe00fa8f16087b33f0f3057e0ca057a9'

* commit '440110fbfe00fa8f16087b33f0f3057e0ca057a9':
Revert change incorrectly submitted as part of change #32153.
46b3f2fa40018f88245a6950baa709de5c34e0bb 12-Nov-2009 Mathias Agopian <mathias@google.com> am 2c694f03: am daafd544: am dffa96f7: Merge change I90daccf3 into eclair

Merge commit '2c694f032c1bea7003098336b32861e7b97aa9c7'

* commit '2c694f032c1bea7003098336b32861e7b97aa9c7':
fix [2143798] Need to figure out how to do video on Passion w/ GPU
b602c328c24f82d61038ac1222bd40a3cc7bc900 12-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I31c52bef into eclair

* changes:
Revert change incorrectly submitted as part of change #32153.
28ffcc4bb20c77eaced571aa2293f485e9935240 12-Nov-2009 Romain Guy <romainguy@android.com> am e614f938: am dac92e6f: am 3e584fc9: Merge change I5975651f into eclair

Merge commit 'e614f9382799826ca11960eb8ffacb677e2a2b1b'

* commit 'e614f9382799826ca11960eb8ffacb677e2a2b1b':
Don't feed the timezone to RenderScript time functions, let the library figure it out.
90daccf3fd17553209b8951e4e80144f32ab7238 06-Nov-2009 Mathias Agopian <mathias@google.com> fix [2143798] Need to figure out how to do video on Passion w/ GPU

This builds on the EGLImage solution. We simply use copybit to convert from the
YUV frame into an EGLImage created for that purpose and proceed with the
regular EGLImage code.
We need to do this because "regular" GL doesn't support YUV textures.

We could improve upon this by detecting exacly what the GL supports and bypass
this extra step if not required, but we'll do this later if needed.
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
baed7274814e09498761ca60c065903e055a3f30 12-Nov-2009 Romain Guy <romainguy@android.com> Don't feed the timezone to RenderScript time functions, let the library figure it out.

Bug #2211070.

Change-Id: I5975651fd12399fb8dfe283dfdfaa17569738c7b
s/rsScriptC_Lib.cpp
059b4be2a5a5b3fd410f8263e5f5928689c97af7 10-Nov-2009 Eric Laurent <elaurent@google.com> Improvements for issue 2197683: English IME key-press latency is noticeably higher on passion than sholes

This change goes with a kernel driver change that reduces the audio buffer size from 4800 bytes (~27ms) to 3072 bytes (~17ms).
- The AudioFlinger modifcations in change 0bca68cfff161abbc992fec82dc7c88079dd1a36 have been removed: the short sleep period was counter productive when the AudioTrack is using the call back thread as it causes to many preemptions.
- AudioFlinger mixer thread now detects long standby exit time and in this case anticipates start by writing 0s as soon as a track is enabled even if not ready for mixing.
- AudioTrack::start() is modified to start call back thread before starting the IAudioTrack so that thread startup time is masked by IAudioTrack start and mixer thread wakeup time.
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
aaad67613751dc53b6becc65b5f1abce2ec67b7c 10-Nov-2009 Eric Laurent <elaurent@google.com> am c6aaa09b: am 756e75cf: am 090c60bb: Merge change I73b60354 into eclair

Merge commit 'c6aaa09b7075f00e2cff543b50bc84bbdd133d7b'

* commit 'c6aaa09b7075f00e2cff543b50bc84bbdd133d7b':
AudioFlinger: delete Track object when createTrack() fails due to lack of tracks in AudioMixer.
9731f7c96f2c2ce24ff162c12b343e75ed09bd9f 10-Nov-2009 Eric Laurent <elaurent@google.com> am 43396952: am 05388e45: am 93572eef: Merge change Ifb9d6df3 into eclair

Merge commit '43396952a5b9466f18aa640f9755b6b80fa587f5'

* commit '43396952a5b9466f18aa640f9755b6b80fa587f5':
More log for issue 2242381.
670fb3732f737c0c10bb1dd9a5526e3cd3ade056 10-Nov-2009 Christopher Tate <ctate@android.com> am 2c203adb: am ee9f9759: am 1dacdd48: Reset binder service threads\' cgroup/priority after command completion

Merge commit '2c203adbe6df2c0d86abf280cdc36917595fe41d'

* commit '2c203adbe6df2c0d86abf280cdc36917595fe41d':
Reset binder service threads' cgroup/priority after command completion
73b603546de3dfee89b9dc9dc725d5c9e12ce40a 09-Nov-2009 Eric Laurent <elaurent@google.com> AudioFlinger: delete Track object when createTrack() fails due to lack of tracks in AudioMixer.

This problem was encountered as a side effect of issue 2245298.
udioflinger/AudioFlinger.cpp
93572eef41f94f023037482f194db0ab07d0c33a 09-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ifb9d6df3 into eclair

* changes:
More log for issue 2242381.
1dacdd482894bee9fbc1993cbb525fb800750222 08-Nov-2009 Christopher Tate <ctate@android.com> Reset binder service threads' cgroup/priority after command completion

To prevent buggy command implementations from poisoning binder threads'
scheduling class & priority for future command execution, we now reset the
cgroup and thread priority to foreground/normal when a binder service thread
finishes executing the designated command.

Change-Id: Ibc0ab2485751453f6dc96fdb4eb877fd02796e3f
inder/IPCThreadState.cpp
3fdb1267c1623773b4eb5e1b06d5859019275e40 07-Nov-2009 Eric Laurent <elaurent@google.com> More log for issue 2242381.

Added more log in system dump for AudioFlinger and AudioPolicyService to help debug issue 2242381 and other issues where the audio driver hangs.
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
udioflinger/AudioPolicyService.cpp
udioflinger/AudioPolicyService.h
6a9137661d49234f3fa18ba44cc47195cb753a32 06-Nov-2009 Evan Millar <emillar@google.com> am 3d43d816: am c11b225c: am 7e4a0047: Merge change I97b30e2f into eclair

Merge commit '3d43d816772d0c395f7a3335e6bde421b8539508'

* commit '3d43d816772d0c395f7a3335e6bde421b8539508':
Revert jparks code from IPCThreadState.
97b30e2f6239a3ca2b9489ce09320aaf317f9fc8 06-Nov-2009 Evan Millar <emillar@google.com> Revert jparks code from IPCThreadState.
inder/IPCThreadState.cpp
e1cd1ef7b98e015b11f8d31bbeb3d09c8cd805d6 06-Nov-2009 Romain Guy <romainguy@android.com> am b25cb21f: am 8426319c: am f20e9a88: Merge change Idf40f3b0 into eclair

Merge commit 'b25cb21f59da53f138bc516a6047f55a2c412764'

* commit 'b25cb21f59da53f138bc516a6047f55a2c412764':
Prevent crash in Home when using widgets whose ids collide with Home's
237d247cc4ad8b80388aff6ade4fdc3801452293 06-Nov-2009 Jason Sams <rjsams@android.com> am 4909b554: am a8f2c2b4: am 902051df: Merge change I0e27b5ca into eclair

Merge commit '4909b554782c1970bce11fb421b0a06664a25718'

* commit '4909b554782c1970bce11fb421b0a06664a25718':
Fix texture upload bug for narrow texture of less than 32bpp.
85e677572b21e1ae47df9bb31d352effa51b4a46 06-Nov-2009 Romain Guy <romainguy@android.com> Revert change incorrectly submitted as part of change #32153.

Change-Id: I31c52beff03c0d038a257fc151eff3b8da60eddc
i/FramebufferNativeWindow.cpp
f20e9a88a36ced533e96b8873a3321b4d51585ca 06-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Idf40f3b0 into eclair

* changes:
Prevent crash in Home when using widgets whose ids collide with Home's resources.
ae8dd29c035fffa6e302bd485d0552f97db39127 05-Nov-2009 Romain Guy <romainguy@android.com> Prevent crash in Home when using widgets whose ids collide with Home's
resources.

Bug #2228943.

Approved by mcleron, triaged by ryanpc.

Change-Id: Idf40f3b09502ae5d0d3b9a6a72c265a2de2ffca2
i/FramebufferNativeWindow.cpp
0e27b5cadbc9cff87258f14ac40d9c4b365849b3 05-Nov-2009 Jason Sams <rjsams@android.com> Fix texture upload bug for narrow texture of less than 32bpp.
s/rsAllocation.cpp
ba986b1acbf378c1ab8fd0f19669ae8f801c6f5f 05-Nov-2009 Jason Parks <jparks@google.com> am 3e1000b7: am 6176790e: am ef16a545: Merge change I2867746d into eclair

Merge commit '3e1000b706f92d229e473ae31f76643d82d5cdb9'

* commit '3e1000b706f92d229e473ae31f76643d82d5cdb9':
When a thread is about to be put back onto the thread pool ensure that it is in the foreground cgroup.
2867746d7b59579ecf7b2de41e42fc1ca88d04d9 04-Nov-2009 Jason Parks <jparks@google.com> When a thread is about to be put back onto the thread pool ensure that it is in the foreground cgroup.
inder/IPCThreadState.cpp
bd98f10764045adbdca506c2e7518adcc31e1c0e 04-Nov-2009 Jason Sams <rjsams@android.com> am eb7e27e8: am a1c3681f: am decc139b: Merge change I7a824efc into eclair

Merge commit 'eb7e27e8007d1b27d3e01c376b6747dc885db517'

* commit 'eb7e27e8007d1b27d3e01c376b6747dc885db517':
Support applications changing the surface attached to the RS.
74807763e00df50915b0d6934e5f37a43b614240 04-Nov-2009 Jason Sams <rjsams@android.com> am 03fa848a: am ebca5eec: am 83665194: Merge change I9d5e03db into eclair

Merge commit '03fa848afd16ee678e2d04ec824794893f199804'

* commit '03fa848afd16ee678e2d04ec824794893f199804':
Fix RS bugs. We were holding a pointer to the script text from the java vm. Move freeing of objects to before context teardown to allow allocations to clean up their data.
efd9b6fb2e0f31b50db089352118e5daeb268879 03-Nov-2009 Jason Sams <rjsams@android.com> Support applications changing the surface attached to the RS.
s/rs.spec
s/rsContext.cpp
s/rsContext.h
83665194abceeb7681cb7ac49a4b71aa6e96b1b1 03-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I9d5e03db into eclair

* changes:
Fix RS bugs. We were holding a pointer to the script text from the java vm. Move freeing of objects to before context teardown to allow allocations to clean up their data.
b4229d4b0600f210e540f76605e1d85dc98172e3 03-Nov-2009 Jason Parks <jparks@google.com> am 11335d98: am 2e6e80b9: am c6e88afb: Merge change If2fdad3b into eclair

Merge commit '11335d98fd28c6c10967055afb1862e6e44e8e80'

* commit '11335d98fd28c6c10967055afb1862e6e44e8e80':
Add a warning when we leave threads in the binder thread pool in the background scheduling group.
c6e88afb3eda9da97f65b2a2f32e6a12c18301ba 03-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change If2fdad3b into eclair

* changes:
Add a warning when we leave threads in the binder thread pool in the background scheduling group.
dabcf4151adeb1376ce3b6c9f4b060f9b7fd8a16 03-Nov-2009 Jason Parks <jparks@google.com> Add a warning when we leave threads in the binder thread pool in the background scheduling group.
inder/IPCThreadState.cpp
9d5e03db9929271f56ac4a0078d9474d7011efcd 03-Nov-2009 Jason Sams <rjsams@android.com> Fix RS bugs. We were holding a pointer to the script text from the java vm. Move freeing of objects to before context teardown to allow allocations to clean up their data.
s/rsAllocation.cpp
s/rsContext.cpp
s/rsObjectBase.cpp
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC.h
76363ea3eec0ab775a088169dc8069bf4afca1c2 03-Nov-2009 Eric Laurent <elaurent@google.com> am 7fc9343c: am 62174d02: am 65e4f618: Merge change I60bed5d3 into eclair

Merge commit '7fc9343c33dc5b97963dcd0a2e46d391ec333985'

* commit '7fc9343c33dc5b97963dcd0a2e46d391ec333985':
Log for issue 2203561.
55ab1c002dde27bd31b9d878d967d295fac68cd7 03-Nov-2009 Mathias Agopian <mathias@google.com> am d1d744cd: am 07d38c66: am 8637759a: Merge change I36d0184e into eclair

Merge commit 'd1d744cdf4b08c8ef969790bae305c82ae783f4e'

* commit 'd1d744cdf4b08c8ef969790bae305c82ae783f4e':
fix[2228133] pixelflinger ignores the "vertical stride" leading to artifacts when playing back video
f4ee40e26ec43e17359ff5788565349a9aa71908 02-Nov-2009 Eric Laurent <elaurent@google.com> Log for issue 2203561.

Implemented AudioPolicyService dump().
Added detailed dump for AudioPolicyManageriGeneric when AudioPolicyService is dumped.
udioflinger/AudioPolicyManagerGeneric.cpp
udioflinger/AudioPolicyManagerGeneric.h
udioflinger/AudioPolicyService.cpp
udioflinger/AudioPolicyService.h
8637759a1d34a4adda292579d5f8790587659235 03-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I36d0184e into eclair

* changes:
fix[2228133] pixelflinger ignores the "vertical stride" leading to artifacts when playing back video
36d0184e089831b74de6005f01da9e7b26679bb9 03-Nov-2009 Mathias Agopian <mathias@google.com> fix[2228133] pixelflinger ignores the "vertical stride" leading to artifacts when playing back video

we lost the concept of vertical stride when moving video playback to EGLImage.
Here we bring it back in a somewhat hacky-way that will work only for the
softgl/mdp backend.
urfaceflinger/LayerBuffer.cpp
i/GraphicBuffer.cpp
7a889a37bed8d315ec53e76819e6c31a9385ebd2 03-Nov-2009 Dima Zavin <dima@android.com> am 8559ca18: am 0a5201f0: am dfc7244a: libbinder: MemoryHeapPmem: honor the NO_CACHING flag when creating a client heap

Merge commit '8559ca18de9cdd60bd8979e641c4fd1a8e66b62e'

* commit '8559ca18de9cdd60bd8979e641c4fd1a8e66b62e':
libbinder: MemoryHeapPmem: honor the NO_CACHING flag when creating a client heap
dfc7244aa874ae31cc13758e1e2cf6112f7a66b4 03-Nov-2009 Dima Zavin <dima@android.com> libbinder: MemoryHeapPmem: honor the NO_CACHING flag when creating a client heap

Change-Id: Ia7beb800f5a24beaa4b7f3032b486d4ed1991b23
Signed-off-by: Dima Zavin <dima@android.com>
inder/MemoryHeapPmem.cpp
46f385459ff7832d4e531cc8ac3430b24070aa33 03-Nov-2009 Jason Sams <rjsams@android.com> am 15ec511b: am 38f95586: am 03e778b9: Merge change Ic4918c30 into eclair

Merge commit '15ec511b5c5cdb901bf1bd0e26ff0514635fc681'

* commit '15ec511b5c5cdb901bf1bd0e26ff0514635fc681':
Fix a build break. Too many branches to keep track of.
a3cbfe0e8f586341c421f6f6e5e5992deb7e318e 03-Nov-2009 Iliyan Malchev <malchev@google.com> am 8ba42ba8: am cd767bfd: am d4649b2f: Merge change Ibaef6141 into eclair

Merge commit '8ba42ba83b206929c4c13c0b8ef24de87a92f42c'

* commit '8ba42ba83b206929c4c13c0b8ef24de87a92f42c':
libbinder: add a NO_CACHING flag to MemoryHeapBase
43b5a566442f2f15cbc04d2ac2c7e2169d10d8bd 03-Nov-2009 Jason Sams <rjsams@android.com> am 766df995: am d31b0e44: am 3bbb5e9a: Merge change Ib7a6c434 into eclair

Merge commit '766df995e30caa054cc25068e55f160c765590eb'

* commit '766df995e30caa054cc25068e55f160c765590eb':
Fix some leaks. This fixes the major malloc memory leak in allApps. Still tracking some much more minor issues.
03e778b913adfb450889c51adf042388ada7c5f8 03-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ic4918c30 into eclair

* changes:
Fix a build break. Too many branches to keep track of.
c4918c30147d72c44e9a2a9fe7b9cbe88948677a 03-Nov-2009 Jason Sams <rjsams@android.com> Fix a build break. Too many branches to keep track of.
s/rsSimpleMesh.cpp
s/rsType.cpp
d4649b2f8ea8285a4eb3c47e87520c7835e6c672 02-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ibaef6141 into eclair

* changes:
libbinder: add a NO_CACHING flag to MemoryHeapBase
b7a6c4340a35b7cc4ceeeccf6cc01ed82c99a8ba 02-Nov-2009 Jason Sams <rjsams@android.com> Fix some leaks. This fixes the major malloc memory leak in allApps. Still tracking some much more minor issues.
s/rsAllocation.cpp
s/rsContext.cpp
s/rsObjectBase.cpp
s/rsSimpleMesh.cpp
s/rsType.cpp
a4ded45056b7bca6f90f5d769c5eea25c2035170 02-Nov-2009 Eric Laurent <elaurent@google.com> am 80164966: am a86861a8: am 31f62008: Merge change I29bc113c into eclair

Merge commit '80164966d087388ac0192caf7270158dea22444e'

* commit '80164966d087388ac0192caf7270158dea22444e':
Fix issue 197683: English IME key-press latency is noticeably higher on passion than sholes. Part 2.
0bca68cfff161abbc992fec82dc7c88079dd1a36 30-Oct-2009 Eric Laurent <elaurent@google.com> Fix issue 197683: English IME key-press latency is noticeably higher on passion than sholes. Part 2.

Reduce sleep time in AudioFlinger mixer thread when no data has been written to output to speed up startup time when exiting standby.

The rest of the modifications for this issues is in kernel driver:
commit 0dbb0ee136ed8de757df1ae26d84556c1751deae for buffer size modification from 8192 to 4800 bytes.
Another kernel improvement that is not submitted yes will reduce delay when audio output is exiting standby.
udioflinger/AudioFlinger.cpp
3ccc7fa6ba3d2d60528b080622ed017928189c5f 02-Nov-2009 Mathias Agopian <mathias@google.com> am 739dcc56: am b199d114: am 9baef73c: Merge change Id8b28e4f into eclair

Merge commit '739dcc562af9bc4506d8cc6ccf837f072ed90d2d'

* commit '739dcc562af9bc4506d8cc6ccf837f072ed90d2d':
fix [2225964] Android runtime restarted in surfaceflinger/BlurFilter.cpp
aee73dc45a2d281a28a0d011779be40e7d221ea7 02-Nov-2009 Mathias Agopian <mathias@google.com> am c64e9346: am d85545d0: am d01767f8: Merge change I56779290 into eclair

Merge commit 'c64e9346785a1a4fc95ec6cf27da8a5193a2dfbc'

* commit 'c64e9346785a1a4fc95ec6cf27da8a5193a2dfbc':
fix[2222341] Soft reset while going back from camcorder settings
8617d1a6f39b171f9c6be65de561e81e1a965067 02-Nov-2009 Mathias Agopian <mathias@google.com> am 5acbf81a: am 74d4640c: am f989c114: Merge change If007a2fa into eclair

Merge commit '5acbf81a20f5cd121c1eee81de5f9350b1a8c16e'

* commit '5acbf81a20f5cd121c1eee81de5f9350b1a8c16e':
return proper error code from eglCreateImageKHR
baef6141a3239c7dd9bad0e2cd8a9ece5eef5a7e 30-Oct-2009 Iliyan Malchev <malchev@google.com> libbinder: add a NO_CACHING flag to MemoryHeapBase

The NO_CACHING flag translates to opening a memory region with O_SYNC.

Signed-off-by: Iliyan Malchev <malchev@google.com>
inder/MemoryHeapBase.cpp
9baef73c9b2ea17a4eba997c45e944ac6b9af835 30-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Id8b28e4f into eclair

* changes:
fix [2225964] Android runtime restarted in surfaceflinger/BlurFilter.cpp
d01767f8b7038108f9125cd2122b117db9919824 30-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I56779290 into eclair

* changes:
fix[2222341] Soft reset while going back from camcorder settings
f989c1140bbc84480498df38abec0fafff04e6ee 30-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change If007a2fa into eclair

* changes:
return proper error code from eglCreateImageKHR
0b0722f980f40e1ac0929a7f1a6e2df7af983478 30-Oct-2009 Mathias Agopian <mathias@google.com> fix[2222341] Soft reset while going back from camcorder settings

add a way to convert a mapped "pushbuffer" buffer to a gralloc handle
which then can be safely used by surfaceflinger, without including
gralloc_priv.h
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
08c19beee4c8a2fce3f9d2baa78c9d436bedf65d 29-Oct-2009 Andy McFadden <fadden@android.com> DO NOT MERGE: Another gcc 4.0.3 workaround.

Temporarily make a function public that doesn't need to be. When
host gcc-4.0.3 is gone from the build servers we can undo this.

(Cherry-picked from eclair-mr2.)
urfaceflinger/SurfaceFlinger.h
d8b28e4fcddcacdbd2b69584a4e3aa12f52e8229 30-Oct-2009 Mathias Agopian <mathias@google.com> fix [2225964] Android runtime restarted in surfaceflinger/BlurFilter.cpp

crash was due to an unintialized variable, which caused the wrong bluring
format to be used and caused a memory overrrun.
urfaceflinger/LayerBlur.cpp
f007a2faa1d765e9b53553a8214179b253e3cbbd 29-Oct-2009 Mathias Agopian <mathias@google.com> return proper error code from eglCreateImageKHR
urfaceflinger/LayerBuffer.cpp
a6e385cf20a3dd2dc01aca09520845c58187387f 29-Oct-2009 Marco Nelissen <marcone@google.com> am 923f2cf0: am a89a059e: am 04104665: Merge change I911458a0 into eclair

Merge commit '923f2cf0dc15ac2bafa8013b31a722b85a64176b'

* commit '923f2cf0dc15ac2bafa8013b31a722b85a64176b':
Fix x offset for boxed textures
a2e9e893267498938a16eccdc1a7836d47581295 29-Oct-2009 Andy McFadden <fadden@android.com> am cad9a4b0: am 66e06205: Another gcc 4.0.3 workaround.

Merge commit 'cad9a4b0468eb9611cc9b7d7b380d8af3fff8588'

* commit 'cad9a4b0468eb9611cc9b7d7b380d8af3fff8588':
Another gcc 4.0.3 workaround.
a89a059ea7f4cb3180feaa131eda4713974c3873 29-Oct-2009 Marco Nelissen <marcone@google.com> am 04104665: Merge change I911458a0 into eclair

Merge commit '04104665271248719cb3659e42938fa4bec0261e' into eclair-mr2

* commit '04104665271248719cb3659e42938fa4bec0261e':
Fix x offset for boxed textures
66e06205030cfc72f9aeeac57acfd6cbff0c1b8a 29-Oct-2009 Andy McFadden <fadden@android.com> Another gcc 4.0.3 workaround.

Temporarily make a function public that doesn't need to be. When
host gcc-4.0.3 is gone from the build servers we can undo this.
urfaceflinger/SurfaceFlinger.h
ea138a5f83f45dd6bc39c596e708307dc50adb85 29-Oct-2009 Mathias Agopian <mathias@google.com> am 64d3f44c: am 893cb4da: am 73e17015: Merge change I8d2de438 into eclair

Merge commit '64d3f44c7bf5a6e80be419df5850ef60fec216b5'

* commit '64d3f44c7bf5a6e80be419df5850ef60fec216b5':
fix [2143798] Need to figure out how to do video
060746b3831fcc31eede09e55240143d413460e5 29-Oct-2009 Jason Sams <rjsams@android.com> am 3c249da7: am 21e799ed: am e9e50b57: Merge change I7136220b into eclair

Merge commit '3c249da7eaceaffae87657aeb7179ffc4a5e1570'

* commit '3c249da7eaceaffae87657aeb7179ffc4a5e1570':
Fix egl cleanup code on context teardown.
911458a081e098b7b289ed7135e1719733d7e12d 28-Oct-2009 Marco Nelissen <marcone@google.com> Fix x offset for boxed textures
s/rsAllocation.cpp
73e17015d3cd67c93ccad5d63d31c439ff6fa694 28-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I8d2de438 into eclair

* changes:
fix [2143798] Need to figure out how to do video
7136220b54e68e0c7faac30577ed20b7482481fd 27-Oct-2009 Jason Sams <rjsams@android.com> Fix egl cleanup code on context teardown.
s/rsContext.cpp
s/rsContext.h
9042b4564de5477b18e680c7dce13b587a681dd9 27-Oct-2009 Mathias Agopian <mathias@google.com> fix [2143798] Need to figure out how to do video

Use EGLImageKHR instead of copybit directly.
We now have the basis to use streaming YUV textures (well, in fact
we already are). When/if we use the GPU instead of the MDP we'll
need to make sure it supports the appropriate YUV format.

Also make sure we compile if EGL_ANDROID_image_native_buffer is not supported
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
urfaceflinger/LayerDim.cpp
i/GraphicBuffer.cpp
83f1c63c56ed73e0dfcc4de67bc58a4df5b3fe69 26-Oct-2009 Jason Sams <rjsams@android.com> Fix dirty state tracking of allocation attached to ProgramVertex objects when being updated while not attached.
s/rsAllocation.cpp
s/rsAllocation.h
s/rsContext.cpp
s/rsContext.h
s/rsProgram.cpp
s/rsProgram.h
bf96aaadd46fb5b0884070177faa16ec4f22e2ba 24-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Icf10db28 into eclair

* changes:
Fix issue 2192181: AudioFlinger must provide separated methods to set VOICE_CALL stream volume and down link audio volume.
382e17d46fc54396a303593f2db3abe1fb911411 22-Oct-2009 Mathias Agopian <mathias@google.com> fix [2211532] improves sholes graphics performance

Instead of using glTex{Sub}Image2D() to refresh the textures, we're using an EGLImageKHR object
backed up by a gralloc buffer. The data is updated using memcpy(). This is faster than
glTex{Sub}Image2D() because the texture is not swizzled. It also uses less memory because
EGLImageKHW is not limited to power-of-two dimensions.
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
415f3e2875b8b0b860d0dd6a69ff6868571c36bb 21-Oct-2009 Eric Laurent <elaurent@google.com> Fix issue 2192181: AudioFlinger must provide separated methods to set VOICE_CALL stream volume and down link audio volume.

Added setVoiceVolume() method to AudioSystem, AudioFlinger, IAudioFlinger, AudioPolicyService.
Removed call to AudioHardwareInterface::setVoiceVolume() from AudioFlinger::setStreamVolume().
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
udioflinger/AudioPolicyService.cpp
udioflinger/AudioPolicyService.h
7bb7e99216956d917af1786a3e02a92cac46fc84 16-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ia8ac904d into eclair

* changes:
fix [2182249] [MR1] valgrind error in surface flinger
741a6100a0de3cbbbb44c4e6ecc8be770e684a1e 16-Oct-2009 Jason Sams <rjsams@android.com> Fix bug where dirty messages for allocations attached to programVertex objects could be lost.
s/rsContext.cpp
s/rsProgram.h
a8ac904d97a008b346390c87e74d44df39b0f320 16-Oct-2009 Mathias Agopian <mathias@google.com> fix [2182249] [MR1] valgrind error in surface flinger
i/tests/region.cpp
41c19db90e250e2b7cb438904f0e96a0ef455d6d 16-Oct-2009 Jason Sams <rjsams@android.com> Remove hack in RS that called exit to WAR now fixed driver bugs. Make gloabal init safe by locking around the critical code.
s/rsContext.cpp
s/rsContext.h
c7412b3b08d62c298dc7c3e5f369f406a3c0eac2 15-Oct-2009 Jason Sams <rjsams@android.com> Minor bug fixes and add glError check.
s/rsContext.cpp
s/rsProgramRaster.cpp
6a17e163a0dca28c1b2f957561e909172b7259c8 08-Oct-2009 Jason Sams <rjsams@android.com> Add egl init start message to help debug driver init hangs.
s/rsContext.cpp
d7fa122dfed376cd9c60eac516e2730acf23f3dd 10-Oct-2009 Romain Guy <romainguy@android.com> Add new RenderScript sample: ImageProcessing.

Change-Id: I5e482bbc34911c940a3a74258f8f8549b1939bc4
s/java/ImageProcessing/Android.mk
s/java/ImageProcessing/AndroidManifest.xml
s/java/ImageProcessing/res/drawable-hdpi/data.jpg
s/java/ImageProcessing/res/layout/main.xml
s/java/ImageProcessing/res/raw/threshold.rs
s/java/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
s/rsScriptC_Lib.cpp
80a6a229b33b0868944fe011af2d778e23c83322 08-Oct-2009 Eric Laurent <elaurent@google.com> Fix issue 2174002: After rejecting Call when device ringtone is mute and playing music, audio is not transfered to BT device.

Added a workarouond to request the A2DP output standby directly to audio hardware when the sink is suspended as it seems that the suspend request often fails.

Also take into account resume requests received while a suspend request is pending.
udioflinger/A2dpAudioInterface.cpp
udioflinger/A2dpAudioInterface.h
7c12540f09659dec0a4222831ed7e5ab8d7b0cdf 08-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ibd2197fb into eclair

* changes:
Add script to script call support. Add exception to catch out of bound index data when added to TriangleMeshBuilder.
bd2197fb0038acd2dc4b17ad3ed3c69cc29dcce2 08-Oct-2009 Jason Sams <rjsams@android.com> Add script to script call support. Add exception to catch out of bound index data when added to TriangleMeshBuilder.
s/rsContext.h
s/rsScriptC_Lib.cpp
4ff6d01d42fce2dc52b2dec8f59b625b18770bb0 08-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I46b2df15 into eclair

* changes:
fix [2164183] sometimes device just wants to stay asleep
0da41a3635180398ae6cbf1ff75575f5dcb6e40b 07-Oct-2009 Mathias Agopian <mathias@google.com> fix [2170283] SurfaceFlinger crashes on OOM.

when running out of memory, a null handle is returned but the error code may not be set.
In that case we need to return NO_MEMORY instead of NO_ERROR, so that the calling code
won't try to dereference the null pointer.
i/Surface.cpp
46b2df153fccf7f918ee5d7d747c208bdd2d55f4 08-Oct-2009 Mathias Agopian <mathias@google.com> fix [2164183] sometimes device just wants to stay asleep

When switching rapidily orientation back and forth, surfaces end-up
acquiring the freeze-lock when the first orientation change happens,
but never release it because by the time the 2nd orientation change
comes in, the surface size is back to its original size and
doesn't appear to have resized.

we now always release the freeze-lock when we receive a buffer of the
expected size.
urfaceflinger/Layer.cpp
e05f07dffa196d6403733b26317faa9f267d518f 08-Oct-2009 Mathias Agopian <mathias@google.com> fix [2170319] gmail bulk operation checkbox latency on passion

This also fixes [2152536] ANR in browser

When SF is enqueuing buffers faster than SF dequeues them.
The update flag in SF is not counted and under some situations SF will only
dequeue the first buffer. The state at this point is not technically
corrupted, it's valid, but just delayed by one buffer.

In the case of the Browser ANR, because the last enqueued buffer was delayed
the resizing of the current buffer couldn't happen.

The system would always fall back onto its feet if anything -else- in
tried to draw, because the "late" buffer would be picked up then.
urfaceflinger/Layer.cpp
i/Android.mk
i/SharedBufferStack.cpp
i/SurfaceComposerClient.cpp
i/SurfaceFlingerSynchro.cpp
460b60c9b064ef02e9eaf56ecf2f266fd7c4089c 07-Oct-2009 Mathias Agopian <mathias@google.com> Revert "temporarily disable the use of glTexImage2D for sw buffers on sholes."

This reverts commit c131c5671965b69b0dee3e4afa3b3dd5e3c0c405.

Approved by Hiroshi
urfaceflinger/DisplayHardware/DisplayHardware.cpp
26fe45dcb3df12eda94d93f1473cd6a2f5f345c7 07-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I4961c959 into eclair

* changes:
fix [2152536] ANR in browser
4961c959aebac31991fd7653853d47dfd79d3472 07-Oct-2009 Mathias Agopian <mathias@google.com> fix [2152536] ANR in browser

A window is created and the browser is about to render into it the
very first time, at that point it does an IPC to SF to request a new
buffer. Meanwhile, the window manager removes that window from the
list and the shared memory block it uses is marked as invalid.
However, at that point, another window is created and is given the
same index (that just go freed), but a different identity and resets
the "invalid" bit in the shared block. When we go back to the buffer
allocation code, we're stuck because the surface we're allocating for
is gone and we don't detect it's invalid because the invalid bit has
been reset.

It is not sufficient to check for the invalid bit, I should
also check that identities match.
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBlur.cpp
i/SharedBufferStack.cpp
i/Surface.cpp
62443f5f4517ba17d911975e695f1ab75bfdbf77 06-Oct-2009 Eric Laurent <elaurent@google.com> Fix issue 2139634: DTMF tones on Sholes popping, hissing (audio latency too high).

This change is a complement to the main fix in kernel driver for the same issue (partner change #1250).
It removes clicks sometimes heard after the end of the tones while audio flinger is sending 0s to the audio output stream.
The problem was that the sleep time between two writes was more than the duration of one audio output stream buffer which could cause some underrun.

Also fixed a recent regression in ToneGenerator that made that the end of previous tone was repeated at the beginning of current one under certain timing circumstances when the maximum tone duration was specified.
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
c131c5671965b69b0dee3e4afa3b3dd5e3c0c405 07-Oct-2009 Mathias Agopian <mathias@google.com> temporarily disable the use of glTexImage2D for sw buffers on sholes.

we're going to first cut a build without this change.

Approved by Dr. Hiroshi.
urfaceflinger/DisplayHardware/DisplayHardware.cpp
9d6a685ba939f413a8d3e1e97627593aa1cdf6cb 07-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge changes I430cf57b,I51f02f67,I464f13f3 into eclair

* changes:
fix [2168528] enable glTexImage2D code path in SF for software-only buffers
fix [2168531] have software-only gralloc buffer side-step the HAL
fix [2167050] glTexImage2D code path buggy in SurfaceFlinger
351a7073fb60eb3534ec8c69ab263f057a124500 06-Oct-2009 Mathias Agopian <mathias@google.com> fix [2168528] enable glTexImage2D code path in SF for software-only buffers
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/DisplayHardware/DisplayHardware.h
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
fe7c2a50148ac9f0d6fbe0030fc53f457c10870a 07-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I996db8da into eclair

* changes:
Fix tls crash on startup if more than one RS contexts are created in one process.
996db8dace63c452e5828586415b0dc57cccb3db 07-Oct-2009 Jason Sams <rjsams@android.com> Fix tls crash on startup if more than one RS contexts are created in one process.
s/rsContext.cpp
s/rsScriptC.cpp
6f5f5a095a5a4d42fc656cf8c1e6d0f67594f88d 06-Oct-2009 Mathias Agopian <mathias@google.com> fix [2168531] have software-only gralloc buffer side-step the HAL
i/GraphicBufferAllocator.cpp
i/GraphicBufferMapper.cpp
6950e428feaccc8164b989ef64e771a99948797a 06-Oct-2009 Mathias Agopian <mathias@google.com> fix [2167050] glTexImage2D code path buggy in SurfaceFlinger

When EGLImage extension is not available, SurfaceFlinger will fallback to using
glTexImage2D and glTexSubImage2D instead, which requires 50% more memory and an
extra copy. However this code path has never been exercised and had some bugs
which this patch fix.

Mainly the scale factor wasn't computed right when falling back on glDrawElements.
We also fallback to this mode of operation if a buffer doesn't have the adequate
usage bits for EGLImage usage.

This changes only code that is currently not executed. Some refactoring was needed to
keep the change clean. This doesn't change anything functionaly.
urfaceflinger/Android.mk
urfaceflinger/Buffer.cpp
urfaceflinger/Buffer.h
urfaceflinger/BufferAllocator.cpp
urfaceflinger/BufferAllocator.h
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
urfaceflinger/LayerDim.cpp
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
i/Android.mk
i/BufferMapper.cpp
i/GraphicBuffer.cpp
i/GraphicBufferAllocator.cpp
i/GraphicBufferMapper.cpp
i/ISurface.cpp
i/Surface.cpp
i/SurfaceBuffer.cpp
968a9571a391a2dbb0512c4fb99d04ab50861753 06-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I516c3191 into eclair

* changes:
Implement data push from scripts. Fixes the problem where apps would have to poll to monitor a scripts state. Fix bug in StoreState where state could be overridden by the default unless the script used more than one state.
516c31911578db8ce53529483c3ded918ac7dc6b 06-Oct-2009 Jason Sams <rjsams@android.com> Implement data push from scripts. Fixes the problem where apps would have to poll to monitor a scripts state.
Fix bug in StoreState where state could be overridden by the default unless the script used more than one state.

Change only impacts renderscript and renderscript apps.
s/RenderScript.h
s/rsContext.cpp
s/rsContext.h
s/rsLocklessFifo.cpp
s/rsScriptC_Lib.cpp
s/rsThreadIO.cpp
s/rsThreadIO.h
36f68b8f24df906c969581b0b8e1a47f95dc03cb 29-Sep-2009 Wu-cheng Li <wuchengli@google.com> Add zoom functions and sendCommand.

b2060030
i/Camera.cpp
i/ICamera.cpp
f8e4bc9f7789b98b54fe04df56555ca8c630df70 03-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I0c4cec7e into eclair

* changes:
Attempt to fix [2152536] ANR in browser
7f047786d9e2027a15001a653675dae5a80f9390 03-Oct-2009 Jason Sams <rjsams@android.com> Update the SimpleMesh API to support new attribute types. Also spilt add/set commands to avoid permutation explosion.
s/java/Film/src/com/android/film/FilmStripMesh.java
0c4cec7e4df87181486d280c98fba9c0f4774c37 03-Oct-2009 Mathias Agopian <mathias@google.com> Attempt to fix [2152536] ANR in browser

The ANR is caused by SurfaceFlinger waiting for buffers of a removed surface to become availlable.
When it is removed from the current list, a Surface is marked as NO_INIT, which causes SF to return
immediately in the above case. For some reason, the surface here wasn't marked as NO_INIT.

This change makes the code more robust by always (irregadless or errors) setting the NO_INIT status
in all code paths where a surface is removed from the list.

Additionaly added more information in the logs, should this happen again.
urfaceflinger/Buffer.cpp
urfaceflinger/Buffer.h
urfaceflinger/BufferAllocator.cpp
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/SurfaceFlinger.cpp
i/SharedBufferStack.cpp
i/Surface.cpp
9e384dddb8800c9f84f36bf26ec8df298b1d38bd 02-Oct-2009 Joe Onorato <joeo@android.com> Add a test pattern as rollo's icon
s/java/Rollo/AndroidManifest.xml
s/java/Rollo/res/drawable/test_pattern.png
e9ad9a719dc66437ddf021d13e6ca736a23b5413 01-Oct-2009 Jason Sams <rjsams@android.com> Implement screen aligned bitmap drawing support.
s/rsMatrix.cpp
s/rsMatrix.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsScriptC_Lib.cpp
436344ae12c819f58306ceb94241a266141e1218 01-Oct-2009 Christopher Tate <ctate@android.com> Turn off most of the backup-related debug logging

The core logging in BackupManagerService and in the Google backup transport are
still enabled at this point.

Change-Id: I10abfa565bbd1097dd3631051b6aca163e4af33a
tils/BackupData.cpp
7e1af37c3148112d9c801272bfa6359a005baf6d 01-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ibe2085be into eclair

* changes:
Fix issue 2153835: AudioFlinger: setParameters() can remain stuck if output thread is terminated.
98a9c56acf1857adaf1773bd91c88a8364fd3fa8 30-Sep-2009 Mathias Agopian <mathias@google.com> attempt to work around [2155085, 2150246] stuck in closeTransaction()
urfaceflinger/SurfaceFlinger.cpp
b7d94602e740e2fc9f98b573b5a3547189250599 29-Sep-2009 Eric Laurent <elaurent@google.com> Fix issue 2153835: AudioFlinger: setParameters() can remain stuck if output thread is terminated.

Wait for the parameter set completed condition with a time out in ThreadBase::setParameters().
Also lock AudioFlinger mutex before accessing thread list in AudioFlinger::setParameters() and keep a strong reference
on the thread being used in case it is exited while processing the request.
udioflinger/AudioFlinger.cpp
e4d51bb2a9706a08c3160eb39e076a89c225257c 30-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge changes I8851617a,Ie1b6f244,I70cab912,Ibd23e30d into eclair

* changes:
fix [2152247] Windows sometimes drawn scaled up.
invalidate the surface when the physical changes
introduce the notion of the requested size in the Layer state
remove unused code
a015c9be1b623749320717ad05352eeb76cc6f11 30-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I45094a34 into eclair

* changes:
remove dead code
bd23e30de410761af8c68afd8c4b27990e7a099a 30-Sep-2009 Mathias Agopian <mathias@google.com> fix [2152247] Windows sometimes drawn scaled up.
urfaceflinger/Layer.cpp
70cab91229c3c2ca4bb75ab63b552ac7d1a6a8bb 30-Sep-2009 Mathias Agopian <mathias@google.com> invalidate the surface when the physical changes
urfaceflinger/Layer.cpp
urfaceflinger/LayerBase.cpp
d0ac8c0879a8ba96d7ac393a2776d168009eccf7 30-Sep-2009 Dave Sparks <davidsparks@android.com> Reduce the log spew from AudioFlinger due to a certain device that can't meet latency timing. Bug 2142215.
udioflinger/AudioFlinger.cpp
e1b6f24423d61b7892e4a59f5a65b04231526712 30-Sep-2009 Mathias Agopian <mathias@google.com> introduce the notion of the requested size in the Layer state
urfaceflinger/Layer.cpp
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
8851617aea7d2cd61fd8a8585bd4414a14d71653 30-Sep-2009 Mathias Agopian <mathias@google.com> remove unused code
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/SurfaceFlinger.cpp
45094a34f014fa79e78eea8ee2091021bf1de209 30-Sep-2009 Mathias Agopian <mathias@google.com> remove dead code
urfaceflinger/LayerBase.cpp
bd5b57227954e27ca05932721a6917c6edde17b3 29-Sep-2009 Romain Guy <romainguy@android.com> absf() -> fabsf() instead of fabs()

Change-Id: I5571a635757295aa1514aeaff72e80cc3dd8752c
s/rsScriptC_Lib.cpp
ff966d5f6c88a9fba033f1bb5ec087464376534d 29-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I5235cf3f into eclair

* changes:
Fix but processing raster state pragma. rename stateFragmentStore to stateStore
5235cf3f41cfcfe39c7072fddf1ead52db31292d 29-Sep-2009 Jason Sams <rjsams@android.com> Fix but processing raster state pragma.
rename stateFragmentStore to stateStore
s/java/Film/res/raw/filmimage.c
s/java/Film/res/raw/filmstrip.c
s/java/Fountain/res/raw/fountain.c
s/java/Rollo/res/raw/rollo.c
s/java/Rollo/res/raw/rollo2.c
s/rsContext.cpp
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC_Lib.cpp
fe1a86df8b1c23e3290f96dce69984bf979a462b 28-Sep-2009 Wu-cheng Li <wuchengli@google.com> Change FLASH_MODE_VIDEO_LIGHT to FLASH_MODE_TORCH.
i/CameraParameters.cpp
81384bf927c47a4efa653b14273084a13e67e3ac 28-Sep-2009 Mathias Agopian <mathias@google.com> don't emit GL commands when sf is in freeze mode

We were emitting GL commands, calling composition complete and releasing clients
without ever calling eglSwapBuffers(), which is completely wrong on non-direct
renders. This could cause transient drawing artifacts when unfreezing the
screen (upon orientaion change for instance) and could also block the clients
for ever as they are waiting for their previous buffer to be rendered.
urfaceflinger/SurfaceFlinger.cpp
960972d465d6890d51c73fc08dda7fb17825ce7f 28-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 27375 into eclair

* changes:
Allways dump the list of allocated buffers when an allocation fails.
c4646e654a18543be4e2f7d98f63bc4e603128e1 28-Sep-2009 Mathias Agopian <mathias@google.com> Allways dump the list of allocated buffers when an allocation fails.

Hopefully this will help us understand cases of failures such as [2148405]
urfaceflinger/BufferAllocator.cpp
41c64ba73cf4dbc14beeaaa618afdd908da8b0cb 28-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 27364 into eclair

* changes:
Improve logging code to dump more detaild rs object info. Fix bug with predefined elements not being recreated for contexts after one was destroyed. Add stricter type enforcement.
3c0dfbab807a459622aeade4940daddf482dec66 28-Sep-2009 Jason Sams <rjsams@android.com> Improve logging code to dump more detaild rs object info. Fix bug with predefined elements not being recreated for contexts after one was destroyed. Add stricter type enforcement.
s/java/Film/src/com/android/film/FilmRS.java
s/java/Rollo/src/com/android/rollo/RolloRS.java
s/rsAllocation.cpp
s/rsComponent.cpp
s/rsComponent.h
s/rsElement.cpp
s/rsElement.h
s/rsObjectBase.cpp
s/rsObjectBase.h
s/rsType.cpp
s/rsType.h
119376ed49ff118a59b955b66b09ad57ce54587d 28-Sep-2009 Doug Zongker <dougz@android.com> fix "pacakge" typo in error log message
tils/ResourceTypes.cpp
f075b4e713c4e10e4cea12c856fcf4aaab9c29d4 26-Sep-2009 Jason Sams <rjsams@android.com> Fix fountain crash.
s/java/Fountain/res/raw/fountain.c
0c103af370f7f0ec59a51f43ec0f6bd51972d3cb 26-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 27171 into eclair

* changes:
Fix remaining object leaks. Change FountainView to tear down the rsContext and recreate on rotation to test teardown.
a57e982785d318ddcaa4d86486d63343acefa3fb 26-Sep-2009 Jason Sams <rjsams@android.com> Fix remaining object leaks. Change FountainView to tear down the rsContext and recreate on rotation to test teardown.
s/java/Fountain/src/com/android/fountain/FountainView.java
s/rsType.cpp
s/rsType.h
aafc7b547c556da095777a7ed8aac71a68fa9b0a 26-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 27169 into eclair

* changes:
Improved object lifecycle tracking and fix leaks.
61f08d6fa7c7657e9fbcd17e9a1c5b9114bb3844 26-Sep-2009 Jason Sams <rjsams@android.com> Improved object lifecycle tracking and fix leaks.
s/rsAdapter.cpp
s/rsAllocation.cpp
s/rsComponent.cpp
s/rsContext.cpp
s/rsElement.cpp
s/rsLight.cpp
s/rsMesh.cpp
s/rsObjectBase.cpp
s/rsObjectBase.h
s/rsProgram.cpp
s/rsProgramFragment.cpp
s/rsProgramFragment.h
s/rsProgramFragmentStore.cpp
s/rsProgramFragmentStore.h
s/rsProgramRaster.cpp
s/rsProgramRaster.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsSampler.cpp
s/rsScript.cpp
s/rsScriptC.cpp
s/rsSimpleMesh.cpp
s/rsType.cpp
f37b258c88e339b482696183def08f5c9437a0ff 26-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 27146 into eclair

* changes:
Reduce debugging spew and add props to selectivly re-enable it.
66b2771d745aa66df5cf80b300b5ba0f936ff22e 26-Sep-2009 Jason Sams <rjsams@android.com> Reduce debugging spew and add props to selectivly re-enable it.

change-id: Ib59ed5d7a9d479ccd1af456029735dbc65ae1efe
s/rsContext.cpp
s/rsContext.h
s/rsObjectBase.cpp
s/rsScriptC.cpp
s/rsScriptC.h
s/rsThreadIO.cpp
2896f7d67aebfc1c4f251155649e82e8490339fc 26-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 27137 into eclair

* changes:
Improve renderscript context teardown. Track object in the system and then force their cleanup by releasing all user references once destroy context is called. Java layer will no longer send destroy notifications for objects garbage collected once a context is destroyed.
a9e7a05b84470257637c97d65f6562aa832c66ef 25-Sep-2009 Jason Sams <rjsams@android.com> Improve renderscript context teardown. Track object in the system and then force their cleanup by releasing all user references once destroy context is called. Java layer will no longer send destroy notifications for objects garbage collected once a context is destroyed.
s/java/Fountain/src/com/android/fountain/Fountain.java
s/java/Fountain/src/com/android/fountain/FountainView.java
s/rsAdapter.cpp
s/rsAdapter.h
s/rsAllocation.cpp
s/rsAllocation.h
s/rsComponent.cpp
s/rsComponent.h
s/rsContext.cpp
s/rsContext.h
s/rsElement.cpp
s/rsElement.h
s/rsFileA3D.cpp
s/rsLight.cpp
s/rsLight.h
s/rsLocklessFifo.cpp
s/rsMesh.cpp
s/rsMesh.h
s/rsObjectBase.cpp
s/rsObjectBase.h
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramFragment.cpp
s/rsProgramFragment.h
s/rsProgramFragmentStore.cpp
s/rsProgramFragmentStore.h
s/rsProgramRaster.cpp
s/rsProgramRaster.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsSampler.cpp
s/rsSampler.h
s/rsScript.cpp
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC.h
s/rsSimpleMesh.cpp
s/rsSimpleMesh.h
s/rsThreadIO.cpp
s/rsType.cpp
s/rsType.h
8de57d8fa346522404c2064a78e8f24a5aa3bf23 23-Sep-2009 Wu-cheng Li <wuchengli@google.com> Add camera parameter key constants and documentation.
i/CameraParameters.cpp
65e7aa56f56097418d617663683544c25b3988ea 25-Sep-2009 Jason Sams <rjsams@android.com> Implement pause/resume for the RS thread.
s/rs.spec
s/rsContext.cpp
s/rsContext.h
0d3999f788eb01baa8ba671878387761cbbbf861 25-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26942 into eclair

* changes:
Minor cleanup of profile and compile logging.
d3f2eaf60a349316a219ebd12b4ee88f6d1b1261 25-Sep-2009 Jason Sams <rjsams@android.com> Minor cleanup of profile and compile logging.
s/rsContext.cpp
s/rsProgramRaster.cpp
s/rsScriptC.cpp
b9c932ba1203b477abbb0695d8b7162f45b4e91e 25-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26925 into eclair

* changes:
minor SurfaceFlinger code cleanup and remove unnecessary tests
f2d28b74850ea0869aef2ce0727a6abb7b166a5c 24-Sep-2009 Mathias Agopian <mathias@google.com> minor SurfaceFlinger code cleanup and remove unnecessary tests
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/DisplayHardware/DisplayHardware.h
urfaceflinger/Layer.cpp
urfaceflinger/LayerBase.cpp
urfaceflinger/SurfaceFlinger.cpp
a6a4113d50d43930099d26b5f420f293c475e484 24-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26917 into eclair

* changes:
Fix invokables to make sure script pointers are setup before invoking function calls. Reduce app startup time up to 1s.
e60446b9c1a0f4f48372a36de5b01a2ddb8121e3 24-Sep-2009 Jason Sams <rjsams@android.com> Fix invokables to make sure script pointers are setup before invoking function calls. Reduce app startup time up to 1s.
s/java/Fountain/AndroidManifest.xml
s/rsContext.cpp
s/rsLocklessFifo.cpp
s/rsScript.cpp
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC.h
a183cb5ebd974096afe2335cd4254de68d55021e 24-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26897 into eclair

* changes:
Removed last bits of predefined element types from native code. Predefined types are now constructed at the java layer from standard building blocks.
e31c0b5693f8887410d54d590ebf1ccb05ba0cc8 24-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26708 into eclair

* changes:
Remove depricated triangleMesh.
b6f2b131c42e5148b07c7cfe22b8bd5bc5b4ad4b 24-Sep-2009 Jason Sams <rjsams@android.com> Removed last bits of predefined element types from native code. Predefined types are now constructed at the java layer from standard building blocks.
s/RenderScript.h
s/rs.spec
s/rsAllocation.cpp
s/rsElement.cpp
s/rsElement.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
4cc86e1ae80eb1938500fe5fa06bbdf8b4b7b50d 22-Sep-2009 Christopher Tate <ctate@android.com> Clear the device's data from the transport when backup is disabled

Turning off backup in the Settings UI constitutes an opt-out of the whole
mechanism. For privacy reasons we instruct the backend to wipe all of the data
belonging to this device when the user does this. If the attempt fails it is
rescheduled in the future based on the transport's requestBackupTime()
suggestion. If network connectivity changes prompt the transport to indicate a
backup pass is appropriate "now," any pending init operation is processed before
the backup schedule is resumed.

The broadcasts used internally to the backup manager are now fully protected;
third party apps can neither send nor receive them.

(Also a minor logging change; don't log 'appropriate' EOF encountered during
parsing of a backup data stream.)
tils/BackupData.cpp
cc934763c3fc789f53edb64de16fc36d43c3705d 24-Sep-2009 Mathias Agopian <mathias@google.com> turn dithering off if it's not needed
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/SurfaceFlinger.cpp
44cac134655d5c3b2eeab2e42792c70a7aa8b92f 24-Sep-2009 Mathias Agopian <mathias@google.com> fix [2142193] disable GL_LINEAR when not needed
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/Transform.h
6b9dec00afec359f091ed353f371f08ff150278a 24-Sep-2009 Jason Sams <rjsams@android.com> Remove depricated triangleMesh.
s/Android.mk
s/RenderScript.h
s/RenderScriptEnv.h
s/rs.spec
s/rsContext.h
s/rsScriptC_Lib.cpp
s/rsSimpleMesh.cpp
s/rsSimpleMesh.h
s/rsTriangleMesh.cpp
s/rsTriangleMesh.h
a30071273a8ee59b300eebe515db86f9070ab4a4 24-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26728 into eclair

* changes:
Make the renderscript timing logging available by setting debug.rs.profile=1
9ac2c66f0171593113238635c6a7921c41215e77 24-Sep-2009 Joe Onorato <joeo@android.com> Make the renderscript timing logging available by setting debug.rs.profile=1
s/rsContext.cpp
s/rsContext.h
s/rsThreadIO.cpp
s/rsUtils.h
2e4b68d57bb64d7e93139238c5a8be91ff956c2a 24-Sep-2009 Mathias Agopian <mathias@google.com> fix [2133214] STOPSHIP: revert I4a06bb4f: workaround for [2113743] Sholes: frozen then runtime restart going to list view

Revert "workaround for [2113743] Sholes: frozen then runtime restart going to list view"

This reverts commit 4a06bb4f3355b0ef2b76aa883704da9d154c44ae.
urfaceflinger/Layer.cpp
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
bc7261130a51dc9f3461d3970eee1b923bcbf193 24-Sep-2009 Mathias Agopian <mathias@google.com> fix [2132563] stuck in boot animation (framebuffer_device_open: Failed to create flip chain)
i/SurfaceComposerClient.cpp
5dd7c726f45fd7b7ab473471dc504c00012a6856 23-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26667 into eclair

* changes:
Add raster object to control point and line params. Add flag to force SW rendering.
ebfb436a49673693b98469683451bd9ede797557 23-Sep-2009 Jason Sams <rjsams@android.com> Add raster object to control point and line params. Add flag to force SW rendering.
s/Android.mk
s/RenderScript.h
s/java/Fountain/src/com/android/fountain/FountainView.java
s/rs.spec
s/rsContext.cpp
s/rsContext.h
s/rsDevice.cpp
s/rsDevice.h
s/rsProgramRaster.cpp
s/rsProgramRaster.h
bdeccbba6f6ed49da4e8e668d62754bc7263e9ce 23-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26623 into eclair

* changes:
fbDev wasn't initialized of hw_get_module failed, but was then used anyway.
e613468402544b3dff735ac1311a2864a6660f4a 23-Sep-2009 Marco Nelissen <marcone@google.com> fbDev wasn't initialized of hw_get_module failed, but was then used anyway.
i/FramebufferNativeWindow.cpp
59038ca98b5f258784687523ee3be11b5dfa995d 22-Sep-2009 Jason Sams <rjsams@android.com> Update viewport when height or width change.
s/rsContext.cpp
f69a3f8dc54707e5be327e83cec742824d1ba263 22-Sep-2009 Eric Laurent <elaurent@google.com> Fix issue 2116700: Ringer screwy while connected over Bluetooth.

There was a regression introduced in AudioFlinger by change 24114 for suspended output:
The suspended output was not reading and mixing audio tracks.
When the phone is ringing, the A2DP output is suspended if the SCO headset and A2DP headset are the same. As the ringtone is played over the duplicated output, the fact that the A2DP output was not reading data was causing the hardware output to be stalled from time to time.
udioflinger/AudioFlinger.cpp
fa0a4bde3fa520aa10de88239af04b45a3e28da0 21-Sep-2009 Andy McFadden <fadden@android.com> Work around gcc 4.0.3 bug.

This appears to fix the sim-eng build on the gDapper build machines.

Basic problem is that LayerBuffer::OverlaySource has a constructor that
calls SurfaceFlinger.signalEvent(). SurfaceFlinger lists LayerBuffer
as a friend, but that's not enough to convince gcc that the embedded
OverlaySource class is also a friend. I don't see a way to make them
friendly, so I marked signalEvent() as public.
urfaceflinger/SurfaceFlinger.h
c6a22beff2af0590c1d76342bf57853f2bc85ff8 21-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26081 into eclair

* changes:
workaround for [2113743] Sholes: frozen then runtime restart going to list view
4a06bb4f3355b0ef2b76aa883704da9d154c44ae 18-Sep-2009 Mathias Agopian <mathias@google.com> workaround for [2113743] Sholes: frozen then runtime restart going to list view
urfaceflinger/Layer.cpp
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
6cca1599f78549716ef120245e54fa1961976dda 20-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix issue #1862317: Browser does not appear to honor anchors (#es) in links

Also a little improved debugging output of bad resource identifiers.

Change-Id: I054064ef22855608ffd722e4ccf12ce57d1992b2
tils/ResourceTypes.cpp
d342fd75267f30c299d15f2a3d25481267352482 18-Sep-2009 Jason Sams <rjsams@android.com> Clean up some debugging and add 2 math lib routines.
s/rsScriptC_Lib.cpp
2925b8c62a03381e5b3ff159847e8312ae9dfee5 18-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25496 into eclair

* changes:
Fix issue 2127371: Possible race condition in AudioFlinger::openRecord() when a Track is being destroyed.
ac7f13bc1ac8af99093987ebcb811f3892b49296 18-Sep-2009 Mathias Agopian <mathias@google.com> fix [2129080] Soft reboot after clicking around and then rubbing the screen
urfaceflinger/Layer.cpp
b1a1874625a6aca967601fcda53a82d8d712df45 18-Sep-2009 Mathias Agopian <mathias@google.com> Android side of the fix for [2121211] Sholes has stutter during animations

a new method, compostionComplete() is added to the framebuffer hal, it is used by surfaceflinger to signal the driver that the composition is complete, BEFORE it releases its client. This gives a chance to the driver to
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/DisplayHardware/DisplayHardware.h
urfaceflinger/SurfaceFlinger.cpp
i/FramebufferNativeWindow.cpp
b9481d8cf6f3ade96ed062dc3f601c777fe4430f 17-Sep-2009 Eric Laurent <elaurent@google.com> Fix issue 2127371: Possible race condition in AudioFlinger::openRecord() when a Track is being destroyed.

The fix consists in locking AudioFlinger::mLock mutex in the TrackBase destructor before clearing the strong pointer to the shared memory client. The mutex is not locked in removeclient() any more which implies that we must make sure that the Client destructor is always called from the TrackBase destructor or that we hold the mLock mutex before calling deleting the Client.
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
bcef9ac35da08b9f7f8a4728af94c23a7a010669 17-Sep-2009 Mathias Agopian <mathias@google.com> add basic time stats for surfaces lock time
urfaceflinger/SurfaceFlinger.cpp
i/SharedBufferStack.cpp
e38212a22f900468cc4a888b896bee99e1c29a1d 16-Sep-2009 Benny Wong <Benny.Wong@motorola.com> Overlay could not set position or rotation immediately after created, it should be triggered by signalEvent().
Originally from: https://partner.source.android.com/g/#change,1074
urfaceflinger/LayerBuffer.cpp
af369f6280c9eec0caa3f53f8e27f3713e1a7d25 17-Sep-2009 Mathias Agopian <mathias@google.com> disable backbuffer preservation when possible, which may improve performance a bit
urfaceflinger/DisplayHardware/DisplayHardware.cpp
75c4d498776a189f37e3d0294c9eda9ed51f6534 17-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25423 into eclair

* changes:
fix [2119400] sholes: artifacting when switching orientation
7cf03bace826631259aaa5ddc87a517e13bdee17 17-Sep-2009 Mathias Agopian <mathias@google.com> fix [2119400] sholes: artifacting when switching orientation
urfaceflinger/Layer.cpp
9080125f6753ca830b091b0103759612036be786 17-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25393 into eclair

* changes:
fix again [2102410] Home Screen is not displayed in the background in Landscape Mode
2c68dd0483dd4f7b211bea32652d42c3c7cd602c 17-Sep-2009 Mathias Agopian <mathias@google.com> fix again [2102410] Home Screen is not displayed in the background in Landscape Mode
urfaceflinger/BlurFilter.cpp
urfaceflinger/LayerBlur.cpp
urfaceflinger/LayerBlur.h
07e62d1de9ca3c0f6f49973b549e8aa1e802ee5e 17-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25185 into eclair

* changes:
Implement renderscript Invokables.
be2e84193f709419634de4cc3ba0e67acf6976f3 17-Sep-2009 Jason Sams <rjsams@android.com> Implement renderscript Invokables.
s/rs.spec
s/rsScript.cpp
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC.h
2bb6b2a11f50401701ed0aa098f91be158bc75a6 16-Sep-2009 Eric Laurent <elaurent@google.com> Fix issue 2123668: Class scope typo in AudioFlinger.cpp.
udioflinger/AudioFlinger.cpp
8ae0384a78ee2b66a91a13fe1c2a80f0642feacd 16-Sep-2009 Mathias Agopian <mathias@google.com> revert to black video background, since we don't need the color-key anylonger
urfaceflinger/LayerBuffer.cpp
e611a6ed33d157b7ae15bdfe4e1873dc20ce7d48 16-Sep-2009 Mathias Agopian <mathias@google.com> fix [2122448] android_native_window_t::setUsage() only reallocates the first buffer

Take 2. We needed to check that the usage flags are "good enough" as opposed to "the same".

This reverts commit 8f17a762fe9e9f31e4e86cb60ff2bfb6b10fdee6.
i/Surface.cpp
8f17a762fe9e9f31e4e86cb60ff2bfb6b10fdee6 16-Sep-2009 Mathias Agopian <mathias@google.com> Revert "fix [2122448] android_native_window_t::setUsage() only reallocates the first buffer"

This reverts commit 486aa963b63e20b7910e1004cebb4f0afabbd80f.
i/Surface.cpp
486aa963b63e20b7910e1004cebb4f0afabbd80f 16-Sep-2009 Mathias Agopian <mathias@google.com> fix [2122448] android_native_window_t::setUsage() only reallocates the first buffer
i/Surface.cpp
2bccbcc777ca48a08663c16e90ea3f76ace6eb07 15-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25050 into eclair

* changes:
Fix issue 2118464: cannot play ring tones and notifications after disconnecting BT headset while in call.
296a0ec7e149b6b373b9271683eca286b1c376ed 15-Sep-2009 Eric Laurent <elaurent@google.com> Fix issue 2118464: cannot play ring tones and notifications after disconnecting BT headset while in call.

The problem comes from the fact that when the duplicated output is closed after BT headset disconnection, the OUTPUT_CLOSED notification is not sent to AudioSystem. Then the mapping between notification stream and duplicated output cached in AudioSystem is not cleared and next time a notification is played, the duplicated output is selected and the createTrack() request is refused by AudioFlinger as the selected output doesn't exist.
The notification is ignored by AudioFlinger because when it is sent by the terminating playback thread, the thread has already been removed from the playback thread list.

The fix consists in sending the notification in closeOutput() and not when exiting the playback thread.
The same fix is applied to record threads.
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
244f8c26365a303d9dd861bd48a29a4b48578da1 15-Sep-2009 Chih-Chung Chang <chihchung@google.com> Fix 2083478: Camera needs an auto-focus cancel API

Change-Id: I13bda991b32aee47e82b5cf9d43b3021c416a9a2
i/Camera.cpp
i/ICamera.cpp
54c06152e0d9c666aec61ae5d9686d7d3327ea34 15-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24872 into eclair

* changes:
Fix issue 2115450: a2dp thread is started, even though we are only connected to headset and not playing music.
151921a62485f2141ad1316076c196ef00e1b421 15-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24977 into eclair

* changes:
add support for RGBX_8888 surfaces in SurfaceFlinger
64a7c6bf5b73c1a401cb2aa8dfad3898166ae326 15-Sep-2009 Mathias Agopian <mathias@google.com> add support for RGBX_8888 surfaces in SurfaceFlinger
urfaceflinger/Buffer.cpp
urfaceflinger/Layer.cpp
urfaceflinger/LayerBase.cpp
4503cb75a02f6465bd576366945a1c5f2c8c13f3 15-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24968 into eclair

* changes:
Minor perf tweak for fountain.
53973fda84d3e19642373f50fc33f646e5673584 15-Sep-2009 Mathias Agopian <mathias@google.com> fix [2117464] SF can crash when calling dumpsys
urfaceflinger/SurfaceFlinger.cpp
bd8527110caa5427ade0edd7ce0d00e63f15ccbc 15-Sep-2009 Mathias Agopian <mathias@google.com> make sure to update the tail pointer when undoing a dequeue
i/SharedBufferStack.cpp
988f6ebb443846228db1749bdbdd7712d73d3f3d 14-Sep-2009 Jason Sams <rjsams@android.com> Minor perf tweak for fountain.
s/java/Fountain/res/raw/fountain.c
64c0e1a51c3063991b4b01cefcf462a74a777592 14-Sep-2009 Eric Laurent <elaurent@google.com> Fix issue 2115450: a2dp thread is started, even though we are only connected to headset and not playing music.

This is due to a regression introduced by change 24114: when no audio tracks are ready for mixing, 0s are written to audio hardware. However this should only happen if tracks have already been mixed since the audio flinger thread woke up.
Also do not write 0s to audio hardware in direct output threads when audio format is not linear PCM.
udioflinger/AudioFlinger.cpp
91e2d8651fe38a921b37a8bf8b3148c572cf9430 14-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24337 into eclair

* changes:
Fix issue 2107584: media server crash when AudioFlinger fails to allocate memory for track control block.
3e63f9173a9d60d83c24b6412fe7dd0c42896797 12-Sep-2009 Mathias Agopian <mathias@google.com> fix [2111536] [FAST BLOCKER] Device is soft rebooted after ending the call through voice dialer
i/SharedBufferStack.cpp
248b5bd51e325107f8119b564db6a06ac51c232a 11-Sep-2009 Mathias Agopian <mathias@google.com> fix [2112575] stuck on DequeueCondition for a surface that doesn't exist anymore

this also fixes part of [2111536] Device is soft rebooted after ending the call through voice dialer
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/SurfaceFlinger.cpp
i/SharedBufferStack.cpp
436c627ca4228284caf363f0cb35947e58b841b9 11-Sep-2009 Mathias Agopian <mathias@google.com> make sure conditions will return when the status of a surface is not NO_ERROR
i/SharedBufferStack.cpp
24d237db943051942b5966f5e788d67050ec0ba5 05-Sep-2009 Mathias Agopian <mathias@google.com> add a debug property to disable h/w composition. debug.sf.hw, when set to 0 will disable h/w composition
urfaceflinger/DisplayHardware/DisplayHardware.cpp
e7c11d770ab44656d32330ba585489bd284b4a47 10-Sep-2009 Mathias Agopian <mathias@google.com> fix [2102410] Home Screen is not displayed in the background in Landscape Mode

the blurring code now handles NPOT textures.
urfaceflinger/LayerBlur.cpp
urfaceflinger/LayerBlur.h
fa736d79b7d22fe07d9f5ea5491d8aabe9b4d5c4 09-Sep-2009 Romain Guy <romainguy@android.com> Remove the FallRS demo, now promoted as a wallpaper.

Change-Id: I0e40f2aa4b51f9e9cdbe14d178491b3667662023
s/java/Fall/Android.mk
s/java/Fall/AndroidManifest.xml
s/java/Fall/res/drawable-hdpi/leaves.png
s/java/Fall/res/drawable-hdpi/riverbed.jpg
s/java/Fall/res/drawable-hdpi/sky.jpg
s/java/Fall/res/raw/fall.c
s/java/Fall/src/com/android/fall/rs/Fall.java
s/java/Fall/src/com/android/fall/rs/FallRS.java
s/java/Fall/src/com/android/fall/rs/FallView.java
b9e52a07b7a605fe6d6588587bc74002f632c768 09-Sep-2009 Andy McFadden <fadden@android.com> Fix sim-eng build.

Appears to have been broken by:

commit 9779b221e999583ff89e0dfc40e56398737adbb3
Author: Mathias Agopian <mathias@google.com>
Date: Mon Sep 7 16:32:45 2009 -0700

fix [2068105] implement queueBuffer/lockBuffer/dequeueBuffer properly

For some reason we don't like to have "-lpthread" globally -- it's a no-op
on device builds, but required for many host tools and all sim binaries --
so adding the use of pthread calls requires adding the library explicitly.
i/Android.mk
8a77a995c961c7c9a3888f4212f7be87d08afae1 09-Sep-2009 Eric Laurent <elaurent@google.com> Fix issue 2107584: media server crash when AudioFlinger fails to allocate memory for track control block.

AudioFlinger: verify that mCblk is not null before using it in Track and RecordTrack contructors.
IAudioFlinger: check result of remote transaction before reading IAudioTrack and IAudioRecord.
IAudioTrack and IAudioRecord: check result of remote transaction before reading IMemory.
udioflinger/AudioFlinger.cpp
11c803ac77b6a9b815180b4649a700361d3b8cfe 09-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24335 into eclair

* changes:
use broadcast() instead of signal() when signaling the condition-variable Thread::RequestExitAndWait() is waiting for
72e2d6da79a2fc3b5346c02ed40b9335c1eb78fa 09-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24334 into eclair

* changes:
fix [2037525] Fail to start camera after adb sync new Camera
0a5bf25765cc884aba8d417d8a85f985c5ff3b5a 09-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24333 into eclair

* changes:
rename Mutexes to make the code easier to follow
d42bd87f23974164d2539ea85c7b5e6329faf2c2 09-Sep-2009 Mathias Agopian <mathias@google.com> use broadcast() instead of signal() when signaling the condition-variable Thread::RequestExitAndWait() is waiting for

we could have several thread waiting on the condition and they all need to wake-up.
also added a debug "mTid" field in the class, which contains the tid of the thread (as opposed to pthread_t), this
is useful when debugging under gdb for instance.
tils/Threads.cpp
a280496bd2ce04d6beff4536f2115a9a4d7568e4 09-Sep-2009 Mathias Agopian <mathias@google.com> fix [2037525] Fail to start camera after adb sync new Camera

we ended-up locking a Mutex that had been destroyed.
This happened because we gave an sp<Source> to the outside world,
and were called after LayerBuffer had been destroyed.

Instead we now give a wp<LayerBuffer> to the outside and have it
do the destruction.
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
96c08a69ea0b95d1d8a8edb67f73bd9548e09f16 07-Sep-2009 Eric Laurent <elaurent@google.com> Fix issue 1992233: DTMF tones on Sholes is really long.

Add a parameter to ToneGenerator.startTone() allowing the caller to specify the tone duration. This is used by the phone application to have a precise control on the DTMF tone duration which was not possible with the use of delayed messaged.
Also modified AudioFlinger output threads so that 0s are written to the audio output stream when no more tracks are ready to mix instead of just sleeping. This avoids an issue where the end of a previous DTMF tone could stay in audio hardware buffers and be played just before the beginning of the next DTMF tone.
udioflinger/AudioFlinger.cpp
b34d143bce3905c23aa5c1b2b147ec6df48cf9d7 09-Sep-2009 Mathias Agopian <mathias@google.com> rename Mutexes to make the code easier to follow
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
dc54f416a43cc1cb68bf9e81003fd200ea2dc648 08-Sep-2009 Mathias Agopian <mathias@google.com> delete old and unused source files
urfaceflinger/purgatory/GPUHardware/GPUHardware.cpp
urfaceflinger/purgatory/GPUHardware/GPUHardware.h
urfaceflinger/purgatory/LayerOrientationAnim.cpp
urfaceflinger/purgatory/LayerOrientationAnim.h
urfaceflinger/purgatory/LayerOrientationAnimRotate.cpp
urfaceflinger/purgatory/LayerOrientationAnimRotate.h
urfaceflinger/purgatory/OrientationAnimation.cpp
urfaceflinger/purgatory/OrientationAnimation.h
urfaceflinger/purgatory/VRamHeap.cpp
urfaceflinger/purgatory/VRamHeap.h
9779b221e999583ff89e0dfc40e56398737adbb3 08-Sep-2009 Mathias Agopian <mathias@google.com> fix [2068105] implement queueBuffer/lockBuffer/dequeueBuffer properly

Rewrote SurfaceFlinger's buffer management from the ground-up.
The design now support an arbitrary number of buffers per surface, however the current implementation is limited to four. Currently only 2 buffers are used in practice.

The main new feature is to be able to dequeue all buffers at once (very important when there are only two).

A client can dequeue all buffers until there are none available, it can lock all buffers except the last one that is used for composition. The client will block then, until a new buffer is enqueued.

The current implementation requires that buffers are locked in the same order they are dequeued and enqueued in the same order they are locked. Only one buffer can be locked at a time.

eg. Allowed sequence: DQ, DQ, LOCK, Q, LOCK, Q
eg. Forbidden sequence: DQ, DQ, LOCK, LOCK, Q, Q
urfaceflinger/Android.mk
urfaceflinger/Buffer.cpp
urfaceflinger/Buffer.h
urfaceflinger/BufferAllocator.cpp
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBitmap.cpp
urfaceflinger/LayerBitmap.h
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
urfaceflinger/LayerDim.cpp
urfaceflinger/LayerDim.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
i/Android.mk
i/ISurface.cpp
i/SharedBufferStack.cpp
i/Surface.cpp
i/SurfaceBuffer.cpp
i/SurfaceComposerClient.cpp
ffae4fcc78d0f280da6052d102b11962fb8041b7 05-Sep-2009 Mathias Agopian <mathias@google.com> attempt to fix [2099362] Possible SurfaceFlinger crash
urfaceflinger/SurfaceFlinger.cpp
ac67ebe667d30f3cd2e39fa57164d4f3ddaea677 05-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24058 into eclair

* changes:
Minor perf improvement to fall and expand use of struct.
a3c745dafa2679b73a6d499324b6ffaac819fdc9 05-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24057 into eclair

* changes:
checkpoint
7042cde5e19093595e0a7c6a95a8d7c9e4708afa 05-Sep-2009 Jason Sams <rjsams@android.com> Minor perf improvement to fall and expand use of struct.
s/java/Fall/res/raw/fall.c
3194a66329ea617c1f7bf558e2ac6a765860dd97 05-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24048 into eclair

* changes:
fix [2098939] Smooth gradients show banding on Sholes
2d496bfebc010f26d65dd5e3a3c4a8170919cf0a 05-Sep-2009 Romain Guy <romainguy@android.com> Fix point sprites.

Change-Id: Ic9438daaf25f3969a0dd5b634b7cceccbbbfb27b
s/rsProgramFragment.cpp
s/rsScriptC_Lib.cpp
7164b8d645f9463e36eda5eac3dd085e26427bda 05-Sep-2009 Mathias Agopian <mathias@google.com> fix [2098939] Smooth gradients show banding on Sholes
urfaceflinger/LayerBase.cpp
7adb985e85d912d4a5f8f9590e17cfd9c7f4b4ed 05-Sep-2009 Jason Sams <rjsams@android.com> checkpoint
s/java/Fall/res/raw/fall.c
ea84a7c51790f9ba5f2194a66d6cf4ea8d879776 04-Sep-2009 Jason Sams <rjsams@android.com> Remove "predefined" elements from Java layer. Static elements continue to exist but are no longer treated as a special version of element.
s/java/Fall/res/raw/fall.c
s/java/Fall/src/com/android/fall/rs/FallRS.java
s/rs.spec
s/rsAllocation.cpp
s/rsContext.cpp
s/rsScriptC.cpp
s/rsScriptC_Lib.cpp
2525a815220652b37e2e390fe8c62394a6d0e574 04-Sep-2009 Jason Sams <rjsams@android.com> Improve structure support using symbol lookup of named structures in scripts to allow them to appear as just pointers to structs.
s/java/Fall/res/raw/fall.c
s/java/Film/res/raw/filmstrip.c
s/java/Fountain/res/raw/fountain.c
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/rsContext.cpp
s/rsContext.h
s/rsScriptC.cpp
s/rsScriptC.h
a160c6ea053ab317374327d8ba21684b2fac40e4 03-Sep-2009 Eric Laurent <elaurent@google.com> fix issue 2096657: Sholes: residue shutter sound heard ONCE while taking a picture AFTER the volume is turned off.

Do not ramp volume if the first frame of a track is processed after the track was stopped.
In the case of very short sounds, the track stop request can be received by AudioFlinger just after the start request before the first frame is mixed by AudioMixer. In this case, the track is already in stopped state and initial volume is applied with a ramp for the first frame processed which should not be the case: initial volume change is always applied immediatelly.
udioflinger/AudioFlinger.cpp
6db4303d04d138cd2648b829306c4b1693ac12e8 03-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 23568 into eclair

* changes:
Work on issue #2079167: Flickering issue across multiple UI
a8f6018d6c2d28313f9550fa8fcb39c2f607e09c 02-Sep-2009 Dianne Hackborn <hackbod@google.com> Work on issue #2079167: Flickering issue across multiple UI

This addresses a few parts of the bug:

- There was a small issue in the window manager where we could show a window
too early before the transition animation starts, which was introduced
by the recent wallpaper work. This was the cause of the flicker when
starting the dialer for the first time.

- There was a much larger problem that has existing forever where moving
an application token to the front or back was not synchronized with the
application animation transaction. This was the cause of the flicker
when hanging up (now that the in-call screen moves to the back instead
of closing and we always have a wallpaper visible). The approach to
solving this is to have the window manager go ahead and move the app
tokens (it must in order to keep in sync with the activity manager), but
to delay the actual window movement: perform the movement to front when
the animation starts, and to back when it ends. Actually, when the
animation ends, we just go and completely rebuild the window list to
ensure it is correct, because there can be ways people can add windows
while in this intermediate state where they could end up at the wrong
place once we do the delayed movement to the front or back. And it is
simply reasuring to know that every time we finish a full app transition,
we re-evaluate the world and put everything in its proper place.

Also included in this change are a few little tweaks to the input system,
to perform better logging, and completely ignore input devices that do not
have any of our input classes. There is also a little cleanup of evaluating
configuration changes to not do more work than needed when an input
devices appears or disappears, and to only log a config change message when
the config is truly changing.

Change-Id: Ifb2db77f8867435121722a6abeb946ec7c3ea9d3
i/EventHub.cpp
458e9186c175f87c420b7f82e91c0afa695c8ebb 03-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 23720 into eclair

* changes:
Add colorkey to gl clear operation
c8546781ff6fa26b3a7f2d1483db363f299a3898 02-Sep-2009 Rebecca Schultz Zavin <rebecca@android.com> Add colorkey to gl clear operation

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBuffer.cpp
66c70e13d9f39cf82df8542fe53f2049d3f2062e 02-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 23529 into eclair

* changes:
Make it an error to use a bare apostrophe in aapt, and adjust warnings/errors.
f4cca783dff5335108647ff7ae86983f56245067 02-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 23583 into eclair

* changes:
Update fountain to use structures.
c87d25215c842cea370c6a86ce67585fa8da4900 02-Sep-2009 Eric Fischer <enf@google.com> Make it an error to use a bare apostrophe in aapt, and adjust warnings/errors.

In practice, no one ever writes an apostrophe in an aapt string with the
intent of using it to quote whitespace -- they always mean to include a
literal apostrophe in the string and then are surprised when they find
the apostrophe missing. Make this an error so that it is discovered
right away instead of waiting until late in QA or after the strings have
already been sent for translation. (And fix a recently-introduced string
that has exactly this problem.)

Silence the warning about an empty span in a string, since this seems to
annoy people instead of finding any real problems.

Make the error about having a translated string with no base string into
a warning, since this is a big pain when making changes to an application
that has already had some translations done, and the dead translations
should be removed by a later translation import anyway.
tils/ResourceTypes.cpp
d069f32039c74d89fd158d1a25d8fdf445fd01c1 01-Sep-2009 Eric Laurent <elaurent@google.com> Fix issue 2091594: music chirp after disconnecting A2DP.

In AudioFlinger::MixerThread::putTracks(), change the mFillingUpStatus flag to FS_FILLING for active tracks so that mute request is executed without ramping volume down when the track is moved from A2DP to hardware output.
Also modified AudioFlinger::setStreamOutput() so that the notification of the change is sent only once to AudioSystem.
udioflinger/AudioFlinger.cpp
44e9983ffc2b28f2ed755a2c99f156aeab0ff77f 31-Aug-2009 Jason Sams <rjsams@android.com> Update fountain to use structures.
s/java/Fountain/res/raw/fountain.c
7954c4642591fef4ee880411ed29dc1f344f1b6f 28-Aug-2009 Eric Laurent <elaurent@google.com> Fix issue 2085690: AudioFlinger must properly terminate the input and output threads when destroyed.

Call closeInput() for all inputs and closeOutput() for all outputs before deleting audio hardware in AudioFlinger destructor.
udioflinger/AudioFlinger.cpp
9e6842caa8334f78744dee77d476ac6eec5b7540 28-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 23168 into eclair

* changes:
EventHub: Fix file descriptor leak.
36dad722511366e7d90b6e33669a033d0c8ec74e 28-Aug-2009 Mike Lockwood <lockwood@android.com> EventHub: Fix file descriptor leak.

Signed-off-by: Mike Lockwood <lockwood@android.com>
i/EventHub.cpp
07ae40623737a6060b8a925fd2e6bba76780dcd4 28-Aug-2009 Jason Sams <rjsams@android.com> Implement async data/subData. Implement TriangleMeshBuilder in SimpleMesh which replaces TriangleMesh. Update Film to use new builder.
s/java/Film/res/raw/filmstrip.c
s/java/Film/src/com/android/film/FilmRS.java
s/java/Film/src/com/android/film/FilmStripMesh.java
s/rs.spec
s/rsAdapter.cpp
s/rsAllocation.cpp
s/rsAllocation.h
s/rsContext.cpp
s/rsElement.cpp
s/rsHandcode.h
s/rsLight.cpp
s/rsObjectBase.cpp
s/rsObjectBase.h
s/rsProgramFragment.cpp
s/rsProgramFragmentStore.cpp
s/rsProgramVertex.cpp
s/rsSampler.cpp
s/rsScriptC.cpp
s/rsSimpleMesh.cpp
s/rsTriangleMesh.cpp
s/rsType.cpp
s/rsg_generator.c
s/spec.h
s/spec.l
327c27be19ad333c4835c84397152a0b2cb33081 27-Aug-2009 Eric Laurent <elaurent@google.com> Fix issue 2045911: Camera Shutter tone does not play correctly while listening to music.

Add the possibility to delay routing and volume commands in AudioPolicyClientInterface. The delay is not blocking for the caller.
udioflinger/AudioPolicyService.cpp
udioflinger/AudioPolicyService.h
a8d49178f94e025be8be00460739315b9c273e4c 27-Aug-2009 Mathias Agopian <mathias@google.com> dumpsys SurfaceFlinger will now always dump SF's state, even if SF is deadlocked
(in this case the state is dumped without the proper locks held which could result to a crash)

in addition, the last transaction and swap times are printed to the dump as well as the time spent
*currently* in these function. For instance, if SF is unresponsive because eglSwapBuffers() is stuck,
this will show up here.
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
67c6844ea0577b7894c3053952eb4ee39fa3134c 26-Aug-2009 Jason Sams <rjsams@android.com> Remove bogus comments and logging.
s/java/Fountain/res/raw/fountain.c
s/rsContext.cpp
s/rsScriptC.cpp
f5b4596a383b6ab83f92edecfe054e80b555c2d0 25-Aug-2009 Jason Sams <rjsams@android.com> Implement java interface for RS shutdown and fix shutdown deadlock with the command fifo.
s/rsContext.cpp
s/rsLocklessFifo.cpp
s/rsLocklessFifo.h
s/rsThreadIO.cpp
s/rsThreadIO.h
b13ada5071f55c96054c47bbd88d8801cd2c0f15 25-Aug-2009 Jason Sams <rjsams@android.com> Add support for selecting the color bit depth and if the application used a depth buffer.
s/RenderScript.h
s/java/Fall/src/com/android/fall/rs/FallView.java
s/java/Film/src/com/android/film/FilmView.java
s/java/Fountain/src/com/android/fountain/FountainView.java
s/java/Rollo/src/com/android/rollo/RolloView.java
s/rsContext.cpp
s/rsContext.h
s/rsObjectBase.cpp
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramFragment.cpp
s/rsProgramFragment.h
s/rsProgramFragmentStore.cpp
s/rsProgramFragmentStore.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
463a60830fb67fe2b8bd8c088b0fa7e905aa4183 24-Aug-2009 Romain Guy <romainguy@android.com> Remove Galaxy Render Script, replaced by its wallpaper equivalent.

Change-Id: I28c91d648fe5ab6e794bf55d11879388b139dbe9
s/java/Galaxy/Android.mk
s/java/Galaxy/AndroidManifest.xml
s/java/Galaxy/res/drawable-hdpi/flares.png
s/java/Galaxy/res/drawable-hdpi/light1.png
s/java/Galaxy/res/drawable-hdpi/space.jpg
s/java/Galaxy/res/raw/galaxy.c
s/java/Galaxy/src/com/android/galaxy/rs/Galaxy.java
s/java/Galaxy/src/com/android/galaxy/rs/GalaxyRS.java
s/java/Galaxy/src/com/android/galaxy/rs/GalaxyView.java
6f89172b6e149c623fe582e4baa658299a3fc72c 22-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 22352 into eclair

* changes:
Fix FallRS by keeping a reference to the mesh.
1965610f3b8047a9d8c8a3c37007914d9054fe9c 22-Aug-2009 Romain Guy <romainguy@android.com> Fix FallRS by keeping a reference to the mesh.
s/java/Fall/src/com/android/fall/rs/FallRS.java
9e2be20cc5a8f0f7cf384412b5ef519aa7263759 22-Aug-2009 Mathias Agopian <mathias@google.com> fix [2070341] [FAST BLOCKER] can't successfully setup erc52
i/Surface.cpp
75e6c77139dac6bc8f408e3e3a1c87bbfe8078be 21-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 22169 into eclair

* changes:
Cleanup the Galaxy, add a few RS functions for Grass.
d22fff7185979537877213c826879c0100a20b11 21-Aug-2009 Romain Guy <romainguy@android.com> Cleanup the Galaxy, add a few RS functions for Grass.
s/java/Galaxy/src/com/android/galaxy/rs/GalaxyRS.java
s/rsScriptC_Lib.cpp
25ffcdc9d7e32c9c1eeb2b48cc2f17d1353e9fae 21-Aug-2009 Jason Sams <rjsams@android.com> Point Sprites
s/RenderScript.h
s/rs.spec
s/rsComponent.cpp
s/rsComponent.h
s/rsProgramFragment.cpp
s/rsProgramFragment.h
s/rsSampler.cpp
s/rsTriangleMesh.cpp
s/rsType.cpp
s/rsType.h
f99c18083e87ccf83430b29b53c7dea52a1675de 17-Aug-2009 Benny Wong <Benny.Wong@motorola.com> Add offset handling in MemoryHeapBase class
inder/MemoryHeapBase.cpp
34484ae7088beb9c64bdcf7a4670e80ac65ec31f 20-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 22024 into eclair

* changes:
Micro-optimizations for FallRS
8e7c671db74eae25da4df3158007ebd54d3e2b4c 20-Aug-2009 Romain Guy <romainguy@android.com> Micro-optimizations for FallRS
s/java/Fall/res/raw/fall.c
ba5372f8182ba64e0a48ef89f04be74f53fc5c0e 20-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 22021 into eclair

* changes:
fix a bug that caused the PixelFormat viewed by Surface to be wrong.
18b6b49ea5235fb6c0802db9a0cc2c6dd20646cb 20-Aug-2009 Mathias Agopian <mathias@google.com> fix a bug that caused the PixelFormat viewed by Surface to be wrong.

what happened is that the efective pixel format is calculated by SF but Surface nevew had access to it directly.
in particular this caused query(FORMAT) to return the requested format instead of the effective format.
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
i/ISurfaceFlingerClient.cpp
i/Surface.cpp
b5f2ce6e2f3395fb944136d4d88aec4ac0783aca 20-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 22011 into eclair

* changes:
fix [2063336] Surface.lockSurface throws IllegalArgumentException when out of memory
313b5b8b63a33fe50cf61d58bc74c49b294d1875 20-Aug-2009 Romain Guy <romainguy@android.com> Improved performance in Galaxy and Fall
s/java/Fall/res/raw/fall.c
s/java/Fall/src/com/android/fall/rs/FallRS.java
s/java/Galaxy/res/raw/galaxy.c
s/java/Galaxy/src/com/android/galaxy/rs/GalaxyRS.java
s/java/Galaxy/src/com/android/galaxy/rs/GalaxyView.java
b2f8450db8dfbc05724624f93d9ec5e65f0b7e54 20-Aug-2009 Mathias Agopian <mathias@google.com> fix [2063336] Surface.lockSurface throws IllegalArgumentException when out of memory
urfaceflinger/LayerBitmap.cpp
i/Surface.cpp
6794e1ba3866109028de77e17522686d76a26045 19-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 21927 into eclair

* changes:
Improved RS timing code to monitor where we spend CPU time.
f4d160653fe405eba9d6f55448ac4599c6cadd77 19-Aug-2009 Jason Sams <rjsams@android.com> Improved RS timing code to monitor where we spend CPU time.
s/rsContext.cpp
s/rsContext.h
s/rsThreadIO.cpp
484d57f4355ab3979025beaddeb0cbecb1a5b81f 19-Aug-2009 Romain Guy <romainguy@android.com> Move the sky
s/java/Fall/res/drawable-hdpi/sky.jpg
s/java/Fall/res/raw/fall.c
s/java/Fall/src/com/android/fall/rs/FallRS.java
s/java/Fall/src/com/android/fall/rs/FallView.java
8a947bd696739202e28eb56903d2614ca2d99d85 19-Aug-2009 Romain Guy <romainguy@android.com> Tweak the water and its texture
s/java/Fall/res/drawable-hdpi/sky.jpg
s/java/Fall/res/raw/fall.c
s/java/Fall/src/com/android/fall/rs/FallRS.java
6c8dd9841f9958ae64cd2b8540bb5de70247487c 19-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 21831 into eclair

* changes:
Add reflections to the water
15b29698189cdcc2b5f809427183153dad72c995 19-Aug-2009 Romain Guy <romainguy@android.com> Add reflections to the water
s/java/Fall/res/drawable-hdpi/sky.jpg
s/java/Fall/res/raw/fall.c
s/java/Fall/src/com/android/fall/rs/FallRS.java
730ee65d4ddb307898053b623120bad1655fadad 19-Aug-2009 Jason Sams <rjsams@android.com> Implement OOB destroy method that can be called from the java finalizer removing the need to explicitly destroy objects.
s/RenderScript.h
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/rsContext.cpp
s/rsContext.h
7ce033d797e5df5e2131e2ed459fba181eaf4658 18-Aug-2009 Jason Sams <rjsams@android.com> Cleanup of object destruction. No need to have a per-class destruction function. This was a legacy of the distant past when the classes did not have a common base.
s/rs.spec
s/rsAdapter.cpp
s/rsAllocation.cpp
s/rsContext.cpp
s/rsElement.cpp
s/rsLight.cpp
s/rsProgramFragment.cpp
s/rsProgramFragmentStore.cpp
s/rsSampler.cpp
s/rsScript.cpp
s/rsSimpleMesh.cpp
s/rsType.cpp
cac80a6e1324cb0679977a61533edfe3f7f9cf6b 18-Aug-2009 Romain Guy <romainguy@android.com> Tweak the galaxy
s/java/Galaxy/res/drawable-hdpi/flares.png
s/java/Galaxy/res/raw/galaxy.c
s/java/Galaxy/src/com/android/galaxy/rs/GalaxyRS.java
s/rsScriptC_Lib.cpp
948ee251276e1ce7f5c5517b24bf88a75e99f160 18-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 21660 into eclair

* changes:
Optimized Galaxy
4f7136c6595ba862be49a660180f084dad17325b 18-Aug-2009 Romain Guy <romainguy@android.com> Optimized Galaxy
s/java/Galaxy/res/drawable-hdpi/flares.png
s/java/Galaxy/res/drawable-hdpi/light1.png
s/java/Galaxy/res/drawable-hdpi/light2.png
s/java/Galaxy/res/raw/galaxy.c
s/java/Galaxy/src/com/android/galaxy/rs/GalaxyRS.java
9fb956dbdce14e38e38cb45a14610a8c822cbbf0 18-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 21653 into eclair

* changes:
Remove global IO context and integrate it into the RS context.
bc948dedcee57a66fe2cb38d4c79d04a10c7efb3 18-Aug-2009 Jason Sams <rjsams@android.com> Remove global IO context and integrate it into the RS context.
s/rsContext.cpp
s/rsContext.h
s/rsThreadIO.cpp
s/rsThreadIO.h
s/rsg_generator.c
2f10ae08d435b12e1798d93e0b90605717c66081 17-Aug-2009 Andreas Huber <andih@google.com> Support for marshalling pointers / intptr_t in Parcel.

Some refactoring to eliminate code duplication in Parcel implementation.
inder/Parcel.cpp
334ea0c98f051b5a6b85bc616c93304651854298 17-Aug-2009 Jason Sams <rjsams@android.com> Update fountain and add writable flag to script slots.
s/java/Fountain/res/raw/fountain.c
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/Fountain/src/com/android/fountain/FountainView.java
s/rs.spec
s/rsScript.cpp
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC.h
s/rsScriptC_Lib.cpp
8af2d22552c61d8d4e09e52287f056428172ab05 17-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 21471 into eclair

* changes:
Add Galaxy wallpaper
81e4640d18d451992cb504b356ff4d2dc1b7f297 15-Aug-2009 Romain Guy <romainguy@android.com> Add Galaxy wallpaper
s/java/Galaxy/Android.mk
s/java/Galaxy/AndroidManifest.xml
s/java/Galaxy/res/drawable-hdpi/flares.png
s/java/Galaxy/res/drawable-hdpi/light1.png
s/java/Galaxy/res/drawable-hdpi/light2.png
s/java/Galaxy/res/drawable-hdpi/space.jpg
s/java/Galaxy/res/raw/galaxy.c
s/java/Galaxy/src/com/android/galaxy/rs/Galaxy.java
s/java/Galaxy/src/com/android/galaxy/rs/GalaxyRS.java
s/java/Galaxy/src/com/android/galaxy/rs/GalaxyView.java
321abdb092bfc925749d528de590680ae8bc3d5c 15-Aug-2009 Mathias Agopian <mathias@google.com> make sure to update a surface's usage bits when it changes, instead of only the first time.

also fixed a few locking issues in Surface and commented how each member is protected.
i/Surface.cpp
c4915de8bb9454b8f10b0c9b7ac21e2bb7f65202 14-Aug-2009 Mathias Agopian <mathias@google.com> fix a bug that could cause a window to be hidden in some cases.

this would happen is the window is made visible but the client didn't render yet into it. This happens often with SurfaceView.
Instead of filling the window with solid black, SF would simply ignore it which could lead to more disturbing artifacts.

in theory the window manager should not display a window before it has been drawn into, but it does happen occasionnaly.
urfaceflinger/Layer.cpp
317a6280cc109e873646e4652be1582d870eedfd 14-Aug-2009 Mathias Agopian <mathias@google.com> Surface::GPU and Surface::HARDWARE are now deprecated; they will be set automatically if needed.

this also ripples into the window manager API by making some constant there deprecated as well.
urfaceflinger/Layer.cpp
urfaceflinger/LayerBitmap.h
1e16e4018c619aa4fcadbe3c97a4b47e90969d1c 13-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 21152

* changes:
Implement named slots and convert script.addType to script.setType to remove ordering restrictions.
fbf0b9ecda03fbdbd4ebabfd18da09a789686249 13-Aug-2009 Jason Sams <rjsams@android.com> Implement named slots and convert script.addType to script.setType to remove ordering restrictions.
s/java/Film/res/raw/filmstrip.c
s/java/Film/src/com/android/film/FilmRS.java
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/rs.spec
s/rsComponent.cpp
s/rsComponent.h
s/rsScript.cpp
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC.h
34453aeefb3822010fac5eb5352b49141a331cf5 13-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 21059

* changes:
make sure EGL_ANDROID_swap_rectangle is actually supported before using it
42fd8050ba2dafe0a697fb5a6929ba086ce80426 13-Aug-2009 Mathias Agopian <mathias@google.com> make sure EGL_ANDROID_swap_rectangle is actually supported before using it
urfaceflinger/DisplayHardware/DisplayHardware.cpp
0b66d3019ecf0d7a1078b0af1318a15a905659c4 13-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 21057

* changes:
Better error handling in EGL extensions
88e3e6bd04dcf166ddd92ce3a84e1f9f54ac2f66 13-Aug-2009 Mathias Agopian <mathias@google.com> Better error handling in EGL extensions
urfaceflinger/DisplayHardware/DisplayHardware.cpp
43ee06857bb7f99446d1d84f8789016c5d105558 13-Aug-2009 Jason Sams <rjsams@android.com> Implement reflecting Java objects into the ACC enviroment.
s/java/Fountain/res/raw/fountain.c
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/rs.spec
s/rsComponent.cpp
s/rsComponent.h
s/rsContext.cpp
s/rsContext.h
s/rsElement.cpp
s/rsFileA3D.cpp
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC.h
s/rsScriptC_Lib.cpp
s/rsUtils.h
12d683115690c38a3ee7e1dc39174c13e135c652 13-Aug-2009 Romain Guy <romainguy@android.com> Grass has graduated from an RS experiment to a real live wallpaper.
s/java/Grass/Android.mk
s/java/Grass/AndroidManifest.xml
s/java/Grass/res/drawable-hdpi/night.jpg
s/java/Grass/res/drawable-hdpi/sky.jpg
s/java/Grass/res/drawable-hdpi/sunrise.jpg
s/java/Grass/res/drawable-hdpi/sunset.jpg
s/java/Grass/res/raw/grass.c
s/java/Grass/src/com/android/grass/rs/Grass.java
s/java/Grass/src/com/android/grass/rs/GrassRS.java
s/java/Grass/src/com/android/grass/rs/GrassView.java
90f77218a24ac66bea52faef79c30d45420ce135 12-Aug-2009 Dianne Hackborn <hackbod@google.com> am b8546001: Merge change 20878 into donut

Merge commit 'b8546001701405a76dad7e6235046e592296fac2'

* commit 'b8546001701405a76dad7e6235046e592296fac2':
Fix issue #2048263: More debugging information
3f8f9da85f4189bfef68cf13a1b643674b5e0726 12-Aug-2009 Marco Nelissen <marcone@google.com> Fix the simulator build by removing librs_jni and libRS from it.
Since libacc isn't 64-bit clean (it casts pointers to integers),
and so can't be built for the gHardy simulator, everything
that depends on it can't be built for the simulator either, which
means removing libRS and librs_jni.
s/Android.mk
fe4fc91260af3c640e434c2c98516a703588ca60 12-Aug-2009 Eric Laurent <elaurent@google.com> Workaround for issue 2046783.

Apparently the problem is caused by the fact that A2dpAudioStreamOut::standby() calls a2dp_stop() after the headset has been powered down.
The workaround consists in indicating to A2DP audio hardware that a close request is pending and that stanby() must be bypassed.
udioflinger/A2dpAudioInterface.cpp
udioflinger/A2dpAudioInterface.h
2ec8458c5fd5b1bfad2d6e16b606f5acbcfa34cc 12-Aug-2009 Mathias Agopian <mathias@google.com> second take, hopefully this time it doesn't break one of the builds: "SurfaceFlinger will now allocate buffers based on the usage specified by the clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything."
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerDim.cpp
5cec4742b3a1d7448bd32ae57cb4cf70b484c64c 12-Aug-2009 Mathias Agopian <mathias@google.com> second take, hopefully this time it doesn't break one of the builds: "SurfaceFlinger will now allocate buffers based on the usage specified by the clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything."
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBitmap.cpp
urfaceflinger/LayerBitmap.h
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerDim.cpp
i/FramebufferNativeWindow.cpp
i/ISurface.cpp
i/Surface.cpp
64e89a8aff9a45a491f1d7064a655b9021fe644a 12-Aug-2009 Fred Quintana <fredq@google.com> Revert "SurfaceFlinger will now allocate buffers based on the usage specified by the clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything."

This reverts commit 8b76a0ac6fbf07254629ed1ea86af014d5abe050.
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBitmap.cpp
urfaceflinger/LayerBitmap.h
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerDim.cpp
i/FramebufferNativeWindow.cpp
i/ISurface.cpp
i/Surface.cpp
82e1ee93eece8fb0aec6acc3ef4ee7b1c86feec7 12-Aug-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2048263: More debugging information

We now hopefully do better about generating the anr reports, and include
information about the malloc loaded assets in meminfo.
tils/Asset.cpp
8b76a0ac6fbf07254629ed1ea86af014d5abe050 11-Aug-2009 Mathias Agopian <mathias@google.com> SurfaceFlinger will now allocate buffers based on the usage specified by the clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything.

This change makes SurfaceHolder.setType(GPU) obsolete (it's now ignored).
Added an API to android_native_window_t to allow extending the functionality without ever breaking binary compatibility. This is used to implement the new set_usage() API. This API needs to be called by software renderers because the default is to use usage flags suitable for h/w.
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBitmap.cpp
urfaceflinger/LayerBitmap.h
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerDim.cpp
i/FramebufferNativeWindow.cpp
i/ISurface.cpp
i/Surface.cpp
6c30a71122a6ef2189304c136f13a87727804b0a 11-Aug-2009 Eric Laurent <elaurent@google.com> Fix issue 2046140: master: media_server crash when powering down A2DP headset while a ringtone is playing.

This is because the AudioFlinger duplicating thread is closed while the output tracks are still active. This cause the output tracks objects to be destroyed at a time where they can be in use by the destination output mixer.

The fix consists in adding the OutputTrack to the track list (mTracks) of its destination thread so that a strong reference is help during the mixer processed and the track is detroyed only when safe by destination thread.

Also added detection of problems when creating the output track (e.g. no more tracks in mixer). In this case the output track is not added to output track list of duplicating thread.
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
33bb0c9f2acaa4300e962f9039e08bffc735ab8e 10-Aug-2009 Eric Laurent <elaurent@google.com> Fix issue 2043314: Recorded audio is choppy.

Fixed cut/paste error causing constant reset of current frame index in input buffer.
udioflinger/AudioFlinger.cpp
c8707a91cddfe29d48940986331fca3ecb41cb83 11-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20699

* changes:
enable HW acceleration for the Dim Surface on 8k devices
4523b76803e1269171003a950fa3d5237ea2cdcb 11-Aug-2009 Mathias Agopian <mathias@google.com> enable HW acceleration for the Dim Surface on 8k devices
urfaceflinger/Android.mk
3afaaf7ade7984a243d36a6d0b8b59d51dbbc926 11-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20686

* changes:
fix the build
ee1e253453a5e28d55ad9209ef18ea9845d4d096 11-Aug-2009 Joe Onorato <joeo@android.com> fix the build
s/spec.h
2e9c859f202a1e17176eee4130ea58c9d476494c 11-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20607

* changes:
Limit AudioFlinger mixer track sampling rate.
1f9ef9a2ccb5e2f11dc644c34710e70afe994fac 11-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20654

* changes:
The build system knows how to deal with lex files, but it treats them as c++, so make spec.lex conform to that.
daed524c35f5fe4d35f403d2279947605d161b2e 11-Aug-2009 Joe Onorato <joeo@android.com> The build system knows how to deal with lex files, but it treats them as c++, so make spec.lex
conform to that.
s/Android.mk
s/rsg_generator.c
s/spec.h
s/spec.l
s/spec.lex
40a29e8e28772b37ab0f9fe9708ecdcba24abb84 10-Aug-2009 Jason Sams <rjsams@android.com> Implement basic allocation readback. Add Get height, width to ScriptC_Lib.
s/java/Fountain/res/raw/fountain.c
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/rs.spec
s/rsAllocation.cpp
s/rsAllocation.h
s/rsContext.h
s/rsScriptC_Lib.cpp
01e5fbd721f879679be66e43b9f671c0d39b89a2 10-Aug-2009 Joe Onorato <joeo@android.com> build libRS
s/Android.mk
6f7e097ee5a495b224dc64edc64e8fc36eb9ee44 10-Aug-2009 Eric Laurent <elaurent@google.com> Limit AudioFlinger mixer track sampling rate.

When changing the audio output stream sampling rate with setParameters() make sure that all tracks have a sampling rate less or equal to 2 times the new output sampling rate.
udioflinger/AudioFlinger.cpp
6307f0285ea3d6bb8cb1b28709a22b240e446fed 10-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20586

* changes:
Let java put #defines into renderscript
d7b3774da62d3c70cc7e8cf549967a1c823501e6 10-Aug-2009 Joe Onorato <joeo@android.com> Let java put #defines into renderscript
s/rs.spec
s/rsContext.cpp
s/rsContext.h
s/rsScriptC.cpp
s/rsScriptC.h
a9d2d5ed2840bc3331e1a387b26efc44c6211623 10-Aug-2009 Romain Guy <romainguy@android.com> Make the laves follow the ripples
s/java/Fall/res/raw/fall.c
s/java/Fall/src/com/android/fall/rs/FallRS.java
s/rsScriptC_Lib.cpp
3370ec9e54c373ccca3c4f545b4c96f9419a081d 09-Aug-2009 Joe Onorato <joeo@android.com> add three rs functions: uptimeMillis, startTimeMillis, elapsedTimeMillis
s/rsScriptC.cpp
s/rsScriptC_Lib.cpp
1bada8cd6e4f340de93cff4a2439835fc3b1456c 10-Aug-2009 Jason Sams <rjsams@android.com> Begin implementing SimpleMesh and fix some bugs with refcounting and java object destruction tracking.
s/Android.mk
s/RenderScript.h
s/RenderScriptEnv.h
s/java/Fountain/res/raw/fountain.c
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/rs.spec
s/rsAllocation.cpp
s/rsAllocation.h
s/rsComponent.cpp
s/rsComponent.h
s/rsContext.h
s/rsElement.cpp
s/rsElement.h
s/rsObjectBase.cpp
s/rsProgramFragment.cpp
s/rsScriptC_Lib.cpp
s/rsSimpleMesh.cpp
s/rsSimpleMesh.h
s/rsType.cpp
s/rsType.h
8f5c94b453fdb2873c14c295158caf2334fd5762 09-Aug-2009 Romain Guy <romainguy@android.com> Better ripples and leaves
s/java/Fall/res/drawable-hdpi/leaves.png
s/java/Fall/res/raw/fall.c
s/java/Fall/src/com/android/fall/rs/FallRS.java
s/java/Grass/res/raw/grass.c
s/java/Grass/src/com/android/grass/rs/GrassRS.java
s/rsScriptC_Lib.cpp
8af63bc97fb2d66e5fb1dab5bcf31ca044dced7b 08-Aug-2009 Eric Laurent <elaurent@google.com> Test for issue 2041105: CPU pegged after lost of bluetooth connection[WAR ROOM].

Merge change 7419 from master that may help eliminate the problem.
This change was for a different use case (when disabling A2DP to switch output to SCO) but without a repro case it is worth trying.
udioflinger/AudioFlinger.cpp
1d40f50de5a207351d5fe3f0eada2c8bf74dcd82 08-Aug-2009 Mathias Agopian <mathias@google.com> remove unused and confusing comment
urfaceflinger/Layer.cpp
db704e28aea24f86c62bb21a26225e9542c66c03 08-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge changes 20497,20498,20499

* changes:
minor code clean-up
added EGLUtils::strerror
better error handling
9ca4dd6011e30cbb3bc40cf0bba7d11362b8bc38 08-Aug-2009 Mathias Agopian <mathias@google.com> minor code clean-up
urfaceflinger/DisplayHardware/DisplayHardware.cpp
509dae53c54437eebd5291226e76c5456646f560 08-Aug-2009 Mathias Agopian <mathias@google.com> added EGLUtils::strerror
i/EGLUtils.cpp
b99ab30cbc98ec38d514bbd11197a6abf1c104b5 08-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20481

* changes:
Add refraction and bettr normals computation to FallRS
6c0cc6db9966bda47d04ecdd1a4692b11cf3775a 08-Aug-2009 Romain Guy <romainguy@android.com> Add refraction and bettr normals computation to FallRS
s/java/Fall/AndroidManifest.xml
s/java/Fall/res/drawable-hdpi/riverbed.jpg
s/java/Fall/res/raw/fall.c
s/java/Fall/src/com/android/fall/rs/FallRS.java
s/java/Fall/src/com/android/fall/rs/FallView.java
s/rsScriptC_Lib.cpp
d5603c126acdd94d9f7400bb1d04188020a425b4 06-Aug-2009 Eric Laurent <elaurent@google.com> AudioService now differentiates BT headsets and car kits.

The BT headset detection now makes the difference between car kits and headsets, which can be used by audio policy manager.
The headset connection is also detected earlier, that is when the headset is connected and not when the SCO socket is connected as it was the case before. This allows the audio policy manager to suspend A2DP output while ringing if a SCO headset is connected.
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
49018a55d1c3f42c9e125d5c17e1353c05cc679e 04-Aug-2009 Eric Laurent <elaurent@google.com> Fix problem in AudioFlinger closeOutput and closeInput.

There was no garanty that the corresponding thread destructor had been already called when exiting the closeOutput() or closeInput() functions.
This contructor could be called by the thread after the exit condition is signalled. By way of consequence, closeOutputStream() could be called after
we exited closeOutput() function.

To solve the problem, the call to closeOutputStream() or closeInputStream() is moved to closeOutput() or closeInput().
udioflinger/AudioFlinger.cpp
69682b4c3722152add97165161dd013740eebe77 04-Aug-2009 Eric Laurent <elaurent@google.com> Improved unit test code for Audioflinger.
udioflinger/AudioDumpInterface.cpp
udioflinger/AudioDumpInterface.h
udioflinger/AudioPolicyManagerGeneric.cpp
udioflinger/AudioPolicyManagerGeneric.h
8fce46a2b3e93879ae372cf07232451736c5ea7e 04-Aug-2009 Eric Laurent <elaurent@google.com> Fix lockup in audio flinger threadbase setParameters.

The function checkForNewParameters_l() is called with the ThreadBase mutex mLock locked. In the case where the parameter change implies
an audio parameter modification (e.g. sampling rate) the function sendConfigEvent() is called which tries to lock mLock creating a deadlock.

The fix consists in creating a function equivalent to sendConfigEvent() that must be called with mLock locked and does not lock mLock.

Also added the possibility to have more than one set parameter request pending.
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
0f0021d36b3f94abd5375385d6f5b72222d1f37f 07-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9660

* changes:
Fix problem in A2DP interface closeOutputStream().
79cf293f598c0b2f6bac8c4a76abcb81fefb2868 07-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9653

* changes:
Fix getParameters() default implementation.
ddb78e7753be03937ad57ce7c3c842c52bdad65e 28-Jul-2009 Eric Laurent <elaurent@google.com> Fix issue 2001214: AudioFlinger and AudioPolicyService interfaces should not use pointers as handles to inputs and outputs.

Use integers instead of void* as input/output handles at IAudioFlinger and IAudioPolicyService interfaces.
AudioFlinger maintains an always increasing count of opened inputs or outputs as unique ID.
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
udioflinger/AudioPolicyManagerGeneric.cpp
udioflinger/AudioPolicyService.cpp
udioflinger/AudioPolicyService.h
4c35e2c59afa28f9ed3fab1788570ef933f29b1a 07-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20400

* changes:
Add lighting to animated water ripples.
b62627ea336db2a4f423596c2a0f482f91690fd7 07-Aug-2009 Romain Guy <romainguy@android.com> Add lighting to animated water ripples.
s/java/Fall/res/raw/fall.c
s/java/Fall/src/com/android/fall/rs/FallRS.java
s/java/Fall/src/com/android/fall/rs/FallView.java
s/java/Grass/src/com/android/grass/rs/GrassRS.java
s/rsProgramVertex.cpp
s/rsScriptC_Lib.cpp
6693f236544b767f1c22b08a48d70428a3ce4ec9 07-Aug-2009 Mathias Agopian <mathias@google.com> better error handling
i/EGLUtils.cpp
i/FramebufferNativeWindow.cpp
c1879a093334ceb577b5307a3a31b31d6847b728 07-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20365

* changes:
oops, EGLConfig of value zero may be valid
d7ef08c08d50d1c01d30a242b04590bd3a272431 07-Aug-2009 Mathias Agopian <mathias@google.com> oops, EGLConfig of value zero may be valid
i/EGLUtils.cpp
43a6d88e4ee13836d015a114bb0065b679cfa916 07-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge changes 20345,20346,20347

* changes:
update most gl tests to use EGLUtils
added two EGL helpers for selecting a config matching a certain pixelformat or native window type
added NATIVE_WINDOW_FORMAT attribute to android_native_window_t
265d9c076a588cf4cd811fbafd999c7ffe36641b 07-Aug-2009 Mathias Agopian <mathias@google.com> added two EGL helpers for selecting a config matching a certain pixelformat or native window type
urfaceflinger/DisplayHardware/DisplayHardware.cpp
i/Android.mk
i/EGLUtils.cpp
25ec00fd13a6310d80a726cc9493a4b394056063 07-Aug-2009 Mathias Agopian <mathias@google.com> added NATIVE_WINDOW_FORMAT attribute to android_native_window_t
i/FramebufferNativeWindow.cpp
i/Surface.cpp
fc2ebc473bbca6f9e6e30ea5de979c4852f35319 06-Aug-2009 Iliyan Malchev <malchev@google.com> EventHub: pass the name of each input device up to Java

Signed-off-by: Iliyan Malchev <malchev@google.com>
i/EventHub.cpp
f8e136dcd0a4ba415f2cb8b18c1abfe46cf3512f 06-Aug-2009 Romain Guy <romainguy@android.com> Use arrays in Grass RS
s/java/Grass/res/raw/grass.c
s/java/Grass/src/com/android/grass/rs/GrassRS.java
s/rsScriptC_Lib.cpp
71cb821c05659d02856ba361d490aa703ff08e37 06-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20217

* changes:
Draw untextured water mesh
31858c2b84d3aa273198731afb057aa70308eb7e 05-Aug-2009 Romain Guy <romainguy@android.com> Draw untextured water mesh
s/java/Fall/res/raw/fall.c
s/java/Fall/src/com/android/fall/rs/FallRS.java
s/java/Grass/res/drawable-hdpi/aa.png
s/java/Grass/res/drawable-hdpi/night.jpg
s/java/Grass/src/com/android/grass/rs/GrassRS.java
5903a9154536e38aaf1bfefe48b7c162b6ef9280 06-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20207

* changes:
Implement basic snapping.
8c709dcc418681e8e2226e1e564ce1e0b3f1319c 06-Aug-2009 Jason Sams <rjsams@android.com> Implement basic snapping.
s/java/Rollo/res/raw/rollo.c
s/java/Rollo/src/com/android/rollo/RolloRS.java
s/java/Rollo/src/com/android/rollo/RolloView.java
20fefe90bc187c07a5c8b9a0be8f56d4576cfdac 05-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20124

* changes:
Remove useless slot from ProgramVertex. Optimize GL state setup.
9bee51c42eb8c3daffe7d6fa483edbb1689b94d2 05-Aug-2009 Jason Sams <rjsams@android.com> Remove useless slot from ProgramVertex. Optimize GL state setup.
s/java/Fall/src/com/android/fall/rs/FallRS.java
s/java/Film/src/com/android/film/FilmRS.java
s/java/Grass/src/com/android/grass/rs/GrassRS.java
s/java/Rollo/src/com/android/rollo/RolloRS.java
s/rs.spec
s/rsAllocation.cpp
s/rsContext.cpp
s/rsContext.h
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramFragment.cpp
s/rsProgramFragment.h
s/rsProgramFragmentStore.cpp
s/rsProgramFragmentStore.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsUtils.h
573963e3a897dccf4e5dd97d4a95c160646baa0d 05-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20133

* changes:
don't crash when SurfaceBuffer::writeToParcel is given a null argument
b1d39aae13869a9dd05efb95c48b8782a54f0871 05-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9649

* changes:
Finish implementation of multiple pointer support for MotionEvent.
4e0df8ede853d0038c5b8314021b8fd76232f9ea 05-Aug-2009 Mathias Agopian <mathias@google.com> don't crash when SurfaceBuffer::writeToParcel is given a null argument
i/Surface.cpp
0dd7cb4b4ef86eb7d4e837b1948501da66adeebe 04-Aug-2009 Dianne Hackborn <hackbod@google.com> Finish implementation of multiple pointer support for MotionEvent.

The major things going on here:

- The MotionEvent API is now extended to included "pointer ID" information, for
applications to keep track of individual fingers as they move up and down.
PointerLocation has been updated to take advantage of this.

- The input system now has logic to generate MotionEvents with the new ID
information, synthesizing an identifier as new points are down and trying to
keep pointer ids consistent across events by looking at the distance between
the last and next set of pointers.

- We now support the new multitouch driver protocol, and will use that instead
of the old one if it is available. We do NOT use any finger id information
coming from the driver, but always synthesize pointer ids in user space.
(This is simply because we don't yet have a driver reporting this information
from which to base an implementation on.)

- Increase maximum number of fingers to 10. This code has only been used
with a driver that reports up to 2, so no idea how more will actually work.

- Oh and the input system can now detect and report physical DPAD devices.
i/EventHub.cpp
ec070224c4ca27037a5ccefae8ec362d68ffc3aa 05-Aug-2009 Romain Guy <romainguy@android.com> Fix Fall RS to use the new ProgramVertex APIs.
s/java/Fall/src/com/android/fall/rs/FallRS.java
110195fe9ff96255242bfa4df1d15c6a56b140d6 05-Aug-2009 Jason Sams <rjsams@android.com> Seperate ProgramVertex from RenderScript.java and merge ProgramVertexAlloc into the ProgramVertex class.
s/java/Film/src/com/android/film/FilmRS.java
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/Grass/src/com/android/grass/rs/GrassRS.java
s/java/Rollo/src/com/android/rollo/RolloRS.java
a2136d6b18a26ff34f2e5cd3f6c9413f0c96a5ba 05-Aug-2009 Romain Guy <romainguy@android.com> Add ability to load arrays in RenderScript.
s/java/Fall/Android.mk
s/java/Fall/AndroidManifest.xml
s/java/Fall/res/raw/fall.c
s/java/Fall/src/com/android/fall/rs/Fall.java
s/java/Fall/src/com/android/fall/rs/FallRS.java
s/java/Fall/src/com/android/fall/rs/FallView.java
s/java/Grass/src/com/android/grass/rs/GrassRS.java
s/java/Grass/src/com/android/grass/rs/GrassView.java
s/rsScriptC_Lib.cpp
0835d42be9b215f845e30db03211c86670cfa12a 05-Aug-2009 Jason Sams <rjsams@android.com> Seperate Light and Sampler from RenderScript.java
s/java/Film/res/raw/filmstrip.c
s/java/Film/src/com/android/film/FilmRS.java
s/java/Grass/src/com/android/grass/rs/GrassRS.java
s/java/Rollo/src/com/android/rollo/RolloRS.java
22534176fb5c1257130ef4ee589739ca42766a32 05-Aug-2009 Jason Sams <rjsams@android.com> Split ProgramFragment and ProgramStore from RenderScript.java. Update Element and Type to new cached builder for easier app developement.
s/java/Film/res/raw/filmstrip.c
s/java/Film/src/com/android/film/FilmRS.java
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/Grass/src/com/android/grass/rs/GrassRS.java
s/java/Rollo/src/com/android/rollo/RolloRS.java
s/rs.spec
s/rsScript.cpp
s/rsScriptC.cpp
1836ae25f5953be01d02665461829421ecc2d6d3 05-Aug-2009 Romain Guy <romainguy@android.com> Use the new ScriptC.Builder API.
s/java/Grass/src/com/android/grass/rs/GrassRS.java
ecc7ca03721fbeb016c7f2e7469109d88ac4f952 04-Aug-2009 Romain Guy <romainguy@android.com> Add swaying effect to the grass.
s/Android.mk
s/java/Grass/res/raw/grass.c
s/java/Grass/src/com/android/grass/rs/GrassRS.java
s/rsNoise.cpp
s/rsNoise.h
s/rsScriptC_Lib.cpp
69f0d31e576c0110c2cbbafc3b9bd46e73fc1afc 04-Aug-2009 Jason Sams <rjsams@android.com> Split ScriptC from RenderScript.java. Implement state caching in the Builder objects.
s/java/Film/src/com/android/film/FilmRS.java
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/Grass/src/com/android/grass/rs/GrassRS.java
s/java/Rollo/src/com/android/rollo/RolloRS.java
351def28f05057b7bf47194172d4bec333bb3285 04-Aug-2009 Eric Laurent <elaurent@google.com> Fix problem in A2DP interface closeOutputStream().

If the output stream handler passed was not the A2DP output stream, the request was ignored instead of being forwarded downstream to hardware interface.
udioflinger/A2dpAudioInterface.cpp
ab19b21f3c98b259b1f18933f503016965ef779d 04-Aug-2009 Eric Laurent <elaurent@google.com> Fix getParameters() default implementation.

Do not return empty string but key value pairs with empty values.
udioflinger/AudioHardwareInterface.cpp
udioflinger/AudioHardwareStub.cpp
udioflinger/AudioHardwareStub.h
cd9e8d49071d10ad2d64530070a5c82fe2f49902 04-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9606

* changes:
Add anti-aliasing to Grass RS.
3a1ea9334f386f7b582d17ef1be8b3ab7f605353 04-Aug-2009 Romain Guy <romainguy@android.com> Add anti-aliasing to Grass RS.
s/java/Grass/res/drawable-hdpi/aa.png
s/java/Grass/res/raw/grass.c
s/java/Grass/src/com/android/grass/rs/GrassRS.java
9df76c7c2f94cf3a66a61b28432b7c5d68869255 04-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9551

* changes:
Implement the jni bindings for Adapter2D. Fix a refcount bug in the native adapter implementation. Use adapters in Film to border the mipmaps.
bd1c3ad0cdf8e60b849a009cdc0b36764cc1dacb 04-Aug-2009 Jason Sams <rjsams@android.com> Implement the jni bindings for Adapter2D. Fix a refcount bug in the native adapter implementation. Use adapters in Film to border the mipmaps.
s/java/Film/src/com/android/film/FilmRS.java
s/rsAdapter.cpp
cb21c37853cf67ab91ae324e7887a1561f879056 01-Aug-2009 Mathias Agopian <mathias@google.com> free surface buffers before trying to allocate new ones, so we have more chance of success
urfaceflinger/LayerBitmap.cpp
cf31b1bcbe5b9081470ec67421c78894d59363f6 01-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9397

* changes:
Fix Win32 libutils to get a working SDK build.
078a2757847dcdd50a254d973d2c9a0556e98d75 01-Aug-2009 David 'Digit' Turner <digit@google.com> Fix Win32 libutils to get a working SDK build.
tils/Threads.cpp
fcaa31bf65bef98f2054f4ba92ac41b4639e6972 01-Aug-2009 Romain Guy <romainguy@android.com> Clean up Grass RS
s/java/Grass/res/raw/grass.c
a32d100b34d048cf0c765d8f31d87b81ab88d1eb 01-Aug-2009 Romain Guy <romainguy@android.com> Add new utility methods to rsScriptC_Lib, android.util.MathUtil and android.graphics.Color.
Fixes RS compilation.
s/java/Grass/res/raw/grass.c
s/java/Grass/src/com/android/grass/rs/GrassRS.java
s/java/Grass/src/com/android/grass/rs/GrassView.java
s/rsScriptC_Lib.cpp
b8c5a84e7c23746a3fc26013e0880d3d95ca6588 01-Aug-2009 Jason Sams <rjsams@android.com> Split RenderScript Type and Allocation into seperate classes.
s/java/Film/src/com/android/film/FilmRS.java
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/Grass/src/com/android/grass/rs/GrassRS.java
s/java/Rollo/src/com/android/rollo/RolloRS.java
11d6728af1cd1557539e8a15f4b3ec2ae2755394 01-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9413

* changes:
Begin splitting up RenderScript.java into seperate classes. First piece split off Element.
36e612a488511940b61f09803b270aa1c61b68e0 01-Aug-2009 Jason Sams <rjsams@android.com> Begin splitting up RenderScript.java into seperate classes. First piece split off Element.
s/java/Film/src/com/android/film/FilmRS.java
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/Grass/src/com/android/grass/rs/GrassRS.java
s/java/Rollo/res/raw/rollo.c
s/java/Rollo/src/com/android/rollo/RolloMesh.java
s/java/Rollo/src/com/android/rollo/RolloRS.java
d3d88ddab7c0bc61697bbb42dd61f08525086686 01-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge changes 9415,9416

* changes:
log opengl-call-with-no-context only once per thread, instead of for each function call
don't crash in Parcel when given a null (and therfore invalid) native_handle_t
f1db4aec6569d7cf9e1fb84f1d9c1292032eac30 01-Aug-2009 Mathias Agopian <mathias@google.com> don't crash in Parcel when given a null (and therfore invalid) native_handle_t
inder/Parcel.cpp
b5a57ad94388ebcd3717a6970a12449055eadabe 01-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9391

* changes:
be more robust when errors occur upon EGL surface creation (ie: don't crash)
abac01052c1c40f8582fe9f010c2efe6013e25c6 31-Jul-2009 Mathias Agopian <mathias@google.com> be more robust when errors occur upon EGL surface creation (ie: don't crash)
i/Surface.cpp
8839ca55336aa78d4ca8e6675d96fba3283244c3 31-Jul-2009 Romain Guy <romainguy@android.com> Add several math functions to rsScript_Lib.
s/rsScriptC_Lib.cpp
8c76cef0c8ca87e1e642a8351e1713007898c764 31-Jul-2009 Romain Guy <romainguy@android.com> Smoother transitions in GrassRS
s/java/Grass/res/raw/grass.c
s/java/Grass/src/com/android/grass/rs/GrassRS.java
584a375df68ed7d62b38389078c6804edf228f9c 31-Jul-2009 Romain Guy <romainguy@android.com> First pass at implementing the Grass live wallpaper in RenderScript.

This change also adds second(), minute() and hour() to the RS library.
s/java/Grass/Android.mk
s/java/Grass/AndroidManifest.xml
s/java/Grass/res/drawable-hdpi/night.jpg
s/java/Grass/res/drawable-hdpi/sky.jpg
s/java/Grass/res/drawable-hdpi/sunrise.jpg
s/java/Grass/res/drawable-hdpi/sunset.jpg
s/java/Grass/res/raw/grass.c
s/java/Grass/src/com/android/grass/rs/Grass.java
s/java/Grass/src/com/android/grass/rs/GrassRS.java
s/java/Grass/src/com/android/grass/rs/GrassView.java
s/rs.spec
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC_Lib.cpp
1a20bae18ce05a5a141810492549d351a82f6490 31-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9287

* changes:
fixed some issues with the software renderer when surfaces are made current.
5b5c9144872b4e31ba5a041dce585a8ddbbe495d 31-Jul-2009 Mathias Agopian <mathias@google.com> fixed some issues with the software renderer when surfaces are made current.

there was several issues:
- when a surface was made non-current, the last frame wasn't shown and the buffer could stay locked
- when a surface was made current the 2nd time, it would not dequeue a new buffer

now, queue/dequeue are done when the surface is made current.

for this to work, a new query() hook had to be added on android_native_window_t, it allows to retrieve some attributes of a window (currently only width and height).
i/FramebufferNativeWindow.cpp
i/Surface.cpp
afcf686cb070313ae5ce6c54ac381a3a86a60ed2 31-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 25dff70f: Merge change 9039 into donut

Merge commit '25dff70f153529b87f5ad4a92f4de21e8950b1de'

* commit '25dff70f153529b87f5ad4a92f4de21e8950b1de':
Fix #2018814: System cannot correctly render assets with "wrap_content" attribute in QVGA
a0afa2dc86186ff845fb1ebf38eabf52a5e12f19 30-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9236

* changes:
Implement bitmap resource loaders for utility. cleanup rolloRS and checkin maps.png which was missing.
dba3ba5b5bf6026abceced921b1b0d231b0faefd 30-Jul-2009 Jason Sams <rjsams@android.com> Implement bitmap resource loaders for utility. cleanup rolloRS and checkin maps.png which was missing.
s/java/Film/src/com/android/film/FilmRS.java
s/java/Rollo/res/raw/maps.png
s/java/Rollo/src/com/android/rollo/RolloRS.java
e7f03253f915fea0672710899b7a4284bebd5124 30-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9070

* changes:
Adding resizeInput and setAttributes for overlay
5e631892fb9ac4da83b70ba129ceb6a3f501bad9 30-Jul-2009 Mathias Agopian <mathias@google.com> Fix a debug statement in BufferMapper
i/BufferMapper.cpp
f293b2ff78ce4adac28962d020a0313fdb509cd2 30-Jul-2009 Mathias Agopian <mathias@google.com> NPOT EGLimage without GL_ARB_texture_non_power_of_two would be improperly scalled

The current gralloc allocates buffer memory for render targets that will typically have NPOT dimensions. Assuming that the vendor driver supports converting the resulting NPOT android_native_buffer_t to a NPOT EGLImage, SurfaceFlinger calls glEGLImageTargetTexture2DOES(), and uses glGetError() to test whether the GL can support creating an EGL target texture with the specified NPOT EGLImage. If it is supported, the DIRECT_TEXTURE flag remains set, otherwise it is cleared.

Tangentially, if the driver advertises the GL_ARB_texture_non_power_of_two extension, the NPOT_EXTENSION flag is set, otherwise it is cleared.

If the driver supported creating an EGL target texture from a NPOT source EGLImage, it implicitly creates a NPOT texture. This does not need any glScalef() texture coordinate correction in LayerBase::drawWithOpenGL(). However, the same driver may not advertise the GL_ARB_texture_non_power_of_two extension nor generally support NPOT textures that were not derived from EGLImages. So SurfaceFlinger may flag only DIRECT_TEXTURE, not NPOT_EXTENSION.

Therefore, the test in LayerBase::drawWithOpenGL() should only perform the glScalef() if neither NPOT_EXTENSION or DIRECT_TEXTURE are flagged. Otherwise scaling is applied to NPOT EGL target textures when none is required.
urfaceflinger/LayerBase.cpp
6502a380adea84e4998281d9255c3450fb9c10d6 30-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9090

* changes:
Simplify image loading. Use common internal format.
0ea8c8a7c060873ef94e8aa8a637bc90852777d1 30-Jul-2009 Jason Sams <rjsams@android.com> Simplify image loading. Use common internal format.
s/java/Film/src/com/android/film/FilmRS.java
7518f16793c12564d4bdf9468d525b1c32ac19de 30-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9089

* changes:
Filmstrip work and boxed bitmap load bugfixes.
faf1520be77aa01903f9ad87990377f44e185224 30-Jul-2009 Jason Sams <rjsams@android.com> Filmstrip work and boxed bitmap load bugfixes.
s/java/Film/res/raw/filmstrip.c
s/java/Film/src/com/android/film/FilmRS.java
s/java/Film/src/com/android/film/FilmView.java
s/java/Rollo/res/raw/rollo.c
s/java/Rollo/src/com/android/rollo/RolloRS.java
s/rsAllocation.cpp
s/rsScriptC_Lib.cpp
0d221012ff5fd314711c00ed30e9b807b9c454c1 30-Jul-2009 Dianne Hackborn <hackbod@google.com> Fix #2018814: System cannot correctly render assets with "wrap_content" attribute in QVGA

It turns out we were not returning the density for anything retrieved from a
TypedArray... which basically means any bitmap references from a layout or style...!!!

This is now fixed.

Also fiddle with the density compatibility mode to turn on smoothing in certain situations,
helping the look of things when they need to scale and we couldn't do the scaling at
load time.
tils/ResourceTypes.cpp
4ccee716f8c3b81deda211e51f6c82493302647f 25-Jul-2009 Benny Wong <Benny.Wong@motorola.com> Adding resizeInput and setAttributes for overlay
i/Overlay.cpp
75ac5fb8756ec42a41d831acb52e1c100171f39b 30-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9065

* changes:
Checkin art assets for film test app and change loading of icons to 8888.
31b532ee9e1aaebbe383b13422cc59df43de4725 30-Jul-2009 Jason Sams <rjsams@android.com> Checkin art assets for film test app and change loading of icons to 8888.
s/java/Film/res/drawable/p01.png
s/java/Film/res/drawable/p02.png
s/java/Film/res/drawable/p03.png
s/java/Film/res/drawable/p04.png
s/java/Film/res/drawable/p05.png
s/java/Film/res/drawable/p06.png
s/java/Film/res/drawable/p07.png
s/java/Film/res/drawable/p08.png
s/java/Film/res/drawable/p09.png
s/java/Film/res/drawable/p10.png
s/java/Film/res/drawable/p11.png
s/java/Film/res/drawable/p12.png
s/java/Film/res/drawable/p13.png
s/java/Rollo/src/com/android/rollo/RolloRS.java
b2b28f31228139395c6f4930c3374f758f68f501 29-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 1521cd6e: Merge change 8015 into donut

Merge commit '1521cd6e657ba4efa9382ab73d3cbba3bdf50ead'

* commit '1521cd6e657ba4efa9382ab73d3cbba3bdf50ead':
Reset the mDpiX and mDpiY values when qemu.sf.lcd_density is defined.
afa7d85b43c6c2058cbde61ff287ff5776d76d2a 29-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9008

* changes:
Only restore the bits for wallpapers that aren't built in.
9bb8fd77c8dc177aab9ac96bed4f55972dcda70a 29-Jul-2009 Joe Onorato <joeo@android.com> Only restore the bits for wallpapers that aren't built in.
tils/BackupData.cpp
d058ee0198a662bda45adc26fe3486d629234c62 29-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8987

* changes:
Fix firestone build
ee028d5771781caa22a7e81ce48dabbcdc01a448 29-Jul-2009 Marco Nelissen <marcone@google.com> Fix firestone build
udioflinger/Android.mk
700a52ac7a29671d75d49a5208bbc4156897c890 29-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge changes 8935,8936

* changes:
Fix the IOException in wallpaper restore -- the padding isn't required at the end.
Fix bug 1982892 - batteryservice turns off device even while plugged in
e1c00aab871066935f68c92d39a82ed61e71d812 29-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8931

* changes:
fix [1985856] Seg fault when using the soft keyboard in the Messaging app
c915d0a33cda6cc16bf1685ccc0389787119a213 29-Jul-2009 Mathias Agopian <mathias@google.com> fix [1985856] Seg fault when using the soft keyboard in the Messaging app
urfaceflinger/LayerBitmap.cpp
8d72569e3b85a352afe0fe1125b784d2ac13cde1 29-Jul-2009 Joe Onorato <joeo@android.com> Fix the IOException in wallpaper restore -- the padding isn't required at the end.
tils/BackupData.cpp
3eb434487825b7ced55527dc50dd3957dfe187b6 29-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8901

* changes:
Add new icons and implement text. Fix bug with uploading 8888 bitmaps of non-square size.
6f5c61c8df70273e3bbc7fd07412cc69b6ce1e76 29-Jul-2009 Jason Sams <rjsams@android.com> Add new icons and implement text. Fix bug with uploading 8888 bitmaps of non-square size.
s/java/Rollo/res/raw/calendar.png
s/java/Rollo/res/raw/g1155.png
s/java/Rollo/res/raw/g2140.png
s/java/Rollo/res/raw/path1920.png
s/java/Rollo/res/raw/path1927.png
s/java/Rollo/res/raw/path3099.png
s/java/Rollo/res/raw/path3950.png
s/java/Rollo/res/raw/path431.png
s/java/Rollo/res/raw/path4481.png
s/java/Rollo/res/raw/path5168.png
s/java/Rollo/res/raw/path676.png
s/java/Rollo/res/raw/path754.png
s/java/Rollo/res/raw/path815.png
s/java/Rollo/res/raw/polygon2408.png
s/java/Rollo/res/raw/rollo.c
s/java/Rollo/src/com/android/rollo/RolloRS.java
s/java/Rollo/src/com/android/rollo/RolloView.java
s/rsAllocation.cpp
s/rsScriptC_Lib.cpp
ec5d6833356ce99db579e9b7d5d22f17b7c1d7f4 29-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8839

* changes:
Fix selection and change icon loading from 565 to 8888.
1521cd6e657ba4efa9382ab73d3cbba3bdf50ead 29-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8015 into donut

* changes:
Reset the mDpiX and mDpiY values when qemu.sf.lcd_density is defined.
d75fe9aa835b0811911e1727de8e15b329dafd49 29-Jul-2009 David 'Digit' Turner <digit@google.com> Reset the mDpiX and mDpiY values when qemu.sf.lcd_density is defined.

This will make android.view.Display return corresponding values for
the screen's DPI.
urfaceflinger/DisplayHardware/DisplayHardware.cpp
6c70a8b76b636a4cc68aa0045205202d8fae8232 28-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8858

* changes:
resolved conflicts for merge of ac38dfc5 to master
33863dd9e1005478d20b70fad42e447ac97f5abf 28-Jul-2009 Mathias Agopian <mathias@google.com> resolved conflicts for merge of ac38dfc5 to master
37d7fc70dd92a29662b9e170f91ee6b35ae950ab 28-Jul-2009 Jason Sams <rjsams@android.com> Fix selection and change icon loading from 565 to 8888.
s/java/Rollo/src/com/android/rollo/RolloRS.java
s/java/Rollo/src/com/android/rollo/RolloView.java
a590434559a15b70693acb1767d06635706fcc9c 28-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8835

* changes:
Add "boxed" bitmap uploads which simply place a non-pow2 bitmap into the smallest larger pow texture. The added space is filled black.
b0ec1b46d6f5b5612e33fe43a828abea79b87a00 28-Jul-2009 Jason Sams <rjsams@android.com> Add "boxed" bitmap uploads which simply place a non-pow2 bitmap into the smallest larger pow texture. The added space is filled black.
s/RenderScript.h
s/RenderScriptEnv.h
s/java/Film/res/raw/filmstrip.c
s/java/Film/src/com/android/film/FilmRS.java
s/java/Rollo/res/raw/rollo.c
s/java/Rollo/res/raw/rollo2.c
s/java/Rollo/src/com/android/rollo/RolloRS.java
s/java/Rollo/src/com/android/rollo/RolloView.java
s/rs.spec
s/rsAllocation.cpp
s/rsContext.cpp
s/rsContext.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsScriptC_Lib.cpp
12cedff50ca229a5d025e1011f1518c32e858138 28-Jul-2009 Mathias Agopian <mathias@google.com> fix [2017532] Partial Update leaves residual image.
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
dd3fbf15f7af701b889c7acd4d5ab09522609858 28-Jul-2009 Eric Laurent <elaurent@google.com> Fix issue 2004229: DTMF tones play through earpiece (G1).
udioflinger/AudioFlinger.cpp
a04aaff2be2396b486181189c67d154e98892f9c 25-Jul-2009 Eric Laurent <elaurent@google.com> Fix the build for BOARD_USES_GENERIC_AUDIO option
udioflinger/Android.mk
4192cce1f252932b6f3cae43e3da7584f4cb2c28 24-Jul-2009 Eric Laurent <elaurent@google.com> Fix issue 2001204: libaudiopolicy.so and libaudiopolicygeneric.so libraries must be pre-linked.
udioflinger/Android.mk
udioflinger/AudioPolicyManagerGeneric.cpp
udioflinger/AudioPolicyService.cpp
udioflinger/AudioPolicyService.h
53305e832635c78318bfa0ad49129412f780a556 24-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8421

* changes:
Unbreak build by making the build of renderscript again conditional on BUILD_RENDERSCRIPT until we can figure out why the build servers see an error that does not reproduce locally.
8af858e9b6577d074c5427e601b6418d288fdb9d 24-Jul-2009 Jason Sams <rjsams@android.com> Unbreak build by making the build of renderscript again conditional on BUILD_RENDERSCRIPT until we can figure out why the build servers see an error that does not reproduce locally.
s/Android.mk
bc512021ee967bf106561e58af946814bff02da1 24-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8279

* changes:
Move the java and jni renderscript files to the proper location.
e29d471e5ca9781d8772d445ec7832e94856fd14 24-Jul-2009 Jason Sams <rjsams@android.com> Move the java and jni renderscript files to the proper location.
s/Android.mk
s/java/Film/Android.mk
s/java/Fountain/Android.mk
s/java/RenderScript/Android.mk
s/java/RenderScript/android/renderscript/Matrix.java
s/java/RenderScript/android/renderscript/ProgramVertexAlloc.java
s/java/RenderScript/android/renderscript/RSSurfaceView.java
s/java/RenderScript/android/renderscript/RenderScript.java
s/java/Rollo/Android.mk
s/jni/Android.mk
s/jni/RenderScript_jni.cpp
102313a95d3b18ce5c4c16485f8d463fcd0685fc 23-Jul-2009 Eric Laurent <elaurent@google.com> Fix issue 1999585: audioflinger crash.

We were looping on the number of playback threads when dumping record threads.
udioflinger/AudioFlinger.cpp
2c817f5d52478453a1bd7e451fa14c1b7fe4802b 23-Jul-2009 Eric Laurent <elaurent@google.com> Fix the sim build.
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
a553c25b33c99b345cf1c8688f8df0ed8df14e5a 17-Jul-2009 Eric Laurent <elaurent@google.com> Fix issue 1795088 Improve audio routing code

Initial commit for review.
Integrated comments after patch set 1 review.
Fixed lockup in AudioFlinger::ThreadBase::exit()
Fixed lockup when playing tone with AudioPlocyService startTone()
udioflinger/A2dpAudioInterface.cpp
udioflinger/A2dpAudioInterface.h
udioflinger/Android.mk
udioflinger/AudioDumpInterface.cpp
udioflinger/AudioDumpInterface.h
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
udioflinger/AudioHardwareGeneric.cpp
udioflinger/AudioHardwareGeneric.h
udioflinger/AudioHardwareInterface.cpp
udioflinger/AudioHardwareStub.cpp
udioflinger/AudioHardwareStub.h
udioflinger/AudioMixer.cpp
udioflinger/AudioMixer.h
udioflinger/AudioPolicyManagerGeneric.cpp
udioflinger/AudioPolicyManagerGeneric.h
udioflinger/AudioPolicyService.cpp
udioflinger/AudioPolicyService.h
ebd7bc54028949619bbf3fa5ed6c1188f588c230 23-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8109

* changes:
Add a flag to set whether the overlay has been initialized. Commit needs to be called at least once on each overlay, and it appears that sometimes this doesn't happen because the visibility never changes. With this change the overlay parameter and position will be committed when either the visibility of the window changes, or on the first call to visibility resolved, if it hasn't already been done.
43ab76389ead0ef90e3d4fa883d5a58c34a6801b 22-Jul-2009 Rebecca Schultz Zavin <rebecca@android.com> Add a flag to set whether the overlay has been initialized. Commit needs to be called at least once on each overlay, and it appears that sometimes this
doesn't happen because the visibility never changes. With this change
the overlay parameter and position will be committed when either the visibility
of the window changes, or on the first call to visibility resolved, if it
hasn't already been done.

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
a8339dfec9d1b2c6d6fd2f8268f8075d184f64c0 22-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 9fc20b0e: Merge change 8126 into donut

Merge commit '9fc20b0e381b5fe00b7049ef357c839cd05a33bf'

* commit '9fc20b0e381b5fe00b7049ef357c839cd05a33bf':
First pass at reworking screen density/size APIs.
c4db95c077f826585d20be2f3db4043c53d30cf5 22-Jul-2009 Dianne Hackborn <hackbod@google.com> First pass at reworking screen density/size APIs.

This changes the names of the directories in aapt, to what you see
in the list of DpiTest resources. Also adds a new "long" configuration
for wide screens, which the platform sets appropriate, and introduces
a new kind of resizeability for not large but significantly larger
than normal screens which may have compatibility issues.
tils/ResourceTypes.cpp
eceb3bf9070bfc173f0c84d0f2f7a4ed8cca26b8 21-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8038

* changes:
Fix hardware overlay so all changes are commited when done.
ee41112e1539de95596600fd2c6dada5d275217f 21-Jul-2009 Jason Sams <rjsams@android.com> Enable light sources and update film test app.
s/java/Film/res/raw/filmstrip.c
s/java/Film/src/com/android/film/FilmRS.java
s/java/RenderScript/android/renderscript/RenderScript.java
s/jni/RenderScript_jni.cpp
s/rs.spec
s/rsContext.h
s/rsLight.cpp
s/rsLight.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsScriptC.cpp
s/rsScriptC_Lib.cpp
7ac5e698b216a1b1af97405b43adf2ad5bc40e7d 21-Jul-2009 Rebecca Schultz Zavin <rebecca@android.com> Fix hardware overlay so all changes are commited when done.
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
c7b0dba641d5417286caa3694e70b039012d1e91 20-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7939

* changes:
Split rsScriptC into class implemtation and library functions. Update test apps, all 3 should be working.
c97bb8844f9887d915d3c9e4b3582bd761357f98 20-Jul-2009 Jason Sams <rjsams@android.com> Split rsScriptC into class implemtation and library functions. Update test apps, all 3 should be working.
s/Android.mk
s/RenderScriptEnv.h
s/java/Film/res/raw/filmstrip.c
s/java/Rollo/res/raw/rollo.c
s/java/Rollo/src/com/android/rollo/RolloView.java
s/rsScriptC.cpp
s/rsScriptC.h
s/rsScriptC_Lib.cpp
8ed7d69f65a5c8cb380f0fc4248d286ad17138fd 20-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5892

* changes:
Hardware overlay support
469b4c67adc77a87eb2c9ed9217edf1778002828 20-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am aad0fcc9: Merge change 7783 into donut

Merge commit 'aad0fcc9619eb72c18a6afff48ebc9d4011f0f54'

* commit 'aad0fcc9619eb72c18a6afff48ebc9d4011f0f54':
Add "nodpi" density, and expose a bunch of density-related APIs.
fd7628aa84584e78cbe78e0c4fb4386312a98e05 18-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7806

* changes:
Fix fountain and more rollo ui work.
e6c8e9b8c7a83381c7dfbf86ac34e0302d397bee 18-Jul-2009 Jason Sams <rjsams@android.com> Fix fountain and more rollo ui work.
s/java/Fountain/AndroidManifest.xml
s/java/Fountain/res/raw/fountain.c
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/RenderScript/android/renderscript/RenderScript.java
s/java/Rollo/res/raw/rollo.c
s/java/Rollo/src/com/android/rollo/RolloRS.java
s/java/Rollo/src/com/android/rollo/RolloView.java
s/rsScriptC.cpp
a53b828635fce8b6b2d3e3377d74d72070056623 17-Jul-2009 Dianne Hackborn <hackbod@google.com> Add "nodpi" density, and expose a bunch of density-related APIs.

Also update the DpiTest app to use nodpi images, and try to have a mode
where it turns off compatibility though it's not quite working.
tils/ResourceTypes.cpp
fd0efa0d8b1402fd5f2adaa3b814e06ebf74abea 17-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7724

* changes:
Remove shadows and invert dx sign in zoomed mode.
82be1236d9665d20038b74b92ff953e42bdb1143 17-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7723

* changes:
More usability tweaks including turning the icons right side up.
7df07026e84bc110b4e75a97a9b62f68f780ffbd 17-Jul-2009 Jason Sams <rjsams@android.com> Remove shadows and invert dx sign in zoomed mode.
s/java/Rollo/res/raw/rollo.c
s/java/Rollo/src/com/android/rollo/RolloRS.java
s/java/Rollo/src/com/android/rollo/RolloView.java
e1babd45e1f849522b63c80d4602ec50eac74cff 17-Jul-2009 Marco Nelissen <marcone@google.com> Instead of using -1 for pid and uid in the simulator, and then having
to special-case the simulator case all over the framework, just use
getuid and getpid, and intercept those in the simulator wrapper.
inder/IPCThreadState.cpp
15431a9482cedcfee7f5badc05c436e2c7cc7997 17-Jul-2009 Mike Lockwood <lockwood@android.com> EventHub: Compare name instead of id when excluding event input devices.

Signed-off-by: Mike Lockwood <lockwood@android.com>
i/EventHub.cpp
c1ea948ee8b16cf1afeea6f3e9e67df0811e4253 17-Jul-2009 Jason Sams <rjsams@android.com> More usability tweaks including turning the icons right side up.
s/java/Rollo/res/raw/rollo.c
s/java/Rollo/src/com/android/rollo/RolloRS.java
s/java/Rollo/src/com/android/rollo/RolloView.java
s/rsScriptC.cpp
3d88fc00b32cc4c093dd5ef3f8f349966df948ad 17-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 3e1663a2: Merge change 7536 into donut

Merge commit '3e1663a2539ff0b939193304cfb601f6b134af7d'

* commit '3e1663a2539ff0b939193304cfb601f6b134af7d':
fix FILE* version of ZipUtils::inflateToBuffer
764205c19420256ccc05df2a1669a7b69c5daaf9 17-Jul-2009 Jason Sams <rjsams@android.com> Fix conflict with automatic DPI support on high density devices by forcing bitmap loading to not be scaled.
s/java/Rollo/res/drawable/browser.png
s/java/Rollo/res/drawable/market.png
s/java/Rollo/res/drawable/photos.png
s/java/Rollo/res/drawable/settings.png
s/java/Rollo/res/raw/browser.png
s/java/Rollo/res/raw/market.png
s/java/Rollo/res/raw/photos.png
s/java/Rollo/res/raw/settings.png
s/java/Rollo/src/com/android/rollo/RolloRS.java
s/rsScriptC.cpp
s/rsScriptC.h
54440a01a97144efb6a3106fc8e63152f47e97f9 17-Jul-2009 Jason Sams <rjsams@android.com> Update rollo and renderscript to the new ACC compiler interface.
s/java/Rollo/res/raw/rollo.c
s/rsScriptC.cpp
s/rsScriptC.h
6d2090e2148996f98a5e9bc7e359e41c226f4efb 16-Jul-2009 Benny Wong <Benny.Wong@motorola.com> Hardware overlay support

Enable hardware overlay support for camera and video playback use cases
i/Overlay.cpp
7bdc99032f61ea17784801e061d950214f5ebecd 16-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7491

* changes:
Update rollo with new interactivity model.
c75a257c02ecaa1f1a476e233c0d79cd39dbe5d8 16-Jul-2009 Jason Sams <rjsams@android.com> Update rollo with new interactivity model.
s/java/Rollo/res/raw/rollo.c
s/java/Rollo/src/com/android/rollo/RolloRS.java
s/java/Rollo/src/com/android/rollo/RolloView.java
s/rsProgramFragmentStore.cpp
s/rsScriptC.cpp
d2792e3768d41c4b366fccf9c8b415c61761f4af 16-Jul-2009 Doug Zongker <dougz@android.com> fix FILE* version of ZipUtils::inflateToBuffer

This can't have ever worked; a successful fread() was returning 1
instead of getSize.
tils/ZipUtils.cpp
1d9dfc5dcf459e85cffcb762ffdb9b9a4abbfd67 16-Jul-2009 Mike Lockwood <lockwood@android.com> EventHub: Add support for excluding devices from being opened by as a keyboard.

This will be used to avoid unnecessarily listening to data from sensors
that function as event devices.

Signed-off-by: Mike Lockwood <lockwood@android.com>
i/EventHub.cpp
0c421c0d2747225f49efa547b9ceedace69005f1 16-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7490

* changes:
Fix master build errors post merge with master_gl branch.
4cc8c7dd8ebaf38f8f6ad1a9f924f3ea9ad2295d 16-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7489

* changes:
More test app work
f47042614e80891a3439d418e7061f642d9d593d 15-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7419

* changes:
Standby A2DP audio hardware interface when disabling A2DP.
92d2b407398f41dc854d83a3e1ddfd63e5320b1d 15-Jul-2009 Nick Pelly <npelly@google.com> Standby A2DP audio hardware interface when disabling A2DP.

Patch supplied on advice of partner. This causes us to send suspend_sink to
Bluez via socket interface, so we enter suspend on the A2DP link faster.
This is especially important when switching to SCO so that we come closer to
whitepaper recommendations to suspend A2DP before setting up SCO.

We have another patch set to add DBUS A2DP suspend and resume calls to Bluez
that will do a better job of following whitepaper recommendations for
A2DP -> SCO -> A2DP, but this small patch is still an improvement.
udioflinger/AudioFlinger.cpp
ee5bbb7f6304c4930899d069c82fe02e49f050aa 13-Jul-2009 Joe Onorato <joeo@android.com> Need to skip the padding after reading.

m_dataEndPos points to the end of the data, not the beginning
of the next entity.
tils/BackupData.cpp
e3dd884815b2aaeec4241859722ab603e0b1466b 14-Jul-2009 Dianne Hackborn <hackbod@google.com> Implement virtual button support.

The kernel can now publish a property describing the layout of virtual
hardware buttons on the touchscreen. These outside of the display
area (outside of the absolute x and y controller range the driver
reports), and when the user presses on them a key event will be
generated rather than a touch event.

This also includes a number of tweaks to the absolute controller
processing to make things work better on the new screens. For
example, we now reject down events outside of the display area.

Still left to be done is the ability to cancel a key down event,
so the user can slide up from the virtual keys to the touch screen
without causing a virtual key to execute.
i/EventHub.cpp
399bfce299210ef9c2fc1e932202223253e2384a 13-Jul-2009 Jason Sams <rjsams@android.com> Fix master build errors post merge with master_gl branch.
s/rsContext.h
s/rsUtils.h
7aa4f3a16355848e3cdf01642aca68416e80fd14 11-Jul-2009 Jason Sams <rjsams@android.com> More test app work
s/Android.mk
s/java/Rollo/AndroidManifest.xml
s/java/Rollo/res/raw/rollo2.c
s/java/Rollo/src/com/android/rollo/RolloRS.java
s/java/Rollo/src/com/android/rollo/RolloView.java
s/rsContext.cpp
s/rsFileA3D.cpp
s/rsMesh.h
fad6c94872c33076653805978424c16961103568 14-Jul-2009 Mathias Agopian <mathias@google.com> another attempt to fix the sim
udioflinger/Android.mk
ac2dd4d82f14b23387ec95b52663a1943fc5157d 14-Jul-2009 Mathias Agopian <mathias@google.com> first attempt to fix the sim
urfaceflinger/Android.mk
3a5351e4437fc2c220bc68a431bd4a1a00a653fa 14-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 6898

* changes:
implement Mutex and Condition with pthread instead of calling futex directly.
8d9a5eff4262b80513cb04dec0e731be8b64bb2b 14-Jul-2009 Mathias Agopian <mathias@google.com> fix [1964315] crash in the surface.cpp while browsing
i/Surface.cpp
b1c4ca5ad21ae63cd5af2cfc1be82ba176d25195 13-Jul-2009 Mathias Agopian <mathias@google.com> implement Mutex and Condition with pthread instead of calling futex directly.

internally pthread uses futex. the implementation consists of simple inlines
there are no implementation files anymore.
urfaceflinger/MessageQueue.cpp
tils/Android.mk
tils/Threads.cpp
tils/futex_synchro.c
64676f3c21a07d650069315572811570cbf8f728 09-Jul-2009 Jason Sams <rjsams@android.com> 1st cut of a3d file loader.
s/RenderScript.h
s/java/RenderScript/android/renderscript/RenderScript.java
s/jni/RenderScript_jni.cpp
s/rs.spec
s/rsFileA3D.cpp
s/rsFileA3D.h
s/rsFileA3DDecls.h
s/rsMesh.cpp
s/rsMesh.h
f31d407ab849b7ac148b9d3a3f42100a2ecaa64c 11-Jul-2009 Mathias Agopian <mathias@google.com> fix [1967226] Donut orientation animation (dimming and blur) is slower than Cupcake
urfaceflinger/Android.mk
urfaceflinger/LayerOrientationAnim.cpp
urfaceflinger/LayerOrientationAnim.h
urfaceflinger/LayerOrientationAnimRotate.cpp
urfaceflinger/LayerOrientationAnimRotate.h
urfaceflinger/OrientationAnimation.cpp
b5af325fb1d21a9295bf3009cc95e5ead4999247 10-Jul-2009 Mike Reed <reed@google.com> rename libsgl/libcorecg to libskia
s/jni/Android.mk
urfaceflinger/Android.mk
679353dab934e3d2ad203f136a3738798e2f3b59 10-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 6742

* changes:
fix [1969200] Uninitialized double passed to Math.sqrt()
cafec0325010926130b03ce7ba50b2b180905e37 10-Jul-2009 Mathias Agopian <mathias@google.com> fix [1969200] Uninitialized double passed to Math.sqrt()
urfaceflinger/DisplayHardware/DisplayHardware.cpp
07e456d871749c256ba94a7333d029344eafbdfb 10-Jul-2009 Mathias Agopian <mathias@google.com> am 4d2dbebf: fix for [1885684] E/SurfaceFlinger( 60): not enough memory for layer bitmap size=4294938624

Merge commit '4d2dbebf3d08209f751585d8cc367369e2f6e32f'

* commit '4d2dbebf3d08209f751585d8cc367369e2f6e32f':
fix for [1885684] E/SurfaceFlinger( 60): not enough memory for layer bitmap size=4294938624
4d2dbebf3d08209f751585d8cc367369e2f6e32f 10-Jul-2009 Mathias Agopian <mathias@google.com> fix for [1885684] E/SurfaceFlinger( 60): not enough memory for layer bitmap size=4294938624
urfaceflinger/SurfaceFlinger.cpp
05dab6f1270213a1a8d776dbc7c92f8d703c10e7 10-Jul-2009 Mathias Agopian <mathias@google.com> fix for [1969185] valgrind errors in new gl stuff
urfaceflinger/MessageQueue.cpp
58e8131631b4598d445303183ee6ea80b7e63038 09-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am be91fdbc: Merge change 6665 into donut

Merge commit 'be91fdbc5c4f2de3a2bb574a98fdfeef44d8cdb5'

* commit 'be91fdbc5c4f2de3a2bb574a98fdfeef44d8cdb5':
Fix resources not being set correctly.
2b479be5db339f4024242a0e1d2d901e70d833ee 09-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 3893da46: Merge change 6614 into donut

Merge commit '3893da46f0a97d59a7687ae2bd71ba855eb5ffe3'

* commit '3893da46f0a97d59a7687ae2bd71ba855eb5ffe3':
Fix issue 1970108: crash in AudioFlinger::isMusicActive()
c916e0616468e74a87cec71cefd26150a108edf1 09-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am fe811d8b: Merge change 6603 into donut

Merge commit 'fe811d8bd0da15f14702968a9c7deb02db7eec9f'

* commit 'fe811d8bd0da15f14702968a9c7deb02db7eec9f':
quick fix; utf8_codepoint_count must be utf8_length
e2bf80fb0bfd944ef45d60bdc469d85734527363 09-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 8a715b4b: Merge change 5510 into donut

Merge commit '8a715b4b791db4390d12e0ded02280592634a424'

* commit '8a715b4b791db4390d12e0ded02280592634a424':
Add useful functions to String8, which enables users to convert between UTF-8 and UTF-32
6c11e73f678a46b0a74c6f1936eebd51dc60f0af 09-Jul-2009 Dianne Hackborn <hackbod@google.com> Fix resources not being set correctly.
tils/ResourceTypes.cpp
4e646338cf1e6f0d31ad0c0a987e32f5c59b4643 09-Jul-2009 Eric Laurent <elaurent@google.com> Fix issue 1970108: crash in AudioFlinger::isMusicActive()

Protected calls to MixerThread::isMusicActive() by AudioFlinger::mLock
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
fe811d8bd0da15f14702968a9c7deb02db7eec9f 09-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 6603 into donut

* changes:
quick fix; utf8_codepoint_count must be utf8_length
361d477957feb07454b93509da0bfd05e9c718a8 09-Jul-2009 Daisuke Miyakawa <dmiyakawa@google.com> quick fix; utf8_codepoint_count must be utf8_length
tils/String8.cpp
8a715b4b791db4390d12e0ded02280592634a424 09-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5510 into donut

* changes:
Add useful functions to String8, which enables users to convert between UTF-8 and UTF-32 It will be used in SQL functions in external/sqlite/android. See https://android-git.corp.google.com/g/Gerrit#change,5511 for example.
6698d16b951370a0cc6aa87bcd2ca91122a57410 09-Jul-2009 Dave Sparks <davidsparks@android.com> resolved conflicts for merge of 04c7d0f8 to master
f05b33b3a1cff40972a735ff1fb4ed6e8bfeaf2a 30-Jun-2009 Daisuke Miyakawa <dmiyakawa@google.com> Add useful functions to String8, which enables users to convert between UTF-8 and UTF-32
It will be used in SQL functions in external/sqlite/android.
See https://android-git.corp.google.com/g/Gerrit#change,5511 for example.

Related internal bug id: 1707173
tils/String8.cpp
59c1a935295cb30c2ba2f759855e89c174b42a07 09-Jul-2009 Dave Sparks <davidsparks@android.com> Add timestamps to video frames to improve A/V sync.
Bug 1927069.
i/Camera.cpp
i/ICameraClient.cpp
03217ae7f86a901f0c1c2c0b64fcf3c9e3ea61dc 07-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am a5188a09: Merge change 6367 into donut

Merge commit 'a5188a09bd20c376b4f0645b0df4c52f8e114e21'

* commit 'a5188a09bd20c376b4f0645b0df4c52f8e114e21':
Add virtual destructor.
a5188a09bd20c376b4f0645b0df4c52f8e114e21 07-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 6367 into donut

* changes:
Add virtual destructor.
7e566a79263dfc07cd1d671b3f1dd1afe2b454ae 07-Jul-2009 Marco Nelissen <marcone@google.com> Add virtual destructor.
udioflinger/AudioBufferProvider.h
fcc5be99e0497f25a12e77622c27b4de30e45b3d 07-Jul-2009 Eric Laurent <elaurent@google.com> am 88e209dc: Fix issue 1743700: AudioTrack: setPlaybackRate can not set the playback rate to twice of the ouputSR

Merge commit '88e209dcf8c2ebddda5c272f46d1bd5478bc639c'

* commit '88e209dcf8c2ebddda5c272f46d1bd5478bc639c':
Fix issue 1743700: AudioTrack: setPlaybackRate can not set the playback rate to twice of the ouputSR
88e209dcf8c2ebddda5c272f46d1bd5478bc639c 07-Jul-2009 Eric Laurent <elaurent@google.com> Fix issue 1743700: AudioTrack: setPlaybackRate can not set the playback rate to twice of the ouputSR

Store sample rate on 32 bits instead of 16 bits in audio_track_cblk_t.
Removed sampleRate() methods from AudioTrack and AudioRecord: replaced by getSampleRate().
AudioTrack::setSampleRate() no returns a status.
udioflinger/AudioFlinger.cpp
94aadce3a266fc63c2ae81e67c847a89c4961ef4 07-Jul-2009 Mathias Agopian <mathias@google.com> trying to fix the sim, I'm not even sure this syntaxe is valid, but my compilo doesn't complain
urfaceflinger/SurfaceFlinger.h
181a9811e49ecd83593f2cd7963ac0127baa7d74 07-Jul-2009 Mathias Agopian <mathias@google.com> should fix sim build
i/Region.cpp
03a9a3449af3e0e79e9bbcd87f8057189ab9e151 06-Jul-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
17ffe1018c506272da45be6b35caf859bc2582f1 06-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 991eec03: Merge change 6252 into donut

Merge commit '991eec03a73f8803d0f8c80b418480ea25293cfb'

* commit '991eec03a73f8803d0f8c80b418480ea25293cfb':
Don't re-parse the framework resources all the time.
78c405178c57bb45e40f1e2839d6a18d91f7f02c 06-Jul-2009 Dianne Hackborn <hackbod@google.com> Don't re-parse the framework resources all the time.

A small optimization to the resource code, to not re-parse the framework
resources every time we build a new AssetManager. Instead, you can now
construct a ResTable from a previously created one... of course, like the
existing code for using the data in-place, you can't delete the original
ResTable until you have deleted the one that has been constructed from it.
tils/Asset.cpp
tils/AssetManager.cpp
tils/ResourceTypes.cpp
fee47b699f51e52d3551c0fdbcc9fc2760a0d837 06-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am c7396025: Merge change 6084 into donut

Merge commit 'c7396025e59524e7ef639fd86fc23123939ee91c'

* commit 'c7396025e59524e7ef639fd86fc23123939ee91c':
Return CAMERA_ERROR_SERVER_DIED to camera app when camera service dies (bug 1956726)
7a91dc11ac3edd101fc06ebbc89cca76314fc538 03-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 2bbb80e1: Merge change 5994 into donut

Merge commit '2bbb80e183c6492689f8b10b2d0f5dfe9872a6ac'

* commit '2bbb80e183c6492689f8b10b2d0f5dfe9872a6ac':
Less logging in some places. More in others.
f780d32fc2081fbf10a5bec19a654465361fc538 03-Jul-2009 Mathias Agopian <mathias@google.com> don't need to link against libsgl
urfaceflinger/Android.mk
urfaceflinger/GPUHardware/GPUHardware.cpp
urfaceflinger/GPUHardware/GPUHardware.h
urfaceflinger/purgatory/GPUHardware/GPUHardware.cpp
urfaceflinger/purgatory/GPUHardware/GPUHardware.h
d763b5d9197e01662cafa376e1227e53e0463a3c 03-Jul-2009 Mathias Agopian <mathias@google.com> get rid of references to MemoryDealer in SurfaceFlinger
urfaceflinger/Layer.h
urfaceflinger/LayerBitmap.cpp
urfaceflinger/LayerBitmap.h
urfaceflinger/LayerBuffer.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
i/ISurfaceComposer.cpp
i/ISurfaceFlingerClient.cpp
i/SurfaceComposerClient.cpp
0926b6184adb9bd1d4a432c7d4de0be58c602cc2 03-Jul-2009 Mathias Agopian <mathias@google.com> forgot to remove those files
urfaceflinger/VRamHeap.cpp
urfaceflinger/VRamHeap.h
359140c171f67b9b29a1beae9743b49d0759414b 03-Jul-2009 Mathias Agopian <mathias@google.com> free gralloc buffers as soon as possible (when a surface is not visible any longer), client who have the buffers still mapped won't crash, btu may see garbage data
urfaceflinger/Layer.cpp
urfaceflinger/LayerBitmap.cpp
urfaceflinger/LayerBitmap.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
ec0ab537a8c2dd78f065ef7299ef2dc83c2c9828 03-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 6140

* changes:
Add support for multitexture and fix allocation ref counting bug in RS. Add plaque to rollo and leave it disabled due to ugly appearance.
4244afa87edf8f2dde0f053f31f39f54c0fa1783 03-Jul-2009 Jason Sams <rjsams@android.com> Add support for multitexture and fix allocation ref counting bug in RS. Add plaque to rollo and leave it disabled due to ugly appearance.
s/java/Rollo/res/raw/rollo.c
s/java/Rollo/src/com/android/rollo/RolloRS.java
s/rsAllocation.cpp
s/rsProgramFragment.cpp
s/rsScriptC.cpp
c7396025e59524e7ef639fd86fc23123939ee91c 02-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 6084 into donut

* changes:
Return CAMERA_ERROR_SERVER_DIED to camera app when camera service dies (bug 1956726)
a1b653d41df9a7999e1dba2a508295671ff6771d 02-Jul-2009 James Dong <jdong@google.com> Return CAMERA_ERROR_SERVER_DIED to camera app when camera service dies (bug 1956726)
i/Camera.cpp
d96e0b0cf14f159d96502a4caf8aa2a33c334a99 02-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 6e1647a2: Merge change 5829 into donut

Merge commit '6e1647a212317f4ee8bcc23948b6621a59172954'

* commit '6e1647a212317f4ee8bcc23948b6621a59172954':
Fix issue #1673793: Theme styles don't apply.
ae78df4b46a9e1c9ccf2b925b85298f58e3d7e54 02-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 6022

* changes:
Update rollo with icon images.
aabd00960f3b98c3c5636d99212343d71956a1d1 02-Jul-2009 Jason Sams <rjsams@android.com> Update rollo with icon images.
s/java/Rollo/res/drawable/browser.png
s/java/Rollo/res/drawable/market.png
s/java/Rollo/res/drawable/photos.png
s/java/Rollo/res/drawable/settings.png
s/java/Rollo/res/raw/rollo.c
s/java/Rollo/src/com/android/rollo/RolloRS.java
s/rsScriptC.cpp
dfe983bd7979ccb1602f29b8f9804c98411d9cd6 02-Jul-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
7f32b426cd6a865ac5e6e3e9fa833e9327fb415a 02-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5992

* changes:
Allocate 16MB for surfaces on Firstone, since 8MB is way to small for our bigger screen.
9a5e3e115fc69181e143bdb9ec455e0f94fbc11f 02-Jul-2009 Joe Onorato <joeo@android.com> Less logging in some places. More in others.
udioflinger/AudioFlinger.cpp
ff80ceb80d294a70e84a5eb5a570c1dcc4d838bd 02-Jul-2009 Mathias Agopian <mathias@google.com> Allocate 16MB for surfaces on Firstone, since 8MB is way to small for our bigger screen.
urfaceflinger/VRamHeap.cpp
7605bf35568998d5094c68407cd72265409c1a3d 02-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5984

* changes:
Update rollo and support functions. Includes mockup of some new ui concepts.
d4b95fd87d2a437afc5154b3a926ca46fd59bafc 02-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5983

* changes:
Begin adding mesh
fdcc14e7a2a514f779e77b49a72a4f1b5ecfec00 02-Jul-2009 Jason Sams <rjsams@android.com> Update rollo and support functions. Includes mockup of some new ui concepts.
s/java/Rollo/res/raw/rollo.c
s/java/Rollo/src/com/android/rollo/RolloRS.java
s/java/Rollo/src/com/android/rollo/RolloView.java
s/rsScriptC.cpp
0795684839b60fc5e7edb14c301e7797b6645d05 01-Jul-2009 Wu-cheng Li <wuchengli@google.com> am b8a10fe4: Allow setPreviewDisplay after startPreview.

Merge commit 'b8a10fe45657f2dcc50cae8a06805f8438a6937e'

* commit 'b8a10fe45657f2dcc50cae8a06805f8438a6937e':
Allow setPreviewDisplay after startPreview.
ed3240ed1ac63c64e6c182a3c05cc7d31565fd46 01-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 58ebdcc0: Merge change 5625 into donut

Merge commit '58ebdcc06eca06741460a7db2be4b79e3865eb88'

* commit '58ebdcc06eca06741460a7db2be4b79e3865eb88':
fix [1947273] the DimLayer causes the whole screen to update during transactions
7c878f3a8379daf21dca6de7aa722ff75328afbe 30-Jun-2009 Jason Sams <rjsams@android.com> Begin adding mesh
s/RenderScript.h
s/java/Film/res/raw/filmstrip.c
s/rsContext.h
s/rsMesh.cpp
s/rsMesh.h
6e1647a212317f4ee8bcc23948b6621a59172954 30-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5829 into donut

* changes:
Fix issue #1673793: Theme styles don't apply.
de7faf658cd40d34c08a98b39477055da8e19172 30-Jun-2009 Dianne Hackborn <hackbod@google.com> Fix issue #1673793: Theme styles don't apply.

It turns out this was not a problem in the resource code at all. Rather,
the system process has a cache of pre-loaded attributes it uses to avoid
continually reloading things as it needs them. Well it turns out this
cache wasn't flushed after a package was uninstalled or a configuration
changed, so you could re-install an app where you change its style resources
so its theme now points to one that is inconsistent in the cache.

This is mostly a problem for developers, where they continually install
new versions of an app where resources have changed. This could possibly
show up when updating an app on a normal phone, although the problem would
eventually correct itself since this cache uses weak references.

Anyway, the cache is now reworked to be flushed appropriately.

This change also includes an update to aapt to be able to dump the
contents of bags in resources.
tils/ResourceTypes.cpp
b8a10fe45657f2dcc50cae8a06805f8438a6937e 23-Jun-2009 Wu-cheng Li <wuchengli@google.com> Allow setPreviewDisplay after startPreview.
i/Camera.cpp
3a6b160a3b52cd96fb383d5ee93c22e5e938e0e2 30-Jun-2009 Mathias Agopian <mathias@google.com> when there is a choice between UPDATE_ON_DEMAND and SWAP_BUFFER optimizations, choose UPDATE_ON_DEMAND which is often more efficient.
urfaceflinger/DisplayHardware/DisplayHardware.cpp
ecfa7ccd4fc3066a4cfd4d84d7de286d95581c78 30-Jun-2009 Mathias Agopian <mathias@google.com> fix a bug that caused artifacts when SWAP_RECTANGLE was enabled
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/SurfaceFlinger.cpp
276826bae2eb6d25c4abb1c5f665d2876c65e50c 30-Jun-2009 Mathias Agopian <mathias@google.com> Region::makeBoundsSelf() efficiently turns a region to its bounds
i/Region.cpp
5fc1b60e7f8b19d7d7a2244c0e1e005c7ed91659 30-Jun-2009 Mathias Agopian <mathias@google.com> don't use a 1/4th of the screen size texture for the dim layer

we can't use a texture of 1/4th of the screen for the dim layer, because the mdp internal input resultion is alwyas integers and for very small blits of a couple pixels the scale factor can get way out of range, for instance for a 7 pixels source, the scale factor would be either 7 (7/1) or 3.5 (7/2) instead of 4 (7/1.75). This caused the mdp to fail in some cases and revert to software. we now always use a texture of the actual screen size, so the problem will never happen. This burns 300KB of pmem instead of 21KB. On devices with a larger screen we might want to use a smaller texture and tile it by hand.
urfaceflinger/LayerDim.cpp
bacc51026e8c95f34830defdfc1be4b359abf664 30-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am d09f86ce: Merge changes 5548,5549 into donut

Merge commit 'd09f86ce175fad6ddbd446363f327dfa0575a1d2'

* commit 'd09f86ce175fad6ddbd446363f327dfa0575a1d2':
Better (and less) logging from backup.
Add an extra null terminator. String8::unlockBuffer is
f6ff591decdea6299aab1a5b6f95917800571de4 30-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 72eb0aca: Merge change 5483 into donut

Merge commit '72eb0acad5cffc57ce5006f6deab29ee259e461e'

* commit '72eb0acad5cffc57ce5006f6deab29ee259e461e':
Expand support for different screen sizes.
0aed7e97a3efbeec23a4aa301df03036a67f8ea3 28-Jun-2009 Mathias Agopian <mathias@google.com> fix [1947273] the DimLayer causes the whole screen to update during transactions
urfaceflinger/SurfaceFlinger.cpp
2f157b19199a4a81094d5c73cc668146c6071928 28-Jun-2009 Mathias Agopian <mathias@google.com> fix [1947273] the DimLayer causes the whole screen to update during transactions
urfaceflinger/SurfaceFlinger.cpp
8c9687ae291a1e0a63d4236069066284f56192cd 27-Jun-2009 Mathias Agopian <mathias@google.com> fix an update bug with SHOW_UPDATE debug feature. Fix a problem with the debug binder codes too
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/SurfaceFlinger.cpp
d09f86ce175fad6ddbd446363f327dfa0575a1d2 26-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge changes 5548,5549 into donut

* changes:
Better (and less) logging from backup.
Add an extra null terminator. String8::unlockBuffer is supposed to be doing this, but it's not and I can't figure out why. This makes BackupHelperDispatcher able to read the keys correctly.
568bc32344dce841c8f6958f1a65ff839a1b64c0 26-Jun-2009 Joe Onorato <joeo@android.com> Better (and less) logging from backup.
tils/BackupData.cpp
tils/BackupHelpers.cpp
723738cfaec3dd7b0fe152c872c41bebf94074c4 26-Jun-2009 Dianne Hackborn <hackbod@google.com> Expand support for different screen sizes.

Applications can now declare that they support small, normal, or
large screens. Resource selection can also be done based on these
sizes. By default, pre-Donut apps are false for small and large,
and Donut or later apps are assumed to support all sizes. In either
case they can use <supports-screens> in their manifest to declare
what they actually support.
tils/ResourceTypes.cpp
8f78faa1ef7e2436d11e4c04be67b5a95bf126b9 26-Jun-2009 Mathias Agopian <mathias@google.com> add support for out-of-range copybit scaling. camera capture is in color again
urfaceflinger/LayerBuffer.cpp
dafb08dcd5c02ad18e91597187d90a1ba90e8096 26-Jun-2009 Mathias Agopian <mathias@google.com> use 1/16 the size (20KB) for the dim texture in the copybit/msm case
urfaceflinger/LayerDim.cpp
68eeb80a54f411b9a8c928cc193de731adddb6c3 26-Jun-2009 Mathias Agopian <mathias@google.com> use copybit for eglSwapBuffers() copy-back operations
urfaceflinger/LayerBuffer.cpp
1f7300818fae32dcef5a5387b04c8f304b5e1cd5 26-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am c44989d6: Merge change 5350 into donut

Merge commit 'c44989d6c7bcc761fb37f54fd37aac2070ba8e5e'

* commit 'c44989d6c7bcc761fb37f54fd37aac2070ba8e5e':
move ui/Time.cpp to core/jni, since this is the only place it is used
864c0d50cda714d73fa70e3600ec36b5db8a835a 25-Jun-2009 Mathias Agopian <mathias@google.com> move ui/Time.cpp to core/jni, since this is the only place it is used
i/Android.mk
i/Time.cpp
26c28b16f3464eeb98b091b915ccf494ac31c35f 25-Jun-2009 Mathias Agopian <mathias@google.com> make use of new eglGetRenderBufferANDROID extension to clean-up a bit a few hacks added recently
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/DisplayHardware/DisplayHardware.h
urfaceflinger/LayerBuffer.cpp
i/FramebufferNativeWindow.cpp
2eab9d8d7034ef05cead1ee26667a75061b5f0aa 25-Jun-2009 Mathias Agopian <mathias@google.com> copybit now uses a native_handle_t* instead of a fd/offset
urfaceflinger/Android.mk
urfaceflinger/LayerBuffer.cpp
cbc4c9f8d56317b2fe8964c15c9785ebeef98ca7 24-Jun-2009 Mathias Agopian <mathias@google.com> hack copybit back in for video playback on msm7k. we have h/w accelerated video again
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/DisplayHardware/DisplayHardware.h
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
i/FramebufferNativeWindow.cpp
f31868e59fbf59a8d479587c80b648fb37a166fc 25-Jun-2009 Mathias Agopian <mathias@google.com> merge master in master_gl
60965876d81bc7c327a6fd8360b46a85e3d9f4de 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am df65b60c: Merge change 5243 into donut

Merge commit 'df65b60ce33e5a56815864f8f0713e25378fa649'

* commit 'df65b60ce33e5a56815864f8f0713e25378fa649':
Only report "unknown metadata" once per restore helper
9c73a336c121ae2a1f608700b45d84fed6c49eba 25-Jun-2009 Christopher Tate <ctate@google.com> am 54118adb: Put back LOGP -> printf in the backup helper code

Merge commit '54118adb3766fdf73a409102b88d7494bb6889a3'

* commit '54118adb3766fdf73a409102b88d7494bb6889a3':
Put back LOGP -> printf in the backup helper code
95cb30d2e99393023e0df8f804b5856513d315aa 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 0e034e5a: Merge change 5162 into donut

Merge commit '0e034e5a9a71e5e196baff630dca796a0e3ed3e2'

* commit '0e034e5a9a71e5e196baff630dca796a0e3ed3e2':
Preserve file access mode when backing up / restoring files
63bcb79dd437e70593b63cc5a87baab3251c2183 24-Jun-2009 Christopher Tate <ctate@google.com> Only report "unknown metadata" once per restore helper

Also removes the auto-free object, replacing it with direct memory manipulation.
tils/BackupHelpers.cpp
e5b3607a0a7f3eebac82595624efe8d5b07f0a61 24-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am eaa89f74: Merge change 5172 into donut

Merge commit 'eaa89f74c04c0f10d5f3f8190b457087537bff2e'

* commit 'eaa89f74c04c0f10d5f3f8190b457087537bff2e':
Remove deprecated callback function support.
2387208c9ecb5dba01bd933312c80c5133bd3c41 24-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 3d7b8d1a: Merge change 5158 into donut

Merge commit '3d7b8d1aa6a362292f56defbe8fb2d5653f79282'

* commit '3d7b8d1aa6a362292f56defbe8fb2d5653f79282':
Use a ref-counted callback interface for Camera.
54118adb3766fdf73a409102b88d7494bb6889a3 24-Jun-2009 Christopher Tate <ctate@google.com> Put back LOGP -> printf in the backup helper code
tils/BackupHelpers.cpp
0e034e5a9a71e5e196baff630dca796a0e3ed3e2 24-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5162 into donut

* changes:
Preserve file access mode when backing up / restoring files
b1dffc48ca8aec61d99391495b3f436d0e8b16dd 24-Jun-2009 Dave Sparks <davidsparks@android.com> Remove deprecated callback function support.
This is the last of a 3-part change to modify the camera to use
a more streamlined callback interface. This change removes the
old code.
Bug 1884362
i/Camera.cpp
5e27115995c4506dddf4f1271effd4fb4c935ad3 24-Jun-2009 Dave Sparks <davidsparks@android.com> Use a ref-counted callback interface for Camera.
This allows the camera service to hang onto the callback interface
until all callbacks have been processed. This prevents problems
where pending callbacks in binder worker threads are processed
after the Java camera object and its associated native resources
have been released.
Bug 1884362
i/Camera.cpp
c6603951d45fc9b0d1776fec9444b6f31af92840 24-Jun-2009 Mathias Agopian <mathias@google.com> fix a bug causing push-buffer surfaces' identity to be garbage, which resulted in some attributes (size/pos) to fail to be set
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBuffer.cpp
999543ba26d10ff9879144965d0c0abcb400636a 24-Jun-2009 Mathias Agopian <mathias@google.com> checkpoint. bring back video/camera
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
fbb92385f2fb0ae1146bb8f3d73547d90bda6db1 24-Jun-2009 Christopher Tate <ctate@google.com> Preserve file access mode when backing up / restoring files

This change adds a fixed-size metadata block at the head of each file's content
entity. The block is versioned, and fixed-size on the theory that it might be
nice to be able to recover the content (if not the full metadata) of the files
if we're ever confronted with data backed up some hypothetical future helper
that stored expanded metadata.

The net effect is that now on restore, we assign the same access mode to the
file that it originally had when backed up.

Also, some of the code was failing to properly free transient heap-based buffers
when it encountered errors. This has been fixed with the addition of a tiny
stack-based object whose job it is to free() its designated pointer from its
destructor.
tils/BackupHelpers.cpp
9bfd5f495bdc0d704d85fa95b67845099d9b9f48 23-Jun-2009 Christopher Tate <ctate@google.com> am 11b15779: Add file mode to the file-backup saved state blobs

Merge commit '11b157790234d3d2f116ce4c7ed1d3d00fb78bc3'

* commit '11b157790234d3d2f116ce4c7ed1d3d00fb78bc3':
Add file mode to the file-backup saved state blobs
11b157790234d3d2f116ce4c7ed1d3d00fb78bc3 23-Jun-2009 Christopher Tate <ctate@google.com> Add file mode to the file-backup saved state blobs

This change puts the file's access mode into the saved-state blob used by the
file backup helpers. The tests have been updated for the new blob content
format.

What this change *doesn't* do is actually backup/restore the file mode. This
change is a prerequisite for that, but mode preservation in backup/restore will
require adding metadata to the backup data stream itself, so will be approached
a bit more carefully.

(Also fixed one outright bug in the test program: ReadEntityData() had been
changed to return a ssize_t union of either a byte-count or a negative number
indicating error, but the test program was still assuming that nonzero == error,
and was spuriously failing.)
tils/BackupHelpers.cpp
494bb2148086a30f14b791b71fdb0aa2100ca1b8 23-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5097

* changes:
Cleanup logging and fix a startup race condition that manifested on Firestone.
f29ca50d80e3dc379de1642e85b7963175b2ca38 23-Jun-2009 Jason Sams <rjsams@android.com> Cleanup logging and fix a startup race condition that manifested on Firestone.
s/java/RenderScript/android/renderscript/RSSurfaceView.java
s/java/RenderScript/android/renderscript/RenderScript.java
s/jni/RenderScript_jni.cpp
s/rsAllocation.cpp
s/rsContext.cpp
s/rsContext.h
s/rsElement.cpp
s/rsLocklessFifo.cpp
s/rsObjectBase.cpp
s/rsProgramFragment.cpp
s/rsProgramVertex.cpp
s/rsScriptC.cpp
s/rsThreadIO.cpp
s/rsTriangleMesh.cpp
s/rsType.cpp
s/rsUtils.h
cefdd03d934ccc92701ec3ec9f31c75b355a1482 23-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5039

* changes:
Fix 3 bugs in fountain test. Correctly generate the last mip level of a non-square mip chain. Default the background to not blended and disable dither/depth.
b2e051a9661d9d3fd142c8d49c80cf72982e0a35 23-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5015

* changes:
Cleanup includes so Log.h can use the tag. rsUtils.h is the file that should be included everywhere and contain rs global defines.
746762cba32fc8c741c33af75842d11e08759175 23-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4984

* changes:
All light source objects.
f8001669ba7d9b3d0e097c7124e670f13374a6c7 23-Jun-2009 Jason Sams <rjsams@android.com> Fix 3 bugs in fountain test. Correctly generate the last mip level of a non-square mip chain. Default the background to not blended and disable dither/depth.
s/java/Fountain/res/raw/fountain.c
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/rsType.cpp
3142f4f40ba745ecd3cd9f1839adaebc1f20fede 23-Jun-2009 Mathias Agopian <mathias@google.com> update renderscript to master_gl APIs
s/jni/RenderScript_jni.cpp
s/rsContext.cpp
s/rsContext.h
4b962e57a9a1fa923283f2d76855c1c68449564f 23-Jun-2009 Jason Sams <rjsams@android.com> Cleanup includes so Log.h can use the tag. rsUtils.h is the file that should be included everywhere and contain rs global defines.
s/jni/RenderScript_jni.cpp
s/rsAllocation.cpp
s/rsComponent.h
s/rsContext.cpp
s/rsContext.h
s/rsDevice.h
s/rsElement.h
s/rsLight.cpp
s/rsLight.h
s/rsLocklessFifo.cpp
s/rsLocklessFifo.h
s/rsMatrix.cpp
s/rsObjectBase.cpp
s/rsProgramFragment.cpp
s/rsProgramFragmentStore.cpp
s/rsProgramVertex.cpp
s/rsSampler.cpp
s/rsSampler.h
s/rsScriptC.cpp
s/rsThreadIO.cpp
s/rsThreadIO.h
s/rsTriangleMesh.cpp
s/rsTriangleMesh.h
s/rsUtils.h
bba134c8a1dcfe0c8473307a95899a02c9553504 23-Jun-2009 Jason Sams <rjsams@android.com> All light source objects.
s/Android.mk
s/RenderScript.h
s/RenderScriptEnv.h
s/java/Film/src/com/android/film/FilmRS.java
s/java/RenderScript/android/renderscript/RenderScript.java
s/jni/RenderScript_jni.cpp
s/rs.spec
s/rsContext.h
69d13f6680c19a39a849484403495daf388416ea 22-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 72be4049: Merge change 4910 into donut

Merge commit '72be40490951d3f9d0ada16fcf5288d0c3306d88'

* commit '72be40490951d3f9d0ada16fcf5288d0c3306d88':
fix warnings that will show up with GCC 4.4 (in master)
72be40490951d3f9d0ada16fcf5288d0c3306d88 22-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4910 into donut

* changes:
fix warnings that will show up with GCC 4.4 (in master)
4527acb0c39258792ae55604cb4d71006bf8d938 22-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 856dd8a6: Merge change 4952 into donut

Merge commit '856dd8a60a70a5b7dca2bf2114872ce063e2ad60'

* commit '856dd8a60a70a5b7dca2bf2114872ce063e2ad60':
Helper API cleanup. Allows multiple helpers to function,
06290a4bb9b280fa14a2bbeb2d3ceb09396a78c3 19-Jun-2009 Joe Onorato <joeo@android.com> Helper API cleanup. Allows multiple helpers to function,
because they'll always go in the same order, and this lets
us not have to write headers to keep them paired.
tils/BackupData.cpp
5f91097b26f036a45e32f4e4cae3e9e135a6042d 22-Jun-2009 Mathias Agopian <mathias@google.com> fix warnings that will show up with GCC 4.4 (in master)
tils/ResourceTypes.cpp
211648301a524926f285858d172f6a2df776a3f3 20-Jun-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
ba0b11bebecfd530f77b2c8e4f43c3e24ea549f9 20-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4881

* changes:
implement modeview matrix sliding from within scripts.
af49c744d0fc7c9ced4a74afda1bbcd08440bdca 20-Jun-2009 Jason Sams <rjsams@android.com> implement modeview matrix sliding from within scripts.
s/java/Film/AndroidManifest.xml
s/java/Film/res/raw/filmstrip.c
s/java/Film/src/com/android/film/FilmRS.java
s/java/Film/src/com/android/film/FilmView.java
s/rsScriptC.cpp
f73bbd042367b65780316d2335784686dedd0459 20-Jun-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
6edf5af578c1ab1fcd44b7c08ca371456e4b7430 20-Jun-2009 Mathias Agopian <mathias@google.com> fix a memory corruption where a SF Client could be used after it's been destroyed
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBlur.cpp
urfaceflinger/LayerBlur.h
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
urfaceflinger/LayerDim.cpp
urfaceflinger/LayerDim.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
fc68623c03439db95401a18a435dbc491cd7f6fd 20-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 1585bd24: Merge change 4828 into donut

Merge commit '1585bd24c10d16351f89e32dddbfa799f18db6bd'

* commit '1585bd24c10d16351f89e32dddbfa799f18db6bd':
Report densities in badging, debugging for nine patch bug.
c8fb5b1979da4829e1486e6a1008c06c979b94b0 20-Jun-2009 Mathias Agopian <mathias@google.com> release the last reference to surfaces explicitely instead of letting it go implicitely when the message is destroyed
urfaceflinger/SurfaceFlinger.cpp
301e09a7308555193f46fb3ef0ce7212e499bde7 20-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4843

* changes:
checkpoint filmstrip, implemented TLS.
0697267dbc044fb45012d7bd74696395fff932eb 20-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4719

* changes:
Fix two minor issues. Rename launchID to launchIndex and make util class Matrix public for apps to use.
462d11b880cba72584c135397c0a82618ab63217 20-Jun-2009 Jason Sams <rjsams@android.com> checkpoint filmstrip, implemented TLS.
s/RenderScriptEnv.h
s/java/Film/Android.mk
s/java/Film/AndroidManifest.xml
s/java/Film/res/raw/filmimage.c
s/java/Film/res/raw/filmstrip.c
s/java/Film/src/com/android/film/Film.java
s/java/Film/src/com/android/film/FilmRS.java
s/java/Film/src/com/android/film/FilmStripMesh.java
s/java/Film/src/com/android/film/FilmView.java
s/java/Fountain/res/raw/fountain.c
s/rsContext.cpp
s/rsContext.h
s/rsScriptC.cpp
s/rsScriptC.h
e17086ba346009a26cc2299b133a0fe602acb6ec 20-Jun-2009 Dianne Hackborn <hackbod@google.com> Report densities in badging, debugging for nine patch bug.

The aapt tool now reports all available densities like it already did
for locales. Also this includes more resource data output, which I
was using to examine bug #1867049 (which at this point I am unable to
reproduce).
tils/ResourceTypes.cpp
2d9c39d6e1db86539a4b4b13d918009bcc9ccd6f 19-Jun-2009 Jason Sams <rjsams@android.com> Fix two minor issues. Rename launchID to launchIndex and make util class Matrix public for apps to use.
s/RenderScriptEnv.h
s/java/RenderScript/android/renderscript/Matrix.java
49eb3301c78a104aad47149423aae92bf39e6800 19-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am c6282977: Merge change 4718 into donut

Merge commit 'c6282977180c220b1a68c23a328e7d75a11963ab'

* commit 'c6282977180c220b1a68c23a328e7d75a11963ab':
Fix sim-eng build and simplify previous lcd-density related patch
3c08a446c5b4f2682da1d8461bd1ed94060c29dc 19-Jun-2009 David 'Digit' Turner <digit@google.com> Fix sim-eng build and simplify previous lcd-density related patch
urfaceflinger/DisplayHardware/DisplayHardware.cpp
f923ed6ff76a0fd022bcc83e748e82266ba4ed1b 19-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 5502f04c: Merge change 4709 into donut

Merge commit '5502f04c1dcf2b1918858bacb99fb0480a711707'

* commit '5502f04c1dcf2b1918858bacb99fb0480a711707':
backup stuff
1c14776a13546fc2642baa251c8f1b7c545b0272 19-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 16ce3504: Merge change 4708 into donut

Merge commit '16ce3504c5bf98d95d5c36001f755bb4b15253c9'

* commit '16ce3504c5bf98d95d5c36001f755bb4b15253c9':
Make RestoreHelper and friends also write out the snapshot state.
9cc88529e4cbf54df3eed968666472d3fa658d13 19-Jun-2009 Mathias Agopian <mathias@google.com> implement dimming with a texture on msm7k so it uses copybit
urfaceflinger/Android.mk
urfaceflinger/LayerDim.cpp
urfaceflinger/LayerDim.h
urfaceflinger/SurfaceFlinger.h
5d605dc56b036232e885f6ec36b888b729673060 19-Jun-2009 Joe Onorato <joeo@android.com> backup stuff
tils/BackupData.cpp
tils/BackupHelpers.cpp
d2d9ceb7305d593c1b767bbb05de0082a9af4109 18-Jun-2009 Joe Onorato <joeo@android.com> Make RestoreHelper and friends also write out the snapshot state.
tils/BackupHelpers.cpp
0c7b07a00324b45c22618783903860f469ad6141 19-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4692

* changes:
Replace spins with proper pthread conditions.
5f7fc27dce3f0ea0ce7532ee8ecd8a2cd01ec47b 19-Jun-2009 Jason Sams <rjsams@android.com> Replace spins with proper pthread conditions.
s/rsContext.cpp
s/rsLocklessFifo.cpp
s/rsLocklessFifo.h
s/rsThreadIO.cpp
s/rsThreadIO.h
e9c1970bbfb1da56e9ff4c25556fbb061265a29c 19-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am b1cdb648: Merge change 4565 into donut

Merge commit 'b1cdb64877ebd3b8c5182913ff02edd8b54a6982'

* commit 'b1cdb64877ebd3b8c5182913ff02edd8b54a6982':
Allow the qemu.sf.lcd_density property to override the value of ro.sf.lcd_density
b1cdb64877ebd3b8c5182913ff02edd8b54a6982 19-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4565 into donut

* changes:
Allow the qemu.sf.lcd_density property to override the value of ro.sf.lcd_density
2a578ae518ff3d8a2d4768b3d190e4702509e82c 18-Jun-2009 David 'Digit' Turner <digit@google.com> Allow the qemu.sf.lcd_density property to override the value of ro.sf.lcd_density

ro.sf.lcd_density is usually defined in the build.prop file which is parsed by init
before anything else. Since its name begins with "ro.", this property is write-once
and cannot later be modified, e.g. in /system/etc/init.goldfish.sh.

In other words, you cannot use "emulator -prop ro.sf.lcd_density=<value>", since
it is impossible to override the value defined in build.prop

This patch modifies the system to recognize "qemu.sf.lcd_density" as an override
value, which can be set with "emulator -prop qemu.sf.lcd_density=<value>", forcing
a specific density.

A later patch will allow the emulator to automatically set this property depending
on AVD hardware configuration settings.
urfaceflinger/DisplayHardware/DisplayHardware.cpp
6f8b5c12d3a3a02c5d38e3f54117cb6d65e0d4a6 18-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am de72697b: Merge change 4524 into donut

Merge commit 'de72697b771d33738c5f9d6c28087504e0796622'

* commit 'de72697b771d33738c5f9d6c28087504e0796622':
FileRestoreHelper and RestoreHelperDispatcher work.
253e8e34b323f05bb7d5fdc8591bdaadbab55dd6 18-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4533

* changes:
Implement default programs and implement defaults and parents for imports.
9c54bdbf458e3c9433d237ae71cf47c4ec47d852 18-Jun-2009 Jason Sams <rjsams@android.com> Implement default programs and implement defaults and parents for imports.
s/java/Fountain/res/raw/fountain.c
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/rsContext.cpp
s/rsContext.h
s/rsMatrix.cpp
s/rsMatrix.h
s/rsProgramFragment.cpp
s/rsProgramFragment.h
s/rsProgramFragmentStore.cpp
s/rsProgramFragmentStore.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsScriptC.cpp
efd0fab04b96d7ab0c1d8bf3b79397c8621e31c5 18-Jun-2009 Joe Onorato <joeo@android.com> FileRestoreHelper and RestoreHelperDispatcher work.
tils/BackupData.cpp
251c89c0a7502f4286f2484a77b685ddfe2b39d2 18-Jun-2009 Joe Onorato <joeo@android.com> am 5f15d151: checkpoint BackupDatAInput / RestoreHelper

Merge commit '5f15d151b5101fadfe6cba1e8f4aa6367e8c603e'

* commit '5f15d151b5101fadfe6cba1e8f4aa6367e8c603e':
checkpoint BackupDatAInput / RestoreHelper
5f15d151b5101fadfe6cba1e8f4aa6367e8c603e 16-Jun-2009 Joe Onorato <joeo@android.com> checkpoint BackupDatAInput / RestoreHelper
tils/BackupData.cpp
tils/BackupHelpers.cpp
368d9c3ae42c6598efdb8e7e6a449d796b88fcd2 17-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4426

* changes:
Switch fountain to use ProgramVertex rather than hard coded camers in scripts. Remove camera code from scripts.
b37c0a5db65cd8b72cac6a3250faddd1aecb722e 17-Jun-2009 Jason Sams <rjsams@android.com> Switch fountain to use ProgramVertex rather than hard coded camers in scripts. Remove camera code from scripts.
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/RenderScript/android/renderscript/Matrix.java
s/java/RenderScript/android/renderscript/RenderScript.java
s/java/Rollo/res/raw/rollo.c
s/java/Rollo/src/com/android/rollo/RolloMesh.java
s/java/Rollo/src/com/android/rollo/RolloRS.java
s/jni/RenderScript_jni.cpp
s/rs.spec
s/rsContext.cpp
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsScript.h
s/rsScriptC.cpp
69f066c8fc42b9f0acc5c41f8ffd972f8d6d0584 16-Jun-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
151e859e0fc3a930bdf6d270d275e69e9eba0cbf 16-Jun-2009 Mathias Agopian <mathias@google.com> new Permission class used to improve permission checks speed (by caching results)
inder/Android.mk
inder/IServiceManager.cpp
inder/Permission.cpp
urfaceflinger/LayerBase.cpp
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
d1ac159d7153b387e44dcbcabe50e346d0eae1de 16-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4289

* changes:
Bug fixes. TriangleMesh now ref-counts, implement missing element formats, add missing modes for program vertex. Add matrix support classes. Add test app rollo
0826a6f90f049bf94fc39fb23ad3a736a14b96eb 16-Jun-2009 Jason Sams <rjsams@android.com> Bug fixes. TriangleMesh now ref-counts, implement missing element formats, add missing modes for program vertex. Add matrix support classes. Add test app rollo
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/RenderScript/android/renderscript/Matrix.java
s/java/RenderScript/android/renderscript/ProgramVertexAlloc.java
s/java/RenderScript/android/renderscript/RenderScript.java
s/java/Rollo/Android.mk
s/java/Rollo/AndroidManifest.xml
s/java/Rollo/res/raw/rollo.c
s/java/Rollo/src/com/android/rollo/Rollo.java
s/java/Rollo/src/com/android/rollo/RolloMesh.java
s/java/Rollo/src/com/android/rollo/RolloRS.java
s/java/Rollo/src/com/android/rollo/RolloView.java
s/jni/RenderScript_jni.cpp
s/rs.spec
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsTriangleMesh.h
daf701fa6250ae89ad93e2e41127e0f676a322a5 15-Jun-2009 Christopher Tate <ctate@google.com> am 2fdd428e: Fix some backup reader/writer issues; make local transport do backup

Merge commit '2fdd428e0f18384160f7c38ce3a2cd9ba7e7b2c2'

* commit '2fdd428e0f18384160f7c38ce3a2cd9ba7e7b2c2':
Fix some backup reader/writer issues; make local transport do backup
Fix the jni initializer.
Add RestoreFileHelper, BackupDataInput, and add java wrappers for the methods on BackupDataOutput.
Fix bug #1812041: activity manager crash with bad args.
Journal backup requests so that they won't be lost in a crash
Fix data connection issues.
1cf587496fcb1d652bab9fc6792fb106b6fefaa4 12-Jun-2009 Joe Onorato <joeo@android.com> Add RestoreFileHelper, BackupDataInput, and add java wrappers for the methods on BackupDataOutput.
tils/BackupData.cpp
bf85d63cb8858432ff845250fdaffdb556d2ef1b 12-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 78f0f8cb: Merge changes 3953,3954 into donut

Merge commit '78f0f8cb2efe9410127c39201e240f6d438eb53c'

* commit '78f0f8cb2efe9410127c39201e240f6d438eb53c':
Make the file backup helper not crash if a file you requested
Fix SharedPrefsBackupHelper so it doesn't hard code the paths to the files.
e19476214a2fe718c82461f54e6b56cee7faa5f4 12-Jun-2009 Mathias Agopian <mathias@google.com> protect ANDROID specific egl extension with #define
urfaceflinger/DisplayHardware/DisplayHardware.cpp
ce88cb15b52998e16c3ba548a4ec49117a835e21 11-Jun-2009 Joe Onorato <joeo@android.com> Make the file backup helper not crash if a file you requested
can't be stated. This means you don't need to know if the files
you are backing up exist or not -- we'll figure it out for you.
tils/BackupHelpers.cpp
31ff7a366fecc6b5570a9ee970e618e27f730846 11-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3952

* changes:
Split FountainView into View and RS parts. Beging adding ProgramVertex to the java api. It was already implemented in native.
1fe9b8c3bdc55e624edc1a69c3f3f0b9e90af1e4 11-Jun-2009 Jason Sams <rjsams@android.com> Split FountainView into View and RS parts. Beging adding ProgramVertex to the java api. It was already implemented in native.
s/java/Fountain/res/raw/fountain.c
s/java/Fountain/src/com/android/fountain/FountainRS.java
s/java/Fountain/src/com/android/fountain/FountainView.java
s/java/RenderScript/android/renderscript/RenderScript.java
s/jni/RenderScript_jni.cpp
23ecae3bbb60c5af940f3a22170d75eb6ac05b69 11-Jun-2009 Joe Onorato <joeo@android.com> Fix SharedPrefsBackupHelper so it doesn't hard code the paths to the files.

This took quite a bit of refactoring.
tils/BackupHelpers.cpp
43b605d6820a699be9bf6ed4617793b54ae4bfb2 11-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3850

* changes:
Fix bug with bad conversion of java strings to C strings for object names. Update test app to test object defines.
bcf3e6a22026e9f604ea5cb8d53a930c29c240ea 11-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3849

* changes:
Fix build error due to bad path generation in makefile for generated tools. Implemented by JoeO
d5680f9ba95ec7ce212e8025774914e79982a1ee 11-Jun-2009 Jason Sams <rjsams@android.com> Fix bug with bad conversion of java strings to C strings for object names. Update test app to test object defines.
s/java/Fountain/res/raw/fountain.c
s/java/Fountain/src/com/android/fountain/FountainView.java
s/jni/RenderScript_jni.cpp
s/rs.spec
s/rsContext.cpp
s/rsContext.h
s/rsObjectBase.cpp
s/rsObjectBase.h
s/rsScriptC.cpp
196ac850afc2382c901d3866a6e9bd95093893b9 11-Jun-2009 Jason Sams <rjsams@android.com> Fix build error due to bad path generation in makefile for generated tools.
Implemented by JoeO
s/Android.mk
a10cb5a344c23a3dc2aa6fd6ab42e5880c67c626 11-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3808

* changes:
Split renderscript java code from test apps. Update makefiles.
94d8e90ad78ee1dbc0efa315117688abd126ae55 11-Jun-2009 Jason Sams <rjsams@android.com> Split renderscript java code from test apps. Update makefiles.
s/Android.mk
s/java/Fountain/Android.mk
s/java/Fountain/src/com/android/fountain/Fountain.java
s/java/Fountain/src/com/android/fountain/FountainView.java
s/java/Fountain/src/com/android/fountain/RSSurfaceView.java
s/java/Fountain/src/com/android/fountain/RenderScript.java
s/java/RenderScript/Android.mk
s/java/RenderScript/android/renderscript/RSSurfaceView.java
s/java/RenderScript/android/renderscript/RenderScript.java
s/jni/Android.mk
s/jni/RenderScript_jni.cpp
297ba9f5c412456ba0efd4cfe8031c0b3f3d067c 11-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3776

* changes:
Add named objects and implement support for ProgramFragmentStore and ProgramFragment to be used by name in scripts.
3eaa338e11a3b0d6b87d705e5bb95625e82347bd 11-Jun-2009 Jason Sams <rjsams@android.com> Add named objects and implement support for ProgramFragmentStore and ProgramFragment to be used by name in scripts.
s/java/Fountain/res/raw/fountain.c
s/java/Fountain/src/com/android/fountain/FountainView.java
s/java/Fountain/src/com/android/fountain/RenderScript.java
s/jni/RenderScript_jni.cpp
s/rs.spec
s/rsContext.cpp
s/rsContext.h
s/rsObjectBase.cpp
s/rsObjectBase.h
s/rsProgramFragment.cpp
s/rsProgramFragment.h
s/rsProgramFragmentStore.cpp
s/rsProgramFragmentStore.h
s/rsProgramVertex.cpp
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC.h
d5ac1ae36b4e096eb97984334f86d0c68abea2f7 06-May-2009 Jaikumar Ganesh <jaikumar@google.com> Framework changes for bluez4.

Changes in the Bluetooth JNI calls and framework functions
for Bluez4.
udioflinger/Android.mk
280412fa2ce81aa896b6ede3ba39decf2ab25b0e 09-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3601

* changes:
checkpoint pragma support. Includes more cleanup of script enviroment storage to keep the env settings in the base and only the per language state in ScriptC.
da423d8479a2cefb456a03d7dc550e74e473acf4 09-Jun-2009 Jason Sams <rjsams@android.com> checkpoint pragma support. Includes more cleanup of script enviroment storage to keep the env settings in the base and only the per language state in ScriptC.
s/java/Fountain/res/raw/fountain.c
s/rsContext.cpp
s/rsContext.h
s/rsObjectBase.h
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC.h
5999cd7313891b3ab21e6a954c1be54f51035139 09-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3535

* changes:
Move placement of script enviroment data to base.
928f5cf2870177abd715e1dfb81da6ac1fe3e845 09-Jun-2009 Jason Sams <rjsams@android.com> Move placement of script enviroment data to base.
s/rsContext.cpp
s/rsScript.cpp
s/rsScript.h
s/rsScriptC.h
f87e8969552805825ce874614da6f2e31fffcac5 09-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3485

* changes:
Fix build issue and ref count bug with scripts.
3a833d8e0f5e1f09a9e276d0f8faf18f7ab86e27 09-Jun-2009 Jason Sams <rjsams@android.com> Fix build issue and ref count bug with scripts.
s/rsContext.cpp
s/rsScriptC.cpp
s/rsScriptC.h
7087c0eac2fbd63470ae40fff9d8fbbe738ac28e 06-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3386

* changes:
Move call to compiler from jni to core library code.
39ddc950c9064129ead5de04b200106c0659f937 06-Jun-2009 Jason Sams <rjsams@android.com> Move call to compiler from jni to core library code.
s/jni/RenderScript_jni.cpp
s/rs.spec
s/rsScriptC.cpp
s/rsScriptC.h
51c8a3e00e6cffe42d25d1ac87d417e925d8a84d 06-Jun-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
e583a4ea8c90105eee9b408d39bca3a4af6a2569 06-Jun-2009 Mathias Agopian <mathias@google.com> get rid of LogSocket which wasn't even implemented (enabled)
tils/Android.mk
tils/LogSocket.cpp
55e3d60da5626752ffe1d15150d35ccb8fa644e7 05-Jun-2009 Mathias Agopian <mathias@google.com> break dependency on utils/ZipEntry.h and utils/ZipFile.h, get rid of inet_address.h and Socket.h which were not used
tils/Android.mk
tils/InetAddress.cpp
tils/Socket.cpp
tils/ZipEntry.cpp
tils/ZipFile.cpp
79525264e5a594f9d99ef7ca0b6ac8e8f47a6ac6 05-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3284

* changes:
rename string_array.h to StringArray.h and move the implementation from the header file to a new cpp file.
8ed6beb515460001a0f5ee91b874289fbb053768 05-Jun-2009 Mathias Agopian <mathias@google.com> rename string_array.h to StringArray.h and move the implementation from the header file to a new cpp file.

StringArray is used in two places in framework/base and in the Sim. Ideally we should get rid of it and use Vector<String8> instead of creating new code.
tils/Android.mk
tils/StringArray.cpp
3f0c72ab4b3b950ecb29995c07b7af4f71582a7a 05-Jun-2009 Christopher Tate <ctate@google.com> am 0032ce80: Fix back_up_files() error detection when opening/CRCing the file

Merge commit '0032ce80ac127e6bfb25d727162eee4af208dc77'

* commit '0032ce80ac127e6bfb25d727162eee4af208dc77':
Fix back_up_files() error detection when opening/CRCing the file
1b6aee15157f0236ac1fc7885735609bf27171d3 05-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 2a318867: Merge change 3203 into donut

Merge commit '2a3188672ab2b65c0ce7c9c598a463e382c47696'

* commit '2a3188672ab2b65c0ce7c9c598a463e382c47696':
rename a few files to camel-case, add copyright notices
2a741ad51f3e8945d9b104bd3b1024d74fea82f7 05-Jun-2009 Jack Palevich <jackpal@google.com> Use ANSI style function declaration for RS scripts.
s/java/Fountain/res/raw/fountain.c
2d5ee25556cb363700dc5127f88ca05fb9493e14 05-Jun-2009 Mathias Agopian <mathias@google.com> fix a bunch of problems with destroying surfaces.

now, all destruction path, go through the purgatory which is emptied when ~ISurface is called, but we also make sure to remove the surface from the current list from there (in case a client forgot to request the destruction explicitely).
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
a09f11d6c641726b61f80c15230a18d31c146fec 05-Jun-2009 Jason Sams <rjsams@android.com> Add support for scripts to return an animation flag. This allows them to indicate they are generating changing content and the rs thread to sleep if the content is static.
s/RenderScriptEnv.h
s/java/Fountain/res/raw/fountain.c
s/rsContext.cpp
s/rsContext.h
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC.h
s/rsThreadIO.cpp
s/rsThreadIO.h
0032ce80ac127e6bfb25d727162eee4af208dc77 05-Jun-2009 Christopher Tate <ctate@google.com> Fix back_up_files() error detection when opening/CRCing the file
tils/BackupHelpers.cpp
8ad0010d6e3ce416cd8148a458d7457c1e59e770 04-Jun-2009 Jason Sams <rjsams@android.com> Set the RS thread priority.
s/rsContext.cpp
8ae2335a3c93d0c00e998fdec18f64dfe43b94cb 04-Jun-2009 Mathias Agopian <mathias@google.com> rename a few files to camel-case, add copyright notices
tils/Android.mk
tils/BackupData.cpp
tils/BackupHelpers.cpp
tils/CharacterData.h
tils/Unicode.cpp
tils/ZipEntry.cpp
tils/ZipFile.cpp
tils/ZipFileCRO.cpp
tils/ZipFileRO.cpp
tils/ZipUtils.cpp
tils/backup_data.cpp
tils/backup_helper_file.cpp
tils/characterData.h
33c824d17bf414aef93141ce91bc2771b8a3246e 04-Jun-2009 Jason Sams <rjsams@android.com> Remove pointer hacks from script and use standard load/store functions.
s/java/Fountain/res/raw/fountain.c
e2ae85fc5a07591cb27bfae93557f80c55bb259c 04-Jun-2009 Jason Sams <rjsams@android.com> Generalize bitmap support and add remaining GL formats.
Fix bug in command fifo looping case.
s/rsAllocation.cpp
s/rsElement.cpp
s/rsElement.h
s/rsLocklessFifo.cpp
s/rsUtils.h
1277bb01166bc7ef75305014cff36166b4c2b393 03-Jun-2009 Mathias Agopian <mathias@google.com> when looking for an EGLConfig always pick the first one that matches, not the last one
urfaceflinger/DisplayHardware/DisplayHardware.cpp
ffe9f48890dde7173a0845d32887fdf94a49b0a7 02-Jun-2009 Jason Sams <rjsams@android.com> Improve bitmap support and do conversion in native rather than java code to reduce conversion time.
s/Android.mk
s/RenderScript.h
s/java/Fountain/res/raw/fountain.c
s/java/Fountain/src/com/android/fountain/RenderScript.java
s/jni/RenderScript_jni.cpp
s/rsUtils.h
5fbcaf9a90ca57b81739112c20859ef55fe18336 01-Jun-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
696959c7b6c5d8d1d1fbccdc5c1e9ae09363c064 01-Jun-2009 Mathias Agopian <mathias@google.com> get rid of TimerProbe which is never used
tils/Android.mk
tils/TimerProbe.cpp
14f955b5d76233668f6bb0e9642daa8a59fa42cc 01-Jun-2009 Mathias Agopian <mathias@google.com> get rid of sleepForInterval() which didn't seem to be used anywhere in the source tree. Also get rid of ported.h which seem to be used only (possibly) in the sim. moved the implementation there.
tils/Android.mk
tils/Timers.cpp
tils/ported.cpp
3b4062eeb01be33951ba214e027da523cf09f8b1 01-Jun-2009 Mathias Agopian <mathias@google.com> get rid of utils.h
i/EventHub.cpp
4398876d6ec2dd3102acb3da4980f8e53243d372 31-May-2009 Mathias Agopian <mathias@google.com> merge master to master_gl
9176469702fac61846d6b2eab03bc2ea6c94241a 29-May-2009 Android (Google) Code Review <android-gerrit@google.com> am b61ae351: Merge change 2747 into donut

Merge commit 'b61ae351256518add7bcb40e0bf18337dd87195c'

* commit 'b61ae351256518add7bcb40e0bf18337dd87195c':
log the geomerty of surfaces causing an out of memory in SurfaceFlinger.
b61ae351256518add7bcb40e0bf18337dd87195c 29-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 2747 into donut

* changes:
log the geomerty of surfaces causing an out of memory in SurfaceFlinger.
6d892b60dde12aff270df1b3d2809336c3fc1265 29-May-2009 Mathias Agopian <mathias@google.com> log the geomerty of surfaces causing an out of memory in SurfaceFlinger.
urfaceflinger/LayerBitmap.cpp
e1ab4349268f3190f8ae6b535c4583e5f23f0a59 29-May-2009 Jack Palevich <jackpal@google.com> Don't prelink the libRS libraries.

These are temporary libraries for the development of RenderScript, so they
don't have to be prelinked.
s/Android.mk
16641bcdae453815fcb54c022bc1734618ddc3f1 29-May-2009 Android (Google) Code Review <android-gerrit@google.com> am d9cc7659: Merge change 2706 into donut

Merge commit 'd9cc7659fa9b8544e2a3ca7b7040fbd79afdf7ea'

* commit 'd9cc7659fa9b8544e2a3ca7b7040fbd79afdf7ea':
Fix issue 1883666: Audio coming from the music player stopped suddenly
551603f0eca257f3c90668ef222403478f4c0880 29-May-2009 Eric Laurent <elaurent@google.com> Fix issue 1883666: Audio coming from the music player stopped suddenly

The problem comes from the code handling the automatic change of audio routing to speaker when notifications are played. The music is also muted while the sound is forced to speaker.
To avoid truncating the end of the notification, a delay is inserted between the end of the notification and the restoration of the audio routing. If a new notification starts during this delay, the current music mute state read and saved before muting music corresponds to the forced mute due to previous notification. When the new notification ends, the mute state restored is muted and music stream stays muted for ever.

The fix consists in reading and saving music mute state only if the audio routing has been restored (check that mForcedRoute is back to 0).
udioflinger/AudioFlinger.cpp
243e3fbcf710115c5b4b61e1112e61cc2268478a 29-May-2009 Jason Sams <rjsams@android.com> Implement sampler GL setup code.
s/rsSampler.cpp
02fb2cb531035779a25dbf9595e0628ea40585b0 29-May-2009 Jason Sams <rjsams@android.com> Add sampler support
s/java/Fountain/src/com/android/fountain/FountainView.java
s/java/Fountain/src/com/android/fountain/RenderScript.java
s/jni/RenderScript_jni.cpp
s/rs.spec
s/rsProgramFragment.cpp
s/rsSampler.cpp
206b83190708738552be7760acfeefa1143555b5 29-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 2658

* changes:
Delete the acc script when deleting the Renderscript rsScriptC object.
fb1bf92c2ee537aa1e08a8880f576f862775d646 29-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 2657

* changes:
Remove versions of scriptCSetScript method that take byte arrays.
ec5a20bf2b9f563f9f6a4bde4d8cbbe13598fd25 29-May-2009 Jack Palevich <jackpal@google.com> Delete the acc script when deleting the Renderscript rsScriptC object.

Previously we had been leaking the ACCscript object.
s/Android.mk
s/jni/RenderScript_jni.cpp
s/rs.spec
s/rsScriptC.cpp
s/rsScriptC.h
63975dde40e4ee8fd08225741b31d54eff115104 29-May-2009 Jack Palevich <jackpal@google.com> Remove versions of scriptCSetScript method that take byte arrays.

This makes the API simpler, and therefore probably easier to use.
s/java/Fountain/src/com/android/fountain/RenderScript.java
aebadd2cf489948847f262d917ee39cb285815b3 28-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 2636

* changes:
Add support for setting scripts, rather than having a hard-coded script.
43702d8925c54360ad5f9f66b0d35d61d59f6910 28-May-2009 Jack Palevich <jackpal@google.com> Add support for setting scripts, rather than having a hard-coded script.

Move the test script into a resource file.
Add APIs for reading a script from a resource, InputStream, string, or
byte array.
s/java/Fountain/res/raw/fountain.c
s/java/Fountain/src/com/android/fountain/FountainView.java
s/java/Fountain/src/com/android/fountain/RenderScript.java
s/jni/RenderScript_jni.cpp
1837beb08d3b7f1ddd68bff1969e66a57f104075 28-May-2009 Mathias Agopian <mathias@google.com> fix typo defining a singleton attrbutes for an object that is not a singleton -- no side effects, but useless
i/Surface.cpp
a8f61f41f4ba16bf01665e2b2a024dfca0a59d1c 28-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 2574

* changes:
Sim-only files move, part 2/2.
0ae234c991f46a4fd6c9abb44edba7af89569718 28-May-2009 Jason Sams <rjsams@android.com> Add background bitmap to fountain test app for renderscript.
s/java/Fountain/res/drawable/gadgets_clock_mp3.png
s/java/Fountain/src/com/android/fountain/FountainView.java
s/jni/RenderScript_jni.cpp
12c659a50ca1407a40f9f7dbf0dc8c174c7d3493 28-May-2009 Mathias Agopian <mathias@google.com> make sure the Region code disallows constructs like "(a+b)=c;", which is somewhat meaningless.
i/Region.cpp
df98851d2fccc00d7bc9adfdf1088d34e007ae1a 28-May-2009 Jack Palevich <jackpal@google.com> Change the Fountain test app's package to com.android.fountain.

It had been com.android.calc, which caused conflicts with the real Calc
application.
s/java/Fountain/AndroidManifest.xml
s/java/Fountain/src/com/android/fountain/Fountain.java
s/java/Fountain/src/com/android/fountain/FountainView.java
s/java/Fountain/src/com/android/fountain/RSSurfaceView.java
s/java/Fountain/src/com/android/fountain/RenderScript.java
s/jni/RenderScript_jni.cpp
7fea935590ad5629a1c8fe004f57ce79cf1c7a5a 28-May-2009 Andy McFadden <fadden@android.com> Sim-only files move, part 2/2.

Move Pipe and executablepath from libutils to the simulator, since nothing
else uses them.
tils/Android.mk
tils/Pipe.cpp
tils/executablepath_darwin.cpp
tils/executablepath_linux.cpp
ba8972435128ebe0edf85401830c3d333a08202d 28-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 2568

* changes:
Enable renderscript to build under the simulator.
81d0a9a70ad68c836f89c5fcbebda95efe0048ab 28-May-2009 Jack Palevich <jackpal@google.com> Enable renderscript to build under the simulator.

Added missing #include file to declare memcpy().
s/rsMatrix.cpp
fe08d99725efd0dde7ba67ff1979a04fec2ba99f 27-May-2009 Jason Sams <rjsams@android.com> Implement first pass bitmap to allocation support. The Java bindings can create a 2D allocation by passing in a Bitmap object.
s/RenderScript.h
s/RenderScriptEnv.h
s/java/Fountain/src/com/android/fountain/RenderScript.java
s/jni/RenderScript_jni.cpp
s/rs.spec
s/rsAllocation.cpp
s/rsContext.cpp
s/rsElement.cpp
s/rsProgramFragment.cpp
s/rsScriptC.cpp
2da99bdaa1712f00525e6a84b58044332cb1baef 27-May-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master

Conflicts:
include/ui/Rect.h
libs/ui/ISurfaceComposer.cpp
8191d0f634cb916a0ccf5dce3f98485d3d273f6b 27-May-2009 Jack Palevich <jackpal@google.com> Turn on ACC script test. (It works!)

+ Modified test script to work with the limitations of the ACC langauge.
- No <op>=
- use correct C API names for callback methods.
s/jni/RenderScript_jni.cpp
55d45223923bc55791e7174f5ea37694aa308e58 27-May-2009 Jack Palevich <jackpal@google.com> Fix Fountain test app so that it actually builds.

Also check in first part of an libACC implementation.
s/Android.mk
s/java/Fountain/Android.mk
s/java/Fountain/AndroidManifest.xml
s/java/Fountain/src/com/android/fountain/Fountain.java
s/java/Fountain/src/com/android/fountain/FountainView.java
s/jni/RenderScript_jni.cpp
s/rsScriptC.cpp
09d00f705be5dbc1766e12e47c0a743abbad360e 27-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 0c0ad39c: Merge change 2502 into donut

Merge commit '0c0ad39cd8eaa6de6b7f99cec3971bcc953461e0'

* commit '0c0ad39cd8eaa6de6b7f99cec3971bcc953461e0':
minor clean-up to Rect and Point.
f1472a79728324f4f6b5d66af986e9e9db24d0aa 27-May-2009 Mathias Agopian <mathias@google.com> minor clean-up to Rect and Point.

- return "const" objects for overloaded operators to disallow constructs like: (a+b) = c;
- don't return references to non-static members, it's not always safe.
- Point.cpp was empty, so get rid of it
i/Android.mk
i/Point.cpp
i/Rect.cpp
eaff30744e7961dfa304368f81cb56cc4166f495 27-May-2009 Jack Palevich <jackpal@google.com> Fix RenderScript JNI code build issue.

We should not try to build the JNI file until after we have built the
the generated header files that it includes.
s/Android.mk
aaf834a284a025cedd8ec1cf01d09e1790c1dcf8 23-May-2009 Mathias Agopian <mathias@google.com> some work to try to reduce the code size of some native libraries

- make sure that all binder Bn classes define a ctor and dtor in their respective library.
This avoids duplication of the ctor/dtor in libraries where these objects are instantiated.
This is also cleaner, should we want these ctor/dtor to do something one day.

- same change as above for some Bp classes and various other non-binder classes

- moved the definition of CHECK_INTERFACE() in IInterface.h instead of having it everywhere.

- improved the CHECK_INTERFACE() macro so it calls a single method in Parcel, instead of inlining its code everywhere

- IBinder::getInterfaceDescriptor() now returns a "const String16&" instead of String16, which saves calls to String16 and ~String16

- implemented a cache for BpBinder::getInterfaceDescriptor(), since this does an IPC. HOWEVER, this method never seems to be called.
The cache makes BpBinder bigger, so we need to figure out if we need this method at all.
inder/Binder.cpp
inder/BpBinder.cpp
inder/IInterface.cpp
inder/IMemory.cpp
inder/IPermissionController.cpp
inder/IServiceManager.cpp
inder/MemoryDealer.cpp
inder/MemoryHeapPmem.cpp
inder/Parcel.cpp
i/ICamera.cpp
i/ICameraClient.cpp
i/ICameraService.cpp
i/IOverlay.cpp
i/ISurface.cpp
i/ISurfaceComposer.cpp
i/ISurfaceFlingerClient.cpp
tils/CallStack.cpp
tils/TextOutput.cpp
40dec9c738dbe4d4d4afe01828d06b340afa8874 26-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 2466

* changes:
Rename Calc sample to Fountain.
5da30b73d4e514f7714b2e72a902f5b1ce13c361 26-May-2009 Jack Palevich <jackpal@google.com> Rename Calc sample to Fountain.
s/java/Calc/Android.mk
s/java/Calc/AndroidManifest.xml
s/java/Calc/src/com/android/calc/Calc.java
s/java/Calc/src/com/android/calc/CalcView.java
s/java/Calc/src/com/android/calc/RSSurfaceView.java
s/java/Calc/src/com/android/calc/RenderScript.java
s/java/Fountain/Android.mk
s/java/Fountain/AndroidManifest.xml
s/java/Fountain/src/com/android/fountain/Fountain.java
s/java/Fountain/src/com/android/fountain/FountainView.java
s/java/Fountain/src/com/android/fountain/RSSurfaceView.java
s/java/Fountain/src/com/android/fountain/RenderScript.java
ecb109d165075573b2084e4b95ed16302d5e4f73 26-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 2462

* changes:
Add sprite fountain test.
60aa3eaf559b1410898c228e4f6ab7920f3953d0 26-May-2009 Jack Palevich <jackpal@google.com> Add sprite fountain test.

It's still called "Calc".
s/Android.mk
s/java/Android.mk
s/java/Calc/Android.mk
s/java/Calc/AndroidManifest.xml
s/java/Calc/src/com/android/calc/Calc.java
s/java/Calc/src/com/android/calc/CalcView.java
s/java/Calc/src/com/android/calc/RSSurfaceView.java
s/java/Calc/src/com/android/calc/RenderScript.java
c5d0343b677d5ddc2d69fd15b81b084a40ab12ac 26-May-2009 Android (Google) Code Review <android-gerrit@google.com> am de8268d6: Merge change 2331 into donut

Merge commit 'de8268d6d1cd168510c490b17e93154d2eab767c'

* commit 'de8268d6d1cd168510c490b17e93154d2eab767c':
Fix issue 1846343 - part 1
4bc035a65cac177be9294e69f110497e3b6e34e6 22-May-2009 Eric Laurent <elaurent@google.com> Fix issue 1846343 - part 1

This change is the first part of a fix for issue 1846343, :
- Added new enum values for input sources in AudioRecord and MediaRecorder for voice uplink, downlink and uplink+downlink sources.
- renamed streamType to inputSource in all native functions handling audio record.

A second change is required in opencore author driver and android audio input to completely fix the issue.
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
udioflinger/AudioHardwareGeneric.cpp
udioflinger/AudioHardwareStub.cpp
6a3a2b9d20212d8496744ebdc47a52bd6c670cbb 23-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 04561a55: Merge change 2359 into donut

Merge commit '04561a55df693e7bd8d3047ccc4fbef504ac07cf'

* commit '04561a55df693e7bd8d3047ccc4fbef504ac07cf':
Fix for the simultor build breakage.
04561a55df693e7bd8d3047ccc4fbef504ac07cf 23-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 2359 into donut

* changes:
Fix for the simultor build breakage.
aaafa4fb1cda4dd4e1a261a1c196865ac0a14105 23-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 2362

* changes:
Add the Renderscript library. (Not in the build by default yet.)
d19f10d43aa400e1183aa21a97099d02074131a2 22-May-2009 Jason Sams <jsams@google.com> Add the Renderscript library. (Not in the build by default yet.)

This library can be used to create animated 3D User Interfaces.

This library is currently under heavy development, so it's not part of
the build by default.

In order to build this library, you must define

BUILD_RENDERSCRIPT=true

in your build environment.

You will also have to manually edit

build/core/prelink-linux-arm.map

And add libRS and libRS_jni at the end like this (exact address may change.)

libRS.so 0x9A100000
libRS_jni.so 0x9A000000
s/Android.mk
s/RenderScript.h
s/RenderScriptEnv.h
s/jni/RenderScript_jni.cpp
s/rs.spec
s/rsAdapter.cpp
s/rsAdapter.h
s/rsAllocation.cpp
s/rsAllocation.h
s/rsComponent.cpp
s/rsComponent.h
s/rsContext.cpp
s/rsContext.h
s/rsDevice.cpp
s/rsDevice.h
s/rsElement.cpp
s/rsElement.h
s/rsLocklessFifo.cpp
s/rsLocklessFifo.h
s/rsMatrix.cpp
s/rsMatrix.h
s/rsObjectBase.cpp
s/rsObjectBase.h
s/rsProgram.cpp
s/rsProgram.h
s/rsProgramFragment.cpp
s/rsProgramFragment.h
s/rsProgramFragmentStore.cpp
s/rsProgramFragmentStore.h
s/rsProgramVertex.cpp
s/rsProgramVertex.h
s/rsSampler.cpp
s/rsSampler.h
s/rsScript.cpp
s/rsScript.h
s/rsScriptC.cpp
s/rsScriptC.h
s/rsThreadIO.cpp
s/rsThreadIO.h
s/rsTriangleMesh.cpp
s/rsTriangleMesh.h
s/rsType.cpp
s/rsType.h
s/rsUtils.h
s/rsgApi.cpp.rsg
s/rsgApiFuncDecl.h.rsg
s/rsgApiReplay.cpp.rsg
s/rsgApiStructs.h.rsg
s/rsg_generator.c
s/spec.lex
f4c46b94b867f6a01bf7d0be18f667819338072f 22-May-2009 Nicolas Catania <niko@google.com> Fix for the simultor build breakage.

Added missing include sys/time.h for utimes.

Detects when stat64 uses a timespec for the modif and access times
and work around the missing st_*time_nsec.

Apologies for the whitespace changes, emacs removed them automatically.
tils/backup_helper_file.cpp
9f7d60cbfaa40bd78c0f4d5d4e3b8e8cf257e87a 22-May-2009 Android (Google) Code Review <android-gerrit@google.com> am d50a458b: Merge change 2351 into donut

Merge commit 'd50a458bb291801ab9fdc119301bc7b84b42a6e3'

* commit 'd50a458bb291801ab9fdc119301bc7b84b42a6e3':
Fix a major bug in Bundle when unparcelling from AIDL.
d50a458bb291801ab9fdc119301bc7b84b42a6e3 22-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 2351 into donut

* changes:
Fix a major bug in Bundle when unparcelling from AIDL.
6aff905048ba3b03724f17e2aba9089872e14cd2 22-May-2009 Dianne Hackborn <hackbod@google.com> Fix a major bug in Bundle when unparcelling from AIDL.

There was a serious problem in the Bundle(Parcel) and readFromParcel() methods,
where it wasn't doing the copying of the Parcel that Parcel.readBundle() does
and is a basic requirement for it to work correctly.

This re-arranges the code to make all of these functions (hopefully) correct.

Also fix a problem in Parcel where we were not duping fds when copying data from
one Parcel to another.
tils/Parcel.cpp
fc5095f44ba46b57f4ef6179ee4d69ce3a7fe69a 22-May-2009 Marco Nelissen <marcone@google.com> am 7198030f: This should fix the simulator build.

Merge commit '7198030fce4b54820a65a10d54fae18a1ab5df84'

* commit '7198030fce4b54820a65a10d54fae18a1ab5df84':
This should fix the simulator build.
7198030fce4b54820a65a10d54fae18a1ab5df84 22-May-2009 Marco Nelissen <marcone@google.com> This should fix the simulator build.
tils/futex_synchro.c
947f4f4d384ea26eb2145cc070a3eed42c59534a 22-May-2009 Mathias Agopian <mathias@google.com> merge master to master_gl
e755d649771706b24b34e545476c8f2c8f9e09f6 22-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 69a6c3eb: Merge change 2292 into donut

Merge commit '69a6c3ebd46a8de0e896747757f364322c12608d'

* commit '69a6c3ebd46a8de0e896747757f364322c12608d':
split boot animation out of SurfaceFlinger
627e7b50be41e4fdee758a1bfad3a55de56b4e27 22-May-2009 Mathias Agopian <mathias@google.com> split boot animation out of SurfaceFlinger

Conflicts:

data/etc/platform.xml
urfaceflinger/Android.mk
urfaceflinger/BootAnimation.cpp
urfaceflinger/BootAnimation.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger/VRamHeap.cpp
i/ISurfaceFlingerClient.cpp
dfece80c790934e4413def863070ac0dd21f6e29 22-May-2009 Mathias Agopian <mathias@google.com> change 2115 wasn't merged properly into master. this fixes that.

Merge change 2115 into donut

* changes:
bring the native_handle stuff back from master_gl

Conflicts:

libs/binder/Parcel.cpp
inder/Parcel.cpp
i/Overlay.cpp
9890815e427c49192efd738a8ae07ce038da92be 20-May-2009 Mathias Agopian <mathias@google.com> bring the native_handle stuff back from master_gl
i/Overlay.cpp
tils/Parcel.cpp
0795272aa226f4e965968a03daddc53ce30b7cda 20-May-2009 Mathias Agopian <mathias@google.com> move libbinder's header files under includes/binder
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
inder/Binder.cpp
inder/BpBinder.cpp
inder/IDataConnection.cpp
inder/IInterface.cpp
inder/IMemory.cpp
inder/IPCThreadState.cpp
inder/IPermissionController.cpp
inder/IServiceManager.cpp
inder/MemoryBase.cpp
inder/MemoryDealer.cpp
inder/MemoryHeapBase.cpp
inder/MemoryHeapPmem.cpp
inder/Parcel.cpp
inder/ProcessState.cpp
inder/Static.cpp
urfaceflinger/GPUHardware/GPUHardware.cpp
urfaceflinger/LayerBitmap.cpp
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
urfaceflinger/LayerOrientationAnim.h
urfaceflinger/LayerOrientationAnimRotate.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger/VRamHeap.cpp
urfaceflinger/VRamHeap.h
urfaceflinger/tests/overlays/overlays.cpp
i/Camera.cpp
i/EventHub.cpp
i/ICamera.cpp
i/ICameraService.cpp
i/IOverlay.cpp
i/ISurface.cpp
i/ISurfaceComposer.cpp
i/ISurfaceFlingerClient.cpp
i/LayerState.cpp
i/Overlay.cpp
i/Surface.cpp
i/SurfaceComposerClient.cpp
i/SurfaceFlingerSynchro.cpp
25ba5b6564224dceefa086b5c439ef28dad530ca 19-May-2009 Mathias Agopian <mathias@google.com> checkpoint: split libutils into libutils + libbinder
udioflinger/Android.mk
inder/Android.mk
inder/Binder.cpp
inder/BpBinder.cpp
inder/IDataConnection.cpp
inder/IInterface.cpp
inder/IMemory.cpp
inder/IPCThreadState.cpp
inder/IPermissionController.cpp
inder/IServiceManager.cpp
inder/MemoryBase.cpp
inder/MemoryDealer.cpp
inder/MemoryHeapBase.cpp
inder/MemoryHeapPmem.cpp
inder/Parcel.cpp
inder/ProcessState.cpp
inder/Static.cpp
urfaceflinger/Android.mk
i/Android.mk
tils/Android.mk
tils/Binder.cpp
tils/BpBinder.cpp
tils/IDataConnection.cpp
tils/IInterface.cpp
tils/IMemory.cpp
tils/IPCThreadState.cpp
tils/IPermissionController.cpp
tils/IServiceManager.cpp
tils/MemoryBase.cpp
tils/MemoryDealer.cpp
tils/MemoryHeapBase.cpp
tils/MemoryHeapPmem.cpp
tils/Parcel.cpp
tils/ProcessState.cpp
tils/Static.cpp
bad962bf407bbb7a7ce296fb75f1883375afa832 20-May-2009 Android (Google) Code Review <android-gerrit@google.com> am e2914615: Merge change 2099 into donut

Merge commit 'e29146158b6048936671decc060d398a68333fc0'

* commit 'e29146158b6048936671decc060d398a68333fc0':
Hook up the backup data writer, and add a utility to read the backup data files.
d2110dbce071a236b6176de344ca797b737542eb 19-May-2009 Joe Onorato <joeo@android.com> Hook up the backup data writer, and add a utility to read the backup data files.
tils/backup_data.cpp
tils/backup_helper_file.cpp
82d8030c8eb52316b7bc16fded695c8f9dfb32a9 20-May-2009 Android (Google) Code Review <android-gerrit@google.com> am eb2c314b: Merge change 2042 into donut

Merge commit 'eb2c314b4d31c44af8a27ef51120b33290e65837'

* commit 'eb2c314b4d31c44af8a27ef51120b33290e65837':
Remove deprecated openInputStream factory method
d131275a8121348a2d6eeb46fe3cec5f76f88323 20-May-2009 Android (Google) Code Review <android-gerrit@google.com> am a59aba8c: Merge changes 2023,2036 into donut

Merge commit 'a59aba8cd88b8f98fa4de2a903899bc6ac9f73e8'

* commit 'a59aba8cd88b8f98fa4de2a903899bc6ac9f73e8':
Update more references to openInputStream in support classes.
Modify AudioFlinger to use updated openInputStream factory method.
352ea0e1d2d21ac5adf5e8c14e075818a90f2669 20-May-2009 Android (Google) Code Review <android-gerrit@google.com> am f6382011: Merge change 1998 into donut

Merge commit 'f638201182818f9e4041c6a862a297c6723240c0'

* commit 'f638201182818f9e4041c6a862a297c6723240c0':
Add inputSource to openInputStream
fe9f0722b028675e8b0223c9c85cd65f203f2e03 20-May-2009 Dave Sparks <davidsparks@android.com> Remove deprecated openInputStream factory method
udioflinger/A2dpAudioInterface.h
udioflinger/AudioDumpInterface.h
udioflinger/AudioHardwareGeneric.cpp
udioflinger/AudioHardwareGeneric.h
udioflinger/AudioHardwareStub.cpp
udioflinger/AudioHardwareStub.h
a5e2ef0af04ac4d2805c1fc840ba81470e8f49f1 20-May-2009 Dave Sparks <davidsparks@android.com> Update more references to openInputStream in support classes.
Continuation of bug 1846343
udioflinger/A2dpAudioInterface.cpp
udioflinger/A2dpAudioInterface.h
udioflinger/AudioDumpInterface.h
356d8a34bfdafe617a82abfa6e59f5f3df189d67 20-May-2009 Dave Sparks <davidsparks@android.com> Modify AudioFlinger to use updated openInputStream factory method.
Continuation of bug 1846343
udioflinger/AudioFlinger.cpp
ad216e51b33c55634ec89d15e81e97cdffd08e1c 19-May-2009 Dave Sparks <davidsparks@android.com> Add inputSource to openInputStream
Continuation of bug 1846343
udioflinger/AudioHardwareGeneric.cpp
udioflinger/AudioHardwareGeneric.h
udioflinger/AudioHardwareStub.cpp
udioflinger/AudioHardwareStub.h
f1f12f8cfcc99bb9a50ae5b555b5ce050726a1fa 19-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 656a2726: Merge change 1910 into donut

Merge commit '656a2726ad977be194c3b8f4bf4ec3068bf3e1c9'

* commit '656a2726ad977be194c3b8f4bf4ec3068bf3e1c9':
Update aapt badging for native code, configs, density, etc.
bb9ea30ea9e390e69602935571795d2c80dc7b91 19-May-2009 Dianne Hackborn <hackbod@google.com> Update aapt badging for native code, configs, density, etc.
tils/AssetManager.cpp
6158b1bf0364da1582468a98ec09d004ba99deec 11-May-2009 Mathias Agopian <mathias@google.com> Region now has its own implementation instead of relying on SkRegion, which allows us to break libui's dependency on libcorecg.
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBlur.cpp
urfaceflinger/LayerDim.cpp
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/Transform.cpp
i/Android.mk
i/Region.cpp
i/Surface.cpp
i/tests/Android.mk
i/tests/region.cpp
28a6f667c2c668f5b388a54bcfafc27d2d9cb299 16-May-2009 Android (Google) Code Review <android-gerrit@google.com> am e85bb9eb: Merge change 1823 into donut

Merge commit 'e85bb9ebcce85b8c7a0e0ccb5116cd25bf684727'

* commit 'e85bb9ebcce85b8c7a0e0ccb5116cd25bf684727':
Add the backup data file writer C++ class.
59aa044a1098e49823d59905731f28465003e983 16-May-2009 Mathias Agopian <mathias@google.com> Merge branch '2514' into merge_master
2e1da32203b7f6df76023f25a7382a31fad6b19d 16-May-2009 Joe Onorato <joeo@android.com> Add the backup data file writer C++ class.
tils/backup_data.cpp
tils/backup_helper_file.cpp
55051ebdd1ebf043f9d0e3dcf025c8c8930cf567 15-May-2009 Joe Onorato <joeo@android.com> am 4535e405: Implement the C++ class to write the backed up file data.

Merge commit '4535e40544aeb957d44fad75fbe5676effe03689'

* commit '4535e40544aeb957d44fad75fbe5676effe03689':
Implement the C++ class to write the backed up file data.
4535e40544aeb957d44fad75fbe5676effe03689 15-May-2009 Joe Onorato <joeo@android.com> Implement the C++ class to write the backed up file data.
tils/Android.mk
tils/backup_data.cpp
tils/backup_helper_file.cpp
tils/file_backup_helper.cpp
11abc8a36d639775b05a0471c9ea45d83fa19e56 15-May-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master

Conflicts:
opengl/libagl/Android.mk
opengl/libs/Android.mk
opengl/libs/egl_impl.h
a64b860749ad7e5f9e887013d87b56b928c5d405 14-May-2009 Android (Google) Code Review <android-gerrit@google.com> am aa642c0c: Merge changes 1591,1596 into donut

Merge commit 'aa642c0cc20293137376d44f8221876c121e5be9'

* commit 'aa642c0cc20293137376d44f8221876c121e5be9':
Get the backup calling through to the file backup helper.
Fix typos.
Add a new feature to android.os.Debug to add the ability to inject only specific fields when calling setFieldsOn().
Fixes #1836075. Adds consistency checks for the View hierarchy. To enable them, you need a debug build and ViewDebug.sConsistencyCheckEnabled set to true in debug.prop. This change also lets you easily enable drawing and layout profiling in ViewRoot by setting ViewRoot.sProfileDrawing, ViewRoot.sProfileLayout and ViewRoot.sShowFps in debug.prop with a debug build.
Add Intent.ACTION_APP_ERROR
290bb011c5c1a9ba1f2116810b06cf52a9c36b3e 14-May-2009 Joe Onorato <joeo@android.com> Get the backup calling through to the file backup helper.

This includes some cleanup to make the parameters match
between BackupService.onBackup and FileBackupHelper.performBackup.
tils/file_backup_helper.cpp
70a16b408442ad1e665ee37ccdb8c88c8d3d74d6 11-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 3022a11: Merge change 1239 into donut

Merge commit '3022a11c4c41afa9d39b4d0d9abd7e6bcb6b8472'

* commit '3022a11c4c41afa9d39b4d0d9abd7e6bcb6b8472':
Modify camera framework to use new streamlined binder interface.
d6289b1b03d209219c2dd3126ee8839a45682b33 08-May-2009 Dave Sparks <davidsparks@android.com> Modify camera framework to use new streamlined binder interface.
This is the second half of bug 1837832. Modifies the camera client
and camera service to use the new binder interface. Removes the
old binder interface. There will be one more part to this change
to surface the undefined callbacks to the Java layer so that
partners can implement new features without having to touch the
stack.
i/Camera.cpp
i/ICameraClient.cpp
6ec72e3fa9cdf9e896f3042fb1b1b4f3f6cea541 08-May-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
c825d3ebd6ca66e65e63fdc76f032e08aa2a8e22 06-May-2009 Joe Onorato <joeo@android.com> fix the sim build. disables the tests for now.
tils/file_backup_helper.cpp
ec91aab3beba91633de26e80f75e731cec213b50 08-May-2009 The Android Open Source Project <initial-contribution@android.com> am 3fd7e13: Merge branch \'donut\' of ssh://android-git.corp.google.com:29

Merge commit '3fd7e13960c2763225c5c8bc187bd15da04820dd'

* commit '3fd7e13960c2763225c5c8bc187bd15da04820dd':
Add new binder methods to camera client to support generic callbacks
6bebbcd57b7b3ffad3af046f4899d885b30c828e 08-May-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
97b8056c3182a973c67d3c1b196150d4b9e30f3a 08-May-2009 Mathias Agopian <mathias@google.com> add support for update-on-demand in SurfaceFlinger
urfaceflinger/DisplayHardware/DisplayHardware.cpp
i/FramebufferNativeWindow.cpp
927d37cb788670b91af0f1a7a93c68046a838d23 07-May-2009 Mathias Agopian <mathias@google.com> fix EGL extension string names
urfaceflinger/DisplayHardware/DisplayHardware.cpp
2e20bffbab8084fedce39d14d7dd17b08f6e9ba2 05-May-2009 Mathias Agopian <mathias@google.com> created an new EGL extension called ANDROID_swap_rectangle

ANDROID_swap_rectangle allows to specify the rectangle affected by eglSwapBuffers(), anything outside of this rectangle is unchanged. in particular EGL_BUFFER_DESTROYED only applies to that rectangle. This extension as well as EGL_BUFFER_PRESERVED allow major optimizations on surfaceflinger, which can redraw only the dirty area during compositing.

However, ANDROID_swap_rectangle allows further optimizations in EGL by reducing the amount of copy-back needed. ANDROID_swap_rectangle is particularily important for software implementations.
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/DisplayHardware/DisplayHardware.h
urfaceflinger/SurfaceFlinger.cpp
2a04aefdf03abbdabb035f89c8a1df636c168de0 07-May-2009 Dave Sparks <davidsparks@android.com> Add new binder methods to camera client to support generic callbacks
This is the first step in a multi-step change to move from the old
specific callbacks to a generic callback. This will allow future
flexibility in the interface without requiring binder rewrites.
Bug 1837832
i/Camera.cpp
i/ICameraClient.cpp
7fca56513587bbf899d4d281a43d7eb0819da9af 06-May-2009 Joe Onorato <joeo@android.com> fix the sim build. disables the tests for now.
tils/file_backup_helper.cpp
b61381bc942a2cd60fcdced888ede76cd0711f00 06-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 4488b11: Merge change 1039 into donut

Merge commit '4488b11c51ad8f5b8330279a9405e5a0f8586aa4'

* commit '4488b11c51ad8f5b8330279a9405e5a0f8586aa4':
Add some C++ code to do raw files for backup
9bd5da4db97fec7cdbe6e07870411c1fcaff4365 06-May-2009 Mathias Agopian <mathias@google.com> get rid off unneeded flags
i/FramebufferNativeWindow.cpp
b51e18d59b6f8e44a5d3516fc3359c54fa913331 06-May-2009 Mathias Agopian <mathias@google.com> move android_native_buffer_t declaration into its own private/ui/android_native_priv.h header, since user code should never have access to it.
i/FramebufferNativeWindow.cpp
ac2523b161df2bb507cc88906bb070878266770d 06-May-2009 Mathias Agopian <mathias@google.com> move opengl/include/EGL/android_natives.h to include/ui/egl/android_natives.h and don't include it from egl.h

the android_native_ types are just forward declared in egl.h
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/LayerBitmap.h
i/BufferMapper.cpp
i/FramebufferNativeWindow.cpp
i/ISurface.cpp
i/Surface.cpp
3ad977b41c6e4ef30c2f4f316b909b742ffc04aa 05-May-2009 Joe Onorato <joeo@android.com> Add some C++ code to do raw files for backup
tils/Android.mk
tils/file_backup_helper.cpp
e633f9339a2556771c79c784b0b23a9aade30485 05-May-2009 Mathias Agopian <mathias@google.com> get rid of android_native_buffer_t::getHandle() and replace it with an handle field

this abstraction was not necessary. things are easier now.
i/Surface.cpp
430f2ed5c03312700131a70c858b98e1cc6bc161 05-May-2009 Mathias Agopian <mathias@google.com> removed the "bits" attribute from android_native_buffer_t.

"bits" can never be trusted now that we need to call lock() on the handle to get the virtual address of the buffer.
urfaceflinger/LayerBitmap.cpp
i/Surface.cpp
6279619e4279daf77feff0c76e089b26ad66124f 05-May-2009 Mathias Agopian <mathias@google.com> minor clean-up in FramebufferNativeWindow
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/DisplayHardware/DisplayHardware.h
i/FramebufferNativeWindow.cpp
dff8e58d47ede6e748c0b02e128ca33b42a4f362 04-May-2009 Mathias Agopian <mathias@google.com> update surfaceflinger, libui and libagl to the new gralloc api

- Currently the lock/unlock path is naive and is done for each drawing operation (glDrawElements and glDrawArrays). this should be improved eventually.
- factor all the lock/unlock code in SurfaceBuffer.
- fixed "showupdate" so it works even when we don't have preserving eglSwapBuffers().
- improved the situation with the dirty-region and fixed a problem that caused GL apps to not update.
- make use of LightRefBase() where needed, instead of duplicating its implementation
- add LightRefBase::getStrongCount()
- renamed EGLNativeWindowSurface.cpp to FramebufferNativeWindow.cpp

- disabled copybits test, since it clashes with the new gralloc api

- Camera/Video will be fixed later when we rework the overlay apis
urfaceflinger/Android.mk
urfaceflinger/BootAnimation.cpp
urfaceflinger/BufferAllocator.cpp
urfaceflinger/BufferAllocator.h
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/Layer.cpp
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBitmap.cpp
urfaceflinger/LayerBitmap.h
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerOrientationAnim.cpp
urfaceflinger/LayerOrientationAnim.h
urfaceflinger/LayerOrientationAnimRotate.cpp
urfaceflinger/LayerOrientationAnimRotate.h
urfaceflinger/OrientationAnimation.cpp
urfaceflinger/OrientationAnimation.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger/purgatory/LayerOrientationAnim.cpp
urfaceflinger/purgatory/LayerOrientationAnim.h
urfaceflinger/purgatory/LayerOrientationAnimRotate.cpp
urfaceflinger/purgatory/LayerOrientationAnimRotate.h
urfaceflinger/purgatory/OrientationAnimation.cpp
urfaceflinger/purgatory/OrientationAnimation.h
i/Android.mk
i/BufferMapper.cpp
i/EGLNativeWindowSurface.cpp
i/FramebufferNativeWindow.cpp
i/Region.cpp
i/Surface.cpp
fa6eda01a9f3df0102ce6a65302c8674cc9c7e50 30-Apr-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master

Conflicts:
libs/surfaceflinger/Layer.cpp
libs/surfaceflinger/SurfaceFlinger.cpp
opengl/libagl/egl.cpp
opengl/libs/EGL/egl.cpp
opengl/libs/GLES_CM/gl.cpp
opengl/libs/GLES_CM/gl_api.in
opengl/libs/gl_entries.in
opengl/libs/tools/glapigen
a73b41ae601b391ae67a4c603d07f8949cd666ac 29-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> am 0124a15: Merge change 626 into donut

Merge commit '0124a150157d69a9f0ea109be2390afb5399b8a7'

* commit '0124a150157d69a9f0ea109be2390afb5399b8a7':
fix 1803886 android15 Translucent GLSurfaceView demo does not display properly
8e644062271b4082c6348a5061a75148e0086177 29-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> am 17f213b: Merge change 602 into donut

Merge commit '17f213bc528cf296e133e9ec9c9e0ce5dce41781'

* commit '17f213bc528cf296e133e9ec9c9e0ce5dce41781':
Bug fix(1807910): media recorder crash due to the use of locked camera object (last part)
9f5a54a59dac6df0ffe2d19c71733b4a0c7b00c2 29-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> am 0a9b5bb: Merge change 509 into donut

Merge commit '0a9b5bbb47a965238ca0e1e699d61d7ddd054742'

* commit '0a9b5bbb47a965238ca0e1e699d61d7ddd054742':
Fix a media server crash (bug 1807910): part one
5c685a948e9eed5f02c4e961d2d928e1f60e2e62 29-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> am 9c56513: Merge change 165 into donut

Merge commit '9c5651390056cd9c2f68d5df057739528bd4128b'

* commit '9c5651390056cd9c2f68d5df057739528bd4128b':
Squashed commit of the following:
bdbe6024a543bd740b0c194db9c12e4150c55c59 28-Apr-2009 Mathias Agopian <mathias@google.com> make use of the perfectly fine List.h instead of our own reimplementation of a linked list.
urfaceflinger/MessageQueue.cpp
urfaceflinger/MessageQueue.h
urfaceflinger/SurfaceFlinger.cpp
0c6b5f6ec38b14add24c44360aa60d91ab61ff34 28-Apr-2009 Mathias Agopian <mathias@google.com> fix 1803886 android15 Translucent GLSurfaceView demo does not display properly
urfaceflinger/GPUHardware/GPUHardware.cpp
urfaceflinger/Layer.cpp
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/VRamHeap.cpp
325ac475c51dc0d54503f725179ea2d9353485bb 27-Apr-2009 James Dong <jdong@google.com> Bug fix(1807910): media recorder crash due to the use of locked camera object (last part)
- remove an unused Camera constructor
- add a check on the argument in Camera::create() method
i/Camera.cpp
81b0aa696ac954180caec6cb8cc1bb97440e03b5 23-Apr-2009 Mathias Agopian <mathias@google.com> get rid of an old hack to work around a bug around glDeleteTextures() in the adreno drivers
urfaceflinger/Layer.cpp
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBlur.cpp
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerOrientationAnim.cpp
urfaceflinger/LayerOrientationAnimRotate.cpp
urfaceflinger/SurfaceFlinger.cpp
ef07dda442f210bc7a6b5fbdd4a0bed4e6d8ad50 22-Apr-2009 Mathias Agopian <mathias@google.com> get rid of the "show fps" debug option
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
a3aa6c9aa96873a70e2ff3170218a275f503520e 23-Apr-2009 Mathias Agopian <mathias@google.com> Surfaces are now destroyed properly in SurfaceFlinger.

First, the window manager tells us when a surface is no longer needed. At this point, several things happen:
- the surface is removed from the active/visible list
- it is added to a purgatory list, where it waits for all clients to release their reference
- it destroys all data/state that can be spared

Later, when all clients are done, the remains of the Surface are disposed off: it is removed from the purgatory and destroyed.
In particular its gralloc buffers are destroyed at that point (when we're sure nobody is using them anymore).
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.h
urfaceflinger/MessageQueue.h
urfaceflinger/SurfaceFlinger.cpp
6ead5d9f140529edfb744584fa5427b84b4dc13a 21-Apr-2009 Mathias Agopian <mathias@google.com> a brand new MessageQueue for SurfaceFlinger.
urfaceflinger/Android.mk
urfaceflinger/MessageQueue.cpp
urfaceflinger/MessageQueue.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
i/SurfaceFlingerSynchro.cpp
6cf0db228ca275dfcda57d79c55e5fa306809632 18-Apr-2009 Mathias Agopian <mathias@google.com> more Surface lifetime management

Surfaces are now destroyed once all references from the clients are gone, but they go through a partial destruction as soon as the window manager requests it.
This last part is still buggy. see comments in SurfaceFlinger::destroySurface()
urfaceflinger/BootAnimation.cpp
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
2b1927f686eaec23a5798966b96aadaee3e2eb85 17-Apr-2009 Mathias Agopian <mathias@google.com> Squashed commit of the following:

commit e5c24638f98162c3b75b4c67a16b510d38e31341
Author: Mathias Agopian <mathias@google.com>
Date: Fri Apr 17 14:09:03 2009 -0700

oops forgot this file.

commit 282642632d0cb12882eecf42e0fdfb2343275de1
Author: Mathias Agopian <mathias@google.com>
Date: Fri Apr 17 14:07:32 2009 -0700

use a helper macro for creating Singleton<>'s static attributes instances.
urfaceflinger/BufferAllocator.cpp
i/BufferMapper.cpp
i/Surface.cpp
f670127afccf156681db8a144e49cecb22d744e1 24-Apr-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
0a9b5bbb47a965238ca0e1e699d61d7ddd054742 24-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 509 into donut

* changes:
Fix a media server crash (bug 1807910): part one Add a factory method that creates a Camera object from a remote client
2adc2dbbd65fc89983f20702db2004f9b8cf8258 23-Apr-2009 James Dong <jdong@google.com> Fix a media server crash (bug 1807910): part one
Add a factory method that creates a Camera object from a remote client

Next:
The changes in authordriver.cpp and android_camera_input.cpp will come.
and the constructor for Camera object will be removed.
i/Camera.cpp
74008f608af0c567456d37e63d48643689388c74 23-Apr-2009 Jean-Baptiste Queru <jbq@google.com> Merge donut into master
96e20409afc720f61d0cd49bf1441f62069bd6bb 22-Apr-2009 Robert Greenwalt <robdroid@android.com> Squashed commit of the following:

commit 012b56fc607cf243cf4b29cb2a5f172bcbe0aecd
Author: Robert Greenwalt <robdroid@android.com>
Date: Wed Apr 22 14:31:26 2009 -0700

Additional fixes and tests for density.

commit 91fdc8e187551ae69e0029a4325fb3ad38fe411b
Author: Robert Greenwalt <robdroid@android.com>
Date: Tue Apr 14 14:39:00 2009 -0700

Fix runtime resource selection logic.

Fix isBetterThan so that o or this may be supperior at any stage.
Used to only handle this-better or tie at each stage, biasing against o.
Also allows reset of unit test to succeed. Fixes bug 1709202.
tils/ResourceTypes.cpp
ef02827d4c3b9c0601eddc9c348fc2ea866420a2 21-Apr-2009 Eric Laurent <elaurent@google.com> Fix issue 1745312: Various cleanups in media framework

AudioTrack, AudioRecord:
- remove useless mAudioFlinger member of AudioTrack and AudioRecord.
- signal cblk.cv condition in stop() method to speed up stop completion.
- extend wait condition timeout in obtainBuffer() when waitCount is -1 to avoid waking up callback thread unnecessarily

AudioFlinger:
- remove some warnings in AudioFlinger.cpp.
- remove function AudioFlinger::MixerThread::removetrack_l() as its content is never executed.
- remove useless call to setMasterVolume in AudioFlinger::handleForcedSpeakerRoute().
- Offset VOICE_CALL stream volume to reflect actual volume that is never 0 in hardware (this fix has been made in the open source): 0.01 + v * 0.99.

AudioSystem.java:
- correct typo in comment

IAudioflinger, IAudioFlingerClient:
- make AudioFlinger binder interfaces used for callbacks ONEWAY.

AudioHardwareInterface:
- correct routeStrings[] table in AudioHardwareInteface.cpp
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
udioflinger/AudioHardwareInterface.cpp
e7c71d3a8cfb0c9c3637e0956fee3abc5a1fb094 20-Apr-2009 Marco Nelissen <> Merge branch 'readonly-p4-master'
e38e90bf222515538281cc73c5e4a9f3c269c875 20-Apr-2009 Marco Nelissen <> AI 146964: tabs -> spaces

Automated import of CL 146964
tils/ZipFile.cpp
69d62097e8195c947de7e4cdc4a491181aa56e61 17-Apr-2009 Mathias Agopian <mathias@google.com> cleanup, remove unused fields. Also make sure that we don't systematically allocate a Surface in Surface.java if only a SurfaceControl is needed (Common case).
i/Surface.cpp
17f638b39f2e8b610ecfa1290e5bc42ab7700c98 17-Apr-2009 Mathias Agopian <mathias@google.com> more splitting of Surface/SurfaceControl. Surface.java is now implemented in terms of Surface and SurfaceControl.

The WindowManager side of Surface.java holds a SurfaceControl, while the client-side holds a Surface. When the client is in the system process, Surface.java holds both (which is a problem we'll try to fix later).
urfaceflinger/Android.mk
urfaceflinger/BootAnimation.cpp
urfaceflinger/BootAnimation.h
urfaceflinger/CPUGauge.cpp
urfaceflinger/CPUGauge.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
i/Surface.cpp
i/SurfaceComposerClient.cpp
6d2c0bc7bfe10a9b70ca608baf626c47a228fa6b 17-Apr-2009 Mathias Agopian <mathias@google.com> split Surface.cpp into Surface and SurfaceControl

SurfaceControl is used for controling the geometry of the surface (for the WM), while Surface is used to access the buffers (for SF's clients).
SurfaceFlingerClient now uses the SurfaceID instead of Surface*.

Currently Surface still has the SurfaceControl API and is implemented by calling into SurfaceControl.
i/Surface.cpp
i/SurfaceComposerClient.cpp
ed81f2216a0f200e279de61ec96fbedf5c21f0c7 15-Apr-2009 Mathias Agopian <mathias@google.com> fix a few typos in comments. this is really intended as a git pull/push test.
urfaceflinger/SurfaceFlinger.cpp
402c34649f514669517c2208e35caa58ff8bb2b9 15-Apr-2009 Mathias Agopian <mathias@google.com> fix some issues with Surface's lifetime management.

To deal with Java's lack of destructors and delayed garbage collection, we used to duplicate Surface.cpp objects in some case; this caused some issues because Surface is supposed to be reference-counted and unique.
i/Surface.cpp
a6b40ba521d5c2fc23da74015531bd4ed8657921 16-Apr-2009 Mathias Agopian <mathias@google.com> fix a rookie mistake causing Singleton<> to be a "multiton". Also improve the BufferMapper's debugging, but turn it off.

Squashed commit of the following:

commit 04e9cae7f806bd65f2cfe35c011b47a36773bbe5
Author: Mathias Agopian <mathias@google.com>
Date: Wed Apr 15 18:30:30 2009 -0700

fix and improve BufferMapper's tracking of mapped buffers.

commit 1a8deaed15811092b2349cc3c40cafb5f722046c
Author: Mathias Agopian <mathias@google.com>
Date: Wed Apr 15 00:52:02 2009 -0700

fix some bugs with the Singleton<> class. untested.

commit ed01cc06ad70cf640ce1258f01189cb1a96fd3a8
Author: Mathias Agopian <mathias@google.com>
Date: Tue Apr 14 19:29:25 2009 -0700

some work to debug the Singleton<> template.
urfaceflinger/BufferAllocator.cpp
i/BufferMapper.cpp
i/Surface.cpp
af9a515299b24031c7aa77bf163d0985cc862069 11-Apr-2009 Mathias Agopian <mathias@google.com> more debugging tools around BufferMapper
urfaceflinger/BufferAllocator.cpp
urfaceflinger/LayerBitmap.h
i/BufferMapper.cpp
0179ff6594034d0355499c048e3a2ea2d515e8b6 10-Apr-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into master_gl

Conflicts:
libs/utils/Parcel.cpp
1473f46cbc82aa6f0ba744cc896a36923823d55b 10-Apr-2009 Mathias Agopian <mathias@google.com> Integrate from //sandbox/mathias/donut/...@145728

SurfaceFlinger rework for new EGL driver model support.
urfaceflinger/Android.mk
urfaceflinger/BootAnimation.cpp
urfaceflinger/BootAnimation.h
urfaceflinger/BufferAllocator.cpp
urfaceflinger/BufferAllocator.h
urfaceflinger/CPUGauge.cpp
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/DisplayHardware/DisplayHardware.h
urfaceflinger/DisplayHardware/DisplayHardwareBase.cpp
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBitmap.cpp
urfaceflinger/LayerBitmap.h
urfaceflinger/LayerBlur.cpp
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
urfaceflinger/LayerDim.cpp
urfaceflinger/LayerDim.h
urfaceflinger/LayerOrientationAnim.cpp
urfaceflinger/LayerOrientationAnim.h
urfaceflinger/LayerOrientationAnimRotate.cpp
urfaceflinger/LayerOrientationAnimRotate.h
urfaceflinger/OrientationAnimation.cpp
urfaceflinger/OrientationAnimation.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger/Tokenizer.cpp
urfaceflinger/purgatory/VRamHeap.cpp
urfaceflinger/purgatory/VRamHeap.h
urfaceflinger/tests/resize/Android.mk
urfaceflinger/tests/resize/resize.cpp
i/Android.mk
i/BufferMapper.cpp
i/EGLDisplaySurface.cpp
i/EGLNativeWindowSurface.cpp
i/ISurface.cpp
i/ISurfaceComposer.cpp
i/ISurfaceFlingerClient.cpp
i/Overlay.cpp
i/Surface.cpp
i/SurfaceComposerClient.cpp
tils/Parcel.cpp
20f07d406f900a0be8c319ac163f276ed35021e8 02-Apr-2009 Nick Pelly <> Merge branch 'readonly-p4-master'
f1b083fb856b36c3381d5d167617ed68d640ee8c 02-Apr-2009 Nick Pelly <> AI 144205: am: CL 144151 am: CL 144150 Fix heap corruption.
Take mutex in close(), and skip write path after turning bluetooth off.
Original author: npelly
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 144205
udioflinger/A2dpAudioInterface.cpp
udioflinger/A2dpAudioInterface.h
0827c81466dffc2f0f3470574733cc0956df0494 02-Apr-2009 Nick Pelly <> AI 144151: am: CL 144150 Fix heap corruption.
Take mutex in close(), and skip write path after turning bluetooth off.
Original author: npelly
Merged from: //branches/cupcake/...

Automated import of CL 144151
udioflinger/A2dpAudioInterface.cpp
udioflinger/A2dpAudioInterface.h
caee1703fee75fbf37ba7774db64479a33cda82b 01-Apr-2009 The Android Open Source Project <initial-contribution@android.com> Merge commit 'goog/readonly-p4-master'
d3b4d0cfc10c95c9190a2b0e6a8c8e8f3d448b87 31-Mar-2009 Eric Laurent <> AI 143785: am: CL 143775 am: CL 143620 Attempt for fixing crash in AudioFlinger::MixerThread::dumpTracks() seen in bug report for issue 1747119.
AudioFlinger::MixerThread::dumpTracks() was reading mTracks[] vector instead of mActiveTracks[] when dumping active tracks.
Original author: elaurent
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143785
udioflinger/AudioFlinger.cpp
b88148eb6ce0d973f5e29445fffcb3f4f6202e03 31-Mar-2009 Eric Laurent <> AI 143775: am: CL 143620 Attempt for fixing crash in AudioFlinger::MixerThread::dumpTracks() seen in bug report for issue 1747119.
AudioFlinger::MixerThread::dumpTracks() was reading mTracks[] vector instead of mActiveTracks[] when dumping active tracks.
Original author: elaurent
Merged from: //branches/cupcake/...

Automated import of CL 143775
udioflinger/AudioFlinger.cpp
63e45f2854c86a9edf71e4159c9d93ad9a1e8f0d 28-Mar-2009 Eric Laurent <> AI 143327: am: CL 143177 am: CL 142889 Fix issue #1736153 Camera shutter sound can be muted by new AlarmClock setting.
Current implementation of Camera service plays the camera shutter sound over the ALARM stream so that it cannot be muted by silent mode in order to comply to some country specific requirement. A recent change made it possible for the user to mute the ALARM stream thus making this stream not suitable any more for the camera shutter sound.
The fix consists in creating a new stream type only accessible by native code and that cannot be muted and use it to play camera sounds.
Original author: elaurent
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143327
udioflinger/AudioFlinger.cpp
d97bbd88713a5dcdb322084020e3fe210e4c9dc6 28-Mar-2009 Mathias Agopian <> AI 143321: am: CL 143172 am: CL 142875 [1732012] for some reason these files didn't go through in the preview check-in.
Original author: mathias
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143321
urfaceflinger/LayerOrientationAnimRotate.cpp
urfaceflinger/LayerOrientationAnimRotate.h
eb0c86e18b7d620b679ff2a45a0233867a53a334 28-Mar-2009 Mathias Agopian <> AI 143320: am: CL 143171 am: CL 142873 fix [1732012] Only show screen rotation animation when triggered by sensor
Original author: mathias
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143320
urfaceflinger/OrientationAnimation.cpp
urfaceflinger/OrientationAnimation.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
i/ISurfaceComposer.cpp
i/SurfaceComposerClient.cpp
3552f53c8370ced8680951f4ac811a126da02b0e 28-Mar-2009 Mathias Agopian <> AI 143309: am: CL 143160 am: CL 142856 new-new-new-new rotation animation. it may still change one more time.
Original author: mathias
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143309
urfaceflinger/Android.mk
urfaceflinger/LayerOrientationAnim.cpp
urfaceflinger/LayerOrientationAnim.h
urfaceflinger/LayerOrientationAnimRotate.cpp
urfaceflinger/LayerOrientationAnimRotate.h
urfaceflinger/OrientationAnimation.cpp
urfaceflinger/OrientationAnimation.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger/Transform.cpp
urfaceflinger/Transform.h
a7f1e5c540ff7b94c212facdcd89459cba3e4edc 28-Mar-2009 Eric Laurent <> AI 143177: am: CL 142889 Fix issue #1736153 Camera shutter sound can be muted by new AlarmClock setting.
Current implementation of Camera service plays the camera shutter sound over the ALARM stream so that it cannot be muted by silent mode in order to comply to some country specific requirement. A recent change made it possible for the user to mute the ALARM stream thus making this stream not suitable any more for the camera shutter sound.
The fix consists in creating a new stream type only accessible by native code and that cannot be muted and use it to play camera sounds.
Original author: elaurent
Merged from: //branches/cupcake/...

Automated import of CL 143177
udioflinger/AudioFlinger.cpp
cb93c5a1a39bb4feaa776393f0d4afb5bf6aae26 28-Mar-2009 Mathias Agopian <> AI 143172: am: CL 142875 [1732012] for some reason these files didn't go through in the preview check-in.
Original author: mathias
Merged from: //branches/cupcake/...

Automated import of CL 143172
urfaceflinger/LayerOrientationAnimRotate.cpp
urfaceflinger/LayerOrientationAnimRotate.h
66b8ec99c5fc505877b3711a52e284bbb451f836 28-Mar-2009 Mathias Agopian <> AI 143171: am: CL 142873 fix [1732012] Only show screen rotation animation when triggered by sensor
Original author: mathias
Merged from: //branches/cupcake/...

Automated import of CL 143171
urfaceflinger/OrientationAnimation.cpp
urfaceflinger/OrientationAnimation.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
i/ISurfaceComposer.cpp
i/SurfaceComposerClient.cpp
e1861133d51b9e6a6f658eb366630ad4f4d3ff8f 27-Mar-2009 The Android Open Source Project <initial-contribution@android.com> Merge commit 'korg/cupcake'

Conflicts:
core/java/android/webkit/WebView.java
core/java/android/widget/TwoLineListItem.java
preloaded-classes
89a187299eeaa9f973ace3dba4916b3fbd36063e 27-Mar-2009 Mathias Agopian <> AI 143160: am: CL 142856 new-new-new-new rotation animation. it may still change one more time.
Original author: mathias
Merged from: //branches/cupcake/...

Automated import of CL 143160
urfaceflinger/Android.mk
urfaceflinger/LayerOrientationAnim.cpp
urfaceflinger/LayerOrientationAnim.h
urfaceflinger/LayerOrientationAnimRotate.cpp
urfaceflinger/LayerOrientationAnimRotate.h
urfaceflinger/OrientationAnimation.cpp
urfaceflinger/OrientationAnimation.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger/Transform.cpp
urfaceflinger/Transform.h
eeea9222132fe5979e40dcc85f5eba300157dfbc 26-Mar-2009 Eric Laurent <> Automated import from //branches/cupcake/...@142889,142889
udioflinger/AudioFlinger.cpp
3a186c7c2e0fd1f397a9de552cdb86d45ac8a814 26-Mar-2009 Mathias Agopian <> Automated import from //branches/cupcake/...@142875,142875
urfaceflinger/LayerOrientationAnimRotate.cpp
urfaceflinger/LayerOrientationAnimRotate.h
c75c4364eae030a9ea6db658c4d1e38cdb05ab4c 26-Mar-2009 Mathias Agopian <> Automated import from //branches/cupcake/...@142873,142873
urfaceflinger/OrientationAnimation.cpp
urfaceflinger/OrientationAnimation.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
i/ISurfaceComposer.cpp
i/SurfaceComposerClient.cpp
d2f34e5fd6c20854b45c76f2a514fb8864277ea2 26-Mar-2009 Mathias Agopian <> Automated import from //branches/cupcake/...@142856,142856
urfaceflinger/Android.mk
urfaceflinger/LayerOrientationAnim.cpp
urfaceflinger/LayerOrientationAnim.h
urfaceflinger/LayerOrientationAnimRotate.cpp
urfaceflinger/LayerOrientationAnimRotate.h
urfaceflinger/OrientationAnimation.cpp
urfaceflinger/OrientationAnimation.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger/Transform.cpp
urfaceflinger/Transform.h
eecc5c973ed44a4a094ef3c36130ee008f384333 26-Mar-2009 Dianne Hackborn <> Automated import from //branches/donutburger/...@142727,142727
i/EventHub.cpp
4e829f0aca3db3a1a01999eb7910cf58b9c11058 26-Mar-2009 Dianne Hackborn <> Automated import from //branches/master/...@142771,142771
i/EventHub.cpp
19f06fefc0bdb101e27229859a418d3574412f10 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/cupcake/...@142663,142663
i/EventHub.cpp
afbf448b7d04abe25497f838c1df5d05048f9d12 25-Mar-2009 Mathias Agopian <> Automated import from //branches/master/...@142447,142447
urfaceflinger/LayerOrientationAnim.cpp
urfaceflinger/LayerOrientationAnim.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger/Transform.cpp
urfaceflinger/Transform.h
1379665abdb8330caf813fb77902914d1545bcd9 25-Mar-2009 Mathias Agopian <> Automated import from //branches/master/...@142432,142432
urfaceflinger/BootAnimation.cpp
2764f30a74484870de03fa1a2aca0c01f991c711 25-Mar-2009 Mathias Agopian <> Automated import from //branches/donutburger/...@142446,142446
urfaceflinger/LayerOrientationAnim.cpp
urfaceflinger/LayerOrientationAnim.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger/Transform.cpp
urfaceflinger/Transform.h
00f5eca412248a32325442c982f97303dacae94b 25-Mar-2009 Mathias Agopian <> Automated import from //branches/donutburger/...@142430,142430
urfaceflinger/BootAnimation.cpp
013456784a6853254acb942209ff4dac95bdf50c 25-Mar-2009 Mathias Agopian <> Automated import from //branches/master/...@141504,141504
urfaceflinger/LayerOrientationAnim.cpp
urfaceflinger/LayerOrientationAnim.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger/Transform.cpp
urfaceflinger/Transform.h
4cf7abeed2c748314327462986e452fc1ccc6e99 25-Mar-2009 Mathias Agopian <> Automated import from //branches/donutburger/...@141502,141502
urfaceflinger/LayerOrientationAnim.cpp
urfaceflinger/LayerOrientationAnim.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger/Transform.cpp
urfaceflinger/Transform.h
e94fa1ba1de03fa1f26eb1e544c42238077f1278 25-Mar-2009 Mathias Agopian <> Automated import from //branches/cupcake/...@142445,142445
urfaceflinger/LayerOrientationAnim.cpp
urfaceflinger/LayerOrientationAnim.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger/Transform.cpp
urfaceflinger/Transform.h
ec4faffff3759f4cf2129d8793dce1a4a8f71a4a 25-Mar-2009 Mathias Agopian <> Automated import from //branches/cupcake/...@142427,142427
urfaceflinger/BootAnimation.cpp
b24b2970a8ff713ece1b732b55cb064cb87eb1c7 25-Mar-2009 Mathias Agopian <> Automated import from //branches/donutburger/...@140807,140807
urfaceflinger/BootAnimation.cpp
urfaceflinger/BootAnimation.h
b2cf954cb47a73065aa4b7fed753877615614f41 25-Mar-2009 Mathias Agopian <> Automated import from //branches/master/...@140808,140808
urfaceflinger/BootAnimation.cpp
urfaceflinger/BootAnimation.h
c2ad241504fcaa12d4579d3b0b4038d1ca8d08c9 20-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@141571
urfaceflinger/BootAnimation.cpp
urfaceflinger/BootAnimation.h
urfaceflinger/LayerOrientationAnim.cpp
urfaceflinger/LayerOrientationAnim.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger/Transform.cpp
urfaceflinger/Transform.h
105925376f8d0f6b318c9938c7b83ef7fef094da 19-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@140373
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
udioflinger/AudioMixer.cpp
2a73de7b21a89aa2ba4c254d28658b49793425b2 18-Mar-2009 Jean-Baptiste Queru <jbq@google.com> Merge commit 'remotes/korg/cupcake' into merge

Conflicts:
core/java/android/view/animation/TranslateAnimation.java
core/jni/Android.mk
core/res/res/values-en-rGB/strings.xml
libs/audioflinger/AudioFlinger.cpp
libs/surfaceflinger/LayerScreenshot.cpp
packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java
ba87e3e6c985e7175152993b5efcc7dd2f0e1c93 13-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@138607
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
c39a6e0c51e182338deb8b63d07933b585134929 11-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137873
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
urfaceflinger/SurfaceFlinger.cpp
tils/String16.cpp
b2a3dd88a53cc8c6d19f6dc8ec4f3d6c4abd9b54 09-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137197
udioflinger/A2dpAudioInterface.cpp
udioflinger/A2dpAudioInterface.h
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
4df2423a947bcd3f024cc3d3a1a315a8dc428598 05-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136594
tils/CallStack.cpp
tils/ResourceTypes.cpp
tils/String16.cpp
tils/Threads.cpp
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
udioflinger/A2dpAudioInterface.cpp
udioflinger/A2dpAudioInterface.h
udioflinger/Android.mk
udioflinger/AudioBufferProvider.h
udioflinger/AudioDumpInterface.cpp
udioflinger/AudioDumpInterface.h
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
udioflinger/AudioHardwareGeneric.cpp
udioflinger/AudioHardwareGeneric.h
udioflinger/AudioHardwareInterface.cpp
udioflinger/AudioHardwareStub.cpp
udioflinger/AudioHardwareStub.h
udioflinger/AudioMixer.cpp
udioflinger/AudioMixer.h
udioflinger/AudioResampler.cpp
udioflinger/AudioResampler.h
udioflinger/AudioResamplerCubic.cpp
udioflinger/AudioResamplerCubic.h
udioflinger/AudioResamplerSinc.cpp
udioflinger/AudioResamplerSinc.h
urfaceflinger/Android.mk
urfaceflinger/Barrier.h
urfaceflinger/BlurFilter.cpp
urfaceflinger/BlurFilter.h
urfaceflinger/BootAnimation.cpp
urfaceflinger/BootAnimation.h
urfaceflinger/CPUGauge.cpp
urfaceflinger/CPUGauge.h
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/DisplayHardware/DisplayHardware.h
urfaceflinger/DisplayHardware/DisplayHardwareBase.cpp
urfaceflinger/DisplayHardware/DisplayHardwareBase.h
urfaceflinger/GPUHardware/GPUHardware.cpp
urfaceflinger/GPUHardware/GPUHardware.h
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBitmap.cpp
urfaceflinger/LayerBitmap.h
urfaceflinger/LayerBlur.cpp
urfaceflinger/LayerBlur.h
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
urfaceflinger/LayerDim.cpp
urfaceflinger/LayerDim.h
urfaceflinger/LayerOrientationAnim.cpp
urfaceflinger/LayerOrientationAnim.h
urfaceflinger/MODULE_LICENSE_APACHE2
urfaceflinger/OrientationAnimation.cpp
urfaceflinger/OrientationAnimation.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger/Tokenizer.cpp
urfaceflinger/Tokenizer.h
urfaceflinger/Transform.cpp
urfaceflinger/Transform.h
urfaceflinger/VRamHeap.cpp
urfaceflinger/VRamHeap.h
urfaceflinger/clz.cpp
urfaceflinger/clz.h
urfaceflinger/tests/Android.mk
urfaceflinger/tests/overlays/Android.mk
urfaceflinger/tests/overlays/overlays.cpp
i/Android.mk
i/Camera.cpp
i/CameraParameters.cpp
i/EGLDisplaySurface.cpp
i/EGLNativeWindowSurface.cpp
i/EventHub.cpp
i/EventRecurrence.cpp
i/ICamera.cpp
i/ICameraClient.cpp
i/ICameraService.cpp
i/IOverlay.cpp
i/ISurface.cpp
i/ISurfaceComposer.cpp
i/ISurfaceFlingerClient.cpp
i/KeyCharacterMap.cpp
i/KeyLayoutMap.cpp
i/KeyLayoutMap.h
i/LayerState.cpp
i/MODULE_LICENSE_APACHE2
i/NOTICE
i/Overlay.cpp
i/PixelFormat.cpp
i/Point.cpp
i/Rect.cpp
i/Region.cpp
i/Surface.cpp
i/SurfaceComposerClient.cpp
i/SurfaceFlingerSynchro.cpp
i/Time.cpp
tils/Android.mk
tils/Asset.cpp
tils/AssetDir.cpp
tils/AssetManager.cpp
tils/Binder.cpp
tils/BpBinder.cpp
tils/BufferedTextOutput.cpp
tils/CallStack.cpp
tils/Debug.cpp
tils/FileMap.cpp
tils/IDataConnection.cpp
tils/IInterface.cpp
tils/IMemory.cpp
tils/IPCThreadState.cpp
tils/IPermissionController.cpp
tils/IServiceManager.cpp
tils/InetAddress.cpp
tils/LogSocket.cpp
tils/MODULE_LICENSE_APACHE2
tils/MemoryBase.cpp
tils/MemoryDealer.cpp
tils/MemoryHeapBase.cpp
tils/MemoryHeapPmem.cpp
tils/NOTICE
tils/Parcel.cpp
tils/Pipe.cpp
tils/ProcessState.cpp
tils/README
tils/RefBase.cpp
tils/ResourceTypes.cpp
tils/SharedBuffer.cpp
tils/Socket.cpp
tils/Static.cpp
tils/StopWatch.cpp
tils/String16.cpp
tils/String8.cpp
tils/SystemClock.cpp
tils/TextOutput.cpp
tils/Threads.cpp
tils/TimerProbe.cpp
tils/Timers.cpp
tils/Unicode.cpp
tils/VectorImpl.cpp
tils/ZipEntry.cpp
tils/ZipFile.cpp
tils/ZipFileCRO.cpp
tils/ZipFileRO.cpp
tils/ZipUtils.cpp
tils/characterData.h
tils/executablepath_darwin.cpp
tils/executablepath_linux.cpp
tils/futex_synchro.c
tils/misc.cpp
tils/ported.cpp
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
udioflinger/A2dpAudioInterface.cpp
udioflinger/A2dpAudioInterface.h
udioflinger/Android.mk
udioflinger/AudioBufferProvider.h
udioflinger/AudioDumpInterface.cpp
udioflinger/AudioDumpInterface.h
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
udioflinger/AudioHardwareGeneric.cpp
udioflinger/AudioHardwareGeneric.h
udioflinger/AudioHardwareInterface.cpp
udioflinger/AudioHardwareStub.cpp
udioflinger/AudioHardwareStub.h
udioflinger/AudioMixer.cpp
udioflinger/AudioMixer.h
udioflinger/AudioResampler.cpp
udioflinger/AudioResampler.h
udioflinger/AudioResamplerCubic.cpp
udioflinger/AudioResamplerCubic.h
udioflinger/AudioResamplerSinc.cpp
udioflinger/AudioResamplerSinc.h
urfaceflinger/Android.mk
urfaceflinger/Barrier.h
urfaceflinger/BlurFilter.cpp
urfaceflinger/BlurFilter.h
urfaceflinger/BootAnimation.cpp
urfaceflinger/BootAnimation.h
urfaceflinger/CPUGauge.cpp
urfaceflinger/CPUGauge.h
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/DisplayHardware/DisplayHardware.h
urfaceflinger/DisplayHardware/DisplayHardwareBase.cpp
urfaceflinger/DisplayHardware/DisplayHardwareBase.h
urfaceflinger/GPUHardware/GPUHardware.cpp
urfaceflinger/GPUHardware/GPUHardware.h
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBitmap.cpp
urfaceflinger/LayerBitmap.h
urfaceflinger/LayerBlur.cpp
urfaceflinger/LayerBlur.h
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
urfaceflinger/LayerDim.cpp
urfaceflinger/LayerDim.h
urfaceflinger/LayerOrientationAnim.cpp
urfaceflinger/LayerOrientationAnim.h
urfaceflinger/MODULE_LICENSE_APACHE2
urfaceflinger/OrientationAnimation.cpp
urfaceflinger/OrientationAnimation.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger/Tokenizer.cpp
urfaceflinger/Tokenizer.h
urfaceflinger/Transform.cpp
urfaceflinger/Transform.h
urfaceflinger/VRamHeap.cpp
urfaceflinger/VRamHeap.h
urfaceflinger/clz.cpp
urfaceflinger/clz.h
urfaceflinger/tests/Android.mk
urfaceflinger/tests/overlays/Android.mk
urfaceflinger/tests/overlays/overlays.cpp
i/Android.mk
i/Camera.cpp
i/CameraParameters.cpp
i/EGLDisplaySurface.cpp
i/EGLNativeWindowSurface.cpp
i/EventHub.cpp
i/EventRecurrence.cpp
i/ICamera.cpp
i/ICameraClient.cpp
i/ICameraService.cpp
i/IOverlay.cpp
i/ISurface.cpp
i/ISurfaceComposer.cpp
i/ISurfaceFlingerClient.cpp
i/KeyCharacterMap.cpp
i/KeyLayoutMap.cpp
i/KeyLayoutMap.h
i/LayerState.cpp
i/MODULE_LICENSE_APACHE2
i/NOTICE
i/Overlay.cpp
i/PixelFormat.cpp
i/Point.cpp
i/Rect.cpp
i/Region.cpp
i/Surface.cpp
i/SurfaceComposerClient.cpp
i/SurfaceFlingerSynchro.cpp
i/Time.cpp
tils/Android.mk
tils/Asset.cpp
tils/AssetDir.cpp
tils/AssetManager.cpp
tils/Binder.cpp
tils/BpBinder.cpp
tils/BufferedTextOutput.cpp
tils/CallStack.cpp
tils/Debug.cpp
tils/FileMap.cpp
tils/IDataConnection.cpp
tils/IInterface.cpp
tils/IMemory.cpp
tils/IPCThreadState.cpp
tils/IPermissionController.cpp
tils/IServiceManager.cpp
tils/InetAddress.cpp
tils/LogSocket.cpp
tils/MODULE_LICENSE_APACHE2
tils/MemoryBase.cpp
tils/MemoryDealer.cpp
tils/MemoryHeapBase.cpp
tils/MemoryHeapPmem.cpp
tils/NOTICE
tils/Parcel.cpp
tils/Pipe.cpp
tils/ProcessState.cpp
tils/README
tils/RefBase.cpp
tils/ResourceTypes.cpp
tils/SharedBuffer.cpp
tils/Socket.cpp
tils/Static.cpp
tils/StopWatch.cpp
tils/String16.cpp
tils/String8.cpp
tils/SystemClock.cpp
tils/TextOutput.cpp
tils/Threads.cpp
tils/TimerProbe.cpp
tils/Timers.cpp
tils/Unicode.cpp
tils/VectorImpl.cpp
tils/ZipEntry.cpp
tils/ZipFile.cpp
tils/ZipFileCRO.cpp
tils/ZipFileRO.cpp
tils/ZipUtils.cpp
tils/characterData.h
tils/executablepath_darwin.cpp
tils/executablepath_linux.cpp
tils/futex_synchro.c
tils/misc.cpp
tils/ported.cpp
90329a69f8e26626c3dc51c50a287e47931afe18 17-Jan-2009 James E. Blair <corvus@gnu.org> Fix issue #1324: No audible call-waiting indication when in-call volume
is low

http://code.google.com/p/android/issues/detail?id=1324
Re-base the internally generated in-call audio volume so that it is
never muted, which is already the case for the hardware routed in-call
audio.
udioflinger/AudioFlinger.cpp
076357b8567458d4b6dfdcf839ef751634cd2bfb 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
udioflinger/A2dpAudioInterface.cpp
udioflinger/A2dpAudioInterface.h
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
udioflinger/AudioHardwareGeneric.h
i/Camera.cpp
tils/Threads.cpp
3dec7d563a2f3e1eb967ce2054a00b6620e3558c 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
udioflinger/A2dpAudioInterface.cpp
udioflinger/A2dpAudioInterface.h
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
udioflinger/AudioHardwareGeneric.h
i/Camera.cpp
tils/Threads.cpp
efd826e911e500024bf8024fd241e0f8e12e677f 11-Feb-2009 Adrian Taylor <adrian@macrobug.com> Fixing LayerScreenshot bitmap config value.
urfaceflinger/LayerScreenshot.cpp
3001a035439d8134a7d70d796376d1dfbff3cdcd 19-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132276
udioflinger/A2dpAudioInterface.cpp
udioflinger/A2dpAudioInterface.h
udioflinger/AudioDumpInterface.h
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
udioflinger/AudioHardwareGeneric.cpp
udioflinger/AudioHardwareGeneric.h
udioflinger/AudioHardwareStub.cpp
udioflinger/AudioHardwareStub.h
31d459d81af65453bb346c1a3133df50f1fb0b74 14-Feb-2009 Rebecca Schultz Zavin <rebecca@android.com> Add getBufferCount API to Overlay objects

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
i/Overlay.cpp
bc4afde167513f7efe76012015f9fa3641c156cf 14-Feb-2009 Rebecca Schultz Zavin <rebecca@android.com> Need to dup file descriptor when reading from the binder for native handles

When reading a native handle that has passed through the binder,
the fds have to be duped to prevent them from getting closed when the binder
object is destructed.

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
tils/Parcel.cpp
da996f390e17e16f2dfa60e972e7ebc4f868f37e 13-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@131421
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
urfaceflinger/Android.mk
urfaceflinger/Layer.cpp
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
urfaceflinger/LayerOrientationAnim.cpp
urfaceflinger/LayerScreenshot.cpp
urfaceflinger/LayerScreenshot.h
urfaceflinger/RFBServer.cpp
urfaceflinger/RFBServer.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
i/ISurface.cpp
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
udioflinger/A2dpAudioInterface.cpp
udioflinger/A2dpAudioInterface.h
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
urfaceflinger/Android.mk
urfaceflinger/BootAnimation.cpp
urfaceflinger/BootAnimation.h
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/DisplayHardware/DisplayHardware.h
urfaceflinger/Layer.cpp
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBitmap.cpp
urfaceflinger/LayerBitmap.h
urfaceflinger/LayerBlur.cpp
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
urfaceflinger/LayerOrientationAnim.cpp
urfaceflinger/LayerOrientationAnim.h
urfaceflinger/LayerScreenshot.cpp
urfaceflinger/OrientationAnimation.cpp
urfaceflinger/OrientationAnimation.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger/VRamHeap.cpp
i/Camera.cpp
i/CameraParameters.cpp
i/EGLDisplaySurface.cpp
i/EGLNativeWindowSurface.cpp
i/EventHub.cpp
i/ICamera.cpp
i/ICameraClient.cpp
i/ISurface.cpp
i/Overlay.cpp
i/PixelFormat.cpp
tils/Parcel.cpp
tils/ResourceTypes.cpp
tils/String8.cpp
207637327511c960805713971e2e7dd11cb9c290 26-Jan-2009 Jean-Baptiste Queru <jbq@google.com> Add missing <limits.h> include

This should fix the build for gcc 4.3.2
urfaceflinger/SurfaceFlinger.cpp
f1e484acb594a726fb57ad0ae4cfe902c7f35858 22-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127436
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
22f7dfd23490a3de2f21ff96949ba47003aac8f8 20-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127101
udioflinger/A2dpAudioInterface.cpp
urfaceflinger/LayerBuffer.h
i/Camera.cpp
i/Overlay.cpp
tils/Parcel.cpp
9266c558bf1d21ff647525ff99f7dadbca417309 16-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@126645
udioflinger/A2dpAudioInterface.cpp
udioflinger/A2dpAudioInterface.h
udioflinger/Android.mk
udioflinger/AudioDumpInterface.h
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
udioflinger/AudioHardwareGeneric.h
udioflinger/AudioHardwareStub.h
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
urfaceflinger/tests/Android.mk
urfaceflinger/tests/overlays/Android.mk
urfaceflinger/tests/overlays/overlays.cpp
i/Android.mk
i/EventHub.cpp
i/ISurface.cpp
i/Overlay.cpp
b798689749c64baba81f02e10cf2157c747d6b46 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
udioflinger/A2dpAudioInterface.cpp
udioflinger/A2dpAudioInterface.h
udioflinger/AudioDumpInterface.cpp
udioflinger/AudioDumpInterface.h
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
udioflinger/AudioHardwareGeneric.cpp
udioflinger/AudioHardwareGeneric.h
udioflinger/AudioHardwareStub.cpp
udioflinger/AudioHardwareStub.h
urfaceflinger/BootAnimation.cpp
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/DisplayHardware/DisplayHardware.h
urfaceflinger/Layer.cpp
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBlur.cpp
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
urfaceflinger/LayerScreenshot.cpp
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger/Transform.h
i/Camera.cpp
i/ICamera.cpp
i/IOverlay.cpp
i/ISurface.cpp
i/Overlay.cpp
i/Region.cpp
tils/MemoryHeapBase.cpp
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
udioflinger/A2dpAudioInterface.cpp
udioflinger/A2dpAudioInterface.h
udioflinger/Android.mk
udioflinger/AudioDumpInterface.cpp
udioflinger/AudioDumpInterface.h
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
udioflinger/AudioHardwareGeneric.cpp
udioflinger/AudioHardwareGeneric.h
udioflinger/AudioHardwareInterface.cpp
udioflinger/AudioHardwareStub.cpp
udioflinger/AudioHardwareStub.h
udioflinger/AudioMixer.cpp
udioflinger/AudioMixer.h
udioflinger/AudioResampler.cpp
udioflinger/AudioResamplerCubic.cpp
udioflinger/AudioResamplerSinc.cpp
udioflinger/AudioResamplerSinc.h
urfaceflinger/Android.mk
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/DisplayHardware/DisplayHardware.h
urfaceflinger/DisplayHardware/DisplayHardwareBase.cpp
urfaceflinger/GPUHardware/GPUHardware.cpp
urfaceflinger/GPUHardware/GPUHardware.h
urfaceflinger/Layer.cpp
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBlur.cpp
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
urfaceflinger/LayerDim.cpp
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger/VRamHeap.cpp
urfaceflinger/VRamHeap.h
i/Android.mk
i/BlitHardware.cpp
i/Camera.cpp
i/EGLDisplaySurface.cpp
i/EGLNativeWindowSurface.cpp
i/EventHub.cpp
i/ICamera.cpp
i/ICameraClient.cpp
i/IOverlay.cpp
i/ISurface.cpp
i/ISurfaceFlingerClient.cpp
i/Overlay.cpp
i/Surface.cpp
i/Time.cpp
tils/Android.mk
tils/CallStack.cpp
tils/IPCThreadState.cpp
tils/LogSocket.cpp
tils/MemoryDealer.cpp
tils/MemoryHeapPmem.cpp
tils/ResourceTypes.cpp
tils/futex_synchro.c
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
udioflinger/Android.mk
udioflinger/AudioBufferProvider.h
udioflinger/AudioDumpInterface.cpp
udioflinger/AudioDumpInterface.h
udioflinger/AudioFlinger.cpp
udioflinger/AudioFlinger.h
udioflinger/AudioHardwareGeneric.cpp
udioflinger/AudioHardwareGeneric.h
udioflinger/AudioHardwareInterface.cpp
udioflinger/AudioHardwareStub.cpp
udioflinger/AudioHardwareStub.h
udioflinger/AudioMixer.cpp
udioflinger/AudioMixer.h
udioflinger/AudioResampler.cpp
udioflinger/AudioResampler.h
udioflinger/AudioResamplerCubic.cpp
udioflinger/AudioResamplerCubic.h
udioflinger/AudioResamplerSinc.cpp
udioflinger/AudioResamplerSinc.h
urfaceflinger/Android.mk
urfaceflinger/Barrier.h
urfaceflinger/BlurFilter.cpp
urfaceflinger/BlurFilter.h
urfaceflinger/BootAnimation.cpp
urfaceflinger/BootAnimation.h
urfaceflinger/CPUGauge.cpp
urfaceflinger/CPUGauge.h
urfaceflinger/DisplayHardware/DisplayHardware.cpp
urfaceflinger/DisplayHardware/DisplayHardware.h
urfaceflinger/DisplayHardware/DisplayHardwareBase.cpp
urfaceflinger/DisplayHardware/DisplayHardwareBase.h
urfaceflinger/GPUHardware/GPUHardware.cpp
urfaceflinger/GPUHardware/GPUHardware.h
urfaceflinger/Layer.cpp
urfaceflinger/Layer.h
urfaceflinger/LayerBase.cpp
urfaceflinger/LayerBase.h
urfaceflinger/LayerBitmap.cpp
urfaceflinger/LayerBitmap.h
urfaceflinger/LayerBlur.cpp
urfaceflinger/LayerBlur.h
urfaceflinger/LayerBuffer.cpp
urfaceflinger/LayerBuffer.h
urfaceflinger/LayerDim.cpp
urfaceflinger/LayerDim.h
urfaceflinger/LayerScreenshot.cpp
urfaceflinger/LayerScreenshot.h
urfaceflinger/MODULE_LICENSE_APACHE2
urfaceflinger/RFBServer.cpp
urfaceflinger/RFBServer.h
urfaceflinger/SurfaceFlinger.cpp
urfaceflinger/SurfaceFlinger.h
urfaceflinger/Tokenizer.cpp
urfaceflinger/Tokenizer.h
urfaceflinger/Transform.cpp
urfaceflinger/Transform.h
urfaceflinger/VRamHeap.cpp
urfaceflinger/VRamHeap.h
urfaceflinger/clz.cpp
urfaceflinger/clz.h
i/Android.mk
i/BlitHardware.cpp
i/Camera.cpp
i/CameraParameters.cpp
i/EGLDisplaySurface.cpp
i/EGLNativeWindowSurface.cpp
i/EventHub.cpp
i/EventRecurrence.cpp
i/ICamera.cpp
i/ICameraClient.cpp
i/ICameraService.cpp
i/ISurface.cpp
i/ISurfaceComposer.cpp
i/ISurfaceFlingerClient.cpp
i/KeyCharacterMap.cpp
i/KeyLayoutMap.cpp
i/KeyLayoutMap.h
i/LayerState.cpp
i/MODULE_LICENSE_APACHE2
i/NOTICE
i/PixelFormat.cpp
i/Point.cpp
i/Rect.cpp
i/Region.cpp
i/Surface.cpp
i/SurfaceComposerClient.cpp
i/SurfaceFlingerSynchro.cpp
i/Time.cpp
tils/Android.mk
tils/Asset.cpp
tils/AssetDir.cpp
tils/AssetManager.cpp
tils/Binder.cpp
tils/BpBinder.cpp
tils/BufferedTextOutput.cpp
tils/CallStack.cpp
tils/Debug.cpp
tils/FileMap.cpp
tils/IDataConnection.cpp
tils/IInterface.cpp
tils/IMemory.cpp
tils/IPCThreadState.cpp
tils/IPermissionController.cpp
tils/IServiceManager.cpp
tils/InetAddress.cpp
tils/LogSocket.cpp
tils/MODULE_LICENSE_APACHE2
tils/MemoryBase.cpp
tils/MemoryDealer.cpp
tils/MemoryHeapBase.cpp
tils/MemoryHeapPmem.cpp
tils/NOTICE
tils/Parcel.cpp
tils/Pipe.cpp
tils/ProcessState.cpp
tils/README
tils/RefBase.cpp
tils/ResourceTypes.cpp
tils/SharedBuffer.cpp
tils/Socket.cpp
tils/Static.cpp
tils/StopWatch.cpp
tils/String16.cpp
tils/String8.cpp
tils/SystemClock.cpp
tils/TextOutput.cpp
tils/Threads.cpp
tils/TimerProbe.cpp
tils/Timers.cpp
tils/Unicode.cpp
tils/VectorImpl.cpp
tils/ZipEntry.cpp
tils/ZipFile.cpp
tils/ZipFileCRO.cpp
tils/ZipFileRO.cpp
tils/ZipUtils.cpp
tils/characterData.h
tils/executablepath_darwin.cpp
tils/executablepath_linux.cpp
tils/futex_synchro.c
tils/misc.cpp
tils/ported.cpp