OSDN Git Service

android-x86/frameworks-native.git
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 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 "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 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 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 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 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 "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

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

Change-Id: I632d9d46486edd1d603ec2289537c8f76553aea9

7 years agoMerge "Increase YV12BufferPow2 test threshold" into nyc-mr1-dev
TreeHugger Robot [Tue, 13 Sep 2016 18:25:41 +0000 (18:25 +0000)]
Merge "Increase YV12BufferPow2 test threshold" into nyc-mr1-dev

7 years agoMerge "Installd: Add a delete_odex command" into nyc-mr1-dev
Andreas Gampe [Tue, 13 Sep 2016 16:54:06 +0000 (16:54 +0000)]
Merge "Installd: Add a delete_odex command" into nyc-mr1-dev
am: a721faee57

Change-Id: I37aee2b83f5809f1a65aa2955a56d22390337473

7 years agoInstalld: Add a delete_odex command
Andreas Gampe [Tue, 13 Sep 2016 16:48:49 +0000 (16:48 +0000)]
Installd: Add a delete_odex command
am: 3964da0636

Change-Id: If7f8fa9f0bb0684e386df9ad2c61975e855ea8de

7 years agoMerge "Installd: Add a delete_odex command" into nyc-mr1-dev
Andreas Gampe [Tue, 13 Sep 2016 16:37:46 +0000 (16:37 +0000)]
Merge "Installd: Add a delete_odex command" into nyc-mr1-dev

7 years agoIncrease YV12BufferPow2 test threshold
Kalle Raita [Tue, 2 Aug 2016 23:19:15 +0000 (16:19 -0700)]
Increase YV12BufferPow2 test threshold

The NPOT version already has 3 as the threshold and at least one
platform seems to have diff of 3 in one of the internal pixels for POW2
variant.

Bug: 21306103
Bug: 30920650
Change-Id: I7882a6ff43ffc862d95fea32c8ee8e7f19fb759d
Cherry-pick from master (e3747fd25918c943caef4d9c7158a668c786c55d)

7 years agoInstalld: Add a delete_odex command
Andreas Gampe [Sat, 10 Sep 2016 00:07:04 +0000 (17:07 -0700)]
Installd: Add a delete_odex command

Add a command to delete odex files.

Bug: 31347757
Change-Id: I29bca8751bcee8d6981c682fbbc816c73b78ac68

7 years agoDO NOT MERGE ANYWHERE: BufferQueue consumers: Add discardFreeBuffer method am: 821104...
Eino-Ville Talvala [Mon, 12 Sep 2016 21:34:10 +0000 (21:34 +0000)]
DO NOT MERGE ANYWHERE: BufferQueue consumers: Add discardFreeBuffer method am: 8211047138  -s ours am: 7b265d8ab5  -s ours
am: e373a97bd7  -s ours

Change-Id: I6f1db057f3a65265635cd3883118f65832fc7b85

7 years agoDO NOT MERGE ANYWHERE: BufferQueue consumers: Add discardFreeBuffer method am: 821104...
Eino-Ville Talvala [Mon, 12 Sep 2016 19:31:58 +0000 (19:31 +0000)]
DO NOT MERGE ANYWHERE: BufferQueue consumers: Add discardFreeBuffer method am: 8211047138  -s ours
am: 7b265d8ab5  -s ours

Change-Id: I555ef520067d4300450ef3b0e91f127d06e55b66

7 years agoDO NOT MERGE ANYWHERE: BufferQueue consumers: Add discardFreeBuffer method
Eino-Ville Talvala [Mon, 12 Sep 2016 19:26:18 +0000 (19:26 +0000)]
DO NOT MERGE ANYWHERE: BufferQueue consumers: Add discardFreeBuffer method
am: 8211047138  -s ours

Change-Id: If827f77c9c8cb36ad3a8f2eaeb6157bc59258a7a

7 years agoMerge "Update default DispSync offsets" into nyc-mr1-dev
Dan Stoza [Mon, 12 Sep 2016 17:51:33 +0000 (17:51 +0000)]
Merge "Update default DispSync offsets" into nyc-mr1-dev
am: 0c083d43f2

Change-Id: I93de11437b64aa930f8edef39e0d86ccdbb532e4

7 years agoUpdate default DispSync offsets
Dan Stoza [Mon, 12 Sep 2016 17:48:33 +0000 (17:48 +0000)]
Update default DispSync offsets
am: 28ffe198bf

Change-Id: Id3d014c7a289890c97ca91980407e060e993bd46

7 years agoMerge "Update default DispSync offsets" into nyc-mr1-dev
Dan Stoza [Mon, 12 Sep 2016 17:37:52 +0000 (17:37 +0000)]
Merge "Update default DispSync offsets" into nyc-mr1-dev

7 years agoMerge "Fix dangerous unsafe_get() in SensorRecord" into nyc-mr1-dev
Peng Xu [Sat, 10 Sep 2016 03:08:57 +0000 (03:08 +0000)]
Merge "Fix dangerous unsafe_get() in SensorRecord" into nyc-mr1-dev
am: 93ec87d2da

Change-Id: I5370524796b847cd64867e9c0b229463da36ae5b

7 years agoFix dangerous unsafe_get() in SensorRecord
Peng Xu [Sat, 10 Sep 2016 03:08:56 +0000 (03:08 +0000)]
Fix dangerous unsafe_get() in SensorRecord
am: eb05947ae2

Change-Id: I0d2de87d4efcb1b7cedf9ccf067813e639659577

7 years agoMerge "Fix dangerous unsafe_get() in SensorRecord" into nyc-mr1-dev
Peng Xu [Sat, 10 Sep 2016 03:00:01 +0000 (03:00 +0000)]
Merge "Fix dangerous unsafe_get() in SensorRecord" into nyc-mr1-dev

7 years agoUnlink app image if copy fails for A/B OTA
Mathieu Chartier [Sat, 10 Sep 2016 01:06:49 +0000 (01:06 +0000)]
Unlink app image if copy fails for A/B OTA
am: a029c0726d

Change-Id: I06074c8c2f9ae317e607326b37c216a1ee2fd867

7 years agoUnlink app image if copy fails for A/B OTA
Mathieu Chartier [Fri, 9 Sep 2016 23:15:52 +0000 (16:15 -0700)]
Unlink app image if copy fails for A/B OTA

Usually this happens when the app was recompiled with interpret-only.
In this case, move_ab_path will fail for the app image. If this
occurs, delete the existing app image to not have a stale one wasting
storage space.

Test: Make fake AB ota, delete the a/b generated app image, take the
OTA, ensure there is no stale app image after reboot. Also tested
that other apps with valid app images still had an image.

Bug: 31323617
Change-Id: I699b5eb3dc8f82759c284a1d299865b2c3a890d0

7 years agoDO NOT MERGE ANYWHERE: BufferQueue consumers: Add discardFreeBuffer method
Eino-Ville Talvala [Fri, 22 Jul 2016 00:06:58 +0000 (17:06 -0700)]
DO NOT MERGE ANYWHERE: BufferQueue consumers: Add discardFreeBuffer method

This method releases all free buffers owned by the buffer queue,
in order to save memory (at the cost of potential future
reallocation of buffers).

Bug: 28695173
Change-Id: I458d10373e639e3144faf673af2ba01aca36e65a

7 years agoUpdate default DispSync offsets
Dan Stoza [Fri, 9 Sep 2016 20:50:19 +0000 (13:50 -0700)]
Update default DispSync offsets

Updates the default DispSync offsets to 1ms/1ms to avoid SurfaceFlinger
racing against hardware vsync on untuned video-mode panels, which can
result in a significant number of dropped frames. Also moves and
updates the documentation of the offsets, which used to live in
build/target/board/generic/BoardConfig.mk.

Bug: 30801895
Change-Id: I4cb09d840e2f16fb3d05df4d7abf58d9ba36f83b

7 years agomake sure anrd trace is being collected.
Zhengyin Qian [Thu, 8 Sep 2016 23:50:09 +0000 (16:50 -0700)]
make sure anrd trace is being collected.

If bugreport is being taken when system is very busy, there's a chance a small
delay in creating the trace file will cause dumpstate to skip including the
file in the report. This fix makes sure the trace has been created before
proceeding.

Change-Id: I0243b8da8ad285921206e8bba88ea80125eb96a7

7 years agoShow masked value for sensor with permission
Peng Xu [Thu, 8 Sep 2016 19:36:59 +0000 (12:36 -0700)]
Show masked value for sensor with permission

Show masked values in sensor event log in dump even if sensor
requires permission. Information about number of event and timestamp
will aid debugging.

Bug: 31065418

Change-Id: If038d2884a7b13b853183df037a9d2dcacfb5284
(cherry picked from commit 2c238fc281da578d382f64443a7c9d7df89b2f39)

7 years agoMerge "Boost priority of short-running SF FIFO threads slightly." into nyc-mr1-dev
Tim Murray [Thu, 8 Sep 2016 18:02:04 +0000 (18:02 +0000)]
Merge "Boost priority of short-running SF FIFO threads slightly." into nyc-mr1-dev
am: 4df766b00a

Change-Id: Ie290d90935ffa779bf14b22821f8ed848fe975e4

7 years agoBoost priority of short-running SF FIFO threads slightly.
Tim Murray [Thu, 8 Sep 2016 18:02:03 +0000 (18:02 +0000)]
Boost priority of short-running SF FIFO threads slightly.
am: 35520634e2

Change-Id: Ic4a53cc1399dff489414ac1c891a041c2500b8e2

7 years agoMerge "Boost priority of short-running SF FIFO threads slightly." into nyc-mr1-dev
Tim Murray [Thu, 8 Sep 2016 17:47:25 +0000 (17:47 +0000)]
Merge "Boost priority of short-running SF FIFO threads slightly." into nyc-mr1-dev

7 years agoMerge "SF/HWC2: Add a layer minidump" into nyc-mr1-dev
Dan Stoza [Thu, 8 Sep 2016 17:05:26 +0000 (17:05 +0000)]
Merge "SF/HWC2: Add a layer minidump" into nyc-mr1-dev
am: a020f00bc1

Change-Id: I8abb4cefe2d13090446ab13d0af345b46496074e

7 years agoSF/HWC2: Add a layer minidump
Dan Stoza [Thu, 8 Sep 2016 17:05:24 +0000 (17:05 +0000)]
SF/HWC2: Add a layer minidump
am: e22aec741f

Change-Id: Ib97254ebbf2e914c965b529e7d1e59a01db48214

7 years agoMerge "SF/HWC2: Add a layer minidump" into nyc-mr1-dev
Dan Stoza [Thu, 8 Sep 2016 16:56:23 +0000 (16:56 +0000)]
Merge "SF/HWC2: Add a layer minidump" into nyc-mr1-dev

7 years agoAdded a NETWORK trace tag.
Felipe Leme [Thu, 8 Sep 2016 00:39:30 +0000 (00:39 +0000)]
Added a NETWORK trace tag.
am: 0f97c1d775

Change-Id: Id0cb7f189d32e823cc93486edd3a4fcabd990890

7 years agoAdded a NETWORK trace tag.
Felipe Leme [Wed, 7 Sep 2016 18:33:26 +0000 (11:33 -0700)]
Added a NETWORK trace tag.

BUG: 31281543

Change-Id: Idc5759eec12f2704c9b9cc48db181f2e669ccc32

7 years agoBoost priority of short-running SF FIFO threads slightly.
Tim Murray [Wed, 7 Sep 2016 19:18:17 +0000 (12:18 -0700)]
Boost priority of short-running SF FIFO threads slightly.

The short-running FIFO threads should preempt the SurfaceFlinger main
thread in order to prevent deadlock.

bug 31223682

Change-Id: I29e7b4b8439bb876998a8aeeb2b8d6ee5b6b7d36

7 years agoMerge "libgui: Add null pointer check in setDisplaySurface" into nyc-mr1-dev
Pablo Ceballos [Thu, 1 Sep 2016 19:57:18 +0000 (19:57 +0000)]
Merge "libgui: Add null pointer check in setDisplaySurface" into nyc-mr1-dev
am: 669867835b

Change-Id: Iba59fc196d462f51160f77f85f55c20d45a8d75a

7 years agolibgui: Add null pointer check in setDisplaySurface
Pablo Ceballos [Thu, 1 Sep 2016 19:57:17 +0000 (19:57 +0000)]
libgui: Add null pointer check in setDisplaySurface
am: eddbef88cf

Change-Id: I3a3ddac84b3f38f6c911ff65642441fd187bbe54

7 years agoMerge "libgui: Add null pointer check in setDisplaySurface" into nyc-mr1-dev
TreeHugger Robot [Thu, 1 Sep 2016 19:46:30 +0000 (19:46 +0000)]
Merge "libgui: Add null pointer check in setDisplaySurface" into nyc-mr1-dev

7 years agolibgui: Add null pointer check in setDisplaySurface
Pablo Ceballos [Thu, 1 Sep 2016 18:21:21 +0000 (11:21 -0700)]
libgui: Add null pointer check in setDisplaySurface

Bug 31236602

Change-Id: I78d4e28e40db93f7e7e304355b370af0fa790b9d

7 years agoMerge "Surface: Add parcel/unparceling for missing field." into nyc-mr1-dev
Eino-Ville Talvala [Tue, 30 Aug 2016 18:05:28 +0000 (18:05 +0000)]
Merge "Surface: Add parcel/unparceling for missing field." into nyc-mr1-dev
am: 4a8039121f

Change-Id: I9a1b1288848ba6fa59af82bd44cf2c12f6f70f20

7 years agoSurface: Add parcel/unparceling for missing field.
Eino-Ville Talvala [Tue, 30 Aug 2016 18:05:27 +0000 (18:05 +0000)]
Surface: Add parcel/unparceling for missing field.
am: 529a103fde

Change-Id: I48340f1436279282ba55de0886213021db6608f5

7 years agoMerge "Surface: Add parcel/unparceling for missing field." into nyc-mr1-dev
Eino-Ville Talvala [Tue, 30 Aug 2016 17:44:07 +0000 (17:44 +0000)]
Merge "Surface: Add parcel/unparceling for missing field." into nyc-mr1-dev

7 years agoSurface: Add parcel/unparceling for missing field.
Eino-Ville Talvala [Tue, 30 Aug 2016 00:33:08 +0000 (17:33 -0700)]
Surface: Add parcel/unparceling for missing field.

Read/write new isSingleBuffered field in native code as well.
Currently just write 'no' unconditionally and discard on read.

Bug: 31162160
Change-Id: Icfb7a37fb37a41f6437fe08bcfad271474ba6983

7 years agoAdd requestor name to GraphicBuffer alloc metadata am: a1d24b45cc -s ours
Dan Stoza [Tue, 30 Aug 2016 00:10:28 +0000 (00:10 +0000)]
Add requestor name to GraphicBuffer alloc metadata am: a1d24b45cc  -s ours
am: 8e0b50b01a

Change-Id: Ia02634e20bbb6ab5be7a27857099c6e1792ef601

7 years agoAdd requestor name to GraphicBuffer alloc metadata
Dan Stoza [Mon, 29 Aug 2016 23:59:26 +0000 (23:59 +0000)]
Add requestor name to GraphicBuffer alloc metadata
am: a1d24b45cc  -s ours

Change-Id: I2108a173cf5b6df98c1e404ce634b2181ac4a536

7 years agoMerge "Fail setDisplaySurface if can't enable async" into nyc-mr1-dev
Pablo Ceballos [Mon, 29 Aug 2016 17:59:14 +0000 (17:59 +0000)]
Merge "Fail setDisplaySurface if can't enable async" into nyc-mr1-dev
am: 4db50cec13

Change-Id: I24fc902468e57e81d0e2536eeebf478db302cc63

7 years agoFail setDisplaySurface if can't enable async
Pablo Ceballos [Mon, 29 Aug 2016 17:59:14 +0000 (17:59 +0000)]
Fail setDisplaySurface if can't enable async
am: 1aad24c0c4

Change-Id: Ie81fb73d61e9c3a6cbb53d7877e8ebbcc9e5aea5

7 years agoMerge "Fail setDisplaySurface if can't enable async" into nyc-mr1-dev
Pablo Ceballos [Mon, 29 Aug 2016 17:41:57 +0000 (17:41 +0000)]
Merge "Fail setDisplaySurface if can't enable async" into nyc-mr1-dev

7 years agoAdd requestor name to GraphicBuffer alloc metadata
Dan Stoza [Tue, 23 Aug 2016 00:26:41 +0000 (17:26 -0700)]
Add requestor name to GraphicBuffer alloc metadata

Adds a requestor name (usually the BufferQueue consumer's name) to the
metadata that GraphicBufferAllocator stores on allocation so that
`dumpsys SurfaceFlinger` can attempt to attribute buffer usage to the
correct client.

Bug: 30776557
Change-Id: I6e0f346584c871bb3b9d5481f82b697b0475a916

7 years agoMerge "Add requestor name to GraphicBuffer alloc metadata" into nyc-mr1-dev
Dan Stoza [Thu, 25 Aug 2016 16:56:20 +0000 (16:56 +0000)]
Merge "Add requestor name to GraphicBuffer alloc metadata" into nyc-mr1-dev
am: af671072ca

Change-Id: I6c09c1e7f8e8a4ad2185f808350ab010aca68aa2

7 years agoAdd requestor name to GraphicBuffer alloc metadata
Dan Stoza [Thu, 25 Aug 2016 16:56:20 +0000 (16:56 +0000)]
Add requestor name to GraphicBuffer alloc metadata
am: d4079aff75

Change-Id: I1848ee0b2fc0686a661072e14f042606fd0c209a

7 years agoMerge "Add requestor name to GraphicBuffer alloc metadata" into nyc-mr1-dev
Dan Stoza [Thu, 25 Aug 2016 16:48:16 +0000 (16:48 +0000)]
Merge "Add requestor name to GraphicBuffer alloc metadata" into nyc-mr1-dev

7 years agoAdd mangle table in dump_iptables
Calvin On [Thu, 25 Aug 2016 05:18:06 +0000 (05:18 +0000)]
Add mangle table in dump_iptables
am: 329b90922b

Change-Id: I91942e4662bb11317d0d66cfa9233f0ae5116308

7 years agoMerge "Revert "Hold a wakelock during dumpstate."" into cw-f-dev
Wei Liu [Thu, 25 Aug 2016 00:02:04 +0000 (00:02 +0000)]
Merge "Revert "Hold a wakelock during dumpstate."" into cw-f-dev

7 years agoRevert "Hold a wakelock during dumpstate."
Wei Liu [Wed, 24 Aug 2016 22:08:56 +0000 (22:08 +0000)]
Revert "Hold a wakelock during dumpstate."

This reverts commit d7803db0e98809e5a17e78885d452479349f339f.

Change-Id: I20066ca30a1b53507099dc62f27c3275781c61ee

7 years agoAdd requestor name to GraphicBuffer alloc metadata
Dan Stoza [Tue, 23 Aug 2016 00:26:41 +0000 (17:26 -0700)]
Add requestor name to GraphicBuffer alloc metadata

Adds a requestor name (usually the BufferQueue consumer's name) to the
metadata that GraphicBufferAllocator stores on allocation so that
`dumpsys SurfaceFlinger` can attempt to attribute buffer usage to the
correct client.

Bug: 30776557
Change-Id: I6e0f346584c871bb3b9d5481f82b697b0475a916

7 years agoAdd mangle table in dump_iptables
Calvin On [Fri, 12 Aug 2016 23:33:12 +0000 (16:33 -0700)]
Add mangle table in dump_iptables

Bug: 30839895
Change-Id: I3f939c74246db96f65e7aa06b60c3b9cf6a02606

7 years agoCreate graphic buffer using binder interfaces
Craig Donner [Tue, 23 Aug 2016 16:31:46 +0000 (16:31 +0000)]
Create graphic buffer using binder interfaces
am: 686715335a

Change-Id: I9233639d9d2474fdbb7bcd369b82ae0ed3ee83f3

7 years agoCreate graphic buffer using binder interfaces
Craig Donner [Mon, 18 Jul 2016 17:19:54 +0000 (10:19 -0700)]
Create graphic buffer using binder interfaces

Using binder interfaces rather than directly allocating the buffer prevents
SELinux warnings.

Bug: 29402015

Change-Id: I26616dcabf46b5419f0841873faaa6a3ee87ff68

7 years agoFix dangerous unsafe_get() in SensorRecord
Peng Xu [Fri, 12 Aug 2016 23:39:44 +0000 (16:39 -0700)]
Fix dangerous unsafe_get() in SensorRecord

Change raw pointers to wp<> and constify relevant lines in
SensorRecord.

Bug: 30261110

Change-Id: I7f28c593366af44192991061fa5f71cf925b22a8
(cherry picked from commit ded526e8c3539b5986b46dffc1ff8ab15d7da570)

7 years agoMerge "Hold a wakelock during dumpstate." into cw-f-dev
Wei Liu [Fri, 19 Aug 2016 17:06:55 +0000 (17:06 +0000)]
Merge "Hold a wakelock during dumpstate." into cw-f-dev

7 years agoServiceManager: Allow system services running as secondary users to add services...
Arve Hjnnevg [Fri, 19 Aug 2016 13:47:27 +0000 (13:47 +0000)]
ServiceManager: Allow system services running as secondary users to add services am: e6bbe69ba7 am: 2cb14836ac am: c29c3734af am: ce0e72911c am: 2c39ea1025 am: fa5aafc9f3 am: 1f36bcd2ba am: 75469c1fc9 am: 083f4ecca2 am: b10cd89507
am: 46eee7d103

Change-Id: Ie304611aec749c44cc455ec1f1ab43e65926334f

7 years agoServiceManager: Allow system services running as secondary users to add services...
Arve Hjnnevg [Fri, 19 Aug 2016 13:22:58 +0000 (13:22 +0000)]
ServiceManager: Allow system services running as secondary users to add services am: e6bbe69ba7 am: 2cb14836ac am: c29c3734af am: ce0e72911c am: 2c39ea1025 am: fa5aafc9f3 am: 1f36bcd2ba am: 75469c1fc9 am: 083f4ecca2
am: b10cd89507

Change-Id: I78dd4d0aa005ffa5e88b2dbce5464c771cb3b98f

7 years agoServiceManager: Allow system services running as secondary users to add services...
Arve Hjnnevg [Fri, 19 Aug 2016 01:21:01 +0000 (01:21 +0000)]
ServiceManager: Allow system services running as secondary users to add services am: e6bbe69ba7 am: 2cb14836ac am: c29c3734af am: ce0e72911c am: 2c39ea1025 am: fa5aafc9f3 am: 1f36bcd2ba am: 75469c1fc9
am: 083f4ecca2

Change-Id: Ie1931218577e24e4ab0eb7328ccff60a2ca54400

7 years agoServiceManager: Allow system services running as secondary users to add services...
Arve Hjnnevg [Fri, 19 Aug 2016 01:15:05 +0000 (01:15 +0000)]
ServiceManager: Allow system services running as secondary users to add services am: e6bbe69ba7 am: 2cb14836ac am: c29c3734af am: ce0e72911c am: 2c39ea1025 am: fa5aafc9f3 am: 1f36bcd2ba
am: 75469c1fc9

Change-Id: Icbe1e240a365b6f473ee060cdec384db3b49db24

7 years agoServiceManager: Allow system services running as secondary users to add services...
Arve Hjnnevg [Fri, 19 Aug 2016 01:11:01 +0000 (01:11 +0000)]
ServiceManager: Allow system services running as secondary users to add services am: e6bbe69ba7 am: 2cb14836ac am: c29c3734af am: ce0e72911c am: 2c39ea1025 am: fa5aafc9f3
am: 1f36bcd2ba

Change-Id: Ic4225509044c66a55910b827e8076cf20c4b5bba

7 years agoServiceManager: Allow system services running as secondary users to add services...
Arve Hjnnevg [Fri, 19 Aug 2016 01:07:30 +0000 (01:07 +0000)]
ServiceManager: Allow system services running as secondary users to add services am: e6bbe69ba7 am: 2cb14836ac am: c29c3734af am: ce0e72911c am: 2c39ea1025
am: fa5aafc9f3

Change-Id: I2b83c66f04f7dbfb1740d525ba6d424c9ea42c2b

7 years agoServiceManager: Allow system services running as secondary users to add services...
Arve Hjnnevg [Fri, 19 Aug 2016 01:04:30 +0000 (01:04 +0000)]
ServiceManager: Allow system services running as secondary users to add services am: e6bbe69ba7 am: 2cb14836ac am: c29c3734af am: ce0e72911c
am: 2c39ea1025

Change-Id: I355431fb0c566965759cd3d07d481c475cb494d0

7 years agoServiceManager: Allow system services running as secondary users to add services...
Arve Hjnnevg [Fri, 19 Aug 2016 01:01:29 +0000 (01:01 +0000)]
ServiceManager: Allow system services running as secondary users to add services am: e6bbe69ba7 am: 2cb14836ac am: c29c3734af
am: ce0e72911c

Change-Id: I2c36fdb4c92359a03af1c8a563d4d73b9e2898a2

7 years agoServiceManager: Allow system services running as secondary users to add services...
Arve Hjnnevg [Fri, 19 Aug 2016 00:58:34 +0000 (00:58 +0000)]
ServiceManager: Allow system services running as secondary users to add services am: e6bbe69ba7 am: 2cb14836ac
am: c29c3734af

Change-Id: I72992d6662bbace5cecce2b96389139c96d2e181

7 years agoServiceManager: Allow system services running as secondary users to add services...
Arve Hjnnevg [Fri, 19 Aug 2016 00:49:29 +0000 (00:49 +0000)]
ServiceManager: Allow system services running as secondary users to add services am: e6bbe69ba7
am: 2cb14836ac

Change-Id: Ia7deecedc7eff4fb35742ba9c7475ca32ecf48aa

7 years agoServiceManager: Allow system services running as secondary users to add services
Arve Hjnnevg [Fri, 19 Aug 2016 00:46:28 +0000 (00:46 +0000)]
ServiceManager: Allow system services running as secondary users to add services
am: e6bbe69ba7

Change-Id: Iebb7be5ff42026adb2ff2d2b610902b995acdbc0

7 years agoHold a wakelock during dumpstate.
Wei Liu [Thu, 18 Aug 2016 18:01:05 +0000 (11:01 -0700)]
Hold a wakelock during dumpstate.

b/30832947

Change-Id: I9f6f6a9a9cef80aafea5eeb7769f4ac19baba3e5

7 years agoServiceManager: Allow system services running as secondary users to add services
Arve Hjønnevåg [Thu, 18 Aug 2016 22:42:35 +0000 (15:42 -0700)]
ServiceManager: Allow system services running as secondary users to add services

This should be reverted when all system services have been cleaned up to not
do this. A process looking up a service while running in the background will
see the service registered by the active user (assuming the service is
registered on every user switch), not the service registered by the user that
the process itself belongs to.

BUG: 30795333
Change-Id: I1b74d58be38ed358f43c163692f9e704f8f31dbe

7 years agoMerge "Add anrd trace to bugreport" into cw-f-dev
TreeHugger Robot [Wed, 17 Aug 2016 20:01:48 +0000 (20:01 +0000)]
Merge "Add anrd trace to bugreport" into cw-f-dev

7 years agoOtapreopt: Allow A/B dexopt only when bootcomplete
Andreas Gampe [Wed, 17 Aug 2016 18:31:02 +0000 (18:31 +0000)]
Otapreopt: Allow A/B dexopt only when bootcomplete
am: 90ba9eb2f1

Change-Id: I99c3b9b773499969069d9b08682d435f838f9f23

7 years agoAdd anrd trace to bugreport
Zhengyin Qian [Wed, 10 Aug 2016 23:48:14 +0000 (16:48 -0700)]
Add anrd trace to bugreport

Bug: 30672082
Change-Id: If009f6339f47ceeaf6452172d18cfdae564c36ad

7 years agoOtapreopt: Allow A/B dexopt only when bootcomplete
Andreas Gampe [Wed, 17 Aug 2016 00:43:33 +0000 (17:43 -0700)]
Otapreopt: Allow A/B dexopt only when bootcomplete

Under certain circumstances cmd may not return because it is waiting
for a service manager. Avoid this situation by restricting the otapreopt
script to only do work when the system has completed boot (which
means that a service manager must exist).

Bug: 30797145
Change-Id: Ic1445e20f1ca06fb38e7707771bde818836c3adc

7 years agootapreopt: Collect and print size of artifacts
Andreas Gampe [Mon, 15 Aug 2016 15:12:27 +0000 (15:12 +0000)]
otapreopt: Collect and print size of artifacts
am: e7d5552677

Change-Id: Ife7a3b6fb0bcc68ce5ca11ea2474e9f8fa8b9c2f

7 years agootapreopt: Collect and print size of artifacts
Andreas Gampe [Sat, 13 Aug 2016 02:35:57 +0000 (19:35 -0700)]
otapreopt: Collect and print size of artifacts

Collect and print the size of artifacts when moving after a reboot.
This helps in diagnosing issues after the fact.

Bug: 30832951
Change-Id: Iee410adf59dcbb74fa4b49edb27d028025cd8bf9

7 years agoMerge "DO NOT MERGE SF: Add property to disable HWC virtual displays" into nyc-mr1-dev
Dan Stoza [Fri, 12 Aug 2016 16:44:25 +0000 (16:44 +0000)]
Merge "DO NOT MERGE SF: Add property to disable HWC virtual displays" into nyc-mr1-dev
am: e26ce9f612

Change-Id: I2976ce23d74de6cdaa2285c39d13d2a80e5eaf7a

7 years agoDO NOT MERGE SF: Add property to disable HWC virtual displays
Dan Stoza [Fri, 12 Aug 2016 16:44:25 +0000 (16:44 +0000)]
DO NOT MERGE SF: Add property to disable HWC virtual displays
am: 3cf4bfe236

Change-Id: I615cdf9466cbb37d32890f126dc0be1fecf9a50a

7 years agoMerge "DO NOT MERGE SF: Add property to disable HWC virtual displays" into nyc-mr1-dev
Dan Stoza [Fri, 12 Aug 2016 16:36:04 +0000 (16:36 +0000)]
Merge "DO NOT MERGE SF: Add property to disable HWC virtual displays" into nyc-mr1-dev

7 years agoDO NOT MERGE SF: Add property to disable HWC virtual displays
Dan Stoza [Tue, 2 Aug 2016 17:27:31 +0000 (10:27 -0700)]
DO NOT MERGE SF: Add property to disable HWC virtual displays

Adds the property debug.sf.disable_hwc_vds, which will disable the use
of Hardware Composer virtual displays inside SurfaceFlinger (falling
back to SurfaceFlinger management and client composition of such
displays).

Also adds a Binder debug interface for controlling this behavior.

Bug: 30510632
Change-Id: I2c1a199213a24195b144bfa0c0f1679f2dfd0668

7 years agoMerge "SF: Fix a couple of Layer ref count issues" into nyc-mr1-dev
Dan Stoza [Tue, 9 Aug 2016 22:29:58 +0000 (22:29 +0000)]
Merge "SF: Fix a couple of Layer ref count issues" into nyc-mr1-dev
am: 1ff2b85b03

Change-Id: Iac13fc45e6b5e5dd469ffd42394aa64a65f3d457

7 years agoSF: Fix a couple of Layer ref count issues
Dan Stoza [Tue, 9 Aug 2016 22:29:58 +0000 (22:29 +0000)]
SF: Fix a couple of Layer ref count issues
am: 92cd24e5f6

Change-Id: Ia62ec102448136979df26ba907bfb1852d4d0373

7 years agoMerge "SF: Fix a couple of Layer ref count issues" into nyc-mr1-dev
Dan Stoza [Tue, 9 Aug 2016 22:25:37 +0000 (22:25 +0000)]
Merge "SF: Fix a couple of Layer ref count issues" into nyc-mr1-dev

7 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36 -s ours am:...
Arve Hjnnevg [Tue, 9 Aug 2016 21:24:26 +0000 (21:24 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36  -s ours am: a82f82293a am: 1c220583e4 am: ce472fbb54  -s ours am: e8cb9c8982 am: 1414d7b372 am: b8d937caeb am: 1864a8748d  -s ours am: a4ef62b859
am: 27f9c82730

Change-Id: I2187dc6218065463b04bdb49a65754ad89ed28b2

7 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340 am: 171ab27931...
Arve Hjnnevg [Tue, 9 Aug 2016 21:24:26 +0000 (21:24 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340 am: 171ab27931 am: 101c678909  -s ours am: e55418a857 am: 419626b496 am: 12151706b2 am: 899d956cf3  -s ours am: 66818cfeae
am: d3866c201b

Change-Id: If5210c25834538adb53c6f8b8310cfda18c3478e

7 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36 -s ours am:...
Arve Hjnnevg [Tue, 9 Aug 2016 21:22:25 +0000 (21:22 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36  -s ours am: a82f82293a am: 1c220583e4 am: ce472fbb54  -s ours am: e8cb9c8982 am: 1414d7b372 am: b8d937caeb am: 1864a8748d  -s ours
am: a4ef62b859

Change-Id: I471e71c1abbb065d2e3c87671dadbff614fc4a9d

7 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36 -s ours am:...
Arve Hjnnevg [Tue, 9 Aug 2016 21:18:53 +0000 (21:18 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36  -s ours am: a82f82293a am: 1c220583e4 am: ce472fbb54  -s ours am: e8cb9c8982 am: 1414d7b372 am: b8d937caeb
am: 1864a8748d  -s ours

Change-Id: I2e022f5c528ded283a40ad3e3a4ac230070a242b

7 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340 am: 171ab27931...
Arve Hjnnevg [Tue, 9 Aug 2016 21:16:24 +0000 (21:16 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340 am: 171ab27931 am: 101c678909  -s ours am: e55418a857 am: 419626b496 am: 12151706b2 am: 899d956cf3  -s ours
am: 66818cfeae

Change-Id: Ie8be0fb9b943e5bc8b1046e8e3eb3384e52b223a

7 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36 -s ours am:...
Arve Hjnnevg [Tue, 9 Aug 2016 21:16:23 +0000 (21:16 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36  -s ours am: a82f82293a am: 1c220583e4 am: ce472fbb54  -s ours am: e8cb9c8982 am: 1414d7b372
am: b8d937caeb

Change-Id: I82f6a95334c5c8e484260f120b54ac1d386274da

7 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36 -s ours am:...
Arve Hjnnevg [Tue, 9 Aug 2016 21:13:23 +0000 (21:13 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36  -s ours am: a82f82293a am: 1c220583e4 am: ce472fbb54  -s ours am: e8cb9c8982
am: 1414d7b372

Change-Id: I50541ba686cafded699568f710627bf3e4f8aa1d