summaryrefslogtreecommitdiffstats
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>
* Avoid context priority for S5PC110 and OMAP4 boardsPaul Kocialkowski2013-10-291-8/+0
| | | | | Change-Id: I2d85115b69c4f75caaae599e0db6074e55f0439b Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Configure dalvik heap parameters for low memory devicesBhargav Upperla2013-08-071-1/+1
| | | | | | | | Reduces after boot memory footprint by about 5-8MB Note: This is for low memory based devices only (~512MB RAM or less) Change-Id: I4b4b9ae3efaff96551457e566bbb9bd4f0f23fd5
* libutils: get ride of debug trace file errorsTanguy Pruvot2013-07-051-1/+1
| | | | | | put them as warning only... Change-Id: Idbdddbc83833c938288da6b7a68fb3539d139538
* provide overrides for hwui memory limits for xxhdpi phonesSteve Kondik2013-06-011-0/+30
| | | | Change-Id: I8b369619cd07530d0468a5449da30f338c13c7d2
* Abort surface composition if hw surface is invalidMichael Chock2013-05-311-1/+5
| | | | | | | | If an invalid display device is detected during surface composition (e.g., a simulated secondary display is removed), abort the composition. Change-Id: Ia6afb2e287882d8ae0614eb25463d3f85b687adf
* fix mem leak on error handlingHyejin Kim2013-05-311-1/+3
| | | | Change-Id: I40d8e371c46184aa701fa676246201a9d8f6e27d
* Add heap configuration for 1080p phones with 2048mSteve Kondik2013-05-171-0/+26
| | | | | | * Increase heap start size to 16m to minimize GC with larger bitmaps Change-Id: I8fbba2e5a2a2cf2d7a6898ca6bae8639d6cf5a19
* native: add flag to disable legacy sensors fusionDaniel Hillenbrand2013-05-012-0/+9
| | | | | | | Causes problems on all p31xx devices. http://pastebin.com/PabjFVWP Change-Id: Iac9a913e0984d7e9e419772215d3fb3d1a0cb5e8
* build/phone-xhdpi-1024-dalvik-heap.mk Revert AOSP heapgrowthlimit change ↵Andrew Bartholomew2013-04-251-1/+1
| | | | | | | | | | | | | | | | from 64 to 96 This reverts part of AOSP change at https://android.googlesource.com/platform/frameworks/native/+/c84e9844d621223d14178be521 Possible performance issues have arisen because of it. Discussion at http://code.google.com/p/android/issues/detail?id=40961 Patch Set 2: Clean up commit message Change-Id: Id7e3324607f92553a98e4d47da58a322e4fba657
* Merge "sensorservice: Add legacy sensors fusion." into cm-10.1Ricardo Cerqueira2013-04-2110-0/+690
|\
| * sensorservice: Add legacy sensors fusion.Rudolf Tammekivi2013-02-0210-0/+690
| | | | | | | | | | | | | | | | This change allows devices with accelerometer & magnetometer but without gyroscope to still get virtual sensors such as Gravity, Linear Acceleration and Rotation Vector. Change-Id: Ibb90b70845c766ab52c843557446e34649a7d6d9
* | Gfx-3d: fix GetProcAddress in egl extentionluliuhui2013-04-211-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | This patch can fix issue when Proc address return NULL. Glbench10, egl-ext and conformance test need this patch to run pass. Change-Id: I275c7cb6f77cb334c3ee7fa23cd696bba1c5a458 Author: Liuhui Lu <liuhui.lu@intel.com> Signed-off-by: Shuo Gao <shuo.gao@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com> Signed-off-by: Jack Ren <jack.ren@intel.com> Author-tracking-BZ: 52622
* | DisplayDevice: initialize mDisplayToken correctlyChih-Wei Huang2013-04-181-0/+1
| | | | | | | | | | | | mDisplayToken should be initialized by displayToken. Change-Id: I0a5fec1f1732200a32d10b1575239dceffe6dee4
* | Forward-port surface dithering from CM10Steven Luo2013-04-065-2/+52
| | | | | | | | | | | | | | | | | | | | | | This allows the use of 16-bit color displays without excessive color banding; behavior can be controlled by the persist.sys.use_dithering property. Incorporates http://review.cyanogenmod.org/19532 from CM10 as well as code removed in upstream commit 1b03149. Change-Id: I290ca4ed4787dc81ac756d9af92cd6a690865a08
* | SurfaceFlinger: Removal of NO_RGBX_8888 flag for OMAP3Krylon3602013-03-311-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Removing this will allow color format of surface to be set for RGBX8888 that can improve performance for 32 bit framebuffer. Tested on Nook Color with CM10 TI's commit can be found here: review.omapzoom.org/#/c/21374/3 This will also remove the need to have BOARD_NO_RGBX_8888 := true in the BoardConfig.mk Change-Id: Ibc6e56c992a6433bc8688d88471d4feb9084278c
* | native: Add custom 32-aligned NV12 colorformatvivek mehta2013-03-301-0/+1
| | | | | | | | | | | | - Add color format which is NV12 + 32 aligned stride and slice Change-Id: Iea804c2642ffad98890cbfe2979d56443f07ffdc
* | 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-1010-0/+238
| | | | | | | | | | | | | | | | | | 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-1014-4/+221
| | | | | | | | | | | | | | | | 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
* | Revert "SurfaceFlinger: Change to support framebuffer flip for 2D blitters"Steve Kondik2013-03-062-9/+0
| | | | | | | | This reverts commit f442ef1dfc17ca56b88c68c318599942f94e1d68.
* | 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
* | GC triggering performance optimizationsWei Wang2013-02-224-4/+4
| | | | | | | | | | | | | | Copy the correct starting heap size at process init. Interfaces to set GC/managed heap parameters. Change-Id: Ifbc6194310c61c05206f1d425ba5b4ebf8658141
* | Merge tag 'android-4.2.2_r1' of ↵Steve Kondik2013-02-1515-55/+220
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/native into 1.1 Android 4.2.2 release 1 Conflicts: libs/ui/GraphicBufferAllocator.cpp Change-Id: Id60a6580bf5a3ba04f8e1e2b1b950e0b93888166
| * \ merge in jb-mr1.1-release history after reset to jb-mr1.1-devandroid-4.2.2_r1.2android-4.2.2_r1.1android-4.2.2_r1The Android Automerger2012-12-100-0/+0
| |\ \
| | * \ merge in jb-mr1.1-release history after reset to jb-mr1.1-devThe Android Automerger2012-12-070-0/+0
| | |\ \
| | | * \ merge in jb-mr1.1-release history after reset to jb-mr1.1-devThe Android Automerger2012-12-060-0/+0
| | | |\ \
| | | | * \ merge in jb-mr1.1-release history after reset to jb-mr1.1-devThe Android Automerger2012-11-290-0/+0
| | | | |\ \
| | | | | * \ merge in jb-mr1.1-release history after reset to jb-mr1.1-devThe Android Automerger2012-11-270-0/+0
| | | | | |\ \
| | | | | | * \ merge in jb-mr1.1-release history after reset to jb-mr1.1-devThe Android Automerger2012-11-260-0/+0
| | | | | | |\ \
| | | | | | | * \ merge in jb-mr1.1-release history after reset to jb-mr1.1-devThe Android Automerger2012-11-190-0/+0
| | | | | | | |\ \
| | | | | | | | * \ merge in jb-mr1.1-release history after reset to jb-mr1.1-devThe Android Automerger2012-11-190-0/+0
| | | | | | | | |\ \
| | | | | | | | | * | workaround: don't reset compositionType to HWC_FRAMEBUFFER [DO NOT MERGE]Mathias Agopian2012-11-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This workaround a HWC HAL issue in Nexus 7, which causes videos and live wallpapers to animate slowly. Bug: 7563862 Change-Id: I16ad85317e3e7f47f005e7397357c14186b0a13d
| | | | | | | | | * | merge in jb-mr1.1-release history after reset to jb-mr1.1-devThe Android Automerger2012-11-160-0/+0
| | | | | | | | | |\ \ | | | | | | | | |/ / / | | | | | | | |/| | |
| | | | | | | | | * | merge in jb-mr1.1-release history after reset to jb-mr1.1-devThe Android Automerger2012-11-140-0/+0
| | | | | | | | | |\ \
| | | | | | | | | | * \ merge in jb-mr1.1-release history after reset to jb-mr1.1-devThe Android Automerger2012-11-060-0/+0
| | | | | | | | | | |\ \
| * | | | | | | | | | | | [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-072-11/+56
| |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | | | | | | | Merge "make transform hint multi-display aware" into jb-mr1.1-devMathias Agopian2012-11-274-23/+64
| |\ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | |/| | | | | | | |
| | * | | | | | | | make transform hint multi-display awareMathias Agopian2012-11-214-23/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | if a layer is not mirrored, we now use its display as the source for the transfrom hint calculation instead of always using the default (main) display. this change does two thing: 1) we make updateTransformHint take a DisplayDevice as a parameter instead of hard-coding the main display. 2) each time we do a transaction that could change the hint, we go through all layers and figure out which display should be used for their transform hint. Bug: 7599344 Change-Id: I9b04a95e6c372dd770bacf81d8ef6f8e31b87b83
| * | | | | | | | | Merge "DO NOT MERGE - native_fence_sync: fix an enum name" into jb-mr1.1-devAndy McFadden2012-11-271-10/+11
| |\ \ \ \ \ \ \ \ \ | | |_|/ / / / / / / | |/| | | | | | | |
| | * | | | | | | | DO NOT MERGE - native_fence_sync: fix an enum nameJamie Gennis2012-11-261-10/+11
| | | |_|_|/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change replaces all references to the "EGL_NO_NATIVE_FENCE_ANDROID" enum with "EGL_NO_NATIVE_FENCE_FD_ANDROID". Bug: http://code.google.com/p/android/issues/detail?id=40295 (cherry-pick from master) Change-Id: Ie25d4ab9721d8b69b8d4afcf18e902ef8e3ad911
| * | | | | | | | gltrace: Make sure device is debuggable.Siva Velusamy2012-11-201-0/+6
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit 6482fa4db0a7ac99cd3503d6bf170f80b26fb695) Change-Id: I205aabcab1932025c12e7ba3d1b3cf94684f6758
| * | | | | | | fix typo that broke all the buildsMathias Agopian2012-11-191-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 7584338 Change-Id: Ieb8c27a544ac583af9aa1e0376e33a673d2d9673