1{ 2 "methods": { 3 "configureForJBOnly(android.content.res.Configuration,android.util.DisplayMetrics)": { 4 "isImplementation": false, 5 "modifiers": [], 6 "params": [ 7 "configuration", 8 "displayMetrics" 9 ], 10 "returnType": "void", 11 "exceptions": [], 12 "name": "configureForJBOnly(android.content.res.Configuration,android.util.DisplayMetrics)" 13 }, 14 "getCurrentSizeRange(android.graphics.Point,android.graphics.Point)": { 15 "isImplementation": true, 16 "modifiers": [ 17 "protected" 18 ], 19 "params": [ 20 "outSmallestSize", 21 "outLargestSize" 22 ], 23 "returnType": "void", 24 "exceptions": [], 25 "maxSdk": 16, 26 "name": "getCurrentSizeRange(android.graphics.Point,android.graphics.Point)" 27 }, 28 "getDefaultDisplay()": { 29 "isImplementation": false, 30 "modifiers": [ 31 "public", 32 "static" 33 ], 34 "params": [], 35 "returnType": "android.view.Display", 36 "exceptions": [], 37 "name": "getDefaultDisplay()", 38 "documentation": "Returns the default display.\n\n@return the default display\n" 39 }, 40 "getDisplayId()": { 41 "isImplementation": true, 42 "modifiers": [ 43 "protected" 44 ], 45 "params": [], 46 "returnType": "int", 47 "exceptions": [], 48 "name": "getDisplayId()", 49 "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" 50 }, 51 "getMetrics(android.util.DisplayMetrics)": { 52 "isImplementation": true, 53 "modifiers": [ 54 "protected" 55 ], 56 "params": [ 57 "outMetrics" 58 ], 59 "returnType": "void", 60 "exceptions": [], 61 "name": "getMetrics(android.util.DisplayMetrics)", 62 "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" 63 }, 64 "getPixelFormat()": { 65 "isImplementation": true, 66 "modifiers": [ 67 "protected" 68 ], 69 "params": [], 70 "returnType": "int", 71 "exceptions": [], 72 "name": "getPixelFormat()", 73 "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" 74 }, 75 "getRealMetrics(android.util.DisplayMetrics)": { 76 "isImplementation": true, 77 "modifiers": [ 78 "protected" 79 ], 80 "params": [ 81 "outMetrics" 82 ], 83 "returnType": "void", 84 "exceptions": [], 85 "name": "getRealMetrics(android.util.DisplayMetrics)", 86 "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" 87 }, 88 "getRealSize(android.graphics.Point)": { 89 "isImplementation": true, 90 "modifiers": [ 91 "protected" 92 ], 93 "params": [ 94 "outSize" 95 ], 96 "returnType": "void", 97 "exceptions": [], 98 "maxSdk": 16, 99 "name": "getRealSize(android.graphics.Point)" 100 }, 101 "getRefreshRate()": { 102 "isImplementation": true, 103 "modifiers": [ 104 "protected" 105 ], 106 "params": [], 107 "returnType": "float", 108 "exceptions": [], 109 "name": "getRefreshRate()", 110 "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" 111 }, 112 "getSizeInternal(android.graphics.Point,boolean)": { 113 "isImplementation": true, 114 "modifiers": [ 115 "protected" 116 ], 117 "params": [ 118 "outSize", 119 "doCompat" 120 ], 121 "returnType": "void", 122 "exceptions": [], 123 "maxSdk": 16, 124 "name": "getSizeInternal(android.graphics.Point,boolean)" 125 }, 126 "isJB()": { 127 "isImplementation": false, 128 "modifiers": [ 129 "private" 130 ], 131 "params": [], 132 "returnType": "boolean", 133 "exceptions": [], 134 "name": "isJB()" 135 }, 136 "setDensity(float)": { 137 "isImplementation": false, 138 "modifiers": [ 139 "public" 140 ], 141 "params": [ 142 "density" 143 ], 144 "returnType": "void", 145 "exceptions": [], 146 "name": "setDensity(float)", 147 "documentation": "Changes the density for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.\n" 148 }, 149 "setDensityDpi(int)": { 150 "isImplementation": false, 151 "modifiers": [ 152 "public" 153 ], 154 "params": [ 155 "densityDpi" 156 ], 157 "returnType": "void", 158 "exceptions": [], 159 "name": "setDensityDpi(int)", 160 "documentation": "Changes the density for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.\n" 161 }, 162 "setDisplayId(int)": { 163 "isImplementation": false, 164 "modifiers": [ 165 "public" 166 ], 167 "params": [ 168 "displayId" 169 ], 170 "returnType": "void", 171 "exceptions": [], 172 "name": "setDisplayId(int)", 173 "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" 174 }, 175 "setFlags(int)": { 176 "isImplementation": false, 177 "modifiers": [ 178 "public" 179 ], 180 "params": [ 181 "flags" 182 ], 183 "returnType": "void", 184 "exceptions": [], 185 "name": "setFlags(int)", 186 "documentation": "Changes the flags for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.\n" 187 }, 188 "setHeight(int)": { 189 "isImplementation": false, 190 "modifiers": [ 191 "public" 192 ], 193 "params": [ 194 "height" 195 ], 196 "returnType": "void", 197 "exceptions": [], 198 "name": "setHeight(int)", 199 "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" 200 }, 201 "setName(java.lang.String)": { 202 "isImplementation": false, 203 "modifiers": [ 204 "public" 205 ], 206 "params": [ 207 "name" 208 ], 209 "returnType": "void", 210 "exceptions": [], 211 "name": "setName(java.lang.String)", 212 "documentation": "Changes the name for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.\n" 213 }, 214 "setPixelFormat(int)": { 215 "isImplementation": false, 216 "modifiers": [ 217 "public" 218 ], 219 "params": [ 220 "pixelFormat" 221 ], 222 "returnType": "void", 223 "exceptions": [], 224 "name": "setPixelFormat(int)", 225 "documentation": "Changes the pixel format for this display.\n\n@deprecated This method is deprecated and will be removed in Robolectric 3.7.\n" 226 }, 227 "setRealHeight(int)": { 228 "isImplementation": false, 229 "modifiers": [ 230 "public" 231 ], 232 "params": [ 233 "height" 234 ], 235 "returnType": "void", 236 "exceptions": [], 237 "name": "setRealHeight(int)", 238 "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" 239 }, 240 "setRealWidth(int)": { 241 "isImplementation": false, 242 "modifiers": [ 243 "public" 244 ], 245 "params": [ 246 "width" 247 ], 248 "returnType": "void", 249 "exceptions": [], 250 "name": "setRealWidth(int)", 251 "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" 252 }, 253 "setRefreshRate(float)": { 254 "isImplementation": false, 255 "modifiers": [ 256 "public" 257 ], 258 "params": [ 259 "refreshRate" 260 ], 261 "returnType": "void", 262 "exceptions": [], 263 "name": "setRefreshRate(float)", 264 "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" 265 }, 266 "setRotation(int)": { 267 "isImplementation": false, 268 "modifiers": [ 269 "public" 270 ], 271 "params": [ 272 "rotation" 273 ], 274 "returnType": "void", 275 "exceptions": [], 276 "name": "setRotation(int)", 277 "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" 278 }, 279 "setScaledDensity(float)": { 280 "isImplementation": false, 281 "modifiers": [ 282 "public" 283 ], 284 "params": [ 285 "scaledDensity" 286 ], 287 "returnType": "void", 288 "exceptions": [], 289 "name": "setScaledDensity(float)", 290 "documentation": "Changes the scaled density for this display.\n\n@deprecated This method is deprecated and will be removed in Robolectric 3.7.\n" 291 }, 292 "setState(int)": { 293 "isImplementation": false, 294 "modifiers": [ 295 "public" 296 ], 297 "params": [ 298 "state" 299 ], 300 "returnType": "void", 301 "exceptions": [], 302 "name": "setState(int)", 303 "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" 304 }, 305 "setWidth(int)": { 306 "isImplementation": false, 307 "modifiers": [ 308 "public" 309 ], 310 "params": [ 311 "width" 312 ], 313 "returnType": "void", 314 "exceptions": [], 315 "name": "setWidth(int)", 316 "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" 317 }, 318 "setXdpi(float)": { 319 "isImplementation": false, 320 "modifiers": [ 321 "public" 322 ], 323 "params": [ 324 "xdpi" 325 ], 326 "returnType": "void", 327 "exceptions": [], 328 "name": "setXdpi(float)", 329 "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" 330 }, 331 "setYdpi(float)": { 332 "isImplementation": false, 333 "modifiers": [ 334 "public" 335 ], 336 "params": [ 337 "ydpi" 338 ], 339 "returnType": "void", 340 "exceptions": [], 341 "name": "setYdpi(float)", 342 "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" 343 } 344 }, 345 "imports": [ 346 "android.os.Build.VERSION_CODES.JELLY_BEAN", 347 "org.robolectric.shadow.api.Shadow.directlyOn", 348 "android.content.Context", 349 "android.content.res.Configuration", 350 "android.graphics.Point", 351 "android.util.DisplayMetrics", 352 "android.view.Display", 353 "android.view.Surface", 354 "android.view.WindowManager", 355 "org.robolectric.RuntimeEnvironment", 356 "org.robolectric.annotation.Implementation", 357 "org.robolectric.annotation.Implements", 358 "org.robolectric.annotation.RealObject", 359 "org.robolectric.util.ReflectionHelpers" 360 ], 361 "name": "org.robolectric.shadows.ShadowDisplay", 362 "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" 363}