Home
last modified time | relevance | path

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

/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/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/Dialer/java/com/android/voicemail/impl/mail/internet/
DBinaryTempFileBody.java39 private File mFile; field in BinaryTempFileBody
48 mFile = new File(filePath); in setFile()
52 mFile = File.createTempFile("body", null, TempDirectory.getTempDirectory()); in getOutputStream()
53 mFile.deleteOnExit(); in getOutputStream()
54 return new FileOutputStream(mFile); in getOutputStream()
60 return new BinaryTempFileBodyInputStream(new FileInputStream(mFile)); in getInputStream()
72 mFile.delete(); in writeTo()
84 mFile.delete(); in close()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
DWriteableArchiveTest.java51 private File mFile = null; field in WriteableArchiveTest
59 mFile = mTestUtils.createTemporaryFile(); in setUp()
63 ParcelFileDescriptor.open(mFile, ParcelFileDescriptor.MODE_WRITE_ONLY), in setUp()
73 if (mFile != null) { in tearDown()
74 mFile.delete(); in tearDown()
188 zip = new ZipFile(mFile); in testAddDirectory()
256 zip = new ZipFile(mFile); in testAddFile()
258 throw new IOException(mFile.getAbsolutePath()); in testAddFile()
285 zip = new ZipFile(mFile); in testAddFile_empty()
287 throw new IOException(mFile.getAbsolutePath()); in testAddFile_empty()
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
DUrisSupplier.java108 private final File mFile; field in UrisSupplier.JumboUrisSupplier
117 mFile = storage.getFile(tag); in JumboUrisSupplier()
118 assert(mFile.exists()); in JumboUrisSupplier()
131 mFile = clipStore.getFile(tag); in JumboUrisSupplier()
142 ClipStorageReader reader = storage.createReader(mFile); in getUris()
165 mFile.delete(); in dispose()
172 builder.append("file=").append(mFile.getAbsolutePath()); in toString()
180 dest.writeString(mFile.getAbsolutePath()); in writeToParcel()
185 mFile = new File(in.readString()); in JumboUrisSupplier()
/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/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/Dialer/java/com/android/voicemail/impl/mail/store/imap/
DImapTempFileLiteral.java36 /* package for test */ final File mFile; field in ImapTempFileLiteral
43 mFile = File.createTempFile("imap", ".tmp", TempDirectory.getTempDirectory()); in ImapTempFileLiteral()
49 OutputStream out = new FileOutputStream(mFile); in ImapTempFileLiteral()
72 return new FileInputStream(mFile); in getAsStream()
101 if (!isDestroyed() && mFile.exists()) { in destroy()
102 mFile.delete(); in destroy()
117 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/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/src/com/android/tv/tuner/exoplayer/buffer/
DSampleChunk.java46 private final File mFile; field in SampleChunk
279 mFile = file; in SampleChunk()
289 mFile = file; in SampleChunk()
297 mAccessFile = new RandomAccessFile(mFile, "r"); in openRead()
317 mAccessFile = new RandomAccessFile(mFile, "rw"); in openWrite()
412 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/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/Car/SystemUpdater/src/com/android/car/systemupdater/
DSystemUpdaterActivity.java182 File mFile; field in SystemUpdaterActivity.PackageVerifier
187 mFile = file; in doInBackground()
205 mVerifyPackageDialog.setTitle("Copying " + mFile.getName() in onPostExecute()
208 mVerifyPackageDialog.setMax((int) (mFile.length() / 1024)); in onPostExecute()
210 new CopyFile().execute(mFile); in onPostExecute()
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DProxy.java35 private final StrictJarFile mFile; field in Proxy
41 mFile = file; in Proxy()
93 mInputStream = mFile.getInputStream(mEntry); in recreateInputStream()
/packages/services/Car/tools/bootanalyze/stressfs/src/com/android/car/test/stressfs/
DWritingService.java76 private final File mFile; field in WritingService.WriteToDisk
86 mFile = file; in WriteToDisk()
97 FileOutputStream fos = new FileOutputStream(mFile); in run()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DOpenExternalDirectoryActivity.java374 private File mFile; field in OpenExternalDirectoryActivity.OpenExternalDirectoryDialogFragment
390 mFile = new File(args.getString(EXTRA_FILE)); in onCreate()
421 final String directory = mFile.getName(); in onCreateDialog()
431 mActivity.getExternalStorageClient(), mFile); in onCreateDialog()
497 logValidScopedAccessRequest(activity, mFile.getName(), SCOPED_DIRECTORY_ACCESS_DENIED); in onCancel()
/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()
DMuteVideo.java86 intent.setDataAndType(Uri.fromFile(mDstFileInfo.mFile), "video/*"); in muteInBackground()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DAutomaticStorageManagementJobServiceTest.java77 @Mock private File mFile; field in AutomaticStorageManagementJobServiceTest
99 when(mVolumeInfo.getPath()).thenReturn(mFile); in setUp()