summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
...
* | | SurfaceFlinger: Move Extended SF classes to same repositoryArun Kumar K.R2016-01-0811-9/+909
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the ExSurfaceFlinger, ExLayer, etc., classes to this repository, to avoid dependency accross projects with static linking The following commits are included in this: commit 04f501b31f627e47ae540b5160b2f86b7adbd921 Author: Baldev Sahu <bsahu@codeaurora.org> Date: Wed Nov 25 18:05:51 2015 +0530 display-fw: Properly initialise mIsGPUAllowedForProtected flag - This flag need to be initialize to false when layer is created. Change-Id: Ie3df40ffc4240c33883f19ecbef6428f7c539b07 CRs-fixed: 942102 commit 09032188751356db295bc5467133ec484dc536cd Author: Arun Kumar K.R <akumarkr@codeaurora.org> Date: Tue Oct 20 10:22:51 2015 -0700 display-fw: Enable checking for INTERNAL_ONLY private flag Check for INTERNAL_ONLY private flag and return correct values from the function isIntOnly Change-Id: I61b44f636412e0ad93e1b3ff18e4accdf90eeafe CRs-fixed: 927880 commit f687ac25b3482b92da3c252d29b65e850cca3ce1 Author: Arun Kumar K.R <akumarkr@codeaurora.org> Date: Thu Oct 15 16:37:11 2015 -0700 display-frameworks: Include libqdutils only for target builds Featurize including libqdutils for targets which uses QCOM_BSP, helps in resolving compilation for emulator builds Change-Id: I39639c3100eb20dd24d2a875bb0e9bc82d2b2d1f commit 4ec765e01be506a8083980fc746a1737bbac4bf2 Author: Arun Kumar K.R <akumarkr@codeaurora.org> Date: Wed Oct 7 18:33:34 2015 -0700 display-fw: Disable rotation animation on secondary displays - Set the animating flag on layer during animation which is used as hint to disable rotation animation on secondary displays. - Set sys.disable_ext_animation to enable the feature - Remove unused definitions in the extended hwc header Change-Id: I7b72c7b605930ea189e047fec17ed18b17d46fdf CRs-fixed: 922304 commit 6998bbdfd7af3126b64897b16b6961e84952601b Author: Baldev Sahu <bsahu@codeaurora.org> Date: Thu Jul 30 16:01:15 2015 +0530 display-frameworks: Extend support for MDP3 - Add support for HWC_BLIT - Allow GPU to compose widevine level 3 Change-Id:I11e03ccd0842d019e85d0c29bc5b7be559fccbaa commit 2fa7aa1684c0162b8226c4327c86c6eaf6b76101 Author: Manoj Kumar <manoj@codeaurora.org> Date: Thu Aug 20 13:52:15 2015 -0700 display-frameworks: Override mOutputUsage with sink Usage flags mOutputUsage flags contain default usage flags and doesnt reflect sink usage flags. Override mOutputUsage with sink usage flags. This change is needed to support WFD Secure usecase. Change-Id: I14d8812049f635a8ebe6a944783e0ec7f8f80b1f commit 09da768794c8c6acd786d73239ed5a739695b8cb Author: Raj Kamal <rkamal@codeaurora.org> Date: Mon Jul 20 10:46:27 2015 +0530 display-frameworks: Extend the classes defined in SF Add support for custom classes ExSurfaceFlinger, ExLayer, ExHWComposer and ExVirtualDisplaySurface Change-Id: Iab8c4835faaad9b436bbd34d38702741eb0cf12d Change-Id: Ie400c94ccc77fc379ffa256af03a9e42ba5decaa
* | | sf: Change log message in layer query method from ALOGE to ALOGWTatenda Chipeperekwa2016-01-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This error can be seen for the following use case 1. Connect HDMI display 2. Dump the SurfaceFlinger state The problem here is that HWComposer would have processed the display connection event via the hotplug mechanism and considers that the external display is connected. However, SurfaceFlinger has not updated its internal state (mDisplays) since it will be waiting for the mStateLock to be release by the dump function. As a result, when the dump function invokes the getLayerSortedByZForHwcDisplay for the external display, we will end up seeing the error log message because SurfaceFlingers internal state has not yet been updated. We can move this to ALOGW since it is a non-fatal/recoverable state. CRs-Fixed: 914173 Change-Id: Ib0ba359ecd894dd463417ba57ba1f72c07b5833e
* | | SF: Fix invalid reduction of transparent region from a layer.radhakrishna2015-12-161-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce transparent region from a layer only if the transparent region has valid intersection with the layer. Otherwise, reducing a transparent region lying completely outside of the layer leads to invalid sourcecrop values for the layer. Change-Id: Iee9ba53a8072c21c9ba8a6d58cb14ca30f8600ba CRs-Fixed: 620973
* | | sf : Fix vertices & texture coordinates computation.Ramakant Singh2015-12-162-8/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | Compute crop and display frame for GPU composition also in the same way it's done for HWC and compute vertices and texture coordinates for GPU composition. This avoids pixel shifts in output of GPU composition & overlays. Change-Id: I0d31b1e4a81049fff72109d1a210e7cbd945cfe9
* | | bug#460672 framebuffer surface can't keep triple buffer if define ↵james.zhang2015-12-081-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 [root cause ] framebuffer surface is in the same process of surface flinger [changes ] call IGraphicBufferProducer::allocateBuffers on producer inside the DisplayDevice constructor to force-allocate all three buffers. [side effects] none [self test ]<tshark, enter and exit mainmenu>: ok [reviewers ] zhongjun.chen [change_type ] AOB --> google_original [tag_product ] common Change-Id: Ideb75d3aa1ed23b2fa4d263a120ea3ca39d01361
* | | SurfaceFlinger: Add support for MDP3Baldev Sahu2015-12-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change is porting of below commits related to MDP3 In MDP3 we are using the widevine level3 for secure content display. And this should applicable only for primary display not for screen shot or screen recording - CRs-Fixed: 595469 - Change-Id: I99be2d81287ab746d5c4a2375c3106c59e61a8fc Change-Id: Ie7ac95e1c03eb7ad6f71098ecf09a1e25e69760f
* | | Merge tag 'android-6.0.1_r3' of ↵Steve Kondik2015-12-076-31/+67
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/native into cm-13.0 Android 6.0.1 release 3 Change-Id: I437aaf148d440a8144afe1454948980fc3b40cca
| * | Avoiding flush on-change sensors at subscriptionPeng Xu2015-10-271-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initial sensor flush at subscription is a mechanism to avoid sensors to get stale samples before subscription happens. However, there is a slight chance that a most recent sample will be lost during the flush process. This is OK for continuous sensors but problematic in on-change sensor as on-change event does not come continuously and a lost event can cause inconsistent state in client. Flush at subscription of on-change sensor is disabled in this CL to avoid new important on-change event to be discarded during the initial flush process. Bugs: b/24647069 b/25241873 b/24804819 Change-Id: Ibda099c6b9f5fb6e200f13cf13a850b0026e9e7c
| * | Inputflinger: hook up key event replacement processingDmitry Torokhov2015-09-295-27/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add handling of "replacement" key events in InputReader and EventHub by consulting device's character key map (if exists) for presence of replacement key code for given get code and meta state combination, before passing it to InputDispatcher. This enables defining special keys, such as ESC, on keyboards lacking enough physical keys, via combination of normal keys and modifiers, for example AltR + 1 => ESC. Bug: 24504154 Change-Id: I7e36104808bedcf724436c1fbb63d37c35cca8af
* | | Merge branch 'LA.BF64.1.2.2_rb4.7' of ↵Steve Kondik2015-11-165-6/+45
|\ \ \ | | | | | | | | | | | | | | | | | | | | git://codeaurora.org/platform/frameworks/native into cm-13.0 Change-Id: Ib29f744a0f7baac5d5ad8a7e9c5c14303b6aeec1
| * | | sf: vds: Avoid HWC for certain scenariosManoj Kumar AVM2015-11-023-3/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reserve HWC for VDS for WFD use case. During WFD usecase, sink usage will contain GRALLOC_USAGE_PRIVATE_WFD flag. When HWC is avoided, all virtual displays are composed using GLES. This means that GLES composes directly into the sink buffer and signals the consumer. Furthermore, it is expected that any color conversion will be handled on the consumer side. CRs-Fixed: 908380 Change-Id: I93ff54c79ece788b6caf3f4172835d8ac1362f62
| * | | SurfaceFlinger: Disable rotation animation on Secondary displaysArun Kumar K.R2015-10-262-3/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add support to set animating layer for HWCLayers - After hwc_prepare, dont override the compType of a layer to HWC_FRAMEBUFFER if its for non-primary displays Change-Id: Iac462778ce5fb9016290846146e62f80dcfafd5c CRs-fixed: 922304
* | | | sf : Apply user defined panel orientation to blur layerRamakant Singh2015-11-161-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Blur layer need to capture screen shot to create to blur effect. Hence need to take care any user defined orientation as well. Change-Id: I1c0478810d12661edf2586293bbed342a5b4dc7e
* | | | Revert "surfaceflinger: Consolidate display orientation compensation hooks"Steve Kondik2015-11-103-15/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * This is completely breaking graphics. This reverts commit f8e2372ad7c6ab5ba0363352607f5ded918add01. Change-Id: I1d694f4228199891a191ce3fb924cec71a6100f0
* | | | surfaceflinger: Consolidate display orientation compensation hooksRicardo Cerqueira2015-11-103-11/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Dedupe rotation calculation code and make rotation a statically available property in the DisplayDevice Change-Id: Ic517ab0d2c05026cd6fa46d664aab7926be17b62
* | | | surfaceflinger: odd hw rotation (90/270) patch for swapping width/heightHashcode2015-11-101-4/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch works in addition to the following commit re-implementing ro.sf.hwrotation: https://github.com/CyanogenMod/android_frameworks_native/commit/7d283431efffc4402cb1a6cacf5da64729c883bb When using values of 90 and 270 for ro.sf.hwrotation the LCD width and height also need to be swapped to display properly. Change-Id: I2874fdb8f8d8b855df6d62d338c9a22360491973 NOTE: This patch does not fix the initial startup of bootanimation
* | | | SurfaceFlinger: Native changes to add blur effectByunghun Jeon2015-11-0820-23/+838
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Native changes to add blur-behind and blur mask effect Change-Id: I54faf82d750e8299de6d261f6a893ab26d08df84 SurfaceFlinger: Adding template for LayerBlur files Change-Id: I444009113b7bdd6c5284863fd1f56358e67d9fe6 SurfaceFlinger: Featurize libuiblur module for OSS build Change-Id: Ifdc176e699434125d17b111c044b8ba954cf717c
* | | | sensorservice: Don't replace HAL orientation sensorEthan Chen2015-11-071-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Previously HAL orientation sensor would always be replaced if the HAL did not provide a rotation vector sensor as well. Practically no HAL does, so the virtual sensor would always replace it. * Add the virtual sensor only if the HAL does not provide it. Change-Id: I50ad2cd6c60b53eddc4c6854997ec2e3dbff0d1a
* | | | sensorservice: Register orientation sensor if HAL doesn't provide itArne Coucheron2015-11-071-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * In KitKat and on most Samsung devices, the orientation sensor is not getting registered, and makes the compass non-working in a lot of apps. This patch enables the sensor for such devices. Change-Id: I0ebba72ec4aa2cfa02c21a6daff0c356c6793fd0 (cherry picked from commit 98fa6f1152da759ef3eaf36cb16e0aaf2013376a)
* | | | sensorservice: Fix init sequence for pre-1.1 API sensor HALsRicardo Cerqueira2015-11-071-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The sensors API introduced a new flush() method that older binaries won't have. For those, replace the firstFlush invocation with a setDelay call since a lot of implementations interpreted that as the initialization step. We also don't want any kind of call to flush() to happen when it isn't there, since it'll either hit a random OEM extension or a memory address we really don't want to execute. Change-Id: I26ce923fe385751fed7d1c483a53c074249f0620 sensorservice: Set the rate for pre-1.1 HALs _after_ activation We want to be sure these are applied in the same sequence they used to be... Change-Id: Ied2ba08ed3c4bed3a80bac6ab5471fcea9ba2c09
* | | | Fix boot animation rotation problem when ro.sf.hwrotation is set to 90 or 270Clyde Tan2015-11-071-1/+9
| | | | | | | | | | | | | | | | Change-Id: I7ad3c83e23ce38280818ec5283d173d50c889531
* | | | surfaceflinger: Reimplement hwrotationRicardo Cerqueira2015-11-071-0/+14
| | | | | | | | | | | | | | | | Change-Id: Ia26bb36b5b6de132af49c272c4472ad2703afbda
* | | | surfaceflinger: Set max acquired buffer countNaseer Ahmed2015-11-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If triple framebuffers are enabled, the number of acquired buffers isn't increased by default. Set the count to one less than the max buffers to make sure all three buffers come into play. Change-Id: I8fae1b5564fbea598e415a86b0a21c3449c92d87
* | | | Merge tag 'android-6.0.0_r26' into HEADRicardo Cerqueira2015-11-056-21/+69
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Android 6.0.0 release 26 Conflicts: include/android/input.h Change-Id: Ifa374c6d3055be3b8a5d60967f8b4c0043da739b
| * | | DO NOT MERGE Cancel touches as well as pointer gestures.Michael Wright2015-09-222-5/+33
| | | | | | | | | | | | | | | | | | | | Bug: 24302031 Change-Id: Idbe964a1a35c190a32f845e2a19542d54652d011
| * | | DO NOT MERGE Revert "am f37143d8: Merge "Cancel touches as well as pointer ↵Michael Wright2015-09-224-191/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gestures." into mnc-dev" This reverts commit 9b70ab7a3cb260205e81e40ba181a86710d2eb95, reversing changes made to 153008efb5a00ed3c18d588ce15f90d2442a9786. Bug: 24302031 Change-Id: Ia746381b30be3b54cb646ed412b7271962c4b02a
| * | | SF: Add colorTransform to DisplayInfoDan Stoza2015-08-313-3/+26
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | Adds the colorTransform field, which defines a vendor-specific color transform (e.g., wide gamut, sRGB, etc.) to the DisplayInfo class, and populates it from the HWC interface. Bug: 20853317 Change-Id: I153edc36a361407656f3eb5082b96c2da2ecbec7
| * | Merge "SF: Track missed frames and optionally drop them" into mnc-dr-devDan Stoza2015-08-052-6/+29
| |\ \
| | * | SF: Track missed frames and optionally drop themDan Stoza2015-07-232-6/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds code to track whether SurfaceFlinger has sent two frames to HWC in the same vsync window. This can occur if one frame is delayed so far it slips into the next window or just if one frame takes an abnormal amount of time. If this occurs, it shows up as FrameMissed in systrace. Also adds a property debug.sf.drop_missed_frames which, if set, tells SurfaceFlinger to skip sending a frame to HWC (i.e., calling prepare/set) when we detect this condition, which can help prevent backpressure from the HWC implementation. Bug: 22513558 Change-Id: I2df0d44cec5fd6edba419388d8c90b5710d1a5b6
| * | | am d87defaf: SF: Allow present if sideband stream changedDan Stoza2015-07-311-0/+4
| |\ \ \ | | |/ / | |/| | | | | | | | | | * commit 'd87defaf486ff4e9c0066754564851cfb7be49ed': SF: Allow present if sideband stream changed
| * | | am 99426810: Merge "Check for the presence of accel and magnetometer sensors ↵Chenjie Luo2015-07-221-2/+8
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | before adding AOSP fusion sensors." into mnc-dev * commit '99426810e4828719be84a0f8c186161578512e93': Check for the presence of accel and magnetometer sensors before adding AOSP fusion sensors.
| * \ \ \ Merge "Show charging speed on Keyguard" into mnc-dr-devAdrian Roos2015-07-141-0/+2
| |\ \ \ \
| | * | | | Show charging speed on KeyguardAdrian Roos2015-07-101-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 8099739 Change-Id: I2e5c21dd7ec028ce47fb03ab71e74f7fccaa9e36
| * | | | | am 4904821b: Merge "Rename wakelock held internally by SensorService." into ↵Aravind Akella2015-07-131-2/+2
| |\ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | mnc-dev * commit '4904821b212a3ee91f22a51295f86f6339cbcc8d': Rename wakelock held internally by SensorService.
| * | | | | Merge "Cancel touches as well as pointer gestures." into mnc-devMichael Wright2015-07-095-31/+203
| |\ \ \ \ \
| | * | | | | Cancel touches as well as pointer gestures.Michael Wright2015-07-092-5/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 19264992 Change-Id: Idbe964a1a35c190a32f845e2a19542d54652d011
| | * | | | | am 6a25a287: am 806334aa: am 1998615f: Merge "sf: Initialize EventThread ↵Dan Stoza2015-06-301-9/+9
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | before creating HWC" * commit '6a25a2872852f23058268adcec61600460fcdfb6': sf: Initialize EventThread before creating HWC
| | | * \ \ \ \ am 806334aa: am 1998615f: Merge "sf: Initialize EventThread before creating HWC"Dan Stoza2015-06-301-9/+9
| | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '806334aacd089d1c419ed77021a2b1bb4f7644ef': sf: Initialize EventThread before creating HWC
| | | | * | | | | sf: Initialize EventThread before creating HWCSaurabh Shah2015-06-171-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Once HWC is created, it could use any of the provided hooks, which could lead to a crash if the EventThread (handler) isn't initialized prior to creating HWC. Change-Id: I5ea35fe9bcb150fb74aae1295b798bd787ad6cee
| | | | * | | | | sf: Fix incorrect state reporting in dumpsysManoj Kumar AVM2015-06-112-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dumpsys utility accesses layer compositionType variable with out proper protection. These variables are modified during hwc_prepare call. Existing HAL lock protection is not sufficient to address this issue. Failure to do this will result in incorrect state reporting in dumpsys. A new displayLock mutex in HWComposer will be used in both dumpsys and draw calls to ensure correct state is accessed. Change-Id: I8a57de59525adc0e089b3bed95c067c01e42b666
| | | | * | | | | sf: Add a NULL check in getDisplayConfigsTatenda Chipeperekwa2015-06-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Validate the display binder by adding a NULL check in getDisplayConfigs. This will prevent a false match if the caller queries the display configs for an inactive display (whose binder is NULL by default). Without this change we might end up attempting to index the display config array, which is unpopulated for inactive displays, and this will result in a crash. (See getDisplayInfo in SurfaceComposerClient.cpp for an example of this scenario) Change-Id: Ib32a7dc8378d3438df0dba1ecd608bbcfc837717
| | | | * | | | | SF: Swap w/h when capturing rotated screenshotsDan Stoza2015-06-101-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Swaps width and height when capturing a screenshot that is rotated by 90 or 270 degrees. Bug: 8433742 Change-Id: Ibf0b604f541e3cc271e56fe0ad04dc366beb5d79 (cherry picked from commit 3502416204d9dbd905012ee586d8bd145323809f)
| | | | * | | | | SF: Don't crop surface damage against viewportDan Stoza2015-06-091-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apply the display transform to surface damage, but don't intersect it with the viewport. Bug: 21486007 Change-Id: I94e697cea52096a960385d5f3b89609fdcf30a02 (cherry picked from commit 17833a1b0d70cd5cea342cadea9fdbbf16748bc6)
| | | | * | | | | libgui/SurfaceFlinger: Add getConsumerNameDan Stoza2015-06-094-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 (cherry picked from commit c6f30bdee1f634eb90d68cb76efe935b6535a1e8)
| | | | * | | | | libgui: Add generation numbers to BufferQueueDan Stoza2015-06-084-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 (cherry picked from commit 812ed0644f8f8f71ca403f4e5793f0dbc1fcf9b2)
| | * | | | | | | am fd0fdaf7: am 3643c88f: Merge "Send cancelation events to monitors when ↵Michael Wright2015-06-292-1/+16
| | |\ \ \ \ \ \ \ | | | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | injection fails." into mnc-dev * commit 'fd0fdaf73b1e8fbf643152f532f500be70f11a26': Send cancelation events to monitors when injection fails.
| | | * | | | | | am 3643c88f: Merge "Send cancelation events to monitors when injection ↵Michael Wright2015-06-292-1/+16
| | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fails." into mnc-dev * commit '3643c88f7b557e241d65c4857eaf49e28e7c03a2': Send cancelation events to monitors when injection fails.
| | * | \ \ \ \ \ \ am 488986f4: am f413de05: Merge "libgui: Fix handling of rotated surface ↵Dan Stoza2015-06-261-8/+1
| | |\ \ \ \ \ \ \ \ | | | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | damage" into mnc-dev * commit '488986f4ad7a92b04fdfd761ae07785019d2a9d3': libgui: Fix handling of rotated surface damage
| | | * | | | | | | am f413de05: Merge "libgui: Fix handling of rotated surface damage" into mnc-devDan Stoza2015-06-261-8/+1
| | | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f413de05cfb9a1b84b73c8e6c306d4142130c5f7': libgui: Fix handling of rotated surface damage
| | * | \ \ \ \ \ \ \ am e6045537: am 7a1b5d5d: Merge "Fix crash in SensorService. Ignore devices ↵Aravind Akella2015-06-241-0/+2
| | |\ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with no sensors." into mnc-dev * commit 'e6045537bbce4c4f98e6a1149187bbcdaff57bcd': Fix crash in SensorService. Ignore devices with no sensors.