OSDN Git Service

android-x86/frameworks-native.git
9 years agoam 82e4d49b: Merge "libui/libgui: Fix errors in parceling"
Dan Stoza [Thu, 23 Apr 2015 23:02:48 +0000 (23:02 +0000)]
am 82e4d49b: Merge "libui/libgui: Fix errors in parceling"

* commit '82e4d49b0ecb205d49f02cc07496f7508c56443c':
  libui/libgui: Fix errors in parceling

9 years agoMerge "libui/libgui: Fix errors in parceling"
Dan Stoza [Thu, 23 Apr 2015 22:51:00 +0000 (22:51 +0000)]
Merge "libui/libgui: Fix errors in parceling"

9 years agoam de5c15b8: Merge "SF: Always perform sideband transactions"
Dan Stoza [Thu, 23 Apr 2015 00:06:03 +0000 (00:06 +0000)]
am de5c15b8: Merge "SF: Always perform sideband transactions"

* commit 'de5c15b8bd12143829d043fa4ab457600e5682b3':
  SF: Always perform sideband transactions

9 years agoMerge "SF: Always perform sideband transactions"
Dan Stoza [Wed, 22 Apr 2015 23:57:28 +0000 (23:57 +0000)]
Merge "SF: Always perform sideband transactions"

9 years agoSF: Always perform sideband transactions
Dan Stoza [Wed, 22 Apr 2015 21:59:08 +0000 (14:59 -0700)]
SF: Always perform sideband transactions

On normal Layers, we defer applying resize transactions until a buffer
of the correct size arrives. This breaks with sideband streams, because
buffers are not seen by SurfaceFlinger. This change applies
transactions immediately for Layers which have a sideband stream
attached to avoid that problem.

Bug: 20428254
Change-Id: I379d8aaef460d467cdf8432764b4a504928fb65a
(cherry picked from commit c300b8b506536e1bf94ffd8a3b75d46e776923e0)

9 years agoam 7637e35d: Merge "Revert "libgui: Change BufferQueue to use free lists""
Dan Stoza [Wed, 22 Apr 2015 19:07:10 +0000 (19:07 +0000)]
am 7637e35d: Merge "Revert "libgui: Change BufferQueue to use free lists""

* commit '7637e35d17e06d532b0d2d11c0eef60594726209':
  Revert "libgui: Change BufferQueue to use free lists"

9 years agoMerge "Revert "libgui: Change BufferQueue to use free lists""
Dan Stoza [Wed, 22 Apr 2015 18:59:01 +0000 (18:59 +0000)]
Merge "Revert "libgui: Change BufferQueue to use free lists""

9 years agoRevert "libgui: Change BufferQueue to use free lists"
Dan Stoza [Wed, 22 Apr 2015 18:57:39 +0000 (18:57 +0000)]
Revert "libgui: Change BufferQueue to use free lists"

This reverts commit 8dddc990103b71137be2a6365a26b1ac36598e68.

Change-Id: I0b0fed9f1394c6f6ae812f6c562ead4473a8226e

9 years agoam e647ddde: Merge "libgui: Fix CPU rendering on Surface"
Dan Stoza [Wed, 22 Apr 2015 00:17:33 +0000 (00:17 +0000)]
am e647ddde: Merge "libgui: Fix CPU rendering on Surface"

* commit 'e647dddebb11a383c0d95b6dfd0cbe0998d9b644':
  libgui: Fix CPU rendering on Surface

9 years agoMerge "libgui: Fix CPU rendering on Surface"
Dan Stoza [Wed, 22 Apr 2015 00:07:51 +0000 (00:07 +0000)]
Merge "libgui: Fix CPU rendering on Surface"

9 years agolibgui: Fix CPU rendering on Surface
Dan Stoza [Tue, 21 Apr 2015 23:42:49 +0000 (16:42 -0700)]
libgui: Fix CPU rendering on Surface

When the surface damage code went in, it incorrectly assumed that if
an application was doing CPU rendering, it would be using lock and
unlockAndPost instead of dequeue and queue, so it repurposed the dirty
region too aggressively. This change keeps it from clobbering the
dirty region if a CPU producer is attached.

Bug: 20431815
Change-Id: Id4dfd71378311ea822f0289f6de2d20a7bd84014

9 years agoam ff5c1a6b: Merge "libgui: Change BufferQueue to use free lists"
Dan Stoza [Mon, 20 Apr 2015 20:24:58 +0000 (20:24 +0000)]
am ff5c1a6b: Merge "libgui: Change BufferQueue to use free lists"

* commit 'ff5c1a6b677d8d25630ffc3d1a868eb98a38ceab':
  libgui: Change BufferQueue to use free lists

9 years agolibui/libgui: Fix errors in parceling
Dan Stoza [Mon, 20 Apr 2015 19:07:13 +0000 (12:07 -0700)]
libui/libgui: Fix errors in parceling

BufferItem and GraphicBuffer were not parceling correctly, which had
not been noticed because the libgui tests (specifically, one that
tests placing a BufferQueue in a separate process from the IGBP/C)
had not been run recently. This change fixes the errors found in
those classes.

Change-Id: Ie224361a534a79115a3481d83ff97f21d154d4f5

9 years agoMerge "libgui: Change BufferQueue to use free lists"
Dan Stoza [Mon, 20 Apr 2015 20:14:13 +0000 (20:14 +0000)]
Merge "libgui: Change BufferQueue to use free lists"

9 years agolibgui: Change BufferQueue to use free lists
Dan Stoza [Thu, 16 Apr 2015 22:39:18 +0000 (15:39 -0700)]
libgui: Change BufferQueue to use free lists

BufferQueue used to choose free buffers by scanning through its array
of slots and picking one based on timestamp. This changes that
mechanism to use a pair of free lists: one with buffers attached and
one without. This makes it easier to choose either type of free slot
depending on the needs of the current operation.

Bug: 13175420
Change-Id: Ic8398e7511bd11a60a1c82e3ad2ee271c9822be1

9 years agoam 2e398e64: Merge "SF: Permit changing DispSync offsets at runtime"
Dan Stoza [Wed, 15 Apr 2015 21:46:45 +0000 (21:46 +0000)]
am 2e398e64: Merge "SF: Permit changing DispSync offsets at runtime"

* commit '2e398e64b3bc827ec8caaa1457442a8b3d546aed':
  SF: Permit changing DispSync offsets at runtime

9 years agoMerge "SF: Permit changing DispSync offsets at runtime"
Dan Stoza [Wed, 15 Apr 2015 21:37:19 +0000 (21:37 +0000)]
Merge "SF: Permit changing DispSync offsets at runtime"

9 years agoSF: Permit changing DispSync offsets at runtime
Dan Stoza [Tue, 14 Apr 2015 18:34:01 +0000 (11:34 -0700)]
SF: Permit changing DispSync offsets at runtime

This modifies EventThread such that its phase offsets for both
Choreographer and SurfaceFlinger may be modified at runtime. It also
plumbs this functionality up to the SurfaceFlinger debug interface so
that it is possible to rapidly test different offsets without
restarting the framework.

Change-Id: I426873f8553f931250dfebc9a8a4a78e9f1f4309

9 years agoam e7d20eb0: Merge "SurfaceFlinger: Pass surface damage to HWC"
Dan Stoza [Wed, 15 Apr 2015 20:46:35 +0000 (20:46 +0000)]
am e7d20eb0: Merge "SurfaceFlinger: Pass surface damage to HWC"

* commit 'e7d20eb000c1d342c8f5f58011023c0eb7cea6d5':
  SurfaceFlinger: Pass surface damage to HWC

9 years agoam fd5f41be: Merge "libgui: Pass surface damage through BufferQueue"
Dan Stoza [Wed, 15 Apr 2015 20:35:02 +0000 (20:35 +0000)]
am fd5f41be: Merge "libgui: Pass surface damage through BufferQueue"

* commit 'fd5f41bee9bcb2df64c39ff0de7d684e43d90d9c':
  libgui: Pass surface damage through BufferQueue

9 years agoMerge "SurfaceFlinger: Pass surface damage to HWC"
Dan Stoza [Wed, 15 Apr 2015 20:34:50 +0000 (20:34 +0000)]
Merge "SurfaceFlinger: Pass surface damage to HWC"

9 years agoMerge "libgui: Pass surface damage through BufferQueue"
Dan Stoza [Wed, 15 Apr 2015 20:26:55 +0000 (20:26 +0000)]
Merge "libgui: Pass surface damage through BufferQueue"

9 years agoSurfaceFlinger: Pass surface damage to HWC
Dan Stoza [Mon, 23 Mar 2015 22:50:23 +0000 (15:50 -0700)]
SurfaceFlinger: Pass surface damage to HWC

Passes the surface damage from the incoming SurfaceFlingerConsumer
BufferQueue down to the hardware composer HAL interface, if the
HWC version number is 1.5 or greater.

Bug: 11239309
Change-Id: Ic4305210593874a8d6deba3319055b2b8c57e926

9 years agolibgui: Pass surface damage through BufferQueue
Dan Stoza [Tue, 17 Mar 2015 23:23:42 +0000 (16:23 -0700)]
libgui: Pass surface damage through BufferQueue

This change adds support for passing surface damage all of the way
down from the EGL interface through the consumer side of the
BufferQueue. Depends on system/core change
Ie645e6a52b37b5c1b3be19481e8348570d1aa62c

Bug: 11239309
Change-Id: I4457ea826e9ade4ec187f973851d855b7b93a31b

9 years agoam 4d769d8b: Merge "libui: Clean up Fence and Region flattening"
Dan Stoza [Wed, 15 Apr 2015 20:18:44 +0000 (20:18 +0000)]
am 4d769d8b: Merge "libui: Clean up Fence and Region flattening"

* commit '4d769d8bdc2fd57d34ab0fa4b9208ac0eb67cd61':
  libui: Clean up Fence and Region flattening

9 years agoam 22412a34: Merge "libEGL: Add wrappers for partial update functions"
Dan Stoza [Wed, 15 Apr 2015 20:18:43 +0000 (20:18 +0000)]
am 22412a34: Merge "libEGL: Add wrappers for partial update functions"

* commit '22412a34c6d61394bad2c6e75105ea42a0c496cb':
  libEGL: Add wrappers for partial update functions

9 years agoMerge "libui: Clean up Fence and Region flattening"
Dan Stoza [Wed, 15 Apr 2015 20:13:53 +0000 (20:13 +0000)]
Merge "libui: Clean up Fence and Region flattening"

9 years agoMerge "libEGL: Add wrappers for partial update functions"
Dan Stoza [Wed, 15 Apr 2015 20:08:35 +0000 (20:08 +0000)]
Merge "libEGL: Add wrappers for partial update functions"

9 years agolibui: Clean up Fence and Region flattening
Dan Stoza [Mon, 23 Mar 2015 20:46:14 +0000 (13:46 -0700)]
libui: Clean up Fence and Region flattening

Fence was flattening incorrectly, causing issues with any fields
flattened after it, and Region was relying on being the last object
flattened. This change addresses both.

Change-Id: If49de061de6e2f11f4d846b4d8c18627dfb7e109

9 years agolibEGL: Add wrappers for partial update functions
Dan Stoza [Thu, 19 Feb 2015 23:27:36 +0000 (15:27 -0800)]
libEGL: Add wrappers for partial update functions

This adds EGL wrapper functions for the following EGL extensions:
    EGL_EXT_buffer_age
    EGL_KHR_partial_update
    EGL_KHR_swap_buffers_with_damage

Change-Id: I407acda1e0310f7f01a5efe9c915721a941138a4

9 years agoam a3f8c2aa: Merge "Fix a memory corruption issue when vector resize"
Dan Stoza [Tue, 14 Apr 2015 18:06:48 +0000 (18:06 +0000)]
am a3f8c2aa: Merge "Fix a memory corruption issue when vector resize"

* commit 'a3f8c2aaf1bb82b436306f65b86d25d4ea955d4d':
  Fix a memory corruption issue when vector resize

9 years agoMerge "Fix a memory corruption issue when vector resize"
Dan Stoza [Tue, 14 Apr 2015 17:50:39 +0000 (17:50 +0000)]
Merge "Fix a memory corruption issue when vector resize"

9 years agoam dfc30ae3: Merge "Command to move private app data between volumes."
Jeff Sharkey [Fri, 10 Apr 2015 21:08:43 +0000 (21:08 +0000)]
am dfc30ae3: Merge "Command to move private app data between volumes."

* commit 'dfc30ae393fd610fcbd05a1ecfe7d4834a792de3':
  Command to move private app data between volumes.

9 years agoMerge "Command to move private app data between volumes."
Jeff Sharkey [Fri, 10 Apr 2015 21:00:41 +0000 (21:00 +0000)]
Merge "Command to move private app data between volumes."

9 years agoCommand to move private app data between volumes.
Jeff Sharkey [Thu, 9 Apr 2015 03:56:42 +0000 (20:56 -0700)]
Command to move private app data between volumes.

New "mvuserdata" command will move all private app data from one
volume UUID to another.  It leverages the existing "cp" toybox
command to do the heavy lifting for all known users, preserving
details like timestamps and permissions.  It invokes restorecon()
to correctly label the new location when the copy is finished.

Changes installd to no longer drop capabilities, so we run as root
again.  This also allows us to exec "cp" with CAP_DAC_OVERRIDE and
CAP_FOWNER still in effect.

Bug: 19993667
Change-Id: I1f407a7c4a1af97ca5afc27b04eb16b4936cbdef

9 years agoFix a memory corruption issue when vector resize
ywen [Thu, 26 Mar 2015 11:51:12 +0000 (19:51 +0800)]
Fix a memory corruption issue when vector resize

There is memory corruption in below code

const Rect* prev = &dst[prevIndex];
dst.add(Rect(prev->right, top, right, bottom));

prev points to a memory of vector dst, when dst resize in add()
call, the memory that prev points to will be copy to the new
allocated vector memory and the old memory will become undefined

Avoid pointer in this case, use a local copy instead

Change-Id: I4d95ceedd00c8fb615ac153082ade1b1ce0d0fa8

9 years agoam 44a38d93: Merge "Start accepting volume UUIDs from framework."
Jeff Sharkey [Thu, 9 Apr 2015 21:47:30 +0000 (21:47 +0000)]
am 44a38d93: Merge "Start accepting volume UUIDs from framework."

* commit '44a38d9337989742046c1e3faa6e7392ecc47cd4':
  Start accepting volume UUIDs from framework.

9 years agoMerge "Start accepting volume UUIDs from framework."
Jeff Sharkey [Thu, 9 Apr 2015 21:41:11 +0000 (21:41 +0000)]
Merge "Start accepting volume UUIDs from framework."

9 years agoStart accepting volume UUIDs from framework.
Jeff Sharkey [Thu, 9 Apr 2015 20:10:03 +0000 (13:10 -0700)]
Start accepting volume UUIDs from framework.

We're now parsing and passing through volume UUIDs sent across the
command socket.  The "!" argument value is treated as null, which
means internal storage.

Bug: 19993667
Change-Id: I17729a769ce687a2e94e85991a6338c77ded0b66

9 years agoam 066fadb9: Merge "More volume UUID awareness."
Jeff Sharkey [Thu, 9 Apr 2015 19:53:33 +0000 (19:53 +0000)]
am 066fadb9: Merge "More volume UUID awareness."

* commit '066fadb983b117a7682af00780d23d16232ab0e2':
  More volume UUID awareness.

9 years agoMerge "More volume UUID awareness."
Jeff Sharkey [Thu, 9 Apr 2015 19:45:03 +0000 (19:45 +0000)]
Merge "More volume UUID awareness."

9 years agoMore volume UUID awareness.
Jeff Sharkey [Thu, 9 Apr 2015 18:34:03 +0000 (11:34 -0700)]
More volume UUID awareness.

Teach free_cache() and restorecon_data() about building per-volume
paths.  Also clean up restorecon_data() by using std::string when
building paths.

Clearer names for path building utility methods, and tests to verify.

Bug: 19993667
Change-Id: Iacfbcdaa5b901cc2490bc8eba366dfdeb44f1d93

9 years agoam f9ab2ad2: Merge "Installd: Fix Clang build"
Andreas Gampe [Thu, 9 Apr 2015 17:05:44 +0000 (17:05 +0000)]
am f9ab2ad2: Merge "Installd: Fix Clang build"

* commit 'f9ab2ad2d5786b2dd04f08f5d5a67102bd3d796a':
  Installd: Fix Clang build

9 years agoMerge "Installd: Fix Clang build"
Andreas Gampe [Thu, 9 Apr 2015 16:55:48 +0000 (16:55 +0000)]
Merge "Installd: Fix Clang build"

9 years agoInstalld: Fix Clang build
Andreas Gampe [Thu, 9 Apr 2015 16:52:45 +0000 (09:52 -0700)]
Installd: Fix Clang build

Remove some unused parameters and variables.

Change-Id: I507ae48fe1744b800ceb29192d463fd26c2ccda7

9 years agoam d107c305: Merge "Plumb through volume UUID when building paths."
Jeff Sharkey [Thu, 9 Apr 2015 16:35:20 +0000 (16:35 +0000)]
am d107c305: Merge "Plumb through volume UUID when building paths."

* commit 'd107c305f74592e8078754b317d840a2dde661db':
  Plumb through volume UUID when building paths.

9 years agoMerge "Plumb through volume UUID when building paths."
Jeff Sharkey [Thu, 9 Apr 2015 16:27:18 +0000 (16:27 +0000)]
Merge "Plumb through volume UUID when building paths."

9 years agoam ab91d03b: Merge "installd: Add support for SELF_PATCHOAT_NEEDED."
Richard Uhler [Thu, 9 Apr 2015 14:20:53 +0000 (14:20 +0000)]
am ab91d03b: Merge "installd: Add support for SELF_PATCHOAT_NEEDED."

* commit 'ab91d03b0dfebf40e98034670892c278ae0a46e5':
  installd: Add support for SELF_PATCHOAT_NEEDED.

9 years agoMerge "installd: Add support for SELF_PATCHOAT_NEEDED."
Richard Uhler [Thu, 9 Apr 2015 14:13:27 +0000 (14:13 +0000)]
Merge "installd: Add support for SELF_PATCHOAT_NEEDED."

9 years agoam ad436ab5: Merge "dumpstate: scrub APANIC"
Mark Salyzyn [Wed, 8 Apr 2015 18:11:30 +0000 (18:11 +0000)]
am ad436ab5: Merge "dumpstate: scrub APANIC"

* commit 'ad436ab54a649075b25ab755344fd011bd0c9262':
  dumpstate: scrub APANIC

9 years agoMerge "dumpstate: scrub APANIC"
Mark Salyzyn [Wed, 8 Apr 2015 18:03:35 +0000 (18:03 +0000)]
Merge "dumpstate: scrub APANIC"

9 years agodumpstate: scrub APANIC
Mark Salyzyn [Wed, 8 Apr 2015 17:51:51 +0000 (10:51 -0700)]
dumpstate: scrub APANIC

Bug: 19525200
Change-Id: Ia2d2857cac953fb4ceafb66ddf775d89d7a777b1

9 years agoPlumb through volume UUID when building paths.
Jeff Sharkey [Wed, 8 Apr 2015 01:14:05 +0000 (18:14 -0700)]
Plumb through volume UUID when building paths.

Since app data paths can live on expanded storage devices, accept the
target volume UUID when building paths.  The null UUID indicates the
default internal storage.

To improve readability, start using std::string in several places,
which throws when allocations fail.  For now, perform last-second
sanity checks on incoming path arguments, but we'll eventually want
to check arguments as they come through installd.cpp, instead of
crashing the entire daemon.

Also remove "lib" symlink code from install() and make_user_data(),
since we're no longer supporting /data/app-lib.  The framework
already uses linklib() to create the right symlink for the selected
ISA-specific library dir.

Bug: 19993667
Change-Id: Ib9343575ffb62bf3981e19375de8f3822fc31e28

9 years agoinstalld: Add support for SELF_PATCHOAT_NEEDED.
Richard Uhler [Thu, 26 Mar 2015 22:47:38 +0000 (15:47 -0700)]
installd: Add support for SELF_PATCHOAT_NEEDED.

Change-Id: Ib9a6373f98474f1242367b5285086251a9d580e5

9 years agoam 00afb817: Merge "libgui: Plumb detachBuffer through ConsumerBase"
Dan Stoza [Tue, 7 Apr 2015 22:47:50 +0000 (22:47 +0000)]
am 00afb817: Merge "libgui: Plumb detachBuffer through ConsumerBase"

* commit '00afb8177fdbf144c75c00e9eacc915589807d35':
  libgui: Plumb detachBuffer through ConsumerBase

9 years agoMerge "libgui: Plumb detachBuffer through ConsumerBase"
Dan Stoza [Tue, 7 Apr 2015 22:38:00 +0000 (22:38 +0000)]
Merge "libgui: Plumb detachBuffer through ConsumerBase"

9 years agolibgui: Plumb detachBuffer through ConsumerBase
Dan Stoza [Fri, 3 Apr 2015 21:22:05 +0000 (14:22 -0700)]
libgui: Plumb detachBuffer through ConsumerBase

Exposes IGraphicBufferConsumer::detachBuffer as a ConsumerBase
method. attachBuffer is not currently exposed, because all current
clients will be recycling buffers through the allocator.

Bug: 19628705
Change-Id: I3e519767fa43d5d880c1d5695e31b60f6ad588af

9 years agoMerge "libgui: Plumb attach/detach through Surface" into stage-aosp-master
Dan Stoza [Tue, 7 Apr 2015 22:00:36 +0000 (22:00 +0000)]
Merge "libgui: Plumb attach/detach through Surface" into stage-aosp-master

9 years agoMerge "libgui: Remove IGBC::BufferItem" into stage-aosp-master
Dan Stoza [Tue, 7 Apr 2015 21:16:33 +0000 (21:16 +0000)]
Merge "libgui: Remove IGBC::BufferItem" into stage-aosp-master

9 years agoam 1cd030be: Merge "Switch installd to compile as C++."
Jeff Sharkey [Tue, 7 Apr 2015 21:13:43 +0000 (21:13 +0000)]
am 1cd030be: Merge "Switch installd to compile as C++."

* commit '1cd030be59c108cde25234f0d2da83a68a7cdd26':
  Switch installd to compile as C++.

9 years agoam 2d42dc74: Merge "Valid APK paths now include expanded storage."
Jeff Sharkey [Tue, 7 Apr 2015 21:13:42 +0000 (21:13 +0000)]
am 2d42dc74: Merge "Valid APK paths now include expanded storage."

* commit '2d42dc74e9b647345a5d4ba79bcdadbf700002e2':
  Valid APK paths now include expanded storage.

9 years agoMerge "Switch installd to compile as C++."
Jeff Sharkey [Tue, 7 Apr 2015 21:04:28 +0000 (21:04 +0000)]
Merge "Switch installd to compile as C++."

9 years agoMerge "Valid APK paths now include expanded storage."
Jeff Sharkey [Tue, 7 Apr 2015 21:03:41 +0000 (21:03 +0000)]
Merge "Valid APK paths now include expanded storage."

9 years agoSwitch installd to compile as C++.
Jeff Sharkey [Tue, 7 Apr 2015 19:44:51 +0000 (12:44 -0700)]
Switch installd to compile as C++.

This is the minimal change needed to switch it over to C++, which
paves the way for using more robust utilities like std::string.

Change-Id: I80ed6280146875eb6ddbbb340c05450388ca13f0

9 years agoValid APK paths now include expanded storage.
Jeff Sharkey [Mon, 6 Apr 2015 23:19:39 +0000 (16:19 -0700)]
Valid APK paths now include expanded storage.

Apps on expanded storage live at /mnt/expand/<uuid>/app/com.example,
so we need to relax one more directory level.

Bug: 19993667
Change-Id: I347ec7b92435ea69e632ed5d5fdfabe38ce0b56e

9 years agolibgui: Plumb attach/detach through Surface
Dan Stoza [Wed, 11 Mar 2015 18:55:01 +0000 (11:55 -0700)]
libgui: Plumb attach/detach through Surface

Exposes the attachBuffer and detachNextBuffer calls from
IGraphicBufferProducer to the public Surface interface. Also moves
the version of connect that takes a producer callback from protected
to public.

Bug: 19628705
Change-Id: I9ebc3013c4d9c84c4e8ef150c00e03f8af80319e
(cherry picked from commit 231832eb27107fb561467f5f4a9be2c577c61ea8)

9 years agolibgui: Remove IGBC::BufferItem
Dan Stoza [Fri, 13 Mar 2015 21:40:34 +0000 (14:40 -0700)]
libgui: Remove IGBC::BufferItem

Removes IGraphicBufferConsumer::BufferItem. Depends on the
following changes:
    I187b3a7d05196b6289596afac8fb9a9d4aebff76
    I0ddd38df37500cfd6b21d1e768ed14e39c5cd9fc

Change-Id: I3edf0db8fba656fd78e18a5a7f1137f0fb6b237d
(cherry picked from commit 1c87e474d87d6d1380fb61d476d606b1a2fda1c1)

9 years agoam 8f43f77d: Merge "Use AID_SYSTEM as uid when creating oat dir"
Fyodor Kupolov [Tue, 7 Apr 2015 20:18:23 +0000 (20:18 +0000)]
am 8f43f77d: Merge "Use AID_SYSTEM as uid when creating oat dir"

* commit '8f43f77de89df935e7dc2fdeddee132580bb5705':
  Use AID_SYSTEM as uid when creating oat dir

9 years agoMerge "Use AID_SYSTEM as uid when creating oat dir"
Fyodor Kupolov [Tue, 7 Apr 2015 20:09:43 +0000 (20:09 +0000)]
Merge "Use AID_SYSTEM as uid when creating oat dir"

9 years agoUse AID_SYSTEM as uid when creating oat dir
Fyodor Kupolov [Tue, 7 Apr 2015 02:09:02 +0000 (19:09 -0700)]
Use AID_SYSTEM as uid when creating oat dir

Previously AID_INSTALL was used, which was causing permission denied errors
when PackageManager was trying to recursively rename staging directory

Bug: 19550105
Bug: 20087446
Change-Id: I3a9e3056c1fbc1ce0077a3ce52cf77ea6b5085ee

9 years agoam a60ff367: Merge "Remove useless \'svcmgr_handle\' (which had wrong type)."
Elliott Hughes [Mon, 6 Apr 2015 23:19:41 +0000 (23:19 +0000)]
am a60ff367: Merge "Remove useless \'svcmgr_handle\' (which had wrong type)."

* commit 'a60ff367a4f55ea319625cf500687c5025604f40':
  Remove useless 'svcmgr_handle' (which had wrong type).

9 years agoMerge "Remove useless 'svcmgr_handle' (which had wrong type)."
Elliott Hughes [Mon, 6 Apr 2015 23:13:27 +0000 (23:13 +0000)]
Merge "Remove useless 'svcmgr_handle' (which had wrong type)."

9 years agoDO NOT MERGE Cherry-pick dataSpace and BufferItem changes
Eino-Ville Talvala [Fri, 20 Feb 2015 00:10:43 +0000 (16:10 -0800)]
DO NOT MERGE Cherry-pick dataSpace and BufferItem changes

DO NOT MERGE Add dataSpace to buffer queues; remove old format enums.
(cherry picked from commit 82c6bcc9705eabcaf5b9e45bc81867b0e2d61a02)

DO NOT MERGE libgui: Prepare for IGBC::BufferItem removal
(cherry picked from commit cf3834db104e0b052056e3a06d46e3f222f0d372)

DO NOT MERGE SurfaceFlinger: Stop using IGBC::BufferItem
(cherry picked from commit 11611f9be590480d7ea27bf0153558573ddcded2)

9 years agoRemove useless 'svcmgr_handle' (which had wrong type).
Elliott Hughes [Fri, 3 Apr 2015 23:51:18 +0000 (16:51 -0700)]
Remove useless 'svcmgr_handle' (which had wrong type).

Also use the 'ptr' union member rather than 'handle'.

Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
Change-Id: I68e5336cd3af3bc61dbddd2b33d7e1512c0c329c

9 years agoam 031fec0b: Merge "ServiceManager: Print kernel/userspace binder version"
Elliott Hughes [Sat, 4 Apr 2015 00:13:25 +0000 (00:13 +0000)]
am 031fec0b: Merge "ServiceManager: Print kernel/userspace binder version"

* commit '031fec0b9da7f5985c5a1650ed570ca3872e63c0':
  ServiceManager: Print kernel/userspace binder version

9 years agoMerge "ServiceManager: Print kernel/userspace binder version"
Elliott Hughes [Sat, 4 Apr 2015 00:03:45 +0000 (00:03 +0000)]
Merge "ServiceManager: Print kernel/userspace binder version"

9 years agoServiceManager: Print kernel/userspace binder version
Serban Constantinescu [Wed, 19 Feb 2014 15:34:02 +0000 (15:34 +0000)]
ServiceManager: Print kernel/userspace binder version

This patch adds extra logging for the binder version in case the userspace
and kernel versions differ.

Change-Id: I9859b29099726cfcfe5ca23d88ed2e101a06af1a
Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
9 years agoam 1e954441: (-s ours) Merge "DO NOT MERGE libgui: Plumb attach/detach through Surface"
Dan Stoza [Fri, 3 Apr 2015 16:19:55 +0000 (16:19 +0000)]
am 1e954441: (-s ours) Merge "DO NOT MERGE libgui: Plumb attach/detach through Surface"

* commit '1e954441d22d0feb28caceee9fe14bc7729b7b90':
  DO NOT MERGE libgui: Plumb attach/detach through Surface

9 years agoMerge "DO NOT MERGE libgui: Plumb attach/detach through Surface"
Dan Stoza [Fri, 3 Apr 2015 16:10:12 +0000 (16:10 +0000)]
Merge "DO NOT MERGE libgui: Plumb attach/detach through Surface"

9 years agoam 9cad1985: Merge "Fix errors caused by unused variables"
Fyodor Kupolov [Fri, 3 Apr 2015 00:16:38 +0000 (00:16 +0000)]
am 9cad1985: Merge "Fix errors caused by unused variables"

* commit '9cad1985880f700be3150f05ca3539444da850d2':
  Fix errors caused by unused variables

9 years agoMerge "Fix errors caused by unused variables"
Fyodor Kupolov [Fri, 3 Apr 2015 00:04:25 +0000 (00:04 +0000)]
Merge "Fix errors caused by unused variables"

9 years agoFix errors caused by unused variables
Fyodor Kupolov [Thu, 2 Apr 2015 23:59:10 +0000 (16:59 -0700)]
Fix errors caused by unused variables

Change-Id: Ie52ae0e9a642504ee7b78c6bc54b61549cfb0342

9 years agoam 4eb88f88: Merge "Support for storing OAT files in app directory"
Fyodor Kupolov [Thu, 2 Apr 2015 23:20:59 +0000 (23:20 +0000)]
am 4eb88f88: Merge "Support for storing OAT files in app directory"

* commit '4eb88f883911eb1208e85a9c176481176242af13':
  Support for storing OAT files in app directory

9 years agoMerge "Support for storing OAT files in app directory"
Fyodor Kupolov [Thu, 2 Apr 2015 23:11:01 +0000 (23:11 +0000)]
Merge "Support for storing OAT files in app directory"

9 years agoDO NOT MERGE libgui: Plumb attach/detach through Surface
Dan Stoza [Wed, 11 Mar 2015 18:55:01 +0000 (11:55 -0700)]
DO NOT MERGE libgui: Plumb attach/detach through Surface

Exposes the attachBuffer and detachNextBuffer calls from
IGraphicBufferProducer to the public Surface interface. Also moves
the version of connect that takes a producer callback from protected
to public.

Bug: 19628705
Change-Id: I9ebc3013c4d9c84c4e8ef150c00e03f8af80319e
(cherry picked from commit c14ecb9de243af8864610fd3c74342e3ca2cb4bc)

9 years agoam 23b204e1: Merge "servicemanager: service_manager missing include for string.h"
Mark Salyzyn [Wed, 1 Apr 2015 19:38:00 +0000 (19:38 +0000)]
am 23b204e1: Merge "servicemanager: service_manager missing include for string.h"

* commit '23b204e1ee9069b9321b5547e8d17a5014efbacd':
  servicemanager: service_manager missing include for string.h

9 years agoMerge "servicemanager: service_manager missing include for string.h"
Mark Salyzyn [Wed, 1 Apr 2015 19:26:22 +0000 (19:26 +0000)]
Merge "servicemanager: service_manager missing include for string.h"

9 years agoam ef62116d: (-s ours) Merge "DO NOT MERGE libgui: Remove IGBC::BufferItem"
Dan Stoza [Wed, 1 Apr 2015 18:48:14 +0000 (18:48 +0000)]
am ef62116d: (-s ours) Merge "DO NOT MERGE libgui: Remove IGBC::BufferItem"

* commit 'ef62116d802237ebac77465d6ff6779ecfe038ae':
  DO NOT MERGE libgui: Remove IGBC::BufferItem

9 years agoMerge "DO NOT MERGE libgui: Remove IGBC::BufferItem"
Dan Stoza [Wed, 1 Apr 2015 18:41:24 +0000 (18:41 +0000)]
Merge "DO NOT MERGE libgui: Remove IGBC::BufferItem"

9 years agoservicemanager: service_manager missing include for string.h
Mark Salyzyn [Wed, 1 Apr 2015 14:52:12 +0000 (07:52 -0700)]
servicemanager: service_manager missing include for string.h

service_manager.c gets string.h inherited from
private/android_filesystem_config.h it should
not rely on this in the future. The intent is
to move fs_config function into libcutils and
thus deprecate any need for string.h in this
include file.

Bug: 19908228
Change-Id: Icc95ee02bf02c596463868b1330d209d1bd5c58a

9 years agoam 5881c8dd: Merge "Installd: Support dex2oat threads system property"
Andreas Gampe [Tue, 31 Mar 2015 03:24:59 +0000 (03:24 +0000)]
am 5881c8dd: Merge "Installd: Support dex2oat threads system property"

* commit '5881c8dd3b5b290cddca0e0f01e2c2f1641826b0':
  Installd: Support dex2oat threads system property

9 years agoMerge "Installd: Support dex2oat threads system property"
Andreas Gampe [Tue, 31 Mar 2015 03:20:15 +0000 (03:20 +0000)]
Merge "Installd: Support dex2oat threads system property"

9 years agoInstalld: Support dex2oat threads system property
Andreas Gampe [Tue, 31 Mar 2015 01:45:03 +0000 (18:45 -0700)]
Installd: Support dex2oat threads system property

Check dalvik.vm.dex2oat-threads in installd and pass to dex2oat.

Bug: 19992386
Change-Id: I5e7806cf560607d31a1d6901dffb14bee538c9cc

9 years agoSupport for storing OAT files in app directory
Fyodor Kupolov [Tue, 3 Mar 2015 20:25:29 +0000 (12:25 -0800)]
Support for storing OAT files in app directory

Changes to installd:
- dexopt now allows oat_dir param for custom output directory
- Added helper method calculate_oat_file_path for calculating oat file
  output location based on oat_dir and apk_path.

Bug: 19550105
Change-Id: I6b079207310583adeb6dad918a58034a059e34c4

9 years agoam 0faebfb2: Merge "Add trace_event_clock_sync to atrace"
John Reck [Fri, 27 Mar 2015 00:21:41 +0000 (00:21 +0000)]
am 0faebfb2: Merge "Add trace_event_clock_sync to atrace"

* commit '0faebfb2f5a07939e7264a94fdcebecc4df39873':
  Add trace_event_clock_sync to atrace

9 years agoMerge "Add trace_event_clock_sync to atrace"
John Reck [Fri, 27 Mar 2015 00:13:32 +0000 (00:13 +0000)]
Merge "Add trace_event_clock_sync to atrace"

9 years agoAdd trace_event_clock_sync to atrace
John Reck [Thu, 26 Mar 2015 22:31:35 +0000 (15:31 -0700)]
Add trace_event_clock_sync to atrace

Change-Id: I8adce15210d82df09ff3a39ddd8df617aeb16a42

9 years agoam bc5aceb1: Merge "Store odex files in oat/<isa>/ directory."
Richard Uhler [Thu, 26 Mar 2015 15:04:46 +0000 (15:04 +0000)]
am bc5aceb1: Merge "Store odex files in oat/<isa>/ directory."

* commit 'bc5aceb1f0a68e96dced1d843278b3bf14504f2c':
  Store odex files in oat/<isa>/ directory.

9 years agoMerge "Store odex files in oat/<isa>/ directory."
Richard Uhler [Thu, 26 Mar 2015 14:57:35 +0000 (14:57 +0000)]
Merge "Store odex files in oat/<isa>/ directory."

9 years agoStore odex files in oat/<isa>/ directory.
Richard Uhler [Wed, 18 Mar 2015 19:39:09 +0000 (12:39 -0700)]
Store odex files in oat/<isa>/ directory.

Previously odex files were stored alongside the dex location as:
  dex location: /foo/bar/base.apk
  odex location: /foo/bar/<isa>/base.odex

This changes where odex files are stored, adding an "oat" directory:
  dex location: /foo/bar/base.apk
  odex location: /foo/bar/oat/<isa>/base.odex

See also the corresponding changes in platform/art and platform/build.

Bug: 19550105
Change-Id: I4c6be4f0c41ff175904846db8e360c4af815b265