Lines Matching defs:filePath
78 * @param filePath the path of image file
84 public static Bitmap createImageThumbnail(String filePath, int kind) {
94 MediaFileType fileType = MediaFile.getFileType(filePath);
96 createThumbnailFromEXIF(filePath, targetSize, maxPixels, sizedThumbnailBitmap);
103 stream = new FileInputStream(filePath);
123 Log.e(TAG, "Unable to decode file " + filePath + ". OutOfMemoryError.", oom);
149 * @param filePath the path of video file
152 public static Bitmap createVideoThumbnail(String filePath, int kind) {
156 retriever.setDataSource(filePath);
472 private static void createThumbnailFromEXIF(String filePath, int targetSize,
474 if (filePath == null) return;
479 exif = new ExifInterface(filePath);
500 BitmapFactory.decodeFile(filePath, fullOptions);
518 sizedThumbBitmap.mBitmap = BitmapFactory.decodeFile(filePath, fullOptions);