OSDN Git Service

android-x86/frameworks-native.git
7 years agoMerge "Disable in-place vdex update" am: d9917d78a0 am: 2521871a1f am: b8e9326fd8
David Sehr [Wed, 31 May 2017 22:17:54 +0000 (22:17 +0000)]
Merge "Disable in-place vdex update" am: d9917d78a0 am: 2521871a1f am: b8e9326fd8
am: 8425a02d5c

Change-Id: I7ca8d02b2e43ae1a2d69aeb0551f7297f6da83ee

7 years agoMerge "Disable in-place vdex update" am: d9917d78a0 am: 2521871a1f
David Sehr [Wed, 31 May 2017 22:15:04 +0000 (22:15 +0000)]
Merge "Disable in-place vdex update" am: d9917d78a0 am: 2521871a1f
am: b8e9326fd8

Change-Id: Ia2297f8cc31830e4e3909580f3af45dfb96e5901

7 years agoMerge "Disable in-place vdex update" am: d9917d78a0
David Sehr [Wed, 31 May 2017 22:10:23 +0000 (22:10 +0000)]
Merge "Disable in-place vdex update" am: d9917d78a0
am: 2521871a1f

Change-Id: I9c4d606bcb054ad96b28a4da76a7ddf241d8687b

7 years agoMerge "Disable in-place vdex update"
David Sehr [Wed, 31 May 2017 22:08:21 +0000 (22:08 +0000)]
Merge "Disable in-place vdex update"
am: d9917d78a0

Change-Id: Ieb4a1235dc99cac32b6fb441ee98e0cbdf4b7661

7 years agoMerge "Disable in-place vdex update"
Treehugger Robot [Wed, 31 May 2017 22:00:43 +0000 (22:00 +0000)]
Merge "Disable in-place vdex update"

7 years agoMerge "Various fixes for wide color gamut rendering"
Romain Guy [Wed, 31 May 2017 21:54:41 +0000 (21:54 +0000)]
Merge "Various fixes for wide color gamut rendering"

7 years agoVarious fixes for wide color gamut rendering
Romain Guy [Sat, 27 May 2017 00:57:05 +0000 (17:57 -0700)]
Various fixes for wide color gamut rendering

This CL addresses multiple issues:
- A logic issue where the wide gamut color mode was not set at the right time
- The presence of scRGB surfaces was not detected
- The sRGB to Display P3 matrix was transposed
- The color matrix was applied in gamma space instead of linear space*
- The GPU code path was doing a division by w for each pixel when a
  color transform is set, which shouldn't be necessary (the code now
  checks that the matrix has the expected form)
- Incorrect comment
- Dead code in Description.cpp (mDirtyUniforms was never used)
- Screenshots were taken using the last render engine configuration,
  the configuration is now properly set every time

* This can in theory cause a discrepancy when we switch to/from hardware
  composer mode. I was not able to create a visible discrepancy in practice
  using Night Light, color blindness compensation modes and color inversion.
  More importantly, how/where the hardware composer applies the color
  transform is not specified: it could be gamma or linear space, before or
  after the hardware color LUT. We'll address this in a future CL if needed.
  In addition, this code assumes that fp16 surfaces are encoded in non-linear
  space (scRGB-nl instead of scRGB) but we do not have EGL/Vulkan extensions
  to specify this behavior. We need to address this as well

This CL also fixes potential divides by 0 in the GPU code path.

Bug: 29940137
Test: CtsUiRenderingTestsCases, CtsGraphicsTestCases

Change-Id: I9ae15850f8b9d48c39ebc2724ca3da202be9b008

7 years agoMerge "Consistent "low storage" behavior." into oc-dev am: 1e4088fc68
Jeff Sharkey [Wed, 31 May 2017 15:08:21 +0000 (15:08 +0000)]
Merge "Consistent "low storage" behavior." into oc-dev am: 1e4088fc68
am: 666ff7278b

Change-Id: Ifeab043cb89ce953845a6db67cde1100ec7f715d

7 years agoMerge "Consistent "low storage" behavior." into oc-dev
Jeff Sharkey [Wed, 31 May 2017 14:49:31 +0000 (14:49 +0000)]
Merge "Consistent "low storage" behavior." into oc-dev
am: 1e4088fc68

Change-Id: I8a2328710d4bc770badfcc9778534fccaaf91405

7 years agoMerge "Consistent "low storage" behavior." into oc-dev
Jeff Sharkey [Wed, 31 May 2017 14:18:24 +0000 (14:18 +0000)]
Merge "Consistent "low storage" behavior." into oc-dev

7 years agoMerge "dumpstate: Track debuggerd API changes." am: ccc5db441b am: 62b9a75c4c am...
Narayan Kamath [Wed, 31 May 2017 12:40:45 +0000 (12:40 +0000)]
Merge "dumpstate: Track debuggerd API changes." am: ccc5db441b am: 62b9a75c4c am: ea3784b686
am: aece2afa84

Change-Id: I4c7780e8f1bcea90a41d0b5b720292602caa8d55

7 years agoMerge "dumpstate: Track debuggerd API changes." am: ccc5db441b am: 62b9a75c4c
Narayan Kamath [Wed, 31 May 2017 12:29:12 +0000 (12:29 +0000)]
Merge "dumpstate: Track debuggerd API changes." am: ccc5db441b am: 62b9a75c4c
am: ea3784b686

Change-Id: I82e5974f96a2a617d31a63813dac22035532c59b

7 years agoMerge "dumpstate: Track debuggerd API changes." am: ccc5db441b
Narayan Kamath [Wed, 31 May 2017 12:16:32 +0000 (12:16 +0000)]
Merge "dumpstate: Track debuggerd API changes." am: ccc5db441b
am: 62b9a75c4c

Change-Id: Id1320f3373a4bbcdcfd945ea9299bd8a805adc12

7 years agoMerge "dumpstate: Track debuggerd API changes."
Narayan Kamath [Wed, 31 May 2017 12:06:51 +0000 (12:06 +0000)]
Merge "dumpstate: Track debuggerd API changes."
am: ccc5db441b

Change-Id: I05214262704a572a4645df427a76227f8d9eeac4

7 years agoMerge "dumpstate: Track debuggerd API changes."
Narayan Kamath [Wed, 31 May 2017 11:55:47 +0000 (11:55 +0000)]
Merge "dumpstate: Track debuggerd API changes."

7 years agodumpstate: Track debuggerd API changes.
Narayan Kamath [Wed, 31 May 2017 09:33:28 +0000 (10:33 +0100)]
dumpstate: Track debuggerd API changes.

dump_backtrace_to_file_timeout now needs an additional argument
that specifies the dump type.

Bug: 36024548
Test: make; manual bug report capture
Change-Id: I6ce3c172dd571e296d9ced9c576b88ea487b2fbb

7 years agoMerge "EGL: Do not look up default namespace when sphal is defined" into oc-dev am...
Justin Yun [Wed, 31 May 2017 07:13:47 +0000 (07:13 +0000)]
Merge "EGL: Do not look up default namespace when sphal is defined" into oc-dev am: 74a4049e5a
am: 63a869d221  -s ours

Change-Id: I8bf781dbb9896b6b3f8c3fd367667fa4aa7e7a65

7 years agoMerge "EGL: Do not look up default namespace when sphal is defined" into oc-dev
Justin Yun [Wed, 31 May 2017 07:09:16 +0000 (07:09 +0000)]
Merge "EGL: Do not look up default namespace when sphal is defined" into oc-dev
am: 74a4049e5a

Change-Id: I34fa6f48116712bb44db77923fcedcd4f93b3781

7 years agoMerge "EGL: Do not look up default namespace when sphal is defined" into oc-dev
TreeHugger Robot [Wed, 31 May 2017 07:01:38 +0000 (07:01 +0000)]
Merge "EGL: Do not look up default namespace when sphal is defined" into oc-dev

7 years agoMerge "Mark libui as vendor_available" into oc-dev am: 375a5b563c
Jayant Chowdhary [Wed, 31 May 2017 04:12:11 +0000 (04:12 +0000)]
Merge "Mark libui as vendor_available" into oc-dev am: 375a5b563c
am: 849d806329  -s ours

Change-Id: Icfb037b98d26bdc582fa3432a91ccf80ef2decdd

7 years agoMerge "Mark libui as vendor_available" into oc-dev
Jayant Chowdhary [Wed, 31 May 2017 04:05:02 +0000 (04:05 +0000)]
Merge "Mark libui as vendor_available" into oc-dev
am: 375a5b563c

Change-Id: I170d012b8b13b914c2d228dfa3255b23cd5d0900

7 years agoMerge "Mark libui as vendor_available" into oc-dev
Jayant Chowdhary [Wed, 31 May 2017 03:59:44 +0000 (03:59 +0000)]
Merge "Mark libui as vendor_available" into oc-dev

7 years agoMerge "add missing lib dependency to libvndksupport" into oc-dev am: 09e388ffeb
Jiyong Park [Wed, 31 May 2017 00:46:37 +0000 (00:46 +0000)]
Merge "add missing lib dependency to libvndksupport" into oc-dev am: 09e388ffeb
am: fde18d5e75

Change-Id: Ie32cadf7fd42babdabd1566412a4ac82fe6d7849

7 years agoMerge "add missing lib dependency to libvndksupport" into oc-dev
Jiyong Park [Wed, 31 May 2017 00:36:08 +0000 (00:36 +0000)]
Merge "add missing lib dependency to libvndksupport" into oc-dev
am: 09e388ffeb

Change-Id: I2030be9640c8fc01416208f1e114719b8784c6ad

7 years agoMerge "add missing lib dependency to libvndksupport" into oc-dev
TreeHugger Robot [Wed, 31 May 2017 00:26:11 +0000 (00:26 +0000)]
Merge "add missing lib dependency to libvndksupport" into oc-dev

7 years agoConsistent "low storage" behavior.
Jeff Sharkey [Tue, 30 May 2017 20:38:42 +0000 (14:38 -0600)]
Consistent "low storage" behavior.

When freeing cached data, the caller can now provide a "reserved"
size which we won't clear cached data from.

Bug: 38008706
Test: cts-tradefed run commandAndExit cts-dev -m CtsJobSchedulerTestCases -t android.jobscheduler.cts.StorageConstraintTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Change-Id: Ieb91b3e5345a950d4785fd7915f520f0a68a567a

7 years agoadd missing lib dependency to libvndksupport
Jiyong Park [Sat, 27 May 2017 06:29:41 +0000 (15:29 +0900)]
add missing lib dependency to libvndksupport

libutils is now depending on libvndksupport. So any client that
statically links to libutils needs to link against libvndksuppor as
well.

Bug: 62084107
Test: start an app, run 'adb shell atrace gfx --stream'. atrace from the
graphics driver are visible.

Change-Id: I98917dc92a1b8bde52e69e1923a1c1530a088bd6

7 years agoDisable in-place vdex update
David Sehr [Fri, 26 May 2017 23:32:55 +0000 (16:32 -0700)]
Disable in-place vdex update

Vdex files can be corrupted by dexlayout or by previously dexlayout-ed
files being recompiled if they are used as both input and output.
Disable this feature.

Bug: 38113240
Test: OTA and dexopt
Change-Id: Iee2d9a6c1ba8cddda25290f68f50649d5288d588

7 years agouse 64-bits usage bits almost everywhere
Mathias Agopian [Mon, 22 May 2017 21:21:00 +0000 (14:21 -0700)]
use 64-bits usage bits almost everywhere

Revert "Revert "use 64-bits usage bits almost everywhere""
This reverts commit 1671de0068de40f57288628d4b757a1c84962a62.

Test: manual, build
Bug: 33350696
Bug: 38466700
Change-Id: Ia2f51b97137dba754b1938dfb1e235f4babc8a88

7 years agoMerge "Add pids for processes that dlopens implementations" am: 2410cd179d am: 977066...
Yifan Hong [Fri, 26 May 2017 20:32:54 +0000 (20:32 +0000)]
Merge "Add pids for processes that dlopens implementations" am: 2410cd179d am: 977066464e am: 479f9d0c7b
am: 564a599e94

Change-Id: I0af1a0c6c899a7d6344977b73d2457b01d1d2ceb

7 years agoMerge "Add pids for processes that dlopens implementations" am: 2410cd179d am: 977066464e
Yifan Hong [Fri, 26 May 2017 20:29:27 +0000 (20:29 +0000)]
Merge "Add pids for processes that dlopens implementations" am: 2410cd179d am: 977066464e
am: 479f9d0c7b

Change-Id: I896d198a1680ad1a5020a712f925db3c3dfc2084

7 years agoMerge "Add pids for processes that dlopens implementations" am: 2410cd179d
Yifan Hong [Fri, 26 May 2017 20:27:08 +0000 (20:27 +0000)]
Merge "Add pids for processes that dlopens implementations" am: 2410cd179d
am: 977066464e

Change-Id: Ib2b23816c0032bc6303380f05ee1bb4b45de7f43

7 years agoMerge "Cleanup dvr api headers for exporting"
TreeHugger Robot [Fri, 26 May 2017 20:26:05 +0000 (20:26 +0000)]
Merge "Cleanup dvr api headers for exporting"

7 years agoMerge "Add pids for processes that dlopens implementations"
Yifan Hong [Fri, 26 May 2017 20:25:27 +0000 (20:25 +0000)]
Merge "Add pids for processes that dlopens implementations"
am: 2410cd179d

Change-Id: Ifd75354a22ef848b28113e2d1d1ccf00baf1e976

7 years agoMerge "Add pids for processes that dlopens implementations"
Treehugger Robot [Fri, 26 May 2017 20:21:26 +0000 (20:21 +0000)]
Merge "Add pids for processes that dlopens implementations"

7 years agoMerge "Playback activity monitoring: add player types" into oc-dev am: 8caf56ef7c
Jean-Michel Trivi [Fri, 26 May 2017 20:13:43 +0000 (20:13 +0000)]
Merge "Playback activity monitoring: add player types" into oc-dev am: 8caf56ef7c
am: 883d667c42

Change-Id: Ifb03e4fbfce459cbe6ad245f3557b2267591cbbc

7 years agoMerge "Playback activity monitoring: add player types" into oc-dev
Jean-Michel Trivi [Fri, 26 May 2017 20:09:55 +0000 (20:09 +0000)]
Merge "Playback activity monitoring: add player types" into oc-dev
am: 8caf56ef7c

Change-Id: Iae04c321f57e33019861ebf60ea29256b0d63e29

7 years agoMerge "Playback activity monitoring: add player types" into oc-dev
TreeHugger Robot [Fri, 26 May 2017 20:05:48 +0000 (20:05 +0000)]
Merge "Playback activity monitoring: add player types" into oc-dev

7 years agoMerge "atrace: trace binder_set_priority."
Martijn Coenen [Fri, 26 May 2017 19:42:56 +0000 (19:42 +0000)]
Merge "atrace: trace binder_set_priority."

7 years agoMerge "Remove GLES2Renderer dependency on config stores"
TreeHugger Robot [Fri, 26 May 2017 19:12:17 +0000 (19:12 +0000)]
Merge "Remove GLES2Renderer dependency on config stores"

7 years agoCleanup dvr api headers for exporting
John Bates [Fri, 26 May 2017 16:00:08 +0000 (09:00 -0700)]
Cleanup dvr api headers for exporting

Bug: b/38379392
Test: ran generate_dvr_api.py
Change-Id: I8f07e0c28da77df7b1beccfad427f445ad59e64a

7 years agoAdd pids for processes that dlopens implementations
Yifan Hong [Thu, 25 May 2017 02:45:02 +0000 (19:45 -0700)]
Add pids for processes that dlopens implementations

Test: lshal -itrpc
Test: lshal
Test: lshal --init-vintf
Test: lshal_test

Bug: 37639822
Change-Id: Ia415e5f8dbcd10f24e9a5cfdd591eb829a1da89e

7 years agoMerge "Move virtual touchpad IDC file to be shared across devices."
TreeHugger Robot [Fri, 26 May 2017 16:59:45 +0000 (16:59 +0000)]
Merge "Move virtual touchpad IDC file to be shared across devices."

7 years agoatrace: trace binder_set_priority.
Martijn Coenen [Fri, 26 May 2017 16:50:55 +0000 (09:50 -0700)]
atrace: trace binder_set_priority.

Useful to debug priority inheritance issues.

Test: binder_set_priority events traced
Change-Id: I89d6ad463aa670ce9b838cb051e58d58e80f07f6

7 years agoMerge "Delete vdex file in delete_odex." am: 99dedeb690 am: f6b79dd073 am: 6dc664460d
Nicolas Geoffray [Fri, 26 May 2017 10:40:54 +0000 (10:40 +0000)]
Merge "Delete vdex file in delete_odex." am: 99dedeb690 am: f6b79dd073 am: 6dc664460d
am: 362e56e41a

Change-Id: I7594ff3af6fc72e4d155afab41ef3ae4cb1b60ef

7 years agoMerge "Delete vdex file in delete_odex." am: 99dedeb690 am: f6b79dd073
Nicolas Geoffray [Fri, 26 May 2017 10:34:47 +0000 (10:34 +0000)]
Merge "Delete vdex file in delete_odex." am: 99dedeb690 am: f6b79dd073
am: 6dc664460d

Change-Id: I0116a003cd1985e15d2beb9a60a4262549647774

7 years agoMerge "Delete vdex file in delete_odex." am: 99dedeb690
Nicolas Geoffray [Fri, 26 May 2017 10:29:45 +0000 (10:29 +0000)]
Merge "Delete vdex file in delete_odex." am: 99dedeb690
am: f6b79dd073

Change-Id: I28ec2908c795bf3e88960732d69e2945b1eac422

7 years agoMerge "Delete vdex file in delete_odex."
Nicolas Geoffray [Fri, 26 May 2017 10:28:16 +0000 (10:28 +0000)]
Merge "Delete vdex file in delete_odex."
am: 99dedeb690

Change-Id: Idccc7fa241cdbb72b0ac5672978350a269ac8378

7 years agoMerge "Delete vdex file in delete_odex."
Nicolas Geoffray [Fri, 26 May 2017 10:21:25 +0000 (10:21 +0000)]
Merge "Delete vdex file in delete_odex."

7 years agoDelete vdex file in delete_odex.
Nicolas Geoffray [Thu, 25 May 2017 12:58:06 +0000 (13:58 +0100)]
Delete vdex file in delete_odex.

bug: 38513395
Test: unfortunately no unit test here, so after discussing
      with agampe@ just relied on build.

Change-Id: I305ddaadc813673fb55473f5e8ca357f39cf98f3

7 years agoEGL: Do not look up default namespace when sphal is defined
Justin Yun [Mon, 22 May 2017 06:13:40 +0000 (15:13 +0900)]
EGL: Do not look up default namespace when sphal is defined

If sphal name space exists, try to load drivers from sphal.
This patch stops loading the driver if it fails to find the driver
from sphal, instead of falling back to the default namespace.

Bug: 38435840
Test: sailfish builds and boots
Change-Id: Ib8ba73f57aa25431c4a2efe7c61a3699237cc3d2
Merged-In: Ib8ba73f57aa25431c4a2efe7c61a3699237cc3d2
(cherry picked from commit b732030e847e74f00ecd37ff15a36b103efd97b9)

7 years agoMerge "EGL: Do not look up default namespace when sphal is defined"
TreeHugger Robot [Fri, 26 May 2017 02:07:46 +0000 (02:07 +0000)]
Merge "EGL: Do not look up default namespace when sphal is defined"

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 agoPlayback activity monitoring: add player types
Jean-Michel Trivi [Thu, 25 May 2017 22:17:39 +0000 (15:17 -0700)]
Playback activity monitoring: add player types

Add player types for playback activity monitoring:
 - AAudio
 - hardware sources
 - proxy for external players

Test: n/a
Bug: 62027849
Change-Id: I17f4879dd79cc89eb7db373754a79e2e38c97457

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 agoMove virtual touchpad IDC file to be shared across devices.
Kevin Schoedel [Thu, 25 May 2017 19:59:19 +0000 (15:59 -0400)]
Move virtual touchpad IDC file to be shared across devices.

Bug: 62066423
Test: observe IDC appears in targets
Change-Id: Ic990cccbcf8f4f7862ff0a9a59fa76a90800f339

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 agoEGL: Do not look up default namespace when sphal is defined
Justin Yun [Mon, 22 May 2017 06:13:40 +0000 (15:13 +0900)]
EGL: Do not look up default namespace when sphal is defined

If sphal name space exists, try to load drivers from sphal.
This patch stops loading the driver if it fails to find the driver
from sphal, instead of falling back to the default namespace.

Bug: 38435840
Test: sailfish builds and boots
Change-Id: Ib8ba73f57aa25431c4a2efe7c61a3699237cc3d2