summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* Explicitly manage common clock client lifetimes.John Grossman2012-02-061-7/+54
| | | | | | | | | | | | | | | | | Change the CCHelper class to be an instanced instead of a static pattern. The CCHelper instances all share an interface to the common clock service and register/unregister a callback handler in response to there being CCHelper instance in the system or not. This brings usage of the CCHelper into like with the new auto-disable functionality of the common time service. For any given process, whenever there are CCHelper instances active, the process will maintain a callback target to the common clock service and will be considered to be an active client. Also change all of the users of the CCHelper interface to manage the lifecycle of their new CCHelper instances. Change-Id: I7c28c5d70d9b07ba7407b4ac706e7e7d7253001b
* Add native common time config service.John Grossman2012-02-032-0/+509
| | | | | | | | Define a native service interface for configuring and controlling the common time service. Implement the native marshallers and stub the implementation of the new interface. Change-Id: Ia6a6a20ef3d221e8829c55be1dd5f98ed996c610
* Add marshallers for the new common clock methods.John Grossman2012-02-034-23/+243
| | | | | | | | | Add marshallers and stub implementations for new methods in the common clock interface to support new functionality being added in the process of integrating the common time service more closely with the Java level of Android. Change-Id: Iac2d3fb405d1b64cea1d8e13f988160afb76a06d
* Change ICommonClock marshallers to return explicit error codes.John Grossman2012-02-031-19/+64
| | | | | | | | | Change the ICommonClock marshallers to return an explicit error with each transaction. This makes it easier to disambiguate between binder errors (dead object due to the service crashing) vs. runtime errors (cannot return common time due to lack of sync) Change-Id: I2182cf0cfb2e11b4669f392554f104ef7c4bca8b
* De-AAH-ify the common time service.John Grossman2012-02-034-11/+11
| | | | | | | | Bulk name change to remove references to Android@Home from the common time service in preparation for cleanup and up-integration into the master branch. Basically, aah_timesrv is now common_time. Change-Id: I3d3db212f96e8ba171aa36b9c58e27e4a336cb0a
* am 6ad9ea7d: Merge "update overview page for rs api docs to open iframe ↵Robert Ly2012-01-181-3/+3
|\ | | | | | | | | | | | | links in parent" into ics-mr1 * commit '6ad9ea7deb669eca68c58f001c935255c3294cfe': update overview page for rs api docs to open iframe links in parent
| * update overview page for rs api docs to open iframe links in parentRobert Ly2012-01-131-3/+3
| | | | | | | | Change-Id: Ic0aa77192fa19b045a7fd9df5926255511fdc3be
* | am 62472581: Merge "cherrypick from master - add overview description for RS ↵Robert Ly2012-01-131-0/+25
|\ \ | |/ | | | | | | | | | | API reference Change-Id: Id5554c607ad4c435f92bfa939e4ce4833a638f62" into ics-mr1 * commit '62472581c30a3202b7bbd86e644b4346d5a4e65c': cherrypick from master - add overview description for RS API reference Change-Id: Id5554c607ad4c435f92bfa939e4ce4833a638f62
| * cherrypick from master - add overview description for RS API reference ↵Robert Ly2012-01-131-0/+25
| | | | | | | | | | | | Change-Id: Id5554c607ad4c435f92bfa939e4ce4833a638f62 Change-Id: Iff4b4bd171818208bb3be46dd3ef7e91b6cbd80f
* | am a1dee3f5: Merge "SurfaceTexture: fix a verbose-log compile error" into ↵Jamie Gennis2011-12-121-2/+2
|\ \ | |/ | | | | | | | | | | ics-mr1 * commit 'a1dee3f500eccedbf5e50d466315fb28ba812cfc': SurfaceTexture: fix a verbose-log compile error
| * SurfaceTexture: fix a verbose-log compile errorJamie Gennis2011-12-091-2/+2
| | | | | | | | Change-Id: I045231207e068d950bb0cb5085717af5d9454ed1
* | am e21dabf6: Merge "Initialize bwr.read_buffer in ↵Ben Cheng2011-12-011-0/+1
|\ \ | |/ | | | | | | | | | | IPCThreadState::talkWithDriver." into ics-mr1 * commit 'e21dabf654e3d90e50e95174d5e9670bc930c194': Initialize bwr.read_buffer in IPCThreadState::talkWithDriver.
| * Merge "Initialize bwr.read_buffer in IPCThreadState::talkWithDriver." into ↵Ben Cheng2011-12-011-0/+1
| |\ | | | | | | | | | ics-mr1
| | * Initialize bwr.read_buffer in IPCThreadState::talkWithDriver.Ben Cheng2011-12-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | am 976ae272: Add support for handling a bitcode wrapper to librs.Stephen Hines2011-12-011-1/+19
|\ \ \ | |/ / | | | | | | | | | * commit '976ae27270a64c5abeb380d6e61d6d71f29b9433': Add support for handling a bitcode wrapper to librs.
| * | Add support for handling a bitcode wrapper to librs.Stephen Hines2011-12-011-1/+19
| |/ | | | | | | | | | | BUG=5425905 Change-Id: I75676060703df6d9043b287fea900c4379455ee2
* | am bb1e7d43: Merge changes I7e973a35,Ib3386fcc into ics-mr1Mathias Agopian2011-11-292-166/+344
|\ \ | |/ | | | | | | | | * commit 'bb1e7d4324ff43491c526c77f405bbbf0cece611': SurfaceTexture: add EGL_KHR_fence_sync option SurfaceTexture: add a blit-to-FBO test
| * SurfaceTexture: add EGL_KHR_fence_sync optionJamie Gennis2011-11-291-166/+233
| | | | | | | | | | | | | | | | 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
| * SurfaceTexture: add a blit-to-FBO testJamie Gennis2011-11-291-0/+111
| | | | | | | | | | | | | | This change adds a test for blitting (via GL rendering) from a SurfaceTexture to an FBO. Change-Id: Ib3386fcc3f37153277f3e37a26347441bb80ab58
* | am 46685db9: Merge "Fix crash in existing applications Bug #5659476" into ↵Romain Guy2011-11-281-2/+10
|\ \ | |/ | | | | | | | | | | ics-mr1 * commit '46685db957cc01cef4ba198aafe44d99fe31f62c': Fix crash in existing applications Bug #5659476
| * Merge "Fix crash in existing applications Bug #5659476" into ics-mr1Romain Guy2011-11-281-2/+10
| |\
| | * Fix crash in existing applicationsRomain Guy2011-11-281-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | Bug #5659476 The FontRenderer was not cleaning up its temporary state, leading to crashes when invoking renderDropShadow. Change-Id: I43b24820dd5625af8c080bbe11b64de2f74164b2
* | | am 8990cb57: Merge "Fix flashing wifi dialog after rotating back from ↵Chet Haase2011-11-281-2/+4
|\ \ \ | |/ / | | | | | | | | | | | | | | | landscape." into ics-mr1 * commit '8990cb5768efba46bb1d7458377dd44498afcfdb': Fix flashing wifi dialog after rotating back from landscape.
| * | Fix flashing wifi dialog after rotating back from landscape.Chet Haase2011-11-281-2/+4
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | am 303a0695: Merge "Draw in the correct FBO after invoking a GL functor Bug ↵Romain Guy2011-11-222-2/+3
|\ \ | |/ | | | | | | | | | | #5650514" into ics-mr1 * commit '303a0695b8fa0b8f0095c437145a28633a7a8d92': Draw in the correct FBO after invoking a GL functor Bug #5650514
| * Merge "Draw in the correct FBO after invoking a GL functor Bug #5650514" ↵Romain Guy2011-11-222-2/+3
| |\ | | | | | | | | | into ics-mr1
| | * Draw in the correct FBO after invoking a GL functorRomain Guy2011-11-212-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | am 07a2d831: Merge "don\'t report an error when disconnecting from an ↵Mathias Agopian2011-11-211-2/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | abandoned surfacetexture" into ics-mr1 * commit '07a2d831903774e07c1c6b6dd5c7c06bf8ca176a': don't report an error when disconnecting from an abandoned surfacetexture
| * | Merge "don't report an error when disconnecting from an abandoned ↵Mathias Agopian2011-11-211-2/+3
| |\ \ | | | | | | | | | | | | surfacetexture" into ics-mr1
| | * | don't report an error when disconnecting from an abandoned surfacetextureMathias Agopian2011-11-181-2/+3
| | |/ | | | | | | | | | | | | | | | | | | this happens often with CPU Surfaces, which disconnect long after their surfacetexture has been abandoned. Change-Id: If49da03b72f99130e01b2b9bcbd444bb38f7ed4e
* | | am 8646cd42: Merge "enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices" ↵Mathias Agopian2011-11-212-3/+11
|\ \ \ | |/ / | | | | | | | | | | | | | | | into ics-mr1 * commit '8646cd42df5edc5f5b9c52d6ab5309821e875656': enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices
| * | Merge "enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices" into ics-mr1Mathias Agopian2011-11-212-3/+11
| |\ \
| | * | enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devicesMathias Agopian2011-11-182-3/+11
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | am 53cf2020: Merge changes I37fd43b5,I91eb29db,I0491ce35 into ics-mr1Jamie Gennis2011-11-212-241/+310
|\ \ \ | |/ / | | | | | | | | | | | | | | | * commit '53cf20202a3848a6c61b5229814268180a3d2f16': SurfaceTexture: fix a couple tests EGL: default to swap interval 1 SurfaceTexture: clean up some tests
| * | SurfaceTexture: fix a couple testsJamie Gennis2011-11-211-2/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | EGL: default to swap interval 1Jamie Gennis2011-11-212-0/+30
| | | | | | | | | | | | | | | | | | | | | This change explicitly sets swap interval 1 on the window when an EGLSurface is created to render to it. Change-Id: I91eb29dbee3ae4a55076b921f084d503fbe94e03
| * | SurfaceTexture: clean up some testsJamie Gennis2011-11-211-242/+255
| |/ | | | | | | | | | | | | | | | | | | | | | | | | 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
* | am 4d71053b: Merge "attempt to fix bug 5313580" into ics-mr1Mathias Agopian2011-11-181-0/+6
|\ \ | |/ | | | | | | * commit '4d71053b0728b248d80d7d5a098df459722e2be0': attempt to fix bug 5313580
| * Merge "attempt to fix bug 5313580" into ics-mr1Mathias Agopian2011-11-181-0/+6
| |\
| | * attempt to fix bug 5313580Mathias Agopian2011-11-171-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | am 2ba13186: Merge "SurfaceTexture: fix a bug with buffer reallocation" into ↵Jamie Gennis2011-11-171-0/+5
|\ \ \ | |/ / | | | | | | | | | | | | | | | ics-mr1 * commit '2ba13186b268de3527af6da1933a4b65877548d9': SurfaceTexture: fix a bug with buffer reallocation
| * | Merge "SurfaceTexture: fix a bug with buffer reallocation" into ics-mr1Jamie Gennis2011-11-171-0/+5
| |\ \ | | |/ | |/|
| | * SurfaceTexture: fix a bug with buffer reallocationJamie Gennis2011-11-171-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | am 69c17a11: Merge "Revert "enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra ↵Mathias Agopian2011-11-162-11/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | devices"" into ics-mr1 * commit '69c17a11a2ce5badc238e66ce9f8ca4a3a1028b3': Revert "enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices"
| * | Merge "Revert "enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices"" into ↵Mathias Agopian2011-11-162-11/+3
| |\ \ | | | | | | | | | | | | ics-mr1
| | * | Revert "enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices"Mathias Agopian2011-11-162-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit e7758be6da85728df6b4215f413660c67c5a9740. Seemed to cause failures un SurfaceTexture. Bug: 5627450
* | | | am fd6b64f6: Merge "SurfaceTexture: Fix to return the oldest of free buffers ↵Jamie Gennis2011-11-161-5/+17
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | to Client on Dequeue call" into ics-mr1 * commit 'fd6b64f6ad040b4d550a5219a2576997e2c0e85d': SurfaceTexture: Fix to return the oldest of free buffers to Client on Dequeue call
| * | | Merge "SurfaceTexture: Fix to return the oldest of free buffers to Client on ↵Jamie Gennis2011-11-161-5/+17
| |\ \ \ | | |/ / | |/| | | | | | Dequeue call" into ics-mr1
| | * | SurfaceTexture: Fix to return the oldest of free buffers to Client on ↵Sunita Nadampalli2011-11-151-5/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | am 3e7497b4: Merge "Eliminate hw.keyboards system properties." into ics-mr1Jeff Brown2011-11-152-55/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit '3e7497b4eccd3db1d6ff0ce1f1f2db11f9a8eeef': Eliminate hw.keyboards system properties.