CuttlefishDisplayHandler
public
class
CuttlefishDisplayHandler
extends Object
| java.lang.Object
|
| ↳ |
com.android.tradefed.device.internal.CuttlefishDisplayHandler
|
Utility handling Cuttlefish display requests. This is meant to only be used internally via
Cuttlefish specific host tests.
Summary
Nested classes |
class |
CuttlefishDisplayHandler.Display
|
Public constructors
CuttlefishDisplayHandler
public CuttlefishDisplayHandler ()
Public methods
addDisplay
public int addDisplay (ITestDevice device,
int width,
int height,
int dpi,
int refreshRateHz)
Calls `cvd display add ` for on the given Cuttlefish device.
| Parameters |
device |
ITestDevice: The device to use.. |
width |
int: The width in pixels for the new display. |
height |
int: The height in pixels for the new display. |
dpi |
int: The dpi in pixels per inch for the new display. |
refreshRateHz |
int: The refresh rate in hertz for the new display. |
| Returns |
int |
Display number of the newly added display, if successful. |
removeDisplay
public void removeDisplay (ITestDevice device,
int displayNumber)
Calls `cvd display remove --display=` for on the given Cuttlefish device.
| Parameters |
device |
ITestDevice: The device to use.. |
displayNumber |
int: The display to remove. |
screenshotDisplay
public BufferedImage screenshotDisplay (ITestDevice device,
int displayNumber)
Calls `cvd display screenshot --display=` for on the given Cuttlefish device.
| Parameters |
device |
ITestDevice: The device to use.. |
displayNumber |
int: The display to screenshot. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-06-22 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-06-22 UTC."],[],[]]