OSDN Git Service

android-x86/frameworks-native.git
9 years agoam 47a7dc81: Merge "Incorporate network diagnostics during a bugreport" into mnc-dev
Erik Kline [Tue, 9 Jun 2015 23:47:36 +0000 (23:47 +0000)]
am 47a7dc81: Merge "Incorporate network diagnostics during a bugreport" into mnc-dev

* commit '47a7dc81d0fedc1e85091f0e8a868768d0e8cadd':
  Incorporate network diagnostics during a bugreport

9 years agoMerge "Incorporate network diagnostics during a bugreport" into mnc-dev
Erik Kline [Tue, 9 Jun 2015 23:24:53 +0000 (23:24 +0000)]
Merge "Incorporate network diagnostics during a bugreport" into mnc-dev

9 years agoam 558f55c7: am 5ab3ba1e: Merge "SF: Don\'t crop surface damage against viewport"
Dan Stoza [Tue, 9 Jun 2015 20:56:34 +0000 (20:56 +0000)]
am 558f55c7: am 5ab3ba1e: Merge "SF: Don\'t crop surface damage against viewport"

* commit '558f55c79874990cb629a02fd015eec445a20e44':
  SF: Don't crop surface damage against viewport

9 years agoam 5ab3ba1e: Merge "SF: Don\'t crop surface damage against viewport"
Dan Stoza [Tue, 9 Jun 2015 20:40:48 +0000 (20:40 +0000)]
am 5ab3ba1e: Merge "SF: Don\'t crop surface damage against viewport"

* commit '5ab3ba1e43e609c7a77cc780c888f666d153a4c9':
  SF: Don't crop surface damage against viewport

9 years agoMerge "SF: Don't crop surface damage against viewport"
Dan Stoza [Tue, 9 Jun 2015 20:28:59 +0000 (20:28 +0000)]
Merge "SF: Don't crop surface damage against viewport"

9 years agoSF: Don't crop surface damage against viewport
Dan Stoza [Fri, 5 Jun 2015 02:40:03 +0000 (19:40 -0700)]
SF: Don't crop surface damage against viewport

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)

9 years agoam 837b9fb8: am 816c9e0e: Merge "libgui/SurfaceFlinger: Add getConsumerName"
Dan Stoza [Tue, 9 Jun 2015 20:13:53 +0000 (20:13 +0000)]
am 837b9fb8: am 816c9e0e: Merge "libgui/SurfaceFlinger: Add getConsumerName"

* commit '837b9fb87b0a8ea8a4ca680952b86e4d759723d0':
  libgui/SurfaceFlinger: Add getConsumerName

9 years agoam 9a9bedc8: (-s ours) am b169b49a: Merge "libgui: Add generation numbers to BufferQueue"
Dan Stoza [Tue, 9 Jun 2015 20:13:52 +0000 (20:13 +0000)]
am 9a9bedc8: (-s ours) am b169b49a: Merge "libgui: Add generation numbers to BufferQueue"

* commit '9a9bedc815c98a55e9fb25107be5b9d74410b8cf':
  libgui: Add generation numbers to BufferQueue

9 years agoam 816c9e0e: Merge "libgui/SurfaceFlinger: Add getConsumerName"
Dan Stoza [Tue, 9 Jun 2015 18:37:09 +0000 (18:37 +0000)]
am 816c9e0e: Merge "libgui/SurfaceFlinger: Add getConsumerName"

* commit '816c9e0eab939322360da972569506ba19fafc74':
  libgui/SurfaceFlinger: Add getConsumerName

9 years agoam b169b49a: Merge "libgui: Add generation numbers to BufferQueue"
Dan Stoza [Tue, 9 Jun 2015 18:37:08 +0000 (18:37 +0000)]
am b169b49a: Merge "libgui: Add generation numbers to BufferQueue"

* commit 'b169b49aecdbf3424f334ac2b22c36a2988a8338':
  libgui: Add generation numbers to BufferQueue

9 years agoMerge "libgui/SurfaceFlinger: Add getConsumerName"
Dan Stoza [Tue, 9 Jun 2015 18:34:10 +0000 (18:34 +0000)]
Merge "libgui/SurfaceFlinger: Add getConsumerName"

9 years agolibgui/SurfaceFlinger: Add getConsumerName
Dan Stoza [Mon, 8 Jun 2015 16:32:50 +0000 (09:32 -0700)]
libgui/SurfaceFlinger: Add getConsumerName

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)

9 years agoMerge "libgui: Add generation numbers to BufferQueue"
Dan Stoza [Tue, 9 Jun 2015 18:23:48 +0000 (18:23 +0000)]
Merge "libgui: Add generation numbers to BufferQueue"

9 years agoam 3d051856: Merge "Add an installd command to link files" into mnc-dev
Narayan Kamath [Tue, 9 Jun 2015 13:01:30 +0000 (13:01 +0000)]
am 3d051856: Merge "Add an installd command to link files" into mnc-dev

* commit '3d0518565a5e704dc8020a96c5bb3a96a093f4cd':
  Add an installd command to link files

9 years agoMerge "Add an installd command to link files" into mnc-dev
Narayan Kamath [Tue, 9 Jun 2015 11:31:01 +0000 (11:31 +0000)]
Merge "Add an installd command to link files" into mnc-dev

9 years agoAdd an installd command to link files
Narayan Kamath [Thu, 4 Jun 2015 12:20:27 +0000 (13:20 +0100)]
Add an installd command to link files

Given a pair of absolute paths {from_path, to_path} , check that
they are both valid apk subpaths (eg. /data/app/package/foo) and
link(2) to_path to from_path. This is required by staged installs,
where we link existing apks and oat files to their staging location.

bug: 20889739
Change-Id: I3b5e3b43677af68be59308121a4409caaa6a72f0

9 years agoIncorporate network diagnostics during a bugreport
Erik Kline [Tue, 9 Jun 2015 08:38:12 +0000 (17:38 +0900)]
Incorporate network diagnostics during a bugreport

Bug: 21449922
Change-Id: I81a3774683c08f5d4ab4ea75bec45d279fb210ec

9 years agoam 037d4ca3: Merge "media: change parameters for OMX_EventOutputRendered" into mnc-dev
Lajos Molnar [Tue, 9 Jun 2015 00:29:41 +0000 (00:29 +0000)]
am 037d4ca3: Merge "media: change parameters for OMX_EventOutputRendered" into mnc-dev

* commit '037d4ca35abbcf40e244a5d09bade6dd8b9b2b0b':
  media: change parameters for OMX_EventOutputRendered

9 years agoMerge "media: change parameters for OMX_EventOutputRendered" into mnc-dev
Lajos Molnar [Tue, 9 Jun 2015 00:04:17 +0000 (00:04 +0000)]
Merge "media: change parameters for OMX_EventOutputRendered" into mnc-dev

9 years agoam 98e67d35: Don\'t corrupt parcel when writeFileDescriptor() fails
Christopher Tate [Mon, 8 Jun 2015 21:32:58 +0000 (21:32 +0000)]
am 98e67d35: Don\'t corrupt parcel when writeFileDescriptor() fails

* commit '98e67d352b8805a868ca0e7c2be3ea830fb7c338':
  Don't corrupt parcel when writeFileDescriptor() fails

9 years agoDon't corrupt parcel when writeFileDescriptor() fails
Christopher Tate [Thu, 4 Jun 2015 01:44:15 +0000 (18:44 -0700)]
Don't corrupt parcel when writeFileDescriptor() fails

We now check for fd-legality before committing binder objects to
the flattened data buffer rather than after.  Previously we would
wind up corrupting the parcel and incurring driver-level errors,
as well as potentially leaking FDs.

Bug 21428802

Change-Id: Ice0d641b3dcc41fb1b8c68ce2e2ebd744c2863a1

9 years agolibgui: Add generation numbers to BufferQueue
Dan Stoza [Tue, 2 Jun 2015 22:45:22 +0000 (15:45 -0700)]
libgui: Add generation numbers to BufferQueue

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)

9 years agoam c6f30bde: libgui/SurfaceFlinger: Add getConsumerName
Dan Stoza [Mon, 8 Jun 2015 17:18:52 +0000 (17:18 +0000)]
am c6f30bde: libgui/SurfaceFlinger: Add getConsumerName

* commit 'c6f30bdee1f634eb90d68cb76efe935b6535a1e8':
  libgui/SurfaceFlinger: Add getConsumerName

9 years agoam 5b36ea44: Merge "Revert "libgui: Add getConsumerName"" into mnc-dev
Dan Stoza [Mon, 8 Jun 2015 17:04:11 +0000 (17:04 +0000)]
am 5b36ea44: Merge "Revert "libgui: Add getConsumerName"" into mnc-dev

* commit '5b36ea44c58f8def561bf37c79d3452b21e2deab':
  Revert "libgui: Add getConsumerName"

9 years agoam 5b23b5bf: Merge "libgui: Add getConsumerName" into mnc-dev
Dan Stoza [Mon, 8 Jun 2015 17:04:10 +0000 (17:04 +0000)]
am 5b23b5bf: Merge "libgui: Add getConsumerName" into mnc-dev

* commit '5b23b5bf45b115d2c91448747ea40b63377d4abd':
  libgui: Add getConsumerName

9 years agolibgui/SurfaceFlinger: Add getConsumerName
Dan Stoza [Mon, 8 Jun 2015 16:32:50 +0000 (09:32 -0700)]
libgui/SurfaceFlinger: Add getConsumerName

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

9 years agoMerge "Revert "libgui: Add getConsumerName"" into mnc-dev
Dan Stoza [Mon, 8 Jun 2015 16:30:14 +0000 (16:30 +0000)]
Merge "Revert "libgui: Add getConsumerName"" into mnc-dev

9 years agoRevert "libgui: Add getConsumerName"
Dan Stoza [Mon, 8 Jun 2015 16:30:08 +0000 (16:30 +0000)]
Revert "libgui: Add getConsumerName"

This reverts commit 107fbe5599016b0e35145a1a00c4f238b63d61e4.

Change-Id: I0c2b0f7c81193b05eb3dd2f5a59f83598434b744

9 years agoMerge "libgui: Add getConsumerName" into mnc-dev
Dan Stoza [Mon, 8 Jun 2015 16:21:03 +0000 (16:21 +0000)]
Merge "libgui: Add getConsumerName" into mnc-dev

9 years agoam 13b16040: Enable more flexible usage of blobs in parcels.
Jeff Brown [Sat, 6 Jun 2015 04:47:56 +0000 (04:47 +0000)]
am 13b16040: Enable more flexible usage of blobs in parcels.

* commit '13b1604018968408bcc5553e1fa5ea9df3e4e009':
  Enable more flexible usage of blobs in parcels.

9 years agomedia: change parameters for OMX_EventOutputRendered
Lajos Molnar [Sat, 6 Jun 2015 00:49:25 +0000 (17:49 -0700)]
media: change parameters for OMX_EventOutputRendered

This allows batching of rendered events.

Bug: 20503131
Change-Id: I3b319317c0434eb225198f8c4bf716edf68079a2

9 years agoEnable more flexible usage of blobs in parcels.
Jeff Brown [Wed, 12 Nov 2014 00:44:25 +0000 (16:44 -0800)]
Enable more flexible usage of blobs in parcels.

Add functions to allow a client to take over the ashmem region
that was transferred so that it can claim it for its own and
reuse it.

Add support for mutable ashmem regions too.

Bug: 21428802
Change-Id: I16eca338cdb99b07d81fc43573d53ce86dbc60c8

9 years agolibgui: Add getConsumerName
Dan Stoza [Fri, 5 Jun 2015 22:01:58 +0000 (15:01 -0700)]
libgui: Add getConsumerName

Adds a getConsumerName method to IGraphicBufferProducer and Surface.
Currently, the name is cached inside of IGBP and is updated on connect
and dequeueBuffer, which should be good enough for most uses.

Bug: 6667401
Change-Id: Ife94bd89023fe7c00bad916932b9a19233fd2290

9 years agoam 9d2c5a7c: Merge "libgui: Add generation numbers to BufferQueue" into mnc-dev
Dan Stoza [Fri, 5 Jun 2015 16:00:13 +0000 (16:00 +0000)]
am 9d2c5a7c: Merge "libgui: Add generation numbers to BufferQueue" into mnc-dev

* commit '9d2c5a7c678bd384df0fb29952cf8943e7b1b160':
  libgui: Add generation numbers to BufferQueue

9 years agoam 17833a1b: SF: Don\'t crop surface damage against viewport
Dan Stoza [Fri, 5 Jun 2015 16:00:12 +0000 (16:00 +0000)]
am 17833a1b: SF: Don\'t crop surface damage against viewport

* commit '17833a1b0d70cd5cea342cadea9fdbbf16748bc6':
  SF: Don't crop surface damage against viewport

9 years agoMerge "libgui: Add generation numbers to BufferQueue" into mnc-dev
Dan Stoza [Fri, 5 Jun 2015 15:38:34 +0000 (15:38 +0000)]
Merge "libgui: Add generation numbers to BufferQueue" into mnc-dev

9 years agoSF: Don't crop surface damage against viewport
Dan Stoza [Fri, 5 Jun 2015 02:40:03 +0000 (19:40 -0700)]
SF: Don't crop surface damage against viewport

Apply the display transform to surface damage, but don't intersect it
with the viewport.

Bug: 21486007
Change-Id: I94e697cea52096a960385d5f3b89609fdcf30a02

9 years agoam 9e6d2ee0: DO NOT MERGE Remove unused ParcelFileDescriptor methods in parcel.
Tim Kilbourn [Thu, 4 Jun 2015 23:07:56 +0000 (23:07 +0000)]
am 9e6d2ee0: DO NOT MERGE Remove unused ParcelFileDescriptor methods in parcel.

* commit '9e6d2ee0302c6f6108488237821958c42ac380a1':
  DO NOT MERGE Remove unused ParcelFileDescriptor methods in parcel.

9 years agoDO NOT MERGE Remove unused ParcelFileDescriptor methods in parcel.
Tim Kilbourn [Wed, 3 Jun 2015 18:25:56 +0000 (11:25 -0700)]
DO NOT MERGE Remove unused ParcelFileDescriptor methods in parcel.

Attempts to replicate Java parceling in native code is fraught with
peril.

Change-Id: I4359036c5dddd1b886d886beef1d060523e53e5f
(cherry picked from commit f47a381001d4d4ce66c2e35aac5b96a26acc0730)

9 years agoam 2139c7fa: Call selinux_status_open() prior to use of selinux_status_updated().
Stephen Smalley [Wed, 3 Jun 2015 21:21:01 +0000 (21:21 +0000)]
am 2139c7fa: Call selinux_status_open() prior to use of selinux_status_updated().

* commit '2139c7fa37e581f6d2f573003afc16fbef700ad1':
  Call selinux_status_open() prior to use of selinux_status_updated().

9 years agoCall selinux_status_open() prior to use of selinux_status_updated().
Stephen Smalley [Wed, 3 Jun 2015 13:25:37 +0000 (09:25 -0400)]
Call selinux_status_open() prior to use of selinux_status_updated().

The selinux_status_*() interfaces require calling selinux_status_open()
first.  Since this was not being called by servicemanager, the
selinux_status_updated() call was always failing and servicemanager
was not reloading service_contexts upon a policy reload.

(cherrypicked from commit bea0746b241d15626cf0a56828efc1d4640dbda7)

Change-Id: I6ac62e114bbca99c5f0999feb918fcde15009274
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
9 years agoam d910f3cf: media: rename VideoGrallocMetadata.hHandle to pHandle
Lajos Molnar [Wed, 3 Jun 2015 18:46:42 +0000 (18:46 +0000)]
am d910f3cf: media: rename VideoGrallocMetadata.hHandle to pHandle

* commit 'd910f3cf78ae878b1b86ead7ca837004c3a25aaa':
  media: rename VideoGrallocMetadata.hHandle to pHandle

9 years agolibgui: Add generation numbers to BufferQueue
Dan Stoza [Tue, 2 Jun 2015 22:45:22 +0000 (15:45 -0700)]
libgui: Add generation numbers to BufferQueue

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

9 years agoam 1170bbe5: am c19fdee3: Merge "Call selinux_status_open() prior to use of selinux_s...
Nick Kralevich [Wed, 3 Jun 2015 13:56:54 +0000 (13:56 +0000)]
am 1170bbe5: am c19fdee3: Merge "Call selinux_status_open() prior to use of selinux_status_updated()."

* commit '1170bbe56a3ebf94a6b25119826b1b57063896d0':
  Call selinux_status_open() prior to use of selinux_status_updated().

9 years agoam c19fdee3: Merge "Call selinux_status_open() prior to use of selinux_status_updated()."
Nick Kralevich [Wed, 3 Jun 2015 13:41:53 +0000 (13:41 +0000)]
am c19fdee3: Merge "Call selinux_status_open() prior to use of selinux_status_updated()."

* commit 'c19fdee38a4715b0d642fc8673687715766307cc':
  Call selinux_status_open() prior to use of selinux_status_updated().

9 years agoMerge "Call selinux_status_open() prior to use of selinux_status_updated()."
Nick Kralevich [Wed, 3 Jun 2015 13:33:36 +0000 (13:33 +0000)]
Merge "Call selinux_status_open() prior to use of selinux_status_updated()."

9 years agoCall selinux_status_open() prior to use of selinux_status_updated().
Stephen Smalley [Wed, 3 Jun 2015 13:25:37 +0000 (09:25 -0400)]
Call selinux_status_open() prior to use of selinux_status_updated().

The selinux_status_*() interfaces require calling selinux_status_open()
first.  Since this was not being called by servicemanager, the
selinux_status_updated() call was always failing and servicemanager
was not reloading service_contexts upon a policy reload.

Change-Id: I6ac62e114bbca99c5f0999feb918fcde15009274
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
9 years agomedia: rename VideoGrallocMetadata.hHandle to pHandle
Lajos Molnar [Wed, 3 Jun 2015 02:43:16 +0000 (19:43 -0700)]
media: rename VideoGrallocMetadata.hHandle to pHandle

This is so that it can be equivalent to the previously named
VideoDecoderOutputMetaData struct.

Bug: 13222807

Change-Id: I9463694f65436a7edb1f6b592efc0a6329232a27

9 years agoam a8c2454d: fix build: media: add back legacy name for VideoGrallocMetadata
Lajos Molnar [Tue, 2 Jun 2015 14:24:21 +0000 (14:24 +0000)]
am a8c2454d: fix build: media: add back legacy name for VideoGrallocMetadata

* commit 'a8c2454d52d3c23bd53b4a172eff8e5f4af30168':
  fix build: media: add back legacy name for VideoGrallocMetadata

9 years agoam da7cbd8c: Merge "media: refine kMetadataBufferTypes" into mnc-dev
Lajos Molnar [Tue, 2 Jun 2015 14:24:14 +0000 (14:24 +0000)]
am da7cbd8c: Merge "media: refine kMetadataBufferTypes" into mnc-dev

* commit 'da7cbd8c7c54c2c93ca7bc49b5218cf99825f9e4':
  media: refine kMetadataBufferTypes

9 years agoam 7e5bb370: Merge "Track camera and flashlight usage in battery stats." into mnc-dev
Ruben Brunk [Tue, 2 Jun 2015 14:23:55 +0000 (14:23 +0000)]
am 7e5bb370: Merge "Track camera and flashlight usage in battery stats." into mnc-dev

* commit '7e5bb3701a313e539447c96ee2b31df62edc79fe':
  Track camera and flashlight usage in battery stats.

9 years agoam 5a31f1ab: Merge "Disregard alleged binder entities beyond parcel bounds" into...
Christopher Tate [Tue, 2 Jun 2015 14:23:27 +0000 (14:23 +0000)]
am 5a31f1ab: Merge "Disregard alleged binder entities beyond parcel bounds" into mnc-dev

* commit '5a31f1abf69eaf4c25a84d53e318c0a716911786':
  Disregard alleged binder entities beyond parcel bounds

9 years agoam 6a04e5fc: libgui: Propagate error by clearing sp<GB>
Dan Stoza [Tue, 2 Jun 2015 14:21:15 +0000 (14:21 +0000)]
am 6a04e5fc: libgui: Propagate error by clearing sp<GB>

* commit '6a04e5fcf67e754b215301fe38a6401db567f4b5':
  libgui: Propagate error by clearing sp<GB>

9 years agofix build: media: add back legacy name for VideoGrallocMetadata
Lajos Molnar [Tue, 2 Jun 2015 04:13:47 +0000 (21:13 -0700)]
fix build: media: add back legacy name for VideoGrallocMetadata

Change-Id: Ie101eb355887072b2ab92f489b86115a40952bd1

9 years agoMerge "media: refine kMetadataBufferTypes" into mnc-dev
Lajos Molnar [Tue, 2 Jun 2015 03:32:00 +0000 (03:32 +0000)]
Merge "media: refine kMetadataBufferTypes" into mnc-dev

9 years agoMerge "Track camera and flashlight usage in battery stats." into mnc-dev
Ruben Brunk [Tue, 2 Jun 2015 01:48:21 +0000 (01:48 +0000)]
Merge "Track camera and flashlight usage in battery stats." into mnc-dev

9 years agoMerge "Disregard alleged binder entities beyond parcel bounds" into mnc-dev
Christopher Tate [Tue, 2 Jun 2015 01:05:46 +0000 (01:05 +0000)]
Merge "Disregard alleged binder entities beyond parcel bounds" into mnc-dev

9 years agoTrack camera and flashlight usage in battery stats.
Ruben Brunk [Wed, 27 May 2015 00:30:11 +0000 (17:30 -0700)]
Track camera and flashlight usage in battery stats.

Bug: 15986092

Change-Id: I272ec070113a0bfc41c637c45a6e1a2ab346e87b

9 years agoam ae892959: am 8980e0cc: Merge "libgui: Propagate error by clearing sp<GB>"
Dan Stoza [Mon, 1 Jun 2015 22:21:41 +0000 (22:21 +0000)]
am ae892959: am 8980e0cc: Merge "libgui: Propagate error by clearing sp<GB>"

* commit 'ae892959e45a93fea665cbb0ac01a99c95f44c10':
  libgui: Propagate error by clearing sp<GB>

9 years agoam 8980e0cc: Merge "libgui: Propagate error by clearing sp<GB>"
Dan Stoza [Mon, 1 Jun 2015 22:09:30 +0000 (22:09 +0000)]
am 8980e0cc: Merge "libgui: Propagate error by clearing sp<GB>"

* commit '8980e0ccd4608adbef0d7c80ead97cec995e269c':
  libgui: Propagate error by clearing sp<GB>

9 years agoMerge "libgui: Propagate error by clearing sp<GB>"
Dan Stoza [Mon, 1 Jun 2015 21:59:20 +0000 (21:59 +0000)]
Merge "libgui: Propagate error by clearing sp<GB>"

9 years agolibgui: Propagate error by clearing sp<GB>
Dan Stoza [Mon, 1 Jun 2015 20:59:15 +0000 (13:59 -0700)]
libgui: Propagate error by clearing sp<GB>

Clears the sp<GraphicBuffer> returned by createGraphicBuffer when there
is an error during unflattening.

Bug: 21498231
Change-Id: I886da4474fc06853cc59188d62044b7d7549126b
(cherry picked from commit 6a04e5fcf67e754b215301fe38a6401db567f4b5)

9 years agolibgui: Propagate error by clearing sp<GB>
Dan Stoza [Mon, 1 Jun 2015 20:59:15 +0000 (13:59 -0700)]
libgui: Propagate error by clearing sp<GB>

Clears the sp<GraphicBuffer> returned by createGraphicBuffer when there
is an error during unflattening.

Bug: 21498231
Change-Id: I886da4474fc06853cc59188d62044b7d7549126b

9 years agoam f6f221aa: Merge "SF: Reduce resync samples without present" into mnc-dev
Dan Stoza [Mon, 1 Jun 2015 18:50:32 +0000 (18:50 +0000)]
am f6f221aa: Merge "SF: Reduce resync samples without present" into mnc-dev

* commit 'f6f221aa98b195addbd512114e14a376dac276d3':
  SF: Reduce resync samples without present

9 years agoam da5a3f40: Merge "libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc" into mnc-dev
Dan Stoza [Mon, 1 Jun 2015 18:50:31 +0000 (18:50 +0000)]
am da5a3f40: Merge "libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc" into mnc-dev

* commit 'da5a3f40a7d64f685433b764f13c67d8ffd5d759':
  libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc

9 years agoMerge branch 'mnc-dev-plus-aosp' of https://googleplex-android.googlesource.com/_dire...
Joe Fernandez [Mon, 1 Jun 2015 18:50:31 +0000 (18:50 +0000)]
Merge branch 'mnc-dev-plus-aosp' of https://googleplex-android.googlesource.com/_direct/platform/frameworks/native into mnc-dev-plus-aosp

9 years agoam 04b00cea: Fix libgui crop matrix test.
Michael Lentine [Mon, 1 Jun 2015 18:49:59 +0000 (18:49 +0000)]
am 04b00cea: Fix libgui crop matrix test.

* commit '04b00cea67b406c4a971b24b9f91e95c754813ed':
  Fix libgui crop matrix test.

9 years agoam 67ff12d9: am cf1edb3f: Merge "Fix libgui crop matrix test."
Dan Stoza [Mon, 1 Jun 2015 18:49:58 +0000 (18:49 +0000)]
am 67ff12d9: am cf1edb3f: Merge "Fix libgui crop matrix test."

* commit '67ff12d9522168120be2bb58eee20e5f39f84d76':
  Fix libgui crop matrix test.

9 years agoam 958e9bbd: am 75145aa2: Merge "SF: Reduce resync samples without present"
Dan Stoza [Mon, 1 Jun 2015 18:43:57 +0000 (18:43 +0000)]
am 958e9bbd: am 75145aa2: Merge "SF: Reduce resync samples without present"

* commit '958e9bbdc6a048da386c62a71adcde5ec8a78cdd':
  SF: Reduce resync samples without present

9 years agoam 2daeb124: am edcfe7c5: Merge "libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc"
Dan Stoza [Mon, 1 Jun 2015 18:43:56 +0000 (18:43 +0000)]
am 2daeb124: am edcfe7c5: Merge "libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc"

* commit '2daeb124818ade7b83deaa9decd1592473ec19f3':
  libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc

9 years agoam 04bb7a9a: am c76683f5: Merge "Check that width and height parameters are small."
Dan Stoza [Mon, 1 Jun 2015 18:43:55 +0000 (18:43 +0000)]
am 04bb7a9a: am c76683f5: Merge "Check that width and height parameters are small."

* commit '04bb7a9a4195de14e11e2ea9a9439b9e43e9f660':
  Check that width and height parameters are small.

9 years agoam cf1edb3f: Merge "Fix libgui crop matrix test."
Dan Stoza [Mon, 1 Jun 2015 18:42:31 +0000 (18:42 +0000)]
am cf1edb3f: Merge "Fix libgui crop matrix test."

* commit 'cf1edb3f3ece597dcf9c3f4ae018374550e8b561':
  Fix libgui crop matrix test.

9 years agoam 75145aa2: Merge "SF: Reduce resync samples without present"
Dan Stoza [Mon, 1 Jun 2015 18:31:20 +0000 (18:31 +0000)]
am 75145aa2: Merge "SF: Reduce resync samples without present"

* commit '75145aa2b77c348bce43c432c17b70f6dcb31c91':
  SF: Reduce resync samples without present

9 years agoMerge "Fix libgui crop matrix test."
Dan Stoza [Mon, 1 Jun 2015 18:31:19 +0000 (18:31 +0000)]
Merge "Fix libgui crop matrix test."

9 years agoam edcfe7c5: Merge "libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc"
Dan Stoza [Mon, 1 Jun 2015 18:31:19 +0000 (18:31 +0000)]
am edcfe7c5: Merge "libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc"

* commit 'edcfe7c513a111890b7bd245cf10fa105e910277':
  libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc

9 years agoam c76683f5: Merge "Check that width and height parameters are small."
Dan Stoza [Mon, 1 Jun 2015 18:31:17 +0000 (18:31 +0000)]
am c76683f5: Merge "Check that width and height parameters are small."

* commit 'c76683f51f6ad1f5493d9af43bf868601f474060':
  Check that width and height parameters are small.

9 years agoFix libgui crop matrix test.
Michael Lentine [Fri, 29 May 2015 23:05:36 +0000 (16:05 -0700)]
Fix libgui crop matrix test.

On devices that have the crop image extension the crop is not applied to the
transform matrix so we have to expect different results in this case.

Change-Id: If62dec1111fb77c9fa2c4332d121665960ce0216
(cherry picked from commit 04b00cea67b406c4a971b24b9f91e95c754813ed)

9 years agoMerge "SF: Reduce resync samples without present"
Dan Stoza [Mon, 1 Jun 2015 18:27:35 +0000 (18:27 +0000)]
Merge "SF: Reduce resync samples without present"

9 years agoSF: Reduce resync samples without present
Dan Stoza [Fri, 29 May 2015 20:00:23 +0000 (13:00 -0700)]
SF: Reduce resync samples without present

Reduces the number of resync samples that DispSync will attempt to
collect without an intervening present from 12 to 4. The former value
was causing excessive power draw for some vendors' implementations, and
reducing it doesn't seem to harm anything.

Bug: 20724456
Change-Id: Ifd6e0490be67756ed001d509a38e8a36953b4618
(cherry picked from commit 9c64757f6530a0510f15f8bd75b1925a3001f83a)

9 years agoMerge "libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc"
Dan Stoza [Mon, 1 Jun 2015 18:25:50 +0000 (18:25 +0000)]
Merge "libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc"

9 years agolibui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc
Dan Stoza [Fri, 29 May 2015 19:48:04 +0000 (12:48 -0700)]
libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc

Applies GRALLOC_USAGE_ALLOC_MASK to the incoming usage bits before
calling alloc on the gralloc module. This filters out the new flag
GRALLOC_USAGE_FOREIGN_BUFFERS, which is used to send a hint to the
producer, but which does not affect the allocation of buffers.

Bug: 19801661
Change-Id: Ia37a3eddba2e97598e50ac3e10877430adfa9247
(cherry picked from commit b8efdc40039e4900ae2c64fbdfa03906c867ec84)

9 years agoMerge "Check that width and height parameters are small."
Dan Stoza [Mon, 1 Jun 2015 18:18:42 +0000 (18:18 +0000)]
Merge "Check that width and height parameters are small."

9 years agoCheck that width and height parameters are small.
Michael Lentine [Fri, 29 May 2015 00:43:06 +0000 (17:43 -0700)]
Check that width and height parameters are small.

The product of width and height should be less than UINT32_MAX (in practice
smaller). Adding the checks prevents overflows when allocating buffers.

Bug: 20726612
Change-Id: I9769edf0688a9bfe69906d49fa0540cadf4c49b0
(cherry picked from commit 1c4537e2e80aa776a61517be8b1605e36432287a)

9 years agoMerge "SF: Reduce resync samples without present" into mnc-dev
Dan Stoza [Mon, 1 Jun 2015 16:30:46 +0000 (16:30 +0000)]
Merge "SF: Reduce resync samples without present" into mnc-dev

9 years agoMerge "libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc" into mnc-dev
Dan Stoza [Mon, 1 Jun 2015 16:30:31 +0000 (16:30 +0000)]
Merge "libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc" into mnc-dev

9 years agomedia: refine kMetadataBufferTypes
Lajos Molnar [Sat, 16 May 2015 03:31:57 +0000 (20:31 -0700)]
media: refine kMetadataBufferTypes

- Fix kMetadataBufferTypeANWBuffer, so that it only relies on
system/core structures. This resolves potential linker issues if
the framework changes.
- Add fence to be passed with kMetadataBufferTypeANWBuffer.
- Add utility structures to access the metadata buffer layouts.

Related-bug: 19614055
Bug: 13222807
Bug: 12386081
Change-Id: I608958fd394b08cc3396bcbd5cdd350b87bc66f3

9 years agoFix libgui crop matrix test.
Michael Lentine [Fri, 29 May 2015 23:05:36 +0000 (16:05 -0700)]
Fix libgui crop matrix test.

On devices that have the crop image extension the crop is not applied to the
transform matrix so we have to expect different results in this case.

Change-Id: If62dec1111fb77c9fa2c4332d121665960ce0216

9 years agoam 1c4537e2: Check that width and height parameters are small.
Michael Lentine [Fri, 29 May 2015 20:51:32 +0000 (20:51 +0000)]
am 1c4537e2: Check that width and height parameters are small.

* commit '1c4537e2e80aa776a61517be8b1605e36432287a':
  Check that width and height parameters are small.

9 years agoam 6e1a2fea: Revert "Modify EGL to disconnect the window when the surface gets destro...
Michael Lentine [Fri, 29 May 2015 20:51:31 +0000 (20:51 +0000)]
am 6e1a2fea: Revert "Modify EGL to disconnect the window when the surface gets destroyed."

* commit '6e1a2fea67006b58e83ebbcc72f7b12f18c49d15':
  Revert "Modify EGL to disconnect the window when the surface gets destroyed."

9 years agoSF: Reduce resync samples without present
Dan Stoza [Fri, 29 May 2015 20:00:23 +0000 (13:00 -0700)]
SF: Reduce resync samples without present

Reduces the number of resync samples that DispSync will attempt to
collect without an intervening present from 12 to 4. The former value
was causing excessive power draw for some vendors' implementations, and
reducing it doesn't seem to harm anything.

Bug: 20724456
Change-Id: Ifd6e0490be67756ed001d509a38e8a36953b4618

9 years agolibui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc
Dan Stoza [Fri, 29 May 2015 19:48:04 +0000 (12:48 -0700)]
libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc

Applies GRALLOC_USAGE_ALLOC_MASK to the incoming usage bits before
calling alloc on the gralloc module. This filters out the new flag
GRALLOC_USAGE_FOREIGN_BUFFERS, which is used to send a hint to the
producer, but which does not affect the allocation of buffers.

Bug: 19801661
Change-Id: Ia37a3eddba2e97598e50ac3e10877430adfa9247

9 years agoCheck that width and height parameters are small.
Michael Lentine [Fri, 29 May 2015 00:43:06 +0000 (17:43 -0700)]
Check that width and height parameters are small.

The product of width and height should be less than UINT32_MAX (in practice
smaller). Adding the checks prevents overflows when allocating buffers.

Bug: 20726612
Change-Id: I9769edf0688a9bfe69906d49fa0540cadf4c49b0

9 years agoRevert "Modify EGL to disconnect the window when the surface gets destroyed."
Michael Lentine [Thu, 28 May 2015 23:48:08 +0000 (16:48 -0700)]
Revert "Modify EGL to disconnect the window when the surface gets destroyed."

This reverts commit 00699fa64197cc72a160d69e1f0003cdd43dc136.

9 years agoam 89301eaf: Fix EGL shim extension injection for GL ES 3 drivers.
Alistair Strachan [Thu, 28 May 2015 23:29:23 +0000 (23:29 +0000)]
am 89301eaf: Fix EGL shim extension injection for GL ES 3 drivers.

* commit '89301eaf214f0da74c5266e7a548899d5f491b50':
  Fix EGL shim extension injection for GL ES 3 drivers.

9 years agoFix EGL shim extension injection for GL ES 3 drivers.
Alistair Strachan [Fri, 22 May 2015 21:10:09 +0000 (14:10 -0700)]
Fix EGL shim extension injection for GL ES 3 drivers.

The Android EGL shim injects GL_EXT_debug_marker into the ES driver
EXTENSIONS string for the OpenGL ES 1.x and 2.0/3.0/3.1 drivers if
the extension is not already provided. This feature is used by
GLES_trace.

In Open GL ES 3.0 it became possible to query an indexed version of
the EXTENSIONS string via GetStringi(). NUM_EXTENSIONS Gets were
also added to the specification (taken from Open GL).

If the shim does not have to inject the extension, then there is no
problem, as glGetString() and glGetStringi() / NUM_EXTENSIONS will
be consistent. However, if the Android EGL shim injects the
extension, NUM_EXTENSIONS and GetStringi() will report one less
extension than is really available.

Consistency between these methods is tested by the dEQP framework
with the dEQP-GLES3.functional.state_query.string.extensions test.
If the driver does not provide GL_EXT_debug_marker, this test
fails.

This change wraps all of the affected entry points so that the
wrapped driver extensions are never visible directly to dEQP,
eliminating the inconsistency.

9 years agoam 2a185c24: am a8702c47: Merge "SurfaceFlinger: Tweak whitespace in DdmConnection"
Dan Stoza [Thu, 28 May 2015 21:56:07 +0000 (21:56 +0000)]
am 2a185c24: am a8702c47: Merge "SurfaceFlinger: Tweak whitespace in DdmConnection"

* commit '2a185c24767c34681f7537a000d533caac5d77a5':
  SurfaceFlinger: Tweak whitespace in DdmConnection

9 years agoam adb3aff0: am 5566d9db: Merge "Bypass surface flinger permission check for calls...
Dan Stoza [Thu, 28 May 2015 21:56:06 +0000 (21:56 +0000)]
am adb3aff0: am 5566d9db: Merge "Bypass surface flinger permission check for calls from system."

* commit 'adb3aff05c8203b483b2469515b54e86ec2f8758':
  Bypass surface flinger permission check for calls from system.

9 years agoam 84a507ae: am 13c04c27: Merge "surfaceflinger: Fix range check for getFormat"
Dan Stoza [Thu, 28 May 2015 21:56:05 +0000 (21:56 +0000)]
am 84a507ae: am 13c04c27: Merge "surfaceflinger: Fix range check for getFormat"

* commit '84a507aeea37753090ce8a34845fef5befca7060':
  surfaceflinger: Fix range check for getFormat

9 years agoam a8702c47: Merge "SurfaceFlinger: Tweak whitespace in DdmConnection"
Dan Stoza [Thu, 28 May 2015 21:40:29 +0000 (21:40 +0000)]
am a8702c47: Merge "SurfaceFlinger: Tweak whitespace in DdmConnection"

* commit 'a8702c4765993f31a70243e4f89c251fe9911cde':
  SurfaceFlinger: Tweak whitespace in DdmConnection

9 years agoam 5566d9db: Merge "Bypass surface flinger permission check for calls from system."
Dan Stoza [Thu, 28 May 2015 21:40:28 +0000 (21:40 +0000)]
am 5566d9db: Merge "Bypass surface flinger permission check for calls from system."

* commit '5566d9db26e656a53ee9a5e87c0af997bb1a10d5':
  Bypass surface flinger permission check for calls from system.