Home | History | Annotate | Download | only in mms

Lines Matching refs:File

6 import java.io.File;
19 * The TempFileProvider manages a uri, backed by a file, for passing to the camera app for
20 * capturing pictures and videos and storing the data in a file in the messaging app.
68 File file = new File(fileName);
70 // make sure the path is valid and directories created for this file.
71 File parentFile = file.getParentFile();
86 pfd = ParcelFileDescriptor.open(file, modeFlags);
102 // wants a file descriptor to write image data to.
122 * This is the scrap file we use to store the media attachment when the user
125 * to this file. It's named '.temp.jpg' so Gallery won't pick it up.
136 * renameScrapFile renames the single scrap file to a new name so newer uses of the scrap
137 * file won't overwrite the previously captured data.
138 * @param fileExtension file extension for the temp file, typically ".jpg" or ".3gp"
139 * @param uniqueIdentifier a separator to add to the file to make it unique,
141 * @return uri of renamed file. If there's an error renaming, null will be returned
146 // There's only a single scrap file, but there can be several slides. We rename
147 // the scrap file to a new scrap file with the slide number as part of the filename.
150 // identifier. The content of the file may be a picture or a .3gp video.
154 File newTempFile = new File(getScrapPath(context, ".temp" + uniqueIdentifier +
156 File oldTempFile = new File(filePath);
157 // remove any existing file before rename
166 * Pass in a path to a file and this function will return true if it thinks the path
168 * @param path full path of a file
169 * @return true if path is a scrap file path
172 // An admittedly weak determination of a temp file, but sufficient for current needs.
173 // For now, the penalty of returning true for a file that isn't a temp file is simply
174 // not storing the file's thumbnail in an on-disk thumbnail cache.