Home
last modified time | relevance | path

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

/tools/apksig/src/main/java/com/android/apksig/internal/util/
DRandomAccessFileDataSink.java30 private final RandomAccessFile mFile; field in RandomAccessFileDataSink
53 mFile = file; in RandomAccessFileDataSink()
62 return mFile; in getFile()
82 synchronized (mFile) { in consume()
83 mFile.seek(mPosition); in consume()
84 mFile.write(buf, offset, length); in consume()
96 synchronized (mFile) { in consume()
97 mFile.seek(mPosition); in consume()
/tools/tradefederation/core/common_util/com/android/tradefed/result/
DFileInputStreamSource.java32 private final File mFile; field in FileInputStreamSource
37 mFile = file; in FileInputStreamSource()
48 mFile = file; in FileInputStreamSource()
61 return new FileInputStream(mFile); in createInputStream()
81 return mFile.length(); in size()
88 FileUtil.deleteFile(mFile); in cleanFile()
96 return mFile; in getFile()
/tools/tradefederation/core/javatests/com/android/tradefed/util/net/
DHttpMultipartPostTest.java40 private File mFile; field in HttpMultipartPostTest
49 mFile = File.createTempFile("http-multipart-test", null); in setUp()
50 PrintWriter writer = new PrintWriter(new FileOutputStream(mFile)); in setUp()
68 + mFile.getAbsolutePath() in testSendRequest()
85 testPost.addTextFile("param2", mFile); in testSendRequest()
92 mFile.delete(); in tearDown()
/tools/tradefederation/core/src/com/android/tradefed/log/
DSimpleFileLogger.java34 private File mFile; field in SimpleFileLogger
38 mFile.getParentFile().mkdirs(); in init()
39 mOutputStream = new FileOutputStream(mFile, true); in init()
44 if (mFile != null) { in getLog()
45 return new FileInputStreamSource(mFile); in getLog()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/
DNoisyDryRunTestTest.java56 private File mFile; field in NoisyDryRunTestTest
75 mFile = FileUtil.createTempFile("NoisyDryRunTestTest", "tmpFile"); in setUp()
82 FileUtil.deleteFile(mFile); in tearDown()
87 FileUtil.writeToFile("tf/fake\n" + "tf/fake", mFile); in testRun()
103 setter.setOptionValue("cmdfile", mFile.getAbsolutePath()); in testRun()
114 FileUtil.writeToFile("tf/fake --fail-invocation-with-cause USE_KEYSTORE@fake\n", mFile); in testRun_withKeystore()
129 setter.setOptionValue("cmdfile", mFile.getAbsolutePath()); in testRun_withKeystore()
136 FileUtil.deleteFile(mFile); in testRun_invalidCmdFile()
145 setter.setOptionValue("cmdfile", mFile.getAbsolutePath()); in testRun_invalidCmdFile()
152 FileUtil.writeToFile("tf/fake\n" + "invalid --option value2", mFile); in testRun_invalidCmdLine()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/result/
DPassingTestFileReporterTest.java41 private File mFile; field in PassingTestFileReporterTest
45 mFile = File.createTempFile("testfile", "txt"); in setUp()
48 setter.setOptionValue("test-file-to-record", mFile.getAbsolutePath()); in setUp()
55 FileUtil.deleteFile(mFile); in tearDown()
63 String output = readStringFromFile(mFile); in testPassed()
72 String output = readStringFromFile(mFile); in testFailed()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/build/
DVersionedFile.java24 private final File mFile; field in VersionedFile
28 mFile = file; in VersionedFile()
33 return mFile; in getFile()
42 return String.format("%s:%s", mFile.getAbsolutePath(), mVersion); in toString()
/tools/tradefederation/core/javatests/com/android/tradefed/build/
DBuildInfoTest.java50 private File mFile; field in BuildInfoTest
56 mFile = FileUtil.createTempFile("image", "tmp"); in setUp()
57 FileUtil.writeToFile("filedata", mFile); in setUp()
58 mBuildInfo.setFile(FILE_KEY, mFile, VERSION); in setUp()
63 FileUtil.deleteFile(mFile); in tearDown()
80 assertTrue(!mFile.getAbsolutePath().equals(copy.getFile(FILE_KEY).getAbsolutePath())); in testClone()
81 assertTrue(FileUtil.compareFileContents(mFile, copy.getFile(FILE_KEY))); in testClone()
96 assertFalse(mFile.exists()); in testCleanUp()
DDeviceFolderBuildInfoTest.java45 private File mFile; field in DeviceFolderBuildInfoTest
53 mFile = FileUtil.createTempFile("image", "tmp"); in setUp()
71 FileUtil.deleteFile(mFile); in tearDown()
90 mDeviceFolderBuildInfo.setFile("foo", mFile, "foo-version"); in testGetFiles_both()
91 mDeviceFolderBuildInfo.setDeviceImageFile(mFile, "img-version"); in testGetFiles_both()
111 mDeviceFolderBuildInfo.setDeviceImageFile(mFile, "img-version"); in testGetFiles_deviceImages()
190 folderBuild.setRootDir(mFile); in testBuildWithZipMounts()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DZFileSortTest.java36 private File mFile; field in ZFileSortTest
49 mFile = new File(mTemporaryFolder.getRoot(), "a.zip"); in before()
70 if (mFile.exists()) { in setupZFile()
71 assertTrue(mFile.delete()); in setupZFile()
78 mZFile = new ZFile(mFile, options); in setupZFile()
192 mZFile = new ZFile(mFile, options); in sortFilesWithAlignment()
207 mZFile = new ZFile(mFile); in sortFilesOnClosedFile()
/tools/apksig/src/test/java/com/android/apksig/util/
DDataSourceFromRAFTest.java97 private final File mFile; field in DataSourceFromRAFTest.TmpFileCloseable
101 mFile = file; in TmpFileCloseable()
106 return mFile; in getFile()
116 if (mFile != null) { in close()
117 mFile.delete(); in close()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DDynamicFileStubTest.java41 private File mFile; field in DynamicFileStubTest
77 if (mFile != null) { in checkDynamicFile()
78 if (!mFile.exists()) { in checkDynamicFile()
79 listener.testFailed(testId, String.format("%s doesn't exist.", mFile.getPath())); in checkDynamicFile()
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandFileParser.java67 private final File mFile; field in CommandFileParser.CommandLine
72 mFile = file; in CommandLine()
78 mFile = file; in CommandLine()
93 return mFile; in getFile()
105 Objects.equals(otherLine.getFile(), mFile) && in equals()
114 return Objects.hash(listHash, mFile, mLineNumber); in hashCode()
/tools/tradefederation/core/src/com/android/tradefed/build/
DFileDownloadCache.java85 final File mFile; field in FileDownloadCache.FilePair
89 mFile = file; in FilePair()
99 Long timestamp1 = Long.valueOf(o1.mFile.lastModified()); in compare()
100 Long timestamp2 = o2.mFile.lastModified(); in compare()
135 mCacheMap.put(cacheEntry.mRelPath, cacheEntry.mFile); in FileDownloadCache()
136 mCurrentCacheSize += cacheEntry.mFile.length(); in FileDownloadCache()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DRunHostCommandTargetPreparer.java133 private File mFile; field in RunHostCommandTargetPreparer.BgCommandFileLog
138 mFile = file; in BgCommandFileLog()
139 mOutputStream = new FileOutputStream(mFile); in BgCommandFileLog()
156 return mFile.getName(); in getName()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/multi/
DMixImageZipPreparer.java166 private File mFile; field in MixImageZipPreparer.FileInputStreamFactory
169 mFile = file; in FileInputStreamFactory()
174 return new FileInputStream(mFile); in createInputStream()
179 return mFile.length(); in getSize()
184 return FileUtil.calculateCrc32(mFile); in getCrc32()
/tools/tradefederation/contrib/src/com/android/uicd/tests/
DUiConductorTest.java103 private final File mFile; field in UiConductorTest.UiConductorTestCase
109 mFile = file; in UiConductorTestCase()
421 command.add(testCase.mFile.getAbsolutePath()); in buildCommand()
/tools/loganalysis/javatests/com/android/loganalysis/util/config/
DOptionSetterTest.java149 private File mFile = null; field in OptionSetterTest.AllTypesOptionSource
693 assertEquals(tmpFile.getAbsolutePath(), optionSource.mFile.getAbsolutePath()); in testSetOptionValue_file()
/tools/tradefederation/core/javatests/com/android/tradefed/config/
DOptionSetterTest.java191 private File mFile = null; field in OptionSetterTest.AllTypesOptionSource
870 assertEquals(tmpFile.getAbsolutePath(), optionSource.mFile.getAbsolutePath()); in testSetOptionValue_file()