OSDN Git Service

android-x86/frameworks-native.git
8 years agoMerge "Record "cache" inodes to clear while CE is locked." into nyc-mr1-dev
Jeff Sharkey [Fri, 15 Jul 2016 20:53:24 +0000 (20:53 +0000)]
Merge "Record "cache" inodes to clear while CE is locked." into nyc-mr1-dev

8 years agoSF/HWC2: Add support for color transforms
Dan Stoza [Wed, 22 Jun 2016 21:51:09 +0000 (14:51 -0700)]
SF/HWC2: Add support for color transforms

Adds support for color transforms using the setColorTransform method
of HWC2.

This means that instead of always falling back to client composition
when applying a transform, SurfaceFlinger will allow the device to
make that decision. If all layers fall back to client composition, the
SKIP_CLIENT_COLOR_TRANSFORM capability allows the device greater
control over whether SF should apply the transform or whether it
should allow the device to apply it to the client target buffer.

Bug: 19539930
Change-Id: I47a3d5453a3c47a8dd105ab77cce7f9c9687e925

8 years agoRecord "cache" inodes to clear while CE is locked.
Jeff Sharkey [Fri, 15 Jul 2016 00:16:22 +0000 (18:16 -0600)]
Record "cache" inodes to clear while CE is locked.

There are two situations where we need to clear cached data from
all users, including those whose CE storage might still be locked:

1. When PackageManager is clearing caches to try making room for
package updates.
2. When the device fingerprint changes, we need to clear code caches
for all apps.

To enable this, we now record the inode number of the "cache" and
"code_cache" directories in xattrs of the parent directory.  This is
just enough information to find the cache directories to enable
deleting files inside.  When preparing CE storage for an app, we now
create these two directories and immediately write the inode numbers.

Bug: 26056125
Change-Id: I7e442b0676a695acf962593469793a93b03c8aee

8 years agoMerge "HWC2: Fix virtual displays" into nyc-mr1-dev
TreeHugger Robot [Thu, 14 Jul 2016 19:54:21 +0000 (19:54 +0000)]
Merge "HWC2: Fix virtual displays" into nyc-mr1-dev

8 years agoMerge "Disable support for EGL_ANDROID_get_frame_timestamps" into nyc-mr1-dev
TreeHugger Robot [Thu, 14 Jul 2016 19:49:07 +0000 (19:49 +0000)]
Merge "Disable support for EGL_ANDROID_get_frame_timestamps" into nyc-mr1-dev

8 years agoAdd bound checks to utf16_to_utf8
Sergio Giro [Thu, 14 Jul 2016 18:07:54 +0000 (18:07 +0000)]
Add bound checks to utf16_to_utf8
am: 9b39ebe132

Change-Id: Ia3ce9b64333983799c6fdb3c5f7383852abda32e

8 years agoDisable support for EGL_ANDROID_get_frame_timestamps
Pablo Ceballos [Thu, 14 Jul 2016 15:02:14 +0000 (08:02 -0700)]
Disable support for EGL_ANDROID_get_frame_timestamps

Bug 22764477

Change-Id: Ic7abe534b2f712dd1442364eb1fec3d1fbe0ee91

8 years agoHWC2: Fix virtual displays
Dan Stoza [Wed, 13 Jul 2016 22:48:58 +0000 (15:48 -0700)]
HWC2: Fix virtual displays

Close the output buffer release fence per the contract in
hwcomposer2.h.

Also changes the HWC2 device to hold a weak pointer to the display,
which allows it to properly remove it when it gets torn down.

Bug: 29945684
Change-Id: Ib1b5d81e42a63d0e65b189f7c6c62e661e0ab6ae

8 years agoAdd bound checks to utf16_to_utf8
Sergio Giro [Tue, 28 Jun 2016 17:19:33 +0000 (18:19 +0100)]
Add bound checks to utf16_to_utf8

Bug: 29250543
Change-Id: I518e7b2fe10aaa3f1c1987586a09b1110aff7e1a
(cherry picked from commit 7e93b2ddcb49b5365fbe1dab134ffb38e6f1c719)

8 years agoMerge "media: add asString for new OMX layering params" into nyc-mr1-dev
Lajos Molnar [Thu, 14 Jul 2016 01:54:14 +0000 (01:54 +0000)]
Merge "media: add asString for new OMX layering params" into nyc-mr1-dev

8 years agoMerge "Add bugreportwear service for Wear." into nyc-mr1-dev
Wei Liu [Wed, 13 Jul 2016 23:59:27 +0000 (23:59 +0000)]
Merge "Add bugreportwear service for Wear." into nyc-mr1-dev

8 years agomedia: add asString for new OMX layering params
Lajos Molnar [Wed, 13 Jul 2016 23:31:30 +0000 (16:31 -0700)]
media: add asString for new OMX layering params

Bug: 27596987
Change-Id: I75af5f8a92cf00a43bfa209793db3e79f8621374

8 years agoMerge "media: add/fix asString for temporal layering types" into nyc-mr1-dev
Lajos Molnar [Wed, 13 Jul 2016 23:28:06 +0000 (23:28 +0000)]
Merge "media: add/fix asString for temporal layering types" into nyc-mr1-dev

8 years agoOtapreopt: Try to mount vendor partition for A/B OTA
Andreas Gampe [Tue, 12 Jul 2016 16:47:17 +0000 (09:47 -0700)]
Otapreopt: Try to mount vendor partition for A/B OTA

Vendor apps are usually not preopted, so A/B dexopt should pick
them up. update_engine is not mounting the vendor partition, so
let otapreopt_chroot do the work.

Bug: 25612095
Bug: 29498238
Change-Id: I5a77bdb78a8e478ce10f6c1d0f911a8d6686becb

8 years agoMerge "media: clarify i-frame interval for VPx and HEVC codecs" into nyc-mr1-dev
TreeHugger Robot [Wed, 13 Jul 2016 18:57:20 +0000 (18:57 +0000)]
Merge "media: clarify i-frame interval for VPx and HEVC codecs" into nyc-mr1-dev

8 years agoMerge changes from topic 'ab_ota_dexopt_target_slot' into nyc-mr1-dev
Andreas Gampe [Wed, 13 Jul 2016 18:29:47 +0000 (18:29 +0000)]
Merge changes from topic 'ab_ota_dexopt_target_slot' into nyc-mr1-dev

* changes:
  Otapreopt: Add init script for A/B artifact move
  Otapreopt: Implement new A/B OTA path

8 years agoOtapreopt: Add init script for A/B artifact move
Andreas Gampe [Sat, 9 Jul 2016 18:44:12 +0000 (11:44 -0700)]
Otapreopt: Add init script for A/B artifact move

Move the /data/ota -> /data/dalvik-cache move from the zygote into
a minimal shell script. Add an init rc file to execute the script
once /data is mounted. Add Makefile rules to pull these files in
with the rest of the A/B OTA dexopt components.

The move is motivated by the new naming scheme that includes the
slot name. Passing the slot name to the zygote would complicate
the process, while the value is immediately available in the script
through a simple getprop call.

Bug: 25612095
Bug: 28069686
Change-Id: I63e718d488662e1b1de2ce857629cb90aa4f611d

8 years agoOtapreopt: Implement new A/B OTA path
Andreas Gampe [Mon, 27 Jun 2016 21:25:30 +0000 (14:25 -0700)]
Otapreopt: Implement new A/B OTA path

Refactor otapreopt_script, otapreopt_chroot and otapreopt such
that the actual work will be done as a child of the script driven
by update_engine.

The script now uses the new OtaDexoptService command to get the
right parameters for a dexopt call in otapreopt. As we reach
otapreopt_chroot and otapreopt directly, we can add parameters
without tainting the regular installd path. Use this to add the
target slot suffix, and make naming of the A/B artifacts include
the suffix instead of the generic "b."

Otapreopt_chroot startup is slightly complicated because all file
descriptors must be closed. Otherwise, dex2oat needs selinux
permissions to inherit the descriptors from update_engine.

Bug: 25612095
Bug: 28069686
Change-Id: I9d7b86ac8ecfdf91af3800f7e96f41534c0afc0f

8 years agomedia: add/fix asString for temporal layering types
Lajos Molnar [Wed, 13 Jul 2016 01:39:09 +0000 (18:39 -0700)]
media: add/fix asString for temporal layering types

Bug: 27596987
Change-Id: I20c628a2f0ca9770351f7096ce05a2c383e53d41

8 years agoMerge changes Iea048eaa,I5c246571 into nyc-mr1-dev
Courtney Goeltzenleuchter [Tue, 12 Jul 2016 23:12:00 +0000 (23:12 +0000)]
Merge changes Iea048eaa,I5c246571 into nyc-mr1-dev

* changes:
  Add support for multiple color modes
  Remove unused DisplayInfo structure

8 years agomedia: add OMX extensions for video temporal layering
Praveen Chavan [Fri, 25 Mar 2016 08:17:32 +0000 (01:17 -0700)]
media: add OMX extensions for video temporal layering

Add static/dynamic configuration structures to setup/tune
video encoder for temporal layering

Bug: 27596987
Change-Id: Ic260872aa49faee6d17a84e6177ef94c35ef0d68

8 years agomedia: clarify i-frame interval for VPx and HEVC codecs
Lajos Molnar [Tue, 12 Jul 2016 20:59:47 +0000 (13:59 -0700)]
media: clarify i-frame interval for VPx and HEVC codecs

Bug: 30096321
Change-Id: I421487e6ba3d4054f9a179dc5109a01564b945f4

8 years agoMerge "Installd: Add support for dex2oat very-large-app property" into nyc-mr1-dev
TreeHugger Robot [Tue, 12 Jul 2016 17:51:11 +0000 (17:51 +0000)]
Merge "Installd: Add support for dex2oat very-large-app property" into nyc-mr1-dev

8 years agoInstalld: Add support for dex2oat very-large-app property
Andreas Gampe [Mon, 11 Jul 2016 22:19:31 +0000 (15:19 -0700)]
Installd: Add support for dex2oat very-large-app property

To support constrained devices, dex2oat supports a parameter that
can downgrade a compilation to verify-at-runtime. Expose this
through the dalvik.vm.dex2oat-very-large system property.

Bug: 29557002
Change-Id: Iace626a8ec18533d37f84a41c20729fe7e400386

8 years agoMerge "BQ: Remove getNextFrameNumber Binder call" into nyc-mr1-dev
Pablo Ceballos [Tue, 12 Jul 2016 00:24:56 +0000 (00:24 +0000)]
Merge "BQ: Remove getNextFrameNumber Binder call" into nyc-mr1-dev

8 years agoMerge "BQ: Handle errors in GraphicBuffer/Fence unflatten" into nyc-mr1-dev
Pablo Ceballos [Tue, 12 Jul 2016 00:17:48 +0000 (00:17 +0000)]
Merge "BQ: Handle errors in GraphicBuffer/Fence unflatten" into nyc-mr1-dev

8 years agoAdd support for multiple color modes
Courtney Goeltzenleuchter [Thu, 23 Jun 2016 17:49:50 +0000 (11:49 -0600)]
Add support for multiple color modes

Bug: 29044347
Change-Id: Iea048eaa62f072a9bbefc4f3a6c29a9e593eab69

8 years agoRemove unused DisplayInfo structure
Courtney Goeltzenleuchter [Tue, 21 Jun 2016 23:22:18 +0000 (17:22 -0600)]
Remove unused DisplayInfo structure

Bug: 29044347
Change-Id: I5c2465719050c8727b0b48ef515ee79a24e3d65d

8 years agoMerge "Add the EGL_ANDROID_get_frame_timestamps extension" into nyc-mr1-dev
Pablo Ceballos [Mon, 11 Jul 2016 19:16:48 +0000 (19:16 +0000)]
Merge "Add the EGL_ANDROID_get_frame_timestamps extension" into nyc-mr1-dev

8 years agoupdate NDK doxygen templates to create DevSite-style HTML.
smain@google.com [Mon, 11 Jul 2016 17:05:06 +0000 (17:05 +0000)]
update NDK doxygen templates to create DevSite-style HTML.
am: 20e2095c7b

Change-Id: I0ae956648ff553bbf15c083175451621555fdf38

8 years agoMerge "Add bound checks to utf16_to_utf8" into nyc-mr1-dev
Sergio Giro [Mon, 11 Jul 2016 12:11:30 +0000 (12:11 +0000)]
Merge "Add bound checks to utf16_to_utf8" into nyc-mr1-dev

8 years agoAdd bugreportwear service for Wear.
Wei Liu [Fri, 8 Jul 2016 23:42:01 +0000 (16:42 -0700)]
Add bugreportwear service for Wear.

b/30041885

Change-Id: Ic054e4406cbf067b86ea79aee59a105b82344fec

8 years agoMerge "HWC2: Backpressure on transactions as well" into nyc-mr1-dev
TreeHugger Robot [Fri, 8 Jul 2016 21:22:43 +0000 (21:22 +0000)]
Merge "HWC2: Backpressure on transactions as well" into nyc-mr1-dev

8 years agoHWC2: Backpressure on transactions as well
Dan Stoza [Fri, 8 Jul 2016 19:02:20 +0000 (12:02 -0700)]
HWC2: Backpressure on transactions as well

Modifies the backpressure detection to skip transactions as well as
buffer updates.

Bug: 29413700
Change-Id: I97cda920e7fc1cd7151f0a4df1b00f96b84f4145

8 years agoAdd the EGL_ANDROID_get_frame_timestamps extension
Pablo Ceballos [Tue, 31 May 2016 21:55:42 +0000 (14:55 -0700)]
Add the EGL_ANDROID_get_frame_timestamps extension

Change-Id: Ia7d1c10f0b8bd1f2f6dc7dc180764cb1b4fdbf6f

8 years agoMerge "Increase sensor registration log size" into nyc-mr1-dev
Peng Xu [Fri, 8 Jul 2016 17:40:33 +0000 (17:40 +0000)]
Merge "Increase sensor registration log size" into nyc-mr1-dev

8 years agoupdate NDK doxygen templates to create DevSite-style HTML.
smain@google.com [Fri, 8 Jul 2016 00:11:35 +0000 (17:11 -0700)]
update NDK doxygen templates to create DevSite-style HTML.

Previously, we had doxygen create .jd files with some syntax that
was parsed by the DocLava build tools when creating the final HTML
files for the website. But now that we're publishing these docs through
Piper, we don't need to run them through DocLava anymore. So with this
change, we now create .html files that then need to be copied to
google3/googledata/devsite/site-android/en/ndk/
where they can be immediately published via devsite once merged.
bug: 29943712

Change-Id: I8af5555f802e8c0122378bd504ad4308ff9aad56

8 years agoIncrease sensor registration log size
Peng Xu [Thu, 7 Jul 2016 22:40:08 +0000 (15:40 -0700)]
Increase sensor registration log size

This is for aiding debugging of b/29625330. The size is increased
so that we have a better chance to know what happened before the
failure happens.

Bug: 29625330
Change-Id: I8b741cb5981d8e91b9ef53a00e65c0bbe34ed55e

8 years agosurfaceflinger: make critical threads SCHED_FIFO
Tim Murray [Wed, 22 Jun 2016 19:42:10 +0000 (12:42 -0700)]
surfaceflinger: make critical threads SCHED_FIFO

Sets the main thread, EventThread, and SFEventThread to SCHED_FIFO to
minimize jitter.

bug 24503801

Change-Id: I3751c00c79482842f5c0bdaec92b6cbfe62328a0

8 years agoBQ: Handle errors in GraphicBuffer/Fence unflatten
Pablo Ceballos [Wed, 6 Jul 2016 22:24:54 +0000 (15:24 -0700)]
BQ: Handle errors in GraphicBuffer/Fence unflatten

Bug 29873396

Change-Id: Ieab38091f60722a11e227aecac7508fc11d9f58b

8 years agoSurface: Add LAST_[DE]QUEUE_DURATION queries
Dan Stoza [Fri, 1 Jul 2016 21:00:40 +0000 (14:00 -0700)]
Surface: Add LAST_[DE]QUEUE_DURATION queries

Adds support for the NATIVE_WINDOW_LAST_DEQUEUE_DURATION and
NATIVE_WINDOW_LAST_QUEUE_DURATION queries.

Bug: 29413700
Change-Id: Iea4efa208e8390fb2de52d5ad9f083ae91bf50b0

8 years agoHWC2: Backpressure missed vsyncs into apps
Dan Stoza [Fri, 1 Jul 2016 20:33:38 +0000 (13:33 -0700)]
HWC2: Backpressure missed vsyncs into apps

Adds a mechanism to detect whether the prior frame SurfaceFlinger
presented to hardware composer was actually picked up or not. We then
use this mechanism to avoid pushing two frames in the same vsync.
This backpressure is passed back to applications by not latching any
buffers, which will manifest as dequeueBuffer stalling until
SurfaceFlinger releases a buffer on the following vsync.

Also makes the former INVALIDATE_ON_VSYNC behavior the only behavior
so that this functionality works correctly.

Bug: 29413700
Change-Id: Ibde358e45423ee6fea7b5e09ff65e49c4ad67baa

8 years agoSF: Only latch buffers after fence signals
Dan Stoza [Wed, 15 Jun 2016 23:26:27 +0000 (16:26 -0700)]
SF: Only latch buffers after fence signals

Changes SurfaceFlinger to only latch a buffer after its corresponding
acquire fence has signaled. This will enable us to move
SurfaceFlinger closer to vsync since there is no risk of fence waits
blocking composition.

Bug: 29413700
Change-Id: I26f4fd600c1611b8d736ec654d1f0f02cf69ae5f

8 years agoBQ: Remove getNextFrameNumber Binder call
Pablo Ceballos [Fri, 1 Jul 2016 21:15:41 +0000 (14:15 -0700)]
BQ: Remove getNextFrameNumber Binder call

- Return the value in queueBuffer instead and cache it in Surface

Change-Id: I10ab112afb03cf0231b047d4a4569cd641827043

8 years agoresolve merge conflicts of 8e3e92b to nyc-mr1-dev
Pablo Ceballos [Thu, 30 Jun 2016 23:48:02 +0000 (16:48 -0700)]
resolve merge conflicts of 8e3e92b to nyc-mr1-dev

Change-Id: Ic67f0894e68ea5276eb9187a13cd24f105d55d68

8 years agoAdd bound checks to utf16_to_utf8
Sergio Giro [Tue, 28 Jun 2016 17:19:33 +0000 (18:19 +0100)]
Add bound checks to utf16_to_utf8

Bug: 29250543
Change-Id: I518e7b2fe10aaa3f1c1987586a09b1110aff7e1a

8 years agoBQ: Handle buffer allocation failure
Pablo Ceballos [Wed, 29 Jun 2016 22:08:33 +0000 (15:08 -0700)]
BQ: Handle buffer allocation failure

Return the slot to the mFreeSlots if we fail to allocate.

Bug 29873396

Change-Id: Icafc5c64c7233d47e160f7a56e5a314e4a01611d

8 years agodumpsys: report per-service dump times
mukesh agrawal [Thu, 9 Jun 2016 01:16:36 +0000 (18:16 -0700)]
dumpsys: report per-service dump times

In WiFi soak testing, we've seen several cases where
dumpsys times out. We've been unable to pin down the
cause of the timeouts, as there's no single service
that is obviously hung.

Add reporting of service dump times, to help figure
out why dumpsys is timing out.

BUG=29090949
TEST=manual

Manual test
- load build on bullhead
$ adb shell dumpsys | grep 'was the duration'
- see non-zero values

Change-Id: Iaba60d840ac55cba171a3ccbc74c2aee8b23dce6
(cherry picked from commit 4e4c548437b7cc7748e97ecc74a525e26a441cdb)

8 years agodumpstate: change OOM adjustment proc interface for modern kernel
Wei Wang [Tue, 28 Jun 2016 21:32:35 +0000 (14:32 -0700)]
dumpstate: change OOM adjustment proc interface for modern kernel

Bug: 29831067
Change-Id: I72e2862daad5da99e7d767d7e41bde96750840ce

8 years agoBQ: Add and expose a unique id
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

8 years agodumpstate: Also pick up /sys/fs/pstore/console-ramoops-0 for LAST KMSG
Mark Salyzyn [Fri, 24 Jun 2016 23:31:24 +0000 (23:31 +0000)]
dumpstate: Also pick up /sys/fs/pstore/console-ramoops-0 for LAST KMSG
am: ced6078b0e

Change-Id: Iacabdb52ae0e4ad3a6c27e952fa9ce572b282904

8 years agodumpstate: Also pick up /sys/fs/pstore/console-ramoops-0 for LAST KMSG
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

8 years agodumpstate: sscanf requires an asciiz string
Mark Salyzyn [Mon, 16 May 2016 15:33:59 +0000 (08:33 -0700)]
dumpstate: sscanf requires an asciiz string

(cherry pick from commit 290f4b97bb736b0652eac9667965444393e683ec)

Bug: 28770668
Change-Id: Ice56b129a243296b2691d55e8f8c35b478b1f481

8 years agoMerge \"Sensor: Make getId() more varied\" into nyc-dev
Greg Kaiser [Thu, 23 Jun 2016 03:31:59 +0000 (03:31 +0000)]
Merge \"Sensor: Make getId() more varied\" into nyc-dev
am: c0ca0ceaa5

Change-Id: I6b6ecc30646e6e9a912a1ad096bd93fea341968b

8 years agoMerge "Sensor: Make getId() more varied" into nyc-dev
Greg Kaiser [Thu, 23 Jun 2016 03:25:44 +0000 (03:25 +0000)]
Merge "Sensor: Make getId() more varied" into nyc-dev

8 years agoSensor: Make getId() more varied
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: 2877559029547335
Change-Id: I368655b0e4bdc16736a7fd163ea3f7dad2886b3b

8 years agoEnable fingerprint sensor navigation to invoke QuickSettings
Jim Miller [Wed, 22 Jun 2016 22:58:31 +0000 (15:58 -0700)]
Enable fingerprint sensor navigation to invoke QuickSettings
- rename "FP_NAV" to more generic "SYSTEM_NAVIGATION" based on other reviews.

Fixes bug 28869612

Change-Id: I384c0fa372a2ecda7250fccd0dbdfd6312423a85

8 years agoMerge \"Run iptables as root.\" into nyc-dev
Felipe Leme [Wed, 22 Jun 2016 20:29:24 +0000 (20:29 +0000)]
Merge \"Run iptables as root.\" into nyc-dev
am: ab69cc1f11

Change-Id: I4ca2677e7b99cfaa1ccc60c3efb2df642f3a7408

8 years agoMerge "Run iptables as root." into nyc-dev
TreeHugger Robot [Wed, 22 Jun 2016 20:24:53 +0000 (20:24 +0000)]
Merge "Run iptables as root." into nyc-dev

8 years agoMerge changes from topic 'seamless-rotation' into nyc-mr1-dev
TreeHugger Robot [Wed, 22 Jun 2016 17:40:46 +0000 (17:40 +0000)]
Merge changes from topic 'seamless-rotation' into nyc-mr1-dev

* changes:
  Reset mFreezePositionUpdates earlier.
  SurfaceControl: Add getTransformToDisplayInverse
  Change setPositionAppliesWithResize to apply to all geometry.

8 years agoMerge "Attach profiles to bug reports" into nyc-mr1-dev
David Brazdil [Wed, 22 Jun 2016 16:38:43 +0000 (16:38 +0000)]
Merge "Attach profiles to bug reports" into nyc-mr1-dev

8 years agoMerge "gralloc1: Add mutexes" into nyc-mr1-dev
TreeHugger Robot [Wed, 22 Jun 2016 01:08:26 +0000 (01:08 +0000)]
Merge "gralloc1: Add mutexes" into nyc-mr1-dev

8 years agoReset mFreezePositionUpdates earlier.
Robert Carr [Tue, 21 Jun 2016 04:49:49 +0000 (21:49 -0700)]
Reset mFreezePositionUpdates earlier.

We are resetting mFreezePositionUpdates
too late, in the case that the state changes during
latch buffer, we will return to recompute the visible regions
before updating mActiveBuffer.

Bug: 28823590
Change-Id: I17afc32d55d092ea0814b560846b922dd9e24c43

8 years agoSurfaceControl: Add getTransformToDisplayInverse
Robert Carr [Mon, 20 Jun 2016 18:55:28 +0000 (11:55 -0700)]
SurfaceControl: Add getTransformToDisplayInverse

For seamless rotation, the window manager needs
access to this flag, as it will apply the inverse
display transform itself to all other windows.

Bug: 28823590
Change-Id: Ifeee1078a9cb4cd01c8052570c137c6228b2f13d

8 years agoChange setPositionAppliesWithResize to apply to all geometry.
Robert Carr [Thu, 16 Jun 2016 22:18:02 +0000 (15:18 -0700)]
Change setPositionAppliesWithResize to apply to all geometry.

To support seamless rotation, change setPositionAppliesWithResize
to also include the crop. As the transformation matrix is already
frozen during resize, this enables the window manager to set the
total geometry state before and after resize in a race free fashion.

Bug: 28823590
Change-Id: I3f8f0e162b7ef4e9403c1220c7e4191b3ef30526

8 years agogralloc1: Add mutexes
Dan Stoza [Tue, 21 Jun 2016 23:22:06 +0000 (16:22 -0700)]
gralloc1: Add mutexes

Adds mutexes to protect both the buffer list and the descriptor list
from concurrent access

Bug: 29420918
Change-Id: I4d14353ceb167276570c56c9f92d48b28b2d4c53

8 years agoHWC2: Don't set null handle for client layers
Dan Stoza [Tue, 21 Jun 2016 22:02:23 +0000 (15:02 -0700)]
HWC2: Don't set null handle for client layers

Removes the code that explicitly set a null buffer handle for client
layers.

Bug: 29463310
Change-Id: I570e6041ba72d64971bb6c364e8e7b6f84eeff08

8 years agoHWC2: Hook up to BoardConfig variable
Dan Stoza [Tue, 21 Jun 2016 17:00:37 +0000 (10:00 -0700)]
HWC2: Hook up to BoardConfig variable

Uses TARGET_USES_HWC2 to enable the HWC2 code path in SurfaceFlinger

Bug: 27211042
Change-Id: I7b7e3e3f7a918e74df0be27418196c81b4332564

8 years agoMerge "HWC2: Skip validate/present if display is off" into nyc-mr1-dev
Dan Stoza [Mon, 20 Jun 2016 17:23:50 +0000 (17:23 +0000)]
Merge "HWC2: Skip validate/present if display is off" into nyc-mr1-dev

8 years agoMerge \"SensorList: Don\'t output UUIDs\" into nyc-dev
Greg Kaiser [Mon, 20 Jun 2016 17:22:10 +0000 (17:22 +0000)]
Merge \"SensorList: Don\'t output UUIDs\" into nyc-dev
am: a0c08e2f8f

Change-Id: I867a9d0636c7617c84abc996e7ff62e733b27e11

8 years agoRun iptables as root.
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

8 years agoMerge "SensorList: Don't output UUIDs" into nyc-dev
Greg Kaiser [Mon, 20 Jun 2016 16:24:51 +0000 (16:24 +0000)]
Merge "SensorList: Don't output UUIDs" into nyc-dev

8 years agoAttach profiles to bug reports
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

8 years agoMerge \"BufferQueueProducer: Signal consumer when a buffer is detached\" into nyc-dev
Eino-Ville Talvala [Sat, 18 Jun 2016 08:28:41 +0000 (08:28 +0000)]
Merge \"BufferQueueProducer: Signal consumer when a buffer is detached\" into nyc-dev
am: 51ed38bb13

Change-Id: I7f901c66dd9e2f62bdc15c8b768f27003aa46611

8 years agoMerge "BufferQueueProducer: Signal consumer when a buffer is detached" into 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

8 years agovulkan: Updated IHV documentation
Jesse Hall [Sat, 18 Jun 2016 01:56:55 +0000 (01:56 +0000)]
vulkan: Updated IHV documentation
am: c2f184d9d8

Change-Id: I4ca9873ec84e5e02e6bb5e303dbce4604cd43e6f

8 years agoSensorList: Don't output UUIDs
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

8 years agovulkan: Updated IHV documentation
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

8 years agoHWC2: Skip validate/present if display is off
Dan Stoza [Fri, 17 Jun 2016 18:29:01 +0000 (11:29 -0700)]
HWC2: Skip validate/present if display is off

Adds checks to ensure that the display is still on before attempting
to call into prepareFrame/commit (which in turn call into
validate/present).

Bug: 28596387
Change-Id: Iad87f02c3e44e86db43a15c258ee66b0cde14faa

8 years agoMerge "Rename problematic entries." into nyc-mr1-dev
TreeHugger Robot [Fri, 17 Jun 2016 06:34:39 +0000 (06:34 +0000)]
Merge "Rename problematic entries." into nyc-mr1-dev

8 years agoRename problematic entries.
Felipe Leme [Thu, 16 Jun 2016 17:55:26 +0000 (10:55 -0700)]
Rename problematic entries.

Zip entries with extensions such as .jar could cause the zip file to be
rejected as an attachment by some email providers. To circunvent such
issue, they will renamed with a '.renamed' suffix.

BUG: 28610953
BUG: 29395357
Change-Id: I9718821a53fdf0ce4f00ed360eddbf7fb4ca1cd6

8 years agoMerge "HWC2On1Adapter: populateCapabilities: fix virtual display query" into nyc...
Dan Stoza [Thu, 16 Jun 2016 17:21:47 +0000 (17:21 +0000)]
Merge "HWC2On1Adapter: populateCapabilities: fix virtual display query" into nyc-mr1-dev

8 years agoMerge \"Revert \"Attach profiles to bug reports\"\" into nyc-dev
David Brazdil [Thu, 16 Jun 2016 13:26:38 +0000 (13:26 +0000)]
Merge \"Revert \"Attach profiles to bug reports\"\" into nyc-dev
am: ea1aa91a25

Change-Id: I549f25a1e2bc90ff326a4d218cae5d2ea58571f3

8 years agoMerge "Revert "Attach profiles to bug reports"" into nyc-dev
David Brazdil [Thu, 16 Jun 2016 13:11:05 +0000 (13:11 +0000)]
Merge "Revert "Attach profiles to bug reports"" into nyc-dev

8 years agoRevert "Attach profiles to bug reports"
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

8 years agoHWC2On1Adapter: populateCapabilities: fix virtual display query
Fred Fettinger [Tue, 14 Jun 2016 22:53:10 +0000 (17:53 -0500)]
HWC2On1Adapter: populateCapabilities: fix virtual display query

To determine whether a HWComposer implementation supports virtual
displays, HWC2On1Adapter::populateCapabilities() calls
query(HWC_DISPLAY_TYPES_SUPPORTED). However, it incorrectly uses
HWC_DISPLAY_VIRTUAL instead of HWC_DISPLAY_VIRTUAL_BIT. Update the
check to use the correct bitmask.

Change-Id: I1ad95d5222a0353816ee65936cf033e5244c80cc

8 years agoMerge "Fix typo in dump cmd line." into nyc-mr1-dev
Junda Liu [Tue, 14 Jun 2016 20:10:30 +0000 (20:10 +0000)]
Merge "Fix typo in dump cmd line." into nyc-mr1-dev

8 years agoMerge changes from topic 'gralloc1' into nyc-mr1-dev
Dan Stoza [Tue, 14 Jun 2016 19:59:37 +0000 (19:59 +0000)]
Merge changes from topic 'gralloc1' into nyc-mr1-dev

* changes:
  libui: Convert Allocator and Mapper to gralloc1
  libui: Adds C++ shim for gralloc1
  libui: Add Gralloc1On0Adapter

8 years agoFix typo in dump cmd line.
Junda Liu [Tue, 14 Jun 2016 07:09:10 +0000 (00:09 -0700)]
Fix typo in dump cmd line.

Bug: b/29342758
Change-Id: Ic9ac15a2ade08a2cd21721721af357aa75a35ca5

8 years agoMerge \"Revert \"GLConsumer: add build-time disable of gpu protected content\"\"...
Craig Donner [Mon, 13 Jun 2016 23:25:23 +0000 (23:25 +0000)]
Merge \"Revert \"GLConsumer: add build-time disable of gpu protected content\"\" into nyc-dev
am: e1e1e75173

Change-Id: Iea28323a8e7bd2333d396b70703ac4b1a99b1911

8 years agoMerge "Revert "GLConsumer: add build-time disable of gpu protected content"" into...
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

8 years agoRevert "GLConsumer: add build-time disable of gpu protected content"
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

8 years agolibui: Convert Allocator and Mapper to gralloc1
Dan Stoza [Thu, 2 Jun 2016 01:21:44 +0000 (18:21 -0700)]
libui: Convert Allocator and Mapper to gralloc1

Converts GraphicBufferAllocator and GraphicBufferMapper to speak
gralloc 1.0 (via the C++ shim and optionally the 1On0 adapter) instead
of gralloc 0.x.

Bug: 28401203
Change-Id: Ie1649f0ee72801579be2c2d3c47177b52962a825

8 years agolibui: Adds C++ shim for gralloc1
Dan Stoza [Fri, 20 May 2016 19:14:37 +0000 (12:14 -0700)]
libui: Adds C++ shim for gralloc1

Adds a C++ shim which wraps a gralloc1 device and provides a somewhat
nicer interface to the rest of the system.

Bug: 28401203
Change-Id: I934ed41999bd4b9aa04d9ad8d40e7f8fba6f30ee

8 years agolibui: Add Gralloc1On0Adapter
Dan Stoza [Mon, 11 Jan 2016 23:21:07 +0000 (15:21 -0800)]
libui: Add Gralloc1On0Adapter

Adds an adapter which provides the gralloc1 interface on top of a
gralloc 0.x device.

Bug: 28401203
Change-Id: I0eeafc998b56e2e2fc39de6fad41e3ed2e19658a

8 years agoSF: Fix HWC2 build break
Pablo Ceballos [Mon, 13 Jun 2016 20:21:41 +0000 (13:21 -0700)]
SF: Fix HWC2 build break

Bug 29330291

Change-Id: Ifd9993ac0321c7436a17c3e64925d415ec993003

8 years agoMerge \"Fixed file descriptor leak in IMemory\" into nyc-dev
John Eckerdal [Mon, 13 Jun 2016 18:42:08 +0000 (18:42 +0000)]
Merge \"Fixed file descriptor leak in IMemory\" into nyc-dev
am: a13a22649b

Change-Id: Id692c99cbe9274e51f6d65cb38b3e0a7293e7518

8 years agoMerge "Fixed file descriptor leak in IMemory" into nyc-dev
Amith Yamasani [Mon, 13 Jun 2016 18:37:40 +0000 (18:37 +0000)]
Merge "Fixed file descriptor leak in IMemory" into nyc-dev

8 years agoAdd FrameStats default constructor am: 9a8c42a72b am: 8cd7d257de am: 67105cc24d am...
Pablo Ceballos [Mon, 13 Jun 2016 18:35:52 +0000 (18:35 +0000)]
Add FrameStats default constructor am: 9a8c42a72b am: 8cd7d257de am: 67105cc24d am: b990d75315 am: a1952f0a6d am: 81d678cf18 am: ed968dc61c am: d1d1d4e922
am: 324b700b4b

Change-Id: I9654230b1817fa5bd16ab995d53ffbad3f25d68f

8 years agoAdd FrameStats default constructor am: 9a8c42a72b am: 8cd7d257de am: 67105cc24d am...
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