OSDN Git Service

android-x86/frameworks-native.git
8 years agoBQ: Handle errors in GraphicBuffer/Fence unflatten
Pablo Ceballos [Wed, 6 Jul 2016 22:24:54 +0000 (15:24 -0700)]
BQ: Handle errors in GraphicBuffer/Fence unflatten

Bug 29873396

Change-Id: Ieab38091f60722a11e227aecac7508fc11d9f58b

8 years agoresolve merge conflicts of 8e3e92b to nyc-mr1-dev
Pablo Ceballos [Thu, 30 Jun 2016 23:48:02 +0000 (16:48 -0700)]
resolve merge conflicts of 8e3e92b to nyc-mr1-dev

Change-Id: Ic67f0894e68ea5276eb9187a13cd24f105d55d68

8 years agoBQ: Handle buffer allocation failure
Pablo Ceballos [Wed, 29 Jun 2016 22:08:33 +0000 (15:08 -0700)]
BQ: Handle buffer allocation failure

Return the slot to the mFreeSlots if we fail to allocate.

Bug 29873396

Change-Id: Icafc5c64c7233d47e160f7a56e5a314e4a01611d

8 years agodumpsys: report per-service dump times
mukesh agrawal [Thu, 9 Jun 2016 01:16:36 +0000 (18:16 -0700)]
dumpsys: report per-service dump times

In WiFi soak testing, we've seen several cases where
dumpsys times out. We've been unable to pin down the
cause of the timeouts, as there's no single service
that is obviously hung.

Add reporting of service dump times, to help figure
out why dumpsys is timing out.

BUG=29090949
TEST=manual

Manual test
- load build on bullhead
$ adb shell dumpsys | grep 'was the duration'
- see non-zero values

Change-Id: Iaba60d840ac55cba171a3ccbc74c2aee8b23dce6
(cherry picked from commit 4e4c548437b7cc7748e97ecc74a525e26a441cdb)

8 years agodumpstate: change OOM adjustment proc interface for modern kernel
Wei Wang [Tue, 28 Jun 2016 21:32:35 +0000 (14:32 -0700)]
dumpstate: change OOM adjustment proc interface for modern kernel

Bug: 29831067
Change-Id: I72e2862daad5da99e7d767d7e41bde96750840ce

8 years agoBQ: Add and expose a unique id
Pablo Ceballos [Tue, 28 Jun 2016 00:56:53 +0000 (17:56 -0700)]
BQ: Add and expose a unique id

Bug 29422927

Change-Id: I80eab94f073ebc378302f00fa86a740c3643657e

8 years agodumpstate: Also pick up /sys/fs/pstore/console-ramoops-0 for LAST KMSG
Mark Salyzyn [Fri, 24 Jun 2016 23:31:24 +0000 (23:31 +0000)]
dumpstate: Also pick up /sys/fs/pstore/console-ramoops-0 for LAST KMSG
am: ced6078b0e

Change-Id: Iacabdb52ae0e4ad3a6c27e952fa9ce572b282904

8 years agodumpstate: Also pick up /sys/fs/pstore/console-ramoops-0 for LAST KMSG
Mark Salyzyn [Fri, 24 Jun 2016 21:06:15 +0000 (14:06 -0700)]
dumpstate: Also pick up /sys/fs/pstore/console-ramoops-0 for LAST KMSG

(cherry pick from commit 7d0a762ecaf9f4d005f0f6db913034c2e084d362)

Bug: 29639467
Change-Id: Iba0b1754eaebfb2b0624dcbef522b7d8456eeb50

8 years agodumpstate: sscanf requires an asciiz string
Mark Salyzyn [Mon, 16 May 2016 15:33:59 +0000 (08:33 -0700)]
dumpstate: sscanf requires an asciiz string

(cherry pick from commit 290f4b97bb736b0652eac9667965444393e683ec)

Bug: 28770668
Change-Id: Ice56b129a243296b2691d55e8f8c35b478b1f481

8 years agoMerge \"Sensor: Make getId() more varied\" into nyc-dev
Greg Kaiser [Thu, 23 Jun 2016 03:31:59 +0000 (03:31 +0000)]
Merge \"Sensor: Make getId() more varied\" into nyc-dev
am: c0ca0ceaa5

Change-Id: I6b6ecc30646e6e9a912a1ad096bd93fea341968b

8 years agoMerge "Sensor: Make getId() more varied" into nyc-dev
Greg Kaiser [Thu, 23 Jun 2016 03:25:44 +0000 (03:25 +0000)]
Merge "Sensor: Make getId() more varied" into nyc-dev

8 years agoSensor: Make getId() more varied
Greg Kaiser [Tue, 21 Jun 2016 23:11:14 +0000 (16:11 -0700)]
Sensor: Make getId() more varied

Apps from different developers will now receive a different
ID for the same dynamic sensor.  Additionally, all apps
will now receive a different/new ID for the same dynamic
sensor after a factory reset.

Bug: 2877559029547335
Change-Id: I368655b0e4bdc16736a7fd163ea3f7dad2886b3b

8 years agoEnable fingerprint sensor navigation to invoke QuickSettings
Jim Miller [Wed, 22 Jun 2016 22:58:31 +0000 (15:58 -0700)]
Enable fingerprint sensor navigation to invoke QuickSettings
- rename "FP_NAV" to more generic "SYSTEM_NAVIGATION" based on other reviews.

Fixes bug 28869612

Change-Id: I384c0fa372a2ecda7250fccd0dbdfd6312423a85

8 years agoMerge \"Run iptables as root.\" into nyc-dev
Felipe Leme [Wed, 22 Jun 2016 20:29:24 +0000 (20:29 +0000)]
Merge \"Run iptables as root.\" into nyc-dev
am: ab69cc1f11

Change-Id: I4ca2677e7b99cfaa1ccc60c3efb2df642f3a7408

8 years agoMerge "Run iptables as root." into nyc-dev
TreeHugger Robot [Wed, 22 Jun 2016 20:24:53 +0000 (20:24 +0000)]
Merge "Run iptables as root." into nyc-dev

8 years agoMerge changes from topic 'seamless-rotation' into nyc-mr1-dev
TreeHugger Robot [Wed, 22 Jun 2016 17:40:46 +0000 (17:40 +0000)]
Merge changes from topic 'seamless-rotation' into nyc-mr1-dev

* changes:
  Reset mFreezePositionUpdates earlier.
  SurfaceControl: Add getTransformToDisplayInverse
  Change setPositionAppliesWithResize to apply to all geometry.

8 years agoMerge "Attach profiles to bug reports" into nyc-mr1-dev
David Brazdil [Wed, 22 Jun 2016 16:38:43 +0000 (16:38 +0000)]
Merge "Attach profiles to bug reports" into nyc-mr1-dev

8 years agoMerge "gralloc1: Add mutexes" into nyc-mr1-dev
TreeHugger Robot [Wed, 22 Jun 2016 01:08:26 +0000 (01:08 +0000)]
Merge "gralloc1: Add mutexes" into nyc-mr1-dev

8 years agoReset mFreezePositionUpdates earlier.
Robert Carr [Tue, 21 Jun 2016 04:49:49 +0000 (21:49 -0700)]
Reset mFreezePositionUpdates earlier.

We are resetting mFreezePositionUpdates
too late, in the case that the state changes during
latch buffer, we will return to recompute the visible regions
before updating mActiveBuffer.

Bug: 28823590
Change-Id: I17afc32d55d092ea0814b560846b922dd9e24c43

8 years agoSurfaceControl: Add getTransformToDisplayInverse
Robert Carr [Mon, 20 Jun 2016 18:55:28 +0000 (11:55 -0700)]
SurfaceControl: Add getTransformToDisplayInverse

For seamless rotation, the window manager needs
access to this flag, as it will apply the inverse
display transform itself to all other windows.

Bug: 28823590
Change-Id: Ifeee1078a9cb4cd01c8052570c137c6228b2f13d

8 years agoChange setPositionAppliesWithResize to apply to all geometry.
Robert Carr [Thu, 16 Jun 2016 22:18:02 +0000 (15:18 -0700)]
Change setPositionAppliesWithResize to apply to all geometry.

To support seamless rotation, change setPositionAppliesWithResize
to also include the crop. As the transformation matrix is already
frozen during resize, this enables the window manager to set the
total geometry state before and after resize in a race free fashion.

Bug: 28823590
Change-Id: I3f8f0e162b7ef4e9403c1220c7e4191b3ef30526

8 years agogralloc1: Add mutexes
Dan Stoza [Tue, 21 Jun 2016 23:22:06 +0000 (16:22 -0700)]
gralloc1: Add mutexes

Adds mutexes to protect both the buffer list and the descriptor list
from concurrent access

Bug: 29420918
Change-Id: I4d14353ceb167276570c56c9f92d48b28b2d4c53

8 years agoHWC2: Don't set null handle for client layers
Dan Stoza [Tue, 21 Jun 2016 22:02:23 +0000 (15:02 -0700)]
HWC2: Don't set null handle for client layers

Removes the code that explicitly set a null buffer handle for client
layers.

Bug: 29463310
Change-Id: I570e6041ba72d64971bb6c364e8e7b6f84eeff08

8 years agoHWC2: Hook up to BoardConfig variable
Dan Stoza [Tue, 21 Jun 2016 17:00:37 +0000 (10:00 -0700)]
HWC2: Hook up to BoardConfig variable

Uses TARGET_USES_HWC2 to enable the HWC2 code path in SurfaceFlinger

Bug: 27211042
Change-Id: I7b7e3e3f7a918e74df0be27418196c81b4332564

8 years agoMerge "HWC2: Skip validate/present if display is off" into nyc-mr1-dev
Dan Stoza [Mon, 20 Jun 2016 17:23:50 +0000 (17:23 +0000)]
Merge "HWC2: Skip validate/present if display is off" into nyc-mr1-dev

8 years agoMerge \"SensorList: Don\'t output UUIDs\" into nyc-dev
Greg Kaiser [Mon, 20 Jun 2016 17:22:10 +0000 (17:22 +0000)]
Merge \"SensorList: Don\'t output UUIDs\" into nyc-dev
am: a0c08e2f8f

Change-Id: I867a9d0636c7617c84abc996e7ff62e733b27e11

8 years agoRun iptables as root.
Felipe Leme [Sat, 18 Jun 2016 00:37:13 +0000 (17:37 -0700)]
Run iptables as root.

iptables requires root access and su is not available on user builds,
hence it must be ran before dropping uid to shell user.

BUG: 29455997

Change-Id: I10c6337b411875b061ae9556b6e9c44f83301ae1

8 years agoMerge "SensorList: Don't output UUIDs" into nyc-dev
Greg Kaiser [Mon, 20 Jun 2016 16:24:51 +0000 (16:24 +0000)]
Merge "SensorList: Don't output UUIDs" into nyc-dev

8 years agoAttach profiles to bug reports
David Brazdil [Fri, 3 Jun 2016 13:40:44 +0000 (14:40 +0100)]
Attach profiles to bug reports

Includes the entire '/data/misc/profiles' folder in the bug report
ZIP file if not user build.

Bug: 28610953
Change-Id: I99d46f024e5557cf94e6045a51c46a605a00c52b

8 years agoMerge \"BufferQueueProducer: Signal consumer when a buffer is detached\" into nyc-dev
Eino-Ville Talvala [Sat, 18 Jun 2016 08:28:41 +0000 (08:28 +0000)]
Merge \"BufferQueueProducer: Signal consumer when a buffer is detached\" into nyc-dev
am: 51ed38bb13

Change-Id: I7f901c66dd9e2f62bdc15c8b768f27003aa46611

8 years agoMerge "BufferQueueProducer: Signal consumer when a buffer is detached" into nyc-dev
Eino-Ville Talvala [Sat, 18 Jun 2016 02:10:11 +0000 (02:10 +0000)]
Merge "BufferQueueProducer: Signal consumer when a buffer is detached" into nyc-dev

8 years agovulkan: Updated IHV documentation
Jesse Hall [Sat, 18 Jun 2016 01:56:55 +0000 (01:56 +0000)]
vulkan: Updated IHV documentation
am: c2f184d9d8

Change-Id: I4ca9873ec84e5e02e6bb5e303dbce4604cd43e6f

8 years agoSensorList: Don't output UUIDs
Greg Kaiser [Fri, 17 Jun 2016 22:27:12 +0000 (15:27 -0700)]
SensorList: Don't output UUIDs

We don't want the UUIDs of dynamic sensors to be in the logs.

Bug:28775590
Change-Id: I85ca83e0ad1a0a8ed6618999bd22d86d7ef972f9

8 years agovulkan: Updated IHV documentation
Jesse Hall [Fri, 17 Jun 2016 20:54:53 +0000 (13:54 -0700)]
vulkan: Updated IHV documentation

Also deleted DevelopersGuide.pdf, which was very out of date and has
been superceded by public documentation on developer.android.com.

Change-Id: I7e47177191a773eea6db3ee2af0a287877cb8532

8 years agoHWC2: Skip validate/present if display is off
Dan Stoza [Fri, 17 Jun 2016 18:29:01 +0000 (11:29 -0700)]
HWC2: Skip validate/present if display is off

Adds checks to ensure that the display is still on before attempting
to call into prepareFrame/commit (which in turn call into
validate/present).

Bug: 28596387
Change-Id: Iad87f02c3e44e86db43a15c258ee66b0cde14faa

8 years agoMerge "Rename problematic entries." into nyc-mr1-dev
TreeHugger Robot [Fri, 17 Jun 2016 06:34:39 +0000 (06:34 +0000)]
Merge "Rename problematic entries." into nyc-mr1-dev

8 years agoRename problematic entries.
Felipe Leme [Thu, 16 Jun 2016 17:55:26 +0000 (10:55 -0700)]
Rename problematic entries.

Zip entries with extensions such as .jar could cause the zip file to be
rejected as an attachment by some email providers. To circunvent such
issue, they will renamed with a '.renamed' suffix.

BUG: 28610953
BUG: 29395357
Change-Id: I9718821a53fdf0ce4f00ed360eddbf7fb4ca1cd6

8 years agoMerge "HWC2On1Adapter: populateCapabilities: fix virtual display query" into nyc...
Dan Stoza [Thu, 16 Jun 2016 17:21:47 +0000 (17:21 +0000)]
Merge "HWC2On1Adapter: populateCapabilities: fix virtual display query" into nyc-mr1-dev

8 years agoMerge \"Revert \"Attach profiles to bug reports\"\" into nyc-dev
David Brazdil [Thu, 16 Jun 2016 13:26:38 +0000 (13:26 +0000)]
Merge \"Revert \"Attach profiles to bug reports\"\" into nyc-dev
am: ea1aa91a25

Change-Id: I549f25a1e2bc90ff326a4d218cae5d2ea58571f3

8 years agoMerge "Revert "Attach profiles to bug reports"" into nyc-dev
David Brazdil [Thu, 16 Jun 2016 13:11:05 +0000 (13:11 +0000)]
Merge "Revert "Attach profiles to bug reports"" into nyc-dev

8 years agoRevert "Attach profiles to bug reports"
David Brazdil [Thu, 16 Jun 2016 09:11:31 +0000 (09:11 +0000)]
Revert "Attach profiles to bug reports"

This reverts commit 0faf2b870f934c1cdd883d29642fd84da3b352e2.

Bug: 28610953
Bug: 29395357
Change-Id: I609fe344dfc61311e37b91b48480d9392764a598

8 years agoHWC2On1Adapter: populateCapabilities: fix virtual display query
Fred Fettinger [Tue, 14 Jun 2016 22:53:10 +0000 (17:53 -0500)]
HWC2On1Adapter: populateCapabilities: fix virtual display query

To determine whether a HWComposer implementation supports virtual
displays, HWC2On1Adapter::populateCapabilities() calls
query(HWC_DISPLAY_TYPES_SUPPORTED). However, it incorrectly uses
HWC_DISPLAY_VIRTUAL instead of HWC_DISPLAY_VIRTUAL_BIT. Update the
check to use the correct bitmask.

Change-Id: I1ad95d5222a0353816ee65936cf033e5244c80cc

8 years agoMerge "Fix typo in dump cmd line." into nyc-mr1-dev
Junda Liu [Tue, 14 Jun 2016 20:10:30 +0000 (20:10 +0000)]
Merge "Fix typo in dump cmd line." into nyc-mr1-dev

8 years agoMerge changes from topic 'gralloc1' into nyc-mr1-dev
Dan Stoza [Tue, 14 Jun 2016 19:59:37 +0000 (19:59 +0000)]
Merge changes from topic 'gralloc1' into nyc-mr1-dev

* changes:
  libui: Convert Allocator and Mapper to gralloc1
  libui: Adds C++ shim for gralloc1
  libui: Add Gralloc1On0Adapter

8 years agoFix typo in dump cmd line.
Junda Liu [Tue, 14 Jun 2016 07:09:10 +0000 (00:09 -0700)]
Fix typo in dump cmd line.

Bug: b/29342758
Change-Id: Ic9ac15a2ade08a2cd21721721af357aa75a35ca5

8 years agoMerge \"Revert \"GLConsumer: add build-time disable of gpu protected content\"\"...
Craig Donner [Mon, 13 Jun 2016 23:25:23 +0000 (23:25 +0000)]
Merge \"Revert \"GLConsumer: add build-time disable of gpu protected content\"\" into nyc-dev
am: e1e1e75173

Change-Id: Iea28323a8e7bd2333d396b70703ac4b1a99b1911

8 years agoMerge "Revert "GLConsumer: add build-time disable of gpu protected content"" into...
Craig Donner [Mon, 13 Jun 2016 23:13:02 +0000 (23:13 +0000)]
Merge "Revert "GLConsumer: add build-time disable of gpu protected content"" into nyc-dev

8 years agoRevert "GLConsumer: add build-time disable of gpu protected content"
Craig Donner [Mon, 13 Jun 2016 22:14:15 +0000 (22:14 +0000)]
Revert "GLConsumer: add build-time disable of gpu protected content"

This reverts commit dea97b7aa2b5cfbb7d42f30bcbf86a01778b609b.

Bug: 28545166

Change-Id: I4b069e14c2b99e190ebdea6df1ed83827ffe17b6

8 years agolibui: Convert Allocator and Mapper to gralloc1
Dan Stoza [Thu, 2 Jun 2016 01:21:44 +0000 (18:21 -0700)]
libui: Convert Allocator and Mapper to gralloc1

Converts GraphicBufferAllocator and GraphicBufferMapper to speak
gralloc 1.0 (via the C++ shim and optionally the 1On0 adapter) instead
of gralloc 0.x.

Bug: 28401203
Change-Id: Ie1649f0ee72801579be2c2d3c47177b52962a825

8 years agolibui: Adds C++ shim for gralloc1
Dan Stoza [Fri, 20 May 2016 19:14:37 +0000 (12:14 -0700)]
libui: Adds C++ shim for gralloc1

Adds a C++ shim which wraps a gralloc1 device and provides a somewhat
nicer interface to the rest of the system.

Bug: 28401203
Change-Id: I934ed41999bd4b9aa04d9ad8d40e7f8fba6f30ee

8 years agolibui: Add Gralloc1On0Adapter
Dan Stoza [Mon, 11 Jan 2016 23:21:07 +0000 (15:21 -0800)]
libui: Add Gralloc1On0Adapter

Adds an adapter which provides the gralloc1 interface on top of a
gralloc 0.x device.

Bug: 28401203
Change-Id: I0eeafc998b56e2e2fc39de6fad41e3ed2e19658a

8 years agoSF: Fix HWC2 build break
Pablo Ceballos [Mon, 13 Jun 2016 20:21:41 +0000 (13:21 -0700)]
SF: Fix HWC2 build break

Bug 29330291

Change-Id: Ifd9993ac0321c7436a17c3e64925d415ec993003

8 years agoMerge \"Fixed file descriptor leak in IMemory\" into nyc-dev
John Eckerdal [Mon, 13 Jun 2016 18:42:08 +0000 (18:42 +0000)]
Merge \"Fixed file descriptor leak in IMemory\" into nyc-dev
am: a13a22649b

Change-Id: Id692c99cbe9274e51f6d65cb38b3e0a7293e7518

8 years agoMerge "Fixed file descriptor leak in IMemory" into nyc-dev
Amith Yamasani [Mon, 13 Jun 2016 18:37:40 +0000 (18:37 +0000)]
Merge "Fixed file descriptor leak in IMemory" into nyc-dev

8 years agoAdd FrameStats default constructor am: 9a8c42a72b am: 8cd7d257de am: 67105cc24d am...
Pablo Ceballos [Mon, 13 Jun 2016 18:35:52 +0000 (18:35 +0000)]
Add FrameStats default constructor am: 9a8c42a72b am: 8cd7d257de am: 67105cc24d am: b990d75315 am: a1952f0a6d am: 81d678cf18 am: ed968dc61c am: d1d1d4e922
am: 324b700b4b

Change-Id: I9654230b1817fa5bd16ab995d53ffbad3f25d68f

8 years agoAdd FrameStats default constructor am: 9a8c42a72b am: 8cd7d257de am: 67105cc24d am...
Pablo Ceballos [Mon, 13 Jun 2016 18:26:04 +0000 (18:26 +0000)]
Add FrameStats default constructor am: 9a8c42a72b am: 8cd7d257de am: 67105cc24d am: b990d75315 am: a1952f0a6d am: 81d678cf18 am: ed968dc61c
am: d1d1d4e922

Change-Id: I581c4df5e3866e8a2326830e6b9e6ca2ffb3bf1c

8 years agoAdd FrameStats default constructor am: 9a8c42a72b am: 8cd7d257de am: 67105cc24d am...
Pablo Ceballos [Mon, 13 Jun 2016 18:22:14 +0000 (18:22 +0000)]
Add FrameStats default constructor am: 9a8c42a72b am: 8cd7d257de am: 67105cc24d am: b990d75315 am: a1952f0a6d am: 81d678cf18
am: ed968dc61c

Change-Id: Id30d35b89c46fda89990bed6acf932240bdb6890

8 years agoAdd FrameStats default constructor am: 9a8c42a72b am: 8cd7d257de am: 67105cc24d am...
Pablo Ceballos [Mon, 13 Jun 2016 18:18:09 +0000 (18:18 +0000)]
Add FrameStats default constructor am: 9a8c42a72b am: 8cd7d257de am: 67105cc24d am: b990d75315 am: a1952f0a6d
am: 81d678cf18

Change-Id: I24f1e2594fdbd2022a534332009cad9564becd54

8 years agoAdd FrameStats default constructor am: 9a8c42a72b am: 8cd7d257de am: 67105cc24d am...
Pablo Ceballos [Mon, 13 Jun 2016 18:13:16 +0000 (18:13 +0000)]
Add FrameStats default constructor am: 9a8c42a72b am: 8cd7d257de am: 67105cc24d am: b990d75315
am: a1952f0a6d

Change-Id: Icc23cc2a483b13c6ac2134008d553574fffe06f4

8 years agoAdd FrameStats default constructor am: 9a8c42a72b am: 8cd7d257de am: 67105cc24d
Pablo Ceballos [Mon, 13 Jun 2016 18:09:20 +0000 (18:09 +0000)]
Add FrameStats default constructor am: 9a8c42a72b am: 8cd7d257de am: 67105cc24d
am: b990d75315

Change-Id: Ibc0caec8dc613a6701791f1a633f3793522615af

8 years agoAdd FrameStats default constructor am: 9a8c42a72b am: 8cd7d257de
Pablo Ceballos [Mon, 13 Jun 2016 18:04:17 +0000 (18:04 +0000)]
Add FrameStats default constructor am: 9a8c42a72b am: 8cd7d257de
am: 67105cc24d

Change-Id: Icf85c944e561763b0a9c353f84d614a992168c20

8 years agoAdd FrameStats default constructor am: 9a8c42a72b
Pablo Ceballos [Mon, 13 Jun 2016 18:00:25 +0000 (18:00 +0000)]
Add FrameStats default constructor am: 9a8c42a72b
am: 8cd7d257de

Change-Id: Ic0df6b15e28ac2acda566fa7f30c9460d36f2a00

8 years agoAdd FrameStats default constructor
Pablo Ceballos [Mon, 13 Jun 2016 17:56:06 +0000 (17:56 +0000)]
Add FrameStats default constructor
am: 9a8c42a72b

Change-Id: Ib78d68c71438391711ea3b91102408d5ad0b966b

8 years agoMerge "Read gsm.version.baseband for radio version." into nyc-mr1-dev
TreeHugger Robot [Mon, 13 Jun 2016 17:52:55 +0000 (17:52 +0000)]
Merge "Read gsm.version.baseband for radio version." into nyc-mr1-dev

8 years agoMerge "Otapreopt: Send progress updates to update_engine" into nyc-mr1-dev
TreeHugger Robot [Mon, 13 Jun 2016 16:52:17 +0000 (16:52 +0000)]
Merge "Otapreopt: Send progress updates to update_engine" into nyc-mr1-dev

8 years agoMerge \"Fix assignment of 565 format when creating native client buffers.\" into...
Craig Donner [Mon, 13 Jun 2016 16:49:25 +0000 (16:49 +0000)]
Merge \"Fix assignment of 565 format when creating native client buffers.\" into nyc-dev
am: 518e336d3f

Change-Id: I3ff59132bd91b02a62beddc78713e2cea7798db2

8 years agoMerge "Fix assignment of 565 format when creating native client buffers." into nyc-dev
Craig Donner [Mon, 13 Jun 2016 16:36:51 +0000 (16:36 +0000)]
Merge "Fix assignment of 565 format when creating native client buffers." into nyc-dev

8 years agoRead gsm.version.baseband for radio version.
Junda Liu [Sun, 12 Jun 2016 18:51:54 +0000 (11:51 -0700)]
Read gsm.version.baseband for radio version.

gsm.version.baseband is the right property to use for actual radio version.

Bug: b/29296893
Change-Id: Idf7b743f35f23261c0086449131188b1e52fb424

8 years agoFix assignment of 565 format when creating native client buffers.
Craig Donner [Sat, 11 Jun 2016 00:20:15 +0000 (17:20 -0700)]
Fix assignment of 565 format when creating native client buffers.

Change-Id: Ia379f469a6e18e1f31748dc97aa596d03e507f84
Fixes: 29279664

8 years agoFixed -t order (should be *after* dumpsys :-)
Felipe Leme [Sat, 11 Jun 2016 00:12:30 +0000 (00:12 +0000)]
Fixed -t order (should be *after* dumpsys :-)
am: 3f83dbe2e0

Change-Id: I047fe3a0f3990eb6827484124889f0052536bcd1

8 years agoFixed -t order (should be *after* dumpsys :-)
Felipe Leme [Fri, 10 Jun 2016 23:56:33 +0000 (16:56 -0700)]
Fixed -t order (should be *after* dumpsys :-)

BUG: 29042642
Change-Id: I1b88634b0152f849a57f8e82adc82bdc5e609db7

8 years agoOtapreopt: Send progress updates to update_engine
Andreas Gampe [Fri, 10 Jun 2016 22:08:53 +0000 (15:08 -0700)]
Otapreopt: Send progress updates to update_engine

Use the new OtaDexoptService progress API to send updates back
to update_engine.

Bug: 25612095
Bug: 29223204
Change-Id: Ie8162946d18f6fa78649a40ad5d3949d31a181cd

8 years agoBufferQueueProducer: Signal consumer when a buffer is detached
Eino-Ville Talvala [Fri, 10 Jun 2016 21:21:02 +0000 (14:21 -0700)]
BufferQueueProducer: Signal consumer when a buffer is detached

When a buffer is detached, it should be cleared from the consumer-side
cache as well.

Not doing so can leak buffers no longer owned by the queue for extended
lengths of time, depending on the exact usage patterns of the producer
and consumer.

Bug: 28695173
Change-Id: I2c618be51f2c827d92d0e19b92a2d5befda87c38

8 years agoMerge \"Set version to 1.0\" into nyc-dev
Felipe Leme [Fri, 10 Jun 2016 20:58:08 +0000 (20:58 +0000)]
Merge \"Set version to 1.0\" into nyc-dev
am: 6ab3c01d18

Change-Id: Id05c75208093eaaab3e0732bf9c1767535e6d230

8 years agoMerge "Set version to 1.0" into nyc-dev
TreeHugger Robot [Fri, 10 Jun 2016 20:40:20 +0000 (20:40 +0000)]
Merge "Set version to 1.0" into nyc-dev

8 years agoMerge \"Expose more useful functions that can be used by dumpstate_board().\" into...
Calvin On [Fri, 10 Jun 2016 00:26:47 +0000 (00:26 +0000)]
Merge \"Expose more useful functions that can be used by dumpstate_board().\" into nyc-dev
am: f678562fa4

Change-Id: I4a598f406bbbb9cd546a0e2f59dd085622b95b30

8 years agoMerge "Expose more useful functions that can be used by dumpstate_board()." into...
Felipe Leme [Fri, 10 Jun 2016 00:19:18 +0000 (00:19 +0000)]
Merge "Expose more useful functions that can be used by dumpstate_board()." into nyc-dev

8 years agoFixed file descriptor leak in IMemory
John Eckerdal [Thu, 21 Apr 2016 13:04:14 +0000 (15:04 +0200)]
Fixed file descriptor leak in IMemory

Include dup in critical section to avoid multiple dup calls from
different threads.
The leak happens more frequently since patch in frameworks/av -
6773d4777f4ccbbe6377e4ae1b42c117066ae6ba when recording video since it
will access IMemory from CameraUtils::isNativeHandleMetadata

Bug: 28924660
Author: Henrik Antonsson <henrik.antonsson@sonymobile.com>
Change-Id: I769a914c3adc505b522659a0c43719fb2922e6fd

8 years agoMerge "Plumbing for getting FenceTracker timestamps" into nyc-mr1-dev
Pablo Ceballos [Thu, 9 Jun 2016 21:10:16 +0000 (21:10 +0000)]
Merge "Plumbing for getting FenceTracker timestamps" into nyc-mr1-dev

8 years agoOtapreopt: Filter preopted system apps
Andreas Gampe [Wed, 8 Jun 2016 22:11:37 +0000 (15:11 -0700)]
Otapreopt: Filter preopted system apps

The tool will receive requests to compile preopted system apps, as
we can't detect changes right now and need to be conservative. As
some apps cannot be stripped (signed before being preopted), they
can be re-compiled on device, producing stale files that won't be
cleaned up.

Add code to detect this situation and avoid a compile.

Bug: 25612095
Change-Id: I5f489e61b8d4e5b619cbaa01f6c59880479a46cd

8 years agoMerge \"Improved error handling.\" into nyc-dev
Felipe Leme [Wed, 8 Jun 2016 23:41:18 +0000 (23:41 +0000)]
Merge \"Improved error handling.\" into nyc-dev
am: bbd27419ac

Change-Id: I55a0eb324d18c7081acb6387b51c2fdf4f7b2a62

8 years agoMerge "Improved error handling." into nyc-dev
TreeHugger Robot [Wed, 8 Jun 2016 23:35:11 +0000 (23:35 +0000)]
Merge "Improved error handling." into nyc-dev

8 years agoMerge "Installd: Move app image A/B artifact" into nyc-mr1-dev
Andreas Gampe [Wed, 8 Jun 2016 22:34:32 +0000 (22:34 +0000)]
Merge "Installd: Move app image A/B artifact" into nyc-mr1-dev

8 years agoImproved error handling.
Felipe Leme [Wed, 8 Jun 2016 18:11:01 +0000 (11:11 -0700)]
Improved error handling.

adb bugreport now properly handles stderr.

BUG: 29161586
Change-Id: I7a59d1feadda3d160eae6fe447a7a3c7e0843cbb

8 years agoMerge \"Explicitly sets dumpsys timeout.\" into nyc-dev
Felipe Leme [Wed, 8 Jun 2016 18:35:11 +0000 (18:35 +0000)]
Merge \"Explicitly sets dumpsys timeout.\" into nyc-dev
am: 12af7d51a1

Change-Id: Ieab6b2ad648ff58b3bee7ffc8d4fbc3cfb516225

8 years agoMerge "Explicitly sets dumpsys timeout." into nyc-dev
TreeHugger Robot [Wed, 8 Jun 2016 18:14:00 +0000 (18:14 +0000)]
Merge "Explicitly sets dumpsys timeout." into nyc-dev

8 years agoInstalld: Move app image A/B artifact
Andreas Gampe [Mon, 6 Jun 2016 22:36:18 +0000 (15:36 -0700)]
Installd: Move app image A/B artifact

In addition to odex, also move art file.

Bug: 25612095
Change-Id: I69f4c2b1e7283c9a9c361f57f5233e66679c5c28

8 years agoMerge "Installd: Change app image name computation" into nyc-mr1-dev
TreeHugger Robot [Wed, 8 Jun 2016 17:35:43 +0000 (17:35 +0000)]
Merge "Installd: Change app image name computation" into nyc-mr1-dev

8 years agoExplicitly sets dumpsys timeout.
Felipe Leme [Wed, 8 Jun 2016 16:51:29 +0000 (09:51 -0700)]
Explicitly sets dumpsys timeout.

The run_command() function takes a timeout as argument, and dumpsys can
also optionally takes a timeout with the -t argument, hence it makes
sense to pass the same value for both (otherwise dumpsys will timeout in
10s).

BUG: 29042642
Change-Id: Ib6e987d94e966686bab71223d7f910af9e549814

8 years agoMerge "libagl: Switch from gralloc to GraphicBufferMapper" into nyc-mr1-dev
Dan Stoza [Wed, 8 Jun 2016 16:31:30 +0000 (16:31 +0000)]
Merge "libagl: Switch from gralloc to GraphicBufferMapper" into nyc-mr1-dev

8 years agoMerge \"Attach profiles to bug reports\" into nyc-dev
David Brazdil [Wed, 8 Jun 2016 15:47:02 +0000 (15:47 +0000)]
Merge \"Attach profiles to bug reports\" into nyc-dev
am: 6d98bac4ab

Change-Id: I14404b7188e7be6c426bd550868badc3a8a91a07

8 years agoMerge "Attach profiles to bug reports" into nyc-dev
David Brazdil [Wed, 8 Jun 2016 15:36:45 +0000 (15:36 +0000)]
Merge "Attach profiles to bug reports" into nyc-dev

8 years agoAttach profiles to bug reports
David Brazdil [Fri, 3 Jun 2016 13:40:44 +0000 (14:40 +0100)]
Attach profiles to bug reports

Includes the entire '/data/misc/profiles' folder in the bug report
ZIP file if not user build.

Bug: 28610953
Change-Id: I99d46f024e5557cf94e6045a51c46a605a00c52b

8 years agoInstalld: Fix bad merge
Andreas Gampe [Wed, 8 Jun 2016 06:16:46 +0000 (23:16 -0700)]
Installd: Fix bad merge

Don't cut off the leading dex location character.

Bug: 25612095
Change-Id: Iad556a0bb48c57f3c68ee75ee41f14e88d96b1a8

8 years agoInstalld: Change app image name computation
Andreas Gampe [Sat, 4 Jun 2016 04:13:50 +0000 (21:13 -0700)]
Installd: Change app image name computation

Refactor computation to take A/B OTAs into account.

Fix a const issue.

Bug: 25612095
Change-Id: I5cf79def532d1eeec4b35bb80014376959083a83

8 years agoInstalld: Refactor dexopt to scoped file descriptor
Andreas Gampe [Fri, 3 Jun 2016 23:09:32 +0000 (16:09 -0700)]
Installd: Refactor dexopt to scoped file descriptor

Refactor the goto-fail cleanup to a unique_fd-like wrapper that
includes a potential cleanup step. In preparation for changes for
A/B OTA.

Bug: 25612095
Change-Id: If6cca85c12e0951bc468cb4f212b2f2d288c6041

8 years agoPlumbing for getting FenceTracker timestamps
Pablo Ceballos [Fri, 5 Feb 2016 03:10:51 +0000 (19:10 -0800)]
Plumbing for getting FenceTracker timestamps

Change-Id: I1ebee9e42e28658bd3a2b161fdaabb7da756d8f3

8 years agoMerge "Installd: Remove string-helpers" into nyc-mr1-dev
Andreas Gampe [Tue, 7 Jun 2016 21:06:56 +0000 (21:06 +0000)]
Merge "Installd: Remove string-helpers" into nyc-mr1-dev

8 years agoMerge "SurfaceFlinger: Add mode to apply position with resize." into nyc-dev
Robert Carr [Tue, 7 Jun 2016 20:47:02 +0000 (20:47 +0000)]
Merge "SurfaceFlinger: Add mode to apply position with resize." into nyc-dev
am: c3da482bb8

* commit 'c3da482bb8081ee2c19b5965585267b8e21cfc7e':
  SurfaceFlinger: Add mode to apply position with resize.

Change-Id: Icedb7a6e37da9338b1194edaa32a67257640969f

8 years agoMerge "SurfaceFlinger: Add mode to apply position with resize." into nyc-dev
TreeHugger Robot [Tue, 7 Jun 2016 20:42:03 +0000 (20:42 +0000)]
Merge "SurfaceFlinger: Add mode to apply position with resize." into nyc-dev