/packages/apps/Camera2/tests/src/com/android/camera/functional/ |
D | VideoCaptureIntentTest.java | 42 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/ |
D | VideoCaptureIntentTest.java | 49 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/ |
D | TemporaryFile.java | 40 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/ |
D | BinaryTempFileBody.java | 43 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/ |
D | PMCStatusLogger.java | 35 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/ |
D | ImapTempFileLiteral.java | 40 /* 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/ |
D | ImapTempFileLiteral.java | 43 /* 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/ |
D | TemporarySessionFile.java | 38 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/ |
D | WriteableArchiveTest.java | 49 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/ |
D | UrisSupplier.java | 109 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/ |
D | DownloadsFilePreference.java | 32 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/ |
D | SampleChunk.java | 44 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/ |
D | JsonVhalEventGenerator.java | 35 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/ |
D | SaveVideoFileUtils.java | 53 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/ |
D | UfsWearInformationProvider.java | 43 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/ |
D | FileWallpaperInfo.java | 26 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/ |
D | ProcessMetricsJobService.java | 92 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()
|
D | DeferredMetricsReader.java | 42 private final File mFile; field in DeferredMetricsReader 50 mFile = checkNotNull(file); in DeferredMetricsReader() 55 .setExtras(PersistableBundle.forPair(EXTRA_FILE_PATH, mFile.getAbsolutePath())) in scheduleDumpMetrics()
|
D | DeferredMetricsWriter.java | 49 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/ |
D | Assistant.java | 101 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/ |
D | FileAsset.java | 31 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/ |
D | Proxy.java | 35 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/ |
D | CacheQuotaServiceImplTest.java | 48 @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/ |
D | BinaryDictionaryGetter.java | 144 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/ |
D | TrimVideo.java | 241 VideoUtils.startTrim(mSrcFile, mDstFileInfo.mFile, in trimVideo() 264 intent.setDataAndType(Uri.fromFile(mDstFileInfo.mFile), "video/*"); in trimVideo()
|