Searched refs:inferContentType (Results 1 – 5 of 5) sorted by relevance
88 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()
1633 public static int inferContentType(Uri uri, @Nullable String overrideExtension) { in inferContentType() method in Util1635 ? inferContentType(uri) in inferContentType()1636 : inferContentType("." + overrideExtension); in inferContentType()1646 public static int inferContentType(Uri uri) { in inferContentType() method in Util1648 return path == null ? C.TYPE_OTHER : inferContentType(path); in inferContentType()1658 public static int inferContentType(String fileName) { in inferContentType() method in Util1680 return Util.inferContentType(uri); in inferContentTypeWithMimeType()1690 return Util.inferContentType(uri); in inferContentTypeWithMimeType()
162 @C.ContentType int type = Util.inferContentType(uri, intent.getStringExtra(EXTENSION_EXTRA)); in initializePlayer()
207 @C.ContentType int type = Util.inferContentType(uri, intent.getStringExtra(EXTENSION_EXTRA)); in initializePlayer()
144 @C.ContentType int contentType = Util.inferContentType(uri, extension); in inferAdaptiveStreamMimeType()