1{ 2 "methods": { 3 "addException(org.robolectric.shadows.util.DataSource,java.lang.RuntimeException)": { 4 "isImplementation": false, 5 "modifiers": [ 6 "public", 7 "static" 8 ], 9 "params": [ 10 "ds", 11 "e" 12 ], 13 "returnType": "void", 14 "exceptions": [], 15 "name": "addException(org.robolectric.shadows.util.DataSource,java.lang.RuntimeException)", 16 "documentation": "Configures an exception to be thrown when {@link #setDataSource}\nis called for the given data source.\n\n@param ds the data source that will trigger an exception\n@param e the exception to trigger, or \u003ctt\u003enull\u003c/tt\u003e to\navoid throwing an exception.\n" 17 }, 18 "addFrame(android.content.Context,android.net.Uri,long,android.graphics.Bitmap)": { 19 "isImplementation": false, 20 "modifiers": [ 21 "public", 22 "static" 23 ], 24 "params": [ 25 "context", 26 "uri", 27 "time", 28 "bitmap" 29 ], 30 "returnType": "void", 31 "exceptions": [], 32 "name": "addFrame(android.content.Context,android.net.Uri,long,android.graphics.Bitmap)", 33 "documentation": "Adds the given bitmap at the given time for the given data source.\nUses \u003ctt\u003epath\u003c/tt\u003e to call {@link org.robolectric.shadows.util.DataSource#toDataSource(Context, Uri)} and\nthen calls {@link #addFrame(DataSource, long, Bitmap)}. This\nmethod is retained mostly for backwards compatibility;\nyou can call {@link #addFrame(DataSource, long, Bitmap)} directly.\n\n@param context the Context object to match on the data source.\n@param uri the Uri of the data source.\n@param time the playback time at which the specified bitmap\nshould be retrieved.\n@param bitmap the bitmap to retrieve.\n" 34 }, 35 "addFrame(java.io.FileDescriptor,long,android.graphics.Bitmap)": { 36 "isImplementation": false, 37 "modifiers": [ 38 "public", 39 "static" 40 ], 41 "params": [ 42 "fd", 43 "time", 44 "bitmap" 45 ], 46 "returnType": "void", 47 "exceptions": [], 48 "name": "addFrame(java.io.FileDescriptor,long,android.graphics.Bitmap)", 49 "documentation": "Adds the given bitmap at the given time for the given data source.\nUses \u003ctt\u003epath\u003c/tt\u003e to call {@link org.robolectric.shadows.util.DataSource#toDataSource(FileDescriptor)} and\nthen calls {@link #addFrame(DataSource, long, Bitmap)}. This\nmethod is retained mostly for backwards compatibility;\nyou can call {@link #addFrame(DataSource, long, Bitmap)} directly.\n\n@param fd file descriptor of the data source.\n@param time the playback time at which the specified bitmap\nshould be retrieved.\n@param bitmap the bitmap to retrieve.\n" 50 }, 51 "addFrame(java.io.FileDescriptor,long,long,long,android.graphics.Bitmap)": { 52 "isImplementation": false, 53 "modifiers": [ 54 "public", 55 "static" 56 ], 57 "params": [ 58 "fd", 59 "offset", 60 "length", 61 "time", 62 "bitmap" 63 ], 64 "returnType": "void", 65 "exceptions": [], 66 "name": "addFrame(java.io.FileDescriptor,long,long,long,android.graphics.Bitmap)", 67 "documentation": "Adds the given bitmap at the given time for the given data source.\nUses \u003ctt\u003epath\u003c/tt\u003e to call {@link org.robolectric.shadows.util.DataSource#toDataSource(FileDescriptor, long, long)} and\nthen calls {@link #addFrame(DataSource, long, Bitmap)}. This\nmethod is retained mostly for backwards compatibility;\nyou can call {@link #addFrame(DataSource, long, Bitmap)} directly.\n\n@param fd file descriptor of the data source.\n@param offset the byte offset within the specified file from which to start reading the data.\n@param length the number of bytes to read from the file.\n@param time the playback time at which the specified bitmap\nshould be retrieved.\n@param bitmap the bitmap to retrieve.\n" 68 }, 69 "addFrame(java.lang.String,java.util.Map\u003cjava.lang.String,java.lang.String\u003e,long,android.graphics.Bitmap)": { 70 "isImplementation": false, 71 "modifiers": [ 72 "public", 73 "static" 74 ], 75 "params": [ 76 "uri", 77 "headers", 78 "time", 79 "bitmap" 80 ], 81 "returnType": "void", 82 "exceptions": [], 83 "name": "addFrame(java.lang.String,java.util.Map\u003cjava.lang.String,java.lang.String\u003e,long,android.graphics.Bitmap)", 84 "documentation": "Adds the given bitmap at the given time for the given data source.\nUses \u003ctt\u003epath\u003c/tt\u003e to call {@link org.robolectric.shadows.util.DataSource#toDataSource(String, Map)} and\nthen calls {@link #addFrame(DataSource, long, Bitmap)}. This\nmethod is retained mostly for backwards compatibility;\nyou can call {@link #addFrame(DataSource, long, Bitmap)} directly.\n\n@param uri the Uri of the data source.\n@param headers the headers to use when requesting the specified uri.\n@param time the playback time at which the specified bitmap\nshould be retrieved.\n@param bitmap the bitmap to retrieve.\n" 85 }, 86 "addFrame(java.lang.String,long,android.graphics.Bitmap)": { 87 "isImplementation": false, 88 "modifiers": [ 89 "public", 90 "static" 91 ], 92 "params": [ 93 "path", 94 "time", 95 "bitmap" 96 ], 97 "returnType": "void", 98 "exceptions": [], 99 "name": "addFrame(java.lang.String,long,android.graphics.Bitmap)", 100 "documentation": "Adds the given bitmap at the given time for the given data source.\nUses \u003ctt\u003epath\u003c/tt\u003e to call {@link org.robolectric.shadows.util.DataSource#toDataSource(String)} and\nthen calls {@link #addFrame(DataSource, long, Bitmap)}. This\nmethod is retained mostly for backwards compatibility;\nyou can call {@link #addFrame(DataSource, long, Bitmap)} directly.\n\n@param path the path to the data source.\n@param time the playback time at which the specified bitmap\nshould be retrieved.\n@param bitmap the bitmap to retrieve.\n" 101 }, 102 "addFrame(org.robolectric.shadows.util.DataSource,long,android.graphics.Bitmap)": { 103 "isImplementation": false, 104 "modifiers": [ 105 "public", 106 "static" 107 ], 108 "params": [ 109 "ds", 110 "time", 111 "bitmap" 112 ], 113 "returnType": "void", 114 "exceptions": [], 115 "name": "addFrame(org.robolectric.shadows.util.DataSource,long,android.graphics.Bitmap)" 116 }, 117 "addMetadata(java.lang.String,int,java.lang.String)": { 118 "isImplementation": false, 119 "modifiers": [ 120 "public", 121 "static" 122 ], 123 "params": [ 124 "path", 125 "keyCode", 126 "value" 127 ], 128 "returnType": "void", 129 "exceptions": [], 130 "name": "addMetadata(java.lang.String,int,java.lang.String)", 131 "documentation": "Adds the given keyCode/value pair for the given data source.\nUses \u003ctt\u003epath\u003c/tt\u003e to call {@link org.robolectric.shadows.util.DataSource#toDataSource(String)} and\nthen calls {@link #addMetadata(DataSource, int, String)}. This\nmethod is retained mostly for backwards compatibility;\nyou can call {@link #addMetadata(DataSource, int, String)} directly.\n\n@param path the path to the data source whose metadata is being set.\n@param keyCode the keyCode for the metadata being set, as used by {@link MediaMetadataRetriever#extractMetadata(int)}.\n@param value the value for the specified metadata.\n" 132 }, 133 "addMetadata(org.robolectric.shadows.util.DataSource,int,java.lang.String)": { 134 "isImplementation": false, 135 "modifiers": [ 136 "public", 137 "static" 138 ], 139 "params": [ 140 "ds", 141 "keyCode", 142 "value" 143 ], 144 "returnType": "void", 145 "exceptions": [], 146 "name": "addMetadata(org.robolectric.shadows.util.DataSource,int,java.lang.String)" 147 }, 148 "extractMetadata(int)": { 149 "isImplementation": true, 150 "modifiers": [ 151 "protected" 152 ], 153 "params": [ 154 "keyCode" 155 ], 156 "returnType": "java.lang.String", 157 "exceptions": [], 158 "name": "extractMetadata(int)" 159 }, 160 "getFrameAtTime(long,int)": { 161 "isImplementation": true, 162 "modifiers": [ 163 "protected" 164 ], 165 "params": [ 166 "timeUs", 167 "option" 168 ], 169 "returnType": "android.graphics.Bitmap", 170 "exceptions": [], 171 "name": "getFrameAtTime(long,int)" 172 }, 173 "reset()": { 174 "isImplementation": false, 175 "modifiers": [ 176 "public", 177 "static" 178 ], 179 "params": [], 180 "returnType": "void", 181 "exceptions": [], 182 "name": "reset()" 183 }, 184 "setDataSource(android.content.Context,android.net.Uri)": { 185 "isImplementation": true, 186 "modifiers": [ 187 "protected" 188 ], 189 "params": [ 190 "context", 191 "uri" 192 ], 193 "returnType": "void", 194 "exceptions": [], 195 "name": "setDataSource(android.content.Context,android.net.Uri)" 196 }, 197 "setDataSource(java.io.FileDescriptor,long,long)": { 198 "isImplementation": true, 199 "modifiers": [ 200 "protected" 201 ], 202 "params": [ 203 "fd", 204 "offset", 205 "length" 206 ], 207 "returnType": "void", 208 "exceptions": [], 209 "name": "setDataSource(java.io.FileDescriptor,long,long)" 210 }, 211 "setDataSource(java.lang.String)": { 212 "isImplementation": true, 213 "modifiers": [ 214 "protected" 215 ], 216 "params": [ 217 "path" 218 ], 219 "returnType": "void", 220 "exceptions": [], 221 "name": "setDataSource(java.lang.String)" 222 }, 223 "setDataSource(java.lang.String,java.util.Map\u003cjava.lang.String,java.lang.String\u003e)": { 224 "isImplementation": true, 225 "modifiers": [ 226 "protected" 227 ], 228 "params": [ 229 "uri", 230 "headers" 231 ], 232 "returnType": "void", 233 "exceptions": [], 234 "name": "setDataSource(java.lang.String,java.util.Map\u003cjava.lang.String,java.lang.String\u003e)" 235 }, 236 "setDataSource(org.robolectric.shadows.util.DataSource)": { 237 "isImplementation": false, 238 "modifiers": [ 239 "public" 240 ], 241 "params": [ 242 "dataSource" 243 ], 244 "returnType": "void", 245 "exceptions": [], 246 "name": "setDataSource(org.robolectric.shadows.util.DataSource)" 247 } 248 }, 249 "imports": [ 250 "org.robolectric.shadows.util.DataSource.toDataSource", 251 "android.content.Context", 252 "android.graphics.Bitmap", 253 "android.media.MediaMetadataRetriever", 254 "android.net.Uri", 255 "java.io.FileDescriptor", 256 "java.util.HashMap", 257 "java.util.Map", 258 "org.robolectric.annotation.Implementation", 259 "org.robolectric.annotation.Implements", 260 "org.robolectric.annotation.Resetter", 261 "org.robolectric.shadows.util.DataSource" 262 ], 263 "name": "org.robolectric.shadows.ShadowMediaMetadataRetriever" 264}