OSDN Git Service

android-x86/frameworks-native.git
8 years agoMerge "Added metadata entries to zipped bugreport:"
Felipe Leme [Wed, 3 Feb 2016 01:00:53 +0000 (01:00 +0000)]
Merge "Added metadata entries to zipped bugreport:"

8 years agoMerge "Clean up warnings in inputflinger." am: f3606ef25f am: ca5ad095f4
Dan Albert [Wed, 3 Feb 2016 00:48:42 +0000 (00:48 +0000)]
Merge "Clean up warnings in inputflinger." am: f3606ef25f am: ca5ad095f4
am: 82d47db481

* commit '82d47db4815ab8b49f4c399ba16d2af12926cfe1':
  Clean up warnings in inputflinger.

8 years agoMerge "Clean up warnings in EGL." am: c312141adc am: d380a770fd
Dan Albert [Wed, 3 Feb 2016 00:48:31 +0000 (00:48 +0000)]
Merge "Clean up warnings in EGL." am: c312141adc am: d380a770fd
am: f4acff7c49

* commit 'f4acff7c490c6bf8a88661a15ca4bf2536ca4854':
  Clean up warnings in EGL.

8 years agoMerge "Clean up warnings in inputflinger." am: f3606ef25f
Dan Albert [Wed, 3 Feb 2016 00:46:35 +0000 (00:46 +0000)]
Merge "Clean up warnings in inputflinger." am: f3606ef25f
am: ca5ad095f4

* commit 'ca5ad095f428f7c93628db5813e427c47598d102':
  Clean up warnings in inputflinger.

8 years agoMerge "Clean up warnings in EGL." am: c312141adc
Dan Albert [Wed, 3 Feb 2016 00:46:29 +0000 (00:46 +0000)]
Merge "Clean up warnings in EGL." am: c312141adc
am: d380a770fd

* commit 'd380a770fd22526fee5becd32ce754dcf4a181d4':
  Clean up warnings in EGL.

8 years agoMerge "Clean up warnings in inputflinger."
Dan Albert [Wed, 3 Feb 2016 00:43:16 +0000 (00:43 +0000)]
Merge "Clean up warnings in inputflinger."
am: f3606ef25f

* commit 'f3606ef25fb588283020c4df178076852eecc4e3':
  Clean up warnings in inputflinger.

8 years agoMerge "Clean up warnings in EGL."
Dan Albert [Wed, 3 Feb 2016 00:43:10 +0000 (00:43 +0000)]
Merge "Clean up warnings in EGL."
am: c312141adc

* commit 'c312141adc9a5f00b5d13d0980d132d2a8c6f3c9':
  Clean up warnings in EGL.

8 years agoMerge "Clean up warnings in inputflinger."
Dan Albert [Wed, 3 Feb 2016 00:40:26 +0000 (00:40 +0000)]
Merge "Clean up warnings in inputflinger."

8 years agoMerge "Clean up warnings in EGL."
Dan Albert [Wed, 3 Feb 2016 00:40:03 +0000 (00:40 +0000)]
Merge "Clean up warnings in EGL."

8 years agoClean up warnings in inputflinger.
Dan Albert [Tue, 2 Feb 2016 23:11:57 +0000 (15:11 -0800)]
Clean up warnings in inputflinger.

Bug: http://b/26936282
Change-Id: Ie1fb281425c3b8c4b3e6e88dc5722d51b77ee093

8 years agoClean up warnings in EGL.
Dan Albert [Tue, 2 Feb 2016 23:08:34 +0000 (15:08 -0800)]
Clean up warnings in EGL.

Bug: http://b/26936282
Change-Id: I059628332d638f080a5236eed62cf0afa1d4d6ba

8 years agoAdded metadata entries to zipped bugreport:
Felipe Leme [Tue, 2 Feb 2016 20:57:00 +0000 (12:57 -0800)]
Added metadata entries to zipped bugreport:

- version.txt: bugreport format version
- main-entry.txt: name of the entry containing the main bugreport (flat file)

Also documented the zip format versions on bugreport-format.txt.

BUG: 26910355
BUG: 26639621

Change-Id: I76b9f6d330c36ad554fae8e691c9ea3ab3c97edd

8 years agoBQ: Improved buffer/slot tracking
Pablo Ceballos [Fri, 8 Jan 2016 20:15:22 +0000 (12:15 -0800)]
BQ: Improved buffer/slot tracking

- Explicitly track active buffers and unused slots on top of the
  already existing tracking for free slots and free buffers.

Change-Id: Ife2678678e96f0eb0b3fb21571058378134bd868

8 years agoMerge "Installd: Introduce otapreopt"
Andreas Gampe [Tue, 2 Feb 2016 16:00:59 +0000 (16:00 +0000)]
Merge "Installd: Introduce otapreopt"

8 years agoInstalld: Introduce otapreopt
Andreas Gampe [Thu, 19 Nov 2015 22:12:14 +0000 (14:12 -0800)]
Installd: Introduce otapreopt

Add a tool for dexopt during OTA. The tool will use /data/ota as
an ANDROID_ROOT wrt/ the dalvik-cache, compiling a new boot image
and system apps into this directory. Other apps will be compiled
to odex files suffixed with ".b".

Bug: 25612095
Change-Id: I6ac382973f13850f6b37402a1b2330c0014b47d9

8 years agoMerge "Redirect output to file ASAP, otherwise printf() calls might be missed."
Felipe Leme [Tue, 2 Feb 2016 00:35:05 +0000 (00:35 +0000)]
Merge "Redirect output to file ASAP, otherwise printf() calls might be missed."

8 years agoRedirect output to file ASAP, otherwise printf() calls might be missed.
Felipe Leme [Mon, 1 Feb 2016 18:35:38 +0000 (10:35 -0800)]
Redirect output to file ASAP, otherwise printf() calls might be missed.

Also removed the duraction reporter on add_zip_entry_from_fd -  since it
was spamming the report and the timing could be infered by calculating the
delta between each ALOGD entry anyways - and logged PID and statistics.

BUG: 26885492
Change-Id: Iadb00957daac68b7a40b0e36ee5cce2b82264588

8 years agoMerge "Binder: Add log output in IPCThreadState::self()" am: 2be113a248 am: e7ae3b1962
Andreas Gampe [Mon, 1 Feb 2016 22:32:34 +0000 (22:32 +0000)]
Merge "Binder: Add log output in IPCThreadState::self()" am: 2be113a248 am: e7ae3b1962
am: 35cadd735a

* commit '35cadd735aa3db14e82e7d492f7f7d64357e915a':
  Binder: Add log output in IPCThreadState::self()

8 years agoMerge "Binder: Add log output in IPCThreadState::self()" am: 2be113a248
Andreas Gampe [Mon, 1 Feb 2016 22:29:40 +0000 (22:29 +0000)]
Merge "Binder: Add log output in IPCThreadState::self()" am: 2be113a248
am: e7ae3b1962

* commit 'e7ae3b1962d0b4cb83ede79f625e75c9d88d35fb':
  Binder: Add log output in IPCThreadState::self()

8 years agoMerge "Binder: Add log output in IPCThreadState::self()"
Andreas Gampe [Mon, 1 Feb 2016 22:26:59 +0000 (22:26 +0000)]
Merge "Binder: Add log output in IPCThreadState::self()"
am: 2be113a248

* commit '2be113a2489e7d56b21f8ec340198959348012b3':
  Binder: Add log output in IPCThreadState::self()

8 years agoMerge "Binder: Add log output in IPCThreadState::self()"
Andreas Gampe [Mon, 1 Feb 2016 22:23:33 +0000 (22:23 +0000)]
Merge "Binder: Add log output in IPCThreadState::self()"

8 years agoMerge "Add support for decoding UTF16 to UTF8" am: ac4728f8ba am: 7b0c8479ae
Christopher Wiley [Mon, 1 Feb 2016 21:46:24 +0000 (21:46 +0000)]
Merge "Add support for decoding UTF16 to UTF8" am: ac4728f8ba am: 7b0c8479ae
am: 4ab1dbe559

* commit '4ab1dbe5594b672532db5996dce3b77dbedd7580':
  Add support for decoding UTF16 to UTF8

8 years agoMerge "Add support for decoding UTF16 to UTF8" am: ac4728f8ba
Christopher Wiley [Mon, 1 Feb 2016 21:44:00 +0000 (21:44 +0000)]
Merge "Add support for decoding UTF16 to UTF8" am: ac4728f8ba
am: 7b0c8479ae

* commit '7b0c8479ae68c6596df21879c6470ff21560ea03':
  Add support for decoding UTF16 to UTF8

8 years agoMerge "Add support for decoding UTF16 to UTF8"
Christopher Wiley [Mon, 1 Feb 2016 21:41:56 +0000 (21:41 +0000)]
Merge "Add support for decoding UTF16 to UTF8"
am: ac4728f8ba

* commit 'ac4728f8ba54e5f25466efeaf65a1dbda179ca97':
  Add support for decoding UTF16 to UTF8

8 years agoMerge "Add support for decoding UTF16 to UTF8"
Christopher Wiley [Mon, 1 Feb 2016 21:40:33 +0000 (21:40 +0000)]
Merge "Add support for decoding UTF16 to UTF8"

8 years agoBinder: Add log output in IPCThreadState::self()
Andreas Gampe [Mon, 1 Feb 2016 21:21:56 +0000 (13:21 -0800)]
Binder: Add log output in IPCThreadState::self()

In the failure case, and on shutdown, add log output. It's highly
likely the client will crash when a null value is returned. Displaying
a possible root cause helps diagnosing issues.

Bug: 26865304
Change-Id: Ie5255ac50d6dcdf9f918dcef785788ea795a4791

8 years agoMerge "Add feature tag for high-performance VR devices."
Ruben Brunk [Mon, 1 Feb 2016 18:20:04 +0000 (18:20 +0000)]
Merge "Add feature tag for high-performance VR devices."

8 years agoAdd support for decoding UTF16 to UTF8
Christopher Wiley [Fri, 29 Jan 2016 00:56:53 +0000 (16:56 -0800)]
Add support for decoding UTF16 to UTF8

This is helpful because many native service developers use std::string
internally, and String16 doesn't work very well with many C++
primitives.

Bug: 26729450
Test: Integration test appears to show this is correct.

Change-Id: Ib75068881da28fd8515685bcbcbe864ba3b7ec23

8 years agoMerge changes I68ed9d1c,I4ebccfd0,I3507bdfd,Iaf02f55c into cw-e-dev am: d6ad64f894...
Alain Vongsouvanh [Fri, 29 Jan 2016 21:27:30 +0000 (21:27 +0000)]
Merge changes I68ed9d1c,I4ebccfd0,I3507bdfd,Iaf02f55c into cw-e-dev am: d6ad64f894 am: a20eb797c4 am: 7452d20732
am: eb868b3717

* commit 'eb868b3717f391951258b6b249862f02d83e2ea1':
  system_server BINDER_TYPE_FD sockets using ashmem accessors
  Parcel: file descriptor leak
  Parcel: include Android coding standard
  Parcel: LOG_TAG cleanup

8 years agoMerge changes I68ed9d1c,I4ebccfd0,I3507bdfd,Iaf02f55c into cw-e-dev am: d6ad64f894...
Alain Vongsouvanh [Fri, 29 Jan 2016 21:25:05 +0000 (21:25 +0000)]
Merge changes I68ed9d1c,I4ebccfd0,I3507bdfd,Iaf02f55c into cw-e-dev am: d6ad64f894 am: a20eb797c4
am: 7452d20732

* commit '7452d20732d5dfe75cff21bc70e59b6a47c659e4':
  system_server BINDER_TYPE_FD sockets using ashmem accessors
  Parcel: file descriptor leak
  Parcel: include Android coding standard
  Parcel: LOG_TAG cleanup

8 years agoMerge changes I68ed9d1c,I4ebccfd0,I3507bdfd,Iaf02f55c into cw-e-dev am: d6ad64f894
Alain Vongsouvanh [Fri, 29 Jan 2016 21:21:57 +0000 (21:21 +0000)]
Merge changes I68ed9d1c,I4ebccfd0,I3507bdfd,Iaf02f55c into cw-e-dev am: d6ad64f894
am: a20eb797c4

* commit 'a20eb797c462189ba6641308d80e638501db0a18':
  system_server BINDER_TYPE_FD sockets using ashmem accessors
  Parcel: file descriptor leak
  Parcel: include Android coding standard
  Parcel: LOG_TAG cleanup

8 years agoMerge changes I68ed9d1c,I4ebccfd0,I3507bdfd,Iaf02f55c into cw-e-dev
Alain Vongsouvanh [Fri, 29 Jan 2016 21:18:22 +0000 (21:18 +0000)]
Merge changes I68ed9d1c,I4ebccfd0,I3507bdfd,Iaf02f55c into cw-e-dev
am: d6ad64f894

* commit 'd6ad64f89439b61eb1af2e5d8ca957c3887d9e56':
  system_server BINDER_TYPE_FD sockets using ashmem accessors
  Parcel: file descriptor leak
  Parcel: include Android coding standard
  Parcel: LOG_TAG cleanup

8 years agoMerge changes I68ed9d1c,I4ebccfd0,I3507bdfd,Iaf02f55c into cw-e-dev
Alain Vongsouvanh [Fri, 29 Jan 2016 21:15:39 +0000 (21:15 +0000)]
Merge changes I68ed9d1c,I4ebccfd0,I3507bdfd,Iaf02f55c into cw-e-dev

* changes:
  system_server BINDER_TYPE_FD sockets using ashmem accessors
  Parcel: file descriptor leak
  Parcel: include Android coding standard
  Parcel: LOG_TAG cleanup

8 years agoRemove "updatecmds" feature.
Jeff Sharkey [Fri, 29 Jan 2016 16:47:22 +0000 (09:47 -0700)]
Remove "updatecmds" feature.

This feature is very old and hasn't been used in many releases.  In
addition, it was never taught about multi-user layouts, and it would
be incredibly hard to maintain in the new FBE world where CE keys
may not appear until several reboots after an OTA.

Bug: 26854442
Change-Id: Ibd8660e2a727469cd5ae41dab5e1014a9cfb6748

8 years agoMerge "Proper fix of am args."
Felipe Leme [Fri, 29 Jan 2016 17:14:37 +0000 (17:14 +0000)]
Merge "Proper fix of am args."

8 years agoProper fix of am args.
Felipe Leme [Fri, 29 Jan 2016 17:07:57 +0000 (09:07 -0800)]
Proper fix of am args.

BUG: 26871362
Change-Id: If3411b69ea1feef827cd23ef81baa8c0ffeaa309

8 years agoMerge "Fixed usage --receiver-foreground on am call."
Felipe Leme [Fri, 29 Jan 2016 16:50:36 +0000 (16:50 +0000)]
Merge "Fixed usage --receiver-foreground on am call."

8 years agoFixed usage --receiver-foreground on am call.
Felipe Leme [Fri, 29 Jan 2016 16:46:27 +0000 (08:46 -0800)]
Fixed usage --receiver-foreground on am call.

BUG: 26871362
Change-Id: Ied8e663eec59c83a06a8f2a6e2908c02ac1558c8

8 years agosystem_server BINDER_TYPE_FD sockets using ashmem accessors
Mark Salyzyn [Wed, 27 Jan 2016 16:02:48 +0000 (08:02 -0800)]
system_server BINDER_TYPE_FD sockets using ashmem accessors

check if device is a character device, before calling
ashmem_get_size_region. We do not check if the st_rdev
matches /dev/ashmem. So this at least eliminates making
this call when associated with a socket.

Bug: 26374183
Change-Id: I68ed9d1c2cd4c47228ed065e3e18eb4151f038f4
(cherry picked from AOSP commit eab2afc7ac5183750a23693ecee89dad7f7abf5f)

8 years agoParcel: file descriptor leak
Mark Salyzyn [Wed, 27 Jan 2016 16:02:48 +0000 (08:02 -0800)]
Parcel: file descriptor leak

Resolve a file descriptor leak when a request for
ashmem size adjustment is not filed.

Change-Id: I4ebccfd096ec5313725fd99dc3e025f9561d061f
(cherry picked from AOSP commit b454d8ffa928e33dd54c979a747994acbd117397)

8 years agoParcel: include Android coding standard
Mark Salyzyn [Wed, 27 Jan 2016 16:02:48 +0000 (08:02 -0800)]
Parcel: include Android coding standard

Change-Id: I3507bdfd04a06db85b46539338c787395ec652ff
(cherry picked from AOSP commit abed7f7aebdbdd20fdb37d0d6e79e50905c7f5d5)

8 years agoParcel: LOG_TAG cleanup
Mark Salyzyn [Wed, 27 Jan 2016 16:02:48 +0000 (08:02 -0800)]
Parcel: LOG_TAG cleanup

NB: several ALOG messages behind comments, recommend removal

Change-Id: Iaf02f55cbf7ef0ee7c4a6ee67c7f8b57cf97cd26
(cherry picked from AOSP commit e93390b0bd336cd1b69abebf6eeffd18881f531b)

8 years agoAdd feature tag for high-performance VR devices.
Ruben Brunk [Tue, 26 Jan 2016 03:22:49 +0000 (19:22 -0800)]
Add feature tag for high-performance VR devices.

Bug: 26667978
Change-Id: I299446555268b78f38177d89c71ff5340fdb0b8f

8 years agodumpstate: enable cameraserver
Chien-Yu Chen [Thu, 28 Jan 2016 22:23:03 +0000 (14:23 -0800)]
dumpstate: enable cameraserver

Enable bugreport callstack dump for cameraserver.

Bug: 24511454
Change-Id: I8f4b14a95b3a1abedc4cf072335f0f31b18006af

8 years agoMerge "SF: Modify transaction/buffer sync logic"
Dan Stoza [Thu, 28 Jan 2016 21:15:24 +0000 (21:15 +0000)]
Merge "SF: Modify transaction/buffer sync logic"

8 years agoMerge "Application image support for installd DO NOT MERGE" am: 7f9c122ab9 -s ours...
Mathieu Chartier [Thu, 28 Jan 2016 19:19:30 +0000 (19:19 +0000)]
Merge "Application image support for installd DO NOT MERGE" am: 7f9c122ab9  -s ours am: 3fa6da13b3  -s ours
am: c2ef71103c  -s ours

* commit 'c2ef71103ca4f150c9b28f14c8361e84db172927':
  Application image support for installd DO NOT MERGE

8 years agoMerge "Application image support for installd DO NOT MERGE" am: 7f9c122ab9 -s ours
Mathieu Chartier [Thu, 28 Jan 2016 19:17:22 +0000 (19:17 +0000)]
Merge "Application image support for installd DO NOT MERGE" am: 7f9c122ab9  -s ours
am: 3fa6da13b3  -s ours

* commit '3fa6da13b307ce74d8778a4a1d6180043fd28b5a':
  Application image support for installd DO NOT MERGE

8 years agoMerge "Application image support for installd DO NOT MERGE"
Mathieu Chartier [Thu, 28 Jan 2016 19:15:10 +0000 (19:15 +0000)]
Merge "Application image support for installd DO NOT MERGE"
am: 7f9c122ab9  -s ours

* commit '7f9c122ab98d84e54647541edf99e72dec86f6db':
  Application image support for installd DO NOT MERGE

8 years agoMerge "Application image support for installd DO NOT MERGE"
Mathieu Chartier [Thu, 28 Jan 2016 19:13:02 +0000 (19:13 +0000)]
Merge "Application image support for installd DO NOT MERGE"

8 years agoApplication image support for installd DO NOT MERGE
Mathieu Chartier [Wed, 21 Oct 2015 21:05:28 +0000 (14:05 -0700)]
Application image support for installd DO NOT MERGE

DO NOT MERGE

sort of
(cherry picked from commit edc8bc48fbf143e35578bf6cccf980dfab076196)

Bug: 22858531

Change-Id: I5a9dfcf67d2232e8755886085e9ba1bb37494d39

8 years agoSF: Modify transaction/buffer sync logic
Dan Stoza [Wed, 27 Jan 2016 20:21:06 +0000 (12:21 -0800)]
SF: Modify transaction/buffer sync logic

Reorganizes the transaction/buffer synchronization logic to only
consider the head of the incoming BufferQueue instead of all buffers,
and fixes some potential race conditions.

Bug: 25951593
Change-Id: Ib2b08e7be571eb8bbd8c364fb85acf0e046b439c

8 years agoImplementation of sensor additional info report
Peng Xu [Wed, 27 Jan 2016 02:48:54 +0000 (18:48 -0800)]
Implementation of sensor additional info report

This implements a mechanism for sensor hardware/HAL to deliver additional information beside sensor
readings to application. It includes internal temperature reading, untracked delay of sample,
location and pose of sensor device placement in phone frame, etc. This is also a very expandable
frame to account for future need.

Change-Id: Ib7780ac765f24d14eaed72b9862cd84b76054d74

8 years agoMerge changes from topic 'camera-hardening'
Chien-Yu Chen [Thu, 28 Jan 2016 02:04:44 +0000 (02:04 +0000)]
Merge changes from topic 'camera-hardening'

* changes:
  media: Add a metadata type for native handle from camera
  Restart cameraserver when servicemanager restarts

8 years agoMerge "omx: add DescribeColorAspectsParams param"
Lajos Molnar [Thu, 28 Jan 2016 01:07:10 +0000 (01:07 +0000)]
Merge "omx: add DescribeColorAspectsParams param"

8 years agoomx: add DescribeColorAspectsParams param
Lajos Molnar [Sat, 16 Jan 2016 00:12:33 +0000 (16:12 -0800)]
omx: add DescribeColorAspectsParams param

This is used for describing color aspects of video streams.

Bug: 26591846
Change-Id: Ieb17aac384e9289d1e128b0cc238af7d3c9a5af3

8 years agoMerge "Dynamic Sensor Discovery implementation"
Peng Xu [Thu, 28 Jan 2016 00:46:31 +0000 (00:46 +0000)]
Merge "Dynamic Sensor Discovery implementation"

8 years agoMerge "Pass application image fd to dex2oat"
Mathieu Chartier [Thu, 28 Jan 2016 00:18:39 +0000 (00:18 +0000)]
Merge "Pass application image fd to dex2oat"

8 years agoMerge "Pass --receiver-foreground to AM intents."
Felipe Leme [Wed, 27 Jan 2016 23:21:24 +0000 (23:21 +0000)]
Merge "Pass --receiver-foreground to AM intents."

8 years agoMerge "Adding support for new sensor types"
Ashutosh Joshi [Wed, 27 Jan 2016 22:57:59 +0000 (22:57 +0000)]
Merge "Adding support for new sensor types"

8 years agoMerge "HardwareAPI: add MediaImage2 and DescribeColorFormat2Params"
Lajos Molnar [Wed, 27 Jan 2016 22:50:15 +0000 (22:50 +0000)]
Merge "HardwareAPI: add MediaImage2 and DescribeColorFormat2Params"

8 years agoPass application image fd to dex2oat
Mathieu Chartier [Wed, 21 Oct 2015 21:05:28 +0000 (14:05 -0700)]
Pass application image fd to dex2oat

Open application image and pass the fd to dex2oat.

Bug: 22858531

Change-Id: I5a9dfcf67d2232e8755886085e9ba1bb37494d39

8 years agoPass --receiver-foreground to AM intents.
Felipe Leme [Wed, 27 Jan 2016 19:27:28 +0000 (11:27 -0800)]
Pass --receiver-foreground to AM intents.

BUG: 26805230
Change-Id: I29181367522353817c730b398550a738a4776594

8 years agoMerge "system_server BINDER_TYPE_FD sockets using ashmem accessors" am: cf9944684f
Mark Salyzyn [Wed, 27 Jan 2016 19:10:30 +0000 (19:10 +0000)]
Merge "system_server BINDER_TYPE_FD sockets using ashmem accessors" am: cf9944684f
am: becad77245

* commit 'becad77245e5549600e996b287ad47e8c0edcd46':
  system_server BINDER_TYPE_FD sockets using ashmem accessors

8 years agoMerge "system_server BINDER_TYPE_FD sockets using ashmem accessors"
Mark Salyzyn [Wed, 27 Jan 2016 19:08:37 +0000 (19:08 +0000)]
Merge "system_server BINDER_TYPE_FD sockets using ashmem accessors"
am: cf9944684f

* commit 'cf9944684f438a1c3a47ab16c3efa4fa5d57f921':
  system_server BINDER_TYPE_FD sockets using ashmem accessors

8 years agoMerge "system_server BINDER_TYPE_FD sockets using ashmem accessors"
Mark Salyzyn [Wed, 27 Jan 2016 19:04:53 +0000 (19:04 +0000)]
Merge "system_server BINDER_TYPE_FD sockets using ashmem accessors"

8 years agoMerge changes I4ebccfd0,I3507bdfd,Iaf02f55c am: acca0abaf1
Mark Salyzyn [Wed, 27 Jan 2016 18:08:29 +0000 (18:08 +0000)]
Merge changes I4ebccfd0,I3507bdfd,Iaf02f55c am: acca0abaf1
am: f6ec7d5e3a

* commit 'f6ec7d5e3a55ee7eca4203dc386b6d0837b8e660':
  Parcel: file descriptor leak
  Parcel: include Android coding standard
  Parcel: LOG_TAG cleanup

8 years agoMerge changes I4ebccfd0,I3507bdfd,Iaf02f55c
Mark Salyzyn [Wed, 27 Jan 2016 18:05:36 +0000 (18:05 +0000)]
Merge changes I4ebccfd0,I3507bdfd,Iaf02f55c
am: acca0abaf1

* commit 'acca0abaf15318a6a260addd78566383bd4110a5':
  Parcel: file descriptor leak
  Parcel: include Android coding standard
  Parcel: LOG_TAG cleanup

8 years agosystem_server BINDER_TYPE_FD sockets using ashmem accessors
Mark Salyzyn [Wed, 27 Jan 2016 16:02:48 +0000 (08:02 -0800)]
system_server BINDER_TYPE_FD sockets using ashmem accessors

check if device is a character device, before calling
ashmem_get_size_region. We do not check if the st_rdev
matches /dev/ashmem. So this at least eliminates making
this call when associated with a socket.

Bug: 26374183
Change-Id: I68ed9d1c2cd4c47228ed065e3e18eb4151f038f4

8 years agoMerge changes I4ebccfd0,I3507bdfd,Iaf02f55c
Mark Salyzyn [Wed, 27 Jan 2016 17:59:58 +0000 (17:59 +0000)]
Merge changes I4ebccfd0,I3507bdfd,Iaf02f55c

* changes:
  Parcel: file descriptor leak
  Parcel: include Android coding standard
  Parcel: LOG_TAG cleanup

8 years agoParcel: file descriptor leak
Mark Salyzyn [Wed, 27 Jan 2016 16:02:48 +0000 (08:02 -0800)]
Parcel: file descriptor leak

Resolve a file descriptor leak when a request for
ashmem size adjustment is not filed.

Change-Id: I4ebccfd096ec5313725fd99dc3e025f9561d061f

8 years agoParcel: include Android coding standard
Mark Salyzyn [Wed, 27 Jan 2016 16:02:48 +0000 (08:02 -0800)]
Parcel: include Android coding standard

Change-Id: I3507bdfd04a06db85b46539338c787395ec652ff

8 years agoParcel: LOG_TAG cleanup
Mark Salyzyn [Wed, 27 Jan 2016 16:02:48 +0000 (08:02 -0800)]
Parcel: LOG_TAG cleanup

NB: several ALOG messages behind comments, recommend removal

Change-Id: Iaf02f55cbf7ef0ee7c4a6ee67c7f8b57cf97cd26

8 years agoMerge "media: add dolby vision profile and level omx defines."
Ronghua Wu [Wed, 27 Jan 2016 16:13:49 +0000 (16:13 +0000)]
Merge "media: add dolby vision profile and level omx defines."

8 years agoHardwareAPI: add MediaImage2 and DescribeColorFormat2Params
Lajos Molnar [Wed, 27 Jan 2016 02:21:25 +0000 (18:21 -0800)]
HardwareAPI: add MediaImage2 and DescribeColorFormat2Params

Bug: 25684127
Change-Id: I4726d43951732664ed0b8c452203d2ac110f7df8

8 years agoMerge changes Ie45b097c,I4ed4c12d,I6f096f25,I2b62229c,Ieb81c64b, ...
Jesse Hall [Wed, 27 Jan 2016 02:40:49 +0000 (02:40 +0000)]
Merge changes Ie45b097c,I4ed4c12d,I6f096f25,I2b62229c,Ieb81c64b, ...

* changes:
  vulkan: Update from version 1.0.1 to 1.0.2
  libvulkan: Fix dEQP-VK.api.object_management.alloc_callback_fail.device
  libvulkan: Fix dEQP-VK.api.object_management.alloc_callback_fail.instance
  libvulkan: Fix dEQP-VK.api.device_init.create_instance_unsupported_extensions
  Fix ref count.
  Activate layers when the strings match.
  libvulkan: Implement VK_PRESENT_MODE_MAILBOX_KHR
  libvulkan: Really only write vkCreateInstance out parameter on success
  libvulkan: Return error if an unsupported instance extension is requested
  libvulkan: Only write vkCreateInstance out parameter on succes
  vulkan: Driver device extension enumeration and filtering
  vulkan: Enumerate device layer extensions
  libvulkan: Enumerate device layers
  vulkan: Support VK_EXT_debug_report in loader and nulldrv
  libvulkan: Only load driver functions for enabled extensions
  vulkan: Add current vk_ext_debug_report.h from upstream
  vulkan: Update to version 1.0.1
  vkinfo: Enable VK_EXT_debug_report if available
  vkinfo: improve formatting
  libvulkan: Disable accidentally-enabled verbose logging
  libvulkan: Load vkGetSwapchainGrallocUsageFlagsANDROID from driver
  vulkan: Fix 64-bit compilation errors
  vulkan: Pass vkQueuePresentKHR wait semaphores to vkQueueSignalReleaseImageANDROID
  libvulkan: Filter layer and extension lists passed to drivers

8 years agoMerge changes I9453454c,I872fcb4a,I441a2ddf,Iddc28080,If8041fb1, ...
Jesse Hall [Wed, 27 Jan 2016 02:40:18 +0000 (02:40 +0000)]
Merge changes I9453454c,I872fcb4a,I441a2ddf,Iddc28080,If8041fb1, ...

* changes:
  vulkan: Update from version 0.221.0 to 1.0!
  vulkan: Update from version 0.213.0 to 0.221.0
  vulkan: Update from version 0.210.1 to 0.213.0
  vkinfo: print device layers and extensions
  vkinfo: Refactor to separate info gather from print stages
  vulkan: Implement layer and extension enumeration
  vkinfo: print instance layers and extensions
  vulkan: Implement new vkGet*ProcAddrBehavior
  libvulkan: Update global layer loading rules
  vknulldrv: Change module name to not clash with real drivers
  vulkan: Update DevelopersGuide for SDK 0.10
  vulkan: remove patches/frameworks_native-sdk_0.10
  libvulkan: Add missing instance entry point dispatch init
  vknulldrv: Fix 64-bit build
  libvulkan: Implement new VkFence parameter in vkAcquireNextImageKHR
  vulkan: Add acquire fence fix to sdk-0.10 patch stack
  vulkan: Add vkAllocateCommandBuffers fix to sdk-0.10 patch stack
  libvulkan: Fix missed vkAllocateCommandBuffers renames
  vulkan: Fixes to the SDK-0.9->0.10 patch stack

8 years agoMerge changes I9adf2175,I9ba61b9b,Ic5791cf1,Ieaf1c4c0,I36370f6e, ...
Jesse Hall [Wed, 27 Jan 2016 02:39:25 +0000 (02:39 +0000)]
Merge changes I9adf2175,I9ba61b9b,Ic5791cf1,Ieaf1c4c0,I36370f6e, ...

* changes:
  vulkan: Update from version 0.210.0 to 0.210.1
  vulkan: Assign enums to the correct extension
  vulkan: Update from version 0.209.0 to 0.210.0
  vulkan: Update from version 0.206.0 to 0.209.0
  vulkan: Update from version 0.205.0 to 0.206.0
  vulkan: Update from version 0.204.0 to 0.205.0
  vulkan: Update from version 0.203.0 to 0.204.0
  vulkan: Update from version 0.202.0 to 0.203.0
  vulkan: Update from version 0.200.0 to 0.202.0
  vulkan: Update from version 0.198.0 to 0.200.0
  vulkan: Update from version 0.197.0 to 0.198.0
  vulkan: Update from version 0.196.0 to 0.197.0
  vulkan: Update from version 0.194.0 to 0.196.0
  vulkan: Update from version 0.193.0 to 0.194.0
  vulkan: Update from version 0.192.0 to 0.193.0
  vulkan: Update from version 0.190.0 to 0.192.0
  vulkan: Update from version 0.189.0 to 0.190.0
  vulkan: Update from version 0.188.0 to 0.189.0
  vulkan: Update from version 0.186.0 to 0.188.0
  vulkan: Update from version 0.185.0 to 0.186.0
  vulkan: Update from version 0.184.0 to 0.185.0
  vulkan.api: Distinguish Vk*Flags from Vk*FlagBits
  vulkan: Update from version 0.183.0 to 0.184.0
  vulkan: Implement VkSurfaceKHR and use vulkanext.h
  vulkan: Update from version 0.181.0 to 0.183.0
  vulkan: Update from version 0.180.0 to 0.181.0
  vulkan: Update from version 0.179.0 to 0.180.0
  vulkan: Update from version 0.177.0 to 0.179.0
  vulkan: Update from version 0.174.0 to 0.177.0
  vulkan: Update from version 0.172.2 to 0.174.0
  vulkan: Add SDK 0.9 to 0.10 patch stack

8 years agoMerge changes I58c5cad2,Id6ea11fb,I595e51ae,I161b7afa,I25b547e8, ...
Jesse Hall [Wed, 27 Jan 2016 02:38:28 +0000 (02:38 +0000)]
Merge changes I58c5cad2,Id6ea11fb,I595e51ae,I161b7afa,I25b547e8, ...

* changes:
  libvulkan: Remove dead special cases in GetDeviceProcAddr
  vulkan: Update templates for generated extensions
  Don't remove elements while iterating through active_layers.
  Don't assume layers exist when prop is set
  vulkan: Add DevelopersGuide.pdf
  Add WSI functions to the loader.
  vulkan: allow drivers to see image acquire/release
  vulkan: Allow drivers to add private gralloc usage flags
  libvulkan: enable scaling for all Vulkan swapchains
  Remove Noop and move message removal.
  vknulldrv: Fix several entry point prototypes
  libvulkan: Don't log error if layer dir doesn't exist
  libvulkan: Fix check for redundant vkDeviceQueue calls
  libvulkan: Fail instance/device creation if requested layer not present
  vulkan: Fix GetSpecific*ProcAddr for extension functions
  vulkan: add recursive f/n/vulkan/Android.mk
  vulkan: Use the same dispatch magic value as LunarG
  Update DEBUG_REPORT extension and callback for v170.2
  vulkan: Add build-install_libvulkan virtual branch
  vulkan: Remove sdk-0.9 virtual branch, has been merged
  vulkan: Update to SDK-0.9 version of vk_ext_khr_device_swapchain.h
  vulkan: Update from header 0.138.2 to 0.170.2
  Add support for longer than 12 character layers.
  Allow for different layers to be active per device
  vulkan: Add sdk-0.9 virtual branch

8 years agoMerge changes Idf479bed,Iee7d56c1,I23d7945e,Ibd6fa875,I52f7afb4, ...
Jesse Hall [Wed, 27 Jan 2016 02:37:38 +0000 (02:37 +0000)]
Merge changes Idf479bed,Iee7d56c1,I23d7945e,Ibd6fa875,I52f7afb4, ...

* changes:
  vulkan: Add apk_library_dir virtual branch
  Add support for loading layers from the apk.
  Add default callbacks in the loader.
  Add support for arbitrary number of layers
  Add support for autoloading callback extension.
  Add support for multiple layers in the same so
  Add layer loading to android vulkan loader.
  Fix GetSpecific*ProcAddr.
  vulkan: Implement vk_ext_khr_*swapchain extensions
  vulkan: Add skeleton swapchain support
  vulkan: add copyright notices
  vknulldrv: Implement VkImage
  vulkan: warn on bogus CreateBuffer args

8 years agoMerge changes Ifb3cea05,If093f4c0,If9c22b38,Idda56439,Ib3ceb46f, ...
Jesse Hall [Wed, 27 Jan 2016 02:23:30 +0000 (02:23 +0000)]
Merge changes Ifb3cea05,If093f4c0,If9c22b38,Idda56439,Ib3ceb46f, ...

* changes:
  vulkan: Set up VkCmdBuffer dispatching
  vknulldrv: Implement creation of no-op object types
  vknulldrv: implement VkDeviceMemory objects
  vknulldrv: implement VkBuffer objects
  vulkan: add memory property queries to nulldrv and vkinfo
  vulkan: initial loader and null driver
  vulkan: apply 138.0..v138.2 changes to api file
  vulkan: import api from upstream
  vulkan: several updates to implementor's guide
  vulkan: add initial vkandroid doc

8 years agoMerge "Add missing include to choreographer header."
Michael Wright [Wed, 27 Jan 2016 02:06:11 +0000 (02:06 +0000)]
Merge "Add missing include to choreographer header."

8 years agoMerge "Fixed performance issue by moving buffer allocation outside loop."
Felipe Leme [Wed, 27 Jan 2016 01:46:07 +0000 (01:46 +0000)]
Merge "Fixed performance issue by moving buffer allocation outside loop."

8 years agoAdding support for new sensor types
Ashutosh Joshi [Fri, 15 Jan 2016 06:14:46 +0000 (22:14 -0800)]
Adding support for new sensor types

Adding support for new sensor types
    i) 6DOF pose sensor.
    ii) Motion Detect Sensor.
    iii) Stationary Detect Sensor.
    iv) Heart Beat Sensor.

Change-Id: Icebd222a2301f719bc0d24d4873fa2fabea1b2fa

8 years agoFixed performance issue by moving buffer allocation outside loop.
Felipe Leme [Wed, 27 Jan 2016 01:07:14 +0000 (17:07 -0800)]
Fixed performance issue by moving buffer allocation outside loop.

Also improved logging.

BUG: 26637170
BUG: 26777547
Change-Id: I99511f3f71c58eba1f5539508f9a685d0a58cc58

8 years agoMerge "Adds private EGL extension to create an EGLClientBuffer from a gralloc'd buffe...
Craig Donner [Wed, 27 Jan 2016 01:17:28 +0000 (01:17 +0000)]
Merge "Adds private EGL extension to create an EGLClientBuffer from a gralloc'd buffer.  This lets you create a color EGLimage backed by gralloc, which is needed to support protected textures."

8 years agomedia: Add a metadata type for native handle from camera
Praveen Chavan [Wed, 13 Jan 2016 09:32:25 +0000 (01:32 -0800)]
media: Add a metadata type for native handle from camera

A payload of type kMetadataBufferTypeNativeHandleSource will
correspond to VideoNativeHandleMetadata which contains a
native_handle_t.

Bug: 26268807
Change-Id: I9805fc74c4b086b65ad57ac06385e12f255ada5b

8 years agomedia: add dolby vision profile and level omx defines.
Ronghua Wu [Wed, 27 Jan 2016 00:47:09 +0000 (16:47 -0800)]
media: add dolby vision profile and level omx defines.

Bug: 25684127
Change-Id: Ib8560e2b87a4c37a4857199fde2e23ef79a3a625

8 years agoMerge "Add vp9 profiles and levels omx types."
Ronghua Wu [Wed, 27 Jan 2016 01:02:15 +0000 (01:02 +0000)]
Merge "Add vp9 profiles and levels omx types."

8 years agoMerge "omx: extend OMX_VIDEO_PARAM_HEVCTYPE for encoder use case"
Wonsik Kim [Wed, 27 Jan 2016 00:31:28 +0000 (00:31 +0000)]
Merge "omx: extend OMX_VIDEO_PARAM_HEVCTYPE for encoder use case"

8 years agoAdd missing include to choreographer header.
Michael Wright [Wed, 27 Jan 2016 00:05:54 +0000 (16:05 -0800)]
Add missing include to choreographer header.

Change-Id: Id497f3a505211309a08e100b369300e81f84b13b

8 years agoAdds private EGL extension to create an EGLClientBuffer from a gralloc'd buffer....
Craig Donner [Sat, 16 Jan 2016 03:33:55 +0000 (19:33 -0800)]
Adds private EGL extension to create an EGLClientBuffer from a gralloc'd buffer.  This lets you create a color EGLimage backed by gralloc, which is needed to support protected textures.

Bug: 22775237
Bug: 22855417

Change-Id: I8e03061d74a74a8fdd6524ffa97a6c75a6ced89c

8 years agoMerge "Revert "dumpstate: Add security log dump"" am: 316923d359
Mark Salyzyn [Tue, 26 Jan 2016 21:55:15 +0000 (21:55 +0000)]
Merge "Revert "dumpstate: Add security log dump"" am: 316923d359
am: fd0d76730f

* commit 'fd0d76730f06bec15c90e9a9da64ee19361c3a9f':
  Revert "dumpstate: Add security log dump"

8 years agoMerge "[DO NOT MERGE ANYWHERE] Fix bodysensor permission" into cw-e-dev am: ca19b6a4d...
Nick Vaccaro [Tue, 26 Jan 2016 21:55:08 +0000 (21:55 +0000)]
Merge "[DO NOT MERGE ANYWHERE] Fix bodysensor permission" into cw-e-dev am: ca19b6a4d3  -s ours am: a0a1599d8b  -s ours am: 972e9479a7  -s ours
am: b4f7fea19c  -s ours

* commit 'b4f7fea19c3bcf4e9738c632cc83104ed7c44467':
  [DO NOT MERGE ANYWHERE] Fix bodysensor permission

8 years agoMerge "Revert "dumpstate: Add security log dump""
Mark Salyzyn [Tue, 26 Jan 2016 20:48:08 +0000 (20:48 +0000)]
Merge "Revert "dumpstate: Add security log dump""
am: 316923d359

* commit '316923d3597af72d1cbd9eb2745a02706275fdb8':
  Revert "dumpstate: Add security log dump"

8 years agoMerge "Revert "dumpstate: Add security log dump""
Mark Salyzyn [Tue, 26 Jan 2016 20:41:51 +0000 (20:41 +0000)]
Merge "Revert "dumpstate: Add security log dump""

8 years agoMerge "[DO NOT MERGE ANYWHERE] Fix bodysensor permission" into cw-e-dev am: ca19b6a4d...
Nick Vaccaro [Tue, 26 Jan 2016 20:20:05 +0000 (20:20 +0000)]
Merge "[DO NOT MERGE ANYWHERE] Fix bodysensor permission" into cw-e-dev am: ca19b6a4d3  -s ours am: a0a1599d8b  -s ours
am: 972e9479a7  -s ours

* commit '972e9479a700d9d80aca7c036ed96ce6db4e78e5':
  [DO NOT MERGE ANYWHERE] Fix bodysensor permission

8 years agoMerge "[DO NOT MERGE ANYWHERE] Fix bodysensor permission" into cw-e-dev am: ca19b6a4d...
Nick Vaccaro [Tue, 26 Jan 2016 20:17:31 +0000 (20:17 +0000)]
Merge "[DO NOT MERGE ANYWHERE] Fix bodysensor permission" into cw-e-dev am: ca19b6a4d3  -s ours
am: a0a1599d8b  -s ours

* commit 'a0a1599d8b8d8da38a47a939864d6f80bf6b9a09':
  [DO NOT MERGE ANYWHERE] Fix bodysensor permission

8 years agoMerge "[DO NOT MERGE ANYWHERE] Fix bodysensor permission" into cw-e-dev
Nick Vaccaro [Tue, 26 Jan 2016 20:15:15 +0000 (20:15 +0000)]
Merge "[DO NOT MERGE ANYWHERE] Fix bodysensor permission" into cw-e-dev
am: ca19b6a4d3  -s ours

* commit 'ca19b6a4d347dae318157988134471f9d40e2052':
  [DO NOT MERGE ANYWHERE] Fix bodysensor permission

8 years agoMerge "[DO NOT MERGE ANYWHERE] Fix bodysensor permission" into cw-e-dev
Nick Vaccaro [Tue, 26 Jan 2016 20:13:29 +0000 (20:13 +0000)]
Merge "[DO NOT MERGE ANYWHERE] Fix bodysensor permission" into cw-e-dev

8 years ago[DO NOT MERGE ANYWHERE] Fix bodysensor permission
Peng Xu [Fri, 22 Jan 2016 07:15:04 +0000 (23:15 -0800)]
[DO NOT MERGE ANYWHERE] Fix bodysensor permission

Bug: 26481493
Bug: 26447970

Change-Id: Iaadf64814c03ae8098c8553ac98d19b77c1eabcd