Package org.robolectric.android
Class DeviceConfig
- java.lang.Object
-
- org.robolectric.android.DeviceConfig
-
public class DeviceConfig extends Object
Supports device configuration for Robolectric tests.- See Also:
- Device Configuration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeviceConfig.ScreenSize
Standard sizes for the screen size qualifier.
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_DENSITY
static DeviceConfig.ScreenSize
DEFAULT_SCREEN_SIZE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DeviceConfig.ScreenSize
getScreenSize(Configuration configuration)
-
-
-
Field Detail
-
DEFAULT_DENSITY
public static final int DEFAULT_DENSITY
- See Also:
- Constant Field Values
-
DEFAULT_SCREEN_SIZE
public static final DeviceConfig.ScreenSize DEFAULT_SCREEN_SIZE
-
-
Method Detail
-
getScreenSize
public static DeviceConfig.ScreenSize getScreenSize(Configuration configuration)
-
-