OSDN Git Service

android-x86/frameworks-native.git
7 years agoMerge "Surface: Use async lock/unlock in copyBlt"
Jesse Hall [Mon, 9 Jan 2017 05:15:04 +0000 (05:15 +0000)]
Merge "Surface: Use async lock/unlock in copyBlt"
am: b73de86f13

Change-Id: I5312414d1e66cc0dbd3b346f14c14eb1ff90e6da

7 years agoMerge "Surface: Use async lock/unlock in copyBlt"
Jesse Hall [Mon, 9 Jan 2017 05:07:29 +0000 (05:07 +0000)]
Merge "Surface: Use async lock/unlock in copyBlt"

7 years agoMerge "egl: Add NULL check for num_config parameter"
Jesse Hall [Sat, 7 Jan 2017 23:49:20 +0000 (23:49 +0000)]
Merge "egl: Add NULL check for num_config parameter"
am: 64990fc0b9

Change-Id: I1000300a6ca1a5ee9013f68aacd8541cdfac48b1

7 years agoMerge "egl: Add NULL check for num_config parameter"
Jesse Hall [Sat, 7 Jan 2017 23:44:22 +0000 (23:44 +0000)]
Merge "egl: Add NULL check for num_config parameter"

7 years agoMerge "Unversion NDK stub libraries."
Dan Albert [Fri, 6 Jan 2017 21:03:17 +0000 (21:03 +0000)]
Merge "Unversion NDK stub libraries."
am: 3944ec426b

Change-Id: I3266580d6f41b32ec8775e0bb73c66303ed5fa62

7 years agoMerge "Unversion NDK stub libraries."
Treehugger Robot [Fri, 6 Jan 2017 20:53:07 +0000 (20:53 +0000)]
Merge "Unversion NDK stub libraries."

7 years agoUnversion NDK stub libraries.
Dan Albert [Thu, 5 Jan 2017 23:58:50 +0000 (15:58 -0800)]
Unversion NDK stub libraries.

The system versions of these libraries aren't versioned yet.

Bug: https://github.com/android-ndk/ndk/issues/278
Test: make ndk
Change-Id: I73e4ebcac151c4039df6261aa6674accb0204706

7 years agoMerge "Add android/log.h to Rect.h"
Steve Paik [Fri, 6 Jan 2017 02:14:28 +0000 (02:14 +0000)]
Merge "Add android/log.h to Rect.h"
am: a422103c90

Change-Id: I47eecbef3964168a075554b39135286254854472

7 years agoMerge "Add android/log.h to Rect.h"
Treehugger Robot [Fri, 6 Jan 2017 02:08:15 +0000 (02:08 +0000)]
Merge "Add android/log.h to Rect.h"

7 years agoAdd android/log.h to Rect.h
Steve Paik [Thu, 5 Jan 2017 17:09:56 +0000 (09:09 -0800)]
Add android/log.h to Rect.h

Rect.h uses definitions from log.h.

Test:  Build succeeds when C file doesn't include log.h.
Change-Id: Ia85372ca61edafadea92165121dc6fbd1546674b

7 years agoMerge "Pass the same fd when compiling due to boot image update."
Nicolas Geoffray [Thu, 5 Jan 2017 15:01:32 +0000 (15:01 +0000)]
Merge "Pass the same fd when compiling due to boot image update."
am: 4f8c1fd2ea

Change-Id: Ifbc81ad7ffebdcb2eb40e279c558899ec1dce505

7 years agoMerge "Pass the same fd when compiling due to boot image update."
Treehugger Robot [Thu, 5 Jan 2017 14:56:01 +0000 (14:56 +0000)]
Merge "Pass the same fd when compiling due to boot image update."

7 years agoPass the same fd when compiling due to boot image update.
Nicolas Geoffray [Tue, 20 Dec 2016 15:03:56 +0000 (15:03 +0000)]
Pass the same fd when compiling due to boot image update.

Test: device boots, apps get installed, OTA uses same vdex.
Change-Id: I913062630640f31a18d23b2f62afd74986322e6a

7 years agoSurface: Use async lock/unlock in copyBlt
Francis Hart [Fri, 9 Jan 2015 09:10:54 +0000 (11:10 +0200)]
Surface: Use async lock/unlock in copyBlt

The Surface::lock() function now uses the asynchronous versions of
gralloc lock/unlock when copying the previously drawn content to the
backbuffer. This allows for optimisations in the gralloc module
implementation and so can improve performance and avoid CPU waits.

Change-Id: I57193f327db2ff0422e1b58b3484f613201d994c

7 years agoMerge "Callback elision for HIDL interfaces."
Martijn Coenen [Thu, 5 Jan 2017 09:46:55 +0000 (09:46 +0000)]
Merge "Callback elision for HIDL interfaces."
am: b7ee96a666

Change-Id: I2d71b02f11d16c95830adbca36f77345ba58cafa

7 years agoMerge "Callback elision for HIDL interfaces."
Martijn Coenen [Thu, 5 Jan 2017 09:40:55 +0000 (09:40 +0000)]
Merge "Callback elision for HIDL interfaces."

7 years agoCallback elision for HIDL interfaces.
Martijn Coenen [Mon, 2 Jan 2017 14:17:11 +0000 (15:17 +0100)]
Callback elision for HIDL interfaces.

Test: mma
Bug: 31380743
Change-Id: I33080b61d6233b63106b2602a628bfcdaa878a90

7 years agoMerge "Surface: Ensure synchronisation of copyBlt"
Francis Hart [Wed, 4 Jan 2017 20:38:52 +0000 (20:38 +0000)]
Merge "Surface: Ensure synchronisation of copyBlt"
am: 88f77814a1

Change-Id: If8fe2dde08a1a850029e1d9ca6a7ae965f2aa8ab

7 years agoMerge "Surface: Ensure synchronisation of copyBlt"
Treehugger Robot [Wed, 4 Jan 2017 20:33:09 +0000 (20:33 +0000)]
Merge "Surface: Ensure synchronisation of copyBlt"

7 years agoMerge "Mark libGLESv3 as unversioned until android-24."
Dan Albert [Wed, 4 Jan 2017 19:06:28 +0000 (19:06 +0000)]
Merge "Mark libGLESv3 as unversioned until android-24."
am: a09d0363fd

Change-Id: Ic902107fc0f9f78fa9ab124c99cbb5f976ebbe61

7 years agoMerge "Mark libGLESv3 as unversioned until android-24."
Treehugger Robot [Wed, 4 Jan 2017 19:00:36 +0000 (19:00 +0000)]
Merge "Mark libGLESv3 as unversioned until android-24."

7 years agoMerge "Reference profiles use shared GID for user 0."
Jeff Sharkey [Tue, 3 Jan 2017 23:41:34 +0000 (23:41 +0000)]
Merge "Reference profiles use shared GID for user 0."
am: 226f77d87a

Change-Id: I3c4d10f9483f99f3db4b2b1ff53ab62cd0b567db

7 years agoMerge "Reference profiles use shared GID for user 0."
Jeff Sharkey [Tue, 3 Jan 2017 23:37:00 +0000 (23:37 +0000)]
Merge "Reference profiles use shared GID for user 0."

7 years agoMark libGLESv3 as unversioned until android-24.
Dan Albert [Tue, 3 Jan 2017 23:18:48 +0000 (15:18 -0800)]
Mark libGLESv3 as unversioned until android-24.

Test: readelf on android-23 and android-24 outputs to check version
      information.
Bug: https://github.com/android-ndk/ndk/issues/265

Change-Id: I4a9b50b015567c64b75f09e8414682d314a86bc4

7 years agoReference profiles use shared GID for user 0.
Jeff Sharkey [Tue, 3 Jan 2017 21:33:50 +0000 (14:33 -0700)]
Reference profiles use shared GID for user 0.

Test: builds, boots
Bug: 33977235
Change-Id: I4de3852b3f230a6dc874a630e3c1b9fff2d83169

7 years agoMerge "Offer to measure disk stats using quotas."
Jeff Sharkey [Tue, 3 Jan 2017 19:24:09 +0000 (19:24 +0000)]
Merge "Offer to measure disk stats using quotas."
am: 8aed997c14

Change-Id: I17e1355805fa2c439331b0a9814ce5160e0bd168

7 years agoMerge "Offer to measure disk stats using quotas."
Jeff Sharkey [Tue, 3 Jan 2017 19:08:07 +0000 (19:08 +0000)]
Merge "Offer to measure disk stats using quotas."

7 years agoOffer to measure disk stats using quotas.
Jeff Sharkey [Tue, 13 Dec 2016 00:32:56 +0000 (17:32 -0700)]
Offer to measure disk stats using quotas.

Now we're getting somewhere!  This CL starts using quotactl() to read
UID/GID quota statistics when called with FLAG_USE_QUOTA, otherwise
it continues using the old heavy-weight traversal for calculation.

We now set the recently defined per-app GID used for identifying
cached data, and we use the sticky GID bit on cache directories to
ensure that newly created data inherits the GID for tracking
purposes.  For any existing apps during an upgrade, an initial
bootstrapping case will recursively set this new GID.

This change also shuffles around a bunch of the tedious manual
accounting logic so that we exactly match the new quota statistics.

Test: builds, boots, quota stats match manual stats
Bug: 27948817
Change-Id: I8512c3193ce698f197a3f446e625d6a1c74e7649

7 years agoMerge "Replace cutils/log.h and rationalize log/log.h and android/log.h"
Mark Salyzyn [Wed, 28 Dec 2016 16:58:07 +0000 (16:58 +0000)]
Merge "Replace cutils/log.h and rationalize log/log.h and android/log.h"
am: 1efda0b1d6

Change-Id: I263fa3a582bbff546f1281205b539258ee5dab49

7 years agoMerge "Replace cutils/log.h and rationalize log/log.h and android/log.h"
Mark Salyzyn [Wed, 28 Dec 2016 16:48:57 +0000 (16:48 +0000)]
Merge "Replace cutils/log.h and rationalize log/log.h and android/log.h"

7 years agoReplace cutils/log.h and rationalize log/log.h and android/log.h
Mark Salyzyn [Thu, 29 Sep 2016 15:08:05 +0000 (08:08 -0700)]
Replace cutils/log.h and rationalize log/log.h and android/log.h

- cutils/log.h treat as deprecated and lead by example
- android/log.h to be used instead of log/log.h if required
- add system includes that are assumed as side effects of log.h
- modules that use SLOG should use SLOG for all logging (installd)
- define LOG_TAG first
- remove logging infrastructure if not used

Test: build
Bug: 31289077
Change-Id: Iea147a0104c7ab7f12451304131d6500f42141e7

7 years agoMerge "Update for hiding Status from Return<T> object."
Yifan Hong [Thu, 22 Dec 2016 18:16:15 +0000 (18:16 +0000)]
Merge "Update for hiding Status from Return<T> object."
am: c47aa53c84

Change-Id: If4e92201b4f3a21925c9a2644fa8fa76d0ce7d18

7 years agoMerge "Update for hiding Status from Return<T> object."
Yifan Hong [Thu, 22 Dec 2016 18:04:15 +0000 (18:04 +0000)]
Merge "Update for hiding Status from Return<T> object."

7 years agoMerge "Only log restorecon changes for existing dirs."
Jeff Sharkey [Wed, 21 Dec 2016 18:58:21 +0000 (18:58 +0000)]
Merge "Only log restorecon changes for existing dirs."
am: ee080ea229

Change-Id: Iac6ca0bdbd39efc2258efd354dfd054f6a6d026e

7 years agoUpdate for hiding Status from Return<T> object.
Yifan Hong [Wed, 21 Dec 2016 18:47:56 +0000 (10:47 -0800)]
Update for hiding Status from Return<T> object.

Test: compiles

Change-Id: Ie32514f34efaa1188f34f662b194b60d83c20bf0

7 years agoMerge "Only log restorecon changes for existing dirs."
Jeff Sharkey [Wed, 21 Dec 2016 18:46:27 +0000 (18:46 +0000)]
Merge "Only log restorecon changes for existing dirs."

7 years agoOnly log restorecon changes for existing dirs.
Jeff Sharkey [Wed, 21 Dec 2016 16:33:55 +0000 (09:33 -0700)]
Only log restorecon changes for existing dirs.

If we just created an app private data directory, we're always going
to be relabeling it, so don't log in that case.  Continue logging if
something caused us to relabel an existing app data directory.

Test: builds, boots, only logs for existing dirs
Bug: 31958779
Change-Id: Id03f7c18aed191a4c7fb9dcf9380136c93798a4b

7 years agoMerge "Remove ~1/3 of the installd calls at boot."
Jeff Sharkey [Tue, 20 Dec 2016 01:13:41 +0000 (01:13 +0000)]
Merge "Remove ~1/3 of the installd calls at boot."
am: ed04f3c7e5

Change-Id: Id68b901ea2c12815df1d4c6e83e789101663870c

7 years agoMerge "Remove ~1/3 of the installd calls at boot."
Treehugger Robot [Tue, 20 Dec 2016 01:06:22 +0000 (01:06 +0000)]
Merge "Remove ~1/3 of the installd calls at boot."

7 years agoRemove ~1/3 of the installd calls at boot.
Jeff Sharkey [Mon, 19 Dec 2016 23:39:18 +0000 (16:39 -0700)]
Remove ~1/3 of the installd calls at boot.

When preparing CE storage for an app, we always perform a second call
to extract any newly created CE directory inode.  Let's simplify this
and just return the inode number from the createAppData() call.

Test: builds, boots, reads CE inodes after wipe
Bug: 33463450
Change-Id: I68485e4b9b49e9da7b3ac7c66f50c6abc750b7e3

7 years agoMerge "Sensor: Add more comments for ASensorEventQueue_registerSensor() function"
Peng Xu [Sat, 17 Dec 2016 00:15:04 +0000 (00:15 +0000)]
Merge "Sensor: Add more comments for ASensorEventQueue_registerSensor() function"
am: 8d24d0022b

Change-Id: Ibd1faaf9c8a881a4fddcfa19e99357bb7ad13f0a

7 years agoMerge "Sensor: Add more comments for ASensorEventQueue_registerSensor() function"
Peng Xu [Sat, 17 Dec 2016 00:02:02 +0000 (00:02 +0000)]
Merge "Sensor: Add more comments for ASensorEventQueue_registerSensor() function"

7 years agoMerge "Handle invalid shared GIDs."
Jeff Sharkey [Thu, 15 Dec 2016 22:07:13 +0000 (22:07 +0000)]
Merge "Handle invalid shared GIDs."
am: 788bdeae78

Change-Id: I48c3d8e584a30ed994920f57570344d7736ab183

7 years agoMerge "Handle invalid shared GIDs."
Jeff Sharkey [Thu, 15 Dec 2016 21:59:08 +0000 (21:59 +0000)]
Merge "Handle invalid shared GIDs."

7 years agoHandle invalid shared GIDs.
Jeff Sharkey [Thu, 15 Dec 2016 21:50:11 +0000 (14:50 -0700)]
Handle invalid shared GIDs.

Shared GIDs are only available inside a range from 50000-59999, so
system UIDs (outside the normal app range) don't have a valid GID to
use.  The best we can do is skip the profile setup in those cases.

Test: builds
Bug: 27948817
Change-Id: I8c38a0e3631eafd07e96da3e37e641b3cce195a6

7 years agoMerge "libvulkan: add NULL check to DestroySwapchainKHR"
Daniel Koch [Thu, 15 Dec 2016 19:18:03 +0000 (19:18 +0000)]
Merge "libvulkan: add NULL check to DestroySwapchainKHR"
am: 55e4f91258

Change-Id: I07b33309ac91d75535e0916315e98d5a1319c9b8

7 years agoMerge "libvulkan: add NULL check to DestroySwapchainKHR"
Treehugger Robot [Thu, 15 Dec 2016 19:09:39 +0000 (19:09 +0000)]
Merge "libvulkan: add NULL check to DestroySwapchainKHR"

7 years agolibvulkan: add NULL check to DestroySwapchainKHR
Daniel Koch [Tue, 13 Dec 2016 23:45:13 +0000 (18:45 -0500)]
libvulkan: add NULL check to DestroySwapchainKHR

vkDestroySwapchainKHR is required to silently ignore NULL handles
that are provided to it to destroy.
This adds an early return if swapchain_handle is NULL.

Test: dEQP-VK.wsi.android.swapchain.destroy.null_handle (VK 1.0.2 CTS)

Change-Id: Ic230f114a680210cb0e0de931b17e4d70fb27f44

7 years agoMerge "Fix unused-parameter warning"
Dan Willemsen [Thu, 15 Dec 2016 07:28:16 +0000 (07:28 +0000)]
Merge "Fix unused-parameter warning"
am: a2a7195e23

Change-Id: I5f7f0a85d52e1a7a7cdf53cd6f8cc892a79cc1ca

7 years agoMerge "Fix unused-parameter warning"
Treehugger Robot [Thu, 15 Dec 2016 07:17:26 +0000 (07:17 +0000)]
Merge "Fix unused-parameter warning"

7 years agoMerge "Fix more warnings in framworks/native/opengl/include"
Colin Cross [Thu, 15 Dec 2016 00:10:28 +0000 (00:10 +0000)]
Merge "Fix more warnings in framworks/native/opengl/include"
am: e714200784

Change-Id: I3d87ab34104953546061d4999bcd1f21b01ad401

7 years agoMerge "Fix more warnings in framworks/native/opengl/include"
Colin Cross [Wed, 14 Dec 2016 23:58:54 +0000 (23:58 +0000)]
Merge "Fix more warnings in framworks/native/opengl/include"

7 years agoFix unused-parameter warning
Dan Willemsen [Wed, 14 Dec 2016 05:20:13 +0000 (21:20 -0800)]
Fix unused-parameter warning

This is exposed when frameworks/av/include is moved from being a system
include directory to a normal include directory.

Test: m -j checkbuild
Change-Id: I127ebe25162f3b6dbb9fc564a6c2c851d0c1636f

7 years agoFix more warnings in framworks/native/opengl/include
Colin Cross [Wed, 14 Dec 2016 20:45:27 +0000 (12:45 -0800)]
Fix more warnings in framworks/native/opengl/include

Remove two more visability attributes being applied to typedefs.
The warnings were being hidden by the use of -isystem to include
frameworks/native/opengl/include.

Bug: 31752268
Test: m -j native

Change-Id: Ic6854d934a8d0d03b23e596d5230a6deb69c86bc

7 years agoSensor: Add more comments for ASensorEventQueue_registerSensor() function
Aniroop Mathur [Mon, 12 Dec 2016 18:34:06 +0000 (00:04 +0530)]
Sensor: Add more comments for ASensorEventQueue_registerSensor() function

Lets add more comments to clarify that ASensorEventQueue_disableSensor is
to be used same as before for deactivating the sensor with respect to
sensor activation with ASensorEventQueue_registerSensor function.

Test: Check clarification in comments / spell check

Change-Id: Id38c002b57154c1feedf099f45b0ed8ed004ca39
Signed-off-by: Aniroop Mathur <a.mathur@samsung.com>
7 years agoMerge "egl: add EGL_IMG_context_priority to the whitelist"
Christian Poetzsch [Tue, 13 Dec 2016 16:00:43 +0000 (16:00 +0000)]
Merge "egl: add EGL_IMG_context_priority to the whitelist"
am: d94925cf3c

Change-Id: I8abde18794aa20175abf160013c9fa64e40a5870

7 years agoMerge "egl: add EGL_IMG_context_priority to the whitelist"
Treehugger Robot [Tue, 13 Dec 2016 15:55:29 +0000 (15:55 +0000)]
Merge "egl: add EGL_IMG_context_priority to the whitelist"

7 years agoMerge "Make atrace not depend on /dev/hwbinder."
Steven Moreland [Tue, 13 Dec 2016 01:21:09 +0000 (01:21 +0000)]
Merge "Make atrace not depend on /dev/hwbinder."
am: 228f4bdaa9

Change-Id: I411e1d562b50773f2517cdd2baea015ff1bbbc4b

7 years agoMerge "Make atrace not depend on /dev/hwbinder."
Treehugger Robot [Tue, 13 Dec 2016 01:12:48 +0000 (01:12 +0000)]
Merge "Make atrace not depend on /dev/hwbinder."

7 years agoMerge "atrace: introduce tracing category for adb."
Josh Gao [Tue, 13 Dec 2016 00:36:07 +0000 (00:36 +0000)]
Merge "atrace: introduce tracing category for adb."
am: 3c9a97902d

Change-Id: Ie645bb48bfa06b3e3dc7dbfc722dcb0bdf5a8977

7 years agoMerge "atrace: introduce tracing category for adb."
Josh Gao [Tue, 13 Dec 2016 00:28:09 +0000 (00:28 +0000)]
Merge "atrace: introduce tracing category for adb."

7 years agoMerge "Split all dexopt-related code into dexopt.cpp."
Jeff Sharkey [Tue, 13 Dec 2016 00:10:51 +0000 (00:10 +0000)]
Merge "Split all dexopt-related code into dexopt.cpp."
am: 85a369c26e

Change-Id: I7a2028276fafd71d5c9294a635838fc1db56c0f1

7 years agoSplit all dexopt-related code into dexopt.cpp.
Jeff Sharkey [Tue, 13 Dec 2016 00:10:50 +0000 (00:10 +0000)]
Split all dexopt-related code into dexopt.cpp.
am: 90aff26f01

Change-Id: I2a7b5fcf1a1143bbb34f8124e8e6b68fa701d6ed

7 years agoMerge "Split all dexopt-related code into dexopt.cpp."
Jeff Sharkey [Tue, 13 Dec 2016 00:01:23 +0000 (00:01 +0000)]
Merge "Split all dexopt-related code into dexopt.cpp."

7 years agoMake atrace not depend on /dev/hwbinder.
Steven Moreland [Mon, 12 Dec 2016 23:18:06 +0000 (15:18 -0800)]
Make atrace not depend on /dev/hwbinder.

Bug: 31262344
Test: compiles
Change-Id: I2b4fa6815723507dd04afda19e99e5a15053dc66

7 years agoMerge "Allow both RENDER and TEXTURE flags when creating native client buffers."
Craig Donner [Mon, 12 Dec 2016 22:21:14 +0000 (22:21 +0000)]
Merge "Allow both RENDER and TEXTURE flags when creating native client buffers."
am: 2a3edda489

Change-Id: Ie071cbfb7d1d3f4c77f488e0f38bb4aa346072e0

7 years agoMerge "Minor shuffling of installd error reporting."
Jeff Sharkey [Mon, 12 Dec 2016 22:14:56 +0000 (22:14 +0000)]
Merge "Minor shuffling of installd error reporting."
am: 991707a167

Change-Id: I34820e7997f70fea12c7b9d64999d419988317e2

7 years agoMerge "Allow both RENDER and TEXTURE flags when creating native client buffers."
Treehugger Robot [Mon, 12 Dec 2016 22:14:13 +0000 (22:14 +0000)]
Merge "Allow both RENDER and TEXTURE flags when creating native client buffers."

7 years agoMerge "Minor shuffling of installd error reporting."
Treehugger Robot [Mon, 12 Dec 2016 22:06:43 +0000 (22:06 +0000)]
Merge "Minor shuffling of installd error reporting."

7 years agoSplit all dexopt-related code into dexopt.cpp.
Jeff Sharkey [Mon, 12 Dec 2016 21:28:24 +0000 (14:28 -0700)]
Split all dexopt-related code into dexopt.cpp.

Only a few minor changes to return bool instead of binder::Status.

Test: builds, boots, apps install/uninstall fine
Change-Id: I538024c0e9da8ca2c0983a6e779c34bd40752053

7 years agoatrace: introduce tracing category for adb.
Josh Gao [Tue, 29 Nov 2016 18:55:21 +0000 (10:55 -0800)]
atrace: introduce tracing category for adb.

Bug: http://b/31289465
Test: systrace
Change-Id: Ida5e898206e5b224771393d2d2ba609183dc3b90

7 years agoMinor shuffling of installd error reporting.
Jeff Sharkey [Mon, 12 Dec 2016 20:18:46 +0000 (13:18 -0700)]
Minor shuffling of installd error reporting.

We actually want to early-return when creating user data fails, and
we want to return an exception when getAppDataInode() is called with
unsupported flags.

Test: builds, boots, apps install/uninstall fine
Bug: 1375896030944031
Change-Id: I69816275a0be7a73a8ae7f3d90f2cdea80d8ebfc

7 years agoMerge "Return real error strings from installd."
Jeff Sharkey [Mon, 12 Dec 2016 19:48:04 +0000 (19:48 +0000)]
Merge "Return real error strings from installd."
am: 8f3ce2cd66

Change-Id: I2a5e1fa64f14e15b191e805e080489d078bcac70

7 years agoAllow both RENDER and TEXTURE flags when creating native client buffers.
Craig Donner [Fri, 9 Dec 2016 23:34:56 +0000 (15:34 -0800)]
Allow both RENDER and TEXTURE flags when creating native client buffers.

Bug: 33057441
Test: Cherrypick from internal repo.
Change-Id: I64ebf6bb5cb534d7f67a9338ebac4bf23a47d607

7 years agoMerge "Return real error strings from installd."
Jeff Sharkey [Mon, 12 Dec 2016 19:38:07 +0000 (19:38 +0000)]
Merge "Return real error strings from installd."

7 years agoReturn real error strings from installd.
Jeff Sharkey [Sat, 10 Dec 2016 01:18:43 +0000 (18:18 -0700)]
Return real error strings from installd.

Now that we've moved installd to Binder, we can return nice detailed
error strings explaining why a call failed.  This is particularly
valuable when we record the error message into the PackageManager
persistent log, because up until now those errors were limited to
an unhelpful "installd returned -1" message.

Also perform uniform enforcement of all incoming package name and
UUID arguments.

Test: builds, boots, apps install/uninstall fine
Bug: 1375896030944031
Change-Id: Ic1f65ce8c10b1329e01d6a49d72cafa879c4d8bc

7 years agoMerge "service_manager.c: remove is_selinux_enabled calls"
Nick Kralevich [Mon, 12 Dec 2016 16:43:23 +0000 (16:43 +0000)]
Merge "service_manager.c: remove is_selinux_enabled calls"
am: fce768d017

Change-Id: I1c53b32979e0d9d9706b52258acfd31341b9c4d1

7 years agoMerge "service_manager.c: remove is_selinux_enabled calls"
Treehugger Robot [Mon, 12 Dec 2016 16:33:05 +0000 (16:33 +0000)]
Merge "service_manager.c: remove is_selinux_enabled calls"

7 years agoMerge "Filename refactoring, remove DEXOPT_OTA flag."
Jeff Sharkey [Sat, 10 Dec 2016 23:07:06 +0000 (23:07 +0000)]
Merge "Filename refactoring, remove DEXOPT_OTA flag."
am: 68603971f6

Change-Id: Ieb4e045c7b2d4b57647ba6e3afbc18ec28540cfb

7 years agoMerge "Final push of installd to Binder; goodbye socket!"
Jeff Sharkey [Sat, 10 Dec 2016 23:01:08 +0000 (23:01 +0000)]
Merge "Final push of installd to Binder; goodbye socket!"
am: 24865a0868

Change-Id: Iead84e70b56b40c49a0b358915bf5daa4df77882

7 years agoMerge "Filename refactoring, remove DEXOPT_OTA flag."
Jeff Sharkey [Sat, 10 Dec 2016 22:57:22 +0000 (22:57 +0000)]
Merge "Filename refactoring, remove DEXOPT_OTA flag."

7 years agoMerge "Final push of installd to Binder; goodbye socket!"
Jeff Sharkey [Sat, 10 Dec 2016 22:54:51 +0000 (22:54 +0000)]
Merge "Final push of installd to Binder; goodbye socket!"

7 years agoservice_manager.c: remove is_selinux_enabled calls
Nick Kralevich [Sat, 10 Dec 2016 01:05:09 +0000 (17:05 -0800)]
service_manager.c: remove is_selinux_enabled calls

SELinux is always enabled. No need to check for it.

Test: Device boots and service manager works without errors.
Change-Id: I12be7336e7c31a5f5796ea1383f3dc934eb3c97c

7 years agoFilename refactoring, remove DEXOPT_OTA flag.
Jeff Sharkey [Sat, 10 Dec 2016 00:06:57 +0000 (17:06 -0700)]
Filename refactoring, remove DEXOPT_OTA flag.

Test: builds, boots
Bug: 1375896030944031
Change-Id: Ib60899fc70b12f76fad9dfad596b513777752703

7 years agoFinal push of installd to Binder; goodbye socket!
Jeff Sharkey [Wed, 7 Dec 2016 19:12:00 +0000 (12:12 -0700)]
Final push of installd to Binder; goodbye socket!

Move last two straggling installd commands to Binder and destroy the
socket-based communication channel forever.

Test: builds, boots, apps install fine, pre-OTA dexopt works
Bug: 1375896030944031
Change-Id: I2ecd604fb6627b9028a7e32f87d0367e4a4afde3

7 years agoSurface: Ensure synchronisation of copyBlt
Francis Hart [Mon, 1 Dec 2014 14:04:49 +0000 (16:04 +0200)]
Surface: Ensure synchronisation of copyBlt

The Surface::lock() function has an optimisation for copying the
previously drawn contents from the frontbuffer to the (current)
backbuffer, so that the client does not have to redraw the whole surface
contents. This logic was not using the sync fence FD from
dequeueBuffer() and so was not correctly synchronised with pending
operations on the backbuffer.

Change-Id: Ib44574d50f8bdb4a23078cd8da1c5c512c876320

7 years agoMerge "Yet another set of installd Binder methods."
Jeff Sharkey [Wed, 7 Dec 2016 22:47:59 +0000 (22:47 +0000)]
Merge "Yet another set of installd Binder methods."
am: 77f764d66f

Change-Id: I92f820a6e51824f93a68109f74ce66d73679c28e

7 years agoMerge "Yet another set of installd Binder methods."
Jeff Sharkey [Wed, 7 Dec 2016 22:38:48 +0000 (22:38 +0000)]
Merge "Yet another set of installd Binder methods."

7 years agoYet another set of installd Binder methods.
Jeff Sharkey [Wed, 7 Dec 2016 17:37:27 +0000 (10:37 -0700)]
Yet another set of installd Binder methods.

Pretty straightforward refactoring.

Test: builds, boots, apps install fine
Bug: 1375896030944031
Change-Id: I6e79fe1a3663807c24eb28dca684b539df398c13

7 years agoMerge "Move more installd methods to Binder."
Jeff Sharkey [Wed, 7 Dec 2016 06:45:24 +0000 (06:45 +0000)]
Merge "Move more installd methods to Binder."
am: f69c024050

Change-Id: I8389e2fd000f1e90e22b83777ebaf44f26c90c61

7 years agoMerge "Move more installd methods to Binder."
Jeff Sharkey [Wed, 7 Dec 2016 06:39:27 +0000 (06:39 +0000)]
Merge "Move more installd methods to Binder."

7 years agoMerge "Revert "Move installd back to Android.mk.""
Dan Willemsen [Wed, 7 Dec 2016 02:38:55 +0000 (02:38 +0000)]
Merge "Revert "Move installd back to Android.mk.""
am: 1ae0486a54

Change-Id: I3a57d5d8a62aa17b834091b142fd07c0d436708c

7 years agoMerge "Revert "Move installd back to Android.mk.""
Treehugger Robot [Wed, 7 Dec 2016 02:35:35 +0000 (02:35 +0000)]
Merge "Revert "Move installd back to Android.mk.""

7 years agoMove more installd methods to Binder.
Jeff Sharkey [Tue, 6 Dec 2016 06:39:32 +0000 (23:39 -0700)]
Move more installd methods to Binder.

Test: builds, boots, apps install fine
Bug: 1375896030944031
Change-Id: I1fcaaaaad34c2f9a3d6a15443ef1764186669865

7 years agoRevert "Move installd back to Android.mk."
Dan Willemsen [Tue, 6 Dec 2016 23:44:57 +0000 (15:44 -0800)]
Revert "Move installd back to Android.mk."

This reverts commit 00b6f68c5c72252542a1e8c5dda4b420ed02c947 and
converts the new entries to Android.bp now that Soong supports AIDL.

Test: mmma -j framework/native/cmds/installd
Test: /data/nativetest64/installd_utils_test/installd_utils_test; fails
      the same before/after
Change-Id: I327eb0bc28fa84cda669ec0df59da82ee10caf1f

7 years agoMerge remote-tracking branch 'goog/stage-aosp-master' into HEAD
Bill Yi [Wed, 7 Dec 2016 00:00:59 +0000 (00:00 +0000)]
Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD
am: ecea1bfeae

Change-Id: I4c7f09b30207177815a24548a95e1bd823eeae85

7 years agoMerge commit 'f5c3b20f062ca646572ee6c07713eba691971c95' into dec6
Jeff Sharkey [Tue, 6 Dec 2016 23:52:32 +0000 (16:52 -0700)]
Merge commit 'f5c3b20f062ca646572ee6c07713eba691971c95' into dec6

Change-Id: I96a76c752bb1cd478bfd88f384537951c7b694e2

7 years agoMerge "DO NOT MERGE. Check and restorecon cache/code_cache directories."
Jeff Sharkey [Tue, 6 Dec 2016 23:44:48 +0000 (23:44 +0000)]
Merge "DO NOT MERGE. Check and restorecon cache/code_cache directories."
am: 661cbb7f1b  -s ours

Change-Id: Iddc4eb1f1a90dda1020c4d9a7375c2b4d8dcfdc6

7 years agoMerge remote-tracking branch 'goog/stage-aosp-master' into HEAD
Bill Yi [Tue, 6 Dec 2016 23:07:48 +0000 (15:07 -0800)]
Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD

7 years agoMerge "Shuffle installd Binder implementation around."
Jeff Sharkey [Tue, 6 Dec 2016 22:24:25 +0000 (22:24 +0000)]
Merge "Shuffle installd Binder implementation around."