OSDN Git Service

Add ability to turn off VR virtual display functionality.
authorSantos Cordon <santoscordon@google.com>
Tue, 13 Jun 2017 00:57:17 +0000 (17:57 -0700)
committerSantos Cordon <santoscordon@google.com>
Thu, 29 Jun 2017 19:01:39 +0000 (19:01 +0000)
commit627a68f8525d3d0125f23f83e88bb9682da7b0a4
treef3f2e11246a707f93305fb9b2e909fdd03f49502
parent98b181b25f6d88d200f61a082dec86aad0d703c0
Add ability to turn off VR virtual display functionality.

Add flag to enable/disable virtual displays via the existing
setDisplayProperties API. This makes it possible for the VR system
to turn off virtual displays if necessary after we ship.

Bug: 62546364
Test: Run 'adb shell vr enable-virtual-display [true|false] to toggle while 2d in 3d
runs.

Change-Id: Iae029be501d61189fced981dbc554e984fa7ed4b
cmds/vr/src/com/android/commands/vr/Vr.java
core/java/android/app/Vr2dDisplayProperties.java
services/core/java/com/android/server/vr/Vr2dDisplay.java