OSDN Git Service

android-x86/frameworks-native.git
7 years agoatrace: Set saved_cmdline_size to 8192
Joel Fernandes [Fri, 2 Jun 2017 17:19:28 +0000 (10:19 -0700)]
atrace: Set saved_cmdline_size to 8192

This increases the size of the table tracking comms and pids and
prevents overwriting them easily.

Bug: 38167231

Change-Id: I69b9000e4f9d0c2c7969efd38e02d8c1bffdad5c
Signed-off-by: Joel Fernandes <joelaf@google.com>
7 years agoMerge "Add thread usage output to lshal." am: 4a3e0a9767 am: 9a130151a2 am: de314f2df2
Steven Moreland [Thu, 25 May 2017 23:25:46 +0000 (23:25 +0000)]
Merge "Add thread usage output to lshal." am: 4a3e0a9767 am: 9a130151a2 am: de314f2df2
am: 42f3d38f35

Change-Id: I5160ee0c8a8f309ffab6a854c9d03c67a88b84fe

7 years agoMerge "Add thread usage output to lshal." am: 4a3e0a9767 am: 9a130151a2
Steven Moreland [Thu, 25 May 2017 23:17:52 +0000 (23:17 +0000)]
Merge "Add thread usage output to lshal." am: 4a3e0a9767 am: 9a130151a2
am: de314f2df2

Change-Id: I321f393d2fc7252ea6d009c743fe797b083d718a

7 years agoMerge "Add thread usage output to lshal." am: 4a3e0a9767
Steven Moreland [Thu, 25 May 2017 23:08:20 +0000 (23:08 +0000)]
Merge "Add thread usage output to lshal." am: 4a3e0a9767
am: 9a130151a2

Change-Id: I8045623cc47804816df7304cabea1633a18aeada

7 years agoMerge "Add thread usage output to lshal."
Steven Moreland [Thu, 25 May 2017 22:58:30 +0000 (22:58 +0000)]
Merge "Add thread usage output to lshal."
am: 4a3e0a9767

Change-Id: Ie0a5eb6b3f1c502e9cf6c70e10354ce133985348

7 years agoMerge "Add thread usage output to lshal."
Treehugger Robot [Thu, 25 May 2017 22:42:24 +0000 (22:42 +0000)]
Merge "Add thread usage output to lshal."

7 years agoMerge "Newly create idmap only when it is stale" into oc-dev am: 4bf5dcce19
Jaekyun Seok [Thu, 25 May 2017 22:18:10 +0000 (22:18 +0000)]
Merge "Newly create idmap only when it is stale" into oc-dev am: 4bf5dcce19
am: 951a77b675

Change-Id: Iaf155251ac7d62b236f356fd0f66f1f621038b9c

7 years agoMerge "Newly create idmap only when it is stale" into oc-dev
Jaekyun Seok [Thu, 25 May 2017 22:06:03 +0000 (22:06 +0000)]
Merge "Newly create idmap only when it is stale" into oc-dev
am: 4bf5dcce19

Change-Id: Ibafdbb1406b822a7e7f50ca229b8aefe9981b547

7 years agoMerge "Newly create idmap only when it is stale" into oc-dev
TreeHugger Robot [Thu, 25 May 2017 21:50:52 +0000 (21:50 +0000)]
Merge "Newly create idmap only when it is stale" into oc-dev

7 years agoMerge "DvrBufferQueue: Add basic event callbacks"
Jiwen Cai [Thu, 25 May 2017 21:42:42 +0000 (21:42 +0000)]
Merge "DvrBufferQueue: Add basic event callbacks"

7 years agolibgui: fix BQ buffer allocation error checking am: feec3b1a49
Chia-I Wu [Thu, 25 May 2017 21:32:25 +0000 (21:32 +0000)]
libgui: fix BQ buffer allocation error checking am: feec3b1a49
am: cc09fccf62

Change-Id: I5203cd613cb764a8d72d98532d43ec7826f79c57

7 years agolibgui: fix BQ buffer allocation error checking
Chia-I Wu [Thu, 25 May 2017 21:27:21 +0000 (21:27 +0000)]
libgui: fix BQ buffer allocation error checking
am: feec3b1a49

Change-Id: Ie63b629a8eb0f4c08eadbcf3a40ceaf8346a71ba

7 years agoMerge "sensors: pass sensor handle along with injected event"
Alexey Polyudov [Thu, 25 May 2017 21:00:18 +0000 (21:00 +0000)]
Merge "sensors: pass sensor handle along with injected event"

7 years agoDvrBufferQueue: Add basic event callbacks
Jiwen 'Steve' Cai [Wed, 24 May 2017 18:50:11 +0000 (11:50 -0700)]
DvrBufferQueue: Add basic event callbacks

Currently, there is no guarantee of thread safty and on which thread
those callbacks are going to be fired.

Three new DVR APIs introduced:
1/ dvrReadBufferQueueSetBufferAvailableCallback
2/ dvrReadBufferQueueSetBufferRemovedCallback
3/ dvrReadBufferQueueHandleEvents

Bug: 36748012
Test: buffer_hub_queue-test, dvr_api-test
Change-Id: I79900c9d205f1808b02400b379c79adb366a1104

7 years agolibgui: fix BQ buffer allocation error checking
Chia-I Wu [Thu, 25 May 2017 16:34:56 +0000 (09:34 -0700)]
libgui: fix BQ buffer allocation error checking

The error path was broken since we moved away from
IGraphicBufferAlloc.

Bug: 37956614
Test: simulate buffer allocation failures
Change-Id: I1e1ec840fafd3075b84126c6dbf6194568175a42

7 years agoMerge "Add MDSS tracing to gfx category"
John Reck [Thu, 25 May 2017 17:18:01 +0000 (17:18 +0000)]
Merge "Add MDSS tracing to gfx category"

7 years agoAdd correct header paths to dvr_api.h
John Bates [Wed, 24 May 2017 18:33:54 +0000 (11:33 -0700)]
Add correct header paths to dvr_api.h

Allows export script to find them for documentation insertion.

Also rename the included dvr_hardware_composer_defs file to
_types to match the copy that is in google3.

Bug: b/38379392
Test: ran export script
Change-Id: I9c9fe40bc1e6cc07739997f143fa036e713487c6

7 years agosensors: pass sensor handle along with injected event
Alexey Polyudov [Wed, 24 May 2017 02:54:04 +0000 (19:54 -0700)]
sensors: pass sensor handle along with injected event

Change-Id: Ifa5825b08d5b809865f9066c7a763202cebb987f

7 years agoMerge "Expose WriteBufferQueueResizeBuffer"
TreeHugger Robot [Thu, 25 May 2017 02:19:38 +0000 (02:19 +0000)]
Merge "Expose WriteBufferQueueResizeBuffer"

7 years agoMerge "BufferHubQueue rename DetachBuffer to RemoveBuffer"
TreeHugger Robot [Thu, 25 May 2017 02:11:57 +0000 (02:11 +0000)]
Merge "BufferHubQueue rename DetachBuffer to RemoveBuffer"

7 years agoMerge "SF: Call makeCurrent after presenting each display" am: 7bb8779a79 am: 5079756...
Season Li [Thu, 25 May 2017 01:24:03 +0000 (01:24 +0000)]
Merge "SF: Call makeCurrent after presenting each display" am: 7bb8779a79 am: 5079756e8e am: 53df8fac8b
am: 3d69648490

Change-Id: Idba176720c4508e0b678a0a38475815cceb66293

7 years agoMerge "SF: Call makeCurrent after presenting each display" am: 7bb8779a79 am: 5079756e8e
Season Li [Thu, 25 May 2017 01:18:05 +0000 (01:18 +0000)]
Merge "SF: Call makeCurrent after presenting each display" am: 7bb8779a79 am: 5079756e8e
am: 53df8fac8b

Change-Id: I9860424ffa54807eccc6ef7ab4dbba99ed18d46a

7 years agoMerge "SF: Call makeCurrent after presenting each display" am: 7bb8779a79
Season Li [Thu, 25 May 2017 01:12:03 +0000 (01:12 +0000)]
Merge "SF: Call makeCurrent after presenting each display" am: 7bb8779a79
am: 5079756e8e

Change-Id: I6075c26cb0cd73de62f1607712c720e2d2a6248c

7 years agoMerge "SF: Call makeCurrent after presenting each display"
Season Li [Thu, 25 May 2017 01:06:02 +0000 (01:06 +0000)]
Merge "SF: Call makeCurrent after presenting each display"
am: 7bb8779a79

Change-Id: If22c0369b968a72dcbac8b97061f5555c18e8432

7 years agoMerge "SF: Call makeCurrent after presenting each display"
Treehugger Robot [Thu, 25 May 2017 00:59:58 +0000 (00:59 +0000)]
Merge "SF: Call makeCurrent after presenting each display"

7 years agoAdd MDSS tracing to gfx category
John Reck [Wed, 24 May 2017 23:09:21 +0000 (16:09 -0700)]
Add MDSS tracing to gfx category

Bug: 62039896
Test: Ran systrace, verified mdss shows up with just gfx tag
Change-Id: Icc2d343fecbec9a63b97adae857208ca6a98f607

7 years agoExpose WriteBufferQueueResizeBuffer
Hendrik Wagenaar [Wed, 24 May 2017 22:35:33 +0000 (15:35 -0700)]
Expose WriteBufferQueueResizeBuffer

* We need a way to resize the queue in vrcore

Bug: 38324405
Test: None
Change-Id: I4041c3a789c3f72a0e885b518ee2b06f846ad800

7 years agoMerge "Delete SurfaceFlinger BYPASS codepath" into oc-dev am: d8ac4fd17a
Fabien Sanglard [Wed, 24 May 2017 22:29:29 +0000 (22:29 +0000)]
Merge "Delete SurfaceFlinger BYPASS codepath" into oc-dev am: d8ac4fd17a
am: 958d55d139

Change-Id: Ia0cf425cd0833f18818ca3919e4ecb9a5334fc5a

7 years agoMerge "Delete SurfaceFlinger BYPASS codepath" into oc-dev
Fabien Sanglard [Wed, 24 May 2017 22:19:31 +0000 (22:19 +0000)]
Merge "Delete SurfaceFlinger BYPASS codepath" into oc-dev
am: d8ac4fd17a

Change-Id: Ieae1107f4da7b4a3eaa489175bda4bdb62e9d245

7 years agoMerge "Delete SurfaceFlinger BYPASS codepath" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 22:13:36 +0000 (22:13 +0000)]
Merge "Delete SurfaceFlinger BYPASS codepath" into oc-dev

7 years agoAdd thread usage output to lshal.
Steven Moreland [Wed, 24 May 2017 18:23:08 +0000 (11:23 -0700)]
Add thread usage output to lshal.

This output shows how many threads are in use at a give time.

Test: lshal, manual
Bug: 35099601
Change-Id: I3a22bb131b828cdd77e73e7810229d9c68a496d3

7 years agoBufferHubQueue rename DetachBuffer to RemoveBuffer
Jiwen 'Steve' Cai [Tue, 23 May 2017 18:15:33 +0000 (11:15 -0700)]
BufferHubQueue rename DetachBuffer to RemoveBuffer

Test: buffer_hub_queue_producer-test, buffer_hub_queue-test, dvr_api-test
Bug: 37164481
Change-Id: I05ba0f9f96cf60b64cb8b76482301440d40aa82a

7 years agoMerge "DvrWriteBufferQueue: support buffer resizing"
TreeHugger Robot [Wed, 24 May 2017 19:19:37 +0000 (19:19 +0000)]
Merge "DvrWriteBufferQueue: support buffer resizing"

7 years agoMerge "libgui: Add test for OOB slot number in dequeue" into oc-dev am: c1225bdafc
Dan Stoza [Wed, 24 May 2017 18:43:38 +0000 (18:43 +0000)]
Merge "libgui: Add test for OOB slot number in dequeue" into oc-dev am: c1225bdafc
am: 7c26243a3f

Change-Id: Iee252e43d2d1934cb236a86f70207610c546a0e9

7 years agoMerge "libgui: Add test for OOB slot number in dequeue" into oc-dev
Dan Stoza [Wed, 24 May 2017 18:29:16 +0000 (18:29 +0000)]
Merge "libgui: Add test for OOB slot number in dequeue" into oc-dev
am: c1225bdafc

Change-Id: Ia6a3f61406928e3293423a4d8981a4ef594779ca

7 years agoMerge "libgui: Add test for OOB slot number in dequeue" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 18:24:03 +0000 (18:24 +0000)]
Merge "libgui: Add test for OOB slot number in dequeue" into oc-dev

7 years agoMerge "Cleanup dvr_api.h to make it closer to the exported SDK version"
TreeHugger Robot [Wed, 24 May 2017 17:35:02 +0000 (17:35 +0000)]
Merge "Cleanup dvr_api.h to make it closer to the exported SDK version"

7 years agoSF: Call makeCurrent after presenting each display
Season Li [Thu, 4 Aug 2016 21:32:44 +0000 (14:32 -0700)]
SF: Call makeCurrent after presenting each display

HWC can change EGLContext in each present. Restore to
default EGLContext after commiting each display.

Test: see https://android-review.googlesource.com/#/c/372703/
Change-Id: I4abc84fb3d4b74964fabcad5a2568ff01a6c5dbb

7 years agoMerge "Fix a anr bug caused by sendFinishedSignal logical error" am: 77bee3b429 am...
gaoshang [Wed, 24 May 2017 16:45:07 +0000 (16:45 +0000)]
Merge "Fix a anr bug caused by sendFinishedSignal logical error" am: 77bee3b429 am: 9d5bddcded am: 251baedfaf
am: c1f060e6f3

Change-Id: Iecf0de33ee32cd0c86eb36409ea140cd7e382742

7 years agoMerge "Fix a anr bug caused by sendFinishedSignal logical error" am: 77bee3b429 am...
gaoshang [Wed, 24 May 2017 16:23:56 +0000 (16:23 +0000)]
Merge "Fix a anr bug caused by sendFinishedSignal logical error" am: 77bee3b429 am: 9d5bddcded
am: 251baedfaf

Change-Id: I34210fcd813c2118f0fa4814884b4adadacc415f

7 years agoMerge "Fix a anr bug caused by sendFinishedSignal logical error" am: 77bee3b429
gaoshang [Wed, 24 May 2017 16:20:54 +0000 (16:20 +0000)]
Merge "Fix a anr bug caused by sendFinishedSignal logical error" am: 77bee3b429
am: 9d5bddcded

Change-Id: I9ff24304c580bba54afe9b0f4bc4394d513c04cf

7 years agoMerge "Fix a anr bug caused by sendFinishedSignal logical error"
gaoshang [Wed, 24 May 2017 16:18:23 +0000 (16:18 +0000)]
Merge "Fix a anr bug caused by sendFinishedSignal logical error"
am: 77bee3b429

Change-Id: If794d0ec576c91fc8554bf974d7409966b306cba

7 years agoMerge "Fix a anr bug caused by sendFinishedSignal logical error"
Treehugger Robot [Wed, 24 May 2017 16:10:16 +0000 (16:10 +0000)]
Merge "Fix a anr bug caused by sendFinishedSignal logical error"

7 years agoCleanup dvr_api.h to make it closer to the exported SDK version
John Bates [Thu, 18 May 2017 21:21:01 +0000 (14:21 -0700)]
Cleanup dvr_api.h to make it closer to the exported SDK version

Also fixed include guards on dvr_display_manager.h to avoid
collision with display_manager_client.h.

build_sdk.py has been moved to vendor/google_daydream/build.

Bug: b/38379392
Test: Built libdvr, surfaceflinger, ran libdvr/tests
Change-Id: I2807be6d2fd5c2814e86e5d8fae8de181397e4a6

7 years agoMerge "Use IVrComposerClient interface to expose the VR HWC client"
TreeHugger Robot [Wed, 24 May 2017 14:03:58 +0000 (14:03 +0000)]
Merge "Use IVrComposerClient interface to expose the VR HWC client"

7 years agoDelete SurfaceFlinger BYPASS codepath
Fabien Sanglard [Thu, 4 May 2017 18:25:46 +0000 (11:25 -0700)]
Delete SurfaceFlinger BYPASS codepath

Test: AUPT, Manual
Change-Id: I8d6139fbb8a3ec113d7cb973420a5874d3e31030
Merged-Id: I8d6139fbb8a3ec113d7cb973420a5874d3e31030

7 years agoMerge "Move dvr config data from display manager to display service"
TreeHugger Robot [Wed, 24 May 2017 04:41:50 +0000 (04:41 +0000)]
Merge "Move dvr config data from display manager to display service"

7 years agoMerge "Headers of libui is moved to the local directory"
TreeHugger Robot [Wed, 24 May 2017 04:33:32 +0000 (04:33 +0000)]
Merge "Headers of libui is moved to the local directory"

7 years agoMove dvr config data from display manager to display service
Hendrik Wagenaar [Tue, 23 May 2017 21:59:08 +0000 (14:59 -0700)]
Move dvr config data from display manager to display service

* The limitation of creating only one display manager client
  is preventing config data access on multiple threads

Bug: 38269706
Test: DvrDisplayManagerTest::ConfigurationData
Change-Id: Ifc14cf0dd79248aea6367aca70c4e4f8359a25de

7 years agoDvrWriteBufferQueue: support buffer resizing
Jiwen 'Steve' Cai [Mon, 22 May 2017 20:02:33 +0000 (13:02 -0700)]
DvrWriteBufferQueue: support buffer resizing

Currently, the buffer resising is implemented at the C API's
implementation level, i.e. it's a pure client side logic out of the core
BufferHubQueue C++/PDX implementation. The logic is similar to
BufferHubQueueProducer's buffer resizing logic.

Other minor changes:
1/ Use ProducerQueueConfig in DisplaySurface as well, and plumb default
width, height, and format to bufferhubd when a BufferHubQueue is created
through a Display Surface.
2/ Added detailed dvr_buffer_queue comments.
3/ Since we now have more and more logic in dvr_buffer_queue, refactored
Dvr{Read,Write}BufferQueue to be C++-styled class.

Bug: 38324405
Test: buffer_hub_queue_producer-test, buffer_hub_queue-test, dvr_api-test
Change-Id: I7186fc04e84eafda46eca316a94739bb3b5c07ca

7 years agoNewly create idmap only when it is stale
Jaekyun Seok [Wed, 17 May 2017 15:13:44 +0000 (00:13 +0900)]
Newly create idmap only when it is stale

For now, OverlayManagerService calls Installd.idmap() whenever a user
is changed, and then a idmap is re-generated even though there are no
changes on its target apk and overlay apk.
This CL is to avoid such unnecessary re-generation of idmap. Instead
only a group id will be updated when the idmap isn't outdated.

To correctly check staleness of idmap, "--verify" function of idmap is
invented as well.

Test: building succeeded and tested on sailfish.
Bug: 37179531
Change-Id: I874be9765d37bfa6c562c3f39a395040dc6a7d1f

7 years agoMerge "Fix the spammy sensord."
TreeHugger Robot [Tue, 23 May 2017 22:36:33 +0000 (22:36 +0000)]
Merge "Fix the spammy sensord."

7 years agoMerge "Do not set the trace clock in atrace.rc." into oc-dev am: 27ef38ca4c
Carmen Jackson [Tue, 23 May 2017 21:55:37 +0000 (21:55 +0000)]
Merge "Do not set the trace clock in atrace.rc." into oc-dev am: 27ef38ca4c
am: 755b10ddc3

Change-Id: If7306d6a2bd35a392aee6e2a6951781bead7cb78

7 years agoMerge "Do not set the trace clock in atrace.rc." into oc-dev
Carmen Jackson [Tue, 23 May 2017 21:53:06 +0000 (21:53 +0000)]
Merge "Do not set the trace clock in atrace.rc." into oc-dev
am: 27ef38ca4c

Change-Id: I068e661eba9c7e668a6157dc4d704b4b73e8514c

7 years agoMerge "Do not set the trace clock in atrace.rc." into oc-dev
TreeHugger Robot [Tue, 23 May 2017 21:50:28 +0000 (21:50 +0000)]
Merge "Do not set the trace clock in atrace.rc." into oc-dev

7 years agoMerge "Surface: Use buffer id to synchronize slots" into oc-dev am: adf0ad2090
Shuzhen Wang [Tue, 23 May 2017 20:08:07 +0000 (20:08 +0000)]
Merge "Surface: Use buffer id to synchronize slots" into oc-dev am: adf0ad2090
am: fe614d7b37

Change-Id: I24d58521c267ecf576160ac037d433c595c78960

7 years agoMerge "Surface: Use buffer id to synchronize slots" into oc-dev
Shuzhen Wang [Tue, 23 May 2017 19:59:44 +0000 (19:59 +0000)]
Merge "Surface: Use buffer id to synchronize slots" into oc-dev
am: adf0ad2090

Change-Id: I01b8012c941001530678f944670a083e34b7ebc6

7 years agoMerge "Surface: Use buffer id to synchronize slots" into oc-dev
TreeHugger Robot [Tue, 23 May 2017 19:52:17 +0000 (19:52 +0000)]
Merge "Surface: Use buffer id to synchronize slots" into oc-dev

7 years agoDo not set the trace clock in atrace.rc.
Carmen Jackson [Tue, 23 May 2017 18:54:01 +0000 (11:54 -0700)]
Do not set the trace clock in atrace.rc.

This reverts only the atrace.rc change from commit ea826794184be368f65f099ceac4fc31234700f6.
"Set the atrace clock to the best available value: boot, mono, or global."

This change caused a 100+ms regression in boot time. We also confirm that
the clock is set to the correct value when we call atrace, so we will
still see correct behavior after reverting this change.

Bug: 38504158
Test: Manually tested that the trace clock is updated when atrace is
called.
Change-Id: Ifa302694964a4f9fc54db16e7125d5279067bbfd

7 years agoSurface: Use buffer id to synchronize slots
Shuzhen Wang [Tue, 23 May 2017 16:41:54 +0000 (09:41 -0700)]
Surface: Use buffer id to synchronize slots

For the same buffer, GraphicBuffer's buffer_handle_t* may change when
doing attach/detach. Use Id instead.

Test: Call attach/detach, and observe mRemovedBuffers is updated
Bug: 38238747
Change-Id: I6ab1ae5340565f98cb981b7e38c31a4f85190e56

7 years agoMerge "SurfaceFlinger: setGeometryAppliesWithResize crop latching fixes." into oc...
Robert Carr [Tue, 23 May 2017 04:16:50 +0000 (04:16 +0000)]
Merge "SurfaceFlinger: setGeometryAppliesWithResize crop latching fixes." into oc-dev am: e2fad8108e
am: 1ae167bef4

Change-Id: Iba205e1c3fcb0768aa4b418b843c4efaaf1ecc4d

7 years agoMerge "SurfaceFlinger: setGeometryAppliesWithResize crop latching fixes." into oc-dev
Robert Carr [Tue, 23 May 2017 04:14:52 +0000 (04:14 +0000)]
Merge "SurfaceFlinger: setGeometryAppliesWithResize crop latching fixes." into oc-dev
am: e2fad8108e

Change-Id: I3fae02f6d1c03e69f55a05bfdf6229580ae1c4ee

7 years agoMerge "SurfaceFlinger: setGeometryAppliesWithResize crop latching fixes." into oc-dev
TreeHugger Robot [Tue, 23 May 2017 04:09:52 +0000 (04:09 +0000)]
Merge "SurfaceFlinger: setGeometryAppliesWithResize crop latching fixes." into oc-dev

7 years agoFix the spammy sensord.
Okan Arikan [Tue, 23 May 2017 00:11:35 +0000 (17:11 -0700)]
Fix the spammy sensord.

Bug: 38509839
Test: Flash the device and observe the lack of pose service warnings
about missing buffers.

Change-Id: I4bfdd02530427fe147ae78eee1d850bb310a937f

7 years agoOtapreopt: Add some static_asserts am: ef21fd2b6b
Andreas Gampe [Mon, 22 May 2017 23:25:03 +0000 (23:25 +0000)]
Otapreopt: Add some static_asserts am: ef21fd2b6b
am: 904f744dc8

Change-Id: I3247532b1b08bef1f9d18ee4da386d889fcd46d9

7 years agoOtapreopt: Add some static_asserts
Andreas Gampe [Mon, 22 May 2017 23:17:00 +0000 (23:17 +0000)]
Otapreopt: Add some static_asserts
am: ef21fd2b6b

Change-Id: I9f72d69a74a945f3c822401e466028d94330fdb3

7 years agoMerge "Surface: Do not copy back if front and back buffer are identical"
TreeHugger Robot [Mon, 22 May 2017 21:59:36 +0000 (21:59 +0000)]
Merge "Surface: Do not copy back if front and back buffer are identical"

7 years agoOtapreopt: Add some static_asserts
Andreas Gampe [Mon, 22 May 2017 20:36:06 +0000 (13:36 -0700)]
Otapreopt: Add some static_asserts

Add some checks that indicate version issues.

Bug: 38501464
Test: m
Change-Id: Iec2043eda19126166139d7220618d11032e98af0

7 years agoHeaders of libui is moved to the local directory
Jiyong Park [Mon, 22 May 2017 07:21:12 +0000 (16:21 +0900)]
Headers of libui is moved to the local directory

This makes clients of libui to be compiled without depending on global
headers.

Bug: 37731063
Test: sailfish build and boots
Test: 'BOARD_VNDK_VERSION=current m libui' successful
Change-Id: I6546f57964f2103bf3534fb8266fee4fb7d4678a

7 years agoMerge "Revert "use 64-bits usage bits almost everywhere""
Guang Zhu [Mon, 22 May 2017 04:05:18 +0000 (04:05 +0000)]
Merge "Revert "use 64-bits usage bits almost everywhere""

7 years agoRevert "use 64-bits usage bits almost everywhere"
Guang Zhu [Sun, 21 May 2017 22:21:13 +0000 (22:21 +0000)]
Revert "use 64-bits usage bits almost everywhere"

Bug: 38466700

This reverts commit 175d98757d7d9003d4f64756cf4c2b366ba77e97.

Change-Id: I5f08a4ca91511775cd52250d10a0220b258b8368

7 years agoMerge "Add more attribute when creating ProducerQueue"
TreeHugger Robot [Sat, 20 May 2017 04:20:18 +0000 (04:20 +0000)]
Merge "Add more attribute when creating ProducerQueue"

7 years agoAdd more attribute when creating ProducerQueue
Jiwen 'Steve' Cai [Fri, 19 May 2017 06:05:05 +0000 (23:05 -0700)]
Add more attribute when creating ProducerQueue

Add `is_async`, `default_width`, `default_height` and
`default_format`. Note that these attributes are currently treated as
immutable after queue gets created.

Bug: 38324405
Bug: 38430974
Bug: 36724099
Test: buffer_hub_queue_producer-test, buffer_hub_queue-test, dvr_api-test
Change-Id: Id242a15388a1f1457ad89d11336f5643685e8361

7 years agoMerge "vulkan: Translate usage flags before passing to driver" into oc-dev am: b667c05f03
Chris Forbes [Sat, 20 May 2017 02:10:05 +0000 (02:10 +0000)]
Merge "vulkan: Translate usage flags before passing to driver" into oc-dev am: b667c05f03
am: bccd72755f  -s ours

Change-Id: Ib88a78614f5d46b2ee00a459e6b4768804c1b4da

7 years agoFix a anr bug caused by sendFinishedSignal logical error
gaoshang [Wed, 17 May 2017 06:36:46 +0000 (14:36 +0800)]
Fix a anr bug caused by sendFinishedSignal logical error

Because of eliminate multiple benign overflow conditions see:
https://android-review.googlesource.com/#/c/172237/
Changed the do while loop resulting in a logical difference.

When the chainIndex-- to 0, the loop is not run.
It is the most important cycle, it will push head seq to mSeqChains.
If not run, will lead to a batch of seq can not corrected finish.
Eventually leading to the occurrence of anr.

Signed-off-by: gaoshang <gaoshang@xiaomi.com>
Test: Input dispatche process
Bug: 38366215
Change-Id: I87e609dfcb00ac7b8e82c6de789df094e7c25efd

7 years agoMerge "Fix apparent copy/paste error in double test"
TreeHugger Robot [Sat, 20 May 2017 01:34:25 +0000 (01:34 +0000)]
Merge "Fix apparent copy/paste error in double test"

7 years agoMerge "vulkan: Translate usage flags before passing to driver" into oc-dev
Chris Forbes [Sat, 20 May 2017 01:00:31 +0000 (01:00 +0000)]
Merge "vulkan: Translate usage flags before passing to driver" into oc-dev
am: b667c05f03

Change-Id: I974356cbc64e3e52b52bb85defa2f548286ece63

7 years agoMerge "vulkan: Translate usage flags before passing to driver" into oc-dev
Chris Forbes [Sat, 20 May 2017 00:54:29 +0000 (00:54 +0000)]
Merge "vulkan: Translate usage flags before passing to driver" into oc-dev

7 years agoMerge "use 64-bits usage bits almost everywhere"
TreeHugger Robot [Fri, 19 May 2017 23:31:49 +0000 (23:31 +0000)]
Merge "use 64-bits usage bits almost everywhere"

7 years agoMerge "Set the atrace clock to the best available value: boot, mono, or global."...
Carmen Jackson [Fri, 19 May 2017 22:10:21 +0000 (22:10 +0000)]
Merge "Set the atrace clock to the best available value: boot, mono, or global." into oc-dev am: bfe6bf6f31
am: 115d6cd1d7

Change-Id: I11606b0da51b924b2e51b2872cdd652d28e0cc7f

7 years agoMerge "Set the atrace clock to the best available value: boot, mono, or global."...
Carmen Jackson [Fri, 19 May 2017 22:07:47 +0000 (22:07 +0000)]
Merge "Set the atrace clock to the best available value: boot, mono, or global." into oc-dev
am: bfe6bf6f31

Change-Id: I4b198e07cdf1742aff8a771721021ca6ba28f20a

7 years agoMerge "Enable lowmemory trace events in atrace"
Marc Hittinger [Fri, 19 May 2017 22:07:36 +0000 (22:07 +0000)]
Merge "Enable lowmemory trace events in atrace"

7 years agoMerge "Set the atrace clock to the best available value: boot, mono, or global."...
TreeHugger Robot [Fri, 19 May 2017 22:04:11 +0000 (22:04 +0000)]
Merge "Set the atrace clock to the best available value: boot, mono, or global." into oc-dev

7 years agovulkan: Translate usage flags before passing to driver
Chris Forbes [Fri, 19 May 2017 21:47:29 +0000 (14:47 -0700)]
vulkan: Translate usage flags before passing to driver

Previously we just cast the 32bit flags and jammed them in the two
gralloc1 slots. Use the helper which does the correct translation.

(Yes, all these gralloc1isms are going away in favor of a single 64bit
flags field, but Vulkan HALs expect us to implement our side of
ANDROID_native_buffer correctly.)

Test: boot sailfish, run vulkan demo
Bug: 37686587
Change-Id: I806011986e8140d7f608d281798605bd9ca9a86b

7 years agouse 64-bits usage bits almost everywhere
Mathias Agopian [Tue, 16 May 2017 01:00:34 +0000 (18:00 -0700)]
use 64-bits usage bits almost everywhere

Test: manual, build
Bug: 33350696
Change-Id: Ida33c2a902155044651158467bb99d664e958c41

7 years agoEnable lowmemory trace events in atrace
Marc Hittinger [Wed, 17 May 2017 22:57:43 +0000 (15:57 -0700)]
Enable lowmemory trace events in atrace

Enable collection of lowmemory events in atrace as a category. These
events have been available in the kernel, but not exposed via atrace.

Bug: https://github.com/catapult-project/catapult/issues/3557
Test: Run "atrace memreclaim", trigger LMK events.
Change-Id: I92140518796bdda8b302d566d7d78e2129b9839c

7 years agoMerge "Simplify ProducerQueue::Create"
Jiwen Cai [Fri, 19 May 2017 19:57:40 +0000 (19:57 +0000)]
Merge "Simplify ProducerQueue::Create"

7 years agoMerge "DO NOT MERGE Revert "Logging for catching memory issue in Parcel"" into oc...
Michael Wachenschwanz [Fri, 19 May 2017 18:56:34 +0000 (18:56 +0000)]
Merge "DO NOT MERGE Revert "Logging for catching memory issue in Parcel"" into oc-dev am: 1967749cdc
am: f5c2374804

Change-Id: I2785c388d27537ba4c5671b0398ff33628be901d

7 years agoMerge "DO NOT MERGE Revert "Logging for catching memory issue in Parcel"" into oc-dev
Michael Wachenschwanz [Fri, 19 May 2017 18:41:08 +0000 (18:41 +0000)]
Merge "DO NOT MERGE Revert "Logging for catching memory issue in Parcel"" into oc-dev
am: 1967749cdc

Change-Id: I1ef9cd112030f317518c483364a9fb505a40d7bc

7 years agoMerge "DO NOT MERGE Revert "Logging for catching memory issue in Parcel"" into oc-dev
Michael Wachenschwanz [Fri, 19 May 2017 18:27:10 +0000 (18:27 +0000)]
Merge "DO NOT MERGE Revert "Logging for catching memory issue in Parcel"" into oc-dev

7 years agoMerge "Sensor enable/disable added to dvr api"
Luke Song [Fri, 19 May 2017 18:14:32 +0000 (18:14 +0000)]
Merge "Sensor enable/disable added to dvr api"

7 years agoSimplify ProducerQueue::Create
Jiwen 'Steve' Cai [Fri, 19 May 2017 00:03:20 +0000 (17:03 -0700)]
Simplify ProducerQueue::Create

This is a preparation CL that simplifies ProducerQueue's constructor,
Create(), and bufferhub_rpc::CreateProducerQueue prior to introducing
more queue attributes (is_async, width, height, max_capacity, etc) on
creation.

1/ Consolidate and/or remove unnecessary ProducerQueue::Create's
overloading (we had way too many overloads of the create function and I
figured it's awfully painful to introduce new attributes).
2/ Use UsagePolicy in ProducerQueue::Create. Also added default values
for UsagePolicy, so that empty uniform initialization gives us a default
policy. This helps us removing all ProducerQueue::Create overloading on
whether default usage policy is needed.
3/ Move |meta_size_bytes| into ProducerQueueConfig.

Bug: 38430974
Test: buffer_hub_queue_producer-test, buffer_hub_queue-test, dvr_api-test
Change-Id: Ieba9f4d1bce2162bd1e6063989985afc8d014dc7

7 years agoMerge "vulkan: update Vulkan headers to 1.0.49" into oc-dev-plus-aosp
Jesse Hall [Fri, 19 May 2017 16:26:40 +0000 (16:26 +0000)]
Merge "vulkan: update Vulkan headers to 1.0.49" into oc-dev-plus-aosp
am: 6e21ebfd17

Change-Id: I041852defd1a61b990fce326adc7de8c34892119

7 years agoMerge "vulkan: update Vulkan headers to 1.0.49" into oc-dev-plus-aosp
TreeHugger Robot [Fri, 19 May 2017 16:18:25 +0000 (16:18 +0000)]
Merge "vulkan: update Vulkan headers to 1.0.49" into oc-dev-plus-aosp

7 years agoMerge "libvrflinger: Inject USAGE_HW_COMPOSER usage into DirectSurface buffers."
TreeHugger Robot [Fri, 19 May 2017 03:03:47 +0000 (03:03 +0000)]
Merge "libvrflinger: Inject USAGE_HW_COMPOSER usage into DirectSurface buffers."

7 years agovulkan: update Vulkan headers to 1.0.49
Jesse Hall [Fri, 19 May 2017 00:40:25 +0000 (17:40 -0700)]
vulkan: update Vulkan headers to 1.0.49

Key changes since 1.0.46:
* Add VK_KHR_get_surface_capabilities2
* Add VK_KHR_shared_presentable_image
* Add VkObjectType enumeration to core API

The extensions had already been added manually in our internal tree,
so this just moves the existing declarations to the same place as in
the public header and fixes one small difference.

Test: dEQP-VK.wsi.android.surface.query_capabilities2
      dEQP-VK.wsi.android.shared_presentable_image.*
Change-Id: I1e4bd5d19f36af0d4e878b3971145a1ae1281dd6

7 years agoMerge changes from topic 'move-hwc2on1' into oc-dev am: df8ca52d13
Logan Chien [Fri, 19 May 2017 02:24:43 +0000 (02:24 +0000)]
Merge changes from topic 'move-hwc2on1' into oc-dev am: df8ca52d13
am: 4edd1b49af  -s ours

Change-Id: I0bc5acd7fbf8c5e37b54bc30740e6a1e3ad966f0

7 years agoMerge changes from topic 'move-hwc2on1' into oc-dev
Logan Chien [Fri, 19 May 2017 02:20:15 +0000 (02:20 +0000)]
Merge changes from topic 'move-hwc2on1' into oc-dev
am: df8ca52d13

Change-Id: I54fd4fe69160540a0f0eae3a9b6aa7a377448cd4

7 years agoMerge changes from topic 'move-hwc2on1' into oc-dev
Logan Chien [Fri, 19 May 2017 02:14:23 +0000 (02:14 +0000)]
Merge changes from topic 'move-hwc2on1' into oc-dev

* changes:
  libhwc2on1adapter: Move to vendor partition
  Remove stale dependency to libhwc2on1adaptor.so.

7 years agoMerge "Delete secondary dex profiles during reconciliation" into oc-dev am: 74a812c587
Calin Juravle [Fri, 19 May 2017 01:02:36 +0000 (01:02 +0000)]
Merge "Delete secondary dex profiles during reconciliation" into oc-dev am: 74a812c587
am: 07d92974fa

Change-Id: I2ac3257a90c708406da4220b700cf6bd4ecd5fc6