OSDN Git Service

android-x86/frameworks-native.git
9 years agoMerge commit '63e8376d0baf494f9dd7e866d8dedb26ffab2a6b' into merge
Etan Cohen [Tue, 31 Mar 2015 16:21:07 +0000 (09:21 -0700)]
Merge commit '63e8376d0baf494f9dd7e866d8dedb26ffab2a6b' into merge

9 years agoAdd Package Manager feature to enable MIDI support
Mike Lockwood [Fri, 27 Mar 2015 20:21:56 +0000 (13:21 -0700)]
Add Package Manager feature to enable MIDI support

Change-Id: Ia3cc277af24fcb5117a8d119326de0c8e12bbc09

9 years agoMerge "Use EPOLLWAKEUP properly."
Tim Kilbourn [Fri, 27 Mar 2015 16:24:15 +0000 (16:24 +0000)]
Merge "Use EPOLLWAKEUP properly."

9 years agoam 3e785e2e: am 88c52865: am 0faebfb2: Merge "Add trace_event_clock_sync to atrace"
John Reck [Fri, 27 Mar 2015 00:43:31 +0000 (00:43 +0000)]
am 3e785e2e: am 88c52865: am 0faebfb2: Merge "Add trace_event_clock_sync to atrace"

* commit '3e785e2ef93b068630d0ffb5178a5f38cc249a3d':
  Add trace_event_clock_sync to atrace

9 years agoam 88c52865: am 0faebfb2: Merge "Add trace_event_clock_sync to atrace"
John Reck [Fri, 27 Mar 2015 00:28:25 +0000 (00:28 +0000)]
am 88c52865: am 0faebfb2: Merge "Add trace_event_clock_sync to atrace"

* commit '88c52865f37d9b45c2610b4078bc73f392864572':
  Add trace_event_clock_sync to atrace

9 years agoam 0faebfb2: Merge "Add trace_event_clock_sync to atrace"
John Reck [Fri, 27 Mar 2015 00:21:41 +0000 (00:21 +0000)]
am 0faebfb2: Merge "Add trace_event_clock_sync to atrace"

* commit '0faebfb2f5a07939e7264a94fdcebecc4df39873':
  Add trace_event_clock_sync to atrace

9 years agoMerge "Add trace_event_clock_sync to atrace"
John Reck [Fri, 27 Mar 2015 00:13:32 +0000 (00:13 +0000)]
Merge "Add trace_event_clock_sync to atrace"

9 years agoAdd trace_event_clock_sync to atrace
John Reck [Thu, 26 Mar 2015 22:31:35 +0000 (15:31 -0700)]
Add trace_event_clock_sync to atrace

Change-Id: I8adce15210d82df09ff3a39ddd8df617aeb16a42

9 years agoBuild error SensorManager.
Aravind Akella [Thu, 26 Mar 2015 22:58:59 +0000 (15:58 -0700)]
Build error SensorManager.

Remove forward declaration for String8 and inlcude the corresponding header file.

Change-Id: I89a4ea42295dc9bb6db2c304ff725cc1d498cd55

9 years agoMerge "Support restricted mode in SensorService."
Aravind Akella [Thu, 26 Mar 2015 22:17:33 +0000 (22:17 +0000)]
Merge "Support restricted mode in SensorService."

9 years agoUse EPOLLWAKEUP properly.
Tim Kilbourn [Thu, 26 Mar 2015 21:12:42 +0000 (14:12 -0700)]
Use EPOLLWAKEUP properly.

We were trying to use it only when it wasn't supported.

Bug: 19937342
Change-Id: Id35aef9ad84f101f7ada2eb87fb91e5c5e2b3357

9 years agoam da08fc67: am b84a3dde: am bc5aceb1: Merge "Store odex files in oat/<isa>/ directory."
Richard Uhler [Thu, 26 Mar 2015 16:28:29 +0000 (16:28 +0000)]
am da08fc67: am b84a3dde: am bc5aceb1: Merge "Store odex files in oat/<isa>/ directory."

* commit 'da08fc672ff9643ada87a38fb98c7bd604b678ad':
  Store odex files in oat/<isa>/ directory.

9 years agoam b84a3dde: am bc5aceb1: Merge "Store odex files in oat/<isa>/ directory."
Richard Uhler [Thu, 26 Mar 2015 15:11:28 +0000 (15:11 +0000)]
am b84a3dde: am bc5aceb1: Merge "Store odex files in oat/<isa>/ directory."

* commit 'b84a3dde3583c7c8696679ffaad25c334e85e3cb':
  Store odex files in oat/<isa>/ directory.

9 years agoam bc5aceb1: Merge "Store odex files in oat/<isa>/ directory."
Richard Uhler [Thu, 26 Mar 2015 15:04:46 +0000 (15:04 +0000)]
am bc5aceb1: Merge "Store odex files in oat/<isa>/ directory."

* commit 'bc5aceb1f0a68e96dced1d843278b3bf14504f2c':
  Store odex files in oat/<isa>/ directory.

9 years agoMerge "Store odex files in oat/<isa>/ directory."
Richard Uhler [Thu, 26 Mar 2015 14:57:35 +0000 (14:57 +0000)]
Merge "Store odex files in oat/<isa>/ directory."

9 years agoStore odex files in oat/<isa>/ directory.
Richard Uhler [Wed, 18 Mar 2015 19:39:09 +0000 (12:39 -0700)]
Store odex files in oat/<isa>/ directory.

Previously odex files were stored alongside the dex location as:
  dex location: /foo/bar/base.apk
  odex location: /foo/bar/<isa>/base.odex

This changes where odex files are stored, adding an "oat" directory:
  dex location: /foo/bar/base.apk
  odex location: /foo/bar/oat/<isa>/base.odex

See also the corresponding changes in platform/art and platform/build.

Bug: 19550105
Change-Id: I4c6be4f0c41ff175904846db8e360c4af815b265

9 years agoSupport restricted mode in SensorService.
Aravind Akella [Wed, 11 Feb 2015 23:54:35 +0000 (15:54 -0800)]
Support restricted mode in SensorService.

In restricted mode, only CTS tests can register for sensors or call flush() on them. The requests
from other applications will be ignored.

Change-Id: Ieb923df3e0cfe3390fe2d052af776da79589744b

9 years agoam 28c03cca: am c2a5b469: am a527c07b: Merge "Fix mistake using width instead of...
Jesse Hall [Tue, 24 Mar 2015 21:20:24 +0000 (21:20 +0000)]
am 28c03cca: am c2a5b469: am a527c07b: Merge "Fix mistake using width instead of height."

* commit '28c03cca9835957f6e304b18358243b184fa46f8':
  Fix mistake using width instead of height.

9 years agoam c2a5b469: am a527c07b: Merge "Fix mistake using width instead of height."
Jesse Hall [Tue, 24 Mar 2015 21:06:56 +0000 (21:06 +0000)]
am c2a5b469: am a527c07b: Merge "Fix mistake using width instead of height."

* commit 'c2a5b469a311891d8e3025aea0e4b348044dfaeb':
  Fix mistake using width instead of height.

9 years agoam a527c07b: Merge "Fix mistake using width instead of height."
Jesse Hall [Tue, 24 Mar 2015 20:59:51 +0000 (20:59 +0000)]
am a527c07b: Merge "Fix mistake using width instead of height."

* commit 'a527c07b8d078f7da1114b7055f65b479a148729':
  Fix mistake using width instead of height.

9 years agoMerge "Fix mistake using width instead of height."
Jesse Hall [Tue, 24 Mar 2015 20:52:51 +0000 (20:52 +0000)]
Merge "Fix mistake using width instead of height."

9 years agoMerge "binder: add uint64 support to Parcel."
Ronghua Wu [Tue, 24 Mar 2015 16:42:53 +0000 (16:42 +0000)]
Merge "binder: add uint64 support to Parcel."

9 years agoAdd dataSpace to buffer queues; remove old format enums.
Eino-Ville Talvala [Fri, 20 Feb 2015 00:10:43 +0000 (16:10 -0800)]
Add dataSpace to buffer queues; remove old format enums.

- Wire up new dataSpace parameter through buffer queue stack
- Update tests to include the parameter
- Switch eglApi to using dataSpace to indicate sRGB gamma/linear
  difference
- Remove RAW_SENSOR in favor of RAW16
- Remove use of sRGB format enums
- Add default dataspace to buffer queue core
- Add query for default dataspace

Change-Id: I070bd2e7c56506055c419004c29e2e3feac725df

9 years agoSurface: Permit an IProducerListener on connect
Dan Stoza [Tue, 3 Mar 2015 06:12:37 +0000 (22:12 -0800)]
Surface: Permit an IProducerListener on connect

This change allows clients of Surface to provide an IProducerListener
callback object to Surface::connect, which will be passed down to the
underlying IGraphicBufferProducer

Change-Id: I5ea5229bf3a329bf02c6bd20e7247039c75d136b

9 years agoMerge "Report key request message type for unprefixed EME"
Jeff Tinker [Tue, 24 Mar 2015 00:05:38 +0000 (00:05 +0000)]
Merge "Report key request message type for unprefixed EME"

9 years agoam a290b4b9: am b4cf4d7d: am 6dad1713: Merge "Use verify-at-runtime if debug.usejit...
Mathieu Chartier [Mon, 23 Mar 2015 23:24:13 +0000 (23:24 +0000)]
am a290b4b9: am b4cf4d7d: am 6dad1713: Merge "Use verify-at-runtime if debug.usejit is true"

* commit 'a290b4b9121dab04c2989ab88017b8286075914b':
  Use verify-at-runtime if debug.usejit is true

9 years agoFix mistake using width instead of height.
Christopher Ferris [Mon, 23 Mar 2015 21:32:15 +0000 (14:32 -0700)]
Fix mistake using width instead of height.

Found by rodrigo.chiossi@intel.com.

Change-Id: I49d590ed39f6b47ba58a77a75d66b2964ea1cb1d

9 years agoam da3b1e7f: (-s ours) am 23707911: (-s ours) am 701473cf: (-s ours) Merge "DO NOT...
Dan Stoza [Sun, 22 Mar 2015 00:40:38 +0000 (00:40 +0000)]
am da3b1e7f: (-s ours) am 23707911: (-s ours) am 701473cf: (-s ours) Merge "DO NOT MERGE SurfaceFlinger: Stop using IGBC::BufferItem"

* commit 'da3b1e7ff20559ba368a22421c15ffe2cc079386':
  DO NOT MERGE SurfaceFlinger: Stop using IGBC::BufferItem

9 years agoam c6fdc017: (-s ours) am 355d8118: (-s ours) am 7d89f5b6: (-s ours) Merge "DO NOT...
Dan Stoza [Sun, 22 Mar 2015 00:40:37 +0000 (00:40 +0000)]
am c6fdc017: (-s ours) am 355d8118: (-s ours) am 7d89f5b6: (-s ours) Merge "DO NOT MERGE libgui: Prepare for IGBC::BufferItem removal"

* commit 'c6fdc017fe9ea00dfd3817978c169f64b78e6e95':
  DO NOT MERGE libgui: Prepare for IGBC::BufferItem removal

9 years agoam c795dc00: (-s ours) am 1ca558f7: (-s ours) am f44d13e7: (-s ours) Merge "DO NOT...
Dan Stoza [Sun, 22 Mar 2015 00:40:36 +0000 (00:40 +0000)]
am c795dc00: (-s ours) am 1ca558f7: (-s ours) am f44d13e7: (-s ours) Merge "DO NOT MERGE Add dataSpace to buffer queues; remove old format enums."

* commit 'c795dc007f779103a8fae707e135827d185d943b':
  DO NOT MERGE Add dataSpace to buffer queues; remove old format enums.

9 years agoam b4cf4d7d: am 6dad1713: Merge "Use verify-at-runtime if debug.usejit is true"
Mathieu Chartier [Sat, 21 Mar 2015 17:07:45 +0000 (17:07 +0000)]
am b4cf4d7d: am 6dad1713: Merge "Use verify-at-runtime if debug.usejit is true"

* commit 'b4cf4d7d94c54a9fc49329aa891144f87f53602e':
  Use verify-at-runtime if debug.usejit is true

9 years agoam 6dad1713: Merge "Use verify-at-runtime if debug.usejit is true"
Mathieu Chartier [Sat, 21 Mar 2015 15:29:35 +0000 (15:29 +0000)]
am 6dad1713: Merge "Use verify-at-runtime if debug.usejit is true"

* commit '6dad1713040a46ec6e2ca1b0df2cbe4240e9e2e9':
  Use verify-at-runtime if debug.usejit is true

9 years agoMerge "Use verify-at-runtime if debug.usejit is true"
Mathieu Chartier [Sat, 21 Mar 2015 00:14:27 +0000 (00:14 +0000)]
Merge "Use verify-at-runtime if debug.usejit is true"

9 years agoUse verify-at-runtime if debug.usejit is true
Mathieu Chartier [Fri, 20 Mar 2015 22:39:47 +0000 (15:39 -0700)]
Use verify-at-runtime if debug.usejit is true

Bug: 19735273
Change-Id: Ib65b50dbde00184544a1341f351a0fe0ef504d32

9 years agoam 23707911: (-s ours) am 701473cf: (-s ours) Merge "DO NOT MERGE SurfaceFlinger...
Dan Stoza [Fri, 20 Mar 2015 19:13:33 +0000 (19:13 +0000)]
am 23707911: (-s ours) am 701473cf: (-s ours) Merge "DO NOT MERGE SurfaceFlinger: Stop using IGBC::BufferItem"

* commit '237079112d245f8415970bd219cb174dae21ac3b':
  DO NOT MERGE SurfaceFlinger: Stop using IGBC::BufferItem

9 years agoam 355d8118: (-s ours) am 7d89f5b6: (-s ours) Merge "DO NOT MERGE libgui: Prepare...
Dan Stoza [Fri, 20 Mar 2015 19:09:47 +0000 (19:09 +0000)]
am 355d8118: (-s ours) am 7d89f5b6: (-s ours) Merge "DO NOT MERGE libgui: Prepare for IGBC::BufferItem removal"

* commit '355d81184ea6b423e6fa514797e3529b9062c9cd':
  DO NOT MERGE libgui: Prepare for IGBC::BufferItem removal

9 years agoam 701473cf: (-s ours) Merge "DO NOT MERGE SurfaceFlinger: Stop using IGBC::BufferItem"
Dan Stoza [Fri, 20 Mar 2015 19:09:07 +0000 (19:09 +0000)]
am 701473cf: (-s ours) Merge "DO NOT MERGE SurfaceFlinger: Stop using IGBC::BufferItem"

* commit '701473cf9bb1d1da2a0f55d9732d3016e1f33d59':
  DO NOT MERGE SurfaceFlinger: Stop using IGBC::BufferItem

9 years agoMerge "DO NOT MERGE SurfaceFlinger: Stop using IGBC::BufferItem"
Dan Stoza [Fri, 20 Mar 2015 18:56:05 +0000 (18:56 +0000)]
Merge "DO NOT MERGE SurfaceFlinger: Stop using IGBC::BufferItem"

9 years agoam 7d89f5b6: (-s ours) Merge "DO NOT MERGE libgui: Prepare for IGBC::BufferItem removal"
Dan Stoza [Fri, 20 Mar 2015 18:54:28 +0000 (18:54 +0000)]
am 7d89f5b6: (-s ours) Merge "DO NOT MERGE libgui: Prepare for IGBC::BufferItem removal"

* commit '7d89f5b6562da8bb316f04f91dd7cc9fce33d7fd':
  DO NOT MERGE libgui: Prepare for IGBC::BufferItem removal

9 years agoam 1ca558f7: (-s ours) am f44d13e7: (-s ours) Merge "DO NOT MERGE Add dataSpace to...
Dan Stoza [Fri, 20 Mar 2015 18:51:22 +0000 (18:51 +0000)]
am 1ca558f7: (-s ours) am f44d13e7: (-s ours) Merge "DO NOT MERGE Add dataSpace to buffer queues; remove old format enums."

* commit '1ca558f79861f3c652b5b0726532518aa7c92ef1':
  DO NOT MERGE Add dataSpace to buffer queues; remove old format enums.

9 years agoMerge "DO NOT MERGE libgui: Prepare for IGBC::BufferItem removal"
Dan Stoza [Fri, 20 Mar 2015 18:47:47 +0000 (18:47 +0000)]
Merge "DO NOT MERGE libgui: Prepare for IGBC::BufferItem removal"

9 years agoam f44d13e7: (-s ours) Merge "DO NOT MERGE Add dataSpace to buffer queues; remove...
Dan Stoza [Fri, 20 Mar 2015 18:40:55 +0000 (18:40 +0000)]
am f44d13e7: (-s ours) Merge "DO NOT MERGE Add dataSpace to buffer queues; remove old format enums."

* commit 'f44d13e7e574f181750fa37f439ab50cf05ab3df':
  DO NOT MERGE Add dataSpace to buffer queues; remove old format enums.

9 years agoMerge "DO NOT MERGE Add dataSpace to buffer queues; remove old format enums."
Dan Stoza [Fri, 20 Mar 2015 18:36:18 +0000 (18:36 +0000)]
Merge "DO NOT MERGE Add dataSpace to buffer queues; remove old format enums."

9 years agobinder: add uint64 support to Parcel.
Ronghua Wu [Mon, 16 Mar 2015 18:11:07 +0000 (11:11 -0700)]
binder: add uint64 support to Parcel.

Bug: 19620911
Change-Id: Ifce5319e4e35afd344dead67ab7ba1cd399476a3

9 years agoDO NOT MERGE SurfaceFlinger: Stop using IGBC::BufferItem
Dan Stoza [Thu, 12 Mar 2015 22:12:44 +0000 (15:12 -0700)]
DO NOT MERGE SurfaceFlinger: Stop using IGBC::BufferItem

Switches all uses of IGraphicBufferConsumer::BufferItem (and
BufferQueue::BufferItem) to the BufferItem in libgui. Depends on
frameworks/native I699ed0a6837076867ca756b28d1ffb2238f7a0d9.

Cherry pick of I187b3a7d05196b6289596afac8fb9a9d4aebff76

Change-Id: I5bc79fb96b6cba6021af64b20890967aa3b7fcbf

9 years agoDO NOT MERGE libgui: Prepare for IGBC::BufferItem removal
Dan Stoza [Wed, 11 Mar 2015 21:04:22 +0000 (14:04 -0700)]
DO NOT MERGE libgui: Prepare for IGBC::BufferItem removal

Currently, there are two instances of BufferItem: one inside of
IGraphicBufferConsumer, and a standalone one inside of libgui. They
only differ in the name of one of the fields, and we want to remove
the IGBC version. This changes things so that client code may be
incrementally switched over to the libgui version.

This is a squashed commit containing the following changes:
    I64f495105f56cbf5803cea4aa6b072ea29b70cf5
    I1394e693314429ada93427889f10b7b01c948053
    I9c3bc8037fa9438d4d9080b8afb694219ef2f71f
    I699ed0a6837076867ca756b28d1ffb2238f7a0d9
    Iac8425e1241774304a131da2fb9dec6e82922f13

Change-Id: Ic4d51f5df6dbc70b376d13fceba2335b9bae4f3d

9 years agoDO NOT MERGE Add dataSpace to buffer queues; remove old format enums.
Eino-Ville Talvala [Fri, 20 Feb 2015 00:10:43 +0000 (16:10 -0800)]
DO NOT MERGE Add dataSpace to buffer queues; remove old format enums.

- Wire up new dataSpace parameter through buffer queue stack
- Update tests to include the parameter
- Switch eglApi to using dataSpace to indicate sRGB gamma/linear
  difference
- Remove RAW_SENSOR in favor of RAW16
- Remove use of sRGB format enums
- Add default dataspace to buffer queue core
- Add query for default dataspace

Cherry pick of I070bd2e7c56506055c419004c29e2e3feac725df

Change-Id: I461952389c18051176c6b75e664f20ad369f5760

9 years agoam 4b9d0b9b: am f3201498: Merge "dumpstate: add O_CLOEXEC"
Nick Kralevich [Thu, 19 Mar 2015 19:11:11 +0000 (19:11 +0000)]
am 4b9d0b9b: am f3201498: Merge "dumpstate: add O_CLOEXEC"

* commit '4b9d0b9b676afec086bf579015b2f74623b357fd':
  dumpstate: add O_CLOEXEC

9 years agoam f3201498: Merge "dumpstate: add O_CLOEXEC"
Nick Kralevich [Thu, 19 Mar 2015 19:02:53 +0000 (19:02 +0000)]
am f3201498: Merge "dumpstate: add O_CLOEXEC"

* commit 'f320149886ba8ab8849c8b8f3df256e3789f3905':
  dumpstate: add O_CLOEXEC

9 years agoMerge "dumpstate: add O_CLOEXEC"
Nick Kralevich [Thu, 19 Mar 2015 18:48:07 +0000 (18:48 +0000)]
Merge "dumpstate: add O_CLOEXEC"

9 years agodumpstate: add O_CLOEXEC
Nick Kralevich [Thu, 19 Mar 2015 18:30:59 +0000 (11:30 -0700)]
dumpstate: add O_CLOEXEC

Add O_CLOEXEC to various file descriptor calls, to avoid
leaking file descriptors to dumpstate's child processes.

Bug: 18342188
Change-Id: I74c47a98dfddc29c618067ad53d879b98ed1d87a

9 years agolibgui: Fix bad merge in Surface.h
Dan Stoza [Thu, 19 Mar 2015 18:26:45 +0000 (11:26 -0700)]
libgui: Fix bad merge in Surface.h

Fixes a bad merge from AOSP.

Change-Id: Idb69b34787e8f4e76fb64130573168e5fde6a87c

9 years agoam 663eaf42: am ad36432d: Merge "Surface: Permit an IProducerListener on connect"
Dan Stoza [Thu, 19 Mar 2015 18:04:45 +0000 (18:04 +0000)]
am 663eaf42: am ad36432d: Merge "Surface: Permit an IProducerListener on connect"

* commit '663eaf422d325768808b416d66ecd4648bb14799':
  Surface: Permit an IProducerListener on connect

9 years agoam ad36432d: Merge "Surface: Permit an IProducerListener on connect"
Dan Stoza [Thu, 19 Mar 2015 17:56:44 +0000 (17:56 +0000)]
am ad36432d: Merge "Surface: Permit an IProducerListener on connect"

* commit 'ad36432de81c4c88d726680b7c52e8357df98455':
  Surface: Permit an IProducerListener on connect

9 years agoam 42f0ce10: am c1930630: Merge "libgui: Only allow one return from useFenceSync"
Dan Stoza [Thu, 19 Mar 2015 17:54:00 +0000 (17:54 +0000)]
am 42f0ce10: am c1930630: Merge "libgui: Only allow one return from useFenceSync"

* commit '42f0ce10757e9a1dbf9c997fd0db0eee93c15984':
  libgui: Only allow one return from useFenceSync

9 years agoam c1930630: Merge "libgui: Only allow one return from useFenceSync"
Dan Stoza [Thu, 19 Mar 2015 17:49:34 +0000 (17:49 +0000)]
am c1930630: Merge "libgui: Only allow one return from useFenceSync"

* commit 'c193063050e6be193838527fb8bc7a4588bfdc22':
  libgui: Only allow one return from useFenceSync

9 years agoMerge "Surface: Permit an IProducerListener on connect"
Dan Stoza [Thu, 19 Mar 2015 17:45:25 +0000 (17:45 +0000)]
Merge "Surface: Permit an IProducerListener on connect"

9 years agoam 5bebe7e1: am 55466b48: Merge "GLConsumer: Fix unsigned subtraction during crop"
Dan Stoza [Thu, 19 Mar 2015 17:43:55 +0000 (17:43 +0000)]
am 5bebe7e1: am 55466b48: Merge "GLConsumer: Fix unsigned subtraction during crop"

* commit '5bebe7e14d645b02602f0d8a1e19db2f8ebec35d':
  GLConsumer: Fix unsigned subtraction during crop

9 years agoam 55466b48: Merge "GLConsumer: Fix unsigned subtraction during crop"
Dan Stoza [Thu, 19 Mar 2015 17:36:49 +0000 (17:36 +0000)]
am 55466b48: Merge "GLConsumer: Fix unsigned subtraction during crop"

* commit '55466b48504f9a904c54f3cae4fc1a43dec73a6c':
  GLConsumer: Fix unsigned subtraction during crop

9 years agoam e31591ba: am f87d1bcd: Merge "Update maxNumber to be smaller."
Dan Stoza [Thu, 19 Mar 2015 17:36:09 +0000 (17:36 +0000)]
am e31591ba: am f87d1bcd: Merge "Update maxNumber to be smaller."

* commit 'e31591baf0a9d9e269e388fdc707057b11009c95':
  Update maxNumber to be smaller.

9 years agoMerge "libgui: Only allow one return from useFenceSync"
Dan Stoza [Thu, 19 Mar 2015 17:35:56 +0000 (17:35 +0000)]
Merge "libgui: Only allow one return from useFenceSync"

9 years agolibgui: Only allow one return from useFenceSync
Dan Stoza [Fri, 5 Dec 2014 21:43:03 +0000 (13:43 -0800)]
libgui: Only allow one return from useFenceSync

An #ifdef was causing multiple returns in this function, which was
triggering an unreachable code error on some build targets. This
adds an #else to ensure that only one return is exposed in any given
build.

Cherry pick of I9ed7c3e769bc9094ad31d810944227d1d8302886

Change-Id: Ibddc5706159d168031d1805fcce3eedc068296cf

9 years agoam 7ab0d37d: (-s ours) am 3d5efd55: Merge "libgui: Enable -Weverything and -Werror"
Dan Stoza [Thu, 19 Mar 2015 17:32:15 +0000 (17:32 +0000)]
am 7ab0d37d: (-s ours) am 3d5efd55: Merge "libgui: Enable -Weverything and -Werror"

* commit '7ab0d37dbfd9a8777e7c67043c523c6419ed170b':
  libgui: Enable -Weverything and -Werror

9 years agoam f87d1bcd: Merge "Update maxNumber to be smaller."
Dan Stoza [Thu, 19 Mar 2015 17:29:11 +0000 (17:29 +0000)]
am f87d1bcd: Merge "Update maxNumber to be smaller."

* commit 'f87d1bcd65f1889b78a8f5db6526e91216eaeb5d':
  Update maxNumber to be smaller.

9 years agoMerge "GLConsumer: Fix unsigned subtraction during crop"
Dan Stoza [Thu, 19 Mar 2015 17:22:22 +0000 (17:22 +0000)]
Merge "GLConsumer: Fix unsigned subtraction during crop"

9 years agoam 3d5efd55: Merge "libgui: Enable -Weverything and -Werror"
Dan Stoza [Thu, 19 Mar 2015 17:19:28 +0000 (17:19 +0000)]
am 3d5efd55: Merge "libgui: Enable -Weverything and -Werror"

* commit '3d5efd553ea433e81464b0b817b3455716884bb0':
  libgui: Enable -Weverything and -Werror

9 years agoMerge "Update maxNumber to be smaller."
Dan Stoza [Thu, 19 Mar 2015 17:16:14 +0000 (17:16 +0000)]
Merge "Update maxNumber to be smaller."

9 years agoMerge "libgui: Enable -Weverything and -Werror"
Dan Stoza [Thu, 19 Mar 2015 17:06:40 +0000 (17:06 +0000)]
Merge "libgui: Enable -Weverything and -Werror"

9 years agoMerge "libgui: Plumb attach/detach through Surface"
Dan Stoza [Thu, 19 Mar 2015 16:48:30 +0000 (16:48 +0000)]
Merge "libgui: Plumb attach/detach through Surface"

9 years agoSurface: Permit an IProducerListener on connect
Dan Stoza [Tue, 3 Mar 2015 06:12:37 +0000 (22:12 -0800)]
Surface: Permit an IProducerListener on connect

This change allows clients of Surface to provide an IProducerListener
callback object to Surface::connect, which will be passed down to the
underlying IGraphicBufferProducer.

Cherry pick of I5ea5229bf3a329bf02c6bd20e7247039c75d136b

Change-Id: I6f8f52c72654e4cee649721383819bafe378f964

9 years agoGLConsumer: Fix unsigned subtraction during crop
Dan Stoza [Wed, 4 Mar 2015 22:58:02 +0000 (14:58 -0800)]
GLConsumer: Fix unsigned subtraction during crop

Since some variables had been switched from signed to unsigned, there
was a section of code that was guaranteed to be incorrect because it
effectively did 'if (a < b) { c = a - b; }'. This change fixes it.

Cherry pick of I9cdd6c9a0179801addebb5d6dc1fbaddf8f53c62

Bug: 19346631
Change-Id: Id13a46f74c9ae7278463ce22b586f4dc21b5e453

9 years agoUpdate maxNumber to be smaller.
Michael Lentine [Wed, 18 Feb 2015 18:14:18 +0000 (10:14 -0800)]
Update maxNumber to be smaller.

There shouldn't be more than 4096 fds (probably signficantly smaller) and
there shouldn't be more than 4096 ints.

Cherry pick of I3a3e50ee3078a4710e9737114e65afc923ed0573

Bug: 18076253
Change-Id: I82a883572b401f115d252dcd3d00aa7252b49b0e

9 years agolibgui: Enable -Weverything and -Werror
Dan Stoza [Tue, 18 Nov 2014 18:24:03 +0000 (10:24 -0800)]
libgui: Enable -Weverything and -Werror

Enables -Weverything and -Werror, with just a few exceptions for
warnings we can't (or shouldn't need to) work around.

Cherry pick of I034abec27bf4020d84af60d7acc1939c59986dd6 plus a
couple of minor changes to CpuConsumer.cpp to make it work with a
prior change:
    Uncomment CC_LOGV on line 46
    Change C-style cast to static_cast on line 71

Change-Id: Iaec610477ea0122317b0578fb74caf2383d4cf08

9 years agolibgui: Plumb attach/detach through CpuConsumer
Dan Stoza [Mon, 16 Mar 2015 19:58:45 +0000 (12:58 -0700)]
libgui: Plumb attach/detach through CpuConsumer

Adds CpuConsumer::{detachNextBuffer,attachAndReleaseBuffer}, which
can be used to more carefully manage the ownership of GraphicBuffers.

Bug: 19628705
Change-Id: Ia7a7e30da6d81eb2367241998f14988db0afc3bf

9 years agoRevert "libgui: Plumb attach/detach through CpuConsumer"
Dan Stoza [Tue, 17 Mar 2015 15:54:50 +0000 (15:54 +0000)]
Revert "libgui: Plumb attach/detach through CpuConsumer"

This reverts commit 43078e2827211139f0614719c920f3c5bff6c3fa.

Change-Id: Ifef774d9922bb90450384e810e4767b56cc29de3

9 years agoReport key request message type for unprefixed EME
Jeff Tinker [Mon, 16 Mar 2015 20:04:40 +0000 (13:04 -0700)]
Report key request message type for unprefixed EME

bug: 19771299
Change-Id: I0cc790a2c91a9b515e11b36c0a2c81e64c855fe7

9 years agolibgui: Plumb attach/detach through Surface
Dan Stoza [Wed, 11 Mar 2015 18:55:01 +0000 (11:55 -0700)]
libgui: Plumb attach/detach through Surface

Exposes the attachBuffer and detachNextBuffer calls from
IGraphicBufferProducer to the public Surface interface. Also moves
the version of connect that takes a producer callback from protected
to public.

Bug: 19628705
Change-Id: I9ebc3013c4d9c84c4e8ef150c00e03f8af80319e

9 years agolibgui: Plumb attach/detach through CpuConsumer
Dan Stoza [Mon, 16 Mar 2015 19:58:45 +0000 (12:58 -0700)]
libgui: Plumb attach/detach through CpuConsumer

Adds CpuConsumer::{detachNextBuffer,attachAndReleaseBuffer}, which
can be used to more carefully manage the ownership of GraphicBuffers.

Bug: 19628705
Change-Id: Ia7aa1ac59c2f768f2d8a0f35ad23067936a7427c

9 years agolibgui: Remove IGBC::BufferItem
Dan Stoza [Fri, 13 Mar 2015 21:40:34 +0000 (14:40 -0700)]
libgui: Remove IGBC::BufferItem

Removes IGraphicBufferConsumer::BufferItem. Depends on the
following changes:
    I187b3a7d05196b6289596afac8fb9a9d4aebff76
    I0ddd38df37500cfd6b21d1e768ed14e39c5cd9fc

Change-Id: Id1fa56d092188f2cb712768d5d2fc6a9027fb73c

9 years agoMerge "openmax: add OMX_IndexConfigPriority."
Ronghua Wu [Mon, 16 Mar 2015 16:33:10 +0000 (16:33 +0000)]
Merge "openmax: add OMX_IndexConfigPriority."

9 years agoMerge remote-tracking branch 'goog/mirror-m-wireless-internal-release'
Vinit Deshpande [Mon, 16 Mar 2015 08:19:53 +0000 (01:19 -0700)]
Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release'

9 years agoam 5e44f932: am b6b81d6a: Merge "[MIPS] Fix mips32r1 build"
Jesse Hall [Sun, 15 Mar 2015 22:34:00 +0000 (22:34 +0000)]
am 5e44f932: am b6b81d6a: Merge "[MIPS] Fix mips32r1 build"

* commit '5e44f932a28ebecaefed942224efa0b0d4bf36c5':
  [MIPS] Fix mips32r1 build

9 years agoam b6b81d6a: Merge "[MIPS] Fix mips32r1 build"
Jesse Hall [Sun, 15 Mar 2015 15:44:32 +0000 (15:44 +0000)]
am b6b81d6a: Merge "[MIPS] Fix mips32r1 build"

* commit 'b6b81d6acd6949a731308666ac211864f824ab50':
  [MIPS] Fix mips32r1 build

9 years agoMerge "[MIPS] Fix mips32r1 build"
Jesse Hall [Sun, 15 Mar 2015 02:41:04 +0000 (02:41 +0000)]
Merge "[MIPS] Fix mips32r1 build"

9 years agoMerge "libgui: Fix infinite recursion"
Dan Stoza [Fri, 13 Mar 2015 22:47:45 +0000 (22:47 +0000)]
Merge "libgui: Fix infinite recursion"

9 years agolibgui: Fix infinite recursion
Dan Stoza [Fri, 13 Mar 2015 22:44:59 +0000 (15:44 -0700)]
libgui: Fix infinite recursion

One of the overloads of BufferQueueConsumer::acquireBuffer was
calling itself infinitely instead of calling the other overload.
This fixes that issue.

Bug: 19733425
Change-Id: Iac8425e1241774304a131da2fb9dec6e82922f13

9 years agoMerge "SurfaceFlinger: Stop using IGBC::BufferItem"
Dan Stoza [Fri, 13 Mar 2015 21:50:59 +0000 (21:50 +0000)]
Merge "SurfaceFlinger: Stop using IGBC::BufferItem"

9 years agoMerge "libgui: Prepare for IGBC::BufferItem removal"
Dan Stoza [Fri, 13 Mar 2015 19:28:08 +0000 (19:28 +0000)]
Merge "libgui: Prepare for IGBC::BufferItem removal"

9 years agoMerge "libgui: Add a BufferItem overload to IGBC::acquire"
Dan Stoza [Fri, 13 Mar 2015 17:19:44 +0000 (17:19 +0000)]
Merge "libgui: Add a BufferItem overload to IGBC::acquire"

9 years agoMerge "libgui: Add BufferItem(IGBC::BufferItem)"
Dan Stoza [Fri, 13 Mar 2015 15:42:33 +0000 (15:42 +0000)]
Merge "libgui: Add BufferItem(IGBC::BufferItem)"

9 years agoMerge "libgui: Add a union to BufferItem for refactoring"
Dan Stoza [Fri, 13 Mar 2015 15:41:46 +0000 (15:41 +0000)]
Merge "libgui: Add a union to BufferItem for refactoring"

9 years agoSurfaceFlinger: Stop using IGBC::BufferItem
Dan Stoza [Thu, 12 Mar 2015 22:12:44 +0000 (15:12 -0700)]
SurfaceFlinger: Stop using IGBC::BufferItem

Switches all uses of IGraphicBufferConsumer::BufferItem (and
BufferQueue::BufferItem) to the BufferItem in libgui. Depends on
frameworks/native I699ed0a6837076867ca756b28d1ffb2238f7a0d9.

Change-Id: I187b3a7d05196b6289596afac8fb9a9d4aebff76

9 years agolibgui: Prepare for IGBC::BufferItem removal
Dan Stoza [Thu, 12 Mar 2015 20:58:47 +0000 (13:58 -0700)]
libgui: Prepare for IGBC::BufferItem removal

Switches some dependencies from IGraphicBufferConsumer::BufferItem to
android::BufferItem and adds some methods to facilitate incrementally
changing client code to do the same.

Change-Id: I699ed0a6837076867ca756b28d1ffb2238f7a0d9

9 years agoopenmax: add OMX_IndexConfigPriority.
Ronghua Wu [Mon, 9 Mar 2015 23:27:55 +0000 (16:27 -0700)]
openmax: add OMX_IndexConfigPriority.

Bug: 19620911
Change-Id: I776c1537e5fd88052609cab66d60905f7e30400a

9 years agolibgui: Add a BufferItem overload to IGBC::acquire
Dan Stoza [Wed, 11 Mar 2015 23:38:47 +0000 (16:38 -0700)]
libgui: Add a BufferItem overload to IGBC::acquire

Adds an overload of IGraphicBufferConsumer::acquireBuffer which takes
an android::BufferItem instead of an IGBC::BufferItem.

Change-Id: I9c3bc8037fa9438d4d9080b8afb694219ef2f71f

9 years agolibgui: Add BufferItem(IGBC::BufferItem)
Dan Stoza [Wed, 11 Mar 2015 22:35:39 +0000 (15:35 -0700)]
libgui: Add BufferItem(IGBC::BufferItem)

Add a constructor for building a BufferItem from an
IGraphicBufferConsumer::BufferItem.

Change-Id: I1394e693314429ada93427889f10b7b01c948053

9 years agolibgui: Add a union to BufferItem for refactoring
Dan Stoza [Wed, 11 Mar 2015 21:04:22 +0000 (14:04 -0700)]
libgui: Add a union to BufferItem for refactoring

Currently, there are two instances of BufferItem: one inside of
IGraphicBufferConsumer, and a standalone one inside of libgui. They
only differ in the name of one of the fields, so this change modifies
the one inside of libgui to have a union of both names so that the
one inside of IGBC can eventually be refactored away.

Change-Id: I64f495105f56cbf5803cea4aa6b072ea29b70cf5

9 years agoam 53cab935: am 1fc747d2: am 5a25a63d: Merge "Installd: Pass debuggable flag"
Andreas Gampe [Tue, 10 Mar 2015 22:04:23 +0000 (22:04 +0000)]
am 53cab935: am 1fc747d2: am 5a25a63d: Merge "Installd: Pass debuggable flag"

* commit '53cab935d54b6ca013c6a236e09d9160a6aa7f54':
  Installd: Pass debuggable flag

9 years agoam 105aa28e: am b275b4dc: am 3949f664: Merge "SurfaceFlinger: Fix null pointer exception"
Dan Stoza [Tue, 10 Mar 2015 15:48:55 +0000 (15:48 +0000)]
am 105aa28e: am b275b4dc: am 3949f664: Merge "SurfaceFlinger: Fix null pointer exception"

* commit '105aa28eeff9d31eebc7645aecb7630918a09b2a':
  SurfaceFlinger: Fix null pointer exception

9 years agoam 1fc747d2: am 5a25a63d: Merge "Installd: Pass debuggable flag"
Andreas Gampe [Tue, 10 Mar 2015 15:07:45 +0000 (15:07 +0000)]
am 1fc747d2: am 5a25a63d: Merge "Installd: Pass debuggable flag"

* commit '1fc747d20c1a390e1de3d482d2eafde6dc7e6236':
  Installd: Pass debuggable flag