OSDN Git Service

android-x86/frameworks-native.git
8 years agoMerge "Add profile guided compilation hooks in installd"
Calin Juravle [Tue, 19 Jan 2016 19:51:48 +0000 (19:51 +0000)]
Merge "Add profile guided compilation hooks in installd"

8 years agoAdd profile guided compilation hooks in installd
Calin Juravle [Thu, 24 Dec 2015 10:36:41 +0000 (12:36 +0200)]
Add profile guided compilation hooks in installd

Bug: 26080105
Change-Id: I6aaddffe79c55b9a6560c2d6542cf87abbd4fb11

8 years agoChange permissions of apps' home dir to 0700 for SDK > 23
Janis Danisevskis [Tue, 12 Jan 2016 14:45:55 +0000 (14:45 +0000)]
Change permissions of apps' home dir to 0700 for SDK > 23

This patchset changes the installd such that apps' home
directory has permissions set to 0700 if build for a
target SDK version. In consequence the commands

create_app_data and move_complete_app

get one more parameter, the target SDK version.
Apps built for a lower SDK version will still have
home directories with permissions set to 0751.

Bug: 7208882
Change-Id: I0213834dd946c72f5d7e31965a9dc517ced268db

8 years agoMerge "Remove older migration code."
Jeff Sharkey [Sat, 16 Jan 2016 00:41:09 +0000 (00:41 +0000)]
Merge "Remove older migration code."

8 years agoRemove older migration code.
Jeff Sharkey [Wed, 13 Jan 2016 16:37:46 +0000 (09:37 -0700)]
Remove older migration code.

We used to offer to migrate pre-multi-user devices to the new
multi-user layout around JB, but the new layout has been the default
for many years now, so it's safe to remove this logic.

All core directory creation is now handled by init.rc where FBE
policies can be setup correctly, so we shouldn't be in the business
of doing system bootstrapping here.

Remove some lingering FBE debugging code.

Bug: 26466827
Change-Id: I1dfe9c8fc02b64013a5c45cea99bf8f61f7d1d5b

8 years agoIGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37 am: 413318311c...
Robert Shih [Fri, 15 Jan 2016 02:21:41 +0000 (02:21 +0000)]
IGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37 am: 413318311c am: dc9ec35294 am: 9d959e2755 am: edb7c81a1b am: 2a7a1247cb am: 40ba03fc68 am: ea2b6c68e1 am: 6df23e81f7 am: c748125025
am: db5c5bb025

* commit 'db5c5bb0259fa024517d9a151726785facba4f02':
  IGraphicBufferProducer: fix QUEUE_BUFFER info leak

8 years agoIGraphicBufferConsumer: fix ATTACH_BUFFER info leak am: dded8fdbb7 am: 7ee203b59d...
Robert Shih [Fri, 15 Jan 2016 02:21:36 +0000 (02:21 +0000)]
IGraphicBufferConsumer: fix ATTACH_BUFFER info leak am: dded8fdbb7 am: 7ee203b59d am: dc252255af am: 202aaa8f97 am: ec87aa5218 am: c5cb7c489b am: e8cceaf02f am: aef60500d2
am: 362647d373

* commit '362647d37327db2ed53301398a9de7c030af2d42':
  IGraphicBufferConsumer: fix ATTACH_BUFFER info leak

8 years agoIGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37 am: 413318311c...
Robert Shih [Fri, 15 Jan 2016 02:03:07 +0000 (02:03 +0000)]
IGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37 am: 413318311c am: dc9ec35294 am: 9d959e2755 am: edb7c81a1b am: 2a7a1247cb am: 40ba03fc68 am: ea2b6c68e1 am: 6df23e81f7
am: c748125025

* commit 'c7481250259144c2f7795408ad971f4a9319d996':
  IGraphicBufferProducer: fix QUEUE_BUFFER info leak

8 years agoIGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37 am: 413318311c...
Robert Shih [Fri, 15 Jan 2016 02:00:24 +0000 (02:00 +0000)]
IGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37 am: 413318311c am: dc9ec35294 am: 9d959e2755 am: edb7c81a1b am: 2a7a1247cb am: 40ba03fc68 am: ea2b6c68e1
am: 6df23e81f7

* commit '6df23e81f762ec7bdf3d575582ad51aaef5172cf':
  IGraphicBufferProducer: fix QUEUE_BUFFER info leak

8 years agoIGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37 am: 413318311c...
Robert Shih [Fri, 15 Jan 2016 01:58:27 +0000 (01:58 +0000)]
IGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37 am: 413318311c am: dc9ec35294 am: 9d959e2755 am: edb7c81a1b am: 2a7a1247cb am: 40ba03fc68
am: ea2b6c68e1

* commit 'ea2b6c68e14b918972b1390765fdf4f748b49ba2':
  IGraphicBufferProducer: fix QUEUE_BUFFER info leak

8 years agoIGraphicBufferConsumer: fix ATTACH_BUFFER info leak am: dded8fdbb7 am: 7ee203b59d...
Robert Shih [Fri, 15 Jan 2016 01:56:25 +0000 (01:56 +0000)]
IGraphicBufferConsumer: fix ATTACH_BUFFER info leak am: dded8fdbb7 am: 7ee203b59d am: dc252255af am: 202aaa8f97 am: ec87aa5218 am: c5cb7c489b am: e8cceaf02f
am: aef60500d2

* commit 'aef60500d2a505c3dbbea74f62053c0bb072d5a7':
  IGraphicBufferConsumer: fix ATTACH_BUFFER info leak

8 years agoIGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37 am: 413318311c...
Robert Shih [Fri, 15 Jan 2016 01:56:25 +0000 (01:56 +0000)]
IGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37 am: 413318311c am: dc9ec35294 am: 9d959e2755 am: edb7c81a1b am: 2a7a1247cb
am: 40ba03fc68

* commit '40ba03fc68e6c234bb8604784716cb2481ad1c67':
  IGraphicBufferProducer: fix QUEUE_BUFFER info leak

8 years agoIGraphicBufferConsumer: fix ATTACH_BUFFER info leak am: dded8fdbb7 am: 7ee203b59d...
Robert Shih [Fri, 15 Jan 2016 01:54:27 +0000 (01:54 +0000)]
IGraphicBufferConsumer: fix ATTACH_BUFFER info leak am: dded8fdbb7 am: 7ee203b59d am: dc252255af am: 202aaa8f97 am: ec87aa5218 am: c5cb7c489b
am: e8cceaf02f

* commit 'e8cceaf02f7e15e1ef0c3446c4287ce58cc325ba':
  IGraphicBufferConsumer: fix ATTACH_BUFFER info leak

8 years agoIGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37 am: 413318311c...
Robert Shih [Fri, 15 Jan 2016 01:54:27 +0000 (01:54 +0000)]
IGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37 am: 413318311c am: dc9ec35294 am: 9d959e2755 am: edb7c81a1b
am: 2a7a1247cb

* commit '2a7a1247cb4829daaaa4e6a6ee3e670cd2f068bf':
  IGraphicBufferProducer: fix QUEUE_BUFFER info leak

8 years agoIGraphicBufferConsumer: fix ATTACH_BUFFER info leak am: dded8fdbb7 am: 7ee203b59d...
Robert Shih [Fri, 15 Jan 2016 01:52:25 +0000 (01:52 +0000)]
IGraphicBufferConsumer: fix ATTACH_BUFFER info leak am: dded8fdbb7 am: 7ee203b59d am: dc252255af am: 202aaa8f97 am: ec87aa5218
am: c5cb7c489b

* commit 'c5cb7c489bcc3a52abdd4d02fb353b0a7b8557eb':
  IGraphicBufferConsumer: fix ATTACH_BUFFER info leak

8 years agoIGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37 am: 413318311c...
Robert Shih [Fri, 15 Jan 2016 01:52:25 +0000 (01:52 +0000)]
IGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37 am: 413318311c am: dc9ec35294 am: 9d959e2755
am: edb7c81a1b

* commit 'edb7c81a1b99d2456910b03db9e4ac250eac2fab':
  IGraphicBufferProducer: fix QUEUE_BUFFER info leak

8 years agoIGraphicBufferConsumer: fix ATTACH_BUFFER info leak am: dded8fdbb7 am: 7ee203b59d...
Robert Shih [Fri, 15 Jan 2016 01:50:22 +0000 (01:50 +0000)]
IGraphicBufferConsumer: fix ATTACH_BUFFER info leak am: dded8fdbb7 am: 7ee203b59d am: dc252255af am: 202aaa8f97
am: ec87aa5218

* commit 'ec87aa52189d5d3bbf5df214ab099d5de9f5836c':
  IGraphicBufferConsumer: fix ATTACH_BUFFER info leak

8 years agoIGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37 am: 413318311c...
Robert Shih [Fri, 15 Jan 2016 01:50:22 +0000 (01:50 +0000)]
IGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37 am: 413318311c am: dc9ec35294
am: 9d959e2755

* commit '9d959e275561bcace3aab1f9df009c6c880003fa':
  IGraphicBufferProducer: fix QUEUE_BUFFER info leak

8 years agoIGraphicBufferConsumer: fix ATTACH_BUFFER info leak am: dded8fdbb7 am: 7ee203b59d...
Robert Shih [Fri, 15 Jan 2016 01:48:17 +0000 (01:48 +0000)]
IGraphicBufferConsumer: fix ATTACH_BUFFER info leak am: dded8fdbb7 am: 7ee203b59d am: dc252255af
am: 202aaa8f97

* commit '202aaa8f97083b68c0a736f4cd432f61c9b0989d':
  IGraphicBufferConsumer: fix ATTACH_BUFFER info leak

8 years agoIGraphicBufferConsumer: fix ATTACH_BUFFER info leak am: dded8fdbb7 am: 7ee203b59d
Robert Shih [Fri, 15 Jan 2016 01:45:18 +0000 (01:45 +0000)]
IGraphicBufferConsumer: fix ATTACH_BUFFER info leak am: dded8fdbb7 am: 7ee203b59d
am: dc252255af

* commit 'dc252255af835bb3a69bc9a0d01da12419c0fc05':
  IGraphicBufferConsumer: fix ATTACH_BUFFER info leak

8 years agoIGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37 am: 413318311c
Robert Shih [Fri, 15 Jan 2016 01:45:18 +0000 (01:45 +0000)]
IGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37 am: 413318311c
am: dc9ec35294

* commit 'dc9ec35294b8ec6b6c349b826edc9b44f4ddb96d':
  IGraphicBufferProducer: fix QUEUE_BUFFER info leak

8 years agoIGraphicBufferConsumer: fix ATTACH_BUFFER info leak am: dded8fdbb7
Robert Shih [Fri, 15 Jan 2016 01:43:05 +0000 (01:43 +0000)]
IGraphicBufferConsumer: fix ATTACH_BUFFER info leak am: dded8fdbb7
am: 7ee203b59d

* commit '7ee203b59d9a74d485ce2fdfd07e96b2d10ff23b':
  IGraphicBufferConsumer: fix ATTACH_BUFFER info leak

8 years agoIGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37
Robert Shih [Fri, 15 Jan 2016 01:38:56 +0000 (01:38 +0000)]
IGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37
am: 413318311c

* commit '413318311c8cc356dd7e0837ce26e937a9f4c56a':
  IGraphicBufferProducer: fix QUEUE_BUFFER info leak

8 years agoIGraphicBufferProducer: fix QUEUE_BUFFER info leak
Robert Shih [Fri, 15 Jan 2016 01:27:23 +0000 (01:27 +0000)]
IGraphicBufferProducer: fix QUEUE_BUFFER info leak
am: d06421fd37

* commit 'd06421fd37fbb7fd07002e6738fac3a223cb1a62':
  IGraphicBufferProducer: fix QUEUE_BUFFER info leak

8 years agoIGraphicBufferConsumer: fix ATTACH_BUFFER info leak
Robert Shih [Fri, 15 Jan 2016 01:26:59 +0000 (01:26 +0000)]
IGraphicBufferConsumer: fix ATTACH_BUFFER info leak
am: dded8fdbb7

* commit 'dded8fdbb700d6cc498debc69a780915bc34d755':
  IGraphicBufferConsumer: fix ATTACH_BUFFER info leak

8 years agoNAN hardware feature support definition file.
Etan Cohen [Thu, 14 Jan 2016 18:58:03 +0000 (18:58 +0000)]
NAN hardware feature support definition file.
am: d19965d2d0

* commit 'd19965d2d02b3ec9cde5f56628b09a868f962174':
  NAN hardware feature support definition file.

8 years agoresolve merge conflicts of 14af23d140 to master.
Prashant Malani [Wed, 13 Jan 2016 20:52:25 +0000 (12:52 -0800)]
resolve merge conflicts of 14af23d140 to master.

Change-Id: I1eee295f592bad672ad093dfbd9c0c2b555df0ed

8 years agoRevert "inputflinger: Add support for scaling and true value reporting" am: 2c09b7865...
Prashant Malani [Wed, 13 Jan 2016 18:53:32 +0000 (18:53 +0000)]
Revert "inputflinger: Add support for scaling and true value reporting" am: 2c09b78656 am: cd7ddc7cac am: 918263dac8
am: 63da2d7082

* commit '63da2d70828a817e2afd79d0a0f27a64723984c0':
  Revert "inputflinger: Add support for scaling and true value reporting"

8 years agoRevert "inputflinger: Initial support for rotary encoders." am: d983fd11d4 am: b5458e3baf
Prashant Malani [Wed, 13 Jan 2016 18:50:08 +0000 (18:50 +0000)]
Revert "inputflinger: Initial support for rotary encoders." am: d983fd11d4 am: b5458e3baf
am: 618b2dc4c8

* commit '618b2dc4c898b13b786bd3b4a1d696e8744cc225':
  Revert "inputflinger: Initial support for rotary encoders."

8 years agoRevert "inputflinger: Add support for scaling and true value reporting" am: 2c09b7865...
Prashant Malani [Wed, 13 Jan 2016 18:50:03 +0000 (18:50 +0000)]
Revert "inputflinger: Add support for scaling and true value reporting" am: 2c09b78656 am: cd7ddc7cac
am: 918263dac8

* commit '918263dac8f7572dd90eeaadda651e117f735653':
  Revert "inputflinger: Add support for scaling and true value reporting"

8 years agoRevert "inputflinger: Initial support for rotary encoders." am: d983fd11d4
Prashant Malani [Wed, 13 Jan 2016 18:46:52 +0000 (18:46 +0000)]
Revert "inputflinger: Initial support for rotary encoders." am: d983fd11d4
am: b5458e3baf

* commit 'b5458e3bafa3917e7cfda1e3200d112951a5a954':
  Revert "inputflinger: Initial support for rotary encoders."

8 years agoRevert "inputflinger: Add support for scaling and true value reporting" am: 2c09b78656
Prashant Malani [Wed, 13 Jan 2016 18:46:46 +0000 (18:46 +0000)]
Revert "inputflinger: Add support for scaling and true value reporting" am: 2c09b78656
am: cd7ddc7cac

* commit 'cd7ddc7cac649f5630197d57bc098764c994aba6':
  Revert "inputflinger: Add support for scaling and true value reporting"

8 years agoRevert "inputflinger: Initial support for rotary encoders."
Prashant Malani [Wed, 13 Jan 2016 18:44:11 +0000 (18:44 +0000)]
Revert "inputflinger: Initial support for rotary encoders."
am: d983fd11d4

* commit 'd983fd11d4a00b03f92d09f32c08840e66d90777':
  Revert "inputflinger: Initial support for rotary encoders."

8 years agoRevert "inputflinger: Add support for scaling and true value reporting"
Prashant Malani [Wed, 13 Jan 2016 18:44:02 +0000 (18:44 +0000)]
Revert "inputflinger: Add support for scaling and true value reporting"
am: 2c09b78656

* commit '2c09b78656dd97727f94fada81845b133cf142f3':
  Revert "inputflinger: Add support for scaling and true value reporting"

8 years agoMerge "Add a way for SystemUI to receive media resource (e.g. A/V codec) usage"
Dongwon Kang [Wed, 13 Jan 2016 18:21:15 +0000 (18:21 +0000)]
Merge "Add a way for SystemUI to receive media resource (e.g. A/V codec) usage"

8 years agoStill not safe to mutate DE on secondary users.
Jeff Sharkey [Wed, 13 Jan 2016 16:47:08 +0000 (09:47 -0700)]
Still not safe to mutate DE on secondary users.

Bug: 2579650926535916
Change-Id: I694b4a1b5fe3e31578f431bcddf7d6c4070f7852

8 years agoRevert "inputflinger: Initial support for rotary encoders."
Prashant Malani [Wed, 13 Jan 2016 09:00:25 +0000 (01:00 -0800)]
Revert "inputflinger: Initial support for rotary encoders."

This reverts commit ac72bbf4e46d6689070df09a25db2960a9036eb2.

8 years agoRevert "inputflinger: Add support for scaling and true value reporting"
Prashant Malani [Wed, 13 Jan 2016 09:00:08 +0000 (01:00 -0800)]
Revert "inputflinger: Add support for scaling and true value reporting"

This reverts commit ee03865fe5fc6ffe9deda0e0870a18206027cfaf.

8 years agoinputflinger: Add support for scaling and true value reporting am: ee03865fe5 am...
Prashant Malani [Wed, 13 Jan 2016 05:39:23 +0000 (05:39 +0000)]
inputflinger: Add support for scaling and true value reporting am: ee03865fe5 am: a777e8b70f am: 9363c7fa06
am: 60f161920b

* commit '60f161920be227121df1a57be430b1b5cf94bd4f':
  inputflinger: Add support for scaling and true value reporting

8 years agoMerge "Add PersistableBundle.aidl into binder includes" am: 0904094574
Samuel Tan [Wed, 13 Jan 2016 05:39:17 +0000 (05:39 +0000)]
Merge "Add PersistableBundle.aidl into binder includes" am: 0904094574
am: a06aad9986

* commit 'a06aad9986c02d9d8ab028b748d3648a2215a11e':
  Add PersistableBundle.aidl into binder includes

8 years agoinputflinger: Add support for scaling and true value reporting am: ee03865fe5 am...
Prashant Malani [Wed, 13 Jan 2016 05:37:31 +0000 (05:37 +0000)]
inputflinger: Add support for scaling and true value reporting am: ee03865fe5 am: a777e8b70f
am: 9363c7fa06

* commit '9363c7fa063c45dc5e0bf35616928d1e036e2419':
  inputflinger: Add support for scaling and true value reporting

8 years agoinputflinger: Add support for scaling and true value reporting am: ee03865fe5
Prashant Malani [Wed, 13 Jan 2016 05:35:45 +0000 (05:35 +0000)]
inputflinger: Add support for scaling and true value reporting am: ee03865fe5
am: a777e8b70f

* commit 'a777e8b70fce35e97dd8812df8b0b5eca17db550':
  inputflinger: Add support for scaling and true value reporting

8 years agoinputflinger: Add support for scaling and true value reporting
Prashant Malani [Wed, 13 Jan 2016 05:33:57 +0000 (05:33 +0000)]
inputflinger: Add support for scaling and true value reporting
am: ee03865fe5

* commit 'ee03865fe5fc6ffe9deda0e0870a18206027cfaf':
  inputflinger: Add support for scaling and true value reporting

8 years agoMerge "Revert "media: Add dolby hdr codecs to OMX_VIDEO_CODINGTYPE.""
Ronghua Wu [Wed, 13 Jan 2016 00:40:04 +0000 (00:40 +0000)]
Merge "Revert "media: Add dolby hdr codecs to OMX_VIDEO_CODINGTYPE.""

8 years agoMerge "Add PersistableBundle.aidl into binder includes"
Samuel Tan [Tue, 12 Jan 2016 23:14:46 +0000 (23:14 +0000)]
Merge "Add PersistableBundle.aidl into binder includes"
am: 0904094574

* commit '09040945744f8a8634d7472836d6be3506a77d41':
  Add PersistableBundle.aidl into binder includes

8 years agoMerge "Add PersistableBundle.aidl into binder includes"
Samuel Tan [Tue, 12 Jan 2016 23:09:44 +0000 (23:09 +0000)]
Merge "Add PersistableBundle.aidl into binder includes"

8 years agoLet callers specify which storage to operate on.
Jeff Sharkey [Mon, 11 Jan 2016 20:07:09 +0000 (13:07 -0700)]
Let callers specify which storage to operate on.

Since CE and DE storage can have different availability lifecycles,
callers can't operate on both at the same time.  Let them use flags
to specify which storage to work with.

Remove old unused methods, and name consistently in preparation for
eventual move to AIDL.

Bug: 26466827
Change-Id: Id5d7d03f5d8814864eea801f5a46496c085afdff

8 years agoMerge "Support AES-CBC sample encryption in MediaDrm"
Jeff Tinker [Tue, 12 Jan 2016 17:42:11 +0000 (17:42 +0000)]
Merge "Support AES-CBC sample encryption in MediaDrm"

8 years agoAdd a way for SystemUI to receive media resource (e.g. A/V codec) usage
Dongwon Kang [Mon, 14 Dec 2015 12:59:19 +0000 (21:59 +0900)]
Add a way for SystemUI to receive media resource (e.g. A/V codec) usage

Bug: 26175834
Change-Id: I16320fa41dd852768a370af0a0740691d1ddacdf

8 years agoinputflinger: Add support for scaling and true value reporting
Prashant Malani [Tue, 12 Jan 2016 01:08:18 +0000 (17:08 -0800)]
inputflinger: Add support for scaling and true value reporting

-1/+1 somewhat simplifies the values that can be generated by rotary
encoders, and rules out the possibility of batching and more nuanced
movement reporting.

So, we modify the device configuration to allow values other than -1 and
1 to be supported. In order to give the developer a sense of what these
values map to in terms of angular displacement, we also parse a
resolution configuration from the devices IDC file.

This will be specified as:

device.res = xxxx

of type float. If a value is not provided, a default res value of 0.0f
is used.

This patch also adds a per device scaling factor, which is used to
suitably modify the values reported (as well as the resolution) to tune
the input events generated and resulting UI according to the hardware.
This can be specified in the IDC file as:

device.scalingFactor = xxxx

of type float. If a scaling factor is not provided, a default of 1.0f
is used.

Bug: 22836852
Bug: 18707397
Change-Id: I13686f64de1b52d3f6c97b2587ae41e52d1db6e2

8 years agoIGraphicBufferProducer: fix QUEUE_BUFFER info leak
Robert Shih [Mon, 11 Jan 2016 23:02:12 +0000 (15:02 -0800)]
IGraphicBufferProducer: fix QUEUE_BUFFER info leak

Bug: 26338109
Change-Id: I8a979469bfe1e317ebdefa43685e19f9302baea8

8 years agoMerge "Revert "libgui: Remove custom BufferQueue allocators""
Dan Stoza [Mon, 11 Jan 2016 23:41:04 +0000 (23:41 +0000)]
Merge "Revert "libgui: Remove custom BufferQueue allocators""

8 years agoRevert "libgui: Remove custom BufferQueue allocators"
Dan Stoza [Mon, 11 Jan 2016 23:40:44 +0000 (23:40 +0000)]
Revert "libgui: Remove custom BufferQueue allocators"

This reverts commit acd56150573d3a6d449c0de01f93c6f269d121e3.

Change-Id: I877f63a57fbddb4dcff71b3909b460ecc05981eb

8 years agoMerge "libui: Remove FramebufferNativeWindow"
Dan Stoza [Mon, 11 Jan 2016 20:34:03 +0000 (20:34 +0000)]
Merge "libui: Remove FramebufferNativeWindow"

8 years agoMerge "libgui: Remove custom BufferQueue allocators"
Dan Stoza [Mon, 11 Jan 2016 20:27:19 +0000 (20:27 +0000)]
Merge "libgui: Remove custom BufferQueue allocators"

8 years agoMerge "libgui: Remove custom allocator from tests"
Dan Stoza [Mon, 11 Jan 2016 20:23:26 +0000 (20:23 +0000)]
Merge "libgui: Remove custom allocator from tests"

8 years agoIGraphicBufferConsumer: fix ATTACH_BUFFER info leak
Robert Shih [Mon, 11 Jan 2016 19:42:48 +0000 (11:42 -0800)]
IGraphicBufferConsumer: fix ATTACH_BUFFER info leak

Bug: 26338113
Change-Id: I019c4df2c6adbc944122df96968ddd11a02ebe33

8 years agoMerge "libui: Make Rect constructor 32/64-bit friendly"
Dan Stoza [Mon, 11 Jan 2016 17:44:14 +0000 (17:44 +0000)]
Merge "libui: Make Rect constructor 32/64-bit friendly"

8 years agolibui: Make Rect constructor 32/64-bit friendly
Dan Stoza [Fri, 8 Jan 2016 21:22:49 +0000 (13:22 -0800)]
libui: Make Rect constructor 32/64-bit friendly

Makes the width/height constructor for the Rect class more flexible
with the types of integers it will accept.

Change-Id: Id88b4e6da2f84d6826e19d1cabd93fe86ad48c8d

8 years agoRevert "media: Add dolby hdr codecs to OMX_VIDEO_CODINGTYPE."
Ronghua Wu [Fri, 8 Jan 2016 18:25:07 +0000 (18:25 +0000)]
Revert "media: Add dolby hdr codecs to OMX_VIDEO_CODINGTYPE."

This reverts commit 1e7ebf33dca14859dc48802ffafbc761c69bb225.

Change-Id: I764c42818a3262b4316ddad2f72d527eb9a90e46

8 years agolibui: Remove FramebufferNativeWindow
Dan Stoza [Fri, 8 Jan 2016 18:09:47 +0000 (10:09 -0800)]
libui: Remove FramebufferNativeWindow

We no longer support the framebuffer device, so FramebufferNativeWindow
is no longer relevant.

Change-Id: I97c427bb7c0b209bbf33e61900466bde7df43e85

8 years agolibgui: Remove custom BufferQueue allocators
Dan Stoza [Fri, 8 Jan 2016 17:36:21 +0000 (09:36 -0800)]
libgui: Remove custom BufferQueue allocators

Removes the ability to set a custom GraphicBuffer allocator for a
BufferQueue. Custom-allocated buffers may still be used through the
attachBuffer call.

Change-Id: I127bdfb496fc089a61c7e266c8bd2b906d41f32e

8 years agoImprovements for SHA256_file_hash()
Michal Karpinski [Thu, 7 Jan 2016 20:45:02 +0000 (20:45 +0000)]
Improvements for SHA256_file_hash()

Bug: 26154009
Change-Id: I7cee0563edb7e8030716ae2925a940f3c158721e

8 years agodumpstate.cpp changes to accomodate remote bugreports
Michal Karpinski [Fri, 11 Dec 2015 18:04:32 +0000 (18:04 +0000)]
dumpstate.cpp changes to accomodate remote bugreports

Added four new commands to dumpstate() - route, printenv, netstat
and lsmod.
Added -R flag for remote bugreports, which will send
android.intent.action.REMOTE_BUGREPORT_FINISHED broadcast with an extra
SHA256 hash counted by a new method SHA256_file_hash(path).

Bug: 26154009
Change-Id: Ibd7cb8f38dfc8f0fa3fda3e56dcd04b7d1fe68b9

8 years agoNAN hardware feature support definition file.
Etan Cohen [Tue, 29 Sep 2015 20:48:43 +0000 (13:48 -0700)]
NAN hardware feature support definition file.

Bug: 26216681
Change-Id: Ie4623f1ed2813d6062311231a44800786104225f

8 years agoMerge "Adding new bugreportremote service"
Michal Karpinski [Thu, 7 Jan 2016 11:55:00 +0000 (11:55 +0000)]
Merge "Adding new bugreportremote service"

8 years agolibgui: Remove custom allocator from tests
Dan Stoza [Wed, 6 Jan 2016 22:21:52 +0000 (14:21 -0800)]
libgui: Remove custom allocator from tests

The StreamSplitter test used a custom allocator to ensure that only one
GraphicBuffer was ever allocated during the test run. Now we can ensure
that by disabling allocation on the relevant BufferQueues after
allocating that one buffer, so the custom allocator is unnecessary.

Change-Id: I98289bda669c50a93ba9b70ceca1781203ad83b2

8 years agoAdd PersistableBundle.aidl into binder includes
Samuel Tan [Mon, 21 Dec 2015 20:11:00 +0000 (12:11 -0800)]
Add PersistableBundle.aidl into binder includes

Add the PersistableBundle.aidl into the new /aidl/binder/
subdirectory (along with the necessary 'android' and 'os'
subdirectories) so that the aidl file will live alongside
its native implementation in libbinder. This change will
allow native-only Android checkouts (e.g. Brillo) to use
PersistableBundle.

The /aidl/ subdirectory should henceforth contain any
aidl files that live with native code.

BUG: 26292234
Change-Id: I07b49dad8afd679f33e41fa9044dffc02ec25e3e

8 years agoMerge "libgui: Fix attaching buffers without allocation"
Dan Stoza [Wed, 6 Jan 2016 18:19:28 +0000 (18:19 +0000)]
Merge "libgui: Fix attaching buffers without allocation"

8 years agoMerge "libgui: Add dequeue/attach timeout"
Dan Stoza [Wed, 6 Jan 2016 17:20:07 +0000 (17:20 +0000)]
Merge "libgui: Add dequeue/attach timeout"

8 years agolibgui: Fix attaching buffers without allocation
Dan Stoza [Tue, 5 Jan 2016 01:01:02 +0000 (17:01 -0800)]
libgui: Fix attaching buffers without allocation

This changes the way that BufferQueue selects slots in
waitForFreeSlotThenRelock. This method is called from both
dequeueBuffer and attachBuffer, but those two methods actually have
different preferences:

dequeueBuffer wants a slot with a buffer if possible (to avoid
unnecessary allocations), but will settle for a slot without a buffer
if no free buffers are available.

attachBuffer wants a slot without a buffer if possible (to avoid
clobbering an existing buffer), but will settle with clobbering a free
buffer if no empty slots are available.

These preferences are now respected, which has the side-effect of
fixing a bug where it was not possible to attach a buffer if allocation
is disabled (since the previous implementation assumed finding a slot
without a buffer meant that the caller intended to allocate a buffer,
which would accordingly be blocked since allocation is disabled).

Bug: 26387372
Change-Id: Iefd550fd01925d8c51d6f062d5708d1f6d517edd

8 years agolibgui: Add dequeue/attach timeout
Dan Stoza [Tue, 30 Jun 2015 20:43:32 +0000 (13:43 -0700)]
libgui: Add dequeue/attach timeout

Adds the ability to specify the timeout when dequeueBuffer or
attachBuffer block due to the lack of a free buffer/slot. By default,
these will block indefinitely (which is signified by a timeout of -1).

When a timeout (other than -1) is specified, non-blocking mode is
disabled and the given timeout will be used instead.

Bug: 25196773
Change-Id: I17fdbeebccb7c8d878703d758ac1209608258e61

8 years agoInclude mount info on zipped bugreport.
Felipe Leme [Tue, 5 Jan 2016 22:23:02 +0000 (14:23 -0800)]
Include mount info on zipped bugreport.

BUG: 7280247
Change-Id: Iae2a7881c11564c8dbd3641f5ee5ab72c181da2a

8 years agoMerge "libinstalld: add dependency on libselinux" am: 9dee30750e
Colin Cross [Tue, 5 Jan 2016 21:52:13 +0000 (21:52 +0000)]
Merge "libinstalld: add dependency on libselinux" am: 9dee30750e
am: 3c2103ef33

* commit '3c2103ef33d40b95f773cc2224f0399833b1a8cc':
  libinstalld: add dependency on libselinux

8 years agoMerge "libinstalld: add dependency on libselinux"
Colin Cross [Tue, 5 Jan 2016 21:50:02 +0000 (21:50 +0000)]
Merge "libinstalld: add dependency on libselinux"
am: 9dee30750e

* commit '9dee30750e85dcfc02fb9fd4cc6169957de91d0b':
  libinstalld: add dependency on libselinux

8 years agoMerge "libinstalld: add dependency on libselinux"
Colin Cross [Tue, 5 Jan 2016 21:46:28 +0000 (21:46 +0000)]
Merge "libinstalld: add dependency on libselinux"

8 years agoAdds recovery files when writing to zip file.
Felipe Leme [Tue, 5 Jan 2016 21:35:44 +0000 (13:35 -0800)]
Adds recovery files when writing to zip file.

BUG: 25351711
Change-Id: I3bac7a0d3a6f388b46570595d22436f0a4f74bee

8 years agoAdds all tombstone files when writing to zipped file.
Felipe Leme [Tue, 5 Jan 2016 21:25:34 +0000 (13:25 -0800)]
Adds all tombstone files when writing to zipped file.

Currently, a bugreport simply cats any tombstone file modified in the
last half an hour into the bugreport. This is a problem since the
tombstones contain a lot of really valuable information, and sometimes
users don't get a bugreport in this time frame. In addition, some of our
monkey testing has the same problem.

Since now dumpstate can create a zip file, we can include all  directly
on it, although still using the old mechanism when it's creating it (for example, when invoked through 'adb bugreport').

BUG: 25974224
Change-Id: Ie29fd7d91953d91232b0db1c9588043aee13f93e

8 years agoRefactored zipfile generation.
Felipe Leme [Tue, 22 Dec 2015 00:02:13 +0000 (16:02 -0800)]
Refactored zipfile generation.

Previously, the bugreport.zip was only created at after dumpstate
finished, at which point the temporary file was added to it.

With this refactoring, the bugreport.zip is created earlier on and the
temporary file is added at the end: although this change doesn't alter
the final result, it allows future changes to add more files to the .zip

BUG: 26293568
Change-Id: Ic0a111d009aac954c9746130df226a2dfeb679bc

8 years agoMerge "Prints out how long it takes to generate each section."
Felipe Leme [Tue, 5 Jan 2016 21:03:52 +0000 (21:03 +0000)]
Merge "Prints out how long it takes to generate each section."

8 years agoPrints out how long it takes to generate each section.
Felipe Leme [Mon, 21 Dec 2015 17:55:22 +0000 (09:55 -0800)]
Prints out how long it takes to generate each section.

It's done using a DurationReporter helper class that prints starts
counting when constructed and prints the duration when destructed.

Typical usage:

function do_something() {
    DurationReporter duration_reporter(title);
    // Do something.
}

Change-Id: I87134d9a1b003300384376c242a3c034a46244c4

8 years agoUse GID "wakelock" to control access to kernel wakelock
Pavlin Radoslavov [Tue, 24 Nov 2015 03:10:14 +0000 (19:10 -0800)]
Use GID "wakelock" to control access to kernel wakelock

Bug: 25864142
Change-Id: I2731849378f6ff57fb026dab4288426c45cd60cd

8 years agoMerge "More O_CLOEXEC" am: 43e4260831
Nick Kralevich [Thu, 24 Dec 2015 03:19:21 +0000 (03:19 +0000)]
Merge "More O_CLOEXEC" am: 43e4260831
am: 66824c36ce

* commit '66824c36ce08ae86a057440e33a5fe1a23ef01f1':
  More O_CLOEXEC

8 years agoMerge "More O_CLOEXEC"
Nick Kralevich [Thu, 24 Dec 2015 03:16:38 +0000 (19:16 -0800)]
Merge "More O_CLOEXEC"
am: 43e4260831

* commit '43e4260831cc3d0d96c05fe18a8cad3018b5795f':
  More O_CLOEXEC

8 years agoMerge "More O_CLOEXEC"
Nick Kralevich [Thu, 24 Dec 2015 02:59:16 +0000 (02:59 +0000)]
Merge "More O_CLOEXEC"

8 years agoMore O_CLOEXEC
Nick Kralevich [Thu, 24 Dec 2015 02:58:05 +0000 (18:58 -0800)]
More O_CLOEXEC

Change-Id: I31991ed089f395174857e86e509b8190ad98f92a

8 years agoUse "merge -s ours origin/mirror-partner-mm-wireless-dev" as described in b/26154276
Alex Cheung [Wed, 23 Dec 2015 22:49:50 +0000 (14:49 -0800)]
Use "merge -s ours origin/mirror-partner-mm-wireless-dev" as described in b/26154276

8 years agoMerge "Expose setScalingMode from Surface."
Rob Carr [Tue, 22 Dec 2015 21:07:45 +0000 (21:07 +0000)]
Merge "Expose setScalingMode from Surface."

8 years agoMerge "Merge remote-tracking branch 'goog/mnc-dr-ryu-dev'"
David Riley [Tue, 22 Dec 2015 19:19:50 +0000 (19:19 +0000)]
Merge "Merge remote-tracking branch 'goog/mnc-dr-ryu-dev'"

8 years agolibinstalld: add dependency on libselinux
Colin Cross [Tue, 22 Dec 2015 00:21:45 +0000 (16:21 -0800)]
libinstalld: add dependency on libselinux

libinstalld uses headers from libselinux, add a LOCAL_SHARED_LIBRARIES
dependency on libselinux.

Change-Id: Ic12c55547526638810bcc1ac952d205f2f163fd3

8 years agoExpose setScalingMode from Surface.
Robert Carr [Thu, 17 Dec 2015 02:14:03 +0000 (18:14 -0800)]
Expose setScalingMode from Surface.

While we are here fix a validation error causing
NATIVE_WINDOW_SCALING_MODE_NO_SCALE_CROP to never be applied.
Furthermore, we remove GLConsumer logic causing the scaling mode to
be reinitialized when buffers change.

Bug: 26010823
Change-Id: I1bf1e4fdc2eded67ff401783cf24f920e4684326

8 years agoMerge "Removed the -p option since screenshots are now taken by Shell."
Felipe Leme [Mon, 21 Dec 2015 20:45:28 +0000 (20:45 +0000)]
Merge "Removed the -p option since screenshots are now taken by Shell."

8 years agoMerge remote-tracking branch 'goog/mnc-dr-ryu-dev'
David Riley [Mon, 21 Dec 2015 20:37:36 +0000 (12:37 -0800)]
Merge remote-tracking branch 'goog/mnc-dr-ryu-dev'

Change-Id: Ia7f27eb15e26b75ad7056ec52fd8f9b66937e39e

8 years agoMerge changes from topic 'GLES32'
Pablo Ceballos [Mon, 21 Dec 2015 18:42:02 +0000 (18:42 +0000)]
Merge changes from topic 'GLES32'

* changes:
  Add GLES32 class templates
  opengl: Update headers and registry and regenerate *api.in

8 years agoRemoved the -p option since screenshots are now taken by Shell.
Felipe Leme [Mon, 21 Dec 2015 18:35:43 +0000 (10:35 -0800)]
Removed the -p option since screenshots are now taken by Shell.

BUG: 26274653
Change-Id: I55760fe01bded0d194f2c56ebc809d555ceedf77

8 years agoDivide huge SensorService files into managable pieces
Peng Xu [Fri, 11 Dec 2015 02:02:41 +0000 (18:02 -0800)]
Divide huge SensorService files into managable pieces

Splitted SensorService.cpp and SensorService.h into smaller more
manageable pieces with the embedded classes/structs now in individual
files.

Change-Id: I5e75c41b9e0e5c9aff102fe4b0f142c61d1203e2

8 years agoMerge "Add relative-x/y axis for mouse devices."
Jun Mukai [Fri, 18 Dec 2015 23:30:09 +0000 (23:30 +0000)]
Merge "Add relative-x/y axis for mouse devices."

8 years agodumpstate: increase logcat timeout to 40 seconds (DO NOT MERGE) am: 03d61d95fa am...
Mark Salyzyn [Fri, 18 Dec 2015 21:31:22 +0000 (13:31 -0800)]
dumpstate: increase logcat timeout to 40 seconds (DO NOT MERGE) am: 03d61d95fa am: dc482d7711  -s ours
am: b1000f209e  -s ours

* commit 'b1000f209e10ea4710e924c4c97a1990f53dd90e':
  dumpstate: increase logcat timeout to 40 seconds (DO NOT MERGE)

8 years agodumpstate: increase logcat timeout to 40 seconds (DO NOT MERGE) am: 03d61d95fa
Mark Salyzyn [Fri, 18 Dec 2015 21:22:38 +0000 (21:22 +0000)]
dumpstate: increase logcat timeout to 40 seconds (DO NOT MERGE) am: 03d61d95fa
am: dc482d7711  -s ours

* commit 'dc482d771158299d470f017d0bd5ada5db2a5a92':
  dumpstate: increase logcat timeout to 40 seconds (DO NOT MERGE)

8 years agoAdd GLES32 class templates
Pablo Ceballos [Fri, 30 Oct 2015 17:31:22 +0000 (10:31 -0700)]
Add GLES32 class templates

- Added a script that takes the #defines in gl2/3.h and formats them
  for use in the Java template.

- Generated GLES32.spec using glgen2.

- Added full support for void* in glgen. It wasn't previously
  necessary since the apis were using GLvoid instead.

- Created the GLES32 header stubs. Added stubs for GLES32 functions
  that couldn't be handled by the code generator. Added checks in the
  checks.spec file where appropriate.

- Generated the GLES32 class and JNI.

Change-Id: Ifc8512ed56af75bbc3e7ec2ea1377895201d5325