OSDN Git Service
Matthew Bouyack [Fri, 7 Oct 2016 22:06:15 +0000 (15:06 -0700)]
In SurfaceFlinger, test fence before merging
If the old fence for a given layer has already expired, we can replace
it with the new fence rather than merging the two.
This saves 300-400us per frame on Android Wear
Change-Id: I5d907c336c7383ae4e2e0f71e42f23749494a359
Dan Stoza [Thu, 13 Oct 2016 16:45:00 +0000 (09:45 -0700)]
libui: Change hasSignaled to return optional<bool>
Since the android::Fence::wait() call can possibly return an error,
we need some way of indicating to the caller of hasSignaled that a
fence that has not yet signaled (because it is in an error state) will
never signal. To do this, we return an optional<bool>, where true and
false indicate both that the fence is valid and that it has or hasn't
signaled. If an error is returned from wait(), we return a default
optional value (that is neither true nor false).
Test: m
Change-Id: Ibce48cd2e71ddb8ccf6cabe3284afe0efca8c132
Dan Stoza [Wed, 12 Oct 2016 17:35:17 +0000 (10:35 -0700)]
libui: Add hasSignaled() method to Fence
Adds a hasSignaled() method to android::Fence. This will make it easier
to write client code that only cares whether a fence has signaled, and
allows such code to gain the performance benefits of wait(0) (which is
significantly faster than getSignalTime()) while still being obvious
about what it is trying to do.
Test: m
Change-Id: Ia28ce6cff3860a171254ea20a24f3f1bfbc67eb8
Wei Wang [Wed, 12 Oct 2016 01:06:17 +0000 (01:06 +0000)]
Move atrace init into on fs trigger
am:
f920891b71
Change-Id: If6deb43479999924cfce63ca6b3994f9f7276c39
Wei Wang [Tue, 11 Oct 2016 22:26:06 +0000 (15:26 -0700)]
Move atrace init into on fs trigger
sysfs should be ready on ealier stage than boot
Bug:
32025203
Test: take systrace
Change-Id: Id73b6959f3075dc793d93551963193a211060da8
Matthew Bouyack [Mon, 10 Oct 2016 18:03:37 +0000 (18:03 +0000)]
Merge "Use snprintf for SurfaceFlinger fence name" into cw-f-dev
Matthew Bouyack [Fri, 7 Oct 2016 21:26:47 +0000 (14:26 -0700)]
Use snprintf for SurfaceFlinger fence name
snprintf is significantly faster than String8::format
This change saves ~50us per frame on Android Wear
Change-Id: I6ac47c2434662ca561208daae232f02a9f136aaf
Matthew Bouyack [Thu, 6 Oct 2016 21:27:20 +0000 (21:27 +0000)]
Merge "Eliminate unnecessary calls to onBufferReleased" into cw-f-dev
Wei Liu [Thu, 6 Oct 2016 19:54:04 +0000 (19:54 +0000)]
Dumpstate should hold a wakelock to save bug report time. DO NOT MERGE.
am:
2cc37eaaa7
Change-Id: Ic58338aaf3dd67b9256e42fe4d61416b35c367de
Matthew Bouyack [Mon, 3 Oct 2016 23:24:26 +0000 (16:24 -0700)]
Eliminate unnecessary calls to onBufferReleased
This change adds a callback to ProducerListener to indicate whether the
listener needs the 'onBufferReleased' notification. This allows us to
avoid making that binder call unnecessarily, saving ~170us per frame on
Android Wear.
By default the new callback returns true, so behavior for existing
clients should be unchanged. Only the DummyProducerListener returns
false.
Also note that it would be simpler to just pass NULL for the
ProducerListener if not for that fact that we still need it for death
notification.
Bug: b/
31122630
Change-Id: I730834218a055d89e89f876dd77da8127eb78000
Wei Liu [Fri, 26 Aug 2016 21:51:42 +0000 (14:51 -0700)]
Dumpstate should hold a wakelock to save bug report time. DO NOT MERGE.
BUG:
31828706
BUG:
30832947
Change-Id: I0a4b1fcce91caa96ccbc4e890d9968e3033487de
(cherry picked from commit
f87959e00732d7d737527f1248a71adea99ae29d)
Erik Kline [Fri, 30 Sep 2016 17:04:03 +0000 (17:04 +0000)]
Merge "Add "ip xfrm policy" to dumpstate output" into nyc-mr1-dev
am:
a4bb5c7173
Change-Id: Iad51735819ce9e2d57072e657aa99d471b5baedc
Erik Kline [Fri, 30 Sep 2016 17:04:02 +0000 (17:04 +0000)]
Add "ip xfrm policy" to dumpstate output
am:
53ca94ab34
Change-Id: I0b7b5f39acd68f0e176b4c684c108c7d906e5515
TreeHugger Robot [Fri, 30 Sep 2016 17:00:16 +0000 (17:00 +0000)]
Merge "Add "ip xfrm policy" to dumpstate output" into nyc-mr1-dev
Jesse Hall [Wed, 28 Sep 2016 23:01:38 +0000 (23:01 +0000)]
EGL: check that display is still valid
am:
d6e9946cdd
Change-Id: I6d5f5e6f4790f16c1bd52f96743c7e138973a1b4
Jesse Hall [Wed, 28 Sep 2016 18:26:57 +0000 (11:26 -0700)]
EGL: check that display is still valid
Bug:
31522731
Change-Id: I84d82e55aba5b58dfdbcac9e208c36767fbedfd1
Erik Kline [Wed, 28 Sep 2016 08:26:26 +0000 (17:26 +0900)]
Add "ip xfrm policy" to dumpstate output
Bug:
30869013
Change-Id: I1f0e5d820f0153484c38ecb0f9c764fca02d786c
Peng Xu [Wed, 28 Sep 2016 03:31:35 +0000 (03:31 +0000)]
Merge "[sensorservice] Fix inconsistent states in SensorDevice" into cw-f-dev
Lorenzo Colitti [Tue, 27 Sep 2016 13:14:25 +0000 (13:14 +0000)]
Add socket dumps via ss to bugreports.
am:
d3b809baff
Change-Id: I85daa9d7faf6cb0067955d235e4f12fe807adf5c
Peng Xu [Mon, 26 Sep 2016 18:28:32 +0000 (11:28 -0700)]
[sensorservice] Fix inconsistent states in SensorDevice
This CL avoids inconsistent disabled client list when sensorservice
is in restricted mode and a restricted sensor event connection is
destroyed.
The inconsistency can cause registerLister error in sensor CTS.
Also removed the additional logging message since they are no longer
necessary.
Bug:
28533594
Test: Running "cts-tradefed run singleCommand cts-dev --module
CtsHardwareTestCases --test android.hardware.cts.SensorBatchingTests"
continuously while keep registering and unregistering sensor listener
in a separate app (e.g. enable BreakIt mode in SensorLogger).
Change-Id: I601aea87c88511f5543a80c4921ee4822cb89dff
Lorenzo Colitti [Mon, 26 Sep 2016 04:37:45 +0000 (13:37 +0900)]
Add socket dumps via ss to bugreports.
Bug:
23113288
Change-Id: I6304425f968fcb22c75c3f6e64bf7992e34e0889
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
Robert Carr [Thu, 22 Sep 2016 23:24:11 +0000 (23:24 +0000)]
Surface: Add force disconnection method.
am:
97b9c86338
Change-Id: Ia9f9dbdcbd9527d54dacb2cdc90eda443230e8d9
Jeff Sharkey [Thu, 22 Sep 2016 22:41:00 +0000 (22:41 +0000)]
Recursively restorecon when SELinux label changes.
am:
993de79607
Change-Id: Ibf9b6beaa58e7e6c2f006e8c6f064330624eb29f
Rob Carr [Thu, 22 Sep 2016 21:17:40 +0000 (21:17 +0000)]
Merge "Surface: Add force disconnection method." into nyc-mr1-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
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
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
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
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
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
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
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
Kalle Raita [Tue, 13 Sep 2016 18:30:15 +0000 (18:30 +0000)]
Increase YV12BufferPow2 test threshold
am:
6a2593ac53
Change-Id: I632d9d46486edd1d603ec2289537c8f76553aea9
TreeHugger Robot [Tue, 13 Sep 2016 18:25:41 +0000 (18:25 +0000)]
Merge "Increase YV12BufferPow2 test threshold" 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
Andreas Gampe [Tue, 13 Sep 2016 16:48:49 +0000 (16:48 +0000)]
Installd: Add a delete_odex command
am:
3964da0636
Change-Id: If7f8fa9f0bb0684e386df9ad2c61975e855ea8de
Andreas Gampe [Tue, 13 Sep 2016 16:37:46 +0000 (16:37 +0000)]
Merge "Installd: Add a delete_odex command" into nyc-mr1-dev
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)
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
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
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
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
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
Dan Stoza [Mon, 12 Sep 2016 17:48:33 +0000 (17:48 +0000)]
Update default DispSync offsets
am:
28ffe198bf
Change-Id: Id3d014c7a289890c97ca91980407e060e993bd46
Dan Stoza [Mon, 12 Sep 2016 17:37:52 +0000 (17:37 +0000)]
Merge "Update default DispSync offsets" 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
Peng Xu [Sat, 10 Sep 2016 03:08:56 +0000 (03:08 +0000)]
Fix dangerous unsafe_get() in SensorRecord
am:
eb05947ae2
Change-Id: I0d2de87d4efcb1b7cedf9ccf067813e639659577
Peng Xu [Sat, 10 Sep 2016 03:00:01 +0000 (03:00 +0000)]
Merge "Fix dangerous unsafe_get() in SensorRecord" into nyc-mr1-dev
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
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
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
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
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
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)
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
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
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
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
Dan Stoza [Thu, 8 Sep 2016 17:05:24 +0000 (17:05 +0000)]
SF/HWC2: Add a layer minidump
am:
e22aec741f
Change-Id: Ib97254ebbf2e914c965b529e7d1e59a01db48214
Dan Stoza [Thu, 8 Sep 2016 16:56:23 +0000 (16:56 +0000)]
Merge "SF/HWC2: Add a layer minidump" into nyc-mr1-dev
Felipe Leme [Thu, 8 Sep 2016 00:39:30 +0000 (00:39 +0000)]
Added a NETWORK trace tag.
am:
0f97c1d775
Change-Id: Id0cb7f189d32e823cc93486edd3a4fcabd990890
Felipe Leme [Wed, 7 Sep 2016 18:33:26 +0000 (11:33 -0700)]
Added a NETWORK trace tag.
BUG:
31281543
Change-Id: Idc5759eec12f2704c9b9cc48db181f2e669ccc32
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Calvin On [Thu, 25 Aug 2016 05:18:06 +0000 (05:18 +0000)]
Add mangle table in dump_iptables
am:
329b90922b
Change-Id: I91942e4662bb11317d0d66cfa9233f0ae5116308
Wei Liu [Thu, 25 Aug 2016 00:02:04 +0000 (00:02 +0000)]
Merge "Revert "Hold a wakelock during dumpstate."" into cw-f-dev
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
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
Calvin On [Fri, 12 Aug 2016 23:33:12 +0000 (16:33 -0700)]
Add mangle table in dump_iptables
Bug:
30839895
Change-Id: I3f939c74246db96f65e7aa06b60c3b9cf6a02606
Craig Donner [Tue, 23 Aug 2016 16:31:46 +0000 (16:31 +0000)]
Create graphic buffer using binder interfaces
am:
686715335a
Change-Id: I9233639d9d2474fdbb7bcd369b82ae0ed3ee83f3
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
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)
Wei Liu [Fri, 19 Aug 2016 17:06:55 +0000 (17:06 +0000)]
Merge "Hold a wakelock during dumpstate." into cw-f-dev
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
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
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
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
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
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
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
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
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
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