shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaMetadataRetriever.java
public static void addFrame(String uri, Map<String, String> headers, long time, Bitmap bitmap) {
    addFrame(toDataSource(uri, headers), time, bitmap);
  }
public static void addFrame(String uri, Map<String, String> headers, long time, Bitmap bitmap) {
    addFrame(toDataSource(uri, headers), time, bitmap);
  }
Adds the given bitmap at the given time for the given data source.
Uses <tt>path</tt> to call {@link org.robolectric.shadows.util.DataSource#toDataSource(String, Map)} and
then calls {@link #addFrame(DataSource, long, Bitmap)}. This
method is retained mostly for backwards compatibility;
you can call {@link #addFrame(DataSource, long, Bitmap)} directly.

@param uri the Uri of the data source.
@param headers the headers to use when requesting the specified uri.
@param time the playback time at which the specified bitmap
should be retrieved.
@param bitmap the bitmap to retrieve.