summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* Use rand() for MinGWKenny Root2011-06-151-1/+13
| | | | | | | 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
* Merge "Bug 4608375"Glenn Kasten2011-06-141-2/+9
|\
| * Bug 4608375Glenn Kasten2011-06-141-2/+9
| | | | | | | | | | | | Update priority and policy together for audio threads Change-Id: Ib3b07b32586c222c4aacbf23414ae8b05db502be
* | Add TextureView.getBitmap()Romain Guy2011-06-143-8/+101
| | | | | | | | | | | | | | This API can be used to get a Bitmap copy of the content of a TextureView. Change-Id: I07522216c353720fba5cab333174f58f484eb911
* | SurfaceTexture: increase the test's Surface layer.Jamie Gennis2011-06-141-1/+1
| | | | | | | | | | | | | | | | 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
* | SurfaceTexture: add some RGBA_8888 tests.Jamie Gennis2011-06-141-21/+228
| | | | | | | | Change-Id: Id09915c98a00eca1209b7dab32039a06d260908e
* | SurfaceTextureClient: minor test refactoring.Jamie Gennis2011-06-141-213/+179
| | | | | | | | Change-Id: Iabc6d27ca35d30d896c6aef65c4f1b5a1eed47b8
* | Merge "SurfaceTexture: add a format querying test."Jamie Gennis2011-06-141-0/+25
|\ \
| * | SurfaceTexture: add a format querying test.Jamie Gennis2011-06-131-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Allocation copy functions."Alex Sakhartchouk2011-06-1413-6/+250
|\ \ \
| * | | Allocation copy functions.Alex Sakhartchouk2011-06-1413-6/+250
| |/ / | | | | | | | | | Change-Id: Idce6d44a4f4bb2e399284a40c0f90dc1bff912fd
* | | Merge "Batch glCopyTexImage() calls to get about 15 fps back on SGX."Romain Guy2011-06-132-10/+124
|\ \ \
| * | | Batch glCopyTexImage() calls to get about 15 fps back on SGX.Romain Guy2011-06-132-10/+124
| | |/ | |/| | | | | | | Change-Id: I04079e070739c1e46df3e90fc388c335e2a7d2b9
* | | fix RefBase so it retains binary-compatibility with gingerbreadMathias Agopian2011-06-131-9/+25
| | | | | | | | | | | | | | | Bug: 4595257 Change-Id: I0d5e10f497e3f39868bff58f6ded510c38b44b12
* | | Merge changes I9b8e1962,I7bb843caMathias Agopian2011-06-1310-1418/+90
|\ \ \ | | | | | | | | | | | | | | | | | | | | * changes: Temporarily don't return the current buffer in synchronous mode unify SurfaceTexture and Surface
| * | | Temporarily don't return the current buffer in synchronous modeMathias Agopian2011-06-132-4/+4
| | | | | | | | | | | | | | | | activate synchronous mode by default.
| * | | unify SurfaceTexture and SurfaceMathias Agopian2011-06-138-1414/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the concept of synchronous dequeueBuffer in SurfaceTexture Implement {Surface|SurfaceTextureClient}::setSwapInterval() Add SurfaceTexture logging fix onFrameAvailable
* | | | Merge changes Ic9186db2,Id5a7cdffJamie Gennis2011-06-131-6/+11
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | * changes: SurfaceTexture: disable a deadlocking test. SurfaceTexture: add a pixel tolerance to the tests.
| * | | SurfaceTexture: disable a deadlocking test.Jamie Gennis2011-06-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This change disables the UpdateTexImageAfterFrameFinishedWorks test because it's currently causing deadlocks on some devices. Change-Id: Ic9186db207e8d656f3af5d86fa138c7d96393c55
| * | | SurfaceTexture: add a pixel tolerance to the tests.Jamie Gennis2011-06-131-5/+9
| | |/ | |/| | | | | | | | | | | | | | | | This change adds a default tolerance of 2 to all the pixel value checks in the SurfaceTexture tests. Change-Id: Id5a7cdffdfae16076e2daf4964a3326105b5ae2c
* | | Merge "libutils: add a binary blob cache implementation."Jamie Gennis2011-06-134-0/+491
|\ \ \ | |/ / |/| |
| * | libutils: add a binary blob cache implementation.Jamie Gennis2011-05-174-0/+491
| | | | | | | | | | | | | | | | | | | | | This change adds an implementation of a cache that stores key/value pairs of unstructured binary blobs. Change-Id: Idd01fdabedfa3aed6d359a6efb0592967af52651
* | | Merge changes I56779420,I044e44e1,Ic5adfa29,Ied541ab8Jamie Gennis2011-06-133-2/+384
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: SurfaceTexture: add some GL->GL tests. SurfaceTexture: fix up a comment. SurfaceTexture: add getTransformMatrix tests. SurfaceTexture: fix a getTransformMatrix crash.
| * | | SurfaceTexture: add some GL->GL tests.Jamie Gennis2011-06-131-0/+268
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | SurfaceTexture: add getTransformMatrix tests.Jamie Gennis2011-06-131-0/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | SurfaceTexture: fix a getTransformMatrix crash.Jamie Gennis2011-06-131-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Remove redundant memory barrier"Glenn Kasten2011-06-131-8/+5
|\ \ \ \ | |_|_|/ |/| | |
| * | | Remove redundant memory barrierGlenn Kasten2011-06-101-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | resolved conflicts for merge of f51ded0f to masterDianne Hackborn2011-06-101-2/+30
|\ \ \ \ | |/ / / |/| | | | | | | Change-Id: Ida356524a68aeb2b9b0013dfbb6ab4bd11e616e2
| * | | am a8d7ea06: am 220cd77d: Merge "Enforce public resource restriction on bag ↵Dianne Hackborn2011-06-091-2/+30
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | parents." into honeycomb-mr2 * commit 'a8d7ea067cf22baeee2ff0a33e5a8c5a35936942': Enforce public resource restriction on bag parents.
| | * | | Enforce public resource restriction on bag parents.Dianne Hackborn2011-06-091-2/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Need to put some more styles in the SDK to avoid breaking apps. Also, welcome Android 3.2. Change-Id: Ia31d07c9b1b91ad868d8630437fdc1b5ae24f37d
* | | | | Merge "Don't apply AA to rects with no rotation/perspective."Romain Guy2011-06-093-3/+7
|\ \ \ \ \
| * | | | | Don't apply AA to rects with no rotation/perspective.Romain Guy2011-06-093-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I21138d4d0589cc28f1dcffb8b675cd81a9900e24
* | | | | | resolved conflicts for merge of e2aa0490 to masterDianne Hackborn2011-06-091-5/+5
|\ \ \ \ \ \ | | |/ / / / | |/| | / / | |_|_|/ / |/| | | | Change-Id: Id0448a1598fc93aca0652b29253e02586e35a067
| * | | | am a1396dfe: am 02140891: Merge "Work on issue #4518815: Compatibility mode ↵Dianne Hackborn2011-06-081-5/+5
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | introduces compatibility regression..." into honeycomb-mr2 * commit 'a1396dfe7ad6ec6953f544be42d69d7804ab0fd4': Work on issue #4518815: Compatibility mode introduces compatibility regression...
| | * | | Merge "Work on issue #4518815: Compatibility mode introduces compatibility ↵Dianne Hackborn2011-06-081-5/+5
| | |\ \ \ | | | | | | | | | | | | | | | | | | regression..." into honeycomb-mr2
| | | * | | Work on issue #4518815: Compatibility mode introduces compatibility ↵Dianne Hackborn2011-06-081-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | am 96fcb702: am b40e85f9: am 645434fb: Merge "Fix a leak in RefBase" into ↵Mathias Agopian2011-06-091-6/+10
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | honeycomb-mr2 * commit '96fcb702d75dcfb36c3ebd8fe420c8b29fa67fb7': Fix a leak in RefBase
| * | | | | am b40e85f9: am 645434fb: Merge "Fix a leak in RefBase" into honeycomb-mr2Mathias Agopian2011-06-081-6/+10
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | * commit 'b40e85f90146a654bfe5657187be491147814ea0': Fix a leak in RefBase
| | * | | | Fix a leak in RefBaseMathias Agopian2011-06-081-6/+10
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Merge "More work to make libRS buildable on the host."Alex Sakhartchouk2011-06-0920-134/+151
|\ \ \ \ \
| * | | | | More work to make libRS buildable on the host.Alex Sakhartchouk2011-06-0320-134/+151
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I239585ef7c1334f7fc19fa6423535dea7b9a753f
* | | | | | Merge "Fix handling of directory entries"Christopher Tate2011-06-081-0/+1
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | |
| * | | | | Fix handling of directory entriesChristopher Tate2011-06-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | am 61220e88: am bbbab26e: am 2c180499: Merge "Revert velocity damping. Bug: ↵Jeff Brown2011-06-071-9/+0
|\ \ \ \ \ \ | |/ / / / / |/| | / / / | | |/ / / | |/| | | | | | | | | | | | | 4364920" into honeycomb-mr2 * commit '61220e880ac4d9d76b7fd50744439e68e929c697': Revert velocity damping. Bug: 4364920
| * | | | am bbbab26e: am 2c180499: Merge "Revert velocity damping. Bug: 4364920" into ↵Jeff Brown2011-06-061-9/+0
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | honeycomb-mr2 * commit 'bbbab26ebe9bc789ba9abac757895a6c31de7cc5': Revert velocity damping. Bug: 4364920
| | * | | Merge "Revert velocity damping. Bug: 4364920" into honeycomb-mr2Jeff Brown2011-06-061-9/+0
| | |\ \ \
| | | * | | Revert velocity damping.Jeff Brown2011-06-061-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * | | | merge various SF fixes from gingerbread to honeycomb-mr2 (DO NOT MERGE)Mathias Agopian2011-06-061-3/+9
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | | resolved conflicts for merge of b9783b49 to honeycomb-plus-aospMarco Nelissen2011-06-061-3/+9
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Change-Id: I1d86ea56b3d1d1b69f6671e5b0df0ca3f0c79643