OSDN Git Service
nadlabak [Sat, 20 Dec 2014 22:10:54 +0000 (00:10 +0200)]
Forward port 'Swap volume buttons' (2/3)
[mikeioannina]: Adjust for 5.0 changes
Change-Id: I5ed4ae2b7e69e2ada067ed1d3524b3d3fad30e2e
Christopher N. Hesse [Fri, 5 Dec 2014 20:38:51 +0000 (21:38 +0100)]
inputflinger: disable touch input while using a stylus
Android 5.0 cannot form multitouch events from multiple input
devices. So it is not possible to report one touchpoint from the
stylus position and, at the same time, another touchpoint from a
finger touch. Instead, when a new input device starts up the currently
active input is cancelled. This is highly undesirable while writing
with the pen.
The easiest solution is to ignore non-stylus touch events while the
stylus is within range (hovering) of the touchscreen. For example,
N-trig digitizers implement this in hardware. But wacom digitizers do
report pen data simultaneously with touch data. This patch disables
(non-stylus) touch input within 50ms of stylus data. On my Galaxy
Note this is necessary to make stylus input usable.
Original commit by vbraun:
https://github.com/CyanogenMod/android_frameworks_base/commit/
b9cb2961309c829586ae24ce432bb1fdb5610ba6
Change-Id: I97f26369826e96c97461c8ae188f1c64dec1b4d3
Ethan Chen [Tue, 8 Oct 2013 22:07:21 +0000 (15:07 -0700)]
Add GESTURE_SENSOR input source
Change-Id: If61a7e7bf2d8b2665db7ca57ed68a4462d0c1783
Steve Kondik [Wed, 19 Nov 2014 09:22:14 +0000 (01:22 -0800)]
inputflinger: Add gesture sensor support
Change-Id: Ieca4e54439c47a817aaa6a9b6fabcee750ffc0c2
Michael Gernoth [Tue, 13 Oct 2015 19:08:19 +0000 (21:08 +0200)]
RenderEngine: remove warning "using EGL_IMG_context_priority"
This warning breaks the build as it is treated as an error,
so just remove it.
Change-Id: I1a6353e5960866a9302a8c00eb97d1779b35b6be
Pawit Pornkitprasan [Sun, 3 Nov 2013 06:02:15 +0000 (23:02 -0700)]
libEGL: allow devices to workaround Google bug
10194508
Most older blobs don't have the EGL_KHR_gl_colorspace
extension and need this workaround.
Change-Id: Ifc5d097c1a0b68275d23c2d191976ac96631b695
Ethan Chen [Thu, 15 Oct 2015 20:50:10 +0000 (13:50 -0700)]
Revert "egl: Remove old tuna BGRA vs RGBA workaround."
This reverts commit
733a80754786d39cdc0fee09509b194472c320bc.
Change-Id: Ifb41720ed020489892a667914ea3bd3f1ac6504e
Ricardo Cerqueira [Sun, 3 Nov 2013 03:06:55 +0000 (03:06 +0000)]
exynos4: getphys implementation on buffermanager for samsung omx
Change-Id: I73d9633e1a7b3316ede28dd1369f8f069609cbb0
Namit Solanki [Wed, 13 Jul 2016 10:28:32 +0000 (15:58 +0530)]
surfaceflinger: Flip the sourceCrop for inverse mounted panel.
- Flip the sourceCrop for inverse mounted panel when
screenshot is taken for WindowManagerService
Change-Id: I08bb7e0feea69dd15b372e9fbbd6984c6bfbec46
CRs-Fixed:
1033965
Pullakavi Srinivas [Thu, 21 Jul 2016 11:33:52 +0000 (17:03 +0530)]
sf : Fix vertices & texture coordinates computation.
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: Ia4c649ef236f5684fb76ff1b4b802a9d01c1da0c
Namit Solanki [Thu, 28 Jul 2016 14:00:52 +0000 (19:30 +0530)]
surfaceflinger: Validate LayerListIterator before accessing it.
- Check LayerListIterator for NULL before dereferencing it.
Change-Id: I299ee94ef264280aca991e1e574b998b4b58951e
CRs-Fixed:
1039837
Anjaneya Prasad Musunuri [Tue, 5 Jul 2016 05:05:59 +0000 (10:35 +0530)]
surfaceflinger: Add check for number of queued buffers
Pop buffer item from shadow queue only when
number of queued buffer items is greater than zero.
Change-Id: I039bc133842293c29e3e130efd65f521ef0049c6
CRs-Fixed:
1009466
Anjaneya Prasad Musunuri [Sat, 11 Jun 2016 07:00:35 +0000 (12:30 +0530)]
surfaceflinger: Exclude video encoder usage for scratch buffer
Sink and Scratch buffers in VDS are using same usage flags.
This causes video encoder flag to be set for scratch
buffers Also. Exclude video encoder flag from scratch
buffer usage flags as scratch buffers are used only as
write back input and not video encoder input.
Change-Id: I7763efd155a1ec4c550680c9a07e4a934b52dfe4
CRs-Fixed:
1008906
Sushil Chauhan [Mon, 25 Jul 2016 23:24:55 +0000 (16:24 -0700)]
SurfaceFlinger: Add support to set RGBA color on Dim Layer
SF client can set RGBA color on Dim Layer. Black is default color.
CRs-Fixed:
1047307
Change-Id: I74d3b14b365a9ac8aaf2ecbf906ba00711643f53
Omprakash Dhyade [Tue, 21 Jun 2016 13:22:23 +0000 (18:52 +0530)]
surfaceflinger: Use only one EventThread when phase offsets are same
SurfaceFlinger uses two event-threads to support phase-offsets
for application and SurfaceFlinger itself. Extra thread may
cause scheduling issues and wake-up latency for either
SurfaceFlinger or Application, depending on scheduling, even
when running at higher priority as these threads have low-load
and qualify for task-packing.
Use single event-thread when phase offsets are same.
Debug runtime service call behavior change when same phase-offset:
1018 (set phase offset for Application): will change both
Application and SurfaceFlinger phase offsets.
1019 (set phase offset for SurfaceFlinger): Will be a no-op.
Change-Id: I2514b4ff6249e9bce3eb19f60b1dfe0de12b86d9
radhakrishna [Wed, 29 Jun 2016 07:31:16 +0000 (13:01 +0530)]
sf: Make sure HWC_BLENDING_NONE is set for opaque layer
Before configuring the layers to HWC, make sure
HWC_BLENDING_NONE is set if the layer is opaque
Change-Id: Ie84aa9d93e98a244692a0cffc2de653a9079f8b4
Crs-fixed: 957373
Pullakavi Srinivas [Tue, 21 Jun 2016 12:35:44 +0000 (18:05 +0530)]
sf: Change log message in layer query method from ALOGE to ALOGW
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
Bikshapathi Kothapeta [Thu, 21 Jul 2016 11:03:48 +0000 (16:33 +0530)]
surfaceflinger: Point to new display HAL path
Change-Id: I28b16dc0deaef0574def585334530a1ccda049be
Dileep Marchya [Fri, 8 Jul 2016 13:11:17 +0000 (18:41 +0530)]
This is a combination of two commits
sf: Correcting hardware acceleration for WFD
Hardware acceleration Virtual display debug property
implementation is updated for WFD cases
Change-Id: I61ad578919c034df3b7d7028925f2201b4131f24
surfaceflinger: Use /sys/class/graphics/fb* path for fb node access.
- /dev/graphics/fb* and /sys/class/graphics/fb* path do not have
symbolic relation. /dev/graphics/fb* is deprecated. Accessing this
path results in unpredictable behaviour.
CRs-Fixed:
1037552
Change-Id: I56cd8ea33153183ae93638153bb2fd6a9becdac0
Manoj Kumar AVM [Fri, 10 Jun 2016 15:10:35 +0000 (08:10 -0700)]
sf: Do not allow hardware acceleration for VDS
Do not allow hardware acceleration for Virtual display if Platform
doesn't support writeback.
CRs-Fixed:
1031674
Change-Id: I343ae97adc552b6f2f8c08967f5768babb4abd70
Manoj Kumar AVM [Wed, 8 Jun 2016 19:43:47 +0000 (12:43 -0700)]
sf: Allow hardware acceleration of VDS
Allow hardware acceleration of VDS if debug.vds.allow_hwc is
set to true for debugging purposes.
CRs-Fixed:
1027244
Change-Id: I12710349b1e74d419f9e0216bf29e70201fe20e6
Baldev Sahu [Fri, 17 Jul 2015 04:34:43 +0000 (10:04 +0530)]
SurfaceFlinger: Add support for MDP3
This change is porting of following commits related to MDP3
1) SurfaceFlinger: Change to support framebuffer flip for 2D blitters
- Surfaceflinger does not flip framebuffers when there are
no layers marked for HWC_FRAMEBUFFER
- This change checks for the HWC_BLIT flag and will request a flip
to a new FB_TARGET buffer even if there are no FRAMEBUFFER layers
"Change-Id: I1cb44389a05c9ec049d7f0d39c288feccb11a91c"
2) SF: Avoid wormhole clear for BLIT calls
- Do not call GPU clear from SF when composition
type is BLIT as it'll be taken care in HAL.
"Change-Id: Ia613eb9b824c6484ecc8c8fa4ee883545d8541b8"
3) surfaceflinger: Allow gpu to render widevine level3
- Allow gpu to render widevine level3 but keep
blocking screen shots.
"Change-Id: I914232a062acbb7b17901dbf2b414973230e59d9"
4) surfaceflinger: Do not allow gpu to render widevine for screen shot or
screen record
- 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.
"Change-Id: I99be2d81287ab746d5c4a2375c3106c59e61a8fc"
CRs-Fixed: 595469
Change-Id: I35eef9eb1597af21c195e07d5fe4c0c73ab3a269
Dileep Marchya [Thu, 3 Dec 2015 22:39:35 +0000 (14:39 -0800)]
SurfaceFlinger: Add support for continuous dumpsys to file.
- Collect dumpsys to an outfile file when triggered.
- Collect dumpsys before calling Prepare on hwc module in
each draw cycle. Recollect dumpsys if Commit goes through
successfully and replace former dumpsys with this.
- Wrap around if file size reaches appx 20 MB.
- Generate output file at /data/misc/display/dumpsys.txt
- Syntax:
adb shell dumpsys SurfaceFlinger --file [--no-limit]
--file : Ouput dumpsys to file
--no-limit : Do not wrap around, keep appending
Use same command to trigger start and end of dumping.
- Output format:
| start code | after commit? | time stamp | dump size | dump data |
CRs-Fixed: 947084
Change-Id: Ie520f51c69757aeec88b9400688a7f3271472349
Manoj Kumar AVM [Fri, 2 Oct 2015 21:53:50 +0000 (14:53 -0700)]
sf: vds: Avoid HWC for certain scenarios
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
Baldev Sahu [Wed, 12 Aug 2015 10:55:05 +0000 (16:25 +0530)]
SurfaceFlinger: Add support for V4L2 based wfd solution.
This change add support for V4L2 based Wi-Fi display.
Change-Id: Ib3f3868eb0b7fa2bf7e58246fb2c5cd0ddceb7e1
Raj Kamal [Tue, 23 Jun 2015 19:55:15 +0000 (12:55 -0700)]
SurfaceFlinger: Combine SF Refactor changes
The following commits are included in this:
SurfaceFlinger: Add support for DisplayUtils
Add DisplayUtils class which uses the custom implementations
of ExLayer, ExSurfaceFlinger, ExHWComposer,
and ExVirtualDisplaySurface classes if needed
Change-Id: Ibdd8da5d3d0d602f42b76a15d0994c6aa98bee3f
SurfaceFlinger: Move Extended SF classes to same repository
Move the ExSurfaceFlinger, ExLayer, etc., classes to this
repository, to avoid dependency accross projects with static
linking
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
SurfaceFlinger: Disable rotation animation on Secondary displays
- 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
CRs-fixed: 922304
Change-Id: Iac462778ce5fb9016290846146e62f80dcfafd5c
sf: ex-sf: Remove screenshot surface from secondary displays
- When rotation animation is disabled on secondary displays, remove
the screenshot surface from the secondary display list, without
this it would show up upside down frame on secondary.
- Mark IntOnly layers as invisible on secondary displays.
Change-Id: Ia859ee1c6ac7caa132c95e4f906bd2589e786fac
CRs-fixed: 949263
sf: Clear visible region of layer appropriately.
Clear visible region of layer having layer stack id different than
the display layer stack id to ensure that the layer won't be present
on the wrong display layer list.
Change-Id: I59289fea63ec7a2451d4715cfe7926ba34fdb8e3
Change-Id: Ib7ef7ce9ae68ae2246c1c9bfbce342d9b5d06621
Omprakash Dhyade [Fri, 10 Aug 2012 02:00:37 +0000 (19:00 -0700)]
libgui : Fix copyback dirty region
This is a combination of 2 commits.
fix copy back dirty region
Copyback dirty region logic does copyback,
even when its not necessary causing 2ms delay.
Fix the logic to copy back only what is necessary
CRs-fixed: 562334
Change-Id: I52de68258ac9f87d704ee5401f93417805fa6773
libgui: Copyback all region except dirty region
Inside Surface::lock if new buffer is allocated
and DirtyRegion does not cover complete buffer
bounds then copyback may not cover all remaining area
as it copyback only area covered by dirty regions
from other buffers. This will lead to left out
black area which may cause flicker.
Change-Id: I4a3f7a56fc5fbaf4af926584919577d8d34bed57
Change-Id: I4a3f7a56fc5fbaf4af926584919577d8d34bed5f
Tatenda Chipeperekwa [Mon, 22 Sep 2014 23:57:24 +0000 (16:57 -0700)]
SurfaceFlinger: Support get/set ActiveConfigs
This includes the following two changes squashed into one and
retaining the change I182f41edbaf9226fc62d6d17ee964998cd9f21f7
sf: Fixes for resolution change in SurfaceFlinger
1. Use active config from HWC when querying display attributes
When we query the display attributes we should use the active
config as reported by HWC in cases where HWC version is 1.4.
In all other cases we should revert to the default config,
config 0, as the active config.
2. Set/update the display config if HWC config change was successful
The new config should only be applied if HWC succeeded in changing
the active config. This would otherwise cause failure or undefined
behavior if the client sets an invalid/unsupported display config.
3. Set the active config at display creation time
When a new display device is added update the active config by
querying HWC.
Change-Id: I182f41edbaf9226fc62d6d17ee964998cd9f21f7
sf: Initialize active config for non-virtual displays at boot time
When a non-virtual display device is added at boot time, update the
active config by querying HWC otherwise the default config (config 0)
will be used.
Change-Id: I90f42fa1d20ed6176c4be464a10ae69a2f6a6d55
Change-Id: I182f41edbaf9226fc62d6d17ee964998cd9f21f7
Prabhanjan Kandula [Thu, 6 Nov 2014 12:28:04 +0000 (17:58 +0530)]
SF : Add support for rotated panel mounts
This is a combination of 2 commits.
SF: Add support for inverse mounted panels
Add 180 rotation in SF to account for inverse mounted panels.
The framework will be unaffected and use policies for a 0 mounted
panel. SF changes the global transform and silently induces the H,V
flips. Similar flips are added to screenshots as well.
Change-Id: I6e9576ee734ee85097491eaa1e8e94cfb3731e0f
SF: Add support for all flips of panel mount
Add support for all flips of panel mount, H, V, HV (180). Property
persist.panel.mountflip can be set to 1 for H-Flip, 2 for V-Flip,
3 for HV-Flip (180 / inverse mount).
Change-Id: Ide7b8378ad6a423e5d7335fedc27d480a25b53ae
CRs-fixed: 990622
Change-Id: Ide7b8378ad6a423e5d7335fedc27d480a25b53af
Dileep Marchya [Thu, 3 Sep 2015 01:49:21 +0000 (18:49 -0700)]
SurfaceFlinger: Add dim layer information into HWC layer.
- Set dim layer flag = 0x80000000 to send dim layer hint to HWC.
- Clear HWC_SKIP_LAYER flag when dim layer flag is set.
Change-Id: I56904c65fb487e6e89d4c057015443730d727299
Vinu Deokaran [Mon, 20 Jul 2015 17:50:15 +0000 (13:50 -0400)]
gui: add Tertiary display support in surface composer header
Add definition of Tertiary display into the enumeration list of
surface composer header file, to support third display for all
Surface Flinger APIs.
Change-Id: Ic932be4f7f1ac9c44a5a8f36d17eb9386135de87
Saurabh Shah [Thu, 26 May 2016 21:01:19 +0000 (14:01 -0700)]
sf: Add flip support in RenderEngine
Add flip support in RenderEngine while setting projection matrix.
Note that H+90/V+90 support is still pending and needs to be present
in multiple places in f/w and gfx stack.
Change-Id: Ib9391ee313589fedb1d0fe571a6b06ceff1d032e
CRs-fixed:
1011375
Naseer Ahmed [Wed, 7 Jan 2015 20:17:42 +0000 (15:17 -0500)]
frameworks: egl: Enable loading of SW gles libs
Based on the property persist.sys.force_sw_gles, ensure that the
S/W OpenGL library is loaded.
CRs-Fixed:
1021870
Change-Id: If37bfa979d021d28586e3bf9c1f9c5ce77d3c3a8
Pablo Ceballos [Tue, 28 Jun 2016 00:56:53 +0000 (17:56 -0700)]
BQ: Add and expose a unique id
Bug
29422927
Change-Id: I80eab94f073ebc378302f00fa86a740c3643657e
The Android Automerger [Sun, 26 Jun 2016 07:03:29 +0000 (00:03 -0700)]
merge in nyc-release history after reset to nyc-dev
Mark Salyzyn [Fri, 24 Jun 2016 21:06:15 +0000 (14:06 -0700)]
dumpstate: Also pick up /sys/fs/pstore/console-ramoops-0 for LAST KMSG
(cherry pick from commit
7d0a762ecaf9f4d005f0f6db913034c2e084d362)
Bug:
29639467
Change-Id: Iba0b1754eaebfb2b0624dcbef522b7d8456eeb50
The Android Automerger [Thu, 23 Jun 2016 07:03:51 +0000 (00:03 -0700)]
merge in nyc-release history after reset to nyc-dev
Greg Kaiser [Thu, 23 Jun 2016 03:25:44 +0000 (03:25 +0000)]
Merge "Sensor: Make getId() more varied" into nyc-dev
Greg Kaiser [Tue, 21 Jun 2016 23:11:14 +0000 (16:11 -0700)]
Sensor: Make getId() more varied
Apps from different developers will now receive a different
ID for the same dynamic sensor. Additionally, all apps
will now receive a different/new ID for the same dynamic
sensor after a factory reset.
Bug:
28775590,
29547335
Change-Id: I368655b0e4bdc16736a7fd163ea3f7dad2886b3b
TreeHugger Robot [Wed, 22 Jun 2016 20:24:53 +0000 (20:24 +0000)]
Merge "Run iptables as root." into nyc-dev
The Android Automerger [Tue, 21 Jun 2016 07:03:27 +0000 (00:03 -0700)]
merge in nyc-release history after reset to nyc-dev
Felipe Leme [Sat, 18 Jun 2016 00:37:13 +0000 (17:37 -0700)]
Run iptables as root.
iptables requires root access and su is not available on user builds,
hence it must be ran before dropping uid to shell user.
BUG:
29455997
Change-Id: I10c6337b411875b061ae9556b6e9c44f83301ae1
Greg Kaiser [Mon, 20 Jun 2016 16:24:51 +0000 (16:24 +0000)]
Merge "SensorList: Don't output UUIDs" into nyc-dev
The Android Automerger [Sun, 19 Jun 2016 07:04:32 +0000 (00:04 -0700)]
merge in nyc-release history after reset to nyc-dev
Eino-Ville Talvala [Sat, 18 Jun 2016 02:10:11 +0000 (02:10 +0000)]
Merge "BufferQueueProducer: Signal consumer when a buffer is detached" into nyc-dev
Greg Kaiser [Fri, 17 Jun 2016 22:27:12 +0000 (15:27 -0700)]
SensorList: Don't output UUIDs
We don't want the UUIDs of dynamic sensors to be in the logs.
Bug:
28775590
Change-Id: I85ca83e0ad1a0a8ed6618999bd22d86d7ef972f9
Jesse Hall [Fri, 17 Jun 2016 20:54:53 +0000 (13:54 -0700)]
vulkan: Updated IHV documentation
Also deleted DevelopersGuide.pdf, which was very out of date and has
been superceded by public documentation on developer.android.com.
Change-Id: I7e47177191a773eea6db3ee2af0a287877cb8532
David Brazdil [Thu, 16 Jun 2016 09:11:31 +0000 (09:11 +0000)]
Revert "Attach profiles to bug reports"
This reverts commit
0faf2b870f934c1cdd883d29642fd84da3b352e2.
Bug:
28610953
Bug:
29395357
Change-Id: I609fe344dfc61311e37b91b48480d9392764a598
David Brazdil [Thu, 16 Jun 2016 13:11:05 +0000 (13:11 +0000)]
Merge "Revert "Attach profiles to bug reports"" into nyc-dev
David Brazdil [Thu, 16 Jun 2016 09:11:31 +0000 (09:11 +0000)]
Revert "Attach profiles to bug reports"
This reverts commit
0faf2b870f934c1cdd883d29642fd84da3b352e2.
Bug:
28610953
Bug:
29395357
Change-Id: I609fe344dfc61311e37b91b48480d9392764a598
The Android Automerger [Tue, 14 Jun 2016 00:47:10 +0000 (17:47 -0700)]
merge in nyc-release history after reset to nyc-dev
Craig Donner [Mon, 13 Jun 2016 23:13:02 +0000 (23:13 +0000)]
Merge "Revert "GLConsumer: add build-time disable of gpu protected content"" into nyc-dev
Craig Donner [Mon, 13 Jun 2016 22:14:15 +0000 (22:14 +0000)]
Revert "GLConsumer: add build-time disable of gpu protected content"
This reverts commit
dea97b7aa2b5cfbb7d42f30bcbf86a01778b609b.
Bug:
28545166
Change-Id: I4b069e14c2b99e190ebdea6df1ed83827ffe17b6
Amith Yamasani [Mon, 13 Jun 2016 18:37:40 +0000 (18:37 +0000)]
Merge "Fixed file descriptor leak in IMemory" into nyc-dev
Pablo Ceballos [Mon, 13 Jun 2016 18:26:04 +0000 (18:26 +0000)]
Add FrameStats default constructor am:
9a8c42a72b am:
8cd7d257de am:
67105cc24d am:
b990d75315 am:
a1952f0a6d am:
81d678cf18 am:
ed968dc61c
am:
d1d1d4e922
Change-Id: I581c4df5e3866e8a2326830e6b9e6ca2ffb3bf1c
Pablo Ceballos [Mon, 13 Jun 2016 18:22:14 +0000 (18:22 +0000)]
Add FrameStats default constructor am:
9a8c42a72b am:
8cd7d257de am:
67105cc24d am:
b990d75315 am:
a1952f0a6d am:
81d678cf18
am:
ed968dc61c
Change-Id: Id30d35b89c46fda89990bed6acf932240bdb6890
Pablo Ceballos [Mon, 13 Jun 2016 18:18:09 +0000 (18:18 +0000)]
Add FrameStats default constructor am:
9a8c42a72b am:
8cd7d257de am:
67105cc24d am:
b990d75315 am:
a1952f0a6d
am:
81d678cf18
Change-Id: I24f1e2594fdbd2022a534332009cad9564becd54
Pablo Ceballos [Mon, 13 Jun 2016 18:13:16 +0000 (18:13 +0000)]
Add FrameStats default constructor am:
9a8c42a72b am:
8cd7d257de am:
67105cc24d am:
b990d75315
am:
a1952f0a6d
Change-Id: Icc23cc2a483b13c6ac2134008d553574fffe06f4
Pablo Ceballos [Mon, 13 Jun 2016 18:09:20 +0000 (18:09 +0000)]
Add FrameStats default constructor am:
9a8c42a72b am:
8cd7d257de am:
67105cc24d
am:
b990d75315
Change-Id: Ibc0caec8dc613a6701791f1a633f3793522615af
Pablo Ceballos [Mon, 13 Jun 2016 18:04:17 +0000 (18:04 +0000)]
Add FrameStats default constructor am:
9a8c42a72b am:
8cd7d257de
am:
67105cc24d
Change-Id: Icf85c944e561763b0a9c353f84d614a992168c20
Pablo Ceballos [Mon, 13 Jun 2016 18:00:25 +0000 (18:00 +0000)]
Add FrameStats default constructor am:
9a8c42a72b
am:
8cd7d257de
Change-Id: Ic0df6b15e28ac2acda566fa7f30c9460d36f2a00
Pablo Ceballos [Mon, 13 Jun 2016 17:56:06 +0000 (17:56 +0000)]
Add FrameStats default constructor
am:
9a8c42a72b
Change-Id: Ib78d68c71438391711ea3b91102408d5ad0b966b
Craig Donner [Mon, 13 Jun 2016 16:36:51 +0000 (16:36 +0000)]
Merge "Fix assignment of 565 format when creating native client buffers." into nyc-dev
The Android Automerger [Sun, 12 Jun 2016 07:04:11 +0000 (00:04 -0700)]
merge in nyc-release history after reset to nyc-dev
Craig Donner [Sat, 11 Jun 2016 00:20:15 +0000 (17:20 -0700)]
Fix assignment of 565 format when creating native client buffers.
Change-Id: Ia379f469a6e18e1f31748dc97aa596d03e507f84
Fixes:
29279664
Felipe Leme [Fri, 10 Jun 2016 23:56:33 +0000 (16:56 -0700)]
Fixed -t order (should be *after* dumpsys :-)
BUG:
29042642
Change-Id: I1b88634b0152f849a57f8e82adc82bdc5e609db7
Eino-Ville Talvala [Fri, 10 Jun 2016 21:21:02 +0000 (14:21 -0700)]
BufferQueueProducer: Signal consumer when a buffer is detached
When a buffer is detached, it should be cleared from the consumer-side
cache as well.
Not doing so can leak buffers no longer owned by the queue for extended
lengths of time, depending on the exact usage patterns of the producer
and consumer.
Bug:
28695173
Change-Id: I2c618be51f2c827d92d0e19b92a2d5befda87c38
TreeHugger Robot [Fri, 10 Jun 2016 20:40:20 +0000 (20:40 +0000)]
Merge "Set version to 1.0" into nyc-dev
Felipe Leme [Fri, 10 Jun 2016 00:19:18 +0000 (00:19 +0000)]
Merge "Expose more useful functions that can be used by dumpstate_board()." into nyc-dev
John Eckerdal [Thu, 21 Apr 2016 13:04:14 +0000 (15:04 +0200)]
Fixed file descriptor leak in IMemory
Include dup in critical section to avoid multiple dup calls from
different threads.
The leak happens more frequently since patch in frameworks/av -
6773d4777f4ccbbe6377e4ae1b42c117066ae6ba when recording video since it
will access IMemory from CameraUtils::isNativeHandleMetadata
Bug:
28924660
Author: Henrik Antonsson <henrik.antonsson@sonymobile.com>
Change-Id: I769a914c3adc505b522659a0c43719fb2922e6fd
The Android Automerger [Thu, 9 Jun 2016 07:03:53 +0000 (00:03 -0700)]
merge in nyc-release history after reset to nyc-dev
TreeHugger Robot [Wed, 8 Jun 2016 23:35:11 +0000 (23:35 +0000)]
Merge "Improved error handling." into nyc-dev
Felipe Leme [Wed, 8 Jun 2016 18:11:01 +0000 (11:11 -0700)]
Improved error handling.
adb bugreport now properly handles stderr.
BUG:
29161586
Change-Id: I7a59d1feadda3d160eae6fe447a7a3c7e0843cbb
TreeHugger Robot [Wed, 8 Jun 2016 18:14:00 +0000 (18:14 +0000)]
Merge "Explicitly sets dumpsys timeout." into nyc-dev
Felipe Leme [Wed, 8 Jun 2016 16:51:29 +0000 (09:51 -0700)]
Explicitly sets dumpsys timeout.
The run_command() function takes a timeout as argument, and dumpsys can
also optionally takes a timeout with the -t argument, hence it makes
sense to pass the same value for both (otherwise dumpsys will timeout in
10s).
BUG:
29042642
Change-Id: Ib6e987d94e966686bab71223d7f910af9e549814
David Brazdil [Wed, 8 Jun 2016 15:36:45 +0000 (15:36 +0000)]
Merge "Attach profiles to bug reports" into nyc-dev
David Brazdil [Fri, 3 Jun 2016 13:40:44 +0000 (14:40 +0100)]
Attach profiles to bug reports
Includes the entire '/data/misc/profiles' folder in the bug report
ZIP file if not user build.
Bug:
28610953
Change-Id: I99d46f024e5557cf94e6045a51c46a605a00c52b
The Android Automerger [Wed, 8 Jun 2016 07:03:14 +0000 (00:03 -0700)]
merge in nyc-release history after reset to nyc-dev
TreeHugger Robot [Tue, 7 Jun 2016 20:42:03 +0000 (20:42 +0000)]
Merge "SurfaceFlinger: Add mode to apply position with resize." into nyc-dev
Janis Danisevskis [Tue, 7 Jun 2016 19:23:45 +0000 (19:23 +0000)]
Merge "Fix Parcelable::readParcelableVector<T>" into nyc-dev
Robert Carr [Sun, 15 May 2016 18:27:47 +0000 (11:27 -0700)]
SurfaceFlinger: Add mode to apply position with resize.
For some cases, like scaled windows with shadows,
we need to be able to apply the position concurrent with
window resize. This is because the scaling of the shadows causes
the top left coordinate of the non shadow surface content
to change before and after the resize.
Bug:
28899837
Change-Id: I522eacfbbcd79707dc1e5ab71901a263b3004ba9
The Android Automerger [Tue, 7 Jun 2016 07:03:33 +0000 (00:03 -0700)]
merge in nyc-release history after reset to nyc-dev
Calvin On [Fri, 3 Jun 2016 22:17:07 +0000 (15:17 -0700)]
Expose more useful functions that can be used by dumpstate_board().
BUG:
28640932
Fixes:
28867848
Change-Id: I38123e5b348f4560212559176eb60dbad4f22364
David Sehr [Mon, 6 Jun 2016 20:16:10 +0000 (20:16 +0000)]
Merge "Enable profman pretty printing" into nyc-dev
Pablo Ceballos [Mon, 6 Jun 2016 19:32:15 +0000 (19:32 +0000)]
Merge "SF: Also edit currentState in doTransaction" into nyc-dev
David Sehr [Thu, 2 Jun 2016 17:42:12 +0000 (10:42 -0700)]
Enable profman pretty printing
Bug:
28748264
Change-Id: Ia625a7976d9b95ec3b7e1d03af39af9f39015f3b
Mike Stroyan [Mon, 6 Jun 2016 16:29:41 +0000 (16:29 +0000)]
Merge "libgui: Check result in hook_dequeueBuffer_DEPRECATED" into nyc-dev
Craig Donner [Mon, 6 Jun 2016 16:18:23 +0000 (16:18 +0000)]
Merge "Allow setting alpha to 0 when creating native client buffers." into nyc-dev
Mike Stroyan [Fri, 3 Jun 2016 18:43:26 +0000 (12:43 -0600)]
libgui: Check result in hook_dequeueBuffer_DEPRECATED
Surface::hook_dequeueBuffer_DEPRECATED calls c->dequeueBuffer without
checking the returned result value. It should check for failing
result and return on error without using the values that
c->dequeueBuffer did not set.
Bug:
28692406
Change-Id: I10f9a23ad1052c5149040124366e0eb91b616267
The Android Automerger [Sun, 5 Jun 2016 07:03:54 +0000 (00:03 -0700)]
merge in nyc-release history after reset to nyc-dev
Pablo Ceballos [Fri, 3 Jun 2016 00:46:05 +0000 (17:46 -0700)]
SF: Also edit currentState in doTransaction
Bug
28899837
Change-Id: I46c8301549c627c5d1c7efa661055aba787a33d6
Craig Donner [Sat, 4 Jun 2016 00:54:25 +0000 (17:54 -0700)]
Allow setting alpha to 0 when creating native client buffers.
Note that RGBA sizes are checked later in the function anyway, so there was no
reason to disallow 0, but it did preclude setting alpha to 0 for 565 buffers.
Fixes:
29126799
Change-Id: Iba11649976221ab385227fc022ae74b14c342203
Janis Danisevskis [Fri, 20 May 2016 17:10:04 +0000 (18:10 +0100)]
Fix Parcelable::readParcelableVector<T>
Parcelable::readParcelableVector<T> was apparently never
used. It now is and needed some adjustments to actually
work.
Bug:
22914603
Change-Id: I58ead3b3956299d549cff245588f56f3220563d3
Jesse Hall [Fri, 3 Jun 2016 19:39:49 +0000 (12:39 -0700)]
libvulkan: reduce log level for swapchain usage errors
Bug:
26927424
Change-Id: Id9346356436663db83a2d6fa8fefc4ea24d7854b
Jesse Hall [Thu, 2 Jun 2016 23:57:02 +0000 (23:57 +0000)]
Merge "libvulkan: Slightly better handling of swapchain re-creation" into nyc-dev
Chia-I Wu [Thu, 2 Jun 2016 22:36:26 +0000 (22:36 +0000)]
Merge "vulkan: remove EnumerateDeviceLayerProperties internally" into nyc-dev
Yin-Chia Yeh [Thu, 2 Jun 2016 18:12:21 +0000 (18:12 +0000)]
Merge "Camera: Add media/camera NDK documents" into nyc-dev
Jesse Hall [Tue, 31 May 2016 05:40:14 +0000 (22:40 -0700)]
libvulkan: Slightly better handling of swapchain re-creation
Previously we would fail vkCreateSwapchainKHR if
VkSwapchainCreateInfo::oldSwapchain was used, because we were unable
to dequeue all buffers for the new swapchain from an already-used
native window.
Now we disconnect and re-connect to the native window in order to
fully reset state, and allow us to dequeue all buffers. Additionally,
we tag the old swapchain as out-of-date, so future image acquires and
presents will fail with VK_ERROR_OUT_OF_DATE_KHR on that swapchain.
This is less than ideal, but better than what we had, and the best we
have time to do for N.
Bug:
26927424
Change-Id: Ifaa5048376f72a63ecb1dca3d1ff85dbee2c24d0
Pablo Ceballos [Thu, 2 Jun 2016 17:14:00 +0000 (17:14 +0000)]
Merge "BQ: Don't return fences from dequeue in shared buffer mode" into nyc-dev
Pablo Ceballos [Thu, 2 Jun 2016 17:10:06 +0000 (17:10 +0000)]
Merge "Push empty sync transaction before taking screenshot in tests" into nyc-dev