Lines Matching defs:tempFile
215 File tempFile = (File) parameter;
217 tempFile.renameTo(cacheFile);
430 * @param tempFile The temporary file where the image is stored. This file
435 public File insertIntoCache(Uri contentUri, MediaSize size, File tempFile) {
436 long fileSize = tempFile.length();
448 if (tempFile.renameTo(cacheFile)) {
451 Log.w(TAG, "Could not update cached file with " + tempFile);
452 tempFile.delete();
456 ensureFreeCacheSpace(tempFile.length(), size);
457 id = mDatabaseHelper.insert(contentUri, size, mMoveTempToCache, tempFile);
629 File tempFile = new File(getCacheDir(), String.valueOf(imageNumber) + TEMP_IMAGE_EXTENSION);
631 boolean retrieved = retriever.getMedia(uri, size, tempFile);
634 ensureFreeCacheSpace(tempFile.length(), size);
635 long id = mDatabaseHelper.insert(uri, size, mMoveTempToCache, tempFile);