summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Enable sensor data injection mode through adb.Aravind Akella2015-06-302-2/+2
| | | | Change-Id: I415cf8ff0871fa74babaf9b879c68f210298b472
* omx: add OMX_IndexParamConsumerUsageBitsLajos Molnar2015-06-252-0/+2
| | | | | | | | This is used by framework to query buffer consumers (e.g. video encoders) about required usage bits. Bug: 13222807 Change-Id: I508335c9d753c7a7224bb882f2228bd2f4144031
* Merge "libgui/SF: Propagate SECURE Layer flag changes" into mnc-devDan Stoza2015-06-231-2/+2
|\
| * libgui/SF: Propagate SECURE Layer flag changesDan Stoza2015-06-181-2/+2
| | | | | | | | | | | | | | | | | | 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 "Add new AINPUT_SOURCE_BLUETOOTH_STYLUS" into mnc-devMichael Wright2015-06-231-0/+1
|\ \
| * | Add new AINPUT_SOURCE_BLUETOOTH_STYLUSMichael Wright2015-06-121-0/+1
| |/ | | | | | | | | Bug: 21531826 Change-Id: I3792860ad3f6579ceb50ccaa212f8fbd471a9b6b
* | Add method to set action button on MotionEventMichael Wright2015-06-171-0/+2
|/ | | | Change-Id: I09f00fa1c2b793a88772f67fe195860ec436179d
* Add tracing headerChris Craik2015-06-101-0/+55
| | | | | | bug:21195272 Change-Id: I520de9fee7fc40d0570d6bef450d756ce42a1462
* Merge "media: change parameters for OMX_EventOutputRendered" into mnc-devLajos Molnar2015-06-092-2/+14
|\
| * media: change parameters for OMX_EventOutputRenderedLajos Molnar2015-06-052-2/+14
| | | | | | | | | | | | | | This allows batching of rendered events. Bug: 20503131 Change-Id: I3b319317c0434eb225198f8c4bf716edf68079a2
* | libgui/SurfaceFlinger: Add getConsumerNameDan Stoza2015-06-083-0/+9
| | | | | | | | | | | | | | | | | | 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-083-9/+0
|\ \
| * | Revert "libgui: Add getConsumerName"Dan Stoza2015-06-083-9/+0
| | | | | | | | | | | | | | | | | | This reverts commit 107fbe5599016b0e35145a1a00c4f238b63d61e4. Change-Id: I0c2b0f7c81193b05eb3dd2f5a59f83598434b744
* | | Merge "libgui: Add getConsumerName" into mnc-devDan Stoza2015-06-083-0/+9
|\ \ \ | |/ /
| * | libgui: Add getConsumerNameDan Stoza2015-06-053-0/+9
| |/ | | | | | | | | | | | | | | | | 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-5/+17
|/ | | | | | | | | | | 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-056-3/+41
|\
| * libgui: Add generation numbers to BufferQueueDan Stoza2015-06-036-3/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-10/+0
| | | | | | | | | | | | | | | | Attempts to replicate Java parceling in native code is fraught with peril. Change-Id: I4359036c5dddd1b886d886beef1d060523e53e5f (cherry picked from commit f47a381001d4d4ce66c2e35aac5b96a26acc0730)
* | media: rename VideoGrallocMetadata.hHandle to pHandleLajos Molnar2015-06-021-5/+2
|/ | | | | | | | | This is so that it can be equivalent to the previously named VideoDecoderOutputMetaData struct. Bug: 13222807 Change-Id: I9463694f65436a7edb1f6b592efc0a6329232a27
* fix build: media: add back legacy name for VideoGrallocMetadataLajos Molnar2015-06-011-0/+6
| | | | Change-Id: Ie101eb355887072b2ab92f489b86115a40952bd1
* Merge "media: refine kMetadataBufferTypes" into mnc-devLajos Molnar2015-06-022-29/+64
|\
| * media: refine kMetadataBufferTypesLajos Molnar2015-05-292-29/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | - Fix kMetadataBufferTypeANWBuffer, so that it only relies on system/core structures. This resolves potential linker issues if the framework changes. - Add fence to be passed with kMetadataBufferTypeANWBuffer. - Add utility structures to access the metadata buffer layouts. Related-bug: 19614055 Bug: 13222807 Bug: 12386081 Change-Id: I608958fd394b08cc3396bcbd5cdd350b87bc66f3
* | Merge "Track camera and flashlight usage in battery stats." into mnc-devRuben Brunk2015-06-021-0/+12
|\ \ | |/ |/|
| * Track camera and flashlight usage in battery stats.Ruben Brunk2015-06-011-0/+12
| | | | | | | | | | | | Bug: 15986092 Change-Id: I272ec070113a0bfc41c637c45a6e1a2ab346e87b
* | Merge "fix BufferItem flatten/unflatten alignment" into mnc-devChong Zhang2015-05-221-2/+14
|\ \
| * | fix BufferItem flatten/unflatten alignmentChong Zhang2015-05-221-2/+14
| |/ | | | | | | | | bug: 21370100 Change-Id: Ia3991dc591c176bdbd1d78d1804aa22777525b62
* | Merge "Adding round qualifier constant to native API." into mnc-devAdam Powell2015-05-181-0/+15
|\ \
| * | Adding round qualifier constant to native API.Adam Lesinski2015-05-151-0/+15
| |/ | | | | | | Change-Id: I43e6c029412d0ed1d345c16fdce90e2879c52a8e
* | Merge "Refactor ConsumerBase and it's derived classes." into mnc-devMichael Lentine2015-05-183-32/+9
|\ \ | |/ |/|
| * Refactor ConsumerBase and it's derived classes.Michael Lentine2015-05-183-32/+9
| | | | | | | | | | | | | | | | | | | | 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/+3
|\ \
| * | Add ConsumerBase::isAbandonedJohn Reck2015-05-141-0/+3
| | | | | | | | | | | | | | | Bug: 20105644 Change-Id: I21526b5397ea51a15500c44a99daa9d75fc4ea67
* | | Merge changes from topic 'button_actions' into mnc-devMichael Wright2015-05-143-1/+17
|\ \ \ | |/ / |/| | | | | | | | | | | * 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-141-1/+1
| | | | | | | | | | | | Change-Id: I0dde0f91f693903f26edc116b5dbcbf33bac2b93
| * | Revert "Revert "Add new MotionEvent actions for button press and release.""Michael Wright2015-05-143-0/+16
| | | | | | | | | | | | This reverts commit 70b41ef580644fd0fe6fa9b8ac7e4a745cfb6db3.
* | | Merge "Revert "Add new MotionEvent actions for button press and release."" ↵Michael Wright2015-05-143-16/+0
|\ \ \ | |/ / | | | | | | into mnc-dev
| * | Revert "Add new MotionEvent actions for button press and release."Michael Wright2015-05-143-16/+0
| | | | | | | | | | | | This reverts commit 48a8a0e4322969e1551536d6183af3a1faa2240b.
* | | Merge "Add new MotionEvent actions for button press and release." into mnc-devMichael Wright2015-05-143-0/+16
|\ \ \ | |/ /
| * | Add new MotionEvent actions for button press and release.Michael Wright2015-05-143-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Fix PTS handling for buffer replacementDan Stoza2015-05-125-18/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | libgui: Hook up onFrameReplacedDan Stoza2015-05-112-19/+16
| |/ |/| | | | | | | | | | | This completes the plumbing from ConsumerListener::onFrameReplaced into SurfaceFlinger (and other consumers that may care). Change-Id: I376e78ace95d6748e8662e6b4d47c0dfa697a300
* | Fix broken NDK sensor manager API.Svet Ganov2015-05-072-0/+81
|/ | | | Change-Id: I21bb8b0dcfd3f1c812753a9fd77dea792e7155f2
* Merge "Add body sensors app op - framework native" into mnc-devSvetoslav2015-05-018-19/+23
|\
| * Add body sensors app op - framework nativeSvetoslav2015-05-018-19/+23
| | | | | | | | Change-Id: I727a2bb1e28ae9158f2df9c74dd0aee977dfd47f
* | SurfaceFlinger: Fix PTS on stale buffersDan Stoza2015-05-013-0/+15
|/ | | | | | | | | | | | | | | | | | | | | 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)
* Respect the record audio app op - frameworks nativeSvet Ganov2015-04-282-5/+32
| | | | Change-Id: Id747767377953fd644a538aad3f603d6c50875a2
* BufferQueue: Add NATIVE_WINDOW_BUFFER_AGE queryDan Stoza2015-04-281-0/+4
| | | | | | | | | 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: Change detachNextBuffer to return sp<GB>Dan Stoza2015-04-271-1/+1
| | | | | | | | | | 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 change method signature of enableDataInjection.Aravind Akella2015-04-241-1/+1
| | | | Change-Id: I3927aec64f5a1555d2e5d07591fd04e7b3be5f09