summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Add new MotionEvent actions for button press and release.Michael Wright2015-05-142-3/+11
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce ACTION_BUTTON_PRESS and ACTION_BUTTON_RELEASE as actions to signal a button press or release. If these actions happen simulanteously with a DOWN or UP event then they're explicitly ordered to happen after the DOWN or preceding the UP in order to send them to the most recently targeted view. Also, introduce new stylus button constants that differ from the constants we use for mouse buttons. Bug: 20704355 Change-Id: Ib960a5004db5429ad2fc8db020704773e2978327
* | Merge "Fix PTS handling for buffer replacement" into mnc-devDan Stoza2015-05-135-53/+27
|\ \
| * | Fix PTS handling for buffer replacementDan Stoza2015-05-125-53/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the way that SurfaceFlinger's shadow buffer management works such that instead of tracking the size of the shadow queue in the BufferQueue, SF tracks the last frame number it has seen, and passes that into the acquireBuffer call. BufferQueueConsumer then ensures that it never returns a buffer newer than that frame number, even if that means that it must return PRESENT_LATER for an otherwise valid buffer. Change-Id: I3fcb45f683ed660c3f18a8b85ae1f8a962ba6f0e
* | | Merge "Verify that the native handle was created" into mnc-devAdam Lesinski2015-05-131-0/+4
|\ \ \
| * | | Verify that the native handle was createdAdam Lesinski2015-05-121-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
* | | libgui: Always allow allocation on connectDan Stoza2015-05-121-0/+1
| |/ |/| | | | | | | | | | | | | | | | | This change places BufferQueue into a predictable state where allocation is allowed whenever a producer connects. This allows clients to disconnect and reconnect without having to worry about being locked out of allocation. Bug: 20554276 Change-Id: Ic0f920a3d4204f2cafdfa69e46f3bb4204571d7e
* | libgui: Hook up onFrameReplacedDan Stoza2015-05-112-0/+23
|/ | | | | | | This completes the plumbing from ConsumerListener::onFrameReplaced into SurfaceFlinger (and other consumers that may care). Change-Id: I376e78ace95d6748e8662e6b4d47c0dfa697a300
* Merge "libgui: Clear frame number while freeing slot" into mnc-devDan Stoza2015-05-042-1/+4
|\
| * libgui: Clear frame number while freeing slotDan Stoza2015-05-012-1/+4
| | | | | | | | | | | | | | | | Clears the frame number of a slot when it is freed, since it is used to determine if a released buffer is stale. Bug: 20445852 Change-Id: I02415e7b25a1eafe7414d6eb1cedf62ac5543cd9
* | Merge "Add body sensors app op - framework native" into mnc-devSvetoslav2015-05-016-13/+93
|\ \
| * | Add body sensors app op - framework nativeSvetoslav2015-05-016-13/+93
| |/ | | | | | | Change-Id: I727a2bb1e28ae9158f2df9c74dd0aee977dfd47f
* | SurfaceFlinger: Fix PTS on stale buffersDan Stoza2015-05-013-1/+43
|/ | | | | | | | | | | | | | | | | | | | | SurfaceFlinger's (Layer's) shadow copy of the BufferQueue queue was getting out of sync for a few reasons. This change fixes these by doing the following: - Adds a check to re-synchronize the shadow copy every time we successfully acquire a buffer by first dropping stale buffers before removing the current buffer. - Avoids trying to perform updates for buffers which have been rejected (for incorrect dimensions) by SurfaceFlinger. - Adds IGraphicBufferConsumer::setShadowQueueSize, which allows the consumer to notify the BufferQueue that it is maintaining a shadow copy of the queue and prevents it from dropping so many buffers during acquireBuffer that it ends up returning a buffer for which the consumer has not yet received an onFrameAvailable call. Bug: 20096136 Change-Id: I78d0738428005fc19b3be85cc8f1db498043612f (cherry picked from commit 2e36f2283f48ab764b496490c73a132acf21df3a)
* Close Fence FDs in error cases of Surface and GraphicBufferMapperTaiju Tsuiki2015-04-302-0/+9
| | | | | | | | Surface::{cancel,queue}Buffer and GraphicBufferMapper::lockAsyncYCbCr take the ownership of |fenceFd|s. Though they don't close it on error cases. Change-Id: I49a7ce8837d5c510c4ac4ad4649f310d18610e80 (cherry picked from commit c7263fb43297744eb04b11025424c0c526d5584c)
* Avoid closing invalid FD in Surface and GraphicBufferMapperTaiju Tsuiki2015-04-301-4/+8
| | | | | | | | GraphicBufferMapper::lockAsync{,YCbCr} close the fence FD even when the FD is invalid. Change-Id: Ia2b4dae3b2c06426e34f623f19ba92435f486ab7 (cherry picked from commit dcfe91e1f3f15b68793a69650f9bd0ca6a58ff4c)
* Merge "Respect the record audio app op - frameworks native" into mnc-devSvet Ganov2015-04-291-1/+34
|\
| * Respect the record audio app op - frameworks nativeSvet Ganov2015-04-281-1/+34
| | | | | | | | Change-Id: Id747767377953fd644a538aad3f603d6c50875a2
* | Parcel.cpp: use calloc instead of mallocNick Kralevich2015-04-281-1/+1
| | | | | | | | | | | | | | (cherrypicked from commit 6329f0199ed04030e6c2bd7aecd036387b732c71) Bug: 20669363 Change-Id: Ia4c8d8ca9d8b4b87954d7267e8b1c94cf4e570e1
* | libgui: Fix buffer age on 64-bit targetsDan Stoza2015-04-281-1/+2
|/ | | | | | Changes a %llu to a PRIu64 to fix compilation on 64-bit targets. Change-Id: I8ba982662dbe8ee2e1e47c4f6ce4bbdbe2020960
* BufferQueue: Add NATIVE_WINDOW_BUFFER_AGE queryDan Stoza2015-04-282-1/+17
| | | | | | | | | Adds a NATIVE_WINDOW_BUFFER_AGE query, which returns the age of the contents of the most recently dequeued buffer as the number of frames that have elapsed since it was last queued. Change-Id: Ib6fd62945cb62d1e60133a65beee510363218a23 (cherry picked from commit 49f810c72df8d1d64128e376757079825c8decd4)
* libgui: Implement onTransact for sideband streamsDan Stoza2015-04-281-0/+9
| | | | | | | | Implements the GET_SIDEBAND_STREAM case of IGraphicBufferConsumer::onTransact Change-Id: I46138b87ce2d70dde48b3561dcd378ce5fd8f383 (cherry picked from commit 17166698d935a004adab216aca83a585f91e9d96)
* libgui: Change detachNextBuffer to return sp<GB>Dan Stoza2015-04-271-2/+2
| | | | | | | | | | Changes Surface::detachNextBuffer to return an sp<GraphicBuffer> instead of an ANativeWindowBuffer* to ensure that reference counting works correctly. Bug: 20092217 Change-Id: I3979ea6121aaf14845f0554477b778770413581e (cherry picked from commit 8b2daa3ca29492b181fb67840640d771c4a2b3ac)
* Build fix SensorEventQueue.Aravind Akella2015-04-241-1/+1
| | | | Change-Id: I3e6ba031d42bd37067591771f378b7185169ab48
* Merge "Enable data injection mode in SensorService."Aravind Akella2015-04-253-10/+44
|\
| * Enable data injection mode in SensorService.Aravind Akella2015-04-233-10/+44
| | | | | | | | Change-Id: I0cd32a017235c31c54816e4a357ce3b988350ed6
* | am 5d10894c: am ef47c080: am 958f5011: Merge "libgui: Allow an IGBProducer ↵Dan Stoza2015-04-245-22/+118
|\ \ | | | | | | | | | | | | | | | | | | to disable allocation" * commit '5d10894c9d547449cf231f02b736da9dfdebec11': libgui: Allow an IGBProducer to disable allocation
| * \ Merge "libgui: Allow an IGBProducer to disable allocation"Dan Stoza2015-04-245-22/+118
| |\ \
| | * | libgui: Allow an IGBProducer to disable allocationDan Stoza2015-04-235-22/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a new method IGBP::allowAllocation, which controls whether dequeueBuffer is permitted to allocate a new buffer. If allocation is disallowed, dequeueBuffer will block or return an error as it normally would (as controlled by *ControlledByApp). If there are free buffers, but they are not of the correct dimensions, format, or usage, they may be freed if a more suitable buffer is not found first. Bug: 19801715 Change-Id: I0d604958b78b2fd775c2547690301423f9a52165
* | | | am 437fb850: am f96a7581: am fb6d43ff: Merge "libgui: Change BufferQueue to ↵Dan Stoza2015-04-243-39/+116
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | use free lists" * commit '437fb850b0667be3e8655cb1ac6a8d491f59d045': libgui: Change BufferQueue to use free lists
| * | | Merge "libgui: Change BufferQueue to use free lists"Dan Stoza2015-04-243-39/+116
| |\ \ \ | | |/ /
| | * | libgui: Change BufferQueue to use free listsDan Stoza2015-04-233-39/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BufferQueue used to choose free buffers by scanning through its array of slots and picking one based on timestamp. This changes that mechanism to use a pair of free lists: one with buffers attached and one without. This makes it easier to choose either type of free slot depending on the needs of the current operation. Fixes an issue with the first version of this change, found in bugs 20482952, 20443314, and 20464549. Bug: 13175420 Change-Id: I9b6e83cfe8f9b4329a976025cb8e291d51fb6d4a
* | | | am 65f68d5c: am fece8306: am 56f1f16c: Merge "libgui: Fix some ↵Dan Stoza2015-04-239-77/+108
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | bitrot/warnings in tests" * commit '65f68d5cb4a758a8e6faac95817f70383748a9c0': libgui: Fix some bitrot/warnings in tests
| * | | Merge "libgui: Fix some bitrot/warnings in tests"Dan Stoza2015-04-239-77/+108
| |\ \ \
| | * | | libgui: Fix some bitrot/warnings in testsDan Stoza2015-04-209-77/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These tests hadn't been run in a while and had accumulated some rot. This fixes most of the compile warnings and some tests which fail incorrectly, but 2 failures remain on N6. Change-Id: I7fee78cd058a32f4d7df40ec9f899ff767f68517
* | | | | am 17df593e: am 9aae16a4: am 82e4d49b: Merge "libui/libgui: Fix errors in ↵Dan Stoza2015-04-232-54/+83
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | parceling" * commit '17df593eb386940a26377d2db9fcb8a60e8badba': libui/libgui: Fix errors in parceling
| * | | | Merge "libui/libgui: Fix errors in parceling"Dan Stoza2015-04-232-54/+83
| |\ \ \ \ | | |/ / / | | | / / | | |/ / | |/| |
| | * | libui/libgui: Fix errors in parcelingDan Stoza2015-04-202-54/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BufferItem and GraphicBuffer were not parceling correctly, which had not been noticed because the libgui tests (specifically, one that tests placing a BufferQueue in a separate process from the IGBP/C) had not been run recently. This change fixes the errors found in those classes. Change-Id: Ie224361a534a79115a3481d83ff97f21d154d4f5
* | | | am 41422980: am d2c12e4c: am 7637e35d: Merge "Revert "libgui: Change ↵Dan Stoza2015-04-223-113/+39
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | BufferQueue to use free lists"" * commit '41422980fabb087390791d951c28fef072d93be1': Revert "libgui: Change BufferQueue to use free lists"
| * | | Merge "Revert "libgui: Change BufferQueue to use free lists""Dan Stoza2015-04-223-113/+39
| |\ \ \
| | * | | Revert "libgui: Change BufferQueue to use free lists"Dan Stoza2015-04-223-113/+39
| | |/ / | | | | | | | | | | | | | | | | | | | | This reverts commit 8dddc990103b71137be2a6365a26b1ac36598e68. Change-Id: I0b0fed9f1394c6f6ae812f6c562ead4473a8226e
* | | | am 3805a00d: am 91f16b1b: am e647ddde: Merge "libgui: Fix CPU rendering on ↵Dan Stoza2015-04-221-4/+6
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Surface" * commit '3805a00d6efef02535aaed96f412e0c55a9875f8': libgui: Fix CPU rendering on Surface
| * | | libgui: Fix CPU rendering on SurfaceDan Stoza2015-04-211-4/+6
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the surface damage code went in, it incorrectly assumed that if an application was doing CPU rendering, it would be using lock and unlockAndPost instead of dequeue and queue, so it repurposed the dirty region too aggressively. This change keeps it from clobbering the dirty region if a CPU producer is attached. Bug: 20431815 Change-Id: Id4dfd71378311ea822f0289f6de2d20a7bd84014
* | | Merge "Fixed build error with clang/llvm."Wale Ogunwale2015-04-221-2/+3
|\ \ \
| * | | Fixed build error with clang/llvm.Wale Ogunwale2015-04-211-2/+3
| | | | | | | | | | | | | | | | Change-Id: Ideacdc974ebad542df724464ccba9fcfb2b7ea91
* | | | Merge "Add ashmem stats to Parcels"Dan Sandler2015-04-211-0/+8
|\ \ \ \ | |_|_|/ |/| | |
| * | | Add ashmem stats to ParcelsDan Sandler2015-04-161-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Requires change Ifaf115da in frameworks/base. Bug: 20079551 Change-Id: Ifaf115dabd1a59cdb1b46e2d49c41f64ac107de4
* | | | am aadb236d: am 483c76dc: am ff5c1a6b: Merge "libgui: Change BufferQueue to ↵Dan Stoza2015-04-203-39/+113
|\ \ \ \ | |_|/ / |/| | / | | |/ | |/| | | | | | | use free lists" * commit 'aadb236d2e944791c1e7600eae9439fcb8a6caa9': libgui: Change BufferQueue to use free lists
| * | libgui: Change BufferQueue to use free listsDan Stoza2015-04-173-39/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BufferQueue used to choose free buffers by scanning through its array of slots and picking one based on timestamp. This changes that mechanism to use a pair of free lists: one with buffers attached and one without. This makes it easier to choose either type of free slot depending on the needs of the current operation. Bug: 13175420 Change-Id: Ic8398e7511bd11a60a1c82e3ad2ee271c9822be1
* | | am 057a561a: am 57a9f5a0: am fd5f41be: Merge "libgui: Pass surface damage ↵Dan Stoza2015-04-156-6/+95
|\ \ \ | |/ / | | | | | | | | | | | | | | | through BufferQueue" * commit '057a561afbf30ede99b5ec627deec7ee11701f6d': libgui: Pass surface damage through BufferQueue
| * | libgui: Pass surface damage through BufferQueueDan Stoza2015-04-156-6/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds support for passing surface damage all of the way down from the EGL interface through the consumer side of the BufferQueue. Depends on system/core change Ie645e6a52b37b5c1b3be19481e8348570d1aa62c Bug: 11239309 Change-Id: I4457ea826e9ade4ec187f973851d855b7b93a31b
* | | am a161b6ce: am c02377e6: am 4d769d8b: Merge "libui: Clean up Fence and ↵Dan Stoza2015-04-152-16/+35
|\ \ \ | |/ / | | | | | | | | | | | | | | | Region flattening" * commit 'a161b6cee9253a17be6b8dc232b05a41fde0030a': libui: Clean up Fence and Region flattening