summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* backport of fix for CVE-2015-6602HEADmasterWolfgang Wiedmeyer2015-10-191-0/+6
| | | | | | | | corresponding upstream commits: 5b85b1d40d619c2064d321364f212ebfeb6ba185 e0dce90b0de2b2b7c2baae8035f810a55526effb Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* Verify that the native handle was createdAdam Lesinski2015-10-181-0/+4
| | | | | | | | | | | The inputs to native_handle_create can cause an overflowed allocation, so check the return value of native_handle_create before accessing the memory it returns. Bug:19334482 Change-Id: I1f489382776c2a1390793a79dc27ea17baa9b2a2 (cherry picked from commit eaac99a7172da52a76ba48c26413778a74951b1a) Tested-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* Disregard alleged binder entities beyond parcel boundsChristopher Tate2015-10-181-1/+1
| | | | | | | | | | | | When appending one parcel's contents to another, ignore binder objects within the source Parcel that appear to lie beyond the formal bounds of that Parcel's data buffer. Bug 17312693 Change-Id: If592a260f3fcd9a56fc160e7feb2c8b44c73f514 (cherry picked from commit 27182be9f20f4f5b48316666429f09b9ecc1f22e) Tested-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* Fix for corruption when numFds or numInts is too large.Michael Lentine2015-08-301-1/+17
| | | | | | | | Bug: 18076253 Change-Id: I4c5935440013fc755e1d123049290383f4659fb6 (cherry picked from commit dfd06b89a4b77fc75eb85a3c1c700da3621c0118) Signed-off-by: Michael Lentine <mlentine@google.com> Tested-by: Moritz Bandemer <replicant@posteo.mx>
* libutils: get ride of debug trace file errorsTanguy Pruvot2013-07-051-1/+1
| | | | | | put them as warning only... Change-Id: Idbdddbc83833c938288da6b7a68fb3539d139538
* fix mem leak on error handlingHyejin Kim2013-05-311-1/+3
| | | | Change-Id: I40d8e371c46184aa701fa676246201a9d8f6e27d
* Don't use fence sync for qcom legacyArne Coucheron2013-03-231-0/+2
| | | | Change-Id: Ice64233a25edee763a36a3ba34230d1360a0d610
* ui: Allocate the custom buffer size in the failure case alsoNaseer Ahmed2013-03-151-4/+8
| | | | | | | | The custom buffer size was not being honored if memory allocation failed in the first pass. Also - removing an unnecessary check. Change-Id: Ie501b2dda3843454405fec05fc898fec5912bd06
* libgui: Add support to update buffer geometry.Ramkumar Radhakrishnan2013-03-105-0/+196
| | | | | | | | | Add native window properties NATIVE_WINDOW_UPDATE_BUFFERS_GEOMETRY to the perform function of SurfaceTextureClient and SurfaceTexture to update the width, height and format of the buffer dynamically from the client before queue buffer call. Change-Id: I62447fcf523b507d534085cd0835f55a978c4ead
* Add support for custom buffer sizes.Ramkumar Radhakrishnan2013-03-106-1/+150
| | | | | | | | Add native window properties NATIVE_WINDOW_SET_BUFFERS_SIZE to the perform function of SurfaceTextureClient to set the user defined size of graphic buffers. Change-Id: I1dc2203990a3641fbb9ddab9a86f7e9017f05270
* Reset the FrameNumber for dropped frame in async modeNaomi Luis2013-03-061-0/+2
| | | | | | | | | In Async, reset the framenumber of frames dropped by the BufferQueue. This allows the client to dequeue and use this frame before the other queued frames which may be with the MDP. CRs-fixed: 448606 Change-Id: Icaabf77b55a7275dc98ba1fdfba89508feb92145
* Merge tag 'android-4.2.2_r1' of ↵Steve Kondik2013-02-153-20/+120
|\ | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/native into 1.1 Android 4.2.2 release 1 Conflicts: libs/ui/GraphicBufferAllocator.cpp Change-Id: Id60a6580bf5a3ba04f8e1e2b1b950e0b93888166
| * [DO NOT MERGE] GraphicBufferAllocator: stall alloc for async freesandroid-cts-4.2_r2Jamie Gennis2012-12-101-52/+108
| | | | | | | | | | | | | | | | | | This change makes GraphicBufferAllocator::alloc wait for pending async frees to complete before attempting to allocate a gralloc buffer if there are more than 8 pending async frees. Bug: 7696861 Change-Id: I1fae86e13edefcaa153b8ce9fd057f335716059e
| * Revert "ConsumerBase: free buffers outside the lock"Jamie Gennis2012-12-071-24/+10
| | | | | | | | This reverts commit b21a4e3b5f7f07ed160ca6e1809313e2a8e2a6a4.
| * DO NOT MERGE GraphicBufferAllocator: make frees asyncJamie Gennis2012-12-071-11/+55
| | | | | | | | | | | | | | | | | | This change makes GraphicBufferAllocator::free queue a job to another thread to perform the actual free operation. This prevents potentially slow free operations from blocking rendering. Bug: 7675940 Change-Id: Id61099d66bb4c3949d04184e0d7f192ac18076b4
| * ConsumerBase: free buffers outside the lockJamie Gennis2012-12-061-10/+24
| | | | | | | | | | | | | | | | | | This change makes ConsumerBase::onBuffersReleased hold a reference to all its gralloc buffers until after the mutex is unlocked. This prevents slow gralloc::free calls from causing lock contention with rendering threads. Bug: 7675940 Change-Id: I0ec805d1b612afeeecfffec03f982371d27d93be
| * fix typo that broke all the buildsMathias Agopian2012-11-191-6/+3
| | | | | | | | | | Bug: 7584338 Change-Id: Ieb8c27a544ac583af9aa1e0376e33a673d2d9673
| * fix an out-of-bounds memory accessMathias Agopian2012-11-151-4/+6
| | | | | | | | | | | | | | | | in this particular case, this OOB is always harmless (and that's why it didn't get fixed from MR1), however, it interfers with valgrind debugging. Change-Id: Ic977e03287e59c4b124a89146c9023bd0cb540a8
| * Reduce emulator logspamAndy McFadden2012-11-081-2/+2
| | | | | | | | | | | | | | | | | | The emulator doesn't support systrace, but we should point that out at most once per process. Bug 7436352 Change-Id: I06b2c1ea0df6c02c11cd2496423c337f8d7c62a1
* | libgui: Use fences for all QCOM targetsSteve Kondik2013-02-011-1/+1
| | | | | | | | Change-Id: I32d6d8c8c06a2541aa655fb8f2a99c2c0ac0f64b
* | SurfaceComposerClient: bring back getDisplayWidth, Height & OrientationChirayu Desai2013-01-261-0/+20
| | | | | | | | | | | | enable it with either ICS_CAMERA_BLOB or MR0_CAMERA_BLOB CFLAG Change-Id: Ieb5d36ad2a87ed1f0aa28ae3afbd5d48c880d6ab
* | JB_MR1: native/libs/ui: Adding fix for conf 2.0 seg faultsVishrut Shah2013-01-201-0/+1
| | | | | | | | | | | | | | | | | | function call to cancelBuffer was resulted in seg-faults on conf 2.0. Setting function pointer of cancelBuffer to null in order to select correct path of execution. CRs-fixed: 383715 Change-Id: I6de8355febaea86ded63f33a582c787fef862193
* | ui/sf: Add support for exynos HDMIRicardo Cerqueira2012-12-302-0/+43
| | | | | | | | Change-Id: I27b34e95c04750e3dd321a2183b6cc1d89f29b5d
* | Add setOrientation backBumble-Bee2012-12-141-0/+14
| | | | | | | | this is needed for some tegra ICS and JB_MR0 prebuilts
* | binder: Add MemoryHeapBaseIoncodeworkx2012-12-113-2/+136
| | | | | | | | | | | | | | Source: http://git.insignal.co.kr/samsung/exynos/android/platform/frameworks/native/commit/?h=exynos-jb&id=dc4cd25cc41e4358debd0c7d1a2706d208a58df6 Change-Id: Ib06cc37a2a25c78a061ee2bad48eec2d01b07833
* | libui: exynos4: apply FIMC usage flag on format ↵codeworkx2012-12-031-1/+2
| | | | | | | | | | | | HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED Change-Id: I8a98e593cb60d0843e83a5e431142410e26d82e7
* | GraphicBuffer: exynos4: set FIMC1 usage bit on samsung specific formatscodeworkx2012-11-271-1/+9
| | | | | | | | Change-Id: Ia8cde7e594f8be464ef15eaae453872ee5aa2768
* | ui: exynos4: getphys is commoncodeworkx2012-11-261-1/+1
| | | | | | | | Change-Id: I1dc9c2ced0700072e7c30c8435676873b10c7026
* | libgui: Add ICS/MR0-compatible client::createSurface constructorsRicardo Cerqueira2012-11-261-0/+24
| | | | | | | | Change-Id: Ia5b04d93320c65ac32a92cbd93daa6a64e6cee1c
* | Revert "Revert "Compatibility work around for bad graphics driver dependency.""Ricardo Cerqueira2012-11-251-0/+9
| | | | | | | | | | | | This reverts commit 38b657265ccc5ae45bd7860a68b0d9373b47a2f3. Change-Id: If350d73839f1ed5e01af4299d44837e619d14d66
* | exynos4: getphys implementation on buffermanager for samsung omxcodeworkx2012-11-241-0/+13
| | | | | | | | Change-Id: Iee665f56aaf601479d796703db983ca5fce9c5c3
* | Revert "Revert "A vendor ril depends on a native screen shot code.""Robert Burns2012-11-231-0/+8
| | | | | | | | | | | | This reverts commit 94f261556cc5f4aa628cd5b71bf923b583f6e3c3. Fixes RIL on toroplus
* | Revert "get rid of MemoryHeapPmem"Ricardo Cerqueira2012-11-212-0/+253
|/ | | | | | | This reverts commit 7a7524810a0950c1c2b18014a8f1c637275165c4 and makes MemoryHeapPmem conditioned to BOARD_NEEDS_MEMORYHEAPPMEM Change-Id: I2f38340984ba87d6970d17ec944e3faded4132c8
* Revert "Revert "put back the unused virtuals in Vector<>""Dave Burke2012-10-251-0/+19
| | | | | | This reverts commit 225c66a48cdc3acef21ee380dc134449749d3cb3 Change-Id: If31a04b81052cbc7dd7bf237c07107c33066d03d
* SurfaceFlinger: add support for secure displaysJamie Gennis2012-10-222-21/+11
| | | | | | | | | This change adds support for displays that are not allowed to display surfaces with the eSecure flag set. All non-virtual displays are considered secure, while virtual displays have their secure-ness specified at creation time. Bug: 7368436 Change-Id: I81ad535d2d1e5a7ff78269017e85b111f0098500
* Merge "BufferQueue: alloc without holding the lock" into jb-mr1-devJamie Gennis2012-10-171-11/+25
|\
| * BufferQueue: alloc without holding the lockJamie Gennis2012-10-111-11/+25
| | | | | | | | | | | | | | | | | | | | This change makes BufferQueue::dequeueBuffer release its mutex before allocating new buffers. This should alleviate lock contention in SurfaceFlinger where SF's main thread can get blocked waiting for an allocation operation to complete. Bug: 7335075 Change-Id: I1b000539cc616a695afab2e9c68507db69e57b13
* | SurfaceFlinger: add animation transactionsJamie Gennis2012-10-151-1/+22
| | | | | | | | | | | | | | | | | | | | This change adds a transaction flag for WindowManager to indicate that a transaction is being used to animate windows around the screen. SurfaceFlinger will not allow more than one of these transactions to be outstanding at a time to prevent the animation "frames" from being dropped. Bug: 7353840 Change-Id: I6488a6e0e1ed13d27356d2203c9dc766dc6b1759
* | Add TEMP_FAILURE_RETRY around open and write callsKenny Root2012-10-121-5/+8
|/ | | | | Bug: 7330849 Change-Id: I9aef3c3d3a248c3eea7ca060124ad6decaa6b4da
* Merge "Fence didn't manager sync_wait error codes properly" into jb-mr1-devMathias Agopian2012-10-091-5/+6
|\
| * Fence didn't manager sync_wait error codes properlyMathias Agopian2012-10-091-5/+6
| | | | | | | | | | | | | | | | | | | | error codes are returned in errno, this caused ::waitForwever() to only wait for 1 second and return improper error code (-1). needed to help debugging 7316632 Bug: 7316632 Change-Id: Ie144f614a88393393972a3a770c6b4b0581f961a
* | Add blankDisplay/unblankDisplay to SurfaceComposerClient.Jeff Brown2012-10-081-0/+8
|/ | | | | Bug: 7309812 Change-Id: Ia401d642094a46c62f0d26c65da1d11341e203a1
* Merge "Revert "ugly, temporary, workaroung for a problem where a binder ↵Dave Burke2012-10-071-12/+0
|\ | | | | | | thread spins forever"" into jb-mr1-dev
| * Revert "ugly, temporary, workaroung for a problem where a binder thread ↵Dave Burke2012-10-061-12/+0
| | | | | | | | | | | | | | | | spins forever" This reverts commit 0845d0245e09548110cacb0f20e9934753388aab Change-Id: I395037cb9427cd11f7de6bb78fbdfa917fc6263a
* | Merge "ugly, temporary, workaroung for a problem where a binder thread spins ↵Dave Burke2012-10-051-0/+12
|\ \ | |/ | | | | forever" into jb-mr1-dev
| * ugly, temporary, workaroung for a problem where a binder thread spins foreverMathias Agopian2012-10-051-0/+12
| | | | | | | | | | Bug: 7289992 Change-Id: I0c3d482a1af57e5f444be2ba7f2751ac3e954af2
* | Fix race condition in ConsumerBase::addReleaseFence()Jesse Hall2012-10-053-3/+8
|/ | | | | | | | | | | This needs the ConsumerBase mutex locked, but wasn't locking it. Two of the four places that called it already held the lock so were fine. Now addReleaseFence() takes the lock itself, and I added addReleaseFenceLocked() for the two already-locked callers, since in one of them dropping the lock would be inconvenient. Bug: 7289269 Change-Id: I7a5628adb516f8eec782aa6c14128202f96d7b0a
* Fix missing parens in CleanSpec.mk.Stephen Hines2012-10-041-0/+1
| | | | Change-Id: I0440a942d3e685d619ec9cc402d3293cb3f52df1
* Fix broken CleanSpec.mk in libs/guiRaph Levien2012-10-041-1/+1
| | | | | | | | | | | The CleanSpec is missing parens, which causes $P to be interpreted as a single variable, and the following printed to the log: Clean step: rm -rf RODUCT_OUT/obj/SHARED_LIBRARIES/libgui_intermediates This patch adds parens as needed. Change-Id: I587998fa67a4884418c286360a577cdbb6ea9a21
* libgui: enable fence support for exynos5Jamie Gennis2012-10-032-1/+3
| | | | | Change-Id: Iffc48412b8c951116a956a3ac7dab8d75eed13da Bug: 7238122