4214 Commits

Author SHA1 Message Date
Dianne Hackborn
a573f6a1d9 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
2012-02-09 18:06:01 -08:00
Daniel Lam
f7c761e5d3 Refactored query function from SurfaceTexture into BufferQueue
Change-Id: Id1cb6cc38d01edb4fcfcad867c5a7693bdcc3ab1
2012-02-09 16:16:51 -08:00
Jason Sams
206904b2af am 468a9715: Merge "Remove unused param."
* commit '468a971512f4665b13e83cc3c7dc24c9031b14eb':
  Remove unused param.
2012-02-09 15:19:10 -08:00
Jason Sams
87e2721f89 Remove unused param.
Change-Id: Idf26c3bf4eec7ed17dbfb99b40c314bce7996101
2012-02-09 14:50:50 -08:00
Jamie Gennis
b64807855c am 1c90e73f: Merge "Refactored ISurfaceTexture calls from SurfaceTexture into BufferQueue."
* commit '1c90e73f5d22c3d8e07b236ec8f33a42c01e056f':
  Refactored ISurfaceTexture calls from SurfaceTexture into BufferQueue.
2012-02-09 11:09:30 -08:00
Jamie Gennis
1c90e73f5d Merge "Refactored ISurfaceTexture calls from SurfaceTexture into BufferQueue." 2012-02-09 11:08:02 -08:00
Jason Sams
811adfe1b4 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.
2012-02-07 18:58:19 -08:00
Jason Sams
5b6abb38f0 Merge "Fix bug in generated code for functions with inband data from pointers. Passing zero length data would desync return command stream." 2012-02-07 18:56:39 -08:00
Jason Sams
d51280f10b Fix bug in generated code for functions with inband data
from pointers.  Passing zero length data would desync
return command stream.

Change-Id: I273a6a44636a203d8305ddff3d6607eae9f9ec8a
2012-02-07 18:54:03 -08:00
Romain Guy
61d8ce6f7b am 28587f44: Merge "Fix the system"
* commit '28587f445a2af6d94d1b215e019e8bcc377c17a1':
  Fix the system
2012-02-07 18:24:53 -08:00
Romain Guy
28587f445a Merge "Fix the system" 2012-02-07 18:22:43 -08:00
Romain Guy
21c9c8551d Fix the system
Change-Id: Ie097ea5d6c0af9c5929b8c5deb76b4824d5de787
2012-02-07 18:22:07 -08:00
Alex Sakhartchouk
257e8a9a4f Making shader compilation errors throw a Java exception.
Change-Id: I612142b6fe1b75eab62e89950c3bea6f326cb730
2012-02-07 18:06:13 -08:00
Romain Guy
29a7d0d62e am 68c02e25: Merge "Preliminary support for clipRect(Rect, Op)"
* commit '68c02e25e84e9814d313b43680631b98e25fa6d5':
  Preliminary support for clipRect(Rect, Op)
2012-02-07 17:09:08 -08:00
Romain Guy
68c02e25e8 Merge "Preliminary support for clipRect(Rect, Op)" 2012-02-07 17:07:00 -08:00
Romain Guy
967e2bf3ac 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
2012-02-07 17:04:34 -08:00
Jason Sams
eb5b73504d Merge commit 'bdeec118' into manualmerge
Conflicts:
	libs/rs/rsThreadIO.h

Change-Id: I7f448996a86f41188b47ec3dc353c364692e8bf2
2012-02-07 16:40:51 -08:00
Jason Sams
bdeec118a1 Merge "Implement RS VSync on new vsync infrastructure." 2012-02-07 15:39:44 -08:00
Jason Sams
4c2e4c80ce Implement RS VSync on new vsync infrastructure.
Change-Id: I662159a086a56e28732dd64a3a3cb30f8d4b72b1

Replace lockless fifo from server to client with sockets.

Change-Id: I99a4ab4f18496c0fbac96ee7b8099797af4712ea
2012-02-07 15:32:08 -08:00
Simon Wilson
f835ca0271 am c92e6f14: AccessoryChat: use platform APIs and support Galaxy Nexus
* commit 'c92e6f14f9ac6c86b7784f8a21d7077ea7cae0bb':
  AccessoryChat: use platform APIs and support Galaxy Nexus
2012-02-07 15:01:02 -08:00
Simon Wilson
c92e6f14f9 AccessoryChat: use platform APIs and support Galaxy Nexus
Change-Id: I171c2781f3d447bec46f0179351e1b18721b1b89
2012-02-07 14:36:06 -08:00
Daniel Lam
70e80aacf9 Refactored ISurfaceTexture calls from SurfaceTexture into BufferQueue.
Change-Id: I514f6b802f6b49c9ae27bed37bf0b9d23da03c9a
2012-02-07 13:57:01 -08:00
Mathias Agopian
7710e2f8c6 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
2012-02-06 19:20:42 -08:00
Mathias Agopian
efa08a6c21 make sure to ignore SIGPIPE in the write side of BitTube
Change-Id: If4f037f4403d3ecbcd5f91248354765fc0fa13cb
2012-02-06 19:17:56 -08:00
Amith Yamasani
bf6644a7e6 am 1ef7d131: Merge "Multi-user - 1st major checkin"
* commit '1ef7d13172248848805b9ceb6161b0741d8580dd':
  Multi-user - 1st major checkin
2012-02-03 12:06:38 -08:00
Amith Yamasani
1ef7d13172 Merge "Multi-user - 1st major checkin" 2012-02-03 12:04:40 -08:00
Amith Yamasani
742a671273 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
2012-02-03 12:01:47 -08:00
Stephen Hines
0a29fe1be1 am cc2daede: Merge "Properly recover from failed compilation."
* commit 'cc2daede56257f0f1f490a1aebf5b9b898d9816a':
  Properly recover from failed compilation.
2012-02-02 21:28:17 -08:00
Stephen Hines
cc2daede56 Merge "Properly recover from failed compilation." 2012-02-02 21:25:19 -08:00
Romain Guy
d6a0b0407a am 8d13ef3c: Merge "Separate interface definition and implementation of Snapshot"
* commit '8d13ef3c59f3087df29a226f3cdc155faa4ac903':
  Separate interface definition and implementation of Snapshot
2012-02-02 17:36:20 -08:00
Romain Guy
8d13ef3c59 Merge "Separate interface definition and implementation of Snapshot" 2012-02-02 17:33:47 -08:00
Romain Guy
ada4d53d50 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
2012-02-02 17:31:16 -08:00
Mathias Agopian
e10c441def am b545eaa9: Merge "separate transactions from updates"
* commit 'b545eaa9cbe39b8209a40044aa0a5f00846278d4':
  separate transactions from updates
2012-02-02 16:30:57 -08:00
Mathias Agopian
b545eaa9cb Merge "separate transactions from updates" 2012-02-02 16:28:05 -08:00
Romain Guy
e94fdd9a15 am bc18f289: Merge "Disable debugging code in the font renderer"
* commit 'bc18f289073a47b1cbf84fcd3e3e79c9d34c0990':
  Disable debugging code in the font renderer
2012-02-02 15:17:59 -08:00
Romain Guy
bc18f28907 Merge "Disable debugging code in the font renderer" 2012-02-02 15:16:30 -08:00
Romain Guy
b629490ffb Disable debugging code in the font renderer
Change-Id: I92463057ff4ae712bb25789db1667ff1ecfd389f
2012-02-02 15:13:18 -08:00
Alex Sakhartchouk
98bea4a3ec 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.
2012-02-02 14:56:34 -08:00
Alex Sakhartchouk
7042613c65 Merge "Fix an incorrect assert that doesn't account for element array size." 2012-02-02 14:54:32 -08:00
Glenn Kasten
fa16c0c7df am ac1748ce: Merge "Thread::getTid returns pid_t gettid() after run"
* commit 'ac1748ce3301b3dab3c1aa6c0d35fa877554ebbb':
  Thread::getTid returns pid_t gettid() after run
2012-02-02 13:26:49 -08:00
Glenn Kasten
ac1748ce33 Merge "Thread::getTid returns pid_t gettid() after run" 2012-02-02 13:24:52 -08:00
Stephen Hines
862dadb7a7 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
2012-02-02 13:23:20 -08:00
Alex Sakhartchouk
bf3c3f2ab1 Fix an incorrect assert that doesn't account for element array size.
Change-Id: Ibcb5c55d91967603391a1721137d010a85025990
2012-02-02 09:47:26 -08:00
Mathias Agopian
9a9dbd5921 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
2012-02-01 20:43:06 -08:00
Stephen Hines
dee8be5b89 am bb3968fe: Merge "Remove wrapper version check assert."
* commit 'bb3968fed8e7fb2b53ac32d40e26e0d21600a922':
  Remove wrapper version check assert.
2012-02-01 17:11:44 -08:00
Stephen Hines
bb3968fed8 Merge "Remove wrapper version check assert." 2012-02-01 17:09:12 -08:00
Stephen Hines
07c12933e3 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
2012-02-01 16:56:03 -08:00
Romain Guy
9ffa5a5829 am bbf1bc8b: Merge "Add optional metadata to initiliaze the render threat."
* commit 'bbf1bc8b6c3348265930ce08506efbbd3c5ab61f':
  Add optional metadata to initiliaze the render threat.
2012-02-01 16:17:23 -08:00
Romain Guy
bbf1bc8b6c Merge "Add optional metadata to initiliaze the render threat." 2012-02-01 16:15:17 -08:00
Romain Guy
211370fd94 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
2012-02-01 16:10:55 -08:00