diff options
author | Jeff Brown <jeffbrown@google.com> | 2013-08-02 19:03:49 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2013-08-02 21:11:07 -0700 |
commit | 7d00affce6e25b22fd8fc135933b3bf6b547a0dc (patch) | |
tree | 6ceb674184170a62dd93d7b3508f11ed1830349e /tests/AccessoryDisplay | |
parent | 040f44d0ebdd3a50c59ba0cbc0b023fd2d71039d (diff) | |
download | frameworks_base-7d00affce6e25b22fd8fc135933b3bf6b547a0dc.zip frameworks_base-7d00affce6e25b22fd8fc135933b3bf6b547a0dc.tar.gz frameworks_base-7d00affce6e25b22fd8fc135933b3bf6b547a0dc.tar.bz2 |
Support public virtual displays.
Refactor the new private virtual display API to also support
creating public virtual displays with various characteristics.
This feature requires special permissions and is only intended
for use by the system.
Change-Id: I44dd19f37cf76ea6d6e313afe42f4a412bd96663
Diffstat (limited to 'tests/AccessoryDisplay')
-rw-r--r-- | tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/DisplaySourceService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/DisplaySourceService.java b/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/DisplaySourceService.java index ccead44..256f900 100644 --- a/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/DisplaySourceService.java +++ b/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/DisplaySourceService.java @@ -197,8 +197,8 @@ public class DisplaySourceService extends Service { Surface surface = codec.createInputSurface(); codec.start(); - VirtualDisplay virtualDisplay = mDisplayManager.createPrivateVirtualDisplay( - DISPLAY_NAME, mWidth, mHeight, mDensityDpi, surface); + VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay( + DISPLAY_NAME, mWidth, mHeight, mDensityDpi, surface, 0); if (virtualDisplay != null) { mHandler.obtainMessage(MSG_DISPATCH_DISPLAY_ADDED, virtualDisplay.getDisplay()).sendToTarget(); |