OSDN Git Service

android-x86/frameworks-native.git
8 years agoMerge "libvulkan: Don\'t try to load compressed/unaligned libraries from APK" into...
Jesse Hall [Fri, 20 May 2016 14:06:31 +0000 (14:06 +0000)]
Merge "libvulkan: Don\'t try to load compressed/unaligned libraries from APK" into nyc-dev
am: b59de7fa32

* commit 'b59de7fa32b0bcaf52d00290d075d8e9c8f2dd2b':
  libvulkan: Don't try to load compressed/unaligned libraries from APK

Change-Id: I046e14ca7462635672f12f9388123c2ec6dea826

8 years agoMerge "libvulkan: Don't try to load compressed/unaligned libraries from APK" into...
Jesse Hall [Fri, 20 May 2016 13:58:01 +0000 (13:58 +0000)]
Merge "libvulkan: Don't try to load compressed/unaligned libraries from APK" into nyc-dev

8 years agoFix the DUMPSYS skip.
Wei Liu [Fri, 20 May 2016 05:42:01 +0000 (05:42 +0000)]
Fix the DUMPSYS skip.
am: 34222565fc

* commit '34222565fc9cf167d8ebe6068a9695f4b0b0f1b0':
  Fix the DUMPSYS skip.

Change-Id: I0ea7926024cec428785687582a81326a750ca669

8 years agoFix the DUMPSYS skip.
Wei Liu [Thu, 19 May 2016 20:59:01 +0000 (13:59 -0700)]
Fix the DUMPSYS skip.

b/28869921

Change-Id: Idc108b2d3cfd237f459467a3c399a0ba5e248d24

8 years agolibvulkan: Don't try to load compressed/unaligned libraries from APK
Jesse Hall [Thu, 19 May 2016 17:58:35 +0000 (10:58 -0700)]
libvulkan: Don't try to load compressed/unaligned libraries from APK

Bug: 28825642
Change-Id: I46ea3a54010cccf9e23696a4aff52a42a31d92b1

8 years agoMerge "vulkan: fix double dlopen for layer libraries" into nyc-dev
Chia-I Wu [Wed, 18 May 2016 23:05:22 +0000 (23:05 +0000)]
Merge "vulkan: fix double dlopen for layer libraries" into nyc-dev
am: 79994146e1

* commit '79994146e18fefe37550111c5703c6a6859644d6':
  vulkan: fix double dlopen for layer libraries

Change-Id: If4e42ce9d3ead2a746ab54def62ed334e7e57010

8 years agoMerge "vulkan: fix double dlopen for layer libraries" into nyc-dev
Chia-I Wu [Wed, 18 May 2016 22:47:45 +0000 (22:47 +0000)]
Merge "vulkan: fix double dlopen for layer libraries" into nyc-dev

8 years agoMerge "Make bugreport_dir a common variable." into nyc-mr1-dev
TreeHugger Robot [Wed, 18 May 2016 21:22:26 +0000 (21:22 +0000)]
Merge "Make bugreport_dir a common variable." into nyc-mr1-dev

8 years agoMerge "Preserve parameters to getProcAddress functions" into nyc-dev
Mike Stroyan [Wed, 18 May 2016 18:18:10 +0000 (18:18 +0000)]
Merge "Preserve parameters to getProcAddress functions" into nyc-dev
am: accafc69f5

* commit 'accafc69f50aeeb57615e14ff0b787ea322a0627':
  Preserve parameters to getProcAddress functions

Change-Id: I1610c9053c3c710be0914d74b8a5e22c5218f525

8 years agoMerge "SF: Fix arbitrary rotation with inverse display transform" into nyc-dev
Pablo Ceballos [Wed, 18 May 2016 18:09:31 +0000 (18:09 +0000)]
Merge "SF: Fix arbitrary rotation with inverse display transform" into nyc-dev
am: 885ac76b90

* commit '885ac76b90e2f3e5cfaec7bbc8ff2e1de8d62435':
  SF: Fix arbitrary rotation with inverse display transform

Change-Id: Idceb5782ac8e71e7f4e4833946a32b85df59fc69

8 years agoHWC2: Set composition type before setting buffer
Dan Stoza [Wed, 18 May 2016 18:09:30 +0000 (18:09 +0000)]
HWC2: Set composition type before setting buffer
am: 0f67b3f01f

* commit '0f67b3f01fc74bbd8cf4be24fce4a1e42f102282':
  HWC2: Set composition type before setting buffer

Change-Id: I41f3215b2950b55d3a86b3cb01c12056371b3802

8 years agoMerge "Preserve parameters to getProcAddress functions" into nyc-dev
Mike Stroyan [Wed, 18 May 2016 18:07:00 +0000 (18:07 +0000)]
Merge "Preserve parameters to getProcAddress functions" into nyc-dev

8 years agoMerge "SF: Fix arbitrary rotation with inverse display transform" into nyc-dev
Pablo Ceballos [Wed, 18 May 2016 17:59:02 +0000 (17:59 +0000)]
Merge "SF: Fix arbitrary rotation with inverse display transform" into nyc-dev

8 years agoMake bugreport_dir a common variable.
Felipe Leme [Wed, 18 May 2016 16:27:16 +0000 (09:27 -0700)]
Make bugreport_dir a common variable.

Recently, new functions were added to dump specific files, and each of
them was requiring a file location, which was polluting main() with
variables specific to each function.

BUG: 28430346
BUG: 28640932
Change-Id: I90f044a2adb961e3038145dfd635cd3ed0042e34

8 years agoAdd fingerprint sensor navigation keys.
Jim Miller [Wed, 18 May 2016 01:10:24 +0000 (18:10 -0700)]
Add fingerprint sensor navigation keys.

Change-Id: If27d1170ede8bf3124644d47d90384313137bb18

Allow fingerprint navigation keys to be remapped by device rotation.

Change-Id: Ibfd827504e8c9aa6895bdca79eeb13be2784d5fe

8 years agovulkan: fix double dlopen for layer libraries
Chia-I Wu [Wed, 18 May 2016 00:50:15 +0000 (08:50 +0800)]
vulkan: fix double dlopen for layer libraries

Bug: 28826014
Change-Id: I10693426f987e63bb490ac8d1f4445ce2d195d8d

8 years agoSF: Fix arbitrary rotation with inverse display transform
Pablo Ceballos [Tue, 17 May 2016 20:34:45 +0000 (13:34 -0700)]
SF: Fix arbitrary rotation with inverse display transform

Bug 28043535

Change-Id: I8b939e17f91cf7e5b617bbcceb9df4efcc9d0161

8 years agoPreserve parameters to getProcAddress functions
Mike Stroyan [Tue, 17 May 2016 20:03:49 +0000 (14:03 -0600)]
Preserve parameters to getProcAddress functions

The contents of register r0 parameter were overwritten after commit
4690754. That used an "r" register to hold larger offsets, but doing
that overwrote r0 before it was passed on to the next call.
Applying the offset as two parts allows the total largest offset of
3588+1020 to be reached without using a register to hold that value.
Use an "addne" instruction to add the _api offset of up to 1020 within
the extensions array.
Use a "ldrne" offset to add the offset to the start of the extensions
array.

Bug: 26541117
Change-Id: Ie19e4aa584c9fa6fdec4de18e858777ac59d8dbd

8 years agoHWC2: Set composition type before setting buffer
Dan Stoza [Tue, 17 May 2016 17:48:38 +0000 (10:48 -0700)]
HWC2: Set composition type before setting buffer

SurfaceFlinger was incorrectly setting the buffer handle before
setting the composition type. This led to cases where the layer was
initially marked as Invalid or Client, allowing HWC2 to ignore the
buffer handle, even though the layer was later changed to Device
before presentation.

Bug: 28814745
Change-Id: I41189495dcb254f04e6b2b329c044301c5cff97c

8 years agoMerge "dumpstate: convert sprintfs to snprintfs" into nyc-dev
Nick Kralevich [Mon, 16 May 2016 17:18:19 +0000 (17:18 +0000)]
Merge "dumpstate: convert sprintfs to snprintfs" into nyc-dev
am: 853f8f9c0b

* commit '853f8f9c0b95120731459c1f7567af69ce457fe0':
  dumpstate: convert sprintfs to snprintfs

Change-Id: I62360c6f0daec9fa1149e91141e0bb5f5a09c2d2

8 years agoMerge "dumpstate: convert sprintfs to snprintfs" into nyc-dev
TreeHugger Robot [Mon, 16 May 2016 17:12:56 +0000 (17:12 +0000)]
Merge "dumpstate: convert sprintfs to snprintfs" into nyc-dev

8 years agodumpstate: convert sprintfs to snprintfs
Nick Kralevich [Sat, 14 May 2016 23:47:44 +0000 (16:47 -0700)]
dumpstate: convert sprintfs to snprintfs

Bug: 28731007
Change-Id: Icfa4d6dfaf69e989ec785146a6bde1afb6a6f345

8 years agovulkan: check flags for early debug report callbacks
Chia-I Wu [Sat, 14 May 2016 07:29:17 +0000 (07:29 +0000)]
vulkan: check flags for early debug report callbacks
am: ede02ac245

* commit 'ede02ac245b5f2aa1139d6cb0e2dc7c0f8f290d2':
  vulkan: check flags for early debug report callbacks

Change-Id: I5b1641339d64bafde62264a224b752caaa404d68

8 years agovulkan: check flags for early debug report callbacks
Chia-I Wu [Fri, 13 May 2016 02:45:59 +0000 (10:45 +0800)]
vulkan: check flags for early debug report callbacks

We have a different path to invoke early (that is, vkCreateInstance) debug
report callbacks.  Check for "flags" in this path as well.

Bug: 28753666
Change-Id: I49b5f2920b38ffdf69036f352166ae3b0aca62c5

8 years agolibvulkan: Load layer libraries into the app namespace
Jesse Hall [Thu, 12 May 2016 21:23:31 +0000 (21:23 +0000)]
libvulkan: Load layer libraries into the app namespace
am: 40c07a1d00

* commit '40c07a1d002561fc8db987ec30d890b041fb6336':
  libvulkan: Load layer libraries into the app namespace

Change-Id: If91efcb98b45650931bd6a01879378a4e73fcc11

8 years agolibvulkan: Discover layer libraries in entire search path
Jesse Hall [Thu, 12 May 2016 21:22:27 +0000 (21:22 +0000)]
libvulkan: Discover layer libraries in entire search path
am: 1a7eb59c2a

* commit '1a7eb59c2a7907ea4c4925c6d13d66e53fb60339':
  libvulkan: Discover layer libraries in entire search path

Change-Id: I714077f8e4174be74293032a64f31e60c2308d22

8 years agolibvulkan: Load layer libraries into the app namespace
Jesse Hall [Thu, 12 May 2016 05:56:29 +0000 (22:56 -0700)]
libvulkan: Load layer libraries into the app namespace

Bug: 28213888
Change-Id: I79901693c30f0e69730643b424e504a8d3628624

8 years agolibvulkan: Discover layer libraries in entire search path
Jesse Hall [Sun, 1 May 2016 19:04:40 +0000 (21:04 +0200)]
libvulkan: Discover layer libraries in entire search path

Previously we only searched the unpacked native library path for layer
libraries. Now we search all directories in the dynamic linker's
search path, including unpacked libraries in the APK itself.

Bug: 28213888
Change-Id: I37772fd90f705592ae1725c7c8603b0174e6b133

8 years agoMerge "Removing feature managed_users." into nyc-mr1-dev
Ashley Smith [Thu, 12 May 2016 13:55:47 +0000 (13:55 +0000)]
Merge "Removing feature managed_users." into nyc-mr1-dev

8 years agoMerge changes from topic \'vk-debug-report\' into nyc-dev
Chia-I Wu [Thu, 12 May 2016 04:29:29 +0000 (04:29 +0000)]
Merge changes from topic \'vk-debug-report\' into nyc-dev
am: 12cb94a840

* commit '12cb94a840f40b35c0dcd8580366a76e768585c5':
  vulkan: improve vulkan::driver logcat messages
  vulkan: use Logger in vulkan::api
  vulkan: use Logger in the generated code
  vulkan: add DebugReportLogger
  vulkan: make debug report callbacks available in DeviceData
  vulkan: avoid duplicated app messages
  vulkan: constify DebugReportCallbackList::Message
  vulkan: refactor DebugReportCallbackList

Change-Id: I3b7cff23d1675d9185a8089e43265161caf7d297

8 years agoMerge changes from topic 'vk-debug-report' into nyc-dev
Chia-I Wu [Thu, 12 May 2016 04:25:21 +0000 (04:25 +0000)]
Merge changes from topic 'vk-debug-report' into nyc-dev

* changes:
  vulkan: improve vulkan::driver logcat messages
  vulkan: use Logger in vulkan::api
  vulkan: use Logger in the generated code
  vulkan: add DebugReportLogger
  vulkan: make debug report callbacks available in DeviceData
  vulkan: avoid duplicated app messages
  vulkan: constify DebugReportCallbackList::Message
  vulkan: refactor DebugReportCallbackList

8 years agoMerge "Dump the raft logs into the bugreport zip file." into nyc-mr1-dev
Wei Liu [Wed, 11 May 2016 22:45:29 +0000 (22:45 +0000)]
Merge "Dump the raft logs into the bugreport zip file." into nyc-mr1-dev

8 years agoMerge "SF: Apply translations to transparent region" into nyc-dev
Dan Stoza [Wed, 11 May 2016 17:04:54 +0000 (17:04 +0000)]
Merge "SF: Apply translations to transparent region" into nyc-dev
am: df98fb952f

* commit 'df98fb952f5328c3df3d098df39297c44bdaa022':
  SF: Apply translations to transparent region

Change-Id: I868053f63f1a170e9f91ab6410ec5c2ff5ad22d9

8 years agoMerge "SF: Set state modified flag when changing sizes" into nyc-dev
Pablo Ceballos [Wed, 11 May 2016 17:04:54 +0000 (17:04 +0000)]
Merge "SF: Set state modified flag when changing sizes" into nyc-dev
am: 0abac03fc9

* commit '0abac03fc9d415b27e3f93d76859aae5f7c3050f':
  SF: Set state modified flag when changing sizes

Change-Id: I2268d868a7885a1c4b8a1e28af7c837d0ba6e568

8 years agoMerge "SF: Apply translations to transparent region" into nyc-dev
Dan Stoza [Wed, 11 May 2016 17:01:24 +0000 (17:01 +0000)]
Merge "SF: Apply translations to transparent region" into nyc-dev

8 years agoMerge "SF: Set state modified flag when changing sizes" into nyc-dev
Pablo Ceballos [Wed, 11 May 2016 17:00:22 +0000 (17:00 +0000)]
Merge "SF: Set state modified flag when changing sizes" into nyc-dev

8 years agoMerge "Move both CE/DE storage areas to adopted storage." into nyc-dev
Jeff Sharkey [Wed, 11 May 2016 03:47:43 +0000 (03:47 +0000)]
Merge "Move both CE/DE storage areas to adopted storage." into nyc-dev
am: cdea85e9a3

* commit 'cdea85e9a347e9c6d159b191cf1d121ae107f956':
  Move both CE/DE storage areas to adopted storage.

Change-Id: I2ae5c637c28f8580bd796c256c526c16245e9fc2

8 years agoMerge "Search both CE/DE storage when clearing caches." into nyc-dev
Jeff Sharkey [Wed, 11 May 2016 03:47:42 +0000 (03:47 +0000)]
Merge "Search both CE/DE storage when clearing caches." into nyc-dev
am: 128074fcb9

* commit '128074fcb90148b40ed45bba6e650cfc2eb1f1ad':
  Search both CE/DE storage when clearing caches.

Change-Id: I07a7047c059127f6adea20ea457ba9d7c4aed563

8 years agoMerge "Move both CE/DE storage areas to adopted storage." into nyc-dev
Jeff Sharkey [Wed, 11 May 2016 03:41:25 +0000 (03:41 +0000)]
Merge "Move both CE/DE storage areas to adopted storage." into nyc-dev

8 years agoMerge "Search both CE/DE storage when clearing caches." into nyc-dev
Jeff Sharkey [Wed, 11 May 2016 03:39:58 +0000 (03:39 +0000)]
Merge "Search both CE/DE storage when clearing caches." into nyc-dev

8 years agoSF: Set state modified flag when changing sizes
Pablo Ceballos [Wed, 11 May 2016 00:15:24 +0000 (17:15 -0700)]
SF: Set state modified flag when changing sizes

The BufferRejecter updates the Layer state when it gets the first
buffer of the new size after a size change has occurred. When this
happens make sure to set the state modified flag.

Bug 27780983

Change-Id: Id8c628c40164110e75f8defd68ca895d72ed2e83

8 years agoMove both CE/DE storage areas to adopted storage.
Jeff Sharkey [Tue, 10 May 2016 23:46:39 +0000 (17:46 -0600)]
Move both CE/DE storage areas to adopted storage.

Public APIs now support separate CE/DE storage areas on all devices,
so they both need to be moved together.

Bug: 25861755
Change-Id: Ibe64a0c9ce0ef286adff2b66bfd432d14f1041d0

8 years agoSearch both CE/DE storage when clearing caches.
Jeff Sharkey [Tue, 10 May 2016 23:21:13 +0000 (17:21 -0600)]
Search both CE/DE storage when clearing caches.

Now that we have two data storage locations, we need to scan them
both when freeing up disk space.  Clean up logic to use new
get_known_users() API.

Bug: 26056125
Change-Id: Ic05c0022d6f5eb438967b69402b1900678f3858b

8 years agoSF: Apply translations to transparent region
Dan Stoza [Tue, 10 May 2016 23:19:53 +0000 (16:19 -0700)]
SF: Apply translations to transparent region

Correctly applies translation-only transforms to the transparent
region so that it aligns with the layer bounds in screen space.

Bug: 28220791
Change-Id: If9137b873f4b89890127671d8c45745e079f1cbc

8 years agoRemoving feature managed_users.
Ashley Smith [Mon, 18 Apr 2016 16:08:38 +0000 (12:08 -0400)]
Removing feature managed_users.

Wear is not supporting a work profile (or multiple profiles)
for this release.

Bug: 27409742
Change-Id: If5398be6698f5c05ce8c0e0210a607e531f646bf

8 years agoCorrectly handle dup() failure in Parcel::readNativeHandle am: 1de7966c72 am: 275c9f6...
Marco Nelissen [Mon, 9 May 2016 21:43:33 +0000 (21:43 +0000)]
Correctly handle dup() failure in Parcel::readNativeHandle am: 1de7966c72 am: 275c9f60f9 am: 853702ce3d am: 775f2e6dbf am: 82afbe2258 am: c2c470c700 am: 56dea28189 am: bca20d8376 am: a8244873a8 am: 93bf31f54d am: f91c66a9a8
am: fb6342d2bb

* commit 'fb6342d2bbf0f5e324ea1685a0b3cfc4af648ee7':
  Correctly handle dup() failure in Parcel::readNativeHandle

Change-Id: I0c9e0506c4e8c55234373b1158428b122f4fcb6f

8 years agoCorrectly handle dup() failure in Parcel::readNativeHandle am: 1de7966c72 am: 275c9f6...
Marco Nelissen [Mon, 9 May 2016 21:38:19 +0000 (21:38 +0000)]
Correctly handle dup() failure in Parcel::readNativeHandle am: 1de7966c72 am: 275c9f60f9 am: 853702ce3d am: 775f2e6dbf am: 82afbe2258 am: c2c470c700 am: 56dea28189 am: bca20d8376 am: a8244873a8 am: 93bf31f54d
am: f91c66a9a8

* commit 'f91c66a9a889f0ed851953dd0c1b2ff70e622dda':
  Correctly handle dup() failure in Parcel::readNativeHandle

Change-Id: Ib4a4fe7d4ca8291fb82fcbbd91c3a0803a1e1b30

8 years agoCorrectly handle dup() failure in Parcel::readNativeHandle am: 1de7966c72 am: 275c9f6...
Marco Nelissen [Mon, 9 May 2016 21:32:52 +0000 (21:32 +0000)]
Correctly handle dup() failure in Parcel::readNativeHandle am: 1de7966c72 am: 275c9f60f9 am: 853702ce3d am: 775f2e6dbf am: 82afbe2258 am: c2c470c700 am: 56dea28189 am: bca20d8376 am: a8244873a8
am: 93bf31f54d

* commit '93bf31f54d56617baf0192a451f2269ad78e6c49':
  Correctly handle dup() failure in Parcel::readNativeHandle

Change-Id: I436ae48cf652ac717ea74e2eff8a92359562e413

8 years agoCorrectly handle dup() failure in Parcel::readNativeHandle am: 1de7966c72 am: 275c9f6...
Marco Nelissen [Mon, 9 May 2016 21:27:37 +0000 (21:27 +0000)]
Correctly handle dup() failure in Parcel::readNativeHandle am: 1de7966c72 am: 275c9f60f9 am: 853702ce3d am: 775f2e6dbf am: 82afbe2258 am: c2c470c700 am: 56dea28189 am: bca20d8376
am: a8244873a8

* commit 'a8244873a881f18cf5cea22dc5f566dbe6394f48':
  Correctly handle dup() failure in Parcel::readNativeHandle

Change-Id: I351dad18e1f3b1903553a8cdfacde18c64f3b6d4

8 years agoCorrectly handle dup() failure in Parcel::readNativeHandle am: 1de7966c72 am: 275c9f6...
Marco Nelissen [Mon, 9 May 2016 21:22:14 +0000 (21:22 +0000)]
Correctly handle dup() failure in Parcel::readNativeHandle am: 1de7966c72 am: 275c9f60f9 am: 853702ce3d am: 775f2e6dbf am: 82afbe2258 am: c2c470c700 am: 56dea28189
am: bca20d8376

* commit 'bca20d8376708da7ed835e71442ab52197d1e9c0':
  Correctly handle dup() failure in Parcel::readNativeHandle

Change-Id: Ia0845cc9f58fcb2cca204118cbaff6e251ed0b8e

8 years agoCorrectly handle dup() failure in Parcel::readNativeHandle am: 1de7966c72 am: 275c9f6...
Marco Nelissen [Mon, 9 May 2016 21:16:30 +0000 (21:16 +0000)]
Correctly handle dup() failure in Parcel::readNativeHandle am: 1de7966c72 am: 275c9f60f9 am: 853702ce3d am: 775f2e6dbf am: 82afbe2258 am: c2c470c700
am: 56dea28189

* commit '56dea28189ff0894d24ebb63650ad5159031549c':
  Correctly handle dup() failure in Parcel::readNativeHandle

Change-Id: I283fd9ad78ddb434d831adaef58db22a57b335f6

8 years agoCorrectly handle dup() failure in Parcel::readNativeHandle am: 1de7966c72 am: 275c9f6...
Marco Nelissen [Mon, 9 May 2016 21:11:03 +0000 (21:11 +0000)]
Correctly handle dup() failure in Parcel::readNativeHandle am: 1de7966c72 am: 275c9f60f9 am: 853702ce3d am: 775f2e6dbf am: 82afbe2258
am: c2c470c700

* commit 'c2c470c700a4e0fbbcd5b99da144f02cee7b9b3e':
  Correctly handle dup() failure in Parcel::readNativeHandle

Change-Id: I68084d5f6bfd4b209c738b94a0f31fe9db113d9f

8 years agoCorrectly handle dup() failure in Parcel::readNativeHandle am: 1de7966c72 am: 275c9f6...
Marco Nelissen [Mon, 9 May 2016 21:05:18 +0000 (21:05 +0000)]
Correctly handle dup() failure in Parcel::readNativeHandle am: 1de7966c72 am: 275c9f60f9 am: 853702ce3d am: 775f2e6dbf
am: 82afbe2258

* commit '82afbe2258c5c5e18ea6e9496d590cff177e67d4':
  Correctly handle dup() failure in Parcel::readNativeHandle

Change-Id: I2c52991c2e6b1c5ef2eebbc4649b36c30dd9120d

8 years agoCorrectly handle dup() failure in Parcel::readNativeHandle am: 1de7966c72 am: 275c9f6...
Marco Nelissen [Mon, 9 May 2016 20:59:50 +0000 (20:59 +0000)]
Correctly handle dup() failure in Parcel::readNativeHandle am: 1de7966c72 am: 275c9f60f9 am: 853702ce3d
am: 775f2e6dbf

* commit '775f2e6dbf757d1b1853337c19bf15f15a127e31':
  Correctly handle dup() failure in Parcel::readNativeHandle

Change-Id: Ibfc37203a33c603df365ed9cbb85632d34acafbd

8 years agoCorrectly handle dup() failure in Parcel::readNativeHandle am: 1de7966c72 am: 275c9f60f9
Marco Nelissen [Mon, 9 May 2016 20:54:25 +0000 (20:54 +0000)]
Correctly handle dup() failure in Parcel::readNativeHandle am: 1de7966c72 am: 275c9f60f9
am: 853702ce3d

* commit '853702ce3d1ba5e45ce58f332ed1d40008a44375':
  Correctly handle dup() failure in Parcel::readNativeHandle

Change-Id: I2b8f6070ecc873d67be5a4c72ca870606af93a3d

8 years agoCorrectly handle dup() failure in Parcel::readNativeHandle am: 1de7966c72
Marco Nelissen [Mon, 9 May 2016 20:48:32 +0000 (20:48 +0000)]
Correctly handle dup() failure in Parcel::readNativeHandle am: 1de7966c72
am: 275c9f60f9

* commit '275c9f60f94780bd686eca9750ec41cc1fafa333':
  Correctly handle dup() failure in Parcel::readNativeHandle

Change-Id: I6516dea7eac82d06e1ffd1d269dbb6415fece948

8 years agoCorrectly handle dup() failure in Parcel::readNativeHandle
Marco Nelissen [Mon, 9 May 2016 20:43:16 +0000 (20:43 +0000)]
Correctly handle dup() failure in Parcel::readNativeHandle
am: 1de7966c72

* commit '1de7966c72981aebc3c7f9978ab129678ac89258':
  Correctly handle dup() failure in Parcel::readNativeHandle

Change-Id: Ie043622a17b241c489429273d369e9a478b7ebcc

8 years agoDump the raft logs into the bugreport zip file.
Wei Liu [Wed, 27 Apr 2016 23:18:17 +0000 (16:18 -0700)]
Dump the raft logs into the bugreport zip file.

b/28430346

Change-Id: I3821dad5d33cdb38234f0ee6768f7d24159a4283

8 years agoMerge "DO NOT MERGE ANYWHERE Add AOSP Geomag and Game Rotation, and Gravity" into...
Peng Xu [Mon, 9 May 2016 13:00:06 +0000 (13:00 +0000)]
Merge "DO NOT MERGE ANYWHERE Add AOSP Geomag and Game Rotation, and Gravity" into cw-e-dev am: dd9012bf09  -s ours am: d2ebf37473  -s ours
am: f96fff5015  -s ours

* commit 'f96fff5015f6823c9fde7fa603bb58ee05c5c242':
  DO NOT MERGE ANYWHERE Add AOSP Geomag and Game Rotation, and Gravity

Change-Id: I6d21d4af2974d71cbe15049424ae6f0837e1b299

8 years agoMerge "DO NOT MERGE ANYWHERE Add AOSP Geomag and Game Rotation, and Gravity" into...
Nick Vaccaro [Mon, 9 May 2016 12:57:41 +0000 (12:57 +0000)]
Merge "DO NOT MERGE ANYWHERE Add AOSP Geomag and Game Rotation, and Gravity" into cw-e-dev am: dd9012bf09  -s ours
am: d2ebf37473  -s ours

* commit 'd2ebf374732d6824fffc69fcffe9395b5a4a842c':
  DO NOT MERGE ANYWHERE Add AOSP Geomag and Game Rotation, and Gravity

Change-Id: I43a30806ab719a017e9966570ba74725137c1cdd

8 years agoMerge "DO NOT MERGE ANYWHERE Add AOSP Geomag and Game Rotation, and Gravity" into...
Peng Xu [Mon, 9 May 2016 12:54:22 +0000 (12:54 +0000)]
Merge "DO NOT MERGE ANYWHERE Add AOSP Geomag and Game Rotation, and Gravity" into cw-e-dev
am: dd9012bf09  -s ours

* commit 'dd9012bf09405e038f2232a16a7748f64777a4aa':
  DO NOT MERGE ANYWHERE Add AOSP Geomag and Game Rotation, and Gravity

Change-Id: I2a795b16c1083b03cad117b4a01dbd32df842636

8 years agoMerge "DO NOT MERGE ANYWHERE Add AOSP Geomag and Game Rotation, and Gravity" into...
Nick Vaccaro [Mon, 9 May 2016 12:48:34 +0000 (12:48 +0000)]
Merge "DO NOT MERGE ANYWHERE Add AOSP Geomag and Game Rotation, and Gravity" into cw-e-dev

8 years agoDO NOT MERGE ANYWHERE Add AOSP Geomag and Game Rotation, and Gravity
Peng Xu [Thu, 23 Jul 2015 18:41:53 +0000 (11:41 -0700)]
DO NOT MERGE ANYWHERE Add AOSP Geomag and Game Rotation, and Gravity

Providing AOSP software implementation of Geomag Rotation Vector, Game
Rotation Vector and Gravity sensors for platforms that does not have
hardware implementation of these sensors but do have primitive sensors
(accelerometers, gyrometers and magnetometers).

Previously, AOSP Gravity sensor is enabled only when all primitive sensors are
available. This is changed so that AOSP Gravity will be available even
no magnetometer is in the device.

Related bug/feature request:
    * b/17508800
    * b/22610016

Change-Id: I4e2d3e544884047d66e7fdbce2282f1f8234eae9
(cherry picked from commit f66684a6fb2a2991e84a085673629db2a0494fc6)

8 years agoMerge "libgui: Prevent segfaulting in abandoned ConsumerBase" into nyc-dev
Pablo Ceballos [Fri, 6 May 2016 20:29:19 +0000 (20:29 +0000)]
Merge "libgui: Prevent segfaulting in abandoned ConsumerBase" into nyc-dev
am: 39e4428c81

* commit '39e4428c8196a99bb882ee8c1e16ad697372a9fb':
  libgui: Prevent segfaulting in abandoned ConsumerBase

Change-Id: Ib577e8c072b33fc17be7c2bb964fac9ef3873174

8 years agoMerge "libgui: Prevent segfaulting in abandoned ConsumerBase" into nyc-dev
Pablo Ceballos [Fri, 6 May 2016 20:16:57 +0000 (20:16 +0000)]
Merge "libgui: Prevent segfaulting in abandoned ConsumerBase" into nyc-dev

8 years agoAdd feature strings for newly added sensors am: f50c85d263 am: 8778a3864c
Peng Xu [Fri, 6 May 2016 19:13:10 +0000 (19:13 +0000)]
Add feature strings for newly added sensors am: f50c85d263 am: 8778a3864c
am: 41ecfd7e72

* commit '41ecfd7e720680b2ae0524523f64c715c0ea0c98':
  Add feature strings for newly added sensors

Change-Id: I7055ed440bca05d471315ec212ff550fdf847169

8 years agoAdd feature strings for newly added sensors am: f50c85d263
Peng Xu [Fri, 6 May 2016 19:08:51 +0000 (19:08 +0000)]
Add feature strings for newly added sensors am: f50c85d263
am: 8778a3864c

* commit '8778a3864cedc7cb67aa893752f0b487c9de3f24':
  Add feature strings for newly added sensors

Change-Id: I4a02f3978c4c916b20b8c8b4e96231ffe4005a7f

8 years agoAdd feature strings for newly added sensors
Peng Xu [Fri, 6 May 2016 19:03:20 +0000 (19:03 +0000)]
Add feature strings for newly added sensors
am: f50c85d263

* commit 'f50c85d2631b41d9303b9726bc1312d7ce6fe1d2':
  Add feature strings for newly added sensors

Change-Id: I0f2be7c5a3dae1a690b32121d962eaa5c7384002

8 years agoMerge "atrace: introduce category for core services" into nyc-dev
sergeyv [Fri, 6 May 2016 18:11:28 +0000 (18:11 +0000)]
Merge "atrace: introduce category for core services" into nyc-dev
am: 4f1563fa12

* commit '4f1563fa129157e407a223eb13ab382d1d45483b':
  atrace: introduce category for core services

Change-Id: Ic84db7da37ff80075dc1e87632cd8c2afbf6a47d

8 years agoMerge "atrace: introduce category for core services" into nyc-dev
Sergei Vasilinetc [Fri, 6 May 2016 17:56:44 +0000 (17:56 +0000)]
Merge "atrace: introduce category for core services" into nyc-dev

8 years agoMerge "BQ: Fix segfault in dump()" into nyc-dev
Pablo Ceballos [Fri, 6 May 2016 16:42:13 +0000 (16:42 +0000)]
Merge "BQ: Fix segfault in dump()" into nyc-dev
am: ed2c5d1931

* commit 'ed2c5d1931bb48240b9293b0d0c3d370fbbd6f81':
  BQ: Fix segfault in dump()

Change-Id: If9d49120eca9624c99e1bfbcdbd55052698a8633

8 years agoMerge "BQ: Fix segfault in dump()" into nyc-dev
Pablo Ceballos [Fri, 6 May 2016 16:34:34 +0000 (16:34 +0000)]
Merge "BQ: Fix segfault in dump()" into nyc-dev

8 years agoAdd feature strings for newly added sensors
Peng Xu [Wed, 18 Nov 2015 03:02:41 +0000 (19:02 -0800)]
Add feature strings for newly added sensors

Added the feature strings for:
  * Ambient Temperature Sensor
  * Relative Humidity Sensor

Bug:25476695

Change-Id: Ib307bebe33c67ddb8513edfb37c697c1488f1a7f

8 years agovulkan: improve vulkan::driver logcat messages
Chia-I Wu [Tue, 3 May 2016 05:26:08 +0000 (13:26 +0800)]
vulkan: improve vulkan::driver logcat messages

Make it clear the errors are generated from internal vkGet*ProcAddr calls.
Log a message whenever stubhal is used.

Bug: 28120066
Change-Id: Iabf88757c3cb20b7ddcbe3c1d201f3d23dd3ed0b

8 years agovulkan: use Logger in vulkan::api
Chia-I Wu [Thu, 5 May 2016 03:57:23 +0000 (11:57 +0800)]
vulkan: use Logger in vulkan::api

Use debug report logger for actionable application errors (but not other
errors).

Bug: 28120066
Change-Id: Ia9a3b568e415555bf42c8a76d1df6279835a710c

8 years agovulkan: use Logger in the generated code
Chia-I Wu [Wed, 4 May 2016 08:37:23 +0000 (16:37 +0800)]
vulkan: use Logger in the generated code

Except for INIT_PROC, where ALOGE is still used for layer/HAL bugs.

Bug: 28120066
Change-Id: Icd9ce99b6bfb77816b11c05f6c8b197a6782b7cd

8 years agovulkan: add DebugReportLogger
Chia-I Wu [Tue, 3 May 2016 04:19:55 +0000 (12:19 +0800)]
vulkan: add DebugReportLogger

Add DebugReportLogger that can be used during vkCreateInstance and other
commands.  Add vulkan::driver::Logger to create a temporary
DebugReportLogger from a dispatchable object.  With them, we can log to
debug report by, for example,

  Logger(instance).Warn(obj, "failed with %s", err);

Bug: 28120066
Change-Id: If059d38d3cfcfe591031ca135695d08cad42e0a4

8 years agovulkan: make debug report callbacks available in DeviceData
Chia-I Wu [Tue, 3 May 2016 01:12:35 +0000 (09:12 +0800)]
vulkan: make debug report callbacks available in DeviceData

This allows device commands to send messages to debug report.

Bug: 28120066
Change-Id: I43d217fc23799b06fd3fda73e1876d8773c723fc

8 years agovulkan: avoid duplicated app messages
Chia-I Wu [Tue, 3 May 2016 04:06:21 +0000 (12:06 +0800)]
vulkan: avoid duplicated app messages

When vkDebugReportMessageEXT is called, every component (layer,
vulkan::driver, or hal) supporting the extension knows how to handle it.
But only one of them should handle it.

Bug: 28120066
Change-Id: I4e746b80e0920c2c63f0aceceba1601536c6236d

8 years agovulkan: constify DebugReportCallbackList::Message
Chia-I Wu [Tue, 3 May 2016 04:04:47 +0000 (12:04 +0800)]
vulkan: constify DebugReportCallbackList::Message

Sending a message should not modify the state of DebugReportCallbackList,
conceptually.

Bug: 28120066
Change-Id: I7b30b4a41492b4e670408f34a6bffe8b56295afd

8 years agovulkan: refactor DebugReportCallbackList
Chia-I Wu [Thu, 5 May 2016 04:43:03 +0000 (12:43 +0800)]
vulkan: refactor DebugReportCallbackList

Simplify DebugReportCallbackList to be a thread-safe list with three
methods:

 - AddCallback adds a node to the list
 - RemoveCallback removes a node from the list
 - Message invokes each of the nodes on the list

Add some static methods for Node* and VkDebugReportCallbackEXT
conversions.

Bug: 28120066
Change-Id: I109c6eff368cacb37508e2549dbd0b5dfa23bcb3

8 years agoMerge "Revert "Add debug dump if about to segfault"" into nyc-dev
Pablo Ceballos [Thu, 5 May 2016 21:28:58 +0000 (21:28 +0000)]
Merge "Revert "Add debug dump if about to segfault"" into nyc-dev
am: 876c150be2

* commit '876c150be2164a20d3fc6da44f0e668e00960dda':
  Revert "Add debug dump if about to segfault"

Change-Id: Ibedf9b01990c6283cbb908b47acb41e93ace37dd

8 years agoMerge "Revert "Add debug dump if about to segfault"" into nyc-dev
Pablo Ceballos [Thu, 5 May 2016 21:20:40 +0000 (21:20 +0000)]
Merge "Revert "Add debug dump if about to segfault"" into nyc-dev

8 years agoBQ: Fix segfault in dump()
Pablo Ceballos [Thu, 5 May 2016 20:49:03 +0000 (13:49 -0700)]
BQ: Fix segfault in dump()

When dequeueBuffer() is called we put the slot in mActiveBuffers, then
don't hold the BufferQueue lock while allocation occurs. So a slot
might be in mActiveBuffers but not have a buffer attached yet. Prevent
the dump function from segfaulting in this case.

Bug 27128710

Change-Id: Ie1480c0f9b2544554fc3281045e55ad30605e6ec

8 years agoHWC2: Add support for color modes
Dan Stoza [Thu, 5 May 2016 17:15:51 +0000 (17:15 +0000)]
HWC2: Add support for color modes
am: 076ac67026

* commit '076ac670262e448c531e6db7727cfade325866ca':
  HWC2: Add support for color modes

Change-Id: I349c7bf51e6840fc69320f029a995b714a2d502f

8 years agoHWC2: Hook up setColorTransform/setLayerDataspace
Dan Stoza [Thu, 5 May 2016 17:15:50 +0000 (17:15 +0000)]
HWC2: Hook up setColorTransform/setLayerDataspace
am: 5df2a86063

* commit '5df2a86063c6a83813fc1aa3d8938a82f7ff8f14':
  HWC2: Hook up setColorTransform/setLayerDataspace

Change-Id: I4c58f99890f8ee26fcff0101cbcfe7c8a67a745a

8 years agoHWC2: Add support for color modes
Dan Stoza [Mon, 14 Mar 2016 17:47:53 +0000 (10:47 -0700)]
HWC2: Add support for color modes

Adds support for setting color modes through HWC2On1Adapter and the
HWC2 C++ shim

Bug: 22767098
Change-Id: I0b7300093ab427be7105a2535fc9db4953b8af1c

8 years agolibgui: Prevent segfaulting in abandoned ConsumerBase
Pablo Ceballos [Wed, 4 May 2016 20:59:35 +0000 (13:59 -0700)]
libgui: Prevent segfaulting in abandoned ConsumerBase

mConsumer will be null if the ConsumerBase has been abandoned. Prevent
it from being dereferenced in those cases.

Bug 27718219

Change-Id: I9a3ecadb0655ec61cd2fd15ee98b3e1bef078cff

8 years agoHWC2: Hook up setColorTransform/setLayerDataspace
Dan Stoza [Thu, 24 Mar 2016 23:19:37 +0000 (16:19 -0700)]
HWC2: Hook up setColorTransform/setLayerDataspace

Plumbs the setColorTransform and setLayerDataspace calls through the
HWC2 C++ shim and implements a trivial versions in the adapter,
which drops non-HAL_DATASPACE_UNKNOWN layers to client composition,
and which drops all layers to client composition if a color transform
is applied.

Bug: 22767098
Change-Id: Ifffd19b77cf3b33ec86fde3f72257f6b97b4dd79

8 years agoMerge "GLConsumer: add build-time disable of gpu protected content" into nyc-dev
Jesse Hall [Wed, 4 May 2016 17:52:14 +0000 (17:52 +0000)]
Merge "GLConsumer: add build-time disable of gpu protected content" into nyc-dev
am: 0b546c4086

* commit '0b546c408686e4353dfe4b3a12be1048b966944d':
  GLConsumer: add build-time disable of gpu protected content

Change-Id: I9775e2659cded403409367819f70a5833a8bf2c9

8 years agoMerge "GLConsumer: add build-time disable of gpu protected content" into nyc-dev
Jesse Hall [Wed, 4 May 2016 17:43:51 +0000 (17:43 +0000)]
Merge "GLConsumer: add build-time disable of gpu protected content" into nyc-dev

8 years agoRevert "Add debug dump if about to segfault"
Pablo Ceballos [Wed, 4 May 2016 17:19:49 +0000 (10:19 -0700)]
Revert "Add debug dump if about to segfault"

This reverts commit 6366a10fd8223c91f1a3422620800cd6ac67ef90.

Bug 27674961

8 years agoGLConsumer: add build-time disable of gpu protected content
Jesse Hall [Wed, 4 May 2016 04:12:39 +0000 (21:12 -0700)]
GLConsumer: add build-time disable of gpu protected content

Some drivers incorrectly claim support for EGL_EXT_protected_content.
Until we've been able to verify that devices which claim support
actually implement it properly, require that GPU access to protected
content be manually enabled per-device.

Bug: 28545166
Change-Id: Ic10e47a99c38737ce1c39439fe9347d628aec491

8 years agoMerge "EGL: Disconnect native window in eglDestroySurface" into nyc-dev
Pablo Ceballos [Tue, 3 May 2016 19:04:51 +0000 (19:04 +0000)]
Merge "EGL: Disconnect native window in eglDestroySurface" into nyc-dev
am: 1ae52ea860

* commit '1ae52ea860d9b29dc79f44e117e2c7e971162737':
  EGL: Disconnect native window in eglDestroySurface

Change-Id: I4229c453c23d7f4cb3acccd06c5c76eb5ed0239a

8 years agoMerge "EGL: Disconnect native window in eglDestroySurface" into nyc-dev
Pablo Ceballos [Tue, 3 May 2016 18:57:05 +0000 (18:57 +0000)]
Merge "EGL: Disconnect native window in eglDestroySurface" into nyc-dev

8 years agoEGL: Disconnect native window in eglDestroySurface
Pablo Ceballos [Mon, 2 May 2016 18:24:13 +0000 (11:24 -0700)]
EGL: Disconnect native window in eglDestroySurface

Bug 27455025

Change-Id: I7549a3acb724e749925a8249feb180088aec7f3c

8 years agoatrace: introduce category for core services
sergeyv [Tue, 3 May 2016 02:26:07 +0000 (19:26 -0700)]
atrace: introduce category for core services

bug: 28200530
Change-Id: Ifc785ba2ed25d6968f4558c2958a705603c39ba5

8 years agoMerge "installd: remove spammy warning for non-existent profile dirs." into nyc-dev
Narayan Kamath [Tue, 3 May 2016 10:51:03 +0000 (10:51 +0000)]
Merge "installd: remove spammy warning for non-existent profile dirs." into nyc-dev
am: 5dda72b2a1

* commit '5dda72b2a14c7d81756ec019d0f8daac228dca45':
  installd: remove spammy warning for non-existent profile dirs.

Change-Id: I6ea4a5af738ae664f0428d39fd87b8a147c98c6f

8 years agoMerge "installd: remove spammy warning for non-existent profile dirs." into nyc-dev
TreeHugger Robot [Tue, 3 May 2016 10:45:18 +0000 (10:45 +0000)]
Merge "installd: remove spammy warning for non-existent profile dirs." into nyc-dev

8 years agoinstalld: remove spammy warning for non-existent profile dirs.
Narayan Kamath [Mon, 2 May 2016 08:47:49 +0000 (09:47 +0100)]
installd: remove spammy warning for non-existent profile dirs.

Also gets rid of a lstat call which seems unnecessary. We can
directly open the directory and fail if the open fails.

bug: 28510519
Change-Id: Iaf2b7e69d51e2670e62cbe2807874c9b0dd471e5