OSDN Git Service

android-x86/frameworks-native.git
7 years agoMerge "Surface: Add force disconnection method." into nyc-mr1-dev am: 6cc1933af9...
Rob Carr [Fri, 23 Sep 2016 01:44:38 +0000 (01:44 +0000)]
Merge "Surface: Add force disconnection method." into nyc-mr1-dev am: 6cc1933af9 am: a92604b3cd
am: c96faf0ffb

Change-Id: I437a8df1ab65d5d2f480664c0ca537de9f6ad497

7 years agoSurface: Add force disconnection method. am: 97b9c86338 am: 962b13b9be
Robert Carr [Fri, 23 Sep 2016 01:44:26 +0000 (01:44 +0000)]
Surface: Add force disconnection method. am: 97b9c86338 am: 962b13b9be
am: a9d1c1099d

Change-Id: Iea981cfaddd2be6ecdfebbdfadd9d822f17d682f

7 years agoRecursively restorecon when SELinux label changes. am: 993de79607 am: 59d31b669b
Jeff Sharkey [Fri, 23 Sep 2016 01:30:38 +0000 (01:30 +0000)]
Recursively restorecon when SELinux label changes. am: 993de79607 am: 59d31b669b
am: e5eb9cc4ff

Change-Id: Ib7ee3de3ebcb65872d28b26ef9aa14b9a8e98b7d

7 years agoMerge "Dumpstate should hold a wakelock to save bug report time." into cw-f-dev am...
Wei Liu [Fri, 23 Sep 2016 01:30:17 +0000 (01:30 +0000)]
Merge "Dumpstate should hold a wakelock to save bug report time." into cw-f-dev am: 64076bac3f
am: da023f180e

Change-Id: Ibc0b375df6a8cc42689f15bde7ad1112c0140ecc

7 years agoMerge "Surface: Add force disconnection method." into nyc-mr1-dev am: 6cc1933af9
Rob Carr [Thu, 22 Sep 2016 23:34:40 +0000 (23:34 +0000)]
Merge "Surface: Add force disconnection method." into nyc-mr1-dev am: 6cc1933af9
am: a92604b3cd

Change-Id: I791e00bc2584581066f6cda89ea0bda063ba0645

7 years agoSurface: Add force disconnection method. am: 97b9c86338
Robert Carr [Thu, 22 Sep 2016 23:34:27 +0000 (23:34 +0000)]
Surface: Add force disconnection method. am: 97b9c86338
am: 962b13b9be

Change-Id: Ie74482a867c24213a25332650b38c733e183630b

7 years agoRecursively restorecon when SELinux label changes. am: 993de79607
Jeff Sharkey [Thu, 22 Sep 2016 23:32:08 +0000 (23:32 +0000)]
Recursively restorecon when SELinux label changes. am: 993de79607
am: 59d31b669b

Change-Id: I51739d604afa86b993123bd8cc6d46c6743618a2

7 years agoMerge "Surface: Add force disconnection method." into nyc-mr1-dev
Rob Carr [Thu, 22 Sep 2016 23:24:12 +0000 (23:24 +0000)]
Merge "Surface: Add force disconnection method." into nyc-mr1-dev
am: 6cc1933af9

Change-Id: Ice30ea86acd7abfa71c0053dc1459361b4bbfb6c

7 years agoSurface: Add force disconnection method.
Robert Carr [Thu, 22 Sep 2016 23:24:11 +0000 (23:24 +0000)]
Surface: Add force disconnection method.
am: 97b9c86338

Change-Id: Ia9f9dbdcbd9527d54dacb2cdc90eda443230e8d9

7 years agoMerge "resolve merge conflicts of 9795ff6 to master"
TreeHugger Robot [Thu, 22 Sep 2016 22:49:34 +0000 (22:49 +0000)]
Merge "resolve merge conflicts of 9795ff6 to master"

7 years agoRecursively restorecon when SELinux label changes.
Jeff Sharkey [Thu, 22 Sep 2016 22:41:00 +0000 (22:41 +0000)]
Recursively restorecon when SELinux label changes.
am: 993de79607

Change-Id: Ibf9b6beaa58e7e6c2f006e8c6f064330624eb29f

7 years agoMerge "Add binder test for bug 30445380"
Connor O'Brien [Thu, 22 Sep 2016 22:36:38 +0000 (22:36 +0000)]
Merge "Add binder test for bug 30445380"

7 years agoMerge "Surface: Add force disconnection method." into nyc-mr1-dev
Rob Carr [Thu, 22 Sep 2016 21:17:40 +0000 (21:17 +0000)]
Merge "Surface: Add force disconnection method." into nyc-mr1-dev

7 years agoresolve merge conflicts of 9795ff6 to master
Wei Liu [Thu, 22 Sep 2016 20:34:36 +0000 (13:34 -0700)]
resolve merge conflicts of 9795ff6 to master

Change-Id: I34c069a669ece0fefee18d1e90f53cc68bd74ea9

7 years agoAdd binder test for bug 30445380
Connor O'Brien [Tue, 20 Sep 2016 21:18:08 +0000 (14:18 -0700)]
Add binder test for bug 30445380

Test: Ran on fixed and unfixed kernel.
Change-Id: Ic5c49fde75af7a4606871b07a3f39c0c34824c8b
Signed-off-by: Connor O'Brien <connoro@google.com>
7 years agoMerge "Dumpstate should hold a wakelock to save bug report time." into cw-f-dev
Wei Liu [Thu, 22 Sep 2016 20:04:16 +0000 (20:04 +0000)]
Merge "Dumpstate should hold a wakelock to save bug report time." into cw-f-dev
am: 64076bac3f

Change-Id: Ia1f4644556e9f5632b5ce23b6379a43a2d1cba1c

7 years agoMerge "Recursively restorecon when SELinux label changes."
TreeHugger Robot [Thu, 22 Sep 2016 19:39:36 +0000 (19:39 +0000)]
Merge "Recursively restorecon when SELinux label changes."

7 years agoDumpstate should hold a wakelock to save bug report time.
Wei Liu [Thu, 22 Sep 2016 19:02:08 +0000 (19:02 +0000)]
Dumpstate should hold a wakelock to save bug report time.
am: f87959e007

Change-Id: I43fe43f8142e3084d69f336414c19a079dfb9ebc

7 years agoMerge "Dumpstate should hold a wakelock to save bug report time." into cw-f-dev
Wei Liu [Thu, 22 Sep 2016 18:37:22 +0000 (18:37 +0000)]
Merge "Dumpstate should hold a wakelock to save bug report time." into cw-f-dev

7 years agoRecursively restorecon when SELinux label changes.
Jeff Sharkey [Wed, 21 Sep 2016 00:21:42 +0000 (18:21 -0600)]
Recursively restorecon when SELinux label changes.

PackageManager has been pretty aggressive about asking installd to
restorecon over app data when it thinks something might have
changed.  However, in the vast majority of cases these are no-op
requests, and we waste a bunch of time recursively walking all
private data, easily costing 60+ seconds on dogfooder devices.

This change updates the initial "create_app_data" command to kick off
a recursive restorecon if it detects that the top-level SELinux label
on the app private data directory changes.  The "create_app_data"
command is designed to ensure that an app's storage is ready, so
PackageManager always calls it at least once per boot before apps
can run.  (This change means that PackageManager no longer needs to
make separate "restorecon_app_data" calls.)

Test: booted, verified that a label change triggered restorecon
Bug: 30768146
Change-Id: I0c8d4018cf8ff888d0ae07a82adc3d61a6002aad

7 years agoRecursively restorecon when SELinux label changes.
Jeff Sharkey [Wed, 21 Sep 2016 00:21:42 +0000 (18:21 -0600)]
Recursively restorecon when SELinux label changes.

PackageManager has been pretty aggressive about asking installd to
restorecon over app data when it thinks something might have
changed.  However, in the vast majority of cases these are no-op
requests, and we waste a bunch of time recursively walking all
private data, easily costing 60+ seconds on dogfooder devices.

This change updates the initial "create_app_data" command to kick off
a recursive restorecon if it detects that the top-level SELinux label
on the app private data directory changes.  The "create_app_data"
command is designed to ensure that an app's storage is ready, so
PackageManager always calls it at least once per boot before apps
can run.  (This change means that PackageManager no longer needs to
make separate "restorecon_app_data" calls.)

Test: booted, verified that a label change triggered restorecon
Bug: 30768146
Change-Id: I0c8d4018cf8ff888d0ae07a82adc3d61a6002aad

7 years agoMerge "Show masked value for sensor with permission" into cw-f-dev am: ee36adbde7
Ashutosh Joshi [Wed, 21 Sep 2016 20:22:22 +0000 (20:22 +0000)]
Merge "Show masked value for sensor with permission" into cw-f-dev am: ee36adbde7
am: 4c2518252e

Change-Id: Icc0676638901084968a175384bf3530495df93c7

7 years agoShow masked value for sensor with permission am: fba3c11b5e
Peng Xu [Wed, 21 Sep 2016 20:22:10 +0000 (20:22 +0000)]
Show masked value for sensor with permission am: fba3c11b5e
am: 08f1b67b54

Change-Id: I08b12c2eea76a8580d559a022938962b507c9962

7 years agoMerge "Show masked value for sensor with permission" into cw-f-dev
Ashutosh Joshi [Wed, 21 Sep 2016 19:25:16 +0000 (19:25 +0000)]
Merge "Show masked value for sensor with permission" into cw-f-dev
am: ee36adbde7

Change-Id: I755533dbff110702bbf851c8e0a6ec2035fa28c2

7 years agoShow masked value for sensor with permission
Peng Xu [Wed, 21 Sep 2016 19:25:15 +0000 (19:25 +0000)]
Show masked value for sensor with permission
am: fba3c11b5e

Change-Id: If4b9fd323d0f8333cd1d1dea8c1d801b43c7e157

7 years agoMerge "Show masked value for sensor with permission" into cw-f-dev
Ashutosh Joshi [Wed, 21 Sep 2016 19:16:55 +0000 (19:16 +0000)]
Merge "Show masked value for sensor with permission" into cw-f-dev

7 years agoMerge "Rename unique_fd::clear to unique_fd::reset." am: f9f04003f5 am: 44bd6ca0d0...
Josh Gao [Wed, 21 Sep 2016 07:32:18 +0000 (07:32 +0000)]
Merge "Rename unique_fd::clear to unique_fd::reset." am: f9f04003f5 am: 44bd6ca0d0 am: d1a3db64c5
am: ebbfaf3fa3

Change-Id: I85eda7ff3e72efefc378770276a6ba8db651b252

7 years agoMerge "Rename unique_fd::clear to unique_fd::reset." am: f9f04003f5 am: 44bd6ca0d0
Josh Gao [Wed, 21 Sep 2016 01:12:46 +0000 (01:12 +0000)]
Merge "Rename unique_fd::clear to unique_fd::reset." am: f9f04003f5 am: 44bd6ca0d0
am: d1a3db64c5

Change-Id: Ica8691bfa5ff84dabe9e026dfae46e8093cf4fb4

7 years agoMerge "Rename unique_fd::clear to unique_fd::reset." am: f9f04003f5
Josh Gao [Wed, 21 Sep 2016 01:10:14 +0000 (01:10 +0000)]
Merge "Rename unique_fd::clear to unique_fd::reset." am: f9f04003f5
am: 44bd6ca0d0

Change-Id: Ie664fd18862e404845b2702ff546719818190cd1

7 years agoMerge "Rename unique_fd::clear to unique_fd::reset."
Josh Gao [Wed, 21 Sep 2016 01:07:32 +0000 (01:07 +0000)]
Merge "Rename unique_fd::clear to unique_fd::reset."
am: f9f04003f5

Change-Id: I856ff1bdb5735a90e3b6c13d2f7a2deeff0388e0

7 years agoMerge "Rename unique_fd::clear to unique_fd::reset."
Josh Gao [Wed, 21 Sep 2016 01:03:06 +0000 (01:03 +0000)]
Merge "Rename unique_fd::clear to unique_fd::reset."

7 years agoRename unique_fd::clear to unique_fd::reset.
Josh Gao [Mon, 19 Sep 2016 19:44:50 +0000 (12:44 -0700)]
Rename unique_fd::clear to unique_fd::reset.

Test: m checkbuild
Change-Id: I8cbf2b538c270d8ef50ab6fdcf4fecbcd65899a8

7 years agoMerge "libvulkan: Fix count returned for incomplete wsi queries" am: 75bb94fe7e am...
Jesse Hall [Mon, 19 Sep 2016 18:13:13 +0000 (18:13 +0000)]
Merge "libvulkan: Fix count returned for incomplete wsi queries" am: 75bb94fe7e am: f4171ecd58 am: 7f3fdaa059
am: ebe91de21e

Change-Id: If131abf6f3bf0c35832dab458cfc17b315944970

7 years agoMerge "libvulkan: Fix count returned for incomplete wsi queries" am: 75bb94fe7e am...
Jesse Hall [Mon, 19 Sep 2016 18:05:10 +0000 (18:05 +0000)]
Merge "libvulkan: Fix count returned for incomplete wsi queries" am: 75bb94fe7e am: f4171ecd58
am: 7f3fdaa059

Change-Id: I731446903759e0acefa6cd453d6d25e2c2011fd3

7 years agoMerge "libvulkan: Fix count returned for incomplete wsi queries" am: 75bb94fe7e
Jesse Hall [Mon, 19 Sep 2016 18:02:08 +0000 (18:02 +0000)]
Merge "libvulkan: Fix count returned for incomplete wsi queries" am: 75bb94fe7e
am: f4171ecd58

Change-Id: I549bdd589575e505063de0ed4aa7fda97c481e32

7 years agoMerge "libvulkan: Fix count returned for incomplete wsi queries"
Jesse Hall [Mon, 19 Sep 2016 17:58:39 +0000 (17:58 +0000)]
Merge "libvulkan: Fix count returned for incomplete wsi queries"
am: 75bb94fe7e

Change-Id: I0567dca837c6a56d0af14eb0ace73318386b444d

7 years agoMerge "libvulkan: Fix count returned for incomplete wsi queries"
Jesse Hall [Mon, 19 Sep 2016 17:51:36 +0000 (17:51 +0000)]
Merge "libvulkan: Fix count returned for incomplete wsi queries"

7 years agolibvulkan: Fix count returned for incomplete wsi queries
Jesse Hall [Fri, 16 Sep 2016 04:26:01 +0000 (21:26 -0700)]
libvulkan: Fix count returned for incomplete wsi queries

When vkGetPhysicalDeviceSurfaceFormatsKHR,
vkGetPhysicalDevicePresentModesKHR, and vkGetSwapchainImagesKHR
returned VK_INCOMPLETE, they would overwrite the count parameter with
the number of available items, rather than the number of returned
items.

Change-Id: I6a736770f90b95ad15bfcfbe5afb4d2886817dcb
Fixes: 31490492
Test: https://gerrit.khronos.org/#/c/158/

7 years agoHWC2On1: Fall back to GLES for SolidColor am: 5df47cb648 am: d946ae67c2
Dan Stoza [Fri, 16 Sep 2016 19:49:56 +0000 (19:49 +0000)]
HWC2On1: Fall back to GLES for SolidColor am: 5df47cb648 am: d946ae67c2
am: 9e718be5fb

Change-Id: I9644bee3005e9d819fa375c41ee36b6f0e04287e

7 years agoHWC2On1: Fall back to GLES for SolidColor am: 5df47cb648
Dan Stoza [Fri, 16 Sep 2016 19:47:02 +0000 (19:47 +0000)]
HWC2On1: Fall back to GLES for SolidColor am: 5df47cb648
am: d946ae67c2

Change-Id: I9c866a4cbf23f4e8dcdaf922063c4a26f7da7c51

7 years agoHWC2On1: Fall back to GLES for SolidColor
Dan Stoza [Fri, 16 Sep 2016 19:45:01 +0000 (19:45 +0000)]
HWC2On1: Fall back to GLES for SolidColor
am: 5df47cb648

Change-Id: I485ae0aa189b5338f6f98dd3c716dd87dac60ab1

7 years agoHWC2On1: Fall back to GLES for SolidColor
Dan Stoza [Thu, 15 Sep 2016 23:38:42 +0000 (16:38 -0700)]
HWC2On1: Fall back to GLES for SolidColor

Even though SolidColor layers map cleanly to HWC_BACKGROUND composition
in HWC1, SurfaceFlinger never used HWC_BACKGROUND, so we can't trust
that HWC1 devices implemented it correctly. To preserve backwards
compatibility, this changes the behavior to fall back to client
composition to minimize incompatibilities with existing devices.

Bug: 30479781
Change-Id: I638339062e03f2c057b3e1624e7157587ddee7ec

7 years agoMerge "Refactored dump_file() into dumpFile()."
TreeHugger Robot [Thu, 15 Sep 2016 20:59:56 +0000 (20:59 +0000)]
Merge "Refactored dump_file() into dumpFile()."

7 years agoMerge "SF: Call makeCurrent after presenting each display"
Dan Stoza [Thu, 15 Sep 2016 20:07:48 +0000 (20:07 +0000)]
Merge "SF: Call makeCurrent after presenting each display"

7 years agoMerge "Refactored run_command functions."
TreeHugger Robot [Thu, 15 Sep 2016 18:51:01 +0000 (18:51 +0000)]
Merge "Refactored run_command functions."

7 years agoDumpstate should hold a wakelock to save bug report time.
Wei Liu [Fri, 26 Aug 2016 21:51:42 +0000 (14:51 -0700)]
Dumpstate should hold a wakelock to save bug report time.

b/30832947

Change-Id: I0a4b1fcce91caa96ccbc4e890d9968e3033487de

7 years agoMerge "Fix signature for MotionEvent#setButtonState"
TreeHugger Robot [Thu, 15 Sep 2016 14:23:04 +0000 (14:23 +0000)]
Merge "Fix signature for MotionEvent#setButtonState"

7 years agoFix signature for MotionEvent#setButtonState
Michael Wright [Wed, 14 Sep 2016 18:53:37 +0000 (19:53 +0100)]
Fix signature for MotionEvent#setButtonState

Bug: 31441257

Change-Id: I5069118d6d89f0c3a0eedf85d1d4dafbbec77ac6

7 years agoSF: Call makeCurrent after presenting each display
Season Li [Thu, 4 Aug 2016 21:32:44 +0000 (14:32 -0700)]
SF: Call makeCurrent after presenting each display

HWC can change EGLContext in each present. Restore to
default EGLContext after commiting each display.

Change-Id: I4abc84fb3d4b74964fabcad5a2568ff01a6c5dbb

7 years agoMerge "Fix google-explicit-constructor warnings in binder." am: 8b2d3da4c4 am: e00f70...
Chih-hung Hsieh [Wed, 14 Sep 2016 20:43:04 +0000 (20:43 +0000)]
Merge "Fix google-explicit-constructor warnings in binder." am: 8b2d3da4c4 am: e00f704122 am: 772819113d
am: fde6e0c2b9

Change-Id: Idfcba06c1a548ebc152b5b623c2a1b146e49291f

7 years agoMerge "Convert libui to Android.bp" am: f0346ab68e am: 55ef158c5d am: 14107b1e89
Dan Willemsen [Wed, 14 Sep 2016 20:43:00 +0000 (20:43 +0000)]
Merge "Convert libui to Android.bp" am: f0346ab68e am: 55ef158c5d am: 14107b1e89
am: 51d7c42bb9

Change-Id: Iad682bebef63f9671fa9c2ea6d34ac2d17d50ca9

7 years agoMerge "Sensor: Make switching from data injection mode to normal mode more productive...
Peng Xu [Wed, 14 Sep 2016 20:42:57 +0000 (20:42 +0000)]
Merge "Sensor: Make switching from data injection mode to normal mode more productive" am: e6a4e9b04e am: 33685d3a84 am: 0674efdbfa
am: 85171c016e

Change-Id: I4db1bfa247779e46ca57117df8fc1ee5240c95e3

7 years agoMerge changes I5041c541,I0eeafc99,Ie982d375 am: 30fcc9fc7f am: 3967e136b2 am: 6bc61379cb
Dan Stoza [Wed, 14 Sep 2016 20:42:15 +0000 (20:42 +0000)]
Merge changes I5041c541,I0eeafc99,Ie982d375 am: 30fcc9fc7f am: 3967e136b2 am: 6bc61379cb
am: fe25ad772d

Change-Id: I8d3980c738a4fa4d0815ed3be6adb1154ab17811

7 years agoSquashed: gralloc1/binder/requestor am: f62eaf5994 am: c76b6fb0c8 am: 82e5e2edc7
Dan Stoza [Wed, 14 Sep 2016 20:42:14 +0000 (20:42 +0000)]
Squashed: gralloc1/binder/requestor am: f62eaf5994 am: c76b6fb0c8 am: 82e5e2edc7
am: e506c2a73b

Change-Id: Id8d53e48594baa86c6404844cc9cb0db7594b418

7 years agolibui: Add Gralloc1On0Adapter and C++ shim am: eb03fd3a8b am: e9a0705cf5 am: 0d85101e...
Dan Stoza [Wed, 14 Sep 2016 20:42:13 +0000 (20:42 +0000)]
libui: Add Gralloc1On0Adapter and C++ shim am: eb03fd3a8b am: e9a0705cf5 am: 0d85101e33  -s ours
am: c6c81dcbcc

Change-Id: Iff66a31eaa6842116da28b2ada5b1c7534220666

7 years agolibagl: Switch from gralloc to GraphicBufferMapper am: 204240a88b am: 3a37f21808...
Dan Stoza [Wed, 14 Sep 2016 20:42:00 +0000 (20:42 +0000)]
libagl: Switch from gralloc to GraphicBufferMapper am: 204240a88b am: 3a37f21808 am: 5752748514
am: d034178751

Change-Id: I56b577befb43c20f530a14eb60b51644b4d2d916

7 years agoMerge changes I1b74d58b,I38c6e8bc am: 9f41107732 am: 263f969ab9 am: 75ef58520f
Feng Yu [Wed, 14 Sep 2016 20:41:12 +0000 (20:41 +0000)]
Merge changes I1b74d58b,I38c6e8bc am: 9f41107732 am: 263f969ab9 am: 75ef58520f
am: ae59cf0110

Change-Id: Iff1daab235812ef21ea20345873664bcd67aba12

7 years agoServiceManager: Allow system services running as secondary users to add services...
Arve Hjnnevg [Wed, 14 Sep 2016 20:40:57 +0000 (20:40 +0000)]
ServiceManager: Allow system services running as secondary users to add services am: 6b9c6d23f6 am: f84867654e am: 26905f1768
am: 880795b01b

Change-Id: Iebffb92fbf2e9b03249e7153866245113915caea

7 years agoServiceManager: Restore basic uid check am: 5fa90a063f am: 362687f1f4 -s ours am...
Arve Hjnnevg [Wed, 14 Sep 2016 20:40:56 +0000 (20:40 +0000)]
ServiceManager: Restore basic uid check am: 5fa90a063f am: 362687f1f4  -s ours am: 7050b0c54d
am: e418592b47

Change-Id: Ibf72b607031e48aa5c0c8be6dd20249dc699f295

7 years agoMerge "Increase YV12BufferPow2 test threshold" into nyc-mr1-dev am: 186c4c93a7 am...
Kalle Raita [Wed, 14 Sep 2016 20:40:55 +0000 (20:40 +0000)]
Merge "Increase YV12BufferPow2 test threshold" into nyc-mr1-dev am: 186c4c93a7 am: 59d8480530
am: 75faf88eeb

Change-Id: I23be76d779e6118ce60328ed598f314e634c5dee

7 years agoIncrease YV12BufferPow2 test threshold am: 6a2593ac53 am: b384bc32a0
Kalle Raita [Wed, 14 Sep 2016 20:40:54 +0000 (20:40 +0000)]
Increase YV12BufferPow2 test threshold am: 6a2593ac53 am: b384bc32a0
am: 5a00287426

Change-Id: I27e26e880b5ac95be7c6e02cda35d52ff0dcb15e

7 years agoMerge "Installd: Add a delete_odex command" into nyc-mr1-dev am: a721faee57 am: 5f31f...
Andreas Gampe [Wed, 14 Sep 2016 20:40:53 +0000 (20:40 +0000)]
Merge "Installd: Add a delete_odex command" into nyc-mr1-dev am: a721faee57 am: 5f31f5de36
am: 7ce1941d75

Change-Id: I65a9a379cd72848d4f6c523b604f4690d0148928

7 years agoRefactored dump_file() into dumpFile().
Felipe Leme [Tue, 13 Sep 2016 23:45:56 +0000 (16:45 -0700)]
Refactored dump_file() into dumpFile().

Also added a duration report for dumpstate_board().

BUG: 26379932
Test: manual

Change-Id: If80bb9699162ecb80715ef46c6ee039eb22ba6b7

7 years agoRefactored run_command functions.
Felipe Leme [Fri, 2 Sep 2016 19:43:26 +0000 (12:43 -0700)]
Refactored run_command functions.

Back in the day, dumpstate.c had a simple run_command() function. Then on
Android N, dumpstate.c became dumpstate.cpp and that function multiplied into:

- run_command()
- run_command_as_shell()
- run_command_always()

Not only these 3 commands were pretty much copy-and-pasted, but they
didn't take advantage of C++ features (such as std::vector and
std::string).

This CL refactor them into a single runCommand() function that takes an
optional CommandOptions argument to set its behavior. Examples:

// Run as shell
   runCommand("DUMPSYS MEMINFO", {"meminfo", "-a"},
              CommandOptions::WithTimeout(90).DropRoot().Build());

// Run always, as shell
   runCommand(nullptr, am, CommandOptions::WithTimeout(20).Build());

The legacy run_command() is still available since it's used by
device-specific dumpstate_board() implementations, but it will
eventually go away as well.

This change also:
- Refactored run_dumpsys() into runDumpsys().
- Added a .clang-format file (initially equals to dumpsys's).
- Renamed the variable names on those commands according to the style guide.

BUG: 26379932
Test: manual

Change-Id: Ie045eb2fb825e68088d231129044c59e61450d99

7 years agoInstalld: Add a delete_odex command am: 3964da0636 am: 3ca30f7a5d
Andreas Gampe [Wed, 14 Sep 2016 19:42:22 +0000 (19:42 +0000)]
Installd: Add a delete_odex command am: 3964da0636 am: 3ca30f7a5d
am: 592c72e94c

Change-Id: Ib5ffd698332d1082f53c536604bbf3d430ce9d1e

7 years agoMerge "Fix google-explicit-constructor warnings in binder." am: 8b2d3da4c4 am: e00f704122
Chih-hung Hsieh [Wed, 14 Sep 2016 18:07:20 +0000 (18:07 +0000)]
Merge "Fix google-explicit-constructor warnings in binder." am: 8b2d3da4c4 am: e00f704122
am: 772819113d

Change-Id: I1cd4c72a8ba30cf3ff43661e41c913b17b7e3bf0

7 years agoMerge "Convert libui to Android.bp" am: f0346ab68e am: 55ef158c5d
Dan Willemsen [Wed, 14 Sep 2016 18:07:20 +0000 (18:07 +0000)]
Merge "Convert libui to Android.bp" am: f0346ab68e am: 55ef158c5d
am: 14107b1e89

Change-Id: I09dbdfed50aa6446d4596d601b651c229d20158b

7 years agoMerge "Fix google-explicit-constructor warnings in binder." am: 8b2d3da4c4
Chih-hung Hsieh [Wed, 14 Sep 2016 18:04:49 +0000 (18:04 +0000)]
Merge "Fix google-explicit-constructor warnings in binder." am: 8b2d3da4c4
am: e00f704122

Change-Id: I59fe3ed467d34c81e3082983da74466aad39b4b0

7 years agoMerge "Convert libui to Android.bp" am: f0346ab68e
Dan Willemsen [Wed, 14 Sep 2016 18:04:49 +0000 (18:04 +0000)]
Merge "Convert libui to Android.bp" am: f0346ab68e
am: 55ef158c5d

Change-Id: Id19e76f82b3b3154570e5963d2e2f4f943946db1

7 years agoMerge "Fix google-explicit-constructor warnings in binder."
Chih-hung Hsieh [Wed, 14 Sep 2016 18:00:56 +0000 (18:00 +0000)]
Merge "Fix google-explicit-constructor warnings in binder."
am: 8b2d3da4c4

Change-Id: I3293141f444e547957df9579fe6d258df696bbe7

7 years agoMerge "Convert libui to Android.bp"
Dan Willemsen [Wed, 14 Sep 2016 18:00:55 +0000 (18:00 +0000)]
Merge "Convert libui to Android.bp"
am: f0346ab68e

Change-Id: I1c38e092cc404510e038e246e8d67c9cd28faaed

7 years agoMerge "Fix google-explicit-constructor warnings in binder."
Chih-hung Hsieh [Wed, 14 Sep 2016 17:53:45 +0000 (17:53 +0000)]
Merge "Fix google-explicit-constructor warnings in binder."

7 years agoMerge "Convert libui to Android.bp"
Treehugger Robot [Wed, 14 Sep 2016 17:48:13 +0000 (17:48 +0000)]
Merge "Convert libui to Android.bp"

7 years agoConvert libui to Android.bp
Dan Willemsen [Fri, 26 Aug 2016 00:05:22 +0000 (17:05 -0700)]
Convert libui to Android.bp

Along with the libinput tests, which depend on libui. For more
information on Soong, see build/soong/README.md

Change-Id: Id4fbeb114d03e37556dca59a2c9f5c9abb0a1825
Merged-In: Id4fbeb114d03e37556dca59a2c9f5c9abb0a1825
(cherry picked from commit 871dda3d6485617bf3a1ea6c8236071212234433)

7 years agoSurface: Add force disconnection method.
Robert Carr [Thu, 8 Sep 2016 20:54:35 +0000 (13:54 -0700)]
Surface: Add force disconnection method.

Add a new method forceScopedDisconnect to Surface. This will
be used by the framework to force disconnection at times where
the underlying GraphicBufferProducer may be about to be reused.
This is scoped by PID to avoid conflicting with remote producers.

Bug: 30236166
Change-Id: I857216483c0b550f240b3baea41977cbc58a67ed

7 years agoMerge "Convert libui to Android.bp" into nyc-mr1-dev-plus-aosp
Dan Willemsen [Wed, 14 Sep 2016 06:44:41 +0000 (06:44 +0000)]
Merge "Convert libui to Android.bp" into nyc-mr1-dev-plus-aosp
am: a0ddf8f517

Change-Id: I856981ccd9f9b638d60367615674b411a8d5bc9e

7 years agoConvert libui to Android.bp
Dan Willemsen [Wed, 14 Sep 2016 06:44:40 +0000 (06:44 +0000)]
Convert libui to Android.bp
am: 871dda3d64

Change-Id: If98fd233e72f8f159e181245d1077bbf55491b96

7 years agoDO NOT MERGE ANYWHERE: BufferQueue consumers: Add discardFreeBuffer method am: 821104...
Eino-Ville Talvala [Wed, 14 Sep 2016 05:58:05 +0000 (05:58 +0000)]
DO NOT MERGE ANYWHERE: BufferQueue consumers: Add discardFreeBuffer method am: 8211047138  -s ours am: 7b265d8ab5  -s ours am: e373a97bd7  -s ours am: 3f3171788d  -s ours
am: 3c62c98e12  -s ours

Change-Id: I66d6f2c53ff3a454f15783199df413a9a285219c

7 years agoDO NOT MERGE ANYWHERE: BufferQueue consumers: Add discardFreeBuffer method am: 821104...
Eino-Ville Talvala [Wed, 14 Sep 2016 05:18:49 +0000 (05:18 +0000)]
DO NOT MERGE ANYWHERE: BufferQueue consumers: Add discardFreeBuffer method am: 8211047138  -s ours am: 06d67b6cfd  -s ours
am: fe37d5175b  -s ours

Change-Id: I8bdcfaedd018be4f2773304f3e573cd05d182585

7 years agoMerge "Sensor: Make switching from data injection mode to normal mode more productive...
Peng Xu [Tue, 13 Sep 2016 19:56:10 +0000 (19:56 +0000)]
Merge "Sensor: Make switching from data injection mode to normal mode more productive" am: e6a4e9b04e am: 33685d3a84
am: 0674efdbfa

Change-Id: I056c8fbdf6d4392fc34b9e5b318d2e79afe499d9

7 years agoMerge changes I5041c541,I0eeafc99,Ie982d375 am: 30fcc9fc7f am: 3967e136b2
Dan Stoza [Tue, 13 Sep 2016 19:56:10 +0000 (19:56 +0000)]
Merge changes I5041c541,I0eeafc99,Ie982d375 am: 30fcc9fc7f am: 3967e136b2
am: 6bc61379cb

Change-Id: Iff7b7ac27bf2b15c1a1218a6e75826fb361476e9

7 years agoSquashed: gralloc1/binder/requestor am: f62eaf5994 am: c76b6fb0c8
Dan Stoza [Tue, 13 Sep 2016 19:56:09 +0000 (19:56 +0000)]
Squashed: gralloc1/binder/requestor am: f62eaf5994 am: c76b6fb0c8
am: 82e5e2edc7

Change-Id: I284ecdc896ae625ddce389b2bfc4d1f512c81358

7 years agolibui: Add Gralloc1On0Adapter and C++ shim am: eb03fd3a8b am: e9a0705cf5
Dan Stoza [Tue, 13 Sep 2016 19:56:08 +0000 (19:56 +0000)]
libui: Add Gralloc1On0Adapter and C++ shim am: eb03fd3a8b am: e9a0705cf5
am: 0d85101e33  -s ours

Change-Id: I12f55c47c12a7cf7e35c0db22ec4d0f8dbe028ac

7 years agolibagl: Switch from gralloc to GraphicBufferMapper am: 204240a88b am: 3a37f21808
Dan Stoza [Tue, 13 Sep 2016 19:55:57 +0000 (19:55 +0000)]
libagl: Switch from gralloc to GraphicBufferMapper am: 204240a88b am: 3a37f21808
am: 5752748514

Change-Id: I96f04b3e7777d76f3cba0a65beb673e2f0a24a9b

7 years agoMerge changes I1b74d58b,I38c6e8bc am: 9f41107732 am: 263f969ab9
Feng Yu [Tue, 13 Sep 2016 19:37:08 +0000 (19:37 +0000)]
Merge changes I1b74d58b,I38c6e8bc am: 9f41107732 am: 263f969ab9
am: 75ef58520f

Change-Id: I1f80b1f3c450adeaec86c6256d8c37919712ad60

7 years agoServiceManager: Allow system services running as secondary users to add services...
Arve Hjnnevg [Tue, 13 Sep 2016 19:36:55 +0000 (19:36 +0000)]
ServiceManager: Allow system services running as secondary users to add services am: 6b9c6d23f6 am: f84867654e
am: 26905f1768

Change-Id: Icaaf7c2ec9213fe2c06987cba36d633cbd1c26af

7 years agoServiceManager: Restore basic uid check am: 5fa90a063f am: 362687f1f4 -s ours
Arve Hjnnevg [Tue, 13 Sep 2016 19:36:53 +0000 (19:36 +0000)]
ServiceManager: Restore basic uid check am: 5fa90a063f am: 362687f1f4  -s ours
am: 7050b0c54d

Change-Id: Ib1d85df2219611befaeb35b919e24a715e34b405

7 years agoMerge "Sensor: Make switching from data injection mode to normal mode more productive...
Peng Xu [Tue, 13 Sep 2016 19:36:11 +0000 (19:36 +0000)]
Merge "Sensor: Make switching from data injection mode to normal mode more productive" am: e6a4e9b04e
am: 33685d3a84

Change-Id: I9577b95776c7c2022ddc25ae5f59da0f8b5f47eb

7 years agoMerge changes I5041c541,I0eeafc99,Ie982d375 am: 30fcc9fc7f
Dan Stoza [Tue, 13 Sep 2016 19:36:10 +0000 (19:36 +0000)]
Merge changes I5041c541,I0eeafc99,Ie982d375 am: 30fcc9fc7f
am: 3967e136b2

Change-Id: I274dfc359667b0396bab2e00ac2f0868a920e7d9

7 years agoSquashed: gralloc1/binder/requestor am: f62eaf5994
Dan Stoza [Tue, 13 Sep 2016 19:35:01 +0000 (19:35 +0000)]
Squashed: gralloc1/binder/requestor am: f62eaf5994
am: c76b6fb0c8

Change-Id: Ib81919fbddfb24d0429c12cc9fa1d516c195e5ac

7 years agolibui: Add Gralloc1On0Adapter and C++ shim am: eb03fd3a8b
Dan Stoza [Tue, 13 Sep 2016 19:35:01 +0000 (19:35 +0000)]
libui: Add Gralloc1On0Adapter and C++ shim am: eb03fd3a8b
am: e9a0705cf5

Change-Id: I5e67066454b265bf30f96be24e12ec22d4a0df13

7 years agolibagl: Switch from gralloc to GraphicBufferMapper am: 204240a88b
Dan Stoza [Tue, 13 Sep 2016 19:34:49 +0000 (19:34 +0000)]
libagl: Switch from gralloc to GraphicBufferMapper am: 204240a88b
am: 3a37f21808

Change-Id: I6acf3bc3d2ccbc88653cefe2012346c619b533ae

7 years agoMerge changes I1b74d58b,I38c6e8bc am: 9f41107732
Feng Yu [Tue, 13 Sep 2016 19:34:48 +0000 (19:34 +0000)]
Merge changes I1b74d58b,I38c6e8bc am: 9f41107732
am: 263f969ab9

Change-Id: I0c12ca4d1b51ccf02a27a97709d1963697bbacc8

7 years agoServiceManager: Allow system services running as secondary users to add services...
Arve Hjnnevg [Tue, 13 Sep 2016 19:34:35 +0000 (19:34 +0000)]
ServiceManager: Allow system services running as secondary users to add services am: 6b9c6d23f6
am: f84867654e

Change-Id: I24d5723689f41859edf73fdd3ce8d00f40ea28d0

7 years agoServiceManager: Restore basic uid check am: 5fa90a063f
Arve Hjnnevg [Tue, 13 Sep 2016 19:34:19 +0000 (19:34 +0000)]
ServiceManager: Restore basic uid check am: 5fa90a063f
am: 362687f1f4  -s ours

Change-Id: Id0b1cacaea12f53760ac8941a9bd321f8acee25f

7 years agoMerge "Sensor: Make switching from data injection mode to normal mode more productive"
Peng Xu [Tue, 13 Sep 2016 18:58:18 +0000 (18:58 +0000)]
Merge "Sensor: Make switching from data injection mode to normal mode more productive"
am: e6a4e9b04e

Change-Id: Ic5b3c3bb1856d70a0e12878f8ecdd2cf81868152

7 years agoMerge "Sensor: Make switching from data injection mode to normal mode more productive"
Peng Xu [Tue, 13 Sep 2016 18:52:47 +0000 (18:52 +0000)]
Merge "Sensor: Make switching from data injection mode to normal mode more productive"

7 years agoMerge "Increase YV12BufferPow2 test threshold" into nyc-mr1-dev am: 186c4c93a7
Kalle Raita [Tue, 13 Sep 2016 18:32:46 +0000 (18:32 +0000)]
Merge "Increase YV12BufferPow2 test threshold" into nyc-mr1-dev am: 186c4c93a7
am: 59d8480530

Change-Id: I9a3b8947a7631f2dced0c6e6c9fd35d290428539

7 years agoIncrease YV12BufferPow2 test threshold am: 6a2593ac53
Kalle Raita [Tue, 13 Sep 2016 18:32:45 +0000 (18:32 +0000)]
Increase YV12BufferPow2 test threshold am: 6a2593ac53
am: b384bc32a0

Change-Id: Idb99f4c01321a4400093ae8fc33cb3a1ab507653

7 years agoMerge "Increase YV12BufferPow2 test threshold" into nyc-mr1-dev
Kalle Raita [Tue, 13 Sep 2016 18:30:16 +0000 (18:30 +0000)]
Merge "Increase YV12BufferPow2 test threshold" into nyc-mr1-dev
am: 186c4c93a7

Change-Id: Ie0a96823e0f40392fa113a54ea9df49a3d5c34e5