OSDN Git Service

android-x86/frameworks-native.git
10 years agoFix build. optional tests were broken.
Mathias Agopian [Wed, 14 Aug 2013 23:26:43 +0000 (16:26 -0700)]
Fix build. optional tests were broken.

Change-Id: Iba9f5cb57f134559e1f9c55e293578d9f5d8cb96

10 years agoMerge "don't reallocate the mesh each time we use it" into klp-dev
Mathias Agopian [Wed, 14 Aug 2013 22:43:25 +0000 (22:43 +0000)]
Merge "don't reallocate the mesh each time we use it" into klp-dev

10 years agoMerge "SurfaceFlinger now uses GLES 2.x when available" into klp-dev
Mathias Agopian [Wed, 14 Aug 2013 22:42:51 +0000 (22:42 +0000)]
Merge "SurfaceFlinger now uses GLES 2.x when available" into klp-dev

10 years agodon't reallocate the mesh each time we use it
Mathias Agopian [Wed, 14 Aug 2013 03:51:23 +0000 (20:51 -0700)]
don't reallocate the mesh each time we use it

the Mesh object can be part of each Layer (at least currently).
also reworked the Mesh code a bit to make it easier to access
the vertex data.

Change-Id: I0490851ba898f0aa2e55b62958dcd8bdb535e98b

10 years agoMerge "dumpstate: switch to HAL static libraries" into klp-dev
Todd Poynor [Wed, 14 Aug 2013 00:22:41 +0000 (00:22 +0000)]
Merge "dumpstate: switch to HAL static libraries" into klp-dev

10 years agodumpstate: switch to HAL static libraries
Todd Poynor [Tue, 13 Aug 2013 23:30:01 +0000 (16:30 -0700)]
dumpstate: switch to HAL static libraries

Change-Id: I865a0b4b4a84a2d54a239e7b09874287f0c1ad56

10 years agoSurfaceFlinger now uses GLES 2.x when available
Mathias Agopian [Thu, 8 Aug 2013 04:24:32 +0000 (21:24 -0700)]
SurfaceFlinger now uses GLES 2.x when available

Bug: 8679321

Change-Id: I2b152d01fb4e2de2ea9fe87f1ddbd6826d7520d7

10 years agoallow "system" screenshots even when the secure flag is set
Mathias Agopian [Tue, 13 Aug 2013 22:55:43 +0000 (15:55 -0700)]
allow "system" screenshots even when the secure flag is set

we need too allow this case so that things like the rotation
animation can work.
with this change we only permit these screenshot if the
destination is SurfaceFlinger itself.

Bug: 10235036
Change-Id: I66fea5391e52b0d7f17f25827572b236f2d9eb71

10 years agoMerge "Don't swallow eglCreateContext errors" into klp-dev
Jesse Hall [Tue, 13 Aug 2013 18:33:07 +0000 (18:33 +0000)]
Merge "Don't swallow eglCreateContext errors" into klp-dev

10 years agomake sure GLConsumer::releaseTexImage() works after detachFromContext()
Mathias Agopian [Fri, 9 Aug 2013 01:16:21 +0000 (18:16 -0700)]
make sure GLConsumer::releaseTexImage() works after detachFromContext()

Change-Id: I27e0bc57e927d47b2b98113ee37b5396bcc72019

10 years agoDon't swallow eglCreateContext errors
Jesse Hall [Mon, 12 Aug 2013 23:43:34 +0000 (16:43 -0700)]
Don't swallow eglCreateContext errors

If the implementation eglCreateContext failed, we called
eglGetError(), so we could check that it set the EGL error properly.
But since we'd already called this, when the app called eglGetError()
it would get EGL_SUCCESS!

Bug: 10181333
Change-Id: Ic45d3a8fcb8c4421e04844c6d2f52761790b5948

10 years agoMerge "make sure we have a context when creating the 1st surface" into klp-dev
Mathias Agopian [Fri, 9 Aug 2013 04:41:19 +0000 (04:41 +0000)]
Merge "make sure we have a context when creating the 1st surface" into klp-dev

10 years agomake GLConsumer's debug texture static
Mathias Agopian [Fri, 9 Aug 2013 00:46:48 +0000 (17:46 -0700)]
make GLConsumer's debug texture static

this is so that we don't burn a gralloc handle and a bit
of memory per GLConsumer.

Change-Id: I30c3e7ec45d7f1b5426aca8e06c7716870877706

10 years agomake sure we have a context when creating the 1st surface
Mathias Agopian [Thu, 8 Aug 2013 03:10:20 +0000 (20:10 -0700)]
make sure we have a context when creating the 1st surface

also add an option to dump the stack trace when
calling a GL function without a context.

Change-Id: I57b72bb8c322ac4253c3077bf150621bd9863b69

10 years agoAdd ISurfaceComposer::destroyDisplay
Jesse Hall [Thu, 8 Aug 2013 19:15:49 +0000 (12:15 -0700)]
Add ISurfaceComposer::destroyDisplay

Bug: 10191053
Change-Id: Ia89286f95421344a60ffedaaca5825c4e3cd7f9e

10 years agoMerge "don't hardcode debug texture dimensions"
Mathias Agopian [Wed, 7 Aug 2013 20:36:07 +0000 (20:36 +0000)]
Merge "don't hardcode debug texture dimensions"

10 years agodon't hardcode debug texture dimensions
Mathias Agopian [Wed, 7 Aug 2013 20:35:20 +0000 (13:35 -0700)]
don't hardcode debug texture dimensions

Change-Id: I356333801d246a8cafb3e977a77dc7325e8b822d

10 years agoam 046b72fc: Merge "fix a possible deadlock when removing a layer and destroying...
Jean-Baptiste Queru [Wed, 7 Aug 2013 20:18:51 +0000 (13:18 -0700)]
am 046b72fc: Merge "fix a possible deadlock when removing a layer and destroying a client"

* commit '046b72fc5d93aae3b47b88b9f6683512d01d75d0':
  fix a possible deadlock when removing a layer and destroying a client

10 years agobatteryservice: add battery current now and charge counter data
Todd Poynor [Wed, 31 Jul 2013 02:12:10 +0000 (19:12 -0700)]
batteryservice: add battery current now and charge counter data

Change-Id: I4b3ea25342d4a03a8e38bfee2ef3b1ce54f82582

10 years agoMerge "Add EGL_KHR_get_all_proc_addresses to extension string"
Jesse Hall [Wed, 7 Aug 2013 15:23:02 +0000 (15:23 +0000)]
Merge "Add EGL_KHR_get_all_proc_addresses to extension string"

10 years agoMerge "Set the swap interval of virtual display surfaces to 0"
Jesse Hall [Wed, 7 Aug 2013 15:23:00 +0000 (15:23 +0000)]
Merge "Set the swap interval of virtual display surfaces to 0"

10 years agoSet the swap interval of virtual display surfaces to 0
Jesse Hall [Wed, 7 Aug 2013 00:08:53 +0000 (17:08 -0700)]
Set the swap interval of virtual display surfaces to 0

This prevents slow/malicious virtual display consumers from
backpressuring SurfaceFlinger and preventing it from updating other
displays.

Bug: 10193714
Change-Id: I3e877d97202628d2d9abea24b66576f38299c14d

10 years agofix tests more
Mathias Agopian [Tue, 6 Aug 2013 23:47:04 +0000 (16:47 -0700)]
fix tests more

Change-Id: I05c3dd6a22440844f8bd071f4c2b620b2bd8c720

10 years agofix tests
Mathias Agopian [Tue, 6 Aug 2013 23:42:05 +0000 (16:42 -0700)]
fix tests

Change-Id: I0f4d613481eda2c44a2d631a81d75de7e52e7a62

10 years agoremove support for glReadPixels screenshot path
Mathias Agopian [Tue, 6 Aug 2013 23:07:33 +0000 (16:07 -0700)]
remove support for glReadPixels screenshot path

this was only needed on some chipset we're not
supporting in KLP.

Change-Id: I2e8fc07f135030bd61d2e241a8e426f1a4316425

10 years agoAdd EGL_KHR_get_all_proc_addresses to extension string
Jesse Hall [Tue, 6 Aug 2013 22:31:22 +0000 (15:31 -0700)]
Add EGL_KHR_get_all_proc_addresses to extension string

We've had the extended behavior since Android 4.3, but the extension
hadn't been ratified by Khronos yet so we couldn't add it to the
extension string.

Bug: 9681677
Change-Id: I78842316a3ab7a3f66a0ac1a4742d837de664c4c

10 years agoFix build. 3rd attempt
Mathias Agopian [Tue, 6 Aug 2013 22:19:15 +0000 (15:19 -0700)]
Fix build. 3rd attempt

Change-Id: I4317b34fd07890ea7cf9db51be42d72ef21aca89

10 years agoAll consumers now take an IGraphicBufferConsumer instead of a BufferQueue
Mathias Agopian [Fri, 2 Aug 2013 08:40:18 +0000 (01:40 -0700)]
All consumers now take an IGraphicBufferConsumer instead of a BufferQueue

this means they only have access to the consumer end of
the interface. we had a lot of code that assumed consumers
where holding a BufferQueue (i.e.: both ends), so most of
this change is untangling in fix that

Bug: 9265647
Change-Id: Ic2e2596ee14c7535f51bf26d9a897a0fc036d22c

10 years agoMerge "fix a possible deadlock when removing a layer and destroying a client"
Jean-Baptiste Queru [Tue, 6 Aug 2013 18:37:12 +0000 (18:37 +0000)]
Merge "fix a possible deadlock when removing a layer and destroying a client"

10 years agofix a possible deadlock when removing a layer and destroying a client
Mathias Agopian [Wed, 5 Jun 2013 21:30:54 +0000 (14:30 -0700)]
fix a possible deadlock when removing a layer and destroying a client

generally the last reference to a Layer is released in commitTransaction()
with mStateLock held. Layer itself only holds weak references to Client,
however, ~Layer() briefly promotes this weak reference -- during that time
the all other strong references to that Client go away, ~Layer is left with
the last one... then hell breaks loose as ~Client is called, which in turn
needs to acquire mStateLock.

We fix this by holding a temporary copy of the drawing state during
the transaction so that the side-effects of copying the current
state into the drawing state are seen only after mStateLock has
been released.

Bug: 9106453
Change-Id: Ic5348ac12283500ead87286a37565e8da35f1db2

10 years agoMerge "BufferQueue: Support query of consumer usage bits"
Eino-Ville Talvala [Mon, 5 Aug 2013 21:10:45 +0000 (21:10 +0000)]
Merge "BufferQueue: Support query of consumer usage bits"

10 years agoMerge "Roll back recent change"
Andy McFadden [Fri, 2 Aug 2013 22:34:13 +0000 (22:34 +0000)]
Merge "Roll back recent change"

10 years agoRoll back recent change
Andy McFadden [Fri, 2 Aug 2013 22:31:45 +0000 (15:31 -0700)]
Roll back recent change

Disable dropping of frames based on timestamp.  Resume auto-
generating timestamps in Surface.

Bug 10151804

Change-Id: I15de26158e1d7ef22a5b150e685a126dc48ae2b4

10 years agoMerge "Binderize the consumer side of BufferQueue"
Mathias Agopian [Fri, 2 Aug 2013 20:35:26 +0000 (20:35 +0000)]
Merge "Binderize the consumer side of BufferQueue"

10 years agoMerge "Drop frames based on presentation timestamp"
Andy McFadden [Fri, 2 Aug 2013 16:53:11 +0000 (16:53 +0000)]
Merge "Drop frames based on presentation timestamp"

10 years agoBinderize the consumer side of BufferQueue
Mathias Agopian [Thu, 1 Aug 2013 03:09:53 +0000 (20:09 -0700)]
Binderize the consumer side of BufferQueue

While currently untested, this should allow to move the
BuffereQueue in the consumer process and have everything
work as usual.

Bug: 9265647

Change-Id: I9ca8f099f7c65b9a27b7e7a3643b46d1b58eacfc

10 years agoDrop frames based on presentation timestamp
Andy McFadden [Thu, 1 Aug 2013 20:37:42 +0000 (13:37 -0700)]
Drop frames based on presentation timestamp

If there are two or more buffers pending that are ready for
immediate presentation, drop all but the last one.

Any code that didn't explicitly specify timestamps for buffers
was using the default value (auto-generated "now").  As a result,
surfaceflinger would drop frames whenever more than one buffer
was queued.  We now use zero as the auto-generated timestamp,
and we don't set the timestamp in eglBeginFrame().

Change-Id: I187f42d33de227cd3411ff0dcd3b9ce1961457eb

10 years agolog an error when dequeueBuffer gets a NULL Fence
Mathias Agopian [Thu, 1 Aug 2013 22:48:40 +0000 (15:48 -0700)]
log an error when dequeueBuffer gets a NULL Fence

Bug: 9858745
Change-Id: If35d6a7d770bf0a42d55bc55880a9ddb721fcfd0

10 years agoremove unused code form GraphicBuffer
Mathias Agopian [Thu, 1 Aug 2013 02:18:22 +0000 (19:18 -0700)]
remove unused code form GraphicBuffer

Change-Id: I0dd67f1f93f654331e8f17b55730931dbc695ca7

10 years agoremove libutils
Alex Ray [Tue, 30 Jul 2013 19:48:57 +0000 (12:48 -0700)]
remove libutils

libutils is being moved from frameworks/native/ to system/core/ in order
to facilitate native C++ platform (non-frameworks) code.

Change-Id: I44089fb960591a40b8a9c30faabb10459d107d71

10 years agoFix BlobCache_test
Brian Carlstrom [Wed, 31 Jul 2013 08:08:36 +0000 (01:08 -0700)]
Fix BlobCache_test

Change-Id: I5b20aeb4dcff80f1e18e1165b8461d20034dc1ac

10 years agoMake Flattenable not virtual
Mathias Agopian [Tue, 30 Jul 2013 04:24:40 +0000 (21:24 -0700)]
Make Flattenable not virtual

Fallout from the Flattenable change, update all its uses.

Additionnaly, fix/tighten size checks when (un)flatten()ing
things.

Removed the assumption by some flattenables (e.g.: Fence)
that the size passed to them would be exact (it can
and will be larger in some cases)

The code in Parcel is a bit complicated so that we don't
have to expose the full implementation (and also to
keep the code smallish).

Change-Id: I0bf1c8aca2a3128491b4f45510bc46667e566dde

10 years agoMake Flattenable not virtual (libutils)
Mathias Agopian [Tue, 30 Jul 2013 04:24:40 +0000 (21:24 -0700)]
Make Flattenable not virtual (libutils)

Making an object Flattenable doesn't force it to
become virtual anymore. For instance, Fence and GraphicBuffer
are now non-virtual classes.

Also change Flatennable protocol a bit so that it updates
its parameters (pointers, sizes) to make it easier
to implement a flattenable in terms of other flattenables.

Change-Id: Ie81dc7637180b3c2cfcbaf644f8987ca804eb891

10 years agoMerge "EGL: fix eglTerminate blob cache behavior"
Jamie Gennis [Tue, 30 Jul 2013 22:37:57 +0000 (22:37 +0000)]
Merge "EGL: fix eglTerminate blob cache behavior"

10 years agoEGL: fix eglTerminate blob cache behavior
Jamie Gennis [Tue, 30 Jul 2013 22:10:02 +0000 (15:10 -0700)]
EGL: fix eglTerminate blob cache behavior

Bug: 9610573
Change-Id: I258e7e0d82ab76fbacf0b9c25d4f92fca6df04ac

10 years agoBufferQueue: Support query of consumer usage bits
Eino-Ville Talvala [Tue, 30 Jul 2013 21:05:02 +0000 (14:05 -0700)]
BufferQueue: Support query of consumer usage bits

Bug: 9592202
Change-Id: I61a17758200e61adaca695b426db3df0f6637d4c

10 years agoam 9f476fd0: Merge "Add a symbol to represent MNC=0"
Wink Saville [Tue, 30 Jul 2013 19:28:02 +0000 (12:28 -0700)]
am 9f476fd0: Merge "Add a symbol to represent MNC=0"

* commit '9f476fd08079701d1ad0f7c591667b6e673ed38e':
  Add a symbol to represent MNC=0

10 years agoMerge "Add a symbol to represent MNC=0"
Wink Saville [Tue, 30 Jul 2013 19:19:41 +0000 (19:19 +0000)]
Merge "Add a symbol to represent MNC=0"

10 years agoSurfaceFlinger: Set the result of binderized screencapture
Mike J. Chen [Tue, 30 Jul 2013 17:19:24 +0000 (10:19 -0700)]
SurfaceFlinger: Set the result of binderized screencapture

A recent change to screencapture to have the call to
IGraphicBufferProducer happen on the incoming binder
thread didn't set the result so the result was always
returned as NO_ERROR.

This made screencap fail on some devices (e.g. Wolfie)
which relies on some kind of fallback mechanism to
generate the screencap but the fallback mechanism
doesn't get triggered because the error isn't returned.

Bug: 9989385

Change-Id: I2aee91ea1034869fcbb0f49b9a0087c3cff43bbe
Signed-off-by: Mike J. Chen <mjchen@google.com>
10 years agosingle buffer mode for BufferQueue
Mathias Agopian [Wed, 24 Jul 2013 00:28:53 +0000 (17:28 -0700)]
single buffer mode for BufferQueue

Bug: 9891035
Change-Id: Id1ab5f911a6dc4c1d8235e65775b3d3635231ad4

10 years agofix build
Mathias Agopian [Sat, 27 Jul 2013 00:26:16 +0000 (17:26 -0700)]
fix build

Change-Id: I04df8ec96510b16e84054089f7c02609d8fe2b0c

10 years agoget rid of HAL pixelformats 5551 and 4444
Mathias Agopian [Fri, 26 Jul 2013 21:49:50 +0000 (14:49 -0700)]
get rid of HAL pixelformats 5551 and 4444

Change-Id: I39409103144c1ba09078c4ddc323a58987fb09ea

10 years agomake transparent pixels transparents again
Mathias Agopian [Fri, 26 Jul 2013 22:31:39 +0000 (15:31 -0700)]
make transparent pixels transparents again

apparently boolean logic in hard...

Change-Id: Ie70401fe12e0fa00b0b8c7cc475c1438cdbbf531

10 years agoAdd a symbol to represent MNC=0
Johan Redestig [Thu, 30 May 2013 06:30:42 +0000 (08:30 +0200)]
Add a symbol to represent MNC=0

Bug: 7170488
Change-Id: Icfd39fd0c739216e89446252ea0e7ceba6f002c6

10 years agoget rid of PixelFormatInfo and simplify things
Mathias Agopian [Fri, 26 Jul 2013 02:24:31 +0000 (19:24 -0700)]
get rid of PixelFormatInfo and simplify things

Change-Id: I025a362cc12d5b9b794fac14be500e25aab65396

10 years agoget rid of PIXEL_FORMAT_A_8
Mathias Agopian [Fri, 26 Jul 2013 00:25:05 +0000 (17:25 -0700)]
get rid of PIXEL_FORMAT_A_8

Change-Id: I4e409a69c01b95b48f20112084dd927e2d043407

10 years agoMerge "Fix a race in BufferQueue"
Mathias Agopian [Thu, 25 Jul 2013 02:17:52 +0000 (02:17 +0000)]
Merge "Fix a race in BufferQueue"

10 years agoadd libbatteryservice
Todd Poynor [Thu, 16 May 2013 21:51:15 +0000 (14:51 -0700)]
add libbatteryservice

IBatteryPropertiesListener is used by clients such as BatteryService to
receive notifications of changed battery/power status (from healthd).

IBatteryPropertiesRegistrar manages registrations of
IBatteryPropertiesListener clients.

Add BatteryService native header with defines from BatteryManager, and
class BatteryProperties to pass battery/power status around.

Change-Id: I44e2736e503b586794097b7b9d31d07fefd9b15a

10 years agodefaultServiceManager wait for service manager ready
Todd Poynor [Wed, 19 Jun 2013 00:25:37 +0000 (17:25 -0700)]
defaultServiceManager wait for service manager ready

If the service manager is not ready when we attempt to create a local
proxy, fail and retry.

Change-Id: I7d7300bc07cd70608793479aa3da282d066da7f6

10 years agoMerge "surfaceflinger: add frame duration logging"
Jamie Gennis [Wed, 24 Jul 2013 20:47:37 +0000 (20:47 +0000)]
Merge "surfaceflinger: add frame duration logging"

10 years agoMerge "libutils: give BasicHashtableImpl a virtual destructor"
Alex Ray [Wed, 24 Jul 2013 20:00:35 +0000 (20:00 +0000)]
Merge "libutils: give BasicHashtableImpl a virtual destructor"

10 years agoMerge "add static dependency on liblog"
Colin Cross [Wed, 24 Jul 2013 17:53:36 +0000 (17:53 +0000)]
Merge "add static dependency on liblog"

10 years agolibutils: give BasicHashtableImpl a virtual destructor
Alex Ray [Wed, 17 Jul 2013 23:57:21 +0000 (16:57 -0700)]
libutils: give BasicHashtableImpl a virtual destructor

Change-Id: I4ec590b060d732af5fe525670becbe778684247b

10 years agoFix a race in BufferQueue
Mathias Agopian [Wed, 24 Jul 2013 04:50:20 +0000 (21:50 -0700)]
Fix a race in BufferQueue

BufferQueue::dequeueBuffer() could incorrectly return
WOULD_BLOCK while in "cannot block" mode if it happened
while a consumer acquired the last allowed buffer
before releasing the old one (which is a valid thing
to do).

Change-Id: I318e5408871ba85e068ea9ef4dc9b578f1bb1043

10 years agoadd static dependency on liblog
Colin Cross [Wed, 24 Jul 2013 00:39:35 +0000 (17:39 -0700)]
add static dependency on liblog

Change-Id: Ibf8733142d52e4ffac2e3b26932d7196fb79c5a7

10 years agodumpstate: remove libutils dependency
Alex Ray [Tue, 23 Jul 2013 20:44:34 +0000 (13:44 -0700)]
dumpstate: remove libutils dependency

Change-Id: I9745f389402c01b90877612e060ac996eba99964

10 years agosurfaceflinger: add frame duration logging
Jamie Gennis [Wed, 17 Jul 2013 03:12:42 +0000 (20:12 -0700)]
surfaceflinger: add frame duration logging

Change-Id: Ib414a45e7e191f23a2726cbbbeb606e9ce68a3b5

10 years agoutils: move thread enums to system/core
Alex Ray [Wed, 24 Jul 2013 00:06:55 +0000 (17:06 -0700)]
utils: move thread enums to system/core

Change-Id: Ia97963cc9acf8661d01355786f5e7e7bf54581c2

10 years agoMerge "libbinder: include sys/uio.h instead of cutils/uio.h"
Colin Cross [Tue, 23 Jul 2013 23:35:48 +0000 (23:35 +0000)]
Merge "libbinder: include sys/uio.h instead of cutils/uio.h"

10 years agolibbinder: include sys/uio.h instead of cutils/uio.h
Colin Cross [Tue, 23 Jul 2013 21:52:34 +0000 (14:52 -0700)]
libbinder: include sys/uio.h instead of cutils/uio.h

libbinder is only built for the target, where bionic will provide
uio, so it does not need to include the libcutils wrapper around
uio for windows.

Change-Id: Ifc2dd353bf7ed51bf08ec0ae91c43b12830f94ba

10 years agoMerge "libbinder: add libutils dependency"
Alex Ray [Tue, 23 Jul 2013 21:49:37 +0000 (21:49 +0000)]
Merge "libbinder: add libutils dependency"

10 years agoMerge "Add controller numbers for gamepads / joysticks"
Michael Wright [Tue, 23 Jul 2013 20:52:42 +0000 (20:52 +0000)]
Merge "Add controller numbers for gamepads / joysticks"

10 years agolibbinder: add libutils dependency
Alex Ray [Tue, 23 Jul 2013 20:42:12 +0000 (13:42 -0700)]
libbinder: add libutils dependency

Change-Id: I30c7291b04788c98faa43843a51b026b8a01932c

10 years agoMerge "Add C++ library for ConnectivityManager"
Geremy Condra [Tue, 23 Jul 2013 17:52:22 +0000 (17:52 +0000)]
Merge "Add C++ library for ConnectivityManager"

10 years agoMerge "fix log messages and bogus error message"
Mathias Agopian [Tue, 23 Jul 2013 01:06:00 +0000 (01:06 +0000)]
Merge "fix log messages and bogus error message"

10 years agofix log messages and bogus error message
Mathias Agopian [Tue, 23 Jul 2013 01:00:53 +0000 (18:00 -0700)]
fix log messages and bogus error message

also assert when releasing a buffer and it has
been queued

Change-Id: I6f78d9ceb406ec85ff46c7b6d0c047b14063e3d0

10 years agoMerge "Fix AppOsManager missing mutex unlock."
Zhijun He [Tue, 23 Jul 2013 00:15:27 +0000 (00:15 +0000)]
Merge "Fix AppOsManager missing mutex unlock."

10 years agoFix AppOsManager missing mutex unlock.
Zhijun He [Tue, 23 Jul 2013 00:09:35 +0000 (17:09 -0700)]
Fix AppOsManager missing mutex unlock.

Need unlock the mutex after finish the getToken operation.

Change-Id: Icd83b383913d06e4d60976857aa314c3008ebea1

10 years agoAdd NFC host-based card emulation feature.
Martijn Coenen [Mon, 22 Jul 2013 23:57:17 +0000 (16:57 -0700)]
Add NFC host-based card emulation feature.

Change-Id: I699817731cdaf7139daeb10d4e24e376ba66fc8e

10 years agoAdd controller numbers for gamepads / joysticks
Michael Wright [Wed, 17 Jul 2013 20:23:26 +0000 (13:23 -0700)]
Add controller numbers for gamepads / joysticks

Change-Id: I5294aabbadb836a6a4c7ce76a670abcf50c1f885

10 years agomove services executables sources in their respective src folder
Mathias Agopian [Mon, 22 Jul 2013 19:20:28 +0000 (12:20 -0700)]
move services executables sources in their respective src folder

Change-Id: Ic65434a26c7fed1699abf0851fec6faa40e09c0c

10 years agoMerge changes Ic45929f3,Ic63f4f96,I1e703d36,I691f9507
Mathias Agopian [Sat, 20 Jul 2013 01:02:47 +0000 (01:02 +0000)]
Merge changes Ic45929f3,Ic63f4f96,I1e703d36,I691f9507

* changes:
  make sure to reset the framenumber when a buffer is marked FREE
  Make ANW.setSwapInterval(0) work again
  BuffferQueue disconnect is now always asynchrnous
  BufferQueue improvements and APIs changes

10 years agomake sure to reset the framenumber when a buffer is marked FREE
Mathias Agopian [Fri, 19 Jul 2013 05:25:55 +0000 (22:25 -0700)]
make sure to reset the framenumber when a buffer is marked FREE

Change-Id: Ic45929f35553de209801f74e8006fb1bf0b25b45

10 years agoMake ANW.setSwapInterval(0) work again
Mathias Agopian [Fri, 19 Jul 2013 05:10:56 +0000 (22:10 -0700)]
Make ANW.setSwapInterval(0) work again

we can now queue/dequeue a buffer in asynchrnous mode by using the
async parameter to these calls. async mode is only specified
with those calls (it is not modal anymore).

as a consequence it can only be specified when the buffer count
is not overidden, as error is returned otherwise.

Change-Id: Ic63f4f96f671cb9d65c4cecbcc192615e09a8b6b

10 years agoMerge "Add input device property for buttons under touchpads"
Michael Wright [Fri, 19 Jul 2013 22:45:38 +0000 (22:45 +0000)]
Merge "Add input device property for buttons under touchpads"

10 years agoBuffferQueue disconnect is now always asynchrnous
Mathias Agopian [Thu, 18 Jul 2013 22:55:03 +0000 (15:55 -0700)]
BuffferQueue disconnect is now always asynchrnous

we tag queued buffers with the "bufferqueue cannot block" flag
and use that bit to discard a buffer in the queue by new ones
comming in. this allows us to remove the buffer queue drain in
disconnect while maintaining the right behaviour if it gets
connected again (since each buffer remembers how it was enqueued).

Change-Id: I1e703d363a687b70b19ba49cef32213116e8bd3f

10 years agoBufferQueue improvements and APIs changes
Mathias Agopian [Wed, 17 Jul 2013 05:56:09 +0000 (22:56 -0700)]
BufferQueue improvements and APIs changes

this is the first step of a series of improvements to
BufferQueue. A few things happen in this change:

- setSynchronousMode() goes away as well as the SynchronousModeAllowed flag
- BufferQueue now defaults to (what used to be) synchronous mode
- a new "controlled by app" flag is passed when creating consumers and producers
  those flags are used to put the BufferQueue in a mode where it
  will never block if both flags are set. This is achieved by:
  - returning an error from dequeueBuffer() if it would block
  - making sure a buffer is always available by replacing
    the previous buffer with the new one in queueBuffer()
    (note: this is similar to what asynchrnous mode used to be)

Note: in this change EGL's swap-interval 0 is broken; this will be
fixed in another change.

Change-Id: I691f9507d6e2e158287e3039f2a79a4d4434211d

10 years agoMerge "Follow framework change to track started ops by proc."
Dianne Hackborn [Thu, 18 Jul 2013 18:13:14 +0000 (18:13 +0000)]
Merge "Follow framework change to track started ops by proc."

10 years agoFollow framework change to track started ops by proc.
Dianne Hackborn [Thu, 18 Jul 2013 00:26:15 +0000 (17:26 -0700)]
Follow framework change to track started ops by proc.

Change-Id: Ibbce3bf6556f45751c74bab045b46377e56bff9b

10 years agoMerge "Clarify some android-specific OMX extensions for native buffers."
Lajos Molnar [Wed, 17 Jul 2013 22:30:28 +0000 (22:30 +0000)]
Merge "Clarify some android-specific OMX extensions for native buffers."

10 years agoClarify some android-specific OMX extensions for native buffers.
Lajos Molnar [Wed, 17 Jul 2013 21:55:55 +0000 (14:55 -0700)]
Clarify some android-specific OMX extensions for native buffers.

Clarify the use of enableAndroidNativeBuffers and
storeMetaDataInBuffers extensions.

Change-Id: Ia1ca4a262525de74f133619f92ef6ba8271a6f72
Signed-off-by: Lajos Molnar <lajos@google.com>
10 years agoam 082fc1ca: am ae961022: Merge "EGL: Fix error for eglCreateWindowSurface"
Jesse Hall [Wed, 17 Jul 2013 21:13:56 +0000 (14:13 -0700)]
am 082fc1ca: am ae961022: Merge "EGL: Fix error for eglCreateWindowSurface"

* commit '082fc1cae6a0c283de3ad0d848e0757de3154d0b':
  EGL: Fix error for eglCreateWindowSurface

10 years agoam ae961022: Merge "EGL: Fix error for eglCreateWindowSurface"
Jesse Hall [Wed, 17 Jul 2013 21:10:00 +0000 (14:10 -0700)]
am ae961022: Merge "EGL: Fix error for eglCreateWindowSurface"

* commit 'ae9610220b5f509687b840532f95f3638ee0146b':
  EGL: Fix error for eglCreateWindowSurface

10 years agoMerge "EGL: Fix error for eglCreateWindowSurface"
Jesse Hall [Wed, 17 Jul 2013 21:06:54 +0000 (21:06 +0000)]
Merge "EGL: Fix error for eglCreateWindowSurface"

10 years agoEGL: Fix error for eglCreateWindowSurface
Jonathan Hamilton [Wed, 17 Jul 2013 16:41:42 +0000 (09:41 -0700)]
EGL: Fix error for eglCreateWindowSurface

The EGL 1.4 spec section 3.5.1 states that EGL_BAD_ALLOC should be set
if the supplied window already has an associated EGLSurface, not
EGL_BAD_NATIVE_WINDOW as is currently set.

Change-Id: If1598617f4e31904f2045560ae1cdf49d8a697dc

10 years agoam 384f55ff: (-s ours) Merge "Tweaks for forward compatibility" into stage-aosp-master
Jean-Baptiste Queru [Tue, 16 Jul 2013 22:36:08 +0000 (15:36 -0700)]
am 384f55ff: (-s ours) Merge "Tweaks for forward compatibility" into stage-aosp-master

* commit '384f55fff01a9d0630b801abd016b82ded4c5984':
  Tweaks for forward compatibility

10 years agoAdd C++ library for ConnectivityManager
Chad Brubaker [Tue, 16 Jul 2013 17:18:31 +0000 (10:18 -0700)]
Add C++ library for ConnectivityManager

Add C++ library for access to ConnectivityManager's markSocketAsUser.

Change-Id: Icb9faa5be8c11d10e5c4a3bf95d338319449399c

10 years agoFix build -- update for function signature change
Jesse Hall [Tue, 16 Jul 2013 20:46:20 +0000 (13:46 -0700)]
Fix build -- update for function signature change

Change-Id: I9c2448d5853c69ec7e962847fdaba9a99906cc42

10 years agoMerge "Rewrite VirtualDisplaySurface"
Jesse Hall [Tue, 16 Jul 2013 20:29:29 +0000 (20:29 +0000)]
Merge "Rewrite VirtualDisplaySurface"

10 years agoMerge "Tweaks for forward compatibility" into stage-aosp-master
Jean-Baptiste Queru [Tue, 16 Jul 2013 20:11:18 +0000 (20:11 +0000)]
Merge "Tweaks for forward compatibility" into stage-aosp-master