shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaRouter.java
private static AudioRoutesInfo newAudioRouteInfo(@Nullable String bluetoothDeviceName) {
    Parcel p = Parcel.obtain();
    TextUtils.writeToParcel(bluetoothDeviceName, p, /* parcelableFlags= */ 0);
    p.setDataPosition(0);
    return AudioRoutesInfo.CREATOR.createFromParcel(p);
  }
private static AudioRoutesInfo newAudioRouteInfo(@Nullable String bluetoothDeviceName) {
    Parcel p = Parcel.obtain();
    TextUtils.writeToParcel(bluetoothDeviceName, p, /* parcelableFlags= */ 0);
    p.setDataPosition(0);
    return AudioRoutesInfo.CREATOR.createFromParcel(p);
  }
private static AudioRoutesInfo newAudioRouteInfo ( @ Nullable String bluetoothDeviceName ) { Parcel p = Parcel . obtain ( ) ; TextUtils . writeToParcel ( bluetoothDeviceName , p , /* parcelableFlags= */ 0 ) ; p . setDataPosition ( 0 ) ; return AudioRoutesInfo . CREATOR . createFromParcel ( p ) ; }
Creates a new {@link AudioRoutesInfo} to be used for updating the Bluetooth audio route.

@param bluetoothDeviceName the name of the Bluetooth device or null to indicate that the
already-existing Bluetooth A2DP device should be removed
Creates a new { @link AudioRoutesInfo } to be used for updating the Bluetooth audio route .