Home
last modified time | relevance | path

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

12

/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DRedactingFileDescriptorTest.java52 private File mFile; field in RedactingFileDescriptorTest
57 mFile = File.createTempFile("redacting", "dat"); in setUp()
58 try (FileOutputStream out = new FileOutputStream(mFile)) { in setUp()
67 mFile.delete(); in tearDown()
79 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_ONLY, in testSingleByte()
95 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_ONLY, in testRanges()
117 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_ONLY, in testEntireFile()
130 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testReadWrite()
187 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeAtStart()
199 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeAtOffset()
[all …]
/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/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/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/functional/com/android/documentsui/archives/
DWriteableArchiveTest.java48 private File mFile = null; field in WriteableArchiveTest
56 mFile = mTestUtils.createTemporaryFile(); in setUp()
60 ParcelFileDescriptor.open(mFile, ParcelFileDescriptor.MODE_WRITE_ONLY), in setUp()
70 if (mFile != null) { in tearDown()
71 mFile.delete(); in tearDown()
185 zip = new ZipFile(mFile); in testAddDirectory()
253 zip = new ZipFile(mFile); in testAddFile()
255 throw new IOException(mFile.getAbsolutePath()); in testAddFile()
282 zip = new ZipFile(mFile); in testAddFile_empty()
284 throw new IOException(mFile.getAbsolutePath()); in testAddFile_empty()
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
DUrisSupplier.java114 private final File mFile; field in UrisSupplier.JumboUrisSupplier
123 mFile = storage.getFile(tag); in JumboUrisSupplier()
124 assert(mFile.exists()); in JumboUrisSupplier()
137 mFile = clipStore.getFile(tag); in JumboUrisSupplier()
148 ClipStorageReader reader = storage.createReader(mFile); in getUris()
171 mFile.delete(); in dispose()
178 builder.append("file=").append(mFile.getAbsolutePath()); in toString()
186 dest.writeString(mFile.getAbsolutePath()); in writeToParcel()
191 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/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/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/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()
DSaveVideoFileInfo.java22 public File mFile = null; field in SaveVideoFileInfo
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/
DSampleChunk.java58 private final File mFile; field in SampleChunk
294 mFile = file; in SampleChunk()
307 mFile = file; in SampleChunk()
315 mAccessFile = new RandomAccessFile(mFile, "r"); in openRead()
335 mAccessFile = new RandomAccessFile(mFile, "rw"); in openWrite()
452 mFile.delete(); in release()
/packages/modules/ExtServices/tests/src/android/ext/services/storage/
DCacheQuotaServiceImplTest.java51 @Mock private File mFile; field in CacheQuotaServiceImplTest
64 mStorageVolumes.add(makeNewStorageVolume("1", mFile, sTestVolUuid)); in setUp()
68 when(mFile.getUsableSpace()).thenReturn(10000L); in setUp()
108 mStorageVolumes.add(makeNewStorageVolume("2", mFile, sSecondTestVolUuid)); in testTwoAppsTwoVolumes()
134 mStorageVolumes.add(makeNewStorageVolume("2", mFile, sSecondTestVolUuid)); in testTwoAppsTwoVolumesTwoUuidsShouldBESeparate()
/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/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/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/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/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()
DVideoUtils.java61 genVideoUsingMuxer(filePath, dstFileInfo.mFile.getPath(), -1, -1, in startMute()
83 File dst = dstFileInfo.mFile; in startMuteUsingMp4Parser()

12