Searched refs:MimeMap (Results 1 – 8 of 8) sorted by relevance
30 import libcore.content.type.MimeMap;45 private MimeMap mimeMap;46 private MimeMap emptyMap;49 mimeMap = MimeMap.getDefault(); in setUp()50 emptyMap = MimeMap.builder().build(); in setUp()72 mimeMap = MimeMap.builder() in caseNormalization_key()95 mimeMap = MimeMap.builder() in caseNormalization_value()107 mimeMap = MimeMap.builder() in unmapped()118 assertSame(MimeMap.getDefault(), MimeMap.getDefault()); in getDefault_returnsSameInstance()122 MimeMap originalDefault = MimeMap.getDefault(); in getDefault_afterSetDefaultSupplier()[all …]
45 public final class MimeMap {46 method public libcore.content.type.MimeMap.Builder buildUpon();47 method public static libcore.content.type.MimeMap.Builder builder();49 method @NonNull public static libcore.content.type.MimeMap getDefault();55 …static void setDefaultSupplier(@NonNull java.util.function.Supplier<libcore.content.type.MimeMap>);58 public static final class MimeMap.Builder {59 method public libcore.content.type.MimeMap build();60 …method public libcore.content.type.MimeMap.Builder put(@NonNull String, @NonNull java.util.List<ja…
38 public final class MimeMap { class60 private static volatile MemoizingSupplier<@NonNull MimeMap> instanceSupplier =71 private MimeMap(Map<String, String> mimeToExt, Map<String, String> extToMime) { in MimeMap() method in MimeMap88 public static @NonNull MimeMap getDefault() { in getDefault()104 public static void setDefaultSupplier(@NonNull Supplier<@NonNull MimeMap> mimeMapSupplier) { in setDefaultSupplier()207 if (!(obj instanceof MimeMap)) { in equals()210 MimeMap that = (MimeMap) obj; in equals()354 public MimeMap build() { in build()355 return new MimeMap(mimeToExt, extToMime); in build()
19 import libcore.content.type.MimeMap;40 MimeMap mimeMap = MimeMap.getDefault(); in getContentTypeFor()
40 import libcore.content.type.MimeMap;87 mimeType = MimeMap.getDefault().guessMimeTypeFromExtension(ext); in implProbeContentType()
903 public final class MimeMap {904 method public libcore.content.type.MimeMap.Builder buildUpon();905 method public static libcore.content.type.MimeMap.Builder builder();907 method @NonNull public static libcore.content.type.MimeMap getDefault();913 …static void setDefaultSupplier(@NonNull java.util.function.Supplier<libcore.content.type.MimeMap>);916 public static final class MimeMap.Builder {917 method public libcore.content.type.MimeMap build();918 …method public libcore.content.type.MimeMap.Builder put(@NonNull String, @NonNull java.util.List<ja…
92 import libcore.content.type.MimeMap;902 MimeMap testMimeMap = MimeMap.builder() in getFileNameMap_compositeExtension_customMimeMap()907 MimeMap defaultMimeMap = MimeMap.getDefault(); in getFileNameMap_compositeExtension_customMimeMap()908 MimeMap.setDefaultSupplier(() -> testMimeMap); in getFileNameMap_compositeExtension_customMimeMap()915 MimeMap.setDefaultSupplier(() -> defaultMimeMap); in getFileNameMap_compositeExtension_customMimeMap()
232 "luni/src/main/java/libcore/content/type/MimeMap.java",