Home
last modified time | relevance | path

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

/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/storage/
DStorageManagerIntegrationTest.java37 protected File mFile = null; field in StorageManagerIntegrationTest
46 mFile = null; in setUp()
54 if (mFile != null) { in tearDown()
55 mFile.delete(); in tearDown()
56 mFile = null; in tearDown()
66 mFile = createObbFile(OBB_FILE_1, R.raw.obb_file1); in testMountSingleObb()
67 String filePath = mFile.getAbsolutePath(); in testMountSingleObb()
118 mFile = createObbFile(OBB_FILE_3_ENCRYPTED, R.raw.obb_enc_file100_orig3); in testMountSingleEncryptedObb()
119 String filePath = mFile.getAbsolutePath(); in testMountSingleEncryptedObb()
130 mFile = createObbFile("bad password@$%#@^*(!&)", R.raw.obb_enc_file100_orig3); in testMountSingleEncryptedObbInvalidPassword()
[all …]
/frameworks/base/core/java/android/app/
DSharedPreferencesImpl.java60 private final File mFile; field in SharedPreferencesImpl
76 mFile = file; in SharedPreferencesImpl()
102 mFile.delete(); in loadFromDiskLocked()
103 mBackupFile.renameTo(mFile); in loadFromDiskLocked()
107 if (mFile.exists() && !mFile.canRead()) { in loadFromDiskLocked()
108 Log.w(TAG, "Attempt to read preferences file " + mFile + " without permission"); in loadFromDiskLocked()
114 stat = Libcore.os.stat(mFile.getPath()); in loadFromDiskLocked()
115 if (mFile.canRead()) { in loadFromDiskLocked()
119 new FileInputStream(mFile), 16*1024); in loadFromDiskLocked()
176 stat = Libcore.os.stat(mFile.getPath()); in hasFileChangedUnexpectedly()
[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()
DUDPPusher.h42 FILE *mFile; member
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DTestService.java951 File mFile; field in TestService.CreateFileOp
958 mFile = context.getFileStreamPath(foreground ? "test-fg.file" : "test-bg.file"); in onInit()
959 mFile.delete(); in onInit()
964 mFile.createNewFile(); in onRun()
966 Log.w(TAG, "Failure creating " + mFile, e); in onRun()
968 mFile.delete(); in onRun()
974 File mFile; field in TestService.CreateWriteFileOp
981 mFile = context.getFileStreamPath(foreground ? "test-fg.file" : "test-bg.file"); in onInit()
982 mFile.delete(); in onInit()
987 FileOutputStream fos = new FileOutputStream(mFile); in onRun()
[all …]
/frameworks/base/drm/java/android/drm/
DDrmOutputStream.java43 private final RandomAccessFile mFile; field in DrmOutputStream
53 mFile = file; in DrmOutputStream()
64 mFile.seek(status.offset); in finish()
65 mFile.write(status.convertedData); in finish()
78 mFile.close(); in close()
95 mFile.write(status.convertedData); in write()
/frameworks/wilhelm/src/
Dlocks.c75 *(void **)&owner, ownerTid, thiz->mFile, thiz->mLine); in object_lock_exclusive_()
95 *(void **)&owner, ownerTid, thiz->mFile, thiz->mLine); in object_lock_exclusive_()
99 thiz, *(void **)&owner, ownerTid, thiz->mFile, thiz->mLine); in object_lock_exclusive_()
104 thiz->mFile = file; in object_lock_exclusive_()
125 assert(NULL != thiz->mFile); in object_unlock_exclusive_()
128 thiz->mFile = file; in object_unlock_exclusive_()
158 assert(NULL != thiz->mFile); in object_unlock_exclusive_attributes_()
225 thiz->mFile = file; in object_unlock_exclusive_attributes_()
279 assert(NULL != thiz->mFile); in object_cond_wait_()
282 thiz->mFile = file; in object_cond_wait_()
[all …]
Ditfstruct.h45 const char *mFile; member
/frameworks/base/services/java/com/android/server/wm/
DDisplaySettings.java45 private final AtomicFile mFile; field in DisplaySettings
64 mFile = new AtomicFile(new File(systemDir, "display_settings.xml")); in DisplaySettings()
100 stream = mFile.openRead(); in readSettingsLocked()
102 Slog.i(TAG, "No existing display settings " + mFile.getBaseFile() in readSettingsLocked()
186 stream = mFile.startWrite(); in writeSettingsLocked()
218 mFile.finishWrite(stream); in writeSettingsLocked()
221 mFile.failWrite(stream); in writeSettingsLocked()
/frameworks/base/services/java/com/android/server/am/
DCompatModePackages.java34 private final AtomicFile mFile; field in CompatModePackages
60 mFile = new AtomicFile(new File(systemDir, "packages-compat.xml")); in CompatModePackages()
64 fis = mFile.openRead(); in CompatModePackages()
347 fos = mFile.startWrite(); in saveCompatModes()
390 mFile.finishWrite(fos); in saveCompatModes()
394 mFile.failWrite(fos); in saveCompatModes()
DUsageStatsService.java114 private File mFile; field in UsageStatsService
271 mFile = new File(mDir, mFileLeaf); in UsageStatsService()
316 File newFile = mFile; in readStatsFromFile()
518 if (mFile != null && mFile.exists()) { in writeStatsToFile()
519 backupFile = new File(mFile.getPath() + ".bak"); in writeStatsToFile()
521 if (!mFile.renameTo(backupFile)) { in writeStatsToFile()
526 mFile.delete(); in writeStatsToFile()
532 writeStatsFLOCK(mFile); in writeStatsToFile()
540 mFile = new File(mDir, mFileLeaf); in writeStatsToFile()
554 Slog.w(TAG, "Failed writing stats to file:" + mFile); in writeStatsToFile()
[all …]
/frameworks/av/media/libstagefright/
DMPEG2TSWriter.cpp471 : mFile(fdopen(dup(fd), "wb")), in MPEG2TSWriter()
484 : mFile(fopen(filename, "wb")), in MPEG2TSWriter()
499 : mFile(NULL), in MPEG2TSWriter()
512 CHECK(mFile != NULL || mWriteFunc != NULL); in init()
533 if (mFile != NULL) { in ~MPEG2TSWriter()
534 fclose(mFile); in ~MPEG2TSWriter()
535 mFile = NULL; in ~MPEG2TSWriter()
1024 if (mFile != NULL) { in internalWrite()
1025 return fwrite(data, 1, size, mFile); in internalWrite()
/frameworks/testing/uiautomator_test_libraries/src/com/android/uiautomator/platform/
DJankTestBase.java97 File mFile = new File(SYSTRACE_DIR, TRACE_FILE_NAME); field in JankTestBase.SystraceTracker
117 mFile = new File(SYSTRACE_DIR, fileName); in SystraceTracker()
130 Log.v(TAG, "write systrace into file: " + mFile.getAbsolutePath()); in run()
134 out = new BufferedOutputStream(new FileOutputStream(mFile)); in run()
/frameworks/base/services/java/com/android/server/
DAppOpsService.java69 final AtomicFile mFile; field in AppOpsService
144 mFile = new AtomicFile(storagePath); in AppOpsService()
693 synchronized (mFile) { in readState()
697 stream = mFile.openRead(); in readState()
699 Slog.i(TAG, "No existing app ops " + mFile.getBaseFile() + "; starting empty"); in readState()
830 synchronized (mFile) { in writeState()
835 stream = mFile.startWrite(); in writeState()
892 mFile.finishWrite(stream); in writeState()
895 mFile.failWrite(stream); in writeState()
/frameworks/av/include/media/stagefright/
DMPEG2TSWriter.h57 FILE *mFile; member
/frameworks/av/media/libstagefright/mp4/
DFragmentedMP4Parser.cpp132 : mFile(fopen(filename, "rb")) { in FileSource()
133 CHECK(mFile != NULL); in FileSource()
137 fclose(mFile); in ~FileSource()
141 fseek(mFile, offset, SEEK_SET); in readAt()
142 return fread(data, 1, size, mFile); in readAt()
150 FILE *mFile; member
/frameworks/base/tools/aapt/
DResource.cpp86 inline const sp<AaptFile>& getFile() const { return mFile; } in getFile()
122 mFile = file; in next()
161 sp<AaptFile> mFile; member in ResourceDirIterator
314 mBundle(bundle), mAssets(assets), mFile(file), mHasErrors(hasErrors) { in PreProcessImageWorkUnit()
318 status_t status = preProcessImage(mBundle, mAssets, mFile, NULL); in run()
328 sp<AaptFile> mFile; member in PreProcessImageWorkUnit
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java103 private final JournaledFile mFile; field in BatteryStatsImpl
346 mFile = null; in BatteryStatsImpl()
4272 mFile = new JournaledFile(new File(filename), new File(filename + ".tmp")); in BatteryStatsImpl()
4309 mFile = null; in BatteryStatsImpl()
4576 if (mFile != null) { in setOnBatteryLocked()
5048 if (mFile == null) { in writeLocked()
5093 FileOutputStream stream = new FileOutputStream(mFile.chooseForWrite()); in commitPendingDataToDisk()
5098 mFile.commit(); in commitPendingDataToDisk()
5101 mFile.rollback(); in commitPendingDataToDisk()
5132 if (mFile == null) { in readLocked()
[all …]
/frameworks/wilhelm/src/itf/
DIObject.c776 thiz->mFile = NULL; in IObject_init()