OSDN Git Service

android-x86/frameworks-native.git
7 years agoMerge "Break dependency of libui on libbinder"
Mathias Agopian [Thu, 9 Feb 2017 23:01:35 +0000 (23:01 +0000)]
Merge "Break dependency of libui on libbinder"

7 years agoMerge "VR: Update VR HWC and VR WM to use GrallocMapper"
TreeHugger Robot [Thu, 9 Feb 2017 22:43:30 +0000 (22:43 +0000)]
Merge "VR: Update VR HWC and VR WM to use GrallocMapper"

7 years agoMerge "Revert "sensorservice: Remove ENABLE_TREBLE flag.""
Ashutosh Joshi [Thu, 9 Feb 2017 22:28:17 +0000 (22:28 +0000)]
Merge "Revert "sensorservice: Remove ENABLE_TREBLE flag.""

7 years agoMerge "Fix bug in isEquivalent()"
TreeHugger Robot [Thu, 9 Feb 2017 22:27:23 +0000 (22:27 +0000)]
Merge "Fix bug in isEquivalent()"

7 years agoRevert "sensorservice: Remove ENABLE_TREBLE flag."
Ashutosh Joshi [Thu, 9 Feb 2017 21:44:04 +0000 (21:44 +0000)]
Revert "sensorservice: Remove ENABLE_TREBLE flag."

This reverts commit d333511e94afbcc6462dd9c81405f4a3e30ecac9.

Change-Id: I6812643a7d0265f3a64a03a35e4d5a2359ba87cf

7 years agoMerge "NDK docs: Fixed in-line comments for A8 and ARGB444 bitmap configurations...
quddusc [Thu, 9 Feb 2017 21:41:59 +0000 (21:41 +0000)]
Merge "NDK docs: Fixed in-line comments for A8 and ARGB444 bitmap configurations. Test: Verified changes with romainguy@. Related bugs: b/26922523" am: 270fff6a7c am: f9c7e2a002 am: 3d2dbf4d2f
am: cc070b4ddd

Change-Id: Ia8e0c98670407a8218d1fe6522a46a5d51843a49

7 years agoMerge "NDK docs: Fixed in-line comments for A8 and ARGB444 bitmap configurations...
quddusc [Thu, 9 Feb 2017 21:38:47 +0000 (21:38 +0000)]
Merge "NDK docs: Fixed in-line comments for A8 and ARGB444 bitmap configurations. Test: Verified changes with romainguy@. Related bugs: b/26922523" am: 270fff6a7c am: f9c7e2a002
am: 3d2dbf4d2f

Change-Id: Ice33e4e60d90f303652d2a993e90e3c58f3e261f

7 years agoMerge "NDK docs: Fixed in-line comments for A8 and ARGB444 bitmap configurations...
quddusc [Thu, 9 Feb 2017 21:35:09 +0000 (21:35 +0000)]
Merge "NDK docs: Fixed in-line comments for A8 and ARGB444 bitmap configurations. Test: Verified changes with romainguy@. Related bugs: b/26922523" am: 270fff6a7c
am: f9c7e2a002

Change-Id: I228a0f7ed82d88e64ddade491f5aece700c9d9dd

7 years agoMerge "NDK docs: Fixed in-line comments for A8 and ARGB444 bitmap configurations...
quddusc [Thu, 9 Feb 2017 21:32:41 +0000 (21:32 +0000)]
Merge "NDK docs: Fixed in-line comments for A8 and ARGB444 bitmap configurations. Test: Verified changes with romainguy@. Related bugs: b/26922523"
am: 270fff6a7c

Change-Id: Ibfc593ff8a9d913e083b8fda4341ca5110ba87a1

7 years agoMerge "NDK docs: Fixed in-line comments for A8 and ARGB444 bitmap configurations...
quddusc [Thu, 9 Feb 2017 21:26:19 +0000 (21:26 +0000)]
Merge "NDK docs: Fixed in-line comments for A8 and ARGB444 bitmap configurations. Test: Verified changes with romainguy@. Related bugs: b/26922523"

7 years agoFix bug in isEquivalent()
Peng Xu [Thu, 9 Feb 2017 20:24:25 +0000 (12:24 -0800)]
Fix bug in isEquivalent()

Fix a bug in SensorService::SensorDirectConnection::isEquivalent()
that causes the check to unfairly judge two shared memory buffers.

Test: compiles
Change-Id: I8274b01f331dc958c8b0183aab32119f21a8c4ff

7 years agoNDK docs: Fixed in-line comments for A8 and ARGB444 bitmap configurations.
Quddus Chong [Wed, 8 Feb 2017 18:38:21 +0000 (10:38 -0800)]
NDK docs: Fixed in-line comments for A8 and ARGB444 bitmap configurations.
Test: Verified changes with romainguy@.
Related bugs: b/26922523

Change-Id: Id51445b09896407e808b519f3ee2f4be90f5b7eb

7 years agoVR: Update VR HWC and VR WM to use GrallocMapper
Daniel Nicoara [Tue, 7 Feb 2017 22:27:25 +0000 (17:27 -0500)]
VR: Update VR HWC and VR WM to use GrallocMapper

Removes the gralloc hacks to access buffer internals and re-enables
building of VR Window Manager.

Bug: b/34878847
Test: Compiled
Change-Id: I06aa5ec0428b2f282a36ee89dbc4da9838c25782

7 years agoMove pdx system/ paths to system/vr/
Hendrik Wagenaar [Wed, 8 Feb 2017 22:36:20 +0000 (14:36 -0800)]
Move pdx system/ paths to system/vr/

If PDX is used for non-vr stuff in the future, it will be clear
that system/vr/display is for vr and not general display

Test: compile and make sure the vr systems still work
Change-Id: I7f4331b51011574598ea3636f675be68d1ff49a0

7 years agosurfaceflinger: cache HWC client targets and buffers
Chia-I Wu [Wed, 4 Jan 2017 06:58:51 +0000 (14:58 +0800)]
surfaceflinger: cache HWC client targets and buffers

Remember HWC client targets and buffers, and make sure we send each
unique slot/handle pair only once.  This allows the composer to
clone/register/retain each buffer only once.

Test: builds and boots
Change-Id: Ib485189043a9c132031e82d4d7380ace3bf9453d

7 years agoMerge "sensorservice: Remove ENABLE_TREBLE flag."
Ashutosh Joshi [Thu, 9 Feb 2017 04:31:38 +0000 (04:31 +0000)]
Merge "sensorservice: Remove ENABLE_TREBLE flag."

7 years agoMerge "Explicitly sets Shell component on broadcast."
TreeHugger Robot [Thu, 9 Feb 2017 02:04:50 +0000 (02:04 +0000)]
Merge "Explicitly sets Shell component on broadcast."

7 years agoExplicitly sets Shell component on broadcast.
Felipe Leme [Wed, 8 Feb 2017 17:46:08 +0000 (09:46 -0800)]
Explicitly sets Shell component on broadcast.

Change-Id: I11299885c300709d4b6c5a8b4d21bc31d96e2a62
Fixes: 34833915
Test: manual verification
Test: dumpstate_test passes

7 years agoBreak dependency of libui on libbinder
Mathias Agopian [Tue, 7 Feb 2017 00:34:41 +0000 (16:34 -0800)]
Break dependency of libui on libbinder

the dependency existed only because of
HdrCapabilities, which inherited from
Parcelable, instead of LightFlatenable<>.

An added benefit is that HdrCapabilities isn’t
virtual anymore.

Also, since the dtor is not trivial, move it to
the cpp, to avoid inlining.

Fix-up includes.

Test: built and booted device

Change-Id: Iaf9c4ef9dcc5cb28b29f79d9f7d8f21800223eb8

7 years agoMerge "vulkan: Disable shared present modes for now"
TreeHugger Robot [Wed, 8 Feb 2017 23:05:19 +0000 (23:05 +0000)]
Merge "vulkan: Disable shared present modes for now"

7 years agoMerge "Fix vr flinger deadlock and race condition"
TreeHugger Robot [Wed, 8 Feb 2017 22:07:54 +0000 (22:07 +0000)]
Merge "Fix vr flinger deadlock and race condition"

7 years agovulkan: Disable shared present modes for now
Chris Forbes [Tue, 7 Feb 2017 20:59:36 +0000 (09:59 +1300)]
vulkan: Disable shared present modes for now

This extension is not yet ratified, and we shouldn't really be
unconditionally exposing the new present modes anyway.

Test: build
Change-Id: I0a9631a5079648c0d8981f07a9f704b7f8758ce3

7 years agoMerge "Remove BoardConfig variables - BOARD_EGL_CFG"
Mathias Agopian [Wed, 8 Feb 2017 21:28:15 +0000 (21:28 +0000)]
Merge "Remove BoardConfig variables - BOARD_EGL_CFG"

7 years agoMerge "move GraphicEnv from libgui to libui"
Mathias Agopian [Wed, 8 Feb 2017 21:27:17 +0000 (21:27 +0000)]
Merge "move GraphicEnv from libgui to libui"

7 years agoMerge "Fix include dependencies"
Mathias Agopian [Wed, 8 Feb 2017 21:26:40 +0000 (21:26 +0000)]
Merge "Fix include dependencies"

7 years agoFix vr flinger deadlock and race condition
Steven Thomas [Wed, 8 Feb 2017 02:07:01 +0000 (18:07 -0800)]
Fix vr flinger deadlock and race condition

While investigating hangs when transitioning from 2d --> vr and back I
found a deadlock and race condition in the vr flinger pause/resume
handling. This CL should fix both issues.

Unfortunately there's still another deadlock related to multiple threads
trying to suspend/resume vr flinger, but considering how vr flinger is
currently used by surface flinger we shouldn't ever hit that scenario in
practice.

Bug: None

Test: I was able to reliably get a hang when starting/stopping vr
launcher a few times, but with this CL applied and another CL to remove
calls to SetPowerMode() applied (that CL will be submitted separately),
I no longer see any hangs.

Change-Id: Ie842bf9fb00e4e2937769ed7e1e2ec9cc47861f7
(cherry picked from commit cf921a3919d68d8c8d1b8be39e03a372f6346f57)

7 years agoStop calling setPowerMode in VrFlinger
Jiwen 'Steve' Cai [Wed, 8 Feb 2017 00:39:38 +0000 (16:39 -0800)]
Stop calling setPowerMode in VrFlinger

Seems that SetPowerMode from VrFlinger is causing the HIDL HWC service
(android.hardware.graphics.composer@2.1-service) to hang.

Bug: None
Test: Start particles, stop particles, start CubeSea; stop CubeSea
Change-Id: I074568fa0b04041d94dd76768ff27d467e699682
(cherry picked from commit 7fba71a24630bdf757bd4e8a28193a3995c133aa)

7 years agoMerge "Integrate binder service to vr window manager for controller input."
TreeHugger Robot [Wed, 8 Feb 2017 19:12:27 +0000 (19:12 +0000)]
Merge "Integrate binder service to vr window manager for controller input."

7 years agoMerge "Discard invisible surfaces"
TreeHugger Robot [Wed, 8 Feb 2017 19:07:06 +0000 (19:07 +0000)]
Merge "Discard invisible surfaces"

7 years agoMerge "fix warning: dereference of a null pointer"
TreeHugger Robot [Wed, 8 Feb 2017 18:13:53 +0000 (18:13 +0000)]
Merge "fix warning: dereference of a null pointer"

7 years agoUpdate the GVR platform library.
Leandro Gracia Gil [Tue, 7 Feb 2017 00:04:21 +0000 (16:04 -0800)]
Update the GVR platform library.

This CL renames the target for the GVR platform library and introduces
a new method in it to determine if this is an all-in-one device or a
Daydream-ready smartphone.

Bug: 34713987
Change-Id: I38067cb02fd805f3fbe1925250bddebfe82cce55
(cherry picked from commit 904762bdddd2ea5d386b1cf5fb7a35899fbc7a1e)

7 years agoMerge "batteryservice: expose battery status"
TreeHugger Robot [Wed, 8 Feb 2017 09:11:10 +0000 (09:11 +0000)]
Merge "batteryservice: expose battery status"

7 years agoMerge "Use 'cmd activity' instead 'am' to send a broadcast."
TreeHugger Robot [Wed, 8 Feb 2017 09:08:02 +0000 (09:08 +0000)]
Merge "Use 'cmd activity' instead 'am' to send a broadcast."

7 years agoMerge "Adds support for more gralloc1 functions to GrallocMapper."
Craig Donner [Wed, 8 Feb 2017 01:47:01 +0000 (01:47 +0000)]
Merge "Adds support for more gralloc1 functions to GrallocMapper."

7 years agoMerge "Add methods for allocating and locking GraphicBuffers via gralloc1 flags"
Craig Donner [Wed, 8 Feb 2017 01:42:31 +0000 (01:42 +0000)]
Merge "Add methods for allocating and locking GraphicBuffers via gralloc1 flags"

7 years agoFix include dependencies
Mathias Agopian [Wed, 8 Feb 2017 01:36:19 +0000 (17:36 -0800)]
Fix include dependencies

Some headers included other headers they didn’t
need. This is trying to reduce the dependencies
of Surface.h / Surface.cpp on the rest of the
world.

Test: compiled
Bug: not applicable
Change-Id: Ibb5de1308a387394a1367638c3b7f26b5549ce6a

7 years agoDiscard invisible surfaces
Hendrik Wagenaar [Tue, 7 Feb 2017 22:27:28 +0000 (14:27 -0800)]
Discard invisible surfaces

* Jiwen found that we would try to post invisible layers, and this
  would cause a hang.
* Check to see if the surface is invisible, and if so, discard it

Test: Manually tested with particles
Change-Id: Id4a0813cb30bd48c3cfa4d13dcee59fcb5f58a8d

7 years agoIntegrate binder service to vr window manager for controller input.
Alex Sakhartchouk [Sun, 29 Jan 2017 22:04:17 +0000 (17:04 -0500)]
Integrate binder service to vr window manager for controller input.

Bug: 34806399
Test: None

Change-Id: I4fadd3522082f27b053038fe65b61b1126a5a5f2
(cherry picked from commit 3bbfb1b46661439e618c13d9e0dac583edeb16fc)

7 years agoMerge "Revert "Enable TripleBuffering on SF by default""
Fabien Sanglard [Tue, 7 Feb 2017 22:03:15 +0000 (22:03 +0000)]
Merge "Revert "Enable TripleBuffering on SF by default""

7 years agoRevert "Enable TripleBuffering on SF by default"
Fabien Sanglard [Tue, 7 Feb 2017 22:02:22 +0000 (22:02 +0000)]
Revert "Enable TripleBuffering on SF by default"

This reverts commit f222b2e6f4a3c26d6d2d9e3dd9056e5c95d7bc9c.

Change-Id: I300e46c9e93840fde85471eed4e5f7d10dde9b43

7 years agobatteryservice: expose battery status
Jin Qian [Fri, 3 Feb 2017 01:33:36 +0000 (17:33 -0800)]
batteryservice: expose battery status

Bug: 34198239
Change-Id: Iccd2d88efe4cfbfeb753dee866ded099cf445548

7 years agoRemove BoardConfig variables - BOARD_EGL_CFG
Mathias Agopian [Tue, 7 Feb 2017 21:04:44 +0000 (13:04 -0800)]
Remove BoardConfig variables - BOARD_EGL_CFG

Bug: 34693617
Test: compiled and booted a device
Change-Id: I9fcd5e4aa5e68dff2065bd7bffa1950b403a9185

7 years agoUse 'cmd activity' instead 'am' to send a broadcast.
Felipe Leme [Tue, 7 Feb 2017 17:19:01 +0000 (09:19 -0800)]
Use 'cmd activity' instead 'am' to send a broadcast.

'am' is a deprecated binary that calls the ActivityManager shell
command behind the scenes, so calling 'cmd activity' directly
eliminates a process fork.

Bug: 34833915
Test: manual verification

Change-Id: Ia156897d784aa1d64f60317f92828987d64936e3

7 years agoMerge "VR: Fail presentation without layers"
TreeHugger Robot [Tue, 7 Feb 2017 15:16:35 +0000 (15:16 +0000)]
Merge "VR: Fail presentation without layers"

7 years agoMerge "ProcessInfoService: Add support for oom score query"
TreeHugger Robot [Tue, 7 Feb 2017 10:13:06 +0000 (10:13 +0000)]
Merge "ProcessInfoService: Add support for oom score query"

7 years agoMerge "SurfaceFlinger supports ClearClientTarget for Sideband" am: 6560727f37 am...
wyau [Tue, 7 Feb 2017 06:16:38 +0000 (06:16 +0000)]
Merge "SurfaceFlinger supports ClearClientTarget for Sideband" am: 6560727f37 am: adde06b9e8 am: 1f94c41f83
am: d7a4a56b37

Change-Id: I6be4ced0d5779f319976f8f24fc446c3473d0428

7 years agoMerge "SurfaceFlinger supports ClearClientTarget for Sideband" am: 6560727f37 am...
wyau [Tue, 7 Feb 2017 04:34:25 +0000 (04:34 +0000)]
Merge "SurfaceFlinger supports ClearClientTarget for Sideband" am: 6560727f37 am: adde06b9e8
am: 1f94c41f83

Change-Id: I4a1819a3aa9f4c5aa7233225bdae29435272cade

7 years agoMerge "SurfaceFlinger supports ClearClientTarget for Sideband" am: 6560727f37
wyau [Tue, 7 Feb 2017 04:16:12 +0000 (04:16 +0000)]
Merge "SurfaceFlinger supports ClearClientTarget for Sideband" am: 6560727f37
am: adde06b9e8

Change-Id: I68e33ab1173bbae30e8d22ae86397ec081051f7f

7 years agoMerge "SurfaceFlinger supports ClearClientTarget for Sideband"
wyau [Tue, 7 Feb 2017 04:13:40 +0000 (04:13 +0000)]
Merge "SurfaceFlinger supports ClearClientTarget for Sideband"
am: 6560727f37

Change-Id: Idfeaf9f6e29eda948b44a1110ae18a5099a0977e

7 years agoMerge "SurfaceFlinger supports ClearClientTarget for Sideband"
wyau [Tue, 7 Feb 2017 04:07:15 +0000 (04:07 +0000)]
Merge "SurfaceFlinger supports ClearClientTarget for Sideband"

7 years agomove GraphicEnv from libgui to libui
Mathias Agopian [Mon, 6 Feb 2017 21:51:32 +0000 (13:51 -0800)]
move GraphicEnv from libgui to libui

This breaks a circular dependency between libEGL
and libgui.

Test: compiled and booted a device
Change-Id: I78932bba07fb9ef310d8e1622bd3a47f57e89c45

7 years agoVR: Fail presentation without layers
Daniel Nicoara [Mon, 6 Feb 2017 18:21:15 +0000 (13:21 -0500)]
VR: Fail presentation without layers

Without any layers or a valid client target there is nothing to present.

Bug: None
Test: Compiled
Change-Id: Ib8b4b7ced628a38c69be726bf1c04dde2882c614
(cherry picked from commit 12da96889be17f1964681210d0f780fd70fefc33)

7 years agoMerge "Enable TripleBuffering on SF by default"
TreeHugger Robot [Mon, 6 Feb 2017 22:39:39 +0000 (22:39 +0000)]
Merge "Enable TripleBuffering on SF by default"

7 years agoSurfaceFlinger supports ClearClientTarget for Sideband
Gray Huang [Wed, 11 Jan 2017 05:41:09 +0000 (13:41 +0800)]
SurfaceFlinger supports ClearClientTarget for Sideband

When clearing the layer's intersection with the dirty region,
HWC2::Composition::Sideband layer needs to be cleared as well.

Bug: 33443134
Test: manual - enter PIP mode with Live Channel
Change-Id: I4fecc7b5db8a2bf220b681bd087264290d1a2443

7 years agoMerge "Report binder versions on failure"
TreeHugger Robot [Mon, 6 Feb 2017 21:13:30 +0000 (21:13 +0000)]
Merge "Report binder versions on failure"

7 years agoEnable TripleBuffering on SF by default
Fabien Sanglard [Mon, 6 Feb 2017 20:21:21 +0000 (12:21 -0800)]
Enable TripleBuffering on SF by default

Change-Id: I5958534133799419fa77c00536c68cacd1ccb6a9

7 years agoMerge "Nullptr check for VSyncClient::Wait"
TreeHugger Robot [Mon, 6 Feb 2017 19:52:13 +0000 (19:52 +0000)]
Merge "Nullptr check for VSyncClient::Wait"

7 years agoReport binder versions on failure
Greg Hartman [Wed, 4 Jan 2017 00:54:59 +0000 (16:54 -0800)]
Report binder versions on failure

BUG: 34053032
Test: foo
Change-Id: Ida43d037cc6cf70cd5f0e9f678db70d624c99285

7 years agoMerge "Add param null-check + error return"
TreeHugger Robot [Mon, 6 Feb 2017 18:56:37 +0000 (18:56 +0000)]
Merge "Add param null-check + error return"

7 years agosensorservice: Remove ENABLE_TREBLE flag.
Steven Moreland [Tue, 20 Dec 2016 19:14:50 +0000 (11:14 -0800)]
sensorservice: Remove ENABLE_TREBLE flag.

Only hidl hals should be built/referenced by the framework,
and ENABLE_TREBLE will be deprecated soon.

Bug: 32978887
Test: compiles/wip
Change-Id: Ibb32129e1f30ae5baa15e116d3b13cc72bf27395

7 years agoMerge "Add android.hardware.vulkan.compute=0 feature file"
Jesse Hall [Mon, 6 Feb 2017 18:40:59 +0000 (18:40 +0000)]
Merge "Add android.hardware.vulkan.compute=0 feature file"

7 years agoNullptr check for VSyncClient::Wait
Okan Arikan [Fri, 3 Feb 2017 23:06:35 +0000 (15:06 -0800)]
Nullptr check for VSyncClient::Wait

as the documentation in the header implies

Bug: 34609900
Test: pass nullptr to Wait and observe your code not crashing
Change-Id: Ia3ead8cf3369bddedfca4606d0fa261fd57c281f
(cherry picked from commit a919630f3c7cd3c2ee90ef39cbf8147681dd9be8)

7 years agoProcessInfoService: Add support for oom score query
Emilian Peev [Thu, 2 Feb 2017 09:57:18 +0000 (09:57 +0000)]
ProcessInfoService: Add support for oom score query

An additional query for the process oom score also
needs to be supported.

BUG: 34701266
Test: Manual testing + run cts -m Camera --abi armeabi-v7a --disable-reboot
Change-Id: I3e7de82c4d14d4b3b7faa86f4c7208deb376b6c4

7 years agoAdd param null-check + error return
Hendrik Wagenaar [Mon, 6 Feb 2017 16:48:24 +0000 (08:48 -0800)]
Add param null-check + error return

* Fail gracefully when no hidl is passed

Test: Manually ran with nullptr

Change-Id: I2726c5ad512c7115f4c6e99d1e41e0fe267e6ff2

7 years agoAdd android.hardware.vulkan.compute=0 feature file
Jesse Hall [Mon, 6 Feb 2017 08:09:59 +0000 (00:09 -0800)]
Add android.hardware.vulkan.compute=0 feature file

Bug: 34745152
Test: android.graphics.cts.VulkanFeaturesTest
Change-Id: Ic16e745e255b5b1b58c80586c5becf7bc358a46d

7 years agoMerge "IPlayer interface: resync with Java interface definition"
Jean-Michel Trivi [Sat, 4 Feb 2017 22:47:49 +0000 (22:47 +0000)]
Merge "IPlayer interface: resync with Java interface definition"

7 years agoMerge "atrace: Make atrace notify VR services of new trace sessions"
TreeHugger Robot [Sat, 4 Feb 2017 02:38:13 +0000 (02:38 +0000)]
Merge "atrace: Make atrace notify VR services of new trace sessions"

7 years agoMerge changes I712083df,I800e6050
TreeHugger Robot [Sat, 4 Feb 2017 02:08:49 +0000 (02:08 +0000)]
Merge changes I712083df,I800e6050

* changes:
  Fixup 2D app patch, forgot to remove unused variable
  Call releaseFrame on the IVrComposerView interface

7 years agoMerge "Scale up the display and rotate by 90 degrees"
TreeHugger Robot [Sat, 4 Feb 2017 02:06:22 +0000 (02:06 +0000)]
Merge "Scale up the display and rotate by 90 degrees"

7 years agoMerge changes Iea842087,I4830d121,Ied48f024
TreeHugger Robot [Sat, 4 Feb 2017 02:02:11 +0000 (02:02 +0000)]
Merge changes Iea842087,I4830d121,Ied48f024

* changes:
  Allow VRWM to show 2D apps
  VR: Do extra validation in VR HWC
  Start VR WindowManager in a headless mode.

7 years agoMerge changes I41ed91a1,Ic6de9a1b
TreeHugger Robot [Sat, 4 Feb 2017 01:52:03 +0000 (01:52 +0000)]
Merge changes I41ed91a1,Ic6de9a1b

* changes:
  Move surface_flinger_view creation into init code.
  Remove access to the backlight brightness

7 years agoMerge changes I23836041,Ic0c9754d,Iae781f49
TreeHugger Robot [Sat, 4 Feb 2017 01:51:27 +0000 (01:51 +0000)]
Merge changes I23836041,Ic0c9754d,Iae781f49

* changes:
  Update GVR prebuilts to CL@146314416
  Add 6dof to the list of supported gvr features
  Fix an incorrect LOG_ALWAYS_FATAL_IF introduced in sweep

7 years agoMerge "Fix protected content playback via HWC2on1Adapter"
TreeHugger Robot [Sat, 4 Feb 2017 00:27:36 +0000 (00:27 +0000)]
Merge "Fix protected content playback via HWC2on1Adapter"

7 years agoatrace: Make atrace notify VR services of new trace sessions
Corey Tabaka [Sat, 14 Jan 2017 07:46:55 +0000 (23:46 -0800)]
atrace: Make atrace notify VR services of new trace sessions

Notify VR services based on PDX IPC of system property changes to let
them know a new trace session starts.

Bug: None
Test: Build and flash system; observe that systrace works for PDX services.

Change-Id: I02c6a08dd77760684f84154df4d07a853869481a

7 years agoFixup 2D app patch, forgot to remove unused variable
Albert Chaulk [Fri, 3 Feb 2017 22:00:39 +0000 (17:00 -0500)]
Fixup 2D app patch, forgot to remove unused variable

Bug: None
Test: permissiongen to check non-2d app uage
Change-Id: I712083dfe417eb5549b78dc7ab1ee37faa042338

7 years agoScale up the display and rotate by 90 degrees
Albert Chaulk [Fri, 3 Feb 2017 18:01:59 +0000 (13:01 -0500)]
Scale up the display and rotate by 90 degrees

Test: Launch calculator app
Bug: None
Change-Id: Iac2b6b682a94449ba76e689c11357f2247c8e63a

7 years agoCall releaseFrame on the IVrComposerView interface
Albert Chaulk [Fri, 3 Feb 2017 18:43:50 +0000 (13:43 -0500)]
Call releaseFrame on the IVrComposerView interface

Bug: None
Test: None
Change-Id: I800e6050efc4d5aa4fe79fc62464c9f221a5dc18

7 years agoAllow VRWM to show 2D apps
Albert Chaulk [Fri, 3 Feb 2017 17:05:56 +0000 (12:05 -0500)]
Allow VRWM to show 2D apps

2D apps appear as a single app layer at the front of the stack. We can
distinguish them from VR apps as VR has two layers at the front.
When we detect a 2D app we don't skip the first layers for rendering

Test: launch VR app, launch calculator
Bug: None
Change-Id: Iea8420870852b84ab790b5185ac1a44103c2aae5

7 years agoVR: Do extra validation in VR HWC
Daniel Nicoara [Thu, 2 Feb 2017 16:18:02 +0000 (11:18 -0500)]
VR: Do extra validation in VR HWC

Validate that the client target buffer is valid before using it and
validate that the requested layers have valid buffers associated with
them.

Bug: None
Test: Compiled
Change-Id: I4830d121e8ab519a24f954fe21c35199f1c1d900

7 years agoStart VR WindowManager in a headless mode.
Alex Sakhartchouk [Wed, 1 Feb 2017 20:41:45 +0000 (15:41 -0500)]
Start VR WindowManager in a headless mode.

Only allocate resources when we need to show ourselves
and draw something.

Bug: None
Test: None

Change-Id: Ied48f024b145ee6f574484883375b939e7814e53

7 years agoMove surface_flinger_view creation into init code.
Alex Sakhartchouk [Thu, 2 Feb 2017 22:27:42 +0000 (17:27 -0500)]
Move surface_flinger_view creation into init code.

We use it to receive buffers and trigger visibility.

Bug: None
Test: triggered permission
Change-Id: I41ed91a16fb6bfb27687476fbe43c17fc05bc870

7 years agoRemove access to the backlight brightness
Hendrik Wagenaar [Thu, 2 Feb 2017 18:00:48 +0000 (10:00 -0800)]
Remove access to the backlight brightness

* We don't need to set the display brightness at the moment, and
  access to the brightness fd requires an SELinux policy change
  that we'd like to avoid, so ifdef out the code for now.

Bug: None
Test: To be tested along with Nick's SELinux policy cl
Change-Id: Ic6de9a1bd15d0eab2780bda31ec67fab94f8d6da

7 years agoUpdate GVR prebuilts to CL@146314416
Jiwen 'Steve' Cai [Thu, 2 Feb 2017 02:00:41 +0000 (18:00 -0800)]
Update GVR prebuilts to CL@146314416

This removes gvr_experimental_is_feature_supported API in shared library
prebuilts.

Bug: 34742071
Test: Build and ran particles.apk
Change-Id: I23836041993133ae055bd7e90cca99c5d2739ce7

7 years agoAdd 6dof to the list of supported gvr features
Steven Thomas [Thu, 2 Feb 2017 02:02:10 +0000 (18:02 -0800)]
Add 6dof to the list of supported gvr features

While reimplementing gvr_experimental_is_feature_supported() as
gvr_is_feature_supported() I accidentally removed 6dof from the list of
supported features.

Bug: 34742071
Test: -
Change-Id: Ic0c9754d72a704d6bfd74dd7a14bdf6e89ed4dd4

7 years agoFix an incorrect LOG_ALWAYS_FATAL_IF introduced in sweep
Hendrik Wagenaar [Fri, 3 Feb 2017 04:26:45 +0000 (20:26 -0800)]
Fix an incorrect LOG_ALWAYS_FATAL_IF introduced in sweep

* flip the condition to get same functionality as before the
  sweep

Bug: None
Test: None
Change-Id: Iae781f495f29357431d84e79207849f9c3659d94

7 years agoFix protected content playback via HWC2on1Adapter
Fabien Sanglard [Fri, 3 Feb 2017 00:59:44 +0000 (16:59 -0800)]
Fix protected content playback via HWC2on1Adapter

The adapter marked unsupported dataspace layer with HWC_SKIP_LAYER
which prevented HWC to mark protected content with HWC_OVERLAY.

Test: AUPT
Change-Id: Id8c05c7e575ffcc4160cdd8d23b151c4901b4c5c

7 years agoAdds support for more gralloc1 functions to GrallocMapper.
Craig Donner [Thu, 2 Feb 2017 20:40:05 +0000 (12:40 -0800)]
Adds support for more gralloc1 functions to GrallocMapper.

Bug: 34939453
Test: added native CTS tests checked with
cts-tradefed run cts-dev -m CtsNativeHardwareTestCases
Change-Id: I2393f6ec6c7eff5d229a5aa61ff2a52a9366fd1e

7 years agoAdd methods for allocating and locking GraphicBuffers via gralloc1 flags
Craig Donner [Thu, 2 Feb 2017 20:13:34 +0000 (12:13 -0800)]
Add methods for allocating and locking GraphicBuffers via gralloc1 flags

Bug: 34050596
Test: manual
Change-Id: I9515e60fe6b67d2c6f02b1bb78651669430f12ef

7 years agoMerge "Hook the VK_KHR_incremental_present extension"
Ian Elliott [Fri, 3 Feb 2017 20:41:17 +0000 (20:41 +0000)]
Merge "Hook the VK_KHR_incremental_present extension"

7 years agoHook the VK_KHR_incremental_present extension
Ian Elliott [Fri, 3 Feb 2017 18:24:07 +0000 (11:24 -0700)]
Hook the VK_KHR_incremental_present extension

Test: Ran the CTS tests

Small oversight when first implemented.

Change-Id: I9d4804aea3c986c49d69bc1f56b81127553f7863

7 years agoMerge "Fix warning: macro redefined" am: 909ef30a63 am: f62690cdaf am: d1f7b9d025
Yunlian Jiang [Fri, 3 Feb 2017 02:53:45 +0000 (02:53 +0000)]
Merge "Fix warning: macro redefined" am: 909ef30a63 am: f62690cdaf am: d1f7b9d025
am: 501e019523

Change-Id: I2155e7df5ffd16a967d4465218cf852c9148f884

7 years agoMerge "Fix warning: macro redefined" am: 909ef30a63 am: f62690cdaf
Yunlian Jiang [Fri, 3 Feb 2017 02:51:14 +0000 (02:51 +0000)]
Merge "Fix warning: macro redefined" am: 909ef30a63 am: f62690cdaf
am: d1f7b9d025

Change-Id: Ifa71e97d5ade8685f2f31400afd1727034321b4d

7 years agoMerge "Fix warning: macro redefined" am: 909ef30a63
Yunlian Jiang [Fri, 3 Feb 2017 02:48:46 +0000 (02:48 +0000)]
Merge "Fix warning: macro redefined" am: 909ef30a63
am: f62690cdaf

Change-Id: If7255629f0be37af2c08da90e9010423d73decfc

7 years agoMerge "Fix warning: macro redefined"
Yunlian Jiang [Fri, 3 Feb 2017 02:46:15 +0000 (02:46 +0000)]
Merge "Fix warning: macro redefined"
am: 909ef30a63

Change-Id: Ia1b083546fe41a81acf83e0cb0b8921700aa1bfa

7 years agoMerge "Fix warning: macro redefined"
Treehugger Robot [Fri, 3 Feb 2017 02:39:19 +0000 (02:39 +0000)]
Merge "Fix warning: macro redefined"

7 years agoMerge changes I9f2ea67c,I34588df1,I88a56236
TreeHugger Robot [Fri, 3 Feb 2017 00:49:43 +0000 (00:49 +0000)]
Merge changes I9f2ea67c,I34588df1,I88a56236

* changes:
  Use generic libpdx event bits facility in libvrflinger and bufferhubd.
  Add libvrflinger for use in SurfaceFlinger
  Export surface flinger includes

7 years agoMerge "Add binder native side code for BatteryPropertiesListener"
TreeHugger Robot [Fri, 3 Feb 2017 00:30:10 +0000 (00:30 +0000)]
Merge "Add binder native side code for BatteryPropertiesListener"

7 years agoMerge "Build shared library for batteryservice"
TreeHugger Robot [Fri, 3 Feb 2017 00:29:25 +0000 (00:29 +0000)]
Merge "Build shared library for batteryservice"

7 years agoMerge "SurfaceFlinger: Set property in separate thread in init"
TreeHugger Robot [Thu, 2 Feb 2017 23:33:58 +0000 (23:33 +0000)]
Merge "SurfaceFlinger: Set property in separate thread in init"

7 years agoUse generic libpdx event bits facility in libvrflinger and bufferhubd.
Corey Tabaka [Thu, 19 Jan 2017 23:07:26 +0000 (15:07 -0800)]
Use generic libpdx event bits facility in libvrflinger and bufferhubd.

Use the generic event bits abstraction to support UDS and ServiceFS
backends properly.

Bug: 34466748
Test: start/stop basicvr repeatedly; observe stable bufferhub counts.
Change-Id: I9f2ea67c25860ad7fb931938991a29a37f3391fc