public class HardwareConfig
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEVICE_GALAXY_NEXUS
Device names
These correspond to the 'hw.device.name' field in an AVD's config.ini
|
static java.lang.String |
DEVICE_NEXUS_10 |
static java.lang.String |
DEVICE_NEXUS_4 |
static java.lang.String |
DEVICE_NEXUS_5 |
static java.lang.String |
DEVICE_NEXUS_5X |
static java.lang.String |
DEVICE_NEXUS_6 |
static java.lang.String |
DEVICE_NEXUS_6P |
static java.lang.String |
DEVICE_NEXUS_7 |
static java.lang.String |
DEVICE_NEXUS_7_2013 |
static java.lang.String |
DEVICE_NEXUS_9 |
static java.lang.String |
DEVICE_NEXUS_ONE |
static java.lang.String |
DEVICE_NEXUS_S |
static java.lang.String |
DEVICE_PIXEL |
static java.lang.String |
DEVICE_PIXEL_C |
static java.lang.String |
DEVICE_PIXEL_XL |
static java.lang.String |
MANUFACTURER_GENERIC
Manufacturer used by the generic devices in the device list
|
static java.lang.String |
MANUFACTURER_GOOGLE
Manufacturer used by the Nexus devices in the device list
|
| Constructor and Description |
|---|
HardwareConfig(int screenWidth,
int screenHeight,
Density density,
float xdpi,
float ydpi,
ScreenSize screenSize,
ScreenOrientation orientation,
ScreenRound screenRoundness,
boolean softwareButtons) |
| Modifier and Type | Method and Description |
|---|---|
Density |
getDensity() |
int |
getDensityDpi() |
ScreenOrientation |
getOrientation() |
int |
getScreenHeight() |
ScreenRound |
getScreenRoundness() |
ScreenSize |
getScreenSize() |
int |
getScreenWidth() |
float |
getXdpi() |
float |
getYdpi() |
boolean |
hasSoftwareButtons() |
public static final java.lang.String MANUFACTURER_GENERIC
public static final java.lang.String MANUFACTURER_GOOGLE
public static final java.lang.String DEVICE_GALAXY_NEXUS
public static final java.lang.String DEVICE_NEXUS_10
public static final java.lang.String DEVICE_NEXUS_4
public static final java.lang.String DEVICE_NEXUS_5
public static final java.lang.String DEVICE_NEXUS_5X
public static final java.lang.String DEVICE_NEXUS_6
public static final java.lang.String DEVICE_NEXUS_6P
public static final java.lang.String DEVICE_NEXUS_7
public static final java.lang.String DEVICE_NEXUS_7_2013
public static final java.lang.String DEVICE_NEXUS_9
public static final java.lang.String DEVICE_NEXUS_ONE
public static final java.lang.String DEVICE_NEXUS_S
public static final java.lang.String DEVICE_PIXEL
public static final java.lang.String DEVICE_PIXEL_C
public static final java.lang.String DEVICE_PIXEL_XL
public HardwareConfig(int screenWidth,
int screenHeight,
Density density,
float xdpi,
float ydpi,
ScreenSize screenSize,
ScreenOrientation orientation,
ScreenRound screenRoundness,
boolean softwareButtons)
public int getScreenWidth()
public int getScreenHeight()
public Density getDensity()
public float getXdpi()
public float getYdpi()
public ScreenSize getScreenSize()
public ScreenOrientation getOrientation()
public boolean hasSoftwareButtons()
@Nullable public ScreenRound getScreenRoundness()
public int getDensityDpi()