Home
last modified time | relevance | path

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

/cts/tests/tests/util/src/android/util/cts/
DPrintStreamPrinterTest.java44 private File mFile; field in PrintStreamPrinterTest
48 mFile = new File(InstrumentationRegistry.getTargetContext().getFilesDir(), in setup()
50 if (!mFile.exists()) { in setup()
51 mFile.createNewFile(); in setup()
57 if (mFile.exists()) { in teardown()
58 mFile.delete(); in teardown()
64 new PrintStreamPrinter(new PrintStream(mFile)); in testConstructor()
71 PrintStream ps = new PrintStream(mFile); in testPrintln()
78 try (InputStream is = new FileInputStream(mFile)){ in testPrintln()
DPrintWriterPrinterTest.java45 private File mFile; field in PrintWriterPrinterTest
51 mFile = new File(dbDir,"print.log"); in setup()
52 if (!mFile.exists()) { in setup()
53 mFile.createNewFile(); in setup()
59 if (mFile.exists()) { in teardown()
60 mFile.delete(); in teardown()
66 PrintWriter pw = new PrintWriter(mFile); in testConstructor()
73 PrintWriter pw = new PrintWriter(mFile); in testPrintln()
80 InputStream is = new FileInputStream(mFile); in testPrintln()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DReadElf.java126 private final RandomAccessFile mFile; field in ReadElf
197 mFile = new RandomAccessFile(file, "r"); in ReadElf()
199 if (mFile.length() < EI_NIDENT) { in ReadElf()
209 mFile.close(); in close()
224 mFile.seek(0); in readHeader()
225 mFile.readFully(mBuffer, 0, EI_NIDENT); in readHeader()
295 mFile.seek(sh_off + e_shstrndx * e_shentsize); in readSectionHeaders()
317 mFile.seek(sh_off + i * e_shentsize); in readSectionHeaders()
352 mFile.seek(ph_off + i * e_phentsize); in readProgramHeaders()
374 mFile.seek(tableOffset); in readSymbolTable()
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DReadElf.java126 private final RandomAccessFile mFile; field in ReadElf
197 mFile = new RandomAccessFile(file, "r"); in ReadElf()
199 if (mFile.length() < EI_NIDENT) { in ReadElf()
209 mFile.close(); in close()
224 mFile.seek(0); in readHeader()
225 mFile.readFully(mBuffer, 0, EI_NIDENT); in readHeader()
295 mFile.seek(sh_off + e_shstrndx * e_shentsize); in readSectionHeaders()
317 mFile.seek(sh_off + i * e_shentsize); in readSectionHeaders()
352 mFile.seek(ph_off + i * e_phentsize); in readProgramHeaders()
374 mFile.seek(tableOffset); in readSymbolTable()
[all …]
/cts/suite/audio_quality/lib/src/
DFileUtil.cpp91 if (mFile.is_open()) { in ~FileUtil()
92 mFile.close(); in ~FileUtil()
103 mFile.open(fileName, std::ios::out | std::ios::trunc); in init()
104 if (!mFile.is_open()) { in init()
147 if (mFile.is_open()) { in doVprintf()
148 mFile<<mBuffer; in doVprintf()
/cts/tests/tests/content/src/android/content/res/cts/
DAssetFileDescriptorTest.java41 private File mFile; field in AssetFileDescriptorTest
49 mFile = new File(getContext().getFilesDir(), FILE_NAME); in setUp()
50 mFile.createNewFile(); in setUp()
55 mFd = ParcelFileDescriptor.open(mFile, ParcelFileDescriptor.MODE_READ_WRITE); in initAssetFileDescriptor()
74 mFile, ParcelFileDescriptor.MODE_READ_WRITE); in testConstructor()
DAssetFileDescriptor_AutoCloseInputStreamTest.java37 private File mFile; field in AssetFileDescriptor_AutoCloseInputStreamTest
44 mFile = new File(getContext().getFilesDir(), FILE_NAME); in setUp()
45 FileOutputStream outputStream = new FileOutputStream(mFile); in setUp()
57 mFile.delete(); in tearDown()
162 ParcelFileDescriptor.open(mFile, ParcelFileDescriptor.MODE_READ_WRITE); in openInput()
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DFileParser.java56 protected File mFile; field in FileParser
104 mFile = file; in FileParser()
111 return mFile; in getFile()
115 return mFile.getName(); in getFileName()
133 FileInputStream fis = new FileInputStream(mFile); in getFileContentId()
DAndroidManifestParser.java83 Process process = new ProcessBuilder(getAaptCmds(mFile.getAbsolutePath())).start(); in processManifest()
87 System.err.println("Failed to aapt d badging " + mFile.getAbsolutePath()); in processManifest()
110 "Failed to aapt & parse AndroidManifest.xml from: " + mFile.getAbsolutePath()); in parseElement()
/cts/tests/tests/media/src/android/media/cts/
DSoundPoolTest.java45 private File mFile; field in SoundPoolTest
82 mFile = new File(mContext.getFilesDir(), getFileName()); in setUp()
88 if (mFile.exists()) { in tearDown()
89 mFile.delete(); in tearDown()
120 String path = mFile.getAbsolutePath(); in testLoad()
121 createSoundFile(mFile); in testLoad()
/cts/tests/providerui/src/android/providerui/cts/
DMediaStoreUiTest.java108 private File mFile; field in MediaStoreUiTest
135 if (mFile != null) { in tearDown()
136 mFile.delete(); in tearDown()
156 final Uri treeUri = acquireAccess(mFile, Environment.DIRECTORY_DOCUMENTS); in testGetDocumentUri()
198 final Uri treeUri = acquireAccess(mFile, Environment.DIRECTORY_DOCUMENTS); in testGetDocumentUri_Symmetry()
394 mFile = stageFile(R.raw.text, file); in prepareFile()
395 mMediaStoreUri = MediaStore.scanFile(mContext, mFile); in prepareFile()
397 Log.v(TAG, "Staged " + mFile + " as " + mMediaStoreUri); in prepareFile()
/cts/suite/audio_quality/lib/include/
DFileUtil.h57 std::ofstream mFile; variable