OSDN Git Service

android-x86/frameworks-native.git
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 "DO NOT MERGE. Check and restorecon cache/code_cache directories."
Jeff Sharkey [Tue, 6 Dec 2016 22:24:17 +0000 (22:24 +0000)]
Merge "DO NOT MERGE. Check and restorecon cache/code_cache directories."

7 years agoMerge changes I0c8d4018,Ic9dfb243,I7e442b06
Jeff Sharkey [Tue, 6 Dec 2016 16:58:09 +0000 (16:58 +0000)]
Merge changes I0c8d4018,Ic9dfb243,I7e442b06
am: 17892731ec

Change-Id: Iadd662bf024e3acd58cf5c747d1546e457483a7b

7 years agoDO NOT MERGE. Recursively restorecon when SELinux label changes.
Jeff Sharkey [Tue, 6 Dec 2016 16:58:06 +0000 (16:58 +0000)]
DO NOT MERGE. Recursively restorecon when SELinux label changes.
am: 7db6041d15  -s ours

Change-Id: Ie64c33ed2eaded73fe043955e0f954bc76f166f7

7 years agoDO NOT MERGE. Ignore setxattr() failures on tmpfs.
Jeff Sharkey [Tue, 6 Dec 2016 16:57:57 +0000 (16:57 +0000)]
DO NOT MERGE. Ignore setxattr() failures on tmpfs.
am: 4ed6507cfb  -s ours

Change-Id: I5a8fa5606aaeaa75539a38227e78420acd4bf5bc

7 years agoDO NOT MERGE. Record "cache" inodes to clear while CE is locked.
Jeff Sharkey [Tue, 6 Dec 2016 16:57:49 +0000 (16:57 +0000)]
DO NOT MERGE. Record "cache" inodes to clear while CE is locked.
am: 9a998f4762  -s ours

Change-Id: Id413a5bceff13dc717fa82209302662b77276165

7 years agoMerge changes I0c8d4018,Ic9dfb243,I7e442b06
Treehugger Robot [Tue, 6 Dec 2016 16:53:04 +0000 (16:53 +0000)]
Merge changes I0c8d4018,Ic9dfb243,I7e442b06

* changes:
  DO NOT MERGE. Recursively restorecon when SELinux label changes.
  DO NOT MERGE. Ignore setxattr() failures on tmpfs.
  DO NOT MERGE. Record "cache" inodes to clear while CE is locked.

7 years agoDO NOT MERGE. Check and restorecon cache/code_cache directories.
Jeff Sharkey [Mon, 31 Oct 2016 17:22:19 +0000 (11:22 -0600)]
DO NOT MERGE. Check and restorecon cache/code_cache directories.

To speed up boot times, we recently relaxed SELinux restorecon logic
to only consider relabeling app storage when the top level SELinux
label changed.

However, if an app manually deletes either their cache or code_cache
directories, installd will helpfully recreate those directories at
the next boot, but they'll be stuck with incorrect SELinux labels
which an app can't fix.  (Our historically aggressive restorecons had
relabeled them, which is why we didn't observe until now.)

This change checks the labels of the cache/code_cache directories,
and runs a restorecon if needed, fixing the issue above.

Test: delete cache and verify recreated with correct label
Bug: 32504081
Change-Id: I0114ae4129223e5909b1075d56a9b1145ebc5ef4

7 years agoDO NOT MERGE. Recursively restorecon when SELinux label changes.
Jeff Sharkey [Wed, 21 Sep 2016 00:21:42 +0000 (18:21 -0600)]
DO NOT MERGE. Recursively restorecon when SELinux label changes.

PackageManager has been pretty aggressive about asking installd to
restorecon over app data when it thinks something might have
changed.  However, in the vast majority of cases these are no-op
requests, and we waste a bunch of time recursively walking all
private data, easily costing 60+ seconds on dogfooder devices.

This change updates the initial "create_app_data" command to kick off
a recursive restorecon if it detects that the top-level SELinux label
on the app private data directory changes.  The "create_app_data"
command is designed to ensure that an app's storage is ready, so
PackageManager always calls it at least once per boot before apps
can run.  (This change means that PackageManager no longer needs to
make separate "restorecon_app_data" calls.)

Test: booted, verified that a label change triggered restorecon
Bug: 30768146
Change-Id: I0c8d4018cf8ff888d0ae07a82adc3d61a6002aad

7 years agoDO NOT MERGE. Ignore setxattr() failures on tmpfs.
Jeff Sharkey [Fri, 22 Jul 2016 17:38:54 +0000 (11:38 -0600)]
DO NOT MERGE. Ignore setxattr() failures on tmpfs.

Bug: 30210614
Change-Id: Ic9dfb2439b4b1056e1a58552be2e84f4e524321e

7 years agoDO NOT MERGE. Record "cache" inodes to clear while CE is locked.
Jeff Sharkey [Fri, 15 Jul 2016 00:16:22 +0000 (18:16 -0600)]
DO NOT MERGE. Record "cache" inodes to clear while CE is locked.

There are two situations where we need to clear cached data from
all users, including those whose CE storage might still be locked:

1. When PackageManager is clearing caches to try making room for
package updates.
2. When the device fingerprint changes, we need to clear code caches
for all apps.

To enable this, we now record the inode number of the "cache" and
"code_cache" directories in xattrs of the parent directory.  This is
just enough information to find the cache directories to enable
deleting files inside.  When preparing CE storage for an app, we now
create these two directories and immediately write the inode numbers.

Bug: 26056125
Change-Id: I7e442b0676a695acf962593469793a93b03c8aee

7 years agoMerge "Check and write some error in atrace."
Yifan Hong [Tue, 6 Dec 2016 15:41:08 +0000 (15:41 +0000)]
Merge "Check and write some error in atrace."
am: 7b50c02030

Change-Id: I562794bbe7dc52268ad2b477e0dca58a7b79d365

7 years agoMerge "Check and write some error in atrace."
Treehugger Robot [Tue, 6 Dec 2016 15:07:54 +0000 (15:07 +0000)]
Merge "Check and write some error in atrace."

7 years agoMerge "Convert vulkan to Android.bp"
Colin Cross [Tue, 6 Dec 2016 01:58:25 +0000 (01:58 +0000)]
Merge "Convert vulkan to Android.bp"
am: e421c0710f

Change-Id: Icd0b77b032179c8e8ce5c6009848e23916c990d5

7 years agoMerge "Convert vulkan to Android.bp"
Colin Cross [Tue, 6 Dec 2016 01:52:13 +0000 (01:52 +0000)]
Merge "Convert vulkan to Android.bp"

7 years agoMerge changes from topic 'bind'
Jeff Sharkey [Tue, 6 Dec 2016 00:24:17 +0000 (00:24 +0000)]
Merge changes from topic 'bind'
am: 7726057707

Change-Id: I6e0198eceaa85c97bf3b72791e4e5e1df5086091

7 years agoInitial Binder interface for installd.
Jeff Sharkey [Tue, 6 Dec 2016 00:24:08 +0000 (00:24 +0000)]
Initial Binder interface for installd.
am: 9087400f3c

Change-Id: I4912defb2edafb60d429d90679bffe88589fcad9

7 years agoConvert vulkan to Android.bp
Colin Cross [Mon, 5 Dec 2016 21:26:22 +0000 (13:26 -0800)]
Convert vulkan to Android.bp

See build/soong/README.md for more information.

Test: mma -j
Change-Id: Ic7f0af683a5ef093df718ed746a73a7fa2a9ce0b

7 years agoMove installd back to Android.mk.
Jeff Sharkey [Tue, 6 Dec 2016 00:22:39 +0000 (00:22 +0000)]
Move installd back to Android.mk.
am: 00b6f68c5c

Change-Id: Iad4819473f6b25f6ac7aa31e23661b564cd49f0e

7 years agoMerge changes from topic 'bind'
Jeff Sharkey [Tue, 6 Dec 2016 00:14:53 +0000 (00:14 +0000)]
Merge changes from topic 'bind'

* changes:
  Initial Binder interface for installd.
  Move installd back to Android.mk.

7 years agoCheck and write some error in atrace.
Yifan Hong [Mon, 5 Dec 2016 20:58:05 +0000 (12:58 -0800)]
Check and write some error in atrace.

Bug: 33305299

Test: compiles
Change-Id: I88c7ede6cbf68ca10d980e448456bb4ef2a73592

7 years agoInitial Binder interface for installd.
Jeff Sharkey [Mon, 5 Dec 2016 18:18:55 +0000 (11:18 -0700)]
Initial Binder interface for installd.

Define an AIDL for installd, starting with a single method.  Publish
that interface for the system to start using.  We'll circle back and
migrate more methods in future CLs.

Migrating installd to Binder will allow us to get rid of one of
the few lingering text-based command protocols, improving system
maintainability and security.

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

7 years agoMove installd back to Android.mk.
Jeff Sharkey [Sun, 4 Dec 2016 21:02:00 +0000 (14:02 -0700)]
Move installd back to Android.mk.

An upcoming CL will be compiling an AIDL for installd, which the new
build system doesn't support yet.

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

7 years agoMerge "Fix includes; use IBase instead of IBinder."
Yifan Hong [Sat, 3 Dec 2016 23:09:03 +0000 (23:09 +0000)]
Merge "Fix includes; use IBase instead of IBinder."
am: bd5dc9df53

Change-Id: Ic75eab82059ff0d1bf483f11d55fb9a6a74dd539

7 years agoMerge "Fix includes; use IBase instead of IBinder."
Treehugger Robot [Sat, 3 Dec 2016 23:04:24 +0000 (23:04 +0000)]
Merge "Fix includes; use IBase instead of IBinder."

7 years agoFix includes; use IBase instead of IBinder.
Yifan Hong [Tue, 29 Nov 2016 17:59:32 +0000 (09:59 -0800)]
Fix includes; use IBase instead of IBinder.

Test: mma
Change-Id: I2604772ff952ed451cc87be330ed131452db8eff

7 years agoMerge "Check for errors for IServiceManager::get and list."
Yifan Hong [Fri, 2 Dec 2016 19:25:46 +0000 (19:25 +0000)]
Merge "Check for errors for IServiceManager::get and list."
am: a09202e9ac

Change-Id: I530107b1067810c4107cf22f4408d910190c9f7b

7 years agoMerge "Check for errors for IServiceManager::get and list."
Treehugger Robot [Fri, 2 Dec 2016 19:19:33 +0000 (19:19 +0000)]
Merge "Check for errors for IServiceManager::get and list."

7 years agoCheck for errors for IServiceManager::get and list.
Yifan Hong [Thu, 1 Dec 2016 01:28:58 +0000 (17:28 -0800)]
Check for errors for IServiceManager::get and list.

Test: compiles
Change-Id: I65b858b1ebd5d45739db05fcadb58ae48fd3337e

7 years agoMerge "surfaceflinger:Fix potential crash issue when do AIDL FUZZ test"
Jinguang Dong [Wed, 30 Nov 2016 06:22:31 +0000 (06:22 +0000)]
Merge "surfaceflinger:Fix potential crash issue when do AIDL FUZZ test"
am: 2792ff4527

Change-Id: Ia8c1ac3f9eff3680ed64235cb01043d0b7c434b9

7 years agoMerge "surfaceflinger:Fix potential crash issue when do AIDL FUZZ test"
Treehugger Robot [Wed, 30 Nov 2016 06:11:21 +0000 (06:11 +0000)]
Merge "surfaceflinger:Fix potential crash issue when do AIDL FUZZ test"

7 years agosurfaceflinger:Fix potential crash issue when do AIDL FUZZ
Jinguang Dong [Tue, 29 Nov 2016 05:55:57 +0000 (13:55 +0800)]
surfaceflinger:Fix potential crash issue when do AIDL FUZZ
test

There will be trigger exception when we provide invalid
inputs parameter for surfaceflinger  JNI interface

Test: 1.Run adb shell and open AIDLer tools;
      2.change to Dir /sdcard/elong.AIDLer
      3.run commond service list > service_list.txt
      4.Rerun AIDL FUZZ test

Change-Id: I0a63adc1e8ae5d9c9e43cb6df6aa13503c40a0c5

7 years agoMerge "Adjust installd with new dexopt return values."
Nicolas Geoffray [Mon, 28 Nov 2016 13:25:26 +0000 (13:25 +0000)]
Merge "Adjust installd with new dexopt return values."
am: b29c82b67e

Change-Id: Ib0f3811c5891d6871d7b9d44c615954b06f261c6

7 years agoMerge "Adjust installd with new dexopt return values."
Nicolas Geoffray [Mon, 28 Nov 2016 13:15:55 +0000 (13:15 +0000)]
Merge "Adjust installd with new dexopt return values."

7 years agoAdjust installd with new dexopt return values.
Nicolas Geoffray [Fri, 25 Nov 2016 11:33:31 +0000 (11:33 +0000)]
Adjust installd with new dexopt return values.

Bug: 30937355
Test: device boots, mimic system update, apps get updated.
Change-Id: I9539892dfcdd0cc722a292140accd7525ee132d0

7 years agoMerge "Fix clang static analyzer warnings."
Manoj Gupta [Wed, 23 Nov 2016 06:40:36 +0000 (06:40 +0000)]
Merge "Fix clang static analyzer warnings."
am: b10d705f51

Change-Id: Ibdd7df4af9766b5d00515254cbb8d5e9370a4971

7 years agoMerge "Fix clang static analyzer warnings."
Treehugger Robot [Wed, 23 Nov 2016 06:35:32 +0000 (06:35 +0000)]
Merge "Fix clang static analyzer warnings."

7 years agoMerge "atrace: support HAL services as well."
Martijn Coenen [Tue, 22 Nov 2016 09:49:27 +0000 (09:49 +0000)]
Merge "atrace: support HAL services as well."
am: 1aea108920

Change-Id: Iac0430699cd15f59ed68b41d20010165a50a50e2

7 years agoMerge "atrace: support HAL services as well."
Treehugger Robot [Tue, 22 Nov 2016 09:43:23 +0000 (09:43 +0000)]
Merge "atrace: support HAL services as well."

7 years agoatrace: support HAL services as well.
Martijn Coenen [Wed, 16 Nov 2016 15:00:26 +0000 (16:00 +0100)]
atrace: support HAL services as well.

Also poke services that are only registered with
hwbinder, so that they update their props (trace
categories) immediately.

Bug: 31262344
Test: builds, atrace works
Change-Id: I355ddd5f950acc27d598cd972e63f9711426b943

7 years agoMerge "atrace.rc: move to post-fs trigger"
Wei Wang [Sun, 20 Nov 2016 16:26:31 +0000 (16:26 +0000)]
Merge "atrace.rc: move to post-fs trigger"
am: 3749a60b42

Change-Id: Ib2675cf4047d6ce1b9b6285538bb7f7be7ed1649

7 years agoMerge "atrace.rc: move to post-fs trigger"
Treehugger Robot [Sun, 20 Nov 2016 16:22:22 +0000 (16:22 +0000)]
Merge "atrace.rc: move to post-fs trigger"

7 years agoatrace.rc: move to post-fs trigger
Wei Wang [Sun, 20 Nov 2016 04:49:09 +0000 (20:49 -0800)]
atrace.rc: move to post-fs trigger

Test: manually
Bug: 32025203
Change-Id: I787984fc8ab7151ecce9e62a25fa03b0ecf263cd

7 years agoMerge "Fix warnings in framworks/native/opengl/include"
Colin Cross [Fri, 18 Nov 2016 01:55:54 +0000 (01:55 +0000)]
Merge "Fix warnings in framworks/native/opengl/include"
am: d12c9369d5

Change-Id: Ifbbccbd890d3ab80910586c52f263e903e36dbbd

7 years agoMerge "Fix warnings in framworks/native/opengl/include"
Treehugger Robot [Fri, 18 Nov 2016 01:50:49 +0000 (01:50 +0000)]
Merge "Fix warnings in framworks/native/opengl/include"

7 years agoMerge "Revert "Workaround alloc-dealloc-mismatch error on ASan device boot.""
Evgenii Stepanov [Mon, 14 Nov 2016 19:47:29 +0000 (19:47 +0000)]
Merge "Revert "Workaround alloc-dealloc-mismatch error on ASan device boot.""
am: 5c58020c00

Change-Id: I107ce2043fd261b08413418825daf6c35f808228

7 years agoMerge "Revert "Workaround alloc-dealloc-mismatch error on ASan device boot.""
Evgenii Stepanov [Mon, 14 Nov 2016 19:26:48 +0000 (19:26 +0000)]
Merge "Revert "Workaround alloc-dealloc-mismatch error on ASan device boot.""

7 years agoMerge "Revert "Revert "Pass --output-vdex-fd and input-vdex-fd to dex2oat."""
Nicolas Geoffray [Mon, 14 Nov 2016 09:34:11 +0000 (09:34 +0000)]
Merge "Revert "Revert "Pass --output-vdex-fd and input-vdex-fd to dex2oat."""
am: eda1ddf518

Change-Id: Idbc246744abd62d0bb647f569968457cf5b85583

7 years agoMerge "Revert "Revert "Pass --output-vdex-fd and input-vdex-fd to dex2oat."""
Nicolas Geoffray [Mon, 14 Nov 2016 09:24:56 +0000 (09:24 +0000)]
Merge "Revert "Revert "Pass --output-vdex-fd and input-vdex-fd to dex2oat."""

7 years agoRevert "Workaround alloc-dealloc-mismatch error on ASan device boot."
Evgenii Stepanov [Wed, 14 Sep 2016 00:50:46 +0000 (00:50 +0000)]
Revert "Workaround alloc-dealloc-mismatch error on ASan device boot."

This reverts commit 22819276b147e34a80e8ca696be5b3fda68764b9.

The underlying kernel bug has been fixed.

Test: SANITIZE_TARGET=address build should continue working

Change-Id: I6f3938047d9f60357e7bd9bccd3ef36d7686c73b

7 years agoRevert "Revert "Pass --output-vdex-fd and input-vdex-fd to dex2oat.""
Nicolas Geoffray [Thu, 10 Nov 2016 10:50:03 +0000 (10:50 +0000)]
Revert "Revert "Pass --output-vdex-fd and input-vdex-fd to dex2oat.""

Test: device boots, adb shell cmd package compile works.

This reverts commit 5373d3028d53df00c244802f89c8a31a8c1a55a6.

bug:30937355

Change-Id: Iddab9cc8de866a281672fc3c509d43070c3f56de

7 years agoMerge "Revert "Pass --output-vdex-fd and input-vdex-fd to dex2oat.""
Nicolas Geoffray [Wed, 9 Nov 2016 21:42:08 +0000 (21:42 +0000)]
Merge "Revert "Pass --output-vdex-fd and input-vdex-fd to dex2oat.""
am: 80a4f63d7e

Change-Id: I02271ca0bbb3ee1d6eb5a8f73d6af0f23e0ab058

7 years agoMerge "Revert "Pass --output-vdex-fd and input-vdex-fd to dex2oat.""
Nicolas Geoffray [Wed, 9 Nov 2016 21:32:14 +0000 (21:32 +0000)]
Merge "Revert "Pass --output-vdex-fd and input-vdex-fd to dex2oat.""

7 years agoRevert "Pass --output-vdex-fd and input-vdex-fd to dex2oat."
Nicolas Geoffray [Wed, 9 Nov 2016 21:30:54 +0000 (21:30 +0000)]
Revert "Pass --output-vdex-fd and input-vdex-fd to dex2oat."

Mishandled create_vdex_filename.

bug:30937355

This reverts commit 196539e9ea6b096826c3489700588c286d8ca9c2.

Change-Id: Idd1a9f9567240899a103547a36dd036219f303cd

7 years agoMerge "Dumpstate's netstat call should use -W."
Elliott Hughes [Wed, 9 Nov 2016 16:40:02 +0000 (16:40 +0000)]
Merge "Dumpstate's netstat call should use -W."
am: 0708c8355f

Change-Id: If0d15f407cb5cd080950c414135a1ebcdf712d77

7 years agoMerge "Dumpstate's netstat call should use -W."
Elliott Hughes [Wed, 9 Nov 2016 16:30:31 +0000 (16:30 +0000)]
Merge "Dumpstate's netstat call should use -W."

7 years agoMerge "Pass --output-vdex-fd and input-vdex-fd to dex2oat."
Nicolas Geoffray [Wed, 9 Nov 2016 14:04:35 +0000 (14:04 +0000)]
Merge "Pass --output-vdex-fd and input-vdex-fd to dex2oat."
am: 229d3c289b

Change-Id: Iab57ff0465b7e72b48c2d93b13e3930160a08704

7 years agoMerge "Pass --output-vdex-fd and input-vdex-fd to dex2oat."
Nicolas Geoffray [Wed, 9 Nov 2016 13:57:23 +0000 (13:57 +0000)]
Merge "Pass --output-vdex-fd and input-vdex-fd to dex2oat."

7 years agoMerge "Keep protected content in EGLImage attrs as needed."
Craig Donner [Tue, 8 Nov 2016 20:14:09 +0000 (20:14 +0000)]
Merge "Keep protected content in EGLImage attrs as needed."
am: 5a03327fa8

Change-Id: Id79a4a1548e5c7f4cb504d474f856727bf0b51ee

7 years agoMerge "Keep protected content in EGLImage attrs as needed."
Treehugger Robot [Tue, 8 Nov 2016 20:06:32 +0000 (20:06 +0000)]
Merge "Keep protected content in EGLImage attrs as needed."

7 years agoPass --output-vdex-fd and input-vdex-fd to dex2oat.
Nicolas Geoffray [Mon, 7 Nov 2016 16:24:05 +0000 (16:24 +0000)]
Pass --output-vdex-fd and input-vdex-fd to dex2oat.

Adjust to new dex2oat flags.

bug:30937355
Test: device boots

Change-Id: Ieab2b2102a7b9c17b77618538608c47d8ad52e2d

7 years agoMerge "[NAN-AWARE] Rename NAN to Aware"
Etan Cohen [Sun, 6 Nov 2016 03:13:51 +0000 (03:13 +0000)]
Merge "[NAN-AWARE] Rename NAN to Aware"
am: ab180e53b9

Change-Id: I75b3722f37d606e42effc9dee731210df958c7bd

7 years agoMerge "[NAN-AWARE] Rename NAN to Aware"
Etan Cohen [Sun, 6 Nov 2016 03:05:39 +0000 (03:05 +0000)]
Merge "[NAN-AWARE] Rename NAN to Aware"

7 years ago[NAN-AWARE] Rename NAN to Aware
Etan Cohen [Wed, 26 Oct 2016 18:20:17 +0000 (11:20 -0700)]
[NAN-AWARE] Rename NAN to Aware

Rename only (and any reformatting needed to pass lint) - no
functional changes!

(cherry-pick of commit 49f8c84e1872c47716ebc2c04acdc8e3f6192734)

Bug: 32263750
Test: All unit tests and integration (sl4a) tests pass.
Merged-In: I00700206c90c9e6a1a0a2a79248dd571fe43ec26
Change-Id: I6b4b146a470ccbe081fb2f18d75e261a843978e2

7 years agoMerge "binder: print the bad cmd error to android log"
liangweikang [Fri, 4 Nov 2016 01:46:34 +0000 (01:46 +0000)]
Merge "binder: print the bad cmd error to android log"
am: 2e9ff8c5be

Change-Id: I3849ae9043c52305798448b89cb82920a4ec13e4

7 years agoMerge "binder: print the bad cmd error to android log"
Treehugger Robot [Fri, 4 Nov 2016 01:43:14 +0000 (01:43 +0000)]
Merge "binder: print the bad cmd error to android log"

7 years agoFix warnings in framworks/native/opengl/include
Colin Cross [Fri, 4 Nov 2016 00:36:46 +0000 (17:36 -0700)]
Fix warnings in framworks/native/opengl/include

Fix old-style cast warnings by using a macro to do C or C++ style
casts.  Remove a visibility attribute being applied to a typedef.
The warnings were being hidden by the use of -isystem to include
frameworks/native/opengl/include.

Bug: 31752268
Test: m -j native

Change-Id: I7db3f7181e3542fc7194e1f18010dd2df5d4c57e

7 years agoKeep protected content in EGLImage attrs as needed.
Craig Donner [Thu, 20 Oct 2016 00:18:17 +0000 (17:18 -0700)]
Keep protected content in EGLImage attrs as needed.

When image_crop isn't supported, we also throw away the
protected_content_ext attrs in GLConsumer. Instead, keep them
around if they're used.

Bug: 32222880
Test: manual (cp from internal)
Change-Id: Ic182810cbaacdfaf912c57667f5176d3e47941a9

7 years agoFix clang static analyzer warnings.
Manoj Gupta [Wed, 2 Nov 2016 00:30:24 +0000 (17:30 -0700)]
Fix clang static analyzer warnings.

frameworks/native/cmds/flatland/GLHelper.cpp:366:9: warning: Potential
leak of memory pointed to by 'src'

Test: Warning no longer appears
Change-Id: I2721d292cf1f387f34fb2e69f8370f1abff3f01f

7 years agobinder: print the bad cmd error to android log
liangweikang [Tue, 25 Oct 2016 08:37:54 +0000 (16:37 +0800)]
binder: print the bad cmd error to android log

https://code.google.com/p/android/issues/detail?id=226068

Signed-off-by: liangweikang <liangweikang900911@gmail.com>
7 years agoDumpstate's netstat call should use -W.
Elliott Hughes [Fri, 28 Oct 2016 15:53:02 +0000 (08:53 -0700)]
Dumpstate's netstat call should use -W.

IPv6 addresses (which are quite normal on a real device connected to a
mobile network) are truncated by netstat by default. (80 columns!)

Supplying -W says "I care about seeing the IP addresses more than I
care about fitting on a VT100".

Bug: noticed in bugreport in http://b/32463933
Test: manual dumpstate run
Change-Id: I6f8b9ee258ceaa2beeca588fc95adb17fe07d0c4

7 years agoMerge "TextOutput log improvement"
Wei Wang [Thu, 27 Oct 2016 18:14:34 +0000 (18:14 +0000)]
Merge "TextOutput log improvement"
am: 3e9e757437

Change-Id: I88fec0002898ec7da19d579d0aa4679b73bfcd53

7 years agoMerge "TextOutput log improvement"
Treehugger Robot [Thu, 27 Oct 2016 18:05:46 +0000 (18:05 +0000)]
Merge "TextOutput log improvement"

7 years agoMerge "Enable multiple concurrent binderLibTest instances"
Connor O'Brien [Thu, 27 Oct 2016 18:00:33 +0000 (18:00 +0000)]
Merge "Enable multiple concurrent binderLibTest instances"
am: 06d83ad741

Change-Id: I4df9c55a81801972f1b4cbb56f11d24f5bbc9e1d

7 years agoMerge "Enable multiple concurrent binderLibTest instances"
Connor O'Brien [Thu, 27 Oct 2016 17:54:14 +0000 (17:54 +0000)]
Merge "Enable multiple concurrent binderLibTest instances"

7 years agoEnable multiple concurrent binderLibTest instances
Connor O'Brien [Thu, 27 Oct 2016 00:58:51 +0000 (17:58 -0700)]
Enable multiple concurrent binderLibTest instances

Each instance tries to register a service with the
same name, so suffix the service name with the
instance's PID to avoid collisions.

Test: Tests run and pass in 2 processes at once
Change-Id: I685b01fbfbad4e9bd3eb6ea06f46ffc157169909
Signed-off-by: Connor O'Brien <connoro@google.com>
7 years agoMerge "[binder]: Correct the index for getReturnString"
Colin Cross [Mon, 24 Oct 2016 18:02:53 +0000 (18:02 +0000)]
Merge "[binder]: Correct the index for getReturnString"
am: a340838895

Change-Id: Ide173ea019cceaba9eee1c25edf9fea75acc6caa

7 years agoMerge "[binder]: Correct the index for getReturnString"
Colin Cross [Mon, 24 Oct 2016 17:58:14 +0000 (17:58 +0000)]
Merge "[binder]: Correct the index for getReturnString"

7 years agoTextOutput log improvement
Wei Wang [Fri, 21 Oct 2016 06:18:17 +0000 (23:18 -0700)]
TextOutput log improvement

Add unit tests for log functions
Add support of std::endl
Add back support of char
Add back support of bool
Add back support of String16
Fix a build warning on union initialization

Test: run /data/nativetest(64)/binderTextOutputTest
Bug: 32181382
Change-Id: I4030b142beacc5dcd88a10904710fd6e19f7240c

7 years agoMerge "dumpstate: Use private interfaces for buffer size properties"
Mark Salyzyn [Fri, 21 Oct 2016 18:08:51 +0000 (18:08 +0000)]
Merge "dumpstate: Use private interfaces for buffer size properties"
am: 430b3667ec

Change-Id: I150663d5108340f1434f8ec48eb6cd9d4722603f

7 years agoMerge "dumpstate: Use private interfaces for buffer size properties"
Mark Salyzyn [Fri, 21 Oct 2016 18:02:12 +0000 (18:02 +0000)]
Merge "dumpstate: Use private interfaces for buffer size properties"

7 years ago[binder]: Correct the index for getReturnString
songjinshi [Tue, 18 Oct 2016 13:05:56 +0000 (21:05 +0800)]
[binder]: Correct the index for getReturnString

The cmd code can not as the index drectly.

Change-Id: Icddad46faef7a77acbd7edf118c081ac10501f47
Signed-off-by: songjinshi <songjinshi@xiaomi.com>
7 years agodumpstate: Use private interfaces for buffer size properties
Mark Salyzyn [Tue, 27 Sep 2016 21:55:27 +0000 (14:55 -0700)]
dumpstate: Use private interfaces for buffer size properties

Used to estimate the timeout to be applied to the logcat command.
This transition represents some technical debt and optimization.

Test: collect bugreport and confirm logcat output
Bug: 31750617
Bug: 21555259
Change-Id: I512b969a4a796fce468907494814315e30c5299d

7 years agoMerge "Add licenses to ndk_headers."
Dan Albert [Thu, 20 Oct 2016 22:16:56 +0000 (22:16 +0000)]
Merge "Add licenses to ndk_headers."
am: 8c9cd8a215

Change-Id: I6a49ab856d6f52597067be0df5e34b9459efdb33

7 years agoMerge "Add licenses to ndk_headers."
Treehugger Robot [Thu, 20 Oct 2016 22:12:39 +0000 (22:12 +0000)]
Merge "Add licenses to ndk_headers."

7 years agoAdd licenses to ndk_headers.
Dan Albert [Thu, 20 Oct 2016 17:14:30 +0000 (10:14 -0700)]
Add licenses to ndk_headers.

Test: make ndk
Bug: None
Change-Id: Ia113ea42b1d62d87dfbb2fc456428c7db50a98f1

7 years agoMerge "Fix log function for potential overflow"
Wei Wang [Thu, 20 Oct 2016 16:49:03 +0000 (16:49 +0000)]
Merge "Fix log function for potential overflow"
am: 2e5c7798e1

Change-Id: I17a6c6a035e6e85777d0f14db819452d770856ae

7 years agoMerge "Fix log function for potential overflow"
Wei Wang [Thu, 20 Oct 2016 16:41:20 +0000 (16:41 +0000)]
Merge "Fix log function for potential overflow"

7 years agoFix log function for potential overflow
Wei Wang [Wed, 19 Oct 2016 17:23:59 +0000 (10:23 -0700)]
Fix log function for potential overflow

On LP64 system, unsigned long can be 64bit
Also clean out unused static variables.

Test: flash on ARM64 device
Bug: 32181382
Change-Id: I44b7ea8a6588c475a3979d7bddeb08da7f54c27a

7 years agoMerge "Convert to Android.bp"
Dan Willemsen [Tue, 18 Oct 2016 23:36:42 +0000 (23:36 +0000)]
Merge "Convert to Android.bp"
am: 99de09fe7f  -s ours

Change-Id: I16fbbe0cdeffe80b7b92148f696ec2db848cd4cf

7 years agoMerge "Convert to Android.bp"
Dan Willemsen [Tue, 18 Oct 2016 23:26:08 +0000 (23:26 +0000)]
Merge "Convert to Android.bp"

7 years agoConvert to Android.bp
Dan Willemsen [Tue, 4 Oct 2016 06:56:51 +0000 (23:56 -0700)]
Convert to Android.bp

See build/soong/README.md for more information.

Test: mmma -j frameworks/native/{libs/gui,opengl/libs}
Change-Id: I90b4e299ebd2a38afb6642bc242d4ad5424fb901
Merged-In: I90b4e299ebd2a38afb6642bc242d4ad5424fb901

7 years agoConvert to Android.bp
Dan Willemsen [Tue, 4 Oct 2016 06:56:51 +0000 (23:56 -0700)]
Convert to Android.bp

See build/soong/README.md for more information.

Test: mmma -j frameworks/native/{libs/gui,opengl/libs}
Change-Id: I90b4e299ebd2a38afb6642bc242d4ad5424fb901

7 years agoMerge "Fix surfaceflinger file descriptor leak"
Fabien Sanglard [Tue, 18 Oct 2016 18:51:46 +0000 (18:51 +0000)]
Merge "Fix surfaceflinger file descriptor leak"
am: af2fbb0ccc

Change-Id: If21d062e144dd13064c0c3e8021523a8bf20b864

7 years agoMerge "Fix surfaceflinger file descriptor leak"
Fabien Sanglard [Tue, 18 Oct 2016 18:41:44 +0000 (18:41 +0000)]
Merge "Fix surfaceflinger file descriptor leak"

7 years agoFix surfaceflinger file descriptor leak
Fabien Sanglard [Sat, 15 Oct 2016 01:13:33 +0000 (18:13 -0700)]
Fix surfaceflinger file descriptor leak

If a producer queues a buffer after a screen resize, the buffer
will not be removed from the buffer queue, resulting in a leak of
file descriptor.

Test: Fix was tested by the bug reporter (ARM).
Bug: 32012717

Change-Id: I3b7b0745d5fbdee97fc8df2db399c1a2fcdeb375

7 years agoMerge "Remove ASAN specialization"
Dan Willemsen [Sat, 15 Oct 2016 02:23:06 +0000 (02:23 +0000)]
Merge "Remove ASAN specialization"
am: 0723ad3969

Change-Id: I05bca0d1e4c1709565a05f1997a883c173279a53

7 years agoMerge "Remove ASAN specialization"
Treehugger Robot [Sat, 15 Oct 2016 02:17:24 +0000 (02:17 +0000)]
Merge "Remove ASAN specialization"

7 years agoRemove ASAN specialization
Dan Willemsen [Tue, 11 Oct 2016 22:59:04 +0000 (15:59 -0700)]
Remove ASAN specialization

The linker will rewrite library paths when running with asan, there's no
reason to do this manually:

10-11 23:26:33.971  8789  8789 E linker  : linker_asan dlopen translating "/system/lib64/libEGL.so" -> "/data/lib64/libEGL.so"
10-11 23:26:34.061  8790  8790 E linker  : linker_asan dlopen translating "/system/lib/libEGL.so" -> "/data/lib/libEGL.so"

Test: Boot SANITIZE_TARGET=address aosp_flounder-eng
Change-Id: I3eb9935603b267c2aefe09d4f24410cbd673feb6

7 years agoMerge "Hardcode EGL Cache size to something more reasonable"
Dan Willemsen [Fri, 14 Oct 2016 20:34:31 +0000 (20:34 +0000)]
Merge "Hardcode EGL Cache size to something more reasonable"
am: 8a767feb14

Change-Id: I08a68da026d9a0f36572059a7db1c5e99b988f8e