Home
last modified time | relevance | path

Searched refs:inferContentType (Results 1 – 5 of 5) sorted by relevance

/external/exoplayer/tree/library/common/src/test/java/com/google/android/exoplayer2/util/
DUtilTest.java88 assertThat(Util.inferContentType("http://a.b/c.ism")).isEqualTo(C.TYPE_SS); in inferContentType_returnsInferredResult()
89 assertThat(Util.inferContentType("http://a.b/c.isml")).isEqualTo(C.TYPE_SS); in inferContentType_returnsInferredResult()
90 assertThat(Util.inferContentType("http://a.b/c.ism/Manifest")).isEqualTo(C.TYPE_SS); in inferContentType_returnsInferredResult()
91 assertThat(Util.inferContentType("http://a.b/c.isml/manifest")).isEqualTo(C.TYPE_SS); in inferContentType_returnsInferredResult()
92 assertThat(Util.inferContentType("http://a.b/c.isml/manifest(filter=x)")).isEqualTo(C.TYPE_SS); in inferContentType_returnsInferredResult()
94 assertThat(Util.inferContentType("http://a.b/c.ism/prefix-manifest")).isEqualTo(C.TYPE_OTHER); in inferContentType_returnsInferredResult()
95 assertThat(Util.inferContentType("http://a.b/c.ism/manifest-suffix")).isEqualTo(C.TYPE_OTHER); in inferContentType_returnsInferredResult()
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/util/
DUtil.java1633 public static int inferContentType(Uri uri, @Nullable String overrideExtension) { in inferContentType() method in Util
1635 ? inferContentType(uri) in inferContentType()
1636 : inferContentType("." + overrideExtension); in inferContentType()
1646 public static int inferContentType(Uri uri) { in inferContentType() method in Util
1648 return path == null ? C.TYPE_OTHER : inferContentType(path); in inferContentType()
1658 public static int inferContentType(String fileName) { in inferContentType() method in Util
1680 return Util.inferContentType(uri); in inferContentTypeWithMimeType()
1690 return Util.inferContentType(uri); in inferContentTypeWithMimeType()
/external/exoplayer/tree/demos/gl/src/main/java/com/google/android/exoplayer2/gldemo/
DMainActivity.java162 @C.ContentType int type = Util.inferContentType(uri, intent.getStringExtra(EXTENSION_EXTRA)); in initializePlayer()
/external/exoplayer/tree/demos/surface/src/main/java/com/google/android/exoplayer2/surfacedemo/
DMainActivity.java207 @C.ContentType int type = Util.inferContentType(uri, intent.getStringExtra(EXTENSION_EXTRA)); in initializePlayer()
/external/exoplayer/tree/demos/main/src/main/java/com/google/android/exoplayer2/demo/
DIntentUtil.java144 @C.ContentType int contentType = Util.inferContentType(uri, extension); in inferAdaptiveStreamMimeType()