OSDN Git Service

android-x86/frameworks-native.git
8 years agoMerge "svcmgr: don\'t send reply to one-way txn (part deux)" into nyc-dev
Mark Salyzyn [Tue, 31 May 2016 19:59:24 +0000 (19:59 +0000)]
Merge "svcmgr: don\'t send reply to one-way txn (part deux)" into nyc-dev
am: e4ecdb66d5

* commit 'e4ecdb66d5c2eed64cbd5b267e0621cab7b8a63b':
  svcmgr: don't send reply to one-way txn (part deux)

Change-Id: Id062b1b3998ab018654bc7830f275d1ac6d64f6d

8 years agoMerge "svcmgr: don't send reply to one-way txn (part deux)" into nyc-dev
Mark Salyzyn [Tue, 31 May 2016 19:44:18 +0000 (19:44 +0000)]
Merge "svcmgr: don't send reply to one-way txn (part deux)" into nyc-dev

8 years agoUse explicit path for /vendor/xbin/wlutil
Erik Kline [Tue, 31 May 2016 03:38:26 +0000 (03:38 +0000)]
Use explicit path for /vendor/xbin/wlutil
am: 0816520c5c

* commit '0816520c5cd60519d8e221ed92497aa5464e3039':
  Use explicit path for /vendor/xbin/wlutil

Change-Id: I1fd9593c8d9c0b0e3dd87c9a70b6b2e81c9b100a

8 years agoUse explicit path for /vendor/xbin/wlutil
Erik Kline [Mon, 30 May 2016 02:55:44 +0000 (11:55 +0900)]
Use explicit path for /vendor/xbin/wlutil

At this time /vendor/xbin is not in root's path.

Bug: 28850734
Change-Id: Ib6c2b6f8b0285854670c843dcc437cfcc84484a8

8 years agoMerge "vulkan: fix crash when only non-global layers are enabled" into nyc-dev
Chia-I Wu [Fri, 27 May 2016 08:28:58 +0000 (08:28 +0000)]
Merge "vulkan: fix crash when only non-global layers are enabled" into nyc-dev
am: a101f6a446

* commit 'a101f6a446722697e0ed6afb128829937b90d60a':
  vulkan: fix crash when only non-global layers are enabled

Change-Id: I65baa95e0b00f3fbc136d435c4481256a7e551bd

8 years agoMerge "vulkan: fix crash when only non-global layers are enabled" into nyc-dev
Chia-I Wu [Fri, 27 May 2016 08:22:49 +0000 (08:22 +0000)]
Merge "vulkan: fix crash when only non-global layers are enabled" into nyc-dev

8 years agoAdd "ip maddr" to dumpstate output for debugging.
Erik Kline [Fri, 27 May 2016 04:14:38 +0000 (04:14 +0000)]
Add "ip maddr" to dumpstate output for debugging.
am: f7f2b0fd05

* commit 'f7f2b0fd059bc26e27c022f3fb446fc74eab6c88':
  Add "ip maddr" to dumpstate output for debugging.

Change-Id: Ic3898db87bc7b726079d922ff24eaa1f8201f288

8 years agovulkan: fix crash when only non-global layers are enabled
Chia-I Wu [Fri, 27 May 2016 02:18:25 +0000 (10:18 +0800)]
vulkan: fix crash when only non-global layers are enabled

We fail to set up get_instance_proc_addr_ and get_device_proc_addr_ when
there are layers but only non-global ones.

Bug: 28990561
Change-Id: I82704f946deb5a76640f9dfb792e6fd118c78aa7

8 years agoAdd "ip maddr" to dumpstate output for debugging.
Erik Kline [Fri, 27 May 2016 02:29:19 +0000 (11:29 +0900)]
Add "ip maddr" to dumpstate output for debugging.

Bug: 28966611
Change-Id: I8fdab94fbd41448e52f2fed406e8f43edf7f18ad

8 years agoMerge "Check the existence of raft dir." into nyc-mr1-dev
Wei Liu [Thu, 26 May 2016 20:40:35 +0000 (20:40 +0000)]
Merge "Check the existence of raft dir." into nyc-mr1-dev

8 years agosvcmgr: don't send reply to one-way txn (part deux)
Mark Salyzyn [Wed, 25 May 2016 20:14:10 +0000 (13:14 -0700)]
svcmgr: don't send reply to one-way txn (part deux)

Do not split transaction into two when sending synchronous responses.

Partially revert changes associated with binder_send_reply from
previous incantations in commit 51f592c7bad13d3d8e8f7cfec25edfef42901802
that resulted in a performance regression.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 27111612
Bug: 28696050
Bug: 28946245
Change-Id: I12edc10a2d1408a71507a7983afa7f17b5a6a81b

8 years agoMark the multiwindow divider as a trusted overlay.
Michael Wright [Thu, 26 May 2016 15:07:23 +0000 (15:07 +0000)]
Mark the multiwindow divider as a trusted overlay.
am: b9be0cf397

* commit 'b9be0cf397eb6053fb5b472d91cf2d6a22c6693f':
  Mark the multiwindow divider as a trusted overlay.

Change-Id: I1906ca39ce35a436ba65c3815e0bdda8a3c00e9e

8 years agoMark the multiwindow divider as a trusted overlay.
Michael Wright [Thu, 26 May 2016 12:49:53 +0000 (13:49 +0100)]
Mark the multiwindow divider as a trusted overlay.

Having it be untrusted breaks the permissions granting dialog in
multiwindow mode.

Bug: 28828041
Change-Id: I9193dbce7315ebaa205673edd4f406d0b72665c8

8 years agoCheck the existence of raft dir.
Wei Liu [Wed, 25 May 2016 21:21:02 +0000 (14:21 -0700)]
Check the existence of raft dir.

b/28430346

Change-Id: I6ceb54f60c766d7b73ae93daa81f57b5a229e291

8 years agoMerge "Write compressed and encoded raft logs to stdout if not zip_writer" into nyc...
Wei Liu [Wed, 25 May 2016 20:10:41 +0000 (20:10 +0000)]
Merge "Write compressed and encoded raft logs to stdout if not zip_writer" into nyc-mr1-dev

8 years agoWrite compressed and encoded raft logs to stdout if not zip_writer
Wei Liu [Wed, 25 May 2016 18:28:57 +0000 (11:28 -0700)]
Write compressed and encoded raft logs to stdout if not zip_writer

Change-Id: Ib9948bebf9d5e2ef823e08b48fb67c36e0079a45

8 years agoMerge "BufferQueue/SF: Add OccupancyTracker" into nyc-mr1-dev
Dan Stoza [Wed, 25 May 2016 17:37:59 +0000 (17:37 +0000)]
Merge "BufferQueue/SF: Add OccupancyTracker" into nyc-mr1-dev

8 years agoMerge "SF: Force empty sync transactions to apply anyway" into nyc-dev
Robert Carr [Tue, 24 May 2016 23:23:29 +0000 (23:23 +0000)]
Merge "SF: Force empty sync transactions to apply anyway" into nyc-dev
am: 7443c1f253

* commit '7443c1f253008acd868af1e35449dd5eb3139c8d':
  SF: Force empty sync transactions to apply anyway

Change-Id: Iaa91350ba6e499d145e7adfcc1874601fff33775

8 years agoMerge "SF: Force empty sync transactions to apply anyway" into nyc-dev
TreeHugger Robot [Tue, 24 May 2016 23:15:00 +0000 (23:15 +0000)]
Merge "SF: Force empty sync transactions to apply anyway" into nyc-dev

8 years agoSF: Force empty sync transactions to apply anyway
Robert Carr [Tue, 24 May 2016 18:41:28 +0000 (11:41 -0700)]
SF: Force empty sync transactions to apply anyway

Following the change to not flush transactions in the screen shot
path, this enables the use of empty synchronous transactions as a
flush mechanism for previous asynchronous transactions.

Bug: 27098060
Change-Id: I282fdfffb72db148edcbf1ded65b15816fc714a2

8 years agoMerge "SF: Remove forced transaction on screenshot" into nyc-dev
Dan Stoza [Tue, 24 May 2016 18:18:16 +0000 (18:18 +0000)]
Merge "SF: Remove forced transaction on screenshot" into nyc-dev
am: 854071a38f

* commit '854071a38f250bd0638f1dfdb99b9ccc0010e7d0':
  SF: Remove forced transaction on screenshot

Change-Id: I79297918957661befdec24345bdfff2720433188

8 years agoMerge "SF: Remove forced transaction on screenshot" into nyc-dev
Dan Stoza [Tue, 24 May 2016 18:01:24 +0000 (18:01 +0000)]
Merge "SF: Remove forced transaction on screenshot" into nyc-dev

8 years agoMerge "HWC2: Fix breakage from header change" into nyc-dev
Dan Stoza [Tue, 24 May 2016 17:22:37 +0000 (17:22 +0000)]
Merge "HWC2: Fix breakage from header change" into nyc-dev
am: 80bc52aefa

* commit '80bc52aefa56e590f05bc30ff0182d860f00b128':
  HWC2: Fix breakage from header change

Change-Id: I02f8b45ded3d00dc2d34689f5b902d77ee74ca1e

8 years agoMerge "HWC2: Fix breakage from header change" into nyc-dev
Dan Stoza [Tue, 24 May 2016 16:55:43 +0000 (16:55 +0000)]
Merge "HWC2: Fix breakage from header change" into nyc-dev

8 years agostagefright: define mpeg2 HighP level constant
Lajos Molnar [Tue, 24 May 2016 14:24:10 +0000 (14:24 +0000)]
stagefright: define mpeg2 HighP level constant
am: 9e332babb9

* commit '9e332babb92d329c3c9b2e58fef77252cc11e52b':
  stagefright: define mpeg2 HighP level constant

Change-Id: I4db62224022bccc89ee4fdda2e32813a1f1c074d

8 years agostagefright: define mpeg2 HighP level constant
Lajos Molnar [Tue, 24 May 2016 14:02:01 +0000 (07:02 -0700)]
stagefright: define mpeg2 HighP level constant

Bug: 28671284
Change-Id: Ic97fd9c3cb4ce04f9cfcd18a4daf68db3349694b

8 years agovulkan: advertise VK_EXT_debug_report
Chia-I Wu [Tue, 24 May 2016 01:24:36 +0000 (01:24 +0000)]
vulkan: advertise VK_EXT_debug_report
am: 319382517a

* commit '319382517afe913285df5bbf76a8a484e6adfbd0':
  vulkan: advertise VK_EXT_debug_report

Change-Id: I904abeac1234e146f73b14a817c42adc9b6bc7bb

8 years agovulkan: add a wrapper for hwvulkan_device_t
Chia-I Wu [Tue, 24 May 2016 01:24:35 +0000 (01:24 +0000)]
vulkan: add a wrapper for hwvulkan_device_t
am: 31b2e4f01d

* commit '31b2e4f01d31aae107340cbc4221b8d49fb42767':
  vulkan: add a wrapper for hwvulkan_device_t

Change-Id: I4d64d13427218c437babb31d85982c438ed7f2af

8 years agovulkan: advertise VK_EXT_debug_report
Chia-I Wu [Mon, 23 May 2016 07:31:02 +0000 (15:31 +0800)]
vulkan: advertise VK_EXT_debug_report

We use VK_EXT_debug_report to report most messages and we should always
advertise the extension.  This is complicated however because the HAL may
also advertise the extension.

Do the minimal and cache whether the HAL supports VK_EXT_debug_report in
class Hal.  More refactorings will be required if we want to be more
flexible.

Bug: 28753291
Change-Id: I0298b2c3024e2ed059411128dbbe264c0b289a4b

8 years agovulkan: add a wrapper for hwvulkan_device_t
Chia-I Wu [Mon, 23 May 2016 02:47:57 +0000 (10:47 +0800)]
vulkan: add a wrapper for hwvulkan_device_t

Add class Hal as a wrapper for hwvulkan_device_t.

Bug: 28753291
Change-Id: I9612ee5515c7f2266cfc1ef0c8583fa98c82dd86

8 years agoMerge "vulkan: do not use exported functions internally" into nyc-dev
Chia-I Wu [Mon, 23 May 2016 23:49:46 +0000 (23:49 +0000)]
Merge "vulkan: do not use exported functions internally" into nyc-dev
am: e6759c3d88

* commit 'e6759c3d886491f01dd2295f71d22609b3b9b259':
  vulkan: do not use exported functions internally

Change-Id: I138aa42e7098b69d00517d9bac3d811b9b56e8a7

8 years agoMerge "vulkan: do not use exported functions internally" into nyc-dev
Chia-I Wu [Mon, 23 May 2016 23:36:52 +0000 (23:36 +0000)]
Merge "vulkan: do not use exported functions internally" into nyc-dev

8 years agoResolve merge conflicts of 6108f5d to nyc-mr1-dev
Felipe Leme [Mon, 23 May 2016 21:07:04 +0000 (14:07 -0700)]
Resolve merge conflicts of 6108f5d to nyc-mr1-dev

BUG: 28867848
Change-Id: I99392f1706af5fb9268ad1b32aa7f4b10e397d84

8 years agoMerge "Expose functions used to add entries to the zip file." into nyc-dev
TreeHugger Robot [Mon, 23 May 2016 20:01:25 +0000 (20:01 +0000)]
Merge "Expose functions used to add entries to the zip file." into nyc-dev

8 years agoExpose functions used to add entries to the zip file.
Felipe Leme [Thu, 19 May 2016 23:18:17 +0000 (16:18 -0700)]
Expose functions used to add entries to the zip file.

Currently only dumpstate.cpp is using the new functions and variables
used to add an entry to the zip file so they're defined locally, but
they should be exposed through the .h so they can be used by the
device-specific dumpstate_board() implementations.

This CL moves the following definitions to the .h:

- bugreport_dir
- ZIP_ROOT_DIR
- add_zip_entry()
- add_zip_entry_from_fd()

It also refactored functions that were taking a specific file location
to use bugreport_dir instead, to avoid pollution on main().

BUG: 28867848
Change-Id: Ic5faa203b0863bc950d640f22fb91977e52b6bfc

8 years agoomx: add asString for new enumerations and fix some issues
Lajos Molnar [Mon, 23 May 2016 16:27:12 +0000 (16:27 +0000)]
omx: add asString for new enumerations and fix some issues
am: 1b9c8069f4

* commit '1b9c8069f423f25c4dc166618d9fbe8d94d7f7c0':
  omx: add asString for new enumerations and fix some issues

Change-Id: I774af98ced6dd8bf7aac8873e3d93655fd5c6f2a

8 years agoomx: add asString for new enumerations and fix some issues
Lajos Molnar [Sat, 21 May 2016 02:38:40 +0000 (19:38 -0700)]
omx: add asString for new enumerations and fix some issues

Bug: 28671284
Change-Id: I54e98d727f974544d51b2a14b565ad24912ab242

8 years agoMerge "omx: add missing MPEG4 levels" into nyc-dev
Lajos Molnar [Mon, 23 May 2016 13:21:51 +0000 (13:21 +0000)]
Merge "omx: add missing MPEG4 levels" into nyc-dev
am: 6472c8c660

* commit '6472c8c660232300a0d2bf8721ec028a2db229a9':
  omx: add missing MPEG4 levels

Change-Id: If2a70773c6fcc4975de4a6fbc161e544f5d40715

8 years agoMerge "omx: add missing MPEG4 levels" into nyc-dev
Lajos Molnar [Mon, 23 May 2016 13:17:25 +0000 (13:17 +0000)]
Merge "omx: add missing MPEG4 levels" into nyc-dev

8 years agovulkan: do not use exported functions internally
Chia-I Wu [Fri, 20 May 2016 08:15:06 +0000 (16:15 +0800)]
vulkan: do not use exported functions internally

Our vkGet*ProcAddr uses the exported functions.  They will break when any
of the exported functions are overridden (e.g., through LD_PRELOAD).

Unexport and move all exported functions to vulkan::api namespace.
Re-export them by having vkFoo as a wrapper to vulkan::api::Foo.

Another option is to re-export vulkan::api::Foo by having vkFoo as an
alias using __attribute__((alias)).  That results in smaller binaries.
But we will not be able to catch mismatches between vulkan.h and
vulkan.api.

To avoid future breakage, define VK_NO_PROTOTYPES for all files except
api_gen.cpp.

Bug: 28886971
Change-Id: I08fde7ebb247f8c7e040ccf812b40b02094d3c7f

8 years agoMerge "Ensure memory ordering around libagl and EGL refcount operations" into nyc-dev
Jesse Hall [Sat, 21 May 2016 21:27:47 +0000 (21:27 +0000)]
Merge "Ensure memory ordering around libagl and EGL refcount operations" into nyc-dev
am: bac438bbb6

* commit 'bac438bbb682b09b618f47f2e36628a464afc8ea':
  Ensure memory ordering around libagl and EGL refcount operations

Change-Id: Ie2643fd243a9aa66080457d318a35550c502fd67

8 years agoMerge "Ensure memory ordering around libagl and EGL refcount operations" into nyc-dev
Jesse Hall [Sat, 21 May 2016 21:21:42 +0000 (21:21 +0000)]
Merge "Ensure memory ordering around libagl and EGL refcount operations" into nyc-dev

8 years agoEnsure memory ordering around libagl and EGL refcount operations
Jesse Hall [Fri, 20 May 2016 17:47:07 +0000 (10:47 -0700)]
Ensure memory ordering around libagl and EGL refcount operations

The android_atomic_inc/android_atomic_dec functions don't impose
sufficient memory ordering. Using them for object refcounting could
allow an object to be destroyed prior to writes by a different thread
being visible.

Bug: 28820690
Change-Id: Ie018091035174255a22ebc52852528cdaec2d648

8 years agovulkan: Update vulkan.h to 1.0.13
Jesse Hall [Fri, 20 May 2016 21:57:19 +0000 (21:57 +0000)]
vulkan: Update vulkan.h to 1.0.13
am: 2676338dd6

* commit '2676338dd692b7d1e1c276d82e6b0492db53ab2e':
  vulkan: Update vulkan.h to 1.0.13

Change-Id: I7dce6307edb8d04a5706da465b5de8457d7d236a

8 years agoHWC2: Fix breakage from header change
Dan Stoza [Fri, 20 May 2016 21:02:39 +0000 (14:02 -0700)]
HWC2: Fix breakage from header change

Updates the shim and adapter to handle the header changes introduced
by "HWC2: Add format to VD create, surface damage" in libhardware.

Bug: 22767098
Change-Id: I8142301c121d9b5602a4455f3fbadefefd685cf0

8 years agovulkan: Update vulkan.h to 1.0.13
Jesse Hall [Fri, 20 May 2016 14:13:52 +0000 (07:13 -0700)]
vulkan: Update vulkan.h to 1.0.13

vulkan.h and vk_platform.h imported from
github.com:KhronosGroup/Vulkan-Docs @ 2656f459333b3a1dc63619a9ebd83490eea22e93

Updated vulkan.api to reflect the changes in vulkan.h. There were no
changes to any of the code we generate. I didn't update the
vulkan_h.tmpl, since we're not currently using it and it was already
out of date.

Bug: 28878216
Change-Id: I71676683148fae7ad8799bd39386a931319aa395

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 agoomx: add missing MPEG4 levels
Lajos Molnar [Thu, 19 May 2016 22:27:31 +0000 (15:27 -0700)]
omx: add missing MPEG4 levels

Bug: 28671284
Change-Id: I96b50580cc29c11732fd2b496ba6d832b7067256

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 agoSF: Remove forced transaction on screenshot
Dan Stoza [Mon, 16 May 2016 20:36:29 +0000 (13:36 -0700)]
SF: Remove forced transaction on screenshot

Removes the forced transaction that screenshots used to perform
before capturing the screen. This was initially added to prevent
screenshot capture from sneaking in between when a transaction is
closed and when it is actually applied (at the next vsync), but in
the presence of deferred transactions today, forcing a transaction
to occur doesn't guarantee that the last transaction that
WindowManager pushed has actually been committed yet, since it may be
waiting for a buffer with which to synchronize.

If WindowManager wants to guarantee some arrangement of windows is
present for a screenshot, it needs to set the synchronous flag to
true when calling closeGlobalTransaction and wait for the call to
return.

Bug: 27098060
Change-Id: Iaa36d76df521076cc8ed16576f651543bae419a8

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 agoBufferQueue/SF: Add OccupancyTracker
Dan Stoza [Fri, 13 May 2016 18:37:28 +0000 (11:37 -0700)]
BufferQueue/SF: Add OccupancyTracker

Adds an OccupancyTracker to BufferQueue. This module keeps track of
how many buffers are in the queue over time, which, in combination
with various aggregation of these statistics, allows SurfaceFlinger
to report what fraction of the time a given layer was double- or
triple-buffered.

Change-Id: Ida6e967dc5483c00a633e9fe03998e420dd88502

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