Package org.robolectric.shadows
Class ShadowMediaCodecList
- java.lang.Object
-
- org.robolectric.shadows.ShadowMediaCodecList
-
@Implements(value=android.media.MediaCodecList.class, minSdk=21) public class ShadowMediaCodecList extends Object
Implementation ofMediaCodecList.Custom
MediaCodecInfocan be created usingMediaCodecInfoBuilderand added to the list of codecs viaaddCodec(android.media.MediaCodecInfo).
-
-
Constructor Summary
Constructors Constructor Description ShadowMediaCodecList()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddCodec(MediaCodecInfo mediaCodecInfo)Add aMediaCodecInfoto the list of MediaCodecInfos.protected static MediaCodecInfogetNewCodecInfoAt(int index)protected static intnative_getCodecCount()protected static Map<String,Object>native_getGlobalSettings()static voidreset()
-
-
-
Method Detail
-
addCodec
public static void addCodec(MediaCodecInfo mediaCodecInfo)
Add aMediaCodecInfoto the list of MediaCodecInfos.- Parameters:
mediaCodecInfo-MediaCodecInfodescribing the codec. UseMediaCodecInfoBuilderto create an instance of it.
-
reset
@Resetter public static void reset()
-
native_getCodecCount
@Implementation protected static int native_getCodecCount()
-
getNewCodecInfoAt
@Implementation protected static MediaCodecInfo getNewCodecInfoAt(int index)
-
native_getGlobalSettings
@Implementation(minSdk=23) protected static Map<String,Object> native_getGlobalSettings()
-
-