{ "methods": { "configureForJBOnly(android.content.res.Configuration,android.util.DisplayMetrics)": { "isImplementation": false, "modifiers": [], "params": [ "configuration", "displayMetrics" ], "returnType": "void", "exceptions": [], "name": "configureForJBOnly(android.content.res.Configuration,android.util.DisplayMetrics)" }, "getCurrentSizeRange(android.graphics.Point,android.graphics.Point)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "outSmallestSize", "outLargestSize" ], "returnType": "void", "exceptions": [], "maxSdk": 16, "name": "getCurrentSizeRange(android.graphics.Point,android.graphics.Point)" }, "getDefaultDisplay()": { "isImplementation": false, "modifiers": [ "public", "static" ], "params": [], "returnType": "android.view.Display", "exceptions": [], "name": "getDefaultDisplay()", "documentation": "Returns the default display.\n\n@return the default display\n" }, "getDisplayId()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "int", "exceptions": [], "name": "getDisplayId()", "documentation": "If {@link #setDisplayId(int)} has been called, this method will return the specified value.\n\n@deprecated This behavior is deprecated and will be removed in Robolectric 3.7.\n" }, "getMetrics(android.util.DisplayMetrics)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "outMetrics" ], "returnType": "void", "exceptions": [], "name": "getMetrics(android.util.DisplayMetrics)", "documentation": "If {@link #setScaledDensity(float)} has been called, {@link DisplayMetrics#scaledDensity} will\nbe modified to reflect the value specified. Note that this is not a realistic state.\n\n@deprecated This behavior is deprecated and will be removed in Robolectric 3.7.\n" }, "getPixelFormat()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "int", "exceptions": [], "name": "getPixelFormat()", "documentation": "If {@link #setPixelFormat(int)} has been called, this method will return the specified value.\n\n@deprecated This behavior is deprecated and will be removed in Robolectric 3.7.\n" }, "getRealMetrics(android.util.DisplayMetrics)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "outMetrics" ], "returnType": "void", "exceptions": [], "name": "getRealMetrics(android.util.DisplayMetrics)", "documentation": "If {@link #setScaledDensity(float)} has been called, {@link DisplayMetrics#scaledDensity} will\nbe modified to reflect the value specified. Note that this is not a realistic state.\n\n@deprecated This behavior is deprecated and will be removed in Robolectric 3.7.\n" }, "getRealSize(android.graphics.Point)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "outSize" ], "returnType": "void", "exceptions": [], "maxSdk": 16, "name": "getRealSize(android.graphics.Point)" }, "getRefreshRate()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "float", "exceptions": [], "name": "getRefreshRate()", "documentation": "If {@link #setRefreshRate(float)} has been called, this method will return the specified value.\n\n@deprecated This behavior is deprecated and will be removed in Robolectric 3.7.\n" }, "getSizeInternal(android.graphics.Point,boolean)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "outSize", "doCompat" ], "returnType": "void", "exceptions": [], "maxSdk": 16, "name": "getSizeInternal(android.graphics.Point,boolean)" }, "isJB()": { "isImplementation": false, "modifiers": [ "private" ], "params": [], "returnType": "boolean", "exceptions": [], "name": "isJB()" }, "setDensity(float)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "density" ], "returnType": "void", "exceptions": [], "name": "setDensity(float)", "documentation": "Changes the density for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.\n" }, "setDensityDpi(int)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "densityDpi" ], "returnType": "void", "exceptions": [], "name": "setDensityDpi(int)", "documentation": "Changes the density for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.\n" }, "setDisplayId(int)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "displayId" ], "returnType": "void", "exceptions": [], "name": "setDisplayId(int)", "documentation": "Changes the ID for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.\n\n@deprecated This method is deprecated and will be removed in Robolectric 3.7.\n" }, "setFlags(int)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "flags" ], "returnType": "void", "exceptions": [], "name": "setFlags(int)", "documentation": "Changes the flags for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.\n" }, "setHeight(int)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "height" ], "returnType": "void", "exceptions": [], "name": "setHeight(int)", "documentation": "Changes the height available to the application for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.\n\n@param height new height in pixels\n" }, "setName(java.lang.String)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "name" ], "returnType": "void", "exceptions": [], "name": "setName(java.lang.String)", "documentation": "Changes the name for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.\n" }, "setPixelFormat(int)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "pixelFormat" ], "returnType": "void", "exceptions": [], "name": "setPixelFormat(int)", "documentation": "Changes the pixel format for this display.\n\n@deprecated This method is deprecated and will be removed in Robolectric 3.7.\n" }, "setRealHeight(int)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "height" ], "returnType": "void", "exceptions": [], "name": "setRealHeight(int)", "documentation": "Changes the simulated physical height for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.\n\n@param height the new height in pixels\n" }, "setRealWidth(int)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "width" ], "returnType": "void", "exceptions": [], "name": "setRealWidth(int)", "documentation": "Changes the simulated physical width for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.\n\n@param width the new width in pixels\n" }, "setRefreshRate(float)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "refreshRate" ], "returnType": "void", "exceptions": [], "name": "setRefreshRate(float)", "documentation": "Changes the refresh rate for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.\n" }, "setRotation(int)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "rotation" ], "returnType": "void", "exceptions": [], "name": "setRotation(int)", "documentation": "Changes the rotation for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.\n\n@param rotation one of {@link Surface#ROTATION_0}, {@link Surface#ROTATION_90},\n {@link Surface#ROTATION_180}, {@link Surface#ROTATION_270}\n\n" }, "setScaledDensity(float)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "scaledDensity" ], "returnType": "void", "exceptions": [], "name": "setScaledDensity(float)", "documentation": "Changes the scaled density for this display.\n\n@deprecated This method is deprecated and will be removed in Robolectric 3.7.\n" }, "setState(int)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "state" ], "returnType": "void", "exceptions": [], "name": "setState(int)", "documentation": "Changes the simulated state for this display, such as whether it is on or off\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.\n\n@param state the new state: one of {@link Display#STATE_OFF}, {@link Display#STATE_ON},\n {@link Display#STATE_DOZE}, {@link Display#STATE_DOZE_SUSPEND}, or\n {@link Display#STATE_UNKNOWN}.\n" }, "setWidth(int)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "width" ], "returnType": "void", "exceptions": [], "name": "setWidth(int)", "documentation": "Changes the width available to the application for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.\n\n@param width the new width in pixels\n" }, "setXdpi(float)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "xdpi" ], "returnType": "void", "exceptions": [], "name": "setXdpi(float)", "documentation": "Changes the horizontal DPI for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.\n" }, "setYdpi(float)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "ydpi" ], "returnType": "void", "exceptions": [], "name": "setYdpi(float)", "documentation": "Changes the vertical DPI for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.\n" } }, "imports": [ "android.os.Build.VERSION_CODES.JELLY_BEAN", "org.robolectric.shadow.api.Shadow.directlyOn", "android.content.Context", "android.content.res.Configuration", "android.graphics.Point", "android.util.DisplayMetrics", "android.view.Display", "android.view.Surface", "android.view.WindowManager", "org.robolectric.RuntimeEnvironment", "org.robolectric.annotation.Implementation", "org.robolectric.annotation.Implements", "org.robolectric.annotation.RealObject", "org.robolectric.util.ReflectionHelpers" ], "name": "org.robolectric.shadows.ShadowDisplay", "documentation": "It is possible to override some display properties using setters on {@link ShadowDisplay};\nhowever, this behavior is deprecated as of Robolectric 3.6 and will be removed in 3.7.\n\nUse [device configuration](http://robolectric.org/device-configuration/) to set up your\ndisplay properties instead.\n" }