OSDN Git Service

android-x86/frameworks-native.git
8 years agoAdd user activity event type for accessibility.
Phil Weaver [Thu, 17 Mar 2016 16:47:19 +0000 (09:47 -0700)]
Add user activity event type for accessibility.

Bug: 19531976
Change-Id: I95096dbf252556e677a8a9f3bffe8abaab353ab4

8 years agoMerge "Otapreopt: Adapt for actual A/B" into nyc-dev
Andreas Gampe [Tue, 15 Mar 2016 22:31:44 +0000 (22:31 +0000)]
Merge "Otapreopt: Adapt for actual A/B" into nyc-dev

8 years agoOtapreopt: Adapt for actual A/B
Andreas Gampe [Thu, 10 Mar 2016 00:27:29 +0000 (16:27 -0800)]
Otapreopt: Adapt for actual A/B

Add postinstall script for update_engine hook.

Add otapreopt_chroot as a gateway between installd and otapreopt.
Installd will fork and run otapreopt_chroot, which has the permission
to set up a chroot in /postinstall and run otapreopt from the B
partition.

Bug: 25612095
Change-Id: I4264598da00053ced87c849c738ddc0bc5437304

8 years agoAdded zip location on log message.
Felipe Leme [Tue, 15 Mar 2016 20:40:33 +0000 (13:40 -0700)]
Added zip location on log message.

BUG: 27660862
Change-Id: I6e9dc816955762fde0d4ddb9ac4cbf12b607cbbd

8 years agoMerge "installd: Avoid potential use of null 'src'." into nyc-dev
Greg Kaiser [Tue, 15 Mar 2016 13:03:24 +0000 (13:03 +0000)]
Merge "installd: Avoid potential use of null 'src'." into nyc-dev

8 years agoDO NOT MERGE Tracing for binder locks/transactions am: 97e5be36e3
Scott Bauer [Tue, 15 Mar 2016 00:15:14 +0000 (00:15 +0000)]
DO NOT MERGE Tracing for binder locks/transactions am: 97e5be36e3
am: 10213888ad  -s ours

* commit '10213888add66cda37de12c002fec27e82c96ba6':
  DO NOT MERGE Tracing for binder locks/transactions

8 years agoDO NOT MERGE Tracing for binder locks/transactions
Scott Bauer [Tue, 15 Mar 2016 00:13:04 +0000 (00:13 +0000)]
DO NOT MERGE Tracing for binder locks/transactions
am: 97e5be36e3

* commit '97e5be36e3b0256b6b671ff93c1cce870dfeddb3':
  DO NOT MERGE Tracing for binder locks/transactions

8 years agoinstalld: Avoid potential use of null 'src'.
Greg Kaiser [Mon, 14 Mar 2016 20:29:10 +0000 (13:29 -0700)]
installd: Avoid potential use of null 'src'.

In create_cache_path, we have code checking whether 'src' is null,
implying it's possibile it could be null here.  To be safe, we move
our strlen call until after this check.

Change-Id: I6a67cdad8ebf8bdce1562ce5f0cbf98b084807ef

8 years agoDO NOT MERGE Tracing for binder locks/transactions
Scott Bauer [Mon, 8 Jun 2015 23:32:36 +0000 (16:32 -0700)]
DO NOT MERGE Tracing for binder locks/transactions

Added logic to pull traces from the binder driver.

Change-Id: I9aa00b4650fc3f90d7bd55328dfef11e2514f7b4

8 years agoMerge "frameworks/native: Make Thread::run threadName argument required" into nyc-dev
Brian Carlstrom [Mon, 14 Mar 2016 15:18:03 +0000 (15:18 +0000)]
Merge "frameworks/native: Make Thread::run threadName argument required" into nyc-dev

8 years agoPass -n to netstat.
Lorenzo Colitti [Fri, 11 Mar 2016 01:58:55 +0000 (10:58 +0900)]
Pass -n to netstat.

netstat does lots of DNS lookups, which will slow down the dump
process and creates the risk that the dump will be incomplete.

Bug: 26154009
Change-Id: Ibefa259bf74e85ab8dbdfac76f82c101d47686a7

8 years agoframeworks/native: Make Thread::run threadName argument required
Brian Carlstrom [Sun, 13 Mar 2016 00:07:59 +0000 (16:07 -0800)]
frameworks/native: Make Thread::run threadName argument required

Bug: 27557176
Change-Id: I009046d04cc127ee280c7b2038c04fab540fc5e6

8 years agoMerge "svcmgr: don't send reply to one-way txn." into nyc-dev
Daniel Cashman [Fri, 11 Mar 2016 23:07:11 +0000 (23:07 +0000)]
Merge "svcmgr: don't send reply to one-way txn." into nyc-dev

8 years agoMerge "omx: add OMX_EventDataSpaceChanged" into nyc-dev
Lajos Molnar [Fri, 11 Mar 2016 19:05:53 +0000 (19:05 +0000)]
Merge "omx: add OMX_EventDataSpaceChanged" into nyc-dev

8 years agoMerge "media: update DescribeColorAspectsParams" into nyc-dev
Lajos Molnar [Fri, 11 Mar 2016 19:05:47 +0000 (19:05 +0000)]
Merge "media: update DescribeColorAspectsParams" into nyc-dev

8 years agoMerge "Installd: Do not log on missing B artifact" into nyc-dev
Andreas Gampe [Fri, 11 Mar 2016 18:53:41 +0000 (18:53 +0000)]
Merge "Installd: Do not log on missing B artifact" into nyc-dev

8 years agoInstalld: Do not log on missing B artifact
Andreas Gampe [Fri, 11 Mar 2016 18:45:54 +0000 (10:45 -0800)]
Installd: Do not log on missing B artifact

For now, just swallow the warning.

Bug: 25612095
Change-Id: Ib7131464c7eb85c153cb91bf5ff9dc2a6127dd4c

8 years agosvcmgr: don't send reply to one-way txn.
dcashman [Fri, 11 Mar 2016 18:38:10 +0000 (10:38 -0800)]
svcmgr: don't send reply to one-way txn.

svcmgr currently assumes that all incoming transactions are synchronous
and expecting a reply.  Change the BR_TRANSACTION handling code to not
send a reply to one-way transactions.

Bug: 27111612
Change-Id: If2e56d3eb53b41d059dbe7d5d10e764343c0262c

8 years agoMerge "Remove the route command from dumpstate." into nyc-dev
Lorenzo Colitti [Fri, 11 Mar 2016 10:52:32 +0000 (10:52 +0000)]
Merge "Remove the route command from dumpstate." into nyc-dev

8 years agoRemove the route command from dumpstate.
Lorenzo Colitti [Fri, 11 Mar 2016 01:58:55 +0000 (10:58 +0900)]
Remove the route command from dumpstate.

Its output is irrelevant and misleading, because:

1. It only looks at the "main" routing table, which is a last
   resort routing table that is trumped by all other networks and
   cannot even be used by non-root users.
2. The proper way to understand device routing is to look at the
   output of "ip rule" and "ip route", both of which are already
   in the bugreport.

Bug: 26154009
Change-Id: Ice19799639daa156a0d4dbb69915031e5582a8ed

8 years agoMerge "loader: Include instance where required for GIPA" into nyc-dev
Courtney Goeltzenleuchter [Thu, 10 Mar 2016 23:49:32 +0000 (23:49 +0000)]
Merge "loader: Include instance where required for GIPA" into nyc-dev

8 years agoMerge "Pass system layers through chain." into nyc-dev
Michael Lentine [Thu, 10 Mar 2016 23:48:34 +0000 (23:48 +0000)]
Merge "Pass system layers through chain." into nyc-dev

8 years agoloader: Include instance where required for GIPA
Courtney Goeltzenleuchter [Thu, 10 Mar 2016 20:28:52 +0000 (13:28 -0700)]
loader: Include instance where required for GIPA

Bug: 27579008
GetInstanceProcAddr is only speced to allow VK_NULL_HANDLE
for the instance for a few calls.

Change-Id: If350e23edc336bff3b499631ba9a68b2921c6969

8 years agoReturn 16 values when sending on-change sensor\'s last event am: 95f13901ed
Nick Vaccaro [Thu, 10 Mar 2016 23:16:40 +0000 (23:16 +0000)]
Return 16 values when sending on-change sensor\'s last event am: 95f13901ed
am: e4be205b7b

* commit 'e4be205b7b64be5d183b3a0f9724ec28a2d7e7cf':
  Return 16 values when sending on-change sensor's last event

8 years agoReturn 16 values when sending on-change sensor\'s last event
Nick Vaccaro [Thu, 10 Mar 2016 23:14:08 +0000 (23:14 +0000)]
Return 16 values when sending on-change sensor\'s last event
am: 95f13901ed

* commit '95f13901edc77650f4bb8d727169e553af28a9d1':
  Return 16 values when sending on-change sensor's last event

8 years agoMerge "Revert "DispSync: workaround HH hardware vsync issue"" into nyc-dev
Dan Stoza [Thu, 10 Mar 2016 22:02:34 +0000 (22:02 +0000)]
Merge "Revert "DispSync: workaround HH hardware vsync issue"" into nyc-dev

8 years agoMerge "HWC2: Track move of transform into Geometry" into nyc-dev
Dan Stoza [Thu, 10 Mar 2016 21:05:46 +0000 (21:05 +0000)]
Merge "HWC2: Track move of transform into Geometry" into nyc-dev

8 years agoRevert "DispSync: workaround HH hardware vsync issue"
Dan Stoza [Thu, 10 Mar 2016 20:41:56 +0000 (12:41 -0800)]
Revert "DispSync: workaround HH hardware vsync issue"

This reverts commit c734d95c575830ffc97fc5d2ae14b020c95d05de, which was
a workaround for a bug on a device which is now obsolete.

Bug: 25845510
Change-Id: I3244bfd3f758c52dfe76e9d5b0a72bbcffdf5a6f

8 years agoHWC2: Track move of transform into Geometry
Dan Stoza [Thu, 10 Mar 2016 19:57:08 +0000 (11:57 -0800)]
HWC2: Track move of transform into Geometry

Changes a line where we missed the move of transform into Geometry to
fix the HWC2 build.

Bug: 26454664
Change-Id: Ib44ec8705b81da2aa1b99e61449609371e533297

8 years agoMerge "Do not queue trivial buffer for unsupported screenshot request." into nyc-dev
Prathmesh Prabhu [Thu, 10 Mar 2016 19:51:59 +0000 (19:51 +0000)]
Merge "Do not queue trivial buffer for unsupported screenshot request." into nyc-dev

8 years agoDo not queue trivial buffer for unsupported screenshot request.
Prathmesh Prabhu [Thu, 10 Mar 2016 00:54:45 +0000 (16:54 -0800)]
Do not queue trivial buffer for unsupported screenshot request.

When screenshot is not supported, we queue an empty buffer to the
requesting producer. Besides returning a useless screenshot, this
overwrites the valuable error code, returning ERROR_OK whenever we
successfully return the trivial buffer.

Instead, refuse to queue the trivial buffer, and return the original
error code.

This replaces the workaround proposed in
I6da5d2fdecdef6c87d4dd7b353e2464678800110

BUG:27505438
Change-Id: I597a9be25071d2a6ddafb7d39cc1b09fb48d5fd0

8 years agoMerge "ui: Fix Rect::reduce" into nyc-dev
Pablo Ceballos [Thu, 10 Mar 2016 18:41:09 +0000 (18:41 +0000)]
Merge "ui: Fix Rect::reduce" into nyc-dev

8 years agoui: Fix Rect::reduce
Pablo Ceballos [Thu, 10 Mar 2016 01:19:22 +0000 (17:19 -0800)]
ui: Fix Rect::reduce

- Properly handle the case where the Rect to be excluded is completely
  outside the other Rect.

Bug 27415039

Change-Id: I3331d5b3ab231d023348079c781b194d24ac37dd

8 years agoMerge "Improved usage of stderr for logging." into nyc-dev
Felipe Leme [Wed, 9 Mar 2016 22:05:44 +0000 (22:05 +0000)]
Merge "Improved usage of stderr for logging." into nyc-dev

8 years agoomx: add OMX_EventDataSpaceChanged
Lajos Molnar [Tue, 8 Mar 2016 23:18:06 +0000 (15:18 -0800)]
omx: add OMX_EventDataSpaceChanged

This is used internally by IOMX to signal a dataspace change by a surface
encoder.

Bug: 25684127
Change-Id: I42d4ec1db422fa62c251ce197495c6e8ab1430b3

8 years agomedia: update DescribeColorAspectsParams
Lajos Molnar [Wed, 9 Mar 2016 17:03:46 +0000 (09:03 -0800)]
media: update DescribeColorAspectsParams

Bug: 25684127
Change-Id: Id16c50dab510d5277edc0d84f11d0419a46642ae

8 years agoPass system layers through chain.
Michael Lentine [Fri, 4 Mar 2016 17:03:35 +0000 (11:03 -0600)]
Pass system layers through chain.

Previously if any layers were activated via properties the layers did not see
those as arguments. After this the layers have a complete list of what layers
are enabled. This is then used in the layers to guarantee ordering.

Bug: 27126420

Change-Id: I3a6a923e2564abc3f7c43b110d892539e4d4bfdb

8 years agomedia: move non-OMX structs to VideoAPI.h from HardwareAPI.h
Lajos Molnar [Tue, 8 Mar 2016 19:30:15 +0000 (11:30 -0800)]
media: move non-OMX structs to VideoAPI.h from HardwareAPI.h

HardwareAPI.h is to be used by OMX only.
Also add asString support for MediaImage and ColorAspect enums.

Bug: 25684127
Change-Id: I839c2ee0815278cdabe74c7cc9c9dc32cb38df76

8 years agoImproved usage of stderr for logging.
Felipe Leme [Tue, 8 Mar 2016 23:11:15 +0000 (15:11 -0800)]
Improved usage of stderr for logging.

Dumpstate have some macros that write logs to both ALOG and stderr,
which is useful when the latter is redirected to a file.

But prior to this change, only the log statements from dumpstate.cpp
were using it, and utils.cpp was logging to stderr directly.

This change not only uses MYLOGE for all error messages, but also closes
stderr at the very end (so it doesn't miss statements like the
parameters sent to send_broadcast) and uses MYLOGD for the overall progress.

BUG: 27437378
Change-Id: I373a523e20c98d8f445822103784fa9900c6c684

8 years agoMerge "Fix warning when force-disconnect but there is no connected API" into nyc-dev
Chong Zhang [Tue, 8 Mar 2016 20:36:45 +0000 (20:36 +0000)]
Merge "Fix warning when force-disconnect but there is no connected API" into nyc-dev

8 years agoFix warning when force-disconnect but there is no connected API
Chong Zhang [Tue, 8 Mar 2016 20:08:33 +0000 (12:08 -0800)]
Fix warning when force-disconnect but there is no connected API

It's not really an error, we can return early.

bug: 27295820
Change-Id: I450ca615cf9c33b9aaef9c31eec8217c97516df5

8 years agomedia: move asString into android namespace
Lajos Molnar [Tue, 8 Mar 2016 18:52:17 +0000 (10:52 -0800)]
media: move asString into android namespace

Change-Id: I98c1f32de97b5dff0faf06c60127ef1c1b254604

8 years agoFix name of argument
David Brazdil [Tue, 8 Mar 2016 16:11:59 +0000 (16:11 +0000)]
Fix name of argument

Follow-up to change I92cc374b5b6d95ca7755e08b95a9bc9060df2178.

Change-Id: I62cc634ee456c6789b48ab8d8542dffa87f4cc72

8 years agoAdd 'rmprofiles' command to installd
David Brazdil [Tue, 8 Mar 2016 12:50:20 +0000 (12:50 +0000)]
Add 'rmprofiles' command to installd

Adds a new command to installd which clears all profile data of
a given package.

Bug: 27516490
Change-Id: I92cc374b5b6d95ca7755e08b95a9bc9060df2178

8 years agoMerge "egl: Add EGL extension for front buffer auto-refresh mode" into nyc-dev
Pablo Ceballos [Mon, 7 Mar 2016 18:48:18 +0000 (18:48 +0000)]
Merge "egl: Add EGL extension for front buffer auto-refresh mode" into nyc-dev

8 years agoMerge "Implement the stub for glCreateShaderProgramv" into nyc-dev
Pablo Ceballos [Mon, 7 Mar 2016 18:17:24 +0000 (18:17 +0000)]
Merge "Implement the stub for glCreateShaderProgramv" into nyc-dev

8 years agolibvulkan: Fix double-free, refactor instance destruction
Jesse Hall [Sun, 6 Mar 2016 06:27:02 +0000 (22:27 -0800)]
libvulkan: Fix double-free, refactor instance destruction

Fixes dEQP-VK.api.object_management.alloc_callback_fail.instance.
Since we were calling DestroyInstance_Bottom from both
CreateInstance_Bottom and CreateInstance_Top failure paths, we were
calling the driver's DestroyInstance twice.

To avoid such bugs, this change clears the driver instance handle to
VK_NULL_HANDLE after calling the driver DestroyInstance.

But the real fix in this change is to make creation and destruction
symmetric. Now DestroyInstance_Bottom only cleans up the things that
were initialized/allocated in CreateInstance_Bottom, and is only
called from CreateInstance_Bottom failure paths and from a dispatched
vkDestroyInstance. Similarly, DestroyInstance_Top and failure paths in
CreateInstance_Top call DestroyInstance (formerly TeardownInstance) to
clean up things initialized/allocated in CreateInstance_Top. The
direct calls from *_Top functions to DestroyInstance_Bottom are gone
-- *_Top functions should only reach *_Bottom functions via dispatch,
so the call goes through enabled layers.

Bug: 27493757
Change-Id: I4e9f8508297813415499dc17803fff49ce9abdcf
(cherry picked from commit 15cd1e269fd2dacef8b95006928b122b9dabbeea)

8 years agodumpsys: switch to using a pipe to work around selinux denial.
Josh Gao [Fri, 4 Mar 2016 21:12:29 +0000 (13:12 -0800)]
dumpsys: switch to using a pipe to work around selinux denial.

Some services can't write to the socket that we were passing in, due to
selinux policies. Use a pipe for now.

Bug: http://b/27500248
Change-Id: Ic681121597a1717d31ef356bd6fe2c2daaa86d94

8 years agoImplement the stub for glCreateShaderProgramv
Pablo Ceballos [Fri, 29 Jan 2016 04:06:06 +0000 (20:06 -0800)]
Implement the stub for glCreateShaderProgramv

Bug 26851015

Change-Id: Ide7c46e0b5525d082dc591e92b4a8d8b21665708

8 years agoMerge "Revert "SF: detachLayer from Client earlier on destruction"" into nyc-dev
Pablo Ceballos [Fri, 4 Mar 2016 17:54:21 +0000 (17:54 +0000)]
Merge "Revert "SF: detachLayer from Client earlier on destruction"" into nyc-dev

8 years agoMerge "Removed temporary 'v1-dev1-dumpsys-split' version and bumped version to 'v1...
Felipe Leme [Fri, 4 Mar 2016 17:14:16 +0000 (17:14 +0000)]
Merge "Removed temporary 'v1-dev1-dumpsys-split' version and bumped version to 'v1-dev2'." into nyc-dev

8 years agoRevert "SF: detachLayer from Client earlier on destruction"
Pablo Ceballos [Thu, 3 Mar 2016 23:20:02 +0000 (15:20 -0800)]
Revert "SF: detachLayer from Client earlier on destruction"

This reverts commit e338df1c2ff4ed2cd575a0e3193ef77c9cd9cb72.

Bug 27330889

Change-Id: I7e62ac2623bd0e1304f36a895ee2b5f9160e2a7e

8 years agoMerge "Latch transform with geometry state." into nyc-dev
Rob Carr [Thu, 3 Mar 2016 21:35:46 +0000 (21:35 +0000)]
Merge "Latch transform with geometry state." into nyc-dev

8 years agoMerge "media: rework DescribeColorAspectsParams" into nyc-dev
Lajos Molnar [Thu, 3 Mar 2016 21:22:38 +0000 (21:22 +0000)]
Merge "media: rework DescribeColorAspectsParams" into nyc-dev

8 years agoLatch transform with geometry state.
Robert Carr [Wed, 2 Mar 2016 02:36:58 +0000 (18:36 -0800)]
Latch transform with geometry state.

WindowManager would like this feature for animating
windows between sizes. For example, if we are animating
from a smaller to larger window, we need to complete the resize
at the beginning of the animation to avoid up-scaling. However
to avoid artifacts we need the window to appear at its old size
following this resize, so we use the transform to scale down. However
as the transform is latched immediately, we result in a frame where
the window is too small, until the resize is complete. This is
a change in behavior but it's hard to understand how it could
cause errors. Previously if someone wished to set the transform
and resize a window in the same transaction, then the results
would be undefined (depending on the state of the window buffer),
and there would be no avenue for synchronization.

Bug: 26454664
Change-Id: I4e8475967e0a19aa5879af965a5716eb173f9700

8 years agoMerge "Installd: Add move_ab command" into nyc-dev
Andreas Gampe [Thu, 3 Mar 2016 18:56:14 +0000 (18:56 +0000)]
Merge "Installd: Add move_ab command" into nyc-dev

8 years agoInstalld: Add move_ab command
Andreas Gampe [Tue, 1 Mar 2016 19:46:45 +0000 (11:46 -0800)]
Installd: Add move_ab command

Add a command to move A/B artifacts into the right position. This
is used for apps that live in data.

Bug: 25612095
Change-Id: I40c3ca54bd0f3b2d646a14b145e733096dabbbb2

8 years agodumpsys: use a socket for dumping, add timeout support.
Josh Gao [Tue, 1 Mar 2016 00:20:34 +0000 (16:20 -0800)]
dumpsys: use a socket for dumping, add timeout support.

Passing the stdout file descriptor directly to a service to dump with
leads to bad things happening if the service hangs, or dumpsys is
terminated prematurely. For example, `dumpsys foo | cat` will not
terminate, even if the dumpsys process is killed, since the write end of
the pipe is still alive in the hung service.

Pass an intermediate socketpair when dumping services to avoid this.

Bug: http://b/26849443
Change-Id: Ide18741080355b3c680275a59172c61734eca92d

8 years agoMerge "GUI: Move Surface.aidl here and implement for native" into nyc-dev
Eino-Ville Talvala [Wed, 2 Mar 2016 21:47:08 +0000 (21:47 +0000)]
Merge "GUI: Move Surface.aidl here and implement for native" into nyc-dev

8 years agoMerge "Add SurfaceControl::disconnect() to disconnect currently connected API" into...
Chong Zhang [Wed, 2 Mar 2016 20:09:58 +0000 (20:09 +0000)]
Merge "Add SurfaceControl::disconnect() to disconnect currently connected API" into nyc-dev

8 years agoMerge "Clean up error logs for profiles which don't exists." into nyc-dev
Calin Juravle [Wed, 2 Mar 2016 16:17:24 +0000 (16:17 +0000)]
Merge "Clean up error logs for profiles which don't exists." into nyc-dev

8 years agoMerge "Revert "Revert "Partial revert of "Fix Surface slot caching"""" into nyc-dev
Pablo Ceballos [Wed, 2 Mar 2016 14:16:35 +0000 (14:16 +0000)]
Merge "Revert "Revert "Partial revert of "Fix Surface slot caching"""" into nyc-dev

8 years agoRevert "Revert "Partial revert of "Fix Surface slot caching"""
Pablo Ceballos [Wed, 2 Mar 2016 01:38:10 +0000 (01:38 +0000)]
Revert "Revert "Partial revert of "Fix Surface slot caching"""

This reverts commit 16c9c304a33af36faa352d32777bc48c50bf7b74.

Change-Id: Icbdcba8a646ac40c0533c1c04f5b15769332976c

8 years agoReturn 16 values when sending on-change sensor's last event
Nick Vaccaro [Tue, 1 Mar 2016 23:49:08 +0000 (15:49 -0800)]
Return 16 values when sending on-change sensor's last event

Sensor Services now sends 16 values when sending out the last
event for a vendor defined on-change sensor type.

Bug: 26962513
Change-Id: I238b945c9dc9186b621544aef7d0244f63d4b2e8

8 years agoGUI: Move Surface.aidl here and implement for native
Eino-Ville Talvala [Wed, 6 Jan 2016 20:09:11 +0000 (12:09 -0800)]
GUI: Move Surface.aidl here and implement for native

- Move android/view/Surface.aidl parcelable definition from frameworks/base
- Implement matching native behavior to android.view.Surface parceling,
  to enable use of android.view.Surface in generated native AIDL interfaces

Bug: 25091611
Change-Id: I87ffbb9a19c27a99ce0749d0ca1f17aaa6b3fe74

8 years agoMerge "Return an error if try to profile guide compile to a public oat file" into...
Calin Juravle [Tue, 1 Mar 2016 17:59:18 +0000 (17:59 +0000)]
Merge "Return an error if try to profile guide compile to a public oat file" into nyc-dev

8 years agoMerge "media: define OMX_VIDEO_HEVCProfileMain10HDR10" into nyc-dev
Ronghua Wu [Tue, 1 Mar 2016 17:36:24 +0000 (17:36 +0000)]
Merge "media: define OMX_VIDEO_HEVCProfileMain10HDR10" into nyc-dev

8 years agoReturn an error if try to profile guide compile to a public oat file
Calin Juravle [Tue, 23 Feb 2016 19:06:45 +0000 (19:06 +0000)]
Return an error if try to profile guide compile to a public oat file

This makes sure that the oat file access is private to the app when
using profiles.

Bug: 27334750
Bug: 26080105

Change-Id: I9f5deec1a1068d0276928117134956eb233ce504

8 years agoMerge "Otapreopt: Fix patchoat delta parameter" into nyc-dev
Andreas Gampe [Tue, 1 Mar 2016 05:42:47 +0000 (05:42 +0000)]
Merge "Otapreopt: Fix patchoat delta parameter" into nyc-dev

8 years agoMerge changes I4589e02a,Id300e8b2 into nyc-dev
Dan Stoza [Tue, 1 Mar 2016 04:49:09 +0000 (04:49 +0000)]
Merge changes I4589e02a,Id300e8b2 into nyc-dev

* changes:
  Switch SurfaceFlinger to HWC 2.0
  HWC2On1Adapter: Initialize variables and fix mutex

8 years agomedia: rework DescribeColorAspectsParams
Lajos Molnar [Tue, 1 Mar 2016 04:13:36 +0000 (20:13 -0800)]
media: rework DescribeColorAspectsParams

Separate out ColorAspects into its own structure so it does not
include OMX-specific fields.

Bug: 25975353
Change-Id: I55281d129fce7db81c09bf0d0bc2b13762d7000d

8 years agoRemoved temporary 'v1-dev1-dumpsys-split' version and bumped version to
Felipe Leme [Tue, 1 Mar 2016 02:15:42 +0000 (18:15 -0800)]
Removed temporary 'v1-dev1-dumpsys-split' version and bumped version to
'v1-dev2'.

BUG: 26639621
Change-Id: I5f26272d221330b01d2b873e00105a8f8b739b63

8 years agoOtapreopt: Fix patchoat delta parameter
Andreas Gampe [Tue, 1 Mar 2016 02:04:17 +0000 (18:04 -0800)]
Otapreopt: Fix patchoat delta parameter

Only give the delta, not the new base address.

Bug: 25612095
Change-Id: Ieeed5000da5e72477764fc92fe8fa016287d4cd8

8 years agoMerge "Fix warnings in frameworks/native/opengl/tests" into nyc-dev
Aurimas Liutikas [Tue, 1 Mar 2016 01:40:37 +0000 (01:40 +0000)]
Merge "Fix warnings in frameworks/native/opengl/tests" into nyc-dev

8 years agoAdd SurfaceControl::disconnect() to disconnect currently connected API
Chong Zhang [Tue, 1 Mar 2016 00:47:47 +0000 (16:47 -0800)]
Add SurfaceControl::disconnect() to disconnect currently connected API

bug: 27295820
Change-Id: I6f51338bc15e018ed7899172653599ab6254c8c9

8 years agoMerge "HardwareAPI: set enum basetypes for MediaImage2" into nyc-dev
Lajos Molnar [Tue, 1 Mar 2016 00:40:28 +0000 (00:40 +0000)]
Merge "HardwareAPI: set enum basetypes for MediaImage2" into nyc-dev

8 years agoMerge "Revert "Partial revert of "Fix Surface slot caching""" into nyc-dev
Pablo Ceballos [Mon, 29 Feb 2016 22:59:23 +0000 (22:59 +0000)]
Merge "Revert "Partial revert of "Fix Surface slot caching""" into nyc-dev

8 years agoMerge "Fix glGetTransformFeedbackVarying JNI" into nyc-dev
Pablo Ceballos [Mon, 29 Feb 2016 22:58:54 +0000 (22:58 +0000)]
Merge "Fix glGetTransformFeedbackVarying JNI" into nyc-dev

8 years agoClean up error logs for profiles which don't exists.
Calin Juravle [Mon, 29 Feb 2016 16:41:52 +0000 (16:41 +0000)]
Clean up error logs for profiles which don't exists.

Bug: 27401160
Change-Id: I60f23477e90052c00fb1c1cc5abe827f4270cd07

8 years agoSwitch SurfaceFlinger to HWC 2.0
Dan Stoza [Mon, 2 Nov 2015 21:00:03 +0000 (13:00 -0800)]
Switch SurfaceFlinger to HWC 2.0

Enables SurfaceFlinger to speak to version 2.0 of the Hardware Composer
HAL instead of version 1.x (also removing support for the framebuffer
HAL). By default, however, this functionality is disabled. In order to
enable it, USE_HWC2 must be set to true in Android.mk.

Change-Id: I4589e02ac2165236b10ff2f7cb772f87e0d3daab

8 years agoHWC2On1Adapter: Initialize variables and fix mutex
Dan Stoza [Tue, 23 Feb 2016 19:43:19 +0000 (11:43 -0800)]
HWC2On1Adapter: Initialize variables and fix mutex

Initializes a few variables that had been missed before, and switches
the Adapter state mutex to be recursive, since it is held during the
call into HWC1 prepare, which can call back into the Adapter to perform
an invalidate.

Change-Id: Id300e8b23403f5339562fd860c2ce9d0f2b72f27

8 years agolibvulkan: Check for negative in signed -> unsigned conversion
Jesse Hall [Mon, 29 Feb 2016 04:58:50 +0000 (20:58 -0800)]
libvulkan: Check for negative in signed -> unsigned conversion

Requested during security audit in bug 27118888.

Change-Id: Id82382258d2b6f8523b8af29f494dfc67100d190

8 years agolibvulkan: Enable integer sanitization
Jesse Hall [Mon, 29 Feb 2016 04:48:56 +0000 (20:48 -0800)]
libvulkan: Enable integer sanitization

This causes the compiler to add runtime checks for undefined (e.g.
shift by larger than bitwidth) or suspicious (e.g. unsigned integer
overflow) operations. The process will abort if they occur.

In particular, we do many allocations of the form pfnAllocation(n *
sizeof(T)); if 'n' is large these will overflow and we'll allocate
less memory than expected, possibly leading to exploitable buffer
overruns.

Requested during security audit in bug 27118888.

Change-Id: Id81c94595579df034b948a40270f164e38635070

8 years agoMerge "Rename .zip file if necessary." into nyc-dev
Felipe Leme [Fri, 26 Feb 2016 23:40:30 +0000 (23:40 +0000)]
Merge "Rename .zip file if necessary." into nyc-dev

8 years agoRename .zip file if necessary.
Felipe Leme [Fri, 26 Feb 2016 23:03:52 +0000 (15:03 -0800)]
Rename .zip file if necessary.

Users have the option to rename the suffix of the files generated by
dumpstate by letting Shell set the dumpstate.PID.name property.

This works fine for text files and used to work for zip files as well,
but now the zip file is opened earlier in the process, so it has to be
renamed at the end.

BUG: 27384407
Change-Id: I288d8eb4a3ffe0161b86cdce14f63e9bfdf865ab

8 years agomedia: define OMX_VIDEO_HEVCProfileMain10HDR10
Ronghua Wu [Thu, 25 Feb 2016 00:28:13 +0000 (16:28 -0800)]
media: define OMX_VIDEO_HEVCProfileMain10HDR10

Bug: 25684127
Change-Id: I7e51470b79914eed772f561484e441925f8df1d3

8 years agoMerge "Refresh the native app ops manager's token if needed." into nyc-dev
Svetoslav Ganov [Fri, 26 Feb 2016 20:29:58 +0000 (20:29 +0000)]
Merge "Refresh the native app ops manager's token if needed." into nyc-dev

8 years agoRefresh the native app ops manager's token if needed.
Svet Ganov [Fri, 26 Feb 2016 20:13:04 +0000 (12:13 -0800)]
Refresh the native app ops manager's token if needed.

The app ops manager serivce keeps track of started app ops
by a process by stashing them in a binder object that is
passed to the remote process to hold on to. Hence, the data
is in the system process and is referenced by the client
process it tracks to prevent garbage collaction and limit
risk of resource leaks. It is possible that the client
process is longer lived than the system seriver, e.g. camera
server starts an app op, the system server dies for some
reason, the camera server's app ops manager ends up with
a stale token. The solution is to check the validity of the
token and refresh it if needed.

bug:27344593

Change-Id: I0abb39e777b7b66b1b5cefede7e7b41c4404c4b1

8 years agoMerge "Add Vulkan feature definitions" into nyc-dev
Jesse Hall [Fri, 26 Feb 2016 00:19:08 +0000 (00:19 +0000)]
Merge "Add Vulkan feature definitions" into nyc-dev

8 years agoAdd Vulkan feature definitions
Jesse Hall [Thu, 25 Feb 2016 11:23:13 +0000 (03:23 -0800)]
Add Vulkan feature definitions

Bug: 26583896
Change-Id: I4d1e8b017f478fd79a5075057aeaccbeb1086a2a

8 years agoMoved final vibration to the end of the process.
Felipe Leme [Thu, 25 Feb 2016 22:02:44 +0000 (14:02 -0800)]
Moved final vibration to the end of the process.

BUG: 26347468
Change-Id: I872d9175fd09b47da512cb2da11a533a921d9a5c

8 years agoMerge "Add glReadPixels with buffer-offset argument" into nyc-dev
Pablo Ceballos [Thu, 25 Feb 2016 18:54:17 +0000 (18:54 +0000)]
Merge "Add glReadPixels with buffer-offset argument" into nyc-dev

8 years agoMerge "SF: check secure layers in screenshot message handler" into nyc-dev
Pablo Ceballos [Thu, 25 Feb 2016 18:52:06 +0000 (18:52 +0000)]
Merge "SF: check secure layers in screenshot message handler" into nyc-dev

8 years agoSF: check secure layers in screenshot message handler
Pablo Ceballos [Tue, 23 Feb 2016 19:18:51 +0000 (11:18 -0800)]
SF: check secure layers in screenshot message handler

- Instead of checking for the presence of secure layers on the Binder
  thread, check in the message handler. Transactions may have occurred
  in between when the check is done and when the screen shot message
  is handled.

Bug 23757877

Change-Id: Iec74193996ca72c60f86f7c0f0b2a5dea8d19543

8 years agovulkan: Update to vulkan.h 1.0.3
Jesse Hall [Thu, 25 Feb 2016 12:19:32 +0000 (04:19 -0800)]
vulkan: Update to vulkan.h 1.0.3

Change-Id: Ic607533768989aa65e41b9b0e459d7af170ab180

8 years agovkinfo: Provide VkApplicationInfo
Jesse Hall [Thu, 25 Feb 2016 00:44:42 +0000 (16:44 -0800)]
vkinfo: Provide VkApplicationInfo

This is supposed to be optional, but the N6P/N5X driver currently
requires it.

Change-Id: Ib90962a595052cd829b4967dce4b5a6740173a96

8 years agoMerge changes I385a363d,I99129b49 into nyc-dev
Jesse Hall [Thu, 25 Feb 2016 08:59:06 +0000 (08:59 +0000)]
Merge changes I385a363d,I99129b49 into nyc-dev

* changes:
  libvulkan: Set window transform based on swapchain preTransform
  libvulkan: Report current and supported transforms accurately

8 years agoHardwareAPI: set enum basetypes for MediaImage2
Lajos Molnar [Thu, 25 Feb 2016 02:01:10 +0000 (18:01 -0800)]
HardwareAPI: set enum basetypes for MediaImage2

- also add some internal methods for cleaner usage of these
  types

Bug: 25684127
Change-Id: I151270b015ba5989212926e946e04edb7ee8494d

8 years agolibvulkan: Set window transform based on swapchain preTransform
Jesse Hall [Wed, 24 Feb 2016 23:39:50 +0000 (15:39 -0800)]
libvulkan: Set window transform based on swapchain preTransform

Bug: 26927663
Change-Id: I385a363dccbeae2329d25712d30dc629fdce2074

8 years agolibvulkan: Report current and supported transforms accurately
Jesse Hall [Wed, 24 Feb 2016 00:43:29 +0000 (16:43 -0800)]
libvulkan: Report current and supported transforms accurately

Bug: 26927663
Change-Id: I99129b49e2be6f6dd501813185edc67f10b976bf