2553 Commits

Author SHA1 Message Date
Chet Haase
de69817b3c Merge "Reuse of native display list objects" into honeycomb 2011-01-06 15:02:51 -08:00
Jamie Gennis
ff2dc46c12 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
2011-01-06 13:31:53 -08:00
Jamie Gennis
68e4a7ac84 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
2011-01-06 13:20:47 -08:00
Jamie Gennis
0a53d5c81b 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
2011-01-06 13:12:35 -08:00
Chet Haase
5977baa1fa Reuse of native display list objects
Change-Id: Ia4553e23930ad20e56c11faa7809be788a1ad4bb
2011-01-06 12:50:30 -08:00
Romain Guy
325a0f969c The font cache should respect the fake bold flag.
Change-Id: Ie4edc9ba46610edde831b55e769944e9a19bdcb5
2011-01-05 15:33:37 -08:00
Jason parks
ac1325bcd3 Merge "Add decryption support to MountService." 2011-01-05 11:56:42 -08:00
Jason parks
5af0b916f8 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
2011-01-05 12:32:49 -06:00
Jason Sams
49945c0ff6 fix bug 3313505
Shader cache cleanup could occur in wrong thread
during RS teardown.

Change-Id: Iffed41de046147db30885e6815826e3b640020c1
2011-01-05 03:37:48 -08:00
Wu-cheng Li
0e73cdc983 Camera::create should fail when it fails to connect the camera.
bug:3197565

Change-Id: I3439a25c06b00615e8257e6b3db85df081643643
2011-01-05 13:14:30 +08:00
Jeff Brown
b4ff35df5c 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
2011-01-04 17:31:24 -08:00
Shih-wei Liao
05d17b0222 Rename bcc::BCCscript -> bcc::Script. Ideally, should do:
include bcc.h instead of forward declaration.

Change-Id: I649f62d240ed4e13eb95a8988a9ee202b19e7436
2011-01-03 22:55:13 +08:00
Jason Sams
69011ff5e1 Merge "Move adapter2D to a derived class from Allocation." 2010-12-29 16:27:00 -08:00
Jason Sams
49a05d7b82 Move adapter2D to a derived class from Allocation.
Change-Id: I7e9d8b0028ba95956476f253da38dbe64564d0da
2010-12-29 14:31:29 -08:00
Jeff Brown
8235404786 Merge "Add initial support for cursor-based pointing devices." 2010-12-29 13:22:08 -08:00
Jeff Brown
83c09685f2 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
2010-12-29 13:19:53 -08:00
Jean-Baptiste Queru
827521a8e3 am 6637e307: am bfb5f596: Merge "Fix for writing empty strings to Parcel::writeString8()"
* commit '6637e307494475b85afe8869d312d4a2f832d8f4':
  Fix for writing empty strings to Parcel::writeString8()
2010-12-28 11:54:08 -08:00
Jean-Baptiste Queru
6637e30749 am bfb5f596: Merge "Fix for writing empty strings to Parcel::writeString8()"
* commit 'bfb5f5966b36c4960b56f6de10ba261332208db9':
  Fix for writing empty strings to Parcel::writeString8()
2010-12-28 11:39:21 -08:00
Jason Sams
5c68a712da Fix teardown bug found in books.
Change-Id: I9ac449b644108148b331e0c552f289bf80a07f7e
2010-12-24 14:42:54 -08:00
Jeff Brown
fa93584a4f 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)
2010-12-23 12:43:48 -08:00
Shih-wei Liao
c5300f14ad Clean-up.
Change-Id: I43045da43a5e48e1bf759cd18c1b90d45f243450
2010-12-23 23:07:02 +08:00
Jeff Brown
eb9f7a01b0 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
2010-12-22 16:00:21 -08:00
Pravat Dalbehera
b803c04cda 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
2010-12-22 12:57:31 +01:00
Alex Sakhartchouk
b4d7bb6872 API cleanup for renderscript. This will be a multiproject commit.
Change-Id: Ida62d3a155285a20725be9daa62217faef1c3734
2010-12-21 14:57:04 -08:00
Patrick Dubroy
96abab264e Merge "Ensure bitmaps aren't freed while referenced from a display list" 2010-12-20 17:15:31 -08:00
Patrick Dubroy
f890fab5a6 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.
2010-12-20 17:02:15 -08:00
Jason Sams
e688213f6f Merge "Clean up Allocation buffer object api." 2010-12-20 14:28:52 -08:00
Simon Wilson
490db31b85 am 0c8ad64d: Merge "fix [3127755] Launcher is missing anti-aliasing" into gingerbread
* commit '0c8ad64d64b23e2bdd62bc217e327c7e0583784b':
  fix [3127755] Launcher is missing anti-aliasing
2010-12-20 14:11:46 -08:00
Jason Sams
d19524047f Clean up Allocation buffer object api.
Change-Id: Id3e2391a93a99f4c414a805ee33cfd113242a7e6
2010-12-20 12:55:28 -08:00
Shih-wei Liao
eeca435dc6 Stale cache management to address a P1 bug # 3296131.
Change-Id: I593f35a91c4a14c055828f8989fe01b9e7790039
2010-12-20 21:02:32 +08:00
Alex Sakhartchouk
e27cdeeecb API reaview cleanup
Change-Id: Ib1aaf81130ffa6b5e6c60096c27c969e8891db3f
2010-12-17 11:41:08 -08:00
Shih-wei Liao
667fb848aa Whenever LoadBinary fails, recompile. Fixing the multi-instance bug.
Change-Id: Ib1565efe1353ed788a3ed3c81c6067e92d8ef0e5
2010-12-16 04:58:35 -08:00
Romain Guy
b146b1214e Fix text shadow rendering issue.
Change-Id: Ic9eb0d38ad684d2f2c95a4f586f865db911cb872
2010-12-15 17:28:30 -08:00
Mathias Agopian
f9954c7eab fix [3127755] Launcher is missing anti-aliasing
Enable limited forms of mipmaping when possible.

Change-Id: I39ad90becaa4048844fdbbbcb187333e7d59fc6a
2010-12-15 16:59:55 -08:00
Alex Sakhartchouk
0857196107 Cleanup and refactoring of an earlier cl.
Change-Id: I5e356ed88375a1620846e0c500659e3b7ead5030
2010-12-15 10:11:31 -08:00
Jason Sams
1eb9f161a6 Merge "Fix mipmap bug introduced with Allocation cleanup. Add syncAll to rsg headers." 2010-12-15 02:11:26 -08:00
Jason Sams
6d8eb266dd Fix mipmap bug introduced with Allocation cleanup.
Add syncAll to rsg headers.

Change-Id: I02c953f3fddab3c6f4e98570cdad45a59711bbde
2010-12-15 01:41:00 -08:00
Romain Guy
8d0d4783a0 Cleanup OpenGLRenderer::drawLines()
Change-Id: I3545a616e964335897c6e4148c431a07a2ce2a8b
2010-12-14 20:13:35 -08:00
Patrick Dubroy
982b71bf47 Merge "Allocate bitmap backing buffers in the Java heap." 2010-12-14 16:56:07 -08:00
Patrick Dubroy
e4ac2d6b57 Allocate bitmap backing buffers in the Java heap.
Change-Id: I60f6ccff13357c1c518e9d56b02fe0171637edd1
2010-12-14 16:50:50 -08:00
Romain Guy
a9c9b53235 Merge "Continue cleanup refactoring in OpenGLRenderer." 2010-12-14 16:05:50 -08:00
Romain Guy
86568198f2 Continue cleanup refactoring in OpenGLRenderer.
Methods that still need refactoring:
    - drawLines
    - composeLayerRegion

Change-Id: If546641adf598d49c330988803667264fda50ac2
2010-12-14 16:04:12 -08:00
Mathias Agopian
52e6ada69e Merge "minor clean-up. SurfaceFlinger doesn't need libpixelflinger.so." 2010-12-14 15:51:32 -08:00
Mathias Agopian
aa0e56f9f2 Merge "dump callstack on Surface use error" 2010-12-14 15:51:22 -08:00
Jason Sams
fc29088e58 Merge "Add support for non-malloc backed textures." 2010-12-14 14:32:36 -08:00
Romain Guy
fa7952dbb8 Colors are in the [0..1] range, not [0..255]
This fixes rendering in YouTube and other applications.

Change-Id: Ib5f3df632cde97374113ed42f895f136b2796373
2010-12-14 13:45:54 -08:00
Romain Guy
89f4ec6a83 Merge "Colors are in the [0..1] range, not [0..255]" 2010-12-14 13:45:07 -08:00
Romain Guy
b36ba1d6d7 Merge "OpenGLRenderer would not render colors < ALPHA_THRESHOLD Bug #3282805" 2010-12-14 11:52:02 -08:00
Shih-wei Liao
6b32fab1db 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
2010-12-14 11:17:20 -08:00
Romain Guy
5536841e54 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
2010-12-14 10:59:41 -08:00