CuttlefishDisplayHandler

public class CuttlefishDisplayHandler
extends Object

java.lang.Object
   ↳ com.android.tradefed.device.internal.CuttlefishDisplayHandler


כלי לטיפול בבקשות להצגת Cuttlefish. הכלי הזה מיועד לשימוש פנימי בלבד באמצעות בדיקות מארח ספציפיות של Cuttlefish.

סיכום

כיתות מוטמעות

class CuttlefishDisplayHandler.Display

 

‫constructors ציבוריים

CuttlefishDisplayHandler()

‫methods ציבוריים

int addDisplay(ITestDevice device, int width, int height, int dpi, int refreshRateHz)

מתבצעת קריאה ל-`cvd display add ` במכשיר Cuttlefish הנתון.

Map<Integer, CuttlefishDisplayHandler.Display> listDisplays(ITestDevice device)

מפעיל את הפקודה cvd display list במכשיר Cuttlefish הנתון.

void removeDisplay(ITestDevice device, int displayNumber)

מפעיל את הפקודה ‎ `cvd display remove --display=` ‎ במכשיר Cuttlefish הנתון.

BufferedImage screenshotDisplay(ITestDevice device, int displayNumber)

הפקודה `cvd display screenshot --display=` מופעלת במכשיר Cuttlefish הנתון.

‫constructors ציבוריים

CuttlefishDisplayHandler

public CuttlefishDisplayHandler ()

‫methods ציבוריים

addDisplay

public int addDisplay (ITestDevice device, 
                int width, 
                int height, 
                int dpi, 
                int refreshRateHz)

הפקודה `cvd display add ` מופעלת במכשיר Cuttlefish הנתון.

פרמטרים
device ITestDevice: המכשיר שבו רוצים להשתמש.

width int: הרוחב בפיקסלים של התצוגה החדשה.

height int: הגובה בפיקסלים של התצוגה החדשה.

dpi int: ה-dpi בפיקסלים לאינץ' של התצוגה החדשה.

refreshRateHz int: קצב הרענון בהרץ של המסך החדש.

החזרות
int אם הפעולה הצליחה, מוצג מספר התצוגה החדשה שנוספה.

הקפצת הודעות שגיאה (throw)
DeviceNotAvailableException

listDisplays

public Map<Integer, CuttlefishDisplayHandler.Display> listDisplays (ITestDevice device)

מפעיל את הפקודה cvd display list במכשיר Cuttlefish הנתון.

פרמטרים
device ITestDevice: המכשיר שבו רוצים להשתמש.

החזרות
Map<Integer, CuttlefishDisplayHandler.Display>

הקפצת הודעות שגיאה (throw)
DeviceNotAvailableException

removeDisplay

public void removeDisplay (ITestDevice device, 
                int displayNumber)

מפעיל את הפקודה cvd display remove --display=במכשיר Cuttlefish הנתון.

פרמטרים
device ITestDevice: המכשיר שבו רוצים להשתמש.

displayNumber int: התצוגה שרוצים להסיר.

הקפצת הודעות שגיאה (throw)
DeviceNotAvailableException

screenshotDisplay

public BufferedImage screenshotDisplay (ITestDevice device, 
                int displayNumber)

מפעיל את הפקודה `cvd display screenshot --display=` במכשיר Cuttlefish הנתון.

פרמטרים
device ITestDevice: המכשיר שבו רוצים להשתמש.

displayNumber int: המסך שרוצים לצלם.

החזרות
BufferedImage

הקפצת הודעות שגיאה (throw)
DeviceNotAvailableException