Lines Matching refs:type
51 String type = URLDecoder.decode(segment[2], CHARSET_UTF_8);
52 return new UriImage(mApplication, path, Uri.parse(uri), type);
62 String type = MimeTypeMap.getSingleton()
64 if (type != null) return type;
66 // Assume the type is image if the type cannot be resolved
68 String type = mApplication.getContentResolver().getType(uri);
69 if (type == null) type = "image/*";
70 return type;
74 public Path findPathByUri(Uri uri, String type) {
77 // Try to find a most specific type but it has to be started with "image/"
78 if ((type == null) || (IMAGE_TYPE_ANY.equals(type)
80 type = mimeType;
83 if (type.startsWith(IMAGE_TYPE_PREFIX)) {
87 + "/" +URLEncoder.encode(type, CHARSET_UTF_8));