1{ 2 "methods": { 3 "__constructor__()": { 4 "isImplementation": true, 5 "modifiers": [ 6 "protected" 7 ], 8 "params": [], 9 "returnType": "void", 10 "exceptions": [], 11 "name": "__constructor__()" 12 }, 13 "addCallbackBuffer(byte[])": { 14 "isImplementation": true, 15 "modifiers": [ 16 "protected" 17 ], 18 "params": [ 19 "callbackBuffer" 20 ], 21 "returnType": "void", 22 "exceptions": [], 23 "name": "addCallbackBuffer(byte[])" 24 }, 25 "addCameraInfo(int,android.hardware.Camera.CameraInfo)": { 26 "isImplementation": false, 27 "modifiers": [ 28 "public", 29 "static" 30 ], 31 "params": [ 32 "id", 33 "camInfo" 34 ], 35 "returnType": "void", 36 "exceptions": [], 37 "name": "addCameraInfo(int,android.hardware.Camera.CameraInfo)", 38 "documentation": "Add a mock {@code Camera.CameraInfo} object to simulate the existence of one or more cameras.\nBy default, no cameras are defined.\n\n@param id The camera id\n@param camInfo The CameraInfo\n" 39 }, 40 "autoFocus(android.hardware.Camera.AutoFocusCallback)": { 41 "isImplementation": true, 42 "modifiers": [ 43 "protected" 44 ], 45 "params": [ 46 "callback" 47 ], 48 "returnType": "void", 49 "exceptions": [], 50 "name": "autoFocus(android.hardware.Camera.AutoFocusCallback)" 51 }, 52 "cancelAutoFocus()": { 53 "isImplementation": true, 54 "modifiers": [ 55 "protected" 56 ], 57 "params": [], 58 "returnType": "void", 59 "exceptions": [], 60 "name": "cancelAutoFocus()" 61 }, 62 "clearCameraInfo()": { 63 "isImplementation": false, 64 "modifiers": [ 65 "public", 66 "static" 67 ], 68 "params": [], 69 "returnType": "void", 70 "exceptions": [], 71 "name": "clearCameraInfo()" 72 }, 73 "getAddedCallbackBuffers()": { 74 "isImplementation": false, 75 "modifiers": [ 76 "public" 77 ], 78 "params": [], 79 "returnType": "java.util.List\u003cbyte[]\u003e", 80 "exceptions": [], 81 "name": "getAddedCallbackBuffers()" 82 }, 83 "getCameraInfo(int,android.hardware.Camera.CameraInfo)": { 84 "isImplementation": true, 85 "modifiers": [ 86 "protected", 87 "static" 88 ], 89 "params": [ 90 "cameraId", 91 "cameraInfo" 92 ], 93 "returnType": "void", 94 "exceptions": [], 95 "name": "getCameraInfo(int,android.hardware.Camera.CameraInfo)" 96 }, 97 "getDisplayOrientation()": { 98 "isImplementation": false, 99 "modifiers": [ 100 "public" 101 ], 102 "params": [], 103 "returnType": "int", 104 "exceptions": [], 105 "name": "getDisplayOrientation()" 106 }, 107 "getLastOpenedCameraId()": { 108 "isImplementation": false, 109 "modifiers": [ 110 "public", 111 "static" 112 ], 113 "params": [], 114 "returnType": "int", 115 "exceptions": [], 116 "name": "getLastOpenedCameraId()" 117 }, 118 "getNumberOfCameras()": { 119 "isImplementation": true, 120 "modifiers": [ 121 "protected", 122 "static" 123 ], 124 "params": [], 125 "returnType": "int", 126 "exceptions": [], 127 "name": "getNumberOfCameras()" 128 }, 129 "getParameters()": { 130 "isImplementation": true, 131 "modifiers": [ 132 "protected" 133 ], 134 "params": [], 135 "returnType": "android.hardware.Camera.Parameters", 136 "exceptions": [], 137 "name": "getParameters()" 138 }, 139 "getPreviewDisplay()": { 140 "isImplementation": false, 141 "modifiers": [ 142 "public" 143 ], 144 "params": [], 145 "returnType": "android.view.SurfaceHolder", 146 "exceptions": [], 147 "name": "getPreviewDisplay()" 148 }, 149 "hasRequestedAutoFocus()": { 150 "isImplementation": false, 151 "modifiers": [ 152 "public" 153 ], 154 "params": [], 155 "returnType": "boolean", 156 "exceptions": [], 157 "name": "hasRequestedAutoFocus()" 158 }, 159 "invokeAutoFocusCallback(boolean,android.hardware.Camera)": { 160 "isImplementation": false, 161 "modifiers": [ 162 "public" 163 ], 164 "params": [ 165 "success", 166 "camera" 167 ], 168 "returnType": "void", 169 "exceptions": [], 170 "name": "invokeAutoFocusCallback(boolean,android.hardware.Camera)" 171 }, 172 "invokePreviewCallback(byte[])": { 173 "isImplementation": false, 174 "modifiers": [ 175 "public" 176 ], 177 "params": [ 178 "data" 179 ], 180 "returnType": "void", 181 "exceptions": [], 182 "name": "invokePreviewCallback(byte[])", 183 "documentation": "Allows test cases to invoke the preview callback, to simulate a frame of camera data.\n\n@param data byte buffer of simulated camera data\n" 184 }, 185 "isLocked()": { 186 "isImplementation": false, 187 "modifiers": [ 188 "public" 189 ], 190 "params": [], 191 "returnType": "boolean", 192 "exceptions": [], 193 "name": "isLocked()" 194 }, 195 "isPreviewing()": { 196 "isImplementation": false, 197 "modifiers": [ 198 "public" 199 ], 200 "params": [], 201 "returnType": "boolean", 202 "exceptions": [], 203 "name": "isPreviewing()" 204 }, 205 "isReleased()": { 206 "isImplementation": false, 207 "modifiers": [ 208 "public" 209 ], 210 "params": [], 211 "returnType": "boolean", 212 "exceptions": [], 213 "name": "isReleased()" 214 }, 215 "open()": { 216 "isImplementation": true, 217 "modifiers": [ 218 "protected", 219 "static" 220 ], 221 "params": [], 222 "returnType": "android.hardware.Camera", 223 "exceptions": [], 224 "name": "open()" 225 }, 226 "open(int)": { 227 "isImplementation": true, 228 "modifiers": [ 229 "protected", 230 "static" 231 ], 232 "params": [ 233 "cameraId" 234 ], 235 "returnType": "android.hardware.Camera", 236 "exceptions": [], 237 "name": "open(int)" 238 }, 239 "reconnect()": { 240 "isImplementation": true, 241 "modifiers": [ 242 "protected" 243 ], 244 "params": [], 245 "returnType": "void", 246 "exceptions": [], 247 "name": "reconnect()" 248 }, 249 "release()": { 250 "isImplementation": true, 251 "modifiers": [ 252 "protected" 253 ], 254 "params": [], 255 "returnType": "void", 256 "exceptions": [], 257 "name": "release()" 258 }, 259 "setDisplayOrientation(int)": { 260 "isImplementation": true, 261 "modifiers": [ 262 "protected" 263 ], 264 "params": [ 265 "degrees" 266 ], 267 "returnType": "void", 268 "exceptions": [], 269 "name": "setDisplayOrientation(int)" 270 }, 271 "setOneShotPreviewCallback(android.hardware.Camera.PreviewCallback)": { 272 "isImplementation": true, 273 "modifiers": [ 274 "protected" 275 ], 276 "params": [ 277 "cb" 278 ], 279 "returnType": "void", 280 "exceptions": [], 281 "name": "setOneShotPreviewCallback(android.hardware.Camera.PreviewCallback)" 282 }, 283 "setParameters(android.hardware.Camera.Parameters)": { 284 "isImplementation": true, 285 "modifiers": [ 286 "protected" 287 ], 288 "params": [ 289 "params" 290 ], 291 "returnType": "void", 292 "exceptions": [], 293 "name": "setParameters(android.hardware.Camera.Parameters)" 294 }, 295 "setPreviewCallback(android.hardware.Camera.PreviewCallback)": { 296 "isImplementation": true, 297 "modifiers": [ 298 "protected" 299 ], 300 "params": [ 301 "cb" 302 ], 303 "returnType": "void", 304 "exceptions": [], 305 "name": "setPreviewCallback(android.hardware.Camera.PreviewCallback)" 306 }, 307 "setPreviewCallbackWithBuffer(android.hardware.Camera.PreviewCallback)": { 308 "isImplementation": true, 309 "modifiers": [ 310 "protected" 311 ], 312 "params": [ 313 "cb" 314 ], 315 "returnType": "void", 316 "exceptions": [], 317 "name": "setPreviewCallbackWithBuffer(android.hardware.Camera.PreviewCallback)" 318 }, 319 "setPreviewDisplay(android.view.SurfaceHolder)": { 320 "isImplementation": true, 321 "modifiers": [ 322 "protected" 323 ], 324 "params": [ 325 "holder" 326 ], 327 "returnType": "void", 328 "exceptions": [], 329 "name": "setPreviewDisplay(android.view.SurfaceHolder)" 330 }, 331 "startPreview()": { 332 "isImplementation": true, 333 "modifiers": [ 334 "protected" 335 ], 336 "params": [], 337 "returnType": "void", 338 "exceptions": [], 339 "name": "startPreview()" 340 }, 341 "stopPreview()": { 342 "isImplementation": true, 343 "modifiers": [ 344 "protected" 345 ], 346 "params": [], 347 "returnType": "void", 348 "exceptions": [], 349 "name": "stopPreview()" 350 }, 351 "takePicture(android.hardware.Camera.ShutterCallback,android.hardware.Camera.PictureCallback,android.hardware.Camera.PictureCallback)": { 352 "isImplementation": true, 353 "modifiers": [ 354 "protected" 355 ], 356 "params": [ 357 "shutter", 358 "raw", 359 "jpeg" 360 ], 361 "returnType": "void", 362 "exceptions": [], 363 "name": "takePicture(android.hardware.Camera.ShutterCallback,android.hardware.Camera.PictureCallback,android.hardware.Camera.PictureCallback)" 364 }, 365 "unlock()": { 366 "isImplementation": true, 367 "modifiers": [ 368 "protected" 369 ], 370 "params": [], 371 "returnType": "void", 372 "exceptions": [], 373 "name": "unlock()" 374 } 375 }, 376 "imports": [ 377 "org.robolectric.shadow.api.Shadow.newInstanceOf", 378 "android.graphics.ImageFormat", 379 "android.hardware.Camera", 380 "android.view.SurfaceHolder", 381 "java.util.ArrayList", 382 "java.util.Arrays", 383 "java.util.Collections", 384 "java.util.HashMap", 385 "java.util.List", 386 "java.util.Map", 387 "org.robolectric.annotation.Implementation", 388 "org.robolectric.annotation.Implements", 389 "org.robolectric.annotation.RealObject", 390 "org.robolectric.shadow.api.Shadow", 391 "org.robolectric.util.ReflectionHelpers", 392 "org.robolectric.shadows.ShadowCamera.ShadowParameters", 393 "org.robolectric.shadows.ShadowCamera.ShadowSize" 394 ], 395 "name": "org.robolectric.shadows.ShadowCamera" 396}