Home
last modified time | relevance | path

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

12

/frameworks/av/cmds/stagefright/
DWaveWriter.h27 : mFile(fopen(filename, "wb")), in WaveWriter()
29 fwrite("RIFFxxxxWAVEfmt \x10\x00\x00\x00\x01\x00", 1, 22, mFile); in WaveWriter()
35 fwrite("dataxxxx", 1, 8, mFile); in WaveWriter()
39 fseek(mFile, 40, SEEK_SET); in ~WaveWriter()
42 fseek(mFile, 4, SEEK_SET); in ~WaveWriter()
45 fclose(mFile); in ~WaveWriter()
46 mFile = NULL; in ~WaveWriter()
50 fwrite(data, 1, size, mFile); in Append()
56 fputc(x & 0xff, mFile); in write_u16()
57 fputc(x >> 8, mFile); in write_u16()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DRedactingFileDescriptorTest.java46 private File mFile; field in RedactingFileDescriptorTest
51 mFile = File.createTempFile("redacting", "dat"); in setUp()
52 try (FileOutputStream out = new FileOutputStream(mFile)) { in setUp()
61 mFile.delete(); in tearDown()
66 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_ONLY, in testSingleByte()
82 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_ONLY, in testRanges()
104 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_ONLY, in testEntireFile()
117 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testReadWrite()
174 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeAtStart()
186 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeAtOffset()
[all …]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DMutexFileProvider.java42 private final File mFile; field in MutexFileProvider
53 mFile = file; in MutexFileProvider()
64 return mFile; in acquireFile()
69 mOnReleaseRequestCallback.onReleaseRequested(mFile); in acquireFile()
86 Log.i(LOG_TAG, "Acquired file: " + mFile + " by thread: " + mOwnerThread); in acquireFile()
89 return mFile; in acquireFile()
100 Log.i(LOG_TAG, "Released file: " + mFile + " from thread: " + mOwnerThread); in releaseFile()
/frameworks/base/services/backup/java/com/android/server/backup/
DDataChangedJournal.java46 private final File mFile; field in DataChangedJournal
52 mFile = file; in DataChangedJournal()
62 try (RandomAccessFile out = new RandomAccessFile(mFile, "rws")) { in addPackage()
77 new FileInputStream(mFile), BUFFER_SIZE_BYTES); in forEach()
104 return mFile.delete(); in delete()
112 return this.mFile.getCanonicalPath().equals(that.mFile.getCanonicalPath()); in equals()
122 return mFile.toString(); in toString()
/frameworks/base/core/java/android/app/
DSharedPreferencesImpl.java68 private final File mFile; field in SharedPreferencesImpl
110 mFile = file; in SharedPreferencesImpl()
137 mFile.delete(); in loadFromDisk()
138 mBackupFile.renameTo(mFile); in loadFromDisk()
143 if (mFile.exists() && !mFile.canRead()) { in loadFromDisk()
144 Log.w(TAG, "Attempt to read preferences file " + mFile + " without permission"); in loadFromDisk()
151 stat = Os.stat(mFile.getPath()); in loadFromDisk()
152 if (mFile.canRead()) { in loadFromDisk()
156 new FileInputStream(mFile), 16 * 1024); in loadFromDisk()
159 Log.w(TAG, "Cannot read " + mFile.getAbsolutePath(), e); in loadFromDisk()
[all …]
/frameworks/av/media/libstagefright/rtsp/
DUDPPusher.cpp33 : mFile(fopen(filename, "rb")), in UDPPusher()
36 CHECK(mFile != NULL); in UDPPusher()
58 fclose(mFile); in ~UDPPusher()
59 mFile = NULL; in ~UDPPusher()
64 CHECK_EQ(fread(&timeMs, 1, sizeof(timeMs), mFile), sizeof(timeMs)); in start()
73 if (fread(&length, 1, sizeof(length), mFile) < sizeof(length)) { in onPush()
83 if (fread(buffer->data(), 1, length, mFile) < length) { in onPush()
95 if (fread(&timeMs, 1, sizeof(timeMs), mFile) < sizeof(timeMs)) { in onPush()
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DTestService.java967 File mFile; field in TestService.CreateFileOp
974 mFile = context.getFileStreamPath(foreground ? "test-fg.file" : "test-bg.file"); in onInit()
975 mFile.delete(); in onInit()
980 mFile.createNewFile(); in onRun()
982 Log.w(TAG, "Failure creating " + mFile, e); in onRun()
984 mFile.delete(); in onRun()
990 File mFile; field in TestService.CreateWriteFileOp
997 mFile = context.getFileStreamPath(foreground ? "test-fg.file" : "test-bg.file"); in onInit()
998 mFile.delete(); in onInit()
1003 FileOutputStream fos = new FileOutputStream(mFile); in onRun()
[all …]
/frameworks/av/services/audioflinger/
DBufLog.cpp141 mFile = fopen(logPath, "wb"); in BufLogStream()
142 if (mFile != NULL) { in BufLogStream()
143 ALOGV("Success creating file at: %p", mFile); in BufLogStream()
151 if (mFile != NULL) { in closeStream_l()
152 fclose(mFile); in closeStream_l()
153 mFile = NULL; in closeStream_l()
166 if (!mPaused && mFile != NULL) { in write()
172 bytes = fwrite(buf, 1, size, mFile); in write()
/frameworks/wilhelm/src/
Dlocks.cpp88 *(void **)&owner, ownerTid, thiz->mFile, thiz->mLine); in object_lock_exclusive_()
108 *(void **)&owner, ownerTid, thiz->mFile, thiz->mLine); in object_lock_exclusive_()
112 thiz, *(void **)&owner, ownerTid, thiz->mFile, thiz->mLine); in object_lock_exclusive_()
117 thiz->mFile = file; in object_lock_exclusive_()
138 assert(NULL != thiz->mFile); in object_unlock_exclusive_()
141 thiz->mFile = file; in object_unlock_exclusive_()
171 assert(NULL != thiz->mFile); in object_unlock_exclusive_attributes_()
238 thiz->mFile = file; in object_unlock_exclusive_attributes_()
292 assert(NULL != thiz->mFile); in object_cond_wait_()
295 thiz->mFile = file; in object_cond_wait_()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/
DDataChangedJournalTest.java54 private File mFile; field in DataChangedJournalTest
60 mFile = mTemporaryFolder.newFile(); in setUp()
61 mJournal = new DataChangedJournal(mFile); in setUp()
70 FileInputStream fos = new FileInputStream(mFile); in addPackage_addsPackagesToEndOfFile()
84 assertThat(mFile.exists()).isFalse(); in delete_deletesTheFile()
89 assertThat(mJournal.equals(new DataChangedJournal(mFile))).isTrue(); in equals_isTrueForTheSameFile()
132 assertThat(mJournal.toString()).isEqualTo(mFile.toString()); in toString_isSameAsFileToString()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DDataStreamFileCodec.java35 private final File mFile; field in DataStreamFileCodec
43 mFile = file; in DataStreamFileCodec()
55 FileInputStream fileInputStream = new FileInputStream(mFile); in deserialize()
70 FileOutputStream fileOutputStream = new FileOutputStream(mFile); in serialize()
/frameworks/base/services/core/java/com/android/server/
DSystemUpdateManagerService.java72 private final AtomicFile mFile; field in SystemUpdateManagerService
79 mFile = new AtomicFile(new File(Environment.getDataSystemDirectory(), INFO_FILE)); in SystemUpdateManagerService()
132 try (FileInputStream fis = mFile.openRead()) { in loadSystemUpdateInfoLocked()
137 Slog.i(TAG, "No existing info file " + mFile.getBaseFile()); in loadSystemUpdateInfoLocked()
217 fos = mFile.startWrite(); in writeInfoFileLocked()
228 mFile.finishWrite(fos); in writeInfoFileLocked()
233 mFile.failWrite(fos); in writeInfoFileLocked()
240 if (mFile.exists()) { in removeInfoFileAndGetDefaultInfoBundleLocked()
242 mFile.delete(); in removeInfoFileAndGetDefaultInfoBundleLocked()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowTracingTest.java81 private File mFile; field in WindowTracingTest
88 mFile = testContext.getFileStreamPath("tracing_test.dat"); in setUp()
89 mFile.delete(); in setUp()
91 mWindowTracing = new WindowTracing(mFile, mWmMock, mChoreographer, in setUp()
97 mFile.delete(); in tearDown()
136 assertTrue("Trace file should exist", mFile.exists()); in traceFile_startsWithMagicHeader()
139 try (InputStream is = new FileInputStream(mFile)) { in traceFile_startsWithMagicHeader()
161 try (InputStream is = new FileInputStream(mFile)) { in tracing_endsUpInFile()
DWindowTraceBufferTest.java50 private File mFile; field in WindowTraceBufferTest
56 mFile = testContext.getFileStreamPath("tracing_test.dat"); in setUp()
57 mFile.delete(); in setUp()
64 mFile.delete(); in tearDown()
/frameworks/base/graphics/java/android/graphics/fonts/
DFont.java66 private @Nullable File mFile; field in Font.Builder
100 mFile = path; in Builder()
117 mFile = path; in Builder()
389 final String filePath = mFile == null ? "" : mFile.getAbsolutePath(); in build()
392 final Font font = new Font(ptr, readonlyBuffer, mFile, in build()
422 private final @Nullable File mFile; field in Font
435 mFile = file; in Font()
460 return mFile; in getFile()
533 + "path=" + mFile in toString()
/frameworks/base/core/java/com/android/internal/os/
DKernelCpuProcStringReader.java91 private final Path mFile; field in KernelCpuProcStringReader
100 mFile = Paths.get(file); in KernelCpuProcStringReader()
154 try (BufferedReader r = Files.newBufferedReader(mFile)) { in open()
164 Slog.e(TAG, "Proc file too large: " + mFile); in open()
177 Slog.w(TAG, "File not found. It's normal if not implemented: " + mFile); in open()
180 Slog.e(TAG, "Error reading " + mFile, e); in open()
/frameworks/base/tools/aapt/
DOutputSet.h31 : mPath(path), mFile(file) {} in OutputEntry()
34 return mFile; in getFile()
46 android::sp<const AaptFile> mFile; variable
/frameworks/base/services/core/java/com/android/server/biometrics/
DBiometricUserState.java50 protected final File mFile; field in BiometricUserState
92 mFile = getFileForUser(userId); in BiometricUserState()
173 if (!mFile.exists()) { in readStateSyncLocked()
177 in = new FileInputStream(mFile); in readStateSyncLocked()
189 + mFile , e); in readStateSyncLocked()
/frameworks/base/media/jni/
Dandroid_media_Streams.cpp94 mFile = fdopen(fd, "r"); in FileStream()
95 if (mFile == NULL) { in FileStream()
102 mFile = fopen(filename.string(), "r"); in FileStream()
103 if (mFile == NULL) { in FileStream()
109 if (mFile != NULL) { in ~FileStream()
110 fclose(mFile); in ~FileStream()
111 mFile = NULL; in ~FileStream()
117 if (mFile == NULL) { in GetData()
123 fseek(mFile, offset, SEEK_SET); in GetData()
127 size_t size = fread((void*)data, sizeof(std::uint8_t), length, mFile); in GetData()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/backup/
DBackupDataTest.java51 private File mFile; field in BackupDataTest
74 mFile = new File(mDirectory, "backup_mixed_sinlge.dat"); in testSingle()
93 mFile = new File(mDirectory, "backup_multiple_test.dat"); in testMultiple()
114 mFile = new File(mDirectory, "backup_delete_test.dat"); in testDelete()
135 mFile = new File(mDirectory, "backup_mixed_test.dat"); in testMixed()
223 mFile = new File(mDirectory, destination); in copyAssetToFile()
234 mDataFile = ParcelFileDescriptor.open(mFile, in openForWriting()
241 mDataFile = ParcelFileDescriptor.open(mFile, in openForReading()
/frameworks/base/core/java/android/print/
DPrintFileDocumentAdapter.java55 private final File mFile; field in PrintFileDocumentAdapter
77 mFile = file; in PrintFileDocumentAdapter()
119 try (InputStream in = new FileInputStream(mFile); in doInBackground()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DOwners.java694 private final File mFile; field in Owners.FileReadWriter
697 mFile = file; in FileReadWriter()
705 Log.d(TAG, "No need to write to " + mFile); in writeToFileLocked()
708 if (mFile.exists()) { in writeToFileLocked()
710 Log.d(TAG, "Deleting existing " + mFile); in writeToFileLocked()
712 if (!mFile.delete()) { in writeToFileLocked()
713 Slog.e(TAG, "Failed to remove " + mFile.getPath()); in writeToFileLocked()
719 Log.d(TAG, "Writing to " + mFile); in writeToFileLocked()
722 final AtomicFile f = new AtomicFile(mFile); in writeToFileLocked()
754 if (!mFile.exists()) { in readFromFileLocked()
[all …]
/frameworks/rs/script_api/
DScanner.cpp30 : mFileName(fileName), mFile(file), mLineNumber(0), mTagConsumed(true), mErrorCount(0) { in Scanner()
34 return (mTagConsumed && feof(mFile)) || mErrorCount > MAX_ERRORS; in atEnd()
38 int c = fgetc(mFile); in getChar()
/frameworks/base/services/core/java/com/android/server/wm/
DCompatModePackages.java59 private final AtomicFile mFile; field in CompatModePackages
89 mFile = new AtomicFile(new File(systemDir, "packages-compat.xml"), "compat-mode"); in CompatModePackages()
94 fis = mFile.openRead(); in CompatModePackages()
363 fos = mFile.startWrite(); in saveCompatModes()
407 mFile.finishWrite(fos); in saveCompatModes()
411 mFile.failWrite(fos); in saveCompatModes()
/frameworks/base/core/java/android/view/textclassifier/
DModelFileManager.java202 private final File mFile; field in ModelFileManager.ModelFile
211 mFile = Preconditions.checkNotNull(file); in ModelFile()
220 return mFile.getAbsolutePath(); in getPath()
225 return mFile.getName(); in getName()

12