Home
last modified time | relevance | path

Searched refs:mFile (Results 1 – 25 of 30) sorted by relevance

12

/packages/apps/Camera2/tests/src/com/android/camera/functional/
DVideoCaptureIntentTest.java42 private File mFile, mFile2; field in VideoCaptureIntentTest
73 if (mFile != null) mFile.delete(); in tearDown()
94 mFile = new File(Environment.getExternalStorageDirectory(), "video.tmp"); in testExtraOutput()
96 Uri uri = Uri.fromFile(mFile); in testExtraOutput()
132 mFile = new File(Environment.getExternalStorageDirectory(), "video.tmp"); in testExtraSizeLimit()
135 Uri uri = Uri.fromFile(mFile); in testExtraSizeLimit()
146 long length = mFile.length(); in testExtraSizeLimit()
154 mFile = new File(Environment.getExternalStorageDirectory(), "video.tmp"); in testExtraDurationLimit()
157 Uri uri = Uri.fromFile(mFile); in testExtraDurationLimit()
176 mFile = new File(Environment.getExternalStorageDirectory(), "video.tmp");
[all …]
/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
DVideoCaptureIntentTest.java49 private File mFile, mFile2; field in VideoCaptureIntentTest
80 if (mFile != null) mFile.delete(); in tearDown()
101 mFile = new File(Environment.getExternalStorageDirectory(), "video.tmp"); in testExtraOutput()
103 Uri uri = Uri.fromFile(mFile); in testExtraOutput()
155 mFile = new File(Environment.getExternalStorageDirectory(), "video.tmp"); in testExtraSizeLimit()
158 Uri uri = Uri.fromFile(mFile); in testExtraSizeLimit()
169 long length = mFile.length(); in testExtraSizeLimit()
177 mFile = new File(Environment.getExternalStorageDirectory(), "video.tmp"); in testExtraDurationLimit()
180 Uri uri = Uri.fromFile(mFile); in testExtraDurationLimit()
199 mFile = new File(Environment.getExternalStorageDirectory(), "video.tmp");
[all …]
/packages/services/Car/tests/common_utils/src/com/android/car/test/utils/
DTemporaryFile.java40 private File mFile; field in TemporaryFile
46 mFile = File.createTempFile(prefix, String.valueOf(SystemClock.elapsedRealtimeNanos())); in TemporaryFile()
50 mFile = path; in TemporaryFile()
55 Files.delete(mFile.toPath()); in close()
59 BufferedWriter writer = new BufferedWriter(new FileWriter(mFile)); in write()
65 return new FileWriter(mFile); in newFileWriter()
69 return mFile; in getFile()
72 public Path getPath() { return mFile.toPath(); } in getPath()
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
DBinaryTempFileBody.java43 private File mFile; field in BinaryTempFileBody
51 mFile = new File(filePath); in setFile()
55 mFile = File.createTempFile("body", null, TempDirectory.getTempDirectory()); in getOutputStream()
56 mFile.deleteOnExit(); in getOutputStream()
57 return new FileOutputStream(mFile); in getOutputStream()
63 return new BinaryTempFileBodyInputStream(new FileInputStream(mFile)); in getInputStream()
77 mFile.delete(); in writeTo()
88 mFile.delete(); in close()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DPMCStatusLogger.java35 private File mFile; field in PMCStatusLogger
50 mFile = new File(LOG_DIR + "/" + fileName); in PMCStatusLogger()
51 if (mFile.exists()) mFile.delete(); in PMCStatusLogger()
52 mFile.createNewFile(); in PMCStatusLogger()
67 FileWriter fos = new FileWriter(mFile); in logStatus()
102 FileWriter fos = new FileWriter(mFile); in flash()
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/
DImapTempFileLiteral.java40 /* package for test */ final File mFile; field in ImapTempFileLiteral
47 mFile = File.createTempFile("imap", ".tmp", TempDirectory.getTempDirectory()); in ImapTempFileLiteral()
53 OutputStream out = new FileOutputStream(mFile); in ImapTempFileLiteral()
76 return new FileInputStream(mFile); in getAsStream()
105 if (!isDestroyed() && mFile.exists()) { in destroy()
106 mFile.delete(); in destroy()
121 return mFile.exists(); in tempFileExistsForTest()
/packages/apps/Email/provider_src/com/android/email/service/
DImapTempFileLiteral.java43 /* package for test */ final File mFile; field in ImapTempFileLiteral
50 mFile = File.createTempFile("imap", ".tmp", TempDirectory.getTempDirectory()); in ImapTempFileLiteral()
56 OutputStream out = new FileOutputStream(mFile); in ImapTempFileLiteral()
79 return new FileInputStream(mFile); in getAsStream()
108 if (!isDestroyed() && mFile.exists()) { in destroy()
109 mFile.delete(); in destroy()
124 return mFile.exists(); in tempFileExistsForTest()
/packages/apps/Camera2/src/com/android/camera/session/
DTemporarySessionFile.java38 private File mFile; field in TemporarySessionFile
45 mFile = null; in TemporarySessionFile()
57 if (mFile != null) { in prepare()
62 mFile = mSessionStorageManager.createTemporaryOutputPath(mSessionDirectory, mTitle); in prepare()
73 return mFile != null; in isUsable()
82 return mFile; in getFile()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
DWriteableArchiveTest.java49 private File mFile = null; field in WriteableArchiveTest
57 mFile = mTestUtils.createTemporaryFile(); in setUp()
61 ParcelFileDescriptor.open(mFile, ParcelFileDescriptor.MODE_WRITE_ONLY), in setUp()
71 if (mFile != null) { in tearDown()
72 mFile.delete(); in tearDown()
186 zip = new ZipFile(mFile); in testAddDirectory()
254 zip = new ZipFile(mFile); in testAddFile()
256 throw new IOException(mFile.getAbsolutePath()); in testAddFile()
283 zip = new ZipFile(mFile); in testAddFile_empty()
285 throw new IOException(mFile.getAbsolutePath()); in testAddFile_empty()
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
DUrisSupplier.java109 private final File mFile; field in UrisSupplier.JumboUrisSupplier
118 mFile = storage.getFile(tag); in JumboUrisSupplier()
119 assert(mFile.exists()); in JumboUrisSupplier()
132 mFile = clipStore.getFile(tag); in JumboUrisSupplier()
143 ClipStorageReader reader = storage.createReader(mFile); in getUris()
166 mFile.delete(); in dispose()
173 builder.append("file=").append(mFile.getAbsolutePath()); in toString()
181 dest.writeString(mFile.getAbsolutePath()); in writeToParcel()
186 mFile = new File(in.readString()); in JumboUrisSupplier()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DDownloadsFilePreference.java32 private File mFile; field in DownloadsFilePreference
36 mFile = file; in DownloadsFilePreference()
37 setKey(mFile.getPath()); in DownloadsFilePreference()
42 context, mFile.lastModified(), DateUtils.FORMAT_SHOW_DATE)); in DownloadsFilePreference()
43 setIcon(iconProvider.loadMimeIcon(IconProvider.getMimeType(mFile))); in DownloadsFilePreference()
51 return mFile; in getFile()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DSampleChunk.java44 private final File mFile; field in SampleChunk
277 mFile = file; in SampleChunk()
288 mFile = file; in SampleChunk()
296 mAccessFile = new RandomAccessFile(mFile, "r"); in openRead()
316 mAccessFile = new RandomAccessFile(mFile, "rw"); in openWrite()
414 mFile.delete(); in release()
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DJsonVhalEventGenerator.java35 private File mFile; field in JsonVhalEventGenerator
45 mFile = file; in setJsonFile()
54 .setStringValue(mFile.getAbsolutePath()) in start()
64 .setStringValue(mFile.getAbsolutePath()) in stop()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DSaveVideoFileUtils.java53 dstFileInfo.mFile = new File(dstFileInfo.mDirectory, dstFileInfo.mFileName + ".mp4"); in getDstMp4FileInfo()
97 values.put(Video.Media.DISPLAY_NAME, mDstFileInfo.mFile.getName()); in insertContent()
102 values.put(Video.Media.DATA, mDstFileInfo.mFile.getAbsolutePath()); in insertContent()
103 values.put(Video.Media.SIZE, mDstFileInfo.mFile.length()); in insertContent()
104 int durationMs = retriveVideoDurationMs(mDstFileInfo.mFile.getPath()); in insertContent()
/packages/services/Car/service/src/com/android/car/storagemonitoring/
DUfsWearInformationProvider.java43 private File mFile; field in UfsWearInformationProvider
51 mFile = file; in UfsWearInformationProvider()
59 lifetimeData = java.nio.file.Files.readAllLines(mFile.toPath()); in load()
61 Log.w(CarLog.TAG_STORAGE, "error reading " + mFile, e); in load()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
DFileWallpaperInfo.java26 private final File mFile; field in FileWallpaperInfo
30 mFile = target; in FileWallpaperInfo()
37 new BitmapRegionTileSource.FilePathBitmapSource(mFile, a); in onClick()
51 final InputStreamProvider isp = InputStreamProvider.fromUri(a, Uri.fromFile(mFile)); in onSave()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/
DProcessMetricsJobService.java92 private final File mFile; field in ProcessMetricsJobService.ReadDeferredMetricsAsyncTask
98 mFile = checkNotNull(file); in ReadDeferredMetricsAsyncTask()
105 try (InputStream inputStream = new FileInputStream(mFile)) { in doInBackground()
115 mFile.delete(); in doInBackground()
DDeferredMetricsReader.java42 private final File mFile; field in DeferredMetricsReader
50 mFile = checkNotNull(file); in DeferredMetricsReader()
55 .setExtras(PersistableBundle.forPair(EXTRA_FILE_PATH, mFile.getAbsolutePath())) in scheduleDumpMetrics()
DDeferredMetricsWriter.java49 private final File mFile; field in DeferredMetricsWriter
52 mFile = checkNotNull(file); in DeferredMetricsWriter()
58 final OutputStream outputStream = new FileOutputStream(mFile, true); in write()
/packages/modules/ExtServices/src/android/ext/services/notification/
DAssistant.java101 private AtomicFile mFile = null; field in Assistant
142 infile = mFile.openRead(); in loadFile()
185 stream = mFile.startWrite(); in saveFile()
194 mFile.finishWrite(stream); in saveFile()
197 mFile.failWrite(stream); in saveFile()
417 mFile = new AtomicFile(new File(new File( in onListenerConnected()
462 mFile = file; in setFile()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DFileAsset.java31 private final File mFile; field in FileAsset
37 mFile = file; in FileAsset()
43 return new FileInputStream(mFile.getAbsolutePath()); in openInputStream()
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DProxy.java35 private final ArchiveHandle mFile; field in Proxy
42 mFile = file; in Proxy()
101 mInputStream = mFile.getInputStream(mEntry); in recreateInputStream()
/packages/modules/ExtServices/tests/src/android/ext/services/storage/
DCacheQuotaServiceImplTest.java48 @Mock private File mFile; field in CacheQuotaServiceImplTest
64 when(mFile.getUsableSpace()).thenReturn(10000L); in setUp()
65 when(mVolume.getPath()).thenReturn(mFile); in setUp()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DBinaryDictionaryGetter.java144 final File mFile; field in BinaryDictionaryGetter.FileAndMatchLevel
147 mFile = file; in FileAndMatchLevel()
193 result[index++] = entry.mFile; in getCachedWordLists()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DTrimVideo.java241 VideoUtils.startTrim(mSrcFile, mDstFileInfo.mFile, in trimVideo()
264 intent.setDataAndType(Uri.fromFile(mDstFileInfo.mFile), "video/*"); in trimVideo()

12