summaryrefslogtreecommitdiff
path: root/cmds/vr/src
Commit message (Collapse)AuthorAgeFilesLines
* Add ability to turn off VR virtual display functionality.Santos Cordon2017-06-291-1/+23
| | | | | | | | | | | | 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
* Rename CompatibilityDisplay to Vr2dDisplayKarthik Ravi Shankar2017-05-031-8/+8
| | | | | | | | | | | | | | | | | | | CompatibilityDisplay used for displaying 2D activities in Vr world. This is confusing in more than one way. To clarify what it really means, rename it to Vr2dDisplay. Changes in this CL - - /s/CompatibilityDisplay/Vr2dDisplay - /s/Compatibility/Vr2d - in CompatibilityDisplay context. Bug: 37851944 Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerDisplayTests passes on Marlin. Change-Id: I0a442302fa9d0f48bbd0c01a7766b94369e04386 Signed-off-by: Karthik Ravi Shankar <karthikrs@google.com>
* Add command line option to set compatibility display propertiesKarthik Ravi Shankar2017-04-171-2/+30
| | | | | | | | | | | | | | | | | | | | To be able to control the Vr compatibility virtual display's is useful. In this case, it will be useful to control and test the CompatibilityDisplayProperties API in VrManager. Bug: 37260266 Test: adb shell set-compatibility-display-properties 500 500 500 adb shell dumpsys display >> mBaseDisplayInfo=DisplayInfo{"VR 2D Display", uniqueId "virtual:android,1000,VR 2D Display,0", app 500 x 500, real 500 x 500, largest app 500 x 500, smallest app 500 x 500, mode 6, defaultMode 6, modes [{id=6, width=500, height=500, fps=60.0}], colorMode 0, supportedColorModes [0], hdrCapabilities null, rotation 0, density 500 (500.0 x 500.0) dpi... Change-Id: Ice5bc569f380154bf2d9e9f9b9387e801d678774 Signed-off-by: Karthik Ravi Shankar <karthikrs@google.com>
* Add vr persistent mode enable/disableKarthik Ravi Shankar2017-03-311-0/+78
Persistent vr mode toggle control is needed sometimes from command line. This also adds the infrastructure for future vr commands. Bug: 36071574 Test: adb shell vr set-persistent-vr-mode-enabled true adb shell dumpsys vrmanager >> Persistent VR mode is currently: enabled adb shell vr set-persistent-vr-mode-enabled false adb shell dumpsys vrmanager >> Persistent VR mode is currently: disabled Change-Id: I47a858e0696a907e746d50e2c6ca3d18197864a7 Signed-off-by: Karthik Ravi Shankar <karthikrs@google.com>