shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaMetadataRetriever.java
public static void addMetadata(String path, int keyCode, String value) {
    addMetadata(toDataSource(path), keyCode, value);
  }
public static void addMetadata(String path, int keyCode, String value) {
    addMetadata(toDataSource(path), keyCode, value);
  }
Adds the given keyCode/value pair for the given data source.
Uses <tt>path</tt> to call {@link org.robolectric.shadows.util.DataSource#toDataSource(String)} and
then calls {@link #addMetadata(DataSource, int, String)}. This
method is retained mostly for backwards compatibility;
you can call {@link #addMetadata(DataSource, int, String)} directly.

@param path the path to the data source whose metadata is being set.
@param keyCode the keyCode for the metadata being set, as used by {@link MediaMetadataRetriever#extractMetadata(int)}.
@param value the value for the specified metadata.