summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* Bug fix in SensorManager.Aravind Akella2015-07-301-3/+59
| | | | | | | | If SensorService hasn't started when SensorManager instance is requested, keep retrying for a longer duration. Bug: 22529981 Change-Id: I3c506d962b61347085fc80b2c5832289539d6853
* Revert "Bug fix in SensorManager."Narayan Kamath2015-07-291-8/+3
| | | | | | This reverts commit 869eb2089ec8a6286b944bfcff57e4cbe0c7e207. Change-Id: I4fb865e3b18bbb011fa4e4b4732336930c3a45ae
* Bug fix in SensorManager.Aravind Akella2015-07-261-3/+8
| | | | | | | | If SensorService hasn't started when SensorManager instance is requested, keep retrying for a longer duration. Bug: 22529981 Change-Id: I4ba6b760608e34d79273aeb39568f0fa72fbaf9d
* BufferQueueConsumer: signal onFrameReleased on dropped framesLajos Molnar2015-07-171-129/+142
| | | | | Bug: 22552826 Change-Id: I9bdfeb8c68f403301af90d4b494f0ae7166a767c
* Merge "Revert "Revert "Modify EGL to disconnect the window when the surface ↵Amith Dsouza2015-07-011-2/+2
|\ | | | | | | gets destroyed.""" into mnc-dev
| * Revert "Revert "Modify EGL to disconnect the window when the surface gets ↵Amith Dsouza2015-07-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | destroyed."" This reverts commit 6e1a2fea67006b58e83ebbcc72f7b12f18c49d15. Driver level issues fixed by an updated graphics driver. Bug: 21266976 Change-Id: I93339fb6c6bab988f3550adb49ef8e70cda6473e
* | Merge "Enable sensor data injection mode through adb." into mnc-devAravind Akella2015-07-013-14/+20
|\ \
| * | Enable sensor data injection mode through adb.Aravind Akella2015-06-303-14/+20
| |/ | | | | | | Change-Id: I415cf8ff0871fa74babaf9b879c68f210298b472
* | Fix writeByteArray/writeInt32Array size on x64Chad Brubaker2015-06-301-4/+4
|/ | | | | | | | | writeByteArray writes the size using sizeof(size_t), however it is always read using readInt32(). On devices where sizeof(size_t) != 4 this causes extra bytes to be written. BUG: 22204736 Change-Id: I8d4507b6b616857ef5827f1fe9da0907d09abf0e
* libgui: Fix handling of rotated surface damageDan Stoza2015-06-251-10/+51
| | | | | | | | | | | | | | | Incoming surface damage was not aware that the EGL implementation was rotating buffers in response to SurfaceFlinger's transform hint. This didn't affect all cases because the effect was to apply a 90 degree rotation instead of a 270 degree rotation. For full-screen updates, things more or less worked, but in other cases this caused corruption. This fixes that by correctly undoing the effect of rotated buffers on the incoming surface damage, and then passing that damage down untouched to HWC. Bug: 22068334 Change-Id: I226ecfc7a91fe2e16edd2aa6d9149f0d26b529d6
* libgui/SF: Propagate SECURE Layer flag changesDan Stoza2015-06-181-5/+4
| | | | | | | | | This allows changes to the SECURE flag to propagate down to Layers in SurfaceFlinger so that WindowManager can change it on the fly in response to device policy updates. Bug: 20934462 Change-Id: I558f6d22c6273be373f1f480365e42536af18a33
* Merge "GLConsumer: Fix crop math" into mnc-devDan Stoza2015-06-111-6/+10
|\
| * GLConsumer: Fix crop mathDan Stoza2015-06-101-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we have excess pixels that need to be removed from (for example) the left and right sides, we currently do something like: left += excess / 2; right -= excess / 2; If excess is odd, however, this removes 1 too few pixels since the odd pixel gets rounded down twice. This changes the math to effectively: left += excess / 2; right -= (excess - excess / 2); Which removes the correct total number of pixels. Bug: 19611086 Change-Id: I8d1ad9fe7ba67c149794c148663d12acbccccef0
* | Prevent integer overflow when calculating buffer resizesChristopher Tate2015-06-082-2/+7
|/ | | | | | | | | | | Make sure that we don't go haywire if an exponential buffer growth operation winds up wrapping integer range. Along the way, fix a bookkeeping bug in BufferedTextOutput that would cause it to keep spuriously realloc()ing on every append(). Bug 20674694 Change-Id: Ia845b7de36b90672a151a918ffc26c7da68e20a2
* Don't corrupt parcel when writeFileDescriptor() failsChristopher Tate2015-06-081-7/+8
| | | | | | | | | | | We now check for fd-legality before committing binder objects to the flattened data buffer rather than after. Previously we would wind up corrupting the parcel and incurring driver-level errors, as well as potentially leaking FDs. Bug 21428802 Change-Id: Ice0d641b3dcc41fb1b8c68ce2e2ebd744c2863a1
* libgui/SurfaceFlinger: Add getConsumerNameDan Stoza2015-06-086-6/+74
| | | | | | | | | Adds a getConsumerName method to IGraphicBufferProducer and Surface. Currently, the name is cached inside of IGBP and is update on connect and dequeueBuffer, which should be good enough for most uses. Bug: 6667401 Change-Id: I22c7881d778e495cf8276de7bbcd769e52429915
* Merge "Revert "libgui: Add getConsumerName"" into mnc-devDan Stoza2015-06-086-74/+6
|\
| * Revert "libgui: Add getConsumerName"Dan Stoza2015-06-086-74/+6
| | | | | | | | | | | | This reverts commit 107fbe5599016b0e35145a1a00c4f238b63d61e4. Change-Id: I0c2b0f7c81193b05eb3dd2f5a59f83598434b744
* | Merge "libgui: Add getConsumerName" into mnc-devDan Stoza2015-06-086-6/+74
|\ \ | |/
| * libgui: Add getConsumerNameDan Stoza2015-06-056-6/+74
| | | | | | | | | | | | | | | | | | Adds a getConsumerName method to IGraphicBufferProducer and Surface. Currently, the name is cached inside of IGBP and is updated on connect and dequeueBuffer, which should be good enough for most uses. Bug: 6667401 Change-Id: Ife94bd89023fe7c00bad916932b9a19233fd2290
* | Enable more flexible usage of blobs in parcels.Jeff Brown2015-06-051-23/+48
|/ | | | | | | | | | | Add functions to allow a client to take over the ashmem region that was transferred so that it can claim it for its own and reuse it. Add support for mutable ashmem regions too. Bug: 21428802 Change-Id: I16eca338cdb99b07d81fc43573d53ce86dbc60c8
* Merge "libgui: Add generation numbers to BufferQueue" into mnc-devDan Stoza2015-06-058-13/+147
|\
| * libgui: Add generation numbers to BufferQueueDan Stoza2015-06-038-13/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change allows producers to set a generation number on a BufferQueue. This number will be embedded in any new GraphicBuffers created in that BufferQueue, and attempts to attach buffers which have a different generation number will fail. It also plumbs the setGenerationNumber method through Surface, with the additional effect that any buffers attached to the Surface after setting a new generation number will automatically be updated with the new number (as opposed to failing, as would happen on through IGBP). Bug: 20923096 Change-Id: I32bf726b035f99c3e5834beaf76afb9f01adcbc2
* | DO NOT MERGE Remove unused ParcelFileDescriptor methods in parcel.Tim Kilbourn2015-06-041-43/+0
|/ | | | | | | | Attempts to replicate Java parceling in native code is fraught with peril. Change-Id: I4359036c5dddd1b886d886beef1d060523e53e5f (cherry picked from commit f47a381001d4d4ce66c2e35aac5b96a26acc0730)
* Merge "Track camera and flashlight usage in battery stats." into mnc-devRuben Brunk2015-06-021-0/+81
|\
| * Track camera and flashlight usage in battery stats.Ruben Brunk2015-06-011-0/+81
| | | | | | | | | | | | Bug: 15986092 Change-Id: I272ec070113a0bfc41c637c45a6e1a2ab346e87b
* | Merge "Disregard alleged binder entities beyond parcel bounds" into mnc-devChristopher Tate2015-06-021-1/+1
|\ \
| * | Disregard alleged binder entities beyond parcel boundsChristopher Tate2015-05-271-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
* | | libgui: Propagate error by clearing sp<GB>Dan Stoza2015-06-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Clears the sp<GraphicBuffer> returned by createGraphicBuffer when there is an error during unflattening. Bug: 21498231 Change-Id: I886da4474fc06853cc59188d62044b7d7549126b
* | | Merge "libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc" into mnc-devDan Stoza2015-06-011-0/+3
|\ \ \
| * | | libui: Apply GRALLOC_USAGE_ALLOC_MASK during allocDan Stoza2015-05-291-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Applies GRALLOC_USAGE_ALLOC_MASK to the incoming usage bits before calling alloc on the gralloc module. This filters out the new flag GRALLOC_USAGE_FOREIGN_BUFFERS, which is used to send a hint to the producer, but which does not affect the allocation of buffers. Bug: 19801661 Change-Id: Ia37a3eddba2e97598e50ac3e10877430adfa9247
* | | | Fix libgui crop matrix test.Michael Lentine2015-05-291-6/+23
|/ / / | | | | | | | | | | | | | | | | | | On devices that have the crop image extension the crop is not applied to the transform matrix so we have to expect different results in this case. Change-Id: If62dec1111fb77c9fa2c4332d121665960ce0216
* | | Revert "Modify EGL to disconnect the window when the surface gets destroyed."Michael Lentine2015-05-281-2/+2
|/ / | | | | | | This reverts commit 00699fa64197cc72a160d69e1f0003cdd43dc136.
* | libgui: Fix surface damage on rotated buffersDan Stoza2015-05-261-2/+6
| | | | | | | | | | | | | | | | Flips the width and height when the buffer comes in with a 90 degree rotation so that performing the Y-flip from GL works correctly. Bug: 20761426 Change-Id: I41c9edc8549c6cbdb534277b996ff20c59034582
* | Merge "Fix libgui tests." into mnc-devMichael Lentine2015-05-222-8/+13
|\ \
| * | Fix libgui tests.Michael Lentine2015-05-222-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update IGraphicsBufferProducerTest to the new maximum enum value which is now NATIVE_WINDOW_BUFFER_AGE. Update SurfaceTextureGLToGL_test to use the correct counts for GraphicsBuffer refs. Buf: 18138368 Change-Id: Ie2f7e00b414d63100b16944e3ab36b1ffceecd57
* | | Merge "fix BufferItem flatten/unflatten alignment" into mnc-devChong Zhang2015-05-221-13/+12
|\ \ \ | |/ / |/| |
| * | fix BufferItem flatten/unflatten alignmentChong Zhang2015-05-221-13/+12
| |/ | | | | | | | | bug: 21370100 Change-Id: Ia3991dc591c176bdbd1d78d1804aa22777525b62
* | Merge "Refactor ConsumerBase and it's derived classes." into mnc-devMichael Lentine2015-05-183-35/+16
|\ \ | |/ |/|
| * Refactor ConsumerBase and it's derived classes.Michael Lentine2015-05-183-35/+16
| | | | | | | | | | | | | | | | | | | | Move setDefaultBufferSize, setDefaultBufferFormat, and setDefaultBufferDataSpace into ConsumerBase and remove them from CpuConsumer and BufferItemConsumer. Bug: 19977701 Change-Id: Ic68992464c5da6da7a41c4063a53029a69efcd1b
* | Merge "Add ConsumerBase::isAbandoned" into mnc-devJohn Reck2015-05-141-0/+5
|\ \
| * | Add ConsumerBase::isAbandonedJohn Reck2015-05-141-0/+5
| | | | | | | | | | | | | | | Bug: 20105644 Change-Id: I21526b5397ea51a15500c44a99daa9d75fc4ea67
* | | Merge "Modify EGL to disconnect the window when the surface gets destroyed." ↵Michael Lentine2015-05-141-2/+2
|\ \ \ | | |/ | |/| | | | into mnc-dev
| * | Modify EGL to disconnect the window when the surface gets destroyed.Michael Lentine2015-05-131-2/+2
| | | | | | | | | | | | | | | | | | Bug: 14445579 Change-Id: I1d263ff6cffcb6e448761fca7ca4b06466ad65aa
* | | Merge changes from topic 'button_actions' into mnc-devMichael Wright2015-05-145-13/+23
|\ \ \ | |_|/ |/| | | | | | | | | | | * changes: Fix input tests to work with new MotionEvent member Revert "Revert "Add new MotionEvent actions for button press and release.""
| * | Fix input tests to work with new MotionEvent memberMichael Wright2015-05-143-10/+12
| | | | | | | | | | | | Change-Id: I0dde0f91f693903f26edc116b5dbcbf33bac2b93
| * | Revert "Revert "Add new MotionEvent actions for button press and release.""Michael Wright2015-05-142-3/+11
| | | | | | | | | | | | This reverts commit 70b41ef580644fd0fe6fa9b8ac7e4a745cfb6db3.
* | | Merge "Revert "Add new MotionEvent actions for button press and release."" ↵Michael Wright2015-05-142-11/+3
|\ \ \ | |/ / | | | | | | into mnc-dev
| * | Revert "Add new MotionEvent actions for button press and release."Michael Wright2015-05-142-11/+3
| | | | | | | | | | | | This reverts commit 48a8a0e4322969e1551536d6183af3a1faa2240b.
* | | Merge "Add new MotionEvent actions for button press and release." into mnc-devMichael Wright2015-05-142-3/+11
|\ \ \ | |/ /