summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Have VirtualDisplays send SF resize messages when resizingMichael Wright2014-07-302-1/+4
| | | | Change-Id: I76d15b22099a659450ec875836c9bf2b6584838f
* Turn on support for async cursor update in surfaceflinger.Riley Andrews2014-07-282-1/+4
| | | | | | | If available, surfaceflinger will use the hwc setCursorPositionAsync() api to change the position of supported cursor layers outside of the usual prepare/set loop. Change-Id: Ib3fc5c0c390b3489ddbba202379840a1d2748917
* OMX: add supporting methods for flexible YUVLajos Molnar2014-07-252-0/+64
| | | | | Bug: 10706245 Change-Id: I2427930a34c468e49d3db7ba2865344f1fba2960
* Merge "SensorService performance improvements." into lmp-devAravind Akella2014-07-242-1/+3
|\
| * SensorService performance improvements.Aravind Akella2014-07-242-1/+3
| | | | | | | | | | | | | | | | | | i) Send ack for wake_up sensors on the socket connection instead of using Binder RPC. ii) Cache events per connection in case there are write failures. Compute cache size from FIFO counts of sensors. iii) Send FlushCompleteEvent only for apps that explicitly called flush(). Change-Id: I018969736b7794b1b930529586f2294a03ee8667
* | Merge "GLProducer: Reference count images rather than buffers." into lmp-devEric Penner2014-07-241-25/+58
|\ \ | |/ |/|
| * GLProducer: Reference count images rather than buffers.Eric Penner2014-07-211-25/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In most cases, EGLImages can be created one-to-one with graphic buffers in slots, but that was difficult due to some special cases: - ReleaseTexImage binds a custom 'unslotted' debug image. - When all slots are freed, we still need to hang on to one. These cases were handled by keeping an additional reference to the 'current' buffer (mCurrentTextureBuf), but we would create new images since we can't reference count them in the same way. This patch uses the same semantics, except that it reference counts the image (an EglImage wrapper class) rather than just buffer. The wrapper class also detects the cases when we need a new EGLImage, and only creates them in those rare cases. Change-Id: I2915761dbe49d2a9bda1f59e60f857543634636b
* | add noteResetVideo/Audio to IBatteryStatsChong Zhang2014-07-231-0/+4
| | | | | | | | | | Bug: 12979595 Change-Id: Ida474e539a3af0a85ec157a66bbf986430c8020e
* | Merge "update battery status for audio/video" into lmp-devChong Zhang2014-07-221-0/+8
|\ \
| * | update battery status for audio/videoChong Zhang2014-07-221-0/+8
| |/ | | | | | | | | | | Bug: 12979595 Change-Id: Ic8e8d625becc6d1050f840ad63b7423f388eeba3
* | BufferQueue: release mutex while allocating. DO NOT MERGEAntoine Labour2014-07-221-0/+12
|/ | | | | | | | | | | | | | | | BufferQueueProducer::allocateBuffers used to keep the BufferQueueCore mutex while doing the buffer allocation, which would cause the consumer (which also needs the mutex) to block if the allocation takes a long time. Instead, release the mutex while doing the allocation, and grab it again before filling the slots. Keep a bool state and a condvar to prevent other producers from trying to allocate the slots while the mutex is released. Bug: 11792166 Change-Id: I4ab1319995ef892be2beba892f1fdbf50ce0416d (cherry picked from commit ea96044470a29133321c681080870b9d31f81a19)
* Add sticky transform to surfaceflinger.Ruben Brunk2014-07-143-4/+21
| | | | | | | | | | Bug: 15116722 - Adds a sticky transform field that can be set from a SurfaceFlinger client Surface. This transform is added to any transform applied to the Surface. Change-Id: Idaa4311dfd027b2d2b8ea5e2c6cba2da5779d753
* Merge "Fix non-portable definition of CryptoPlugin::SubSample"Jeff Tinker2014-07-011-2/+2
|\
| * Fix non-portable definition of CryptoPlugin::SubSampleJeff Tinker2014-07-011-2/+2
| | | | | | | | | | bug: 16016106 Change-Id: I76514b2e7a28c86a0b0b311af575ca9dfc9471a9
* | Merge "BufferQueue: Add allocateBuffers method"Dan Stoza2014-06-273-0/+27
|\ \ | |/ |/|
| * BufferQueue: Add allocateBuffers methodDan Stoza2014-06-203-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds an allocateBuffers method to BufferQueue, which instructs it to allocate up to the maximum number of buffers allowed by the current configuration. The goal is that this method can be called ahead of render time, which will prevent dequeueBuffers from blocking in allocation and inducing jank. This interface is also plumbed up to the native Surface (and, in another change, up to the Java Surface and ThreadedRenderer). Bug: 11792166 Change-Id: I4aa96b4351ea1c95ed5db228ca3ef98303229c74
* | GLConsumer: Allow creation in detached modeDan Stoza2014-06-251-17/+22
| | | | | | | | | | | | | | | | Adds a constructor that doesn't require a GLES texture name and sets up the GLConsumer in detached mode. Bug: 15616428 Change-Id: Idc9ea2e59baa24bbd959da9fffe0fb71c0aa9818
* | GLConsumer: Stop using default constructor paramsDan Stoza2014-06-241-4/+3
|/ | | | | | | | Removes the dependency on default constructor parameters for GLConsumer so that a different constructor prototype can safely be added. Change-Id: I0da924bbd4c141edbf305598c1be8bc575654680
* Add two new display info fieldsAndy McFadden2014-06-171-0/+3
| | | | | | | | | This adds SurfaceFlinger's app VSYNC offset and buffer deadline values to DisplayInfo. Bug 14612039 Change-Id: Ie0ab21d388fe2764f2b6f71bd1cefa33dc861a73
* Merge "Remove Parcel::writeIntPtr."Narayan Kamath2014-06-101-1/+0
|\
| * Remove Parcel::writeIntPtr.Narayan Kamath2014-06-121-1/+0
| | | | | | | | | | | | | | | | All uses of this API have been removed. It should never have been made public in the first place. bug: 15424960 Change-Id: Id07d24ec95b2b393e6da138a7e8a9a4ecebeca94
* | Merge "Surface reportingMode for Sensors."Aravind Akella2014-06-122-1/+18
|\ \
| * | Surface reportingMode for Sensors.Aravind Akella2014-06-122-1/+18
| | | | | | | | | | | | Change-Id: Iac8dd3408c90eb7d285a2e8043131fab3a7e58fa
* | | Merge "surfaceflinger: Replace blank/unblank with setPowerMode"Prashant Malani2014-06-122-15/+7
|\ \ \ | |_|/ |/| |
| * | surfaceflinger: Replace blank/unblank with setPowerModePrashant Malani2014-06-052-15/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We replace the blank/unblank calls in surfaceFlinger with a more generic setPowerMode() routine. Some displays support different power modes (for example, with reduced color palettes). Depending on the use case we should be able to toggle these modes, so as to achieve incremental power savings. Initially, three power modes will be supported: - HWC_POWER_MODE_OFF - HWC_POWER_MODE_DOZE - HWC_POWER_MODE_NORMAL HWC_POWER_MODE_OFF will correspond to blanking the display, while HWC_POWER_MODE_NORMAL will correspond to unblanking. HWC_POWER_MODE_DOZE will put the display into a low power setting, if it is supported in hardware. If such a low power mode is not supported, it should be treated as a call to set the mode to HWC_POWER_MODE_NORMAL. As a consequence of adding the mPowerMode field, the mScreenAcquired is no longer required, and thus references to it are removed and replaced equivalent references to mPowerMode. We also add the glue code to connect the services invocation of setting a power mode and the HAL implementation in HWComposer. Bug: 13472578 Change-Id: I431595ecf16d2f2c94259272db3dd42f29636204 Signed-off-by: Prashant Malani <pmalani@google.com>
* | | Bump axis limitMichael Wright2014-06-091-1/+1
| | | | | | | | | | | | Change-Id: I53d18646be2b884c5022f10c7c4ea8f6cda176c8
* | | am 64f5ec51: fix compiler warning in OMX_VideoExt.hLajos Molnar2014-06-061-1/+1
|\ \ \ | |_|/ |/| | | | | | | | * commit '64f5ec51ad3a9aea5a849d51139e605815b42d75': fix compiler warning in OMX_VideoExt.h
| * | fix compiler warning in OMX_VideoExt.hLajos Molnar2014-06-051-1/+1
| | | | | | | | | | | | | | | Bug: 11969958 Change-Id: I6dbc1c5a56c5f8db0af931c9391299aaaf1b536a
| * | Remove getRequiredPermission from NDK.Aravind Akella2014-06-051-7/+0
| | | | | | | | | | | | | | | | | | Bug: 15089664 Change-Id: Ic967adde89f30261c75fca67c09d14d35bd1cdb3 (cherry picked from commit 1236710bccd8f5870c0281e24a899c3d58f708e6)
* | | am 26063a91: am f1dd859b: Merge "x86_64: Align uint64_t/int64_t structure ↵Narayan Kamath2014-06-032-8/+16
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | member to 8 bytes" * commit '26063a9155ddd18d858cea7fac7c1ddf71e1bcb7': x86_64: Align uint64_t/int64_t structure member to 8 bytes
| * | am f1dd859b: Merge "x86_64: Align uint64_t/int64_t structure member to 8 bytes"Narayan Kamath2014-06-032-8/+16
| |\ \ | | | | | | | | | | | | | | | | * commit 'f1dd859baa114995bcbcfb7119e939d0b4f45ed5': x86_64: Align uint64_t/int64_t structure member to 8 bytes
| | * \ Merge "x86_64: Align uint64_t/int64_t structure member to 8 bytes"Narayan Kamath2014-06-032-8/+16
| | |\ \
| | | * | x86_64: Align uint64_t/int64_t structure member to 8 bytesFengwei Yin2014-05-302-8/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To make sure the stature which pass between 32/64bit process have same memory layout for 32/64bit. Signed-off-by: Fengwei Yin <fengwei.yin@intel.com> Co-Authored-by: Narayan Kamath <narayan@google.com> (Unit test only.) Change-Id: I1bc2d12cce41ec0bc484adcaf968f274bec75c12
* | | | | Merge "SurfaceFlinger: Add sourceCrop to screenshot"Dan Stoza2014-05-282-7/+12
|\ \ \ \ \
| * | | | | SurfaceFlinger: Add sourceCrop to screenshotDan Stoza2014-05-232-7/+12
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a sourceCrop Rect parameter to screenshot commands, which allows clients to capture only a portion of the screen instead of the whole screen. Bug: 15137922 Change-Id: I629447573cd34ffb96334cde7ba02490b9ea06d8
* | | | | Merge "Surface maxDelay and isWakeUpSensor flag in Sensor.java."Aravind Akella2014-05-271-1/+2
|\ \ \ \ \
| * | | | | Surface maxDelay and isWakeUpSensor flag in Sensor.java.Aravind Akella2014-05-231-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Idd1e9045190beeca87b086b272e8cbf0bed05bae
* | | | | | am b3a65bb0: am 9dcd38ad: Merge "Add heart rate to ASensorEvent" into ↵Etienne Le Grand2014-05-271-0/+7
|\ \ \ \ \ \ | |/ / / / / |/| | / / / | | |/ / / | |/| | | | | | | | | | | | | klp-modular-dev * commit 'b3a65bb0c2d2f6e660510efe0d93b3d26b0b2bf9': Add heart rate to ASensorEvent
| * | | | am 9dcd38ad: Merge "Add heart rate to ASensorEvent" into klp-modular-devEtienne Le Grand2014-05-271-0/+7
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * commit '9dcd38ad3b8335308b59932718e3f145aa50d318': Add heart rate to ASensorEvent
| | * \ \ \ Merge "Add heart rate to ASensorEvent" into klp-modular-devEtienne Le Grand2014-05-271-0/+7
| | |\ \ \ \
| | | * | | | Add heart rate to ASensorEventEtienne Le Grand2014-05-231-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ic82838b17a575de93d499e44a454bb382f17678f
* | | | | | | am 040730e8: am 1236710b: Remove getRequiredPermission from NDK.Aravind Akella2014-05-231-7/+0
|\ \ \ \ \ \ \ | |/ / / / / / | | | | / / / | |_|_|/ / / |/| | | | | * commit '040730e8954b2f686390434646f82bc333de7058': Remove getRequiredPermission from NDK.
| * | | | | am 1236710b: Remove getRequiredPermission from NDK.Aravind Akella2014-05-221-7/+0
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | * commit '1236710bccd8f5870c0281e24a899c3d58f708e6': Remove getRequiredPermission from NDK.
| | * | | | Remove getRequiredPermission from NDK.Aravind Akella2014-05-221-7/+0
| | |/ / / | | | | | | | | | | | | | | | Change-Id: Ic967adde89f30261c75fca67c09d14d35bd1cdb3
| * | | | am cfba3bf1: am c9fcaf37: Merge "Change InputMessage.motion.pointerSize to a ↵Narayan Kamath2014-05-161-3/+3
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | uint32_t." * commit 'cfba3bf1606dfdb1daf1be1c19176180660ae19d': Change InputMessage.motion.pointerSize to a uint32_t.
| | * | | am c9fcaf37: Merge "Change InputMessage.motion.pointerSize to a uint32_t."Narayan Kamath2014-05-161-3/+3
| | |\ \ \ | | | | |/ | | | |/| | | | | | | | | | | * commit 'c9fcaf3751af078ad730913304431197e4d1ae80': Change InputMessage.motion.pointerSize to a uint32_t.
| | | * | Change InputMessage.motion.pointerSize to a uint32_t.Narayan Kamath2014-05-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This ensures it's the same size in both 32 and 64 bit processes and also brings it in line with struct MotionEntry. (cherry-picked from bc6001b026069714177526eb1120b0011d6f2a51) Change-Id: I28e87050478920a54132efbbb8138076ebad1409
* | | | | Merge "Support VIRTUAL flag in keyboard layouts."Jeff Brown2014-05-211-0/+1
|\ \ \ \ \
| * | | | | Support VIRTUAL flag in keyboard layouts.Jeff Brown2014-05-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This flag is used to provide haptic feedback for virtual hard keys. Bug: 14319563 Change-Id: Ia0ca1acc8cfa00a42d1c04d279dfa59c6cc00f4d
* | | | | | New keycode definitions for HDMI-CECJinsuk Kim2014-05-202-0/+10
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Following keys are added to be mapped to HDMI-CEC standard keys: KEYCODE_MEDIA_TOP_MENU KEYCODE_11 KEYCODE_12 KEYCODE_LAST_CHANNEL KEYCODE_TV_DATA_SERVICE Change-Id: Ie73cf4cd8355ced4753eb5bba0ea130b087dfc36