Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/
DFullBackupUtilsTest.java99 ParcelFileDescriptor.MODE_READ_ONLY); in routeSocketDataToOutput_emptyInput_throwsEOFException()
120 ParcelFileDescriptor.MODE_READ_ONLY); in routeSocketDataToOutput_incompleteChunkSizeInput_throwsEOFException()
140 ParcelFileDescriptor.MODE_READ_ONLY); in routeSocketDataToOutput_validEmptyInput_doesNotWriteAnything()
157 ParcelFileDescriptor.MODE_READ_ONLY); in routeSocketDataToOutput_notEnoughData_throwsEOFException()
180 ParcelFileDescriptor.MODE_READ_ONLY); in routeSocketDataToOutput_oneSmallChunk_writesOutputCorrectly()
200 ParcelFileDescriptor.MODE_READ_ONLY); in routeSocketDataToOutput_oneLargeChunk_writesOutputCorrectly()
225 ParcelFileDescriptor.MODE_READ_ONLY); in routeSocketDataToOutput_twoSmallChunks_writesOutputCorrectly()
250 ParcelFileDescriptor.MODE_READ_ONLY); in routeSocketDataToOutput_twoLargeChunks_writesOutputCorrectly()
/frameworks/base/core/tests/coretests/src/android/os/
DRedactingFileDescriptorTest.java19 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
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()
DFileUtilsTest.java27 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
503 assertTranslate("r", O_RDONLY, MODE_READ_ONLY); in testTranslateMode()
/frameworks/base/core/tests/coretests/src/android/provider/
DTestFontsProvider.java19 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
132 return ParcelFileDescriptor.open(file, MODE_READ_ONLY); in createFontFile()
DMockFontProvider.java222 return ParcelFileDescriptor.open(targetFile, ParcelFileDescriptor.MODE_READ_ONLY); in openFile()
/frameworks/base/services/backup/java/com/android/server/backup/
DKeyValueAdbRestoreEngine.java4 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
88 ParcelFileDescriptor.open(restoreData, MODE_READ_ONLY); in invokeAgentForAdbRestore()
DKeyValueAdbBackupEngine.java4 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
133 MODE_READ_ONLY | MODE_CREATE); // Make an empty file if necessary in prepareBackupFiles()
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportStorageProvider.java99 if (ParcelFileDescriptor.parseMode(mode) != ParcelFileDescriptor.MODE_READ_ONLY) { in openDocument()
103 ParcelFileDescriptor.MODE_READ_ONLY); in openDocument()
DHeapDumpProvider.java85 pMode = ParcelFileDescriptor.MODE_READ_ONLY; in openFile()
/frameworks/base/services/core/java/com/android/server/am/
DDumpHeapProvider.java83 ParcelFileDescriptor.MODE_READ_ONLY); in openFile()
/frameworks/base/packages/MtpDocumentsProvider/perf_tests/src/com/android/mtp/
DAppFusePerfTest.java53 ParcelFileDescriptor.MODE_READ_ONLY, new TestCallback()); in testReadWriteFile()
/frameworks/base/core/tests/coretests/src/android/content/
DMemoryFileProvider.java146 return ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY); in openFile()
/frameworks/base/core/java/android/os/
DBugreportManager.java160 ParcelFileDescriptor.MODE_READ_ONLY); in startBugreport()
DFileUtils.java21 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
1366 res = MODE_READ_ONLY; in translateModePosixToPfd()
1389 } else if ((mode & MODE_READ_ONLY) == MODE_READ_ONLY) { in translateModePfdToPosix()
DDropBoxManager.java183 mFileDescriptor = ParcelFileDescriptor.open(data, ParcelFileDescriptor.MODE_READ_ONLY); in Entry()
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/
DKeyValueBackupTask.java21 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
682 ParcelFileDescriptor.open(savedStateFileForAgent, MODE_READ_ONLY | MODE_CREATE); in extractAgentData()
855 ParcelFileDescriptor.open(backupDataFile, MODE_READ_ONLY)) { in transportPerformBackup() argument
931 ParcelFileDescriptor.open(backupDataFile, MODE_READ_ONLY)) { in checkBackupData() argument
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageIconProvider.java116 return ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY); in openFile()
/frameworks/base/core/tests/coretests/src/android/os/storage/
DStorageManagerIntegrationTest.java192 ParcelFileDescriptor.MODE_READ_ONLY, callback, null, factory)) { in testOpenProxyFileDescriptor()
/frameworks/base/core/java/android/view/textclassifier/
DTextClassifierImpl.java557 new File(bestModel.getPath()), ParcelFileDescriptor.MODE_READ_ONLY); in getAnnotatorImpl()
584 new File(bestModel.getPath()), ParcelFileDescriptor.MODE_READ_ONLY); in getLangIdImpl()
610 new File(bestModel.getPath()), ParcelFileDescriptor.MODE_READ_ONLY); in getActionsImpl()
DModelFileManager.java151 modelFd = ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY); in createModelFile()
/frameworks/base/media/java/android/media/
DSoundPool.java197 ParcelFileDescriptor.MODE_READ_ONLY); in load()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintPreviewController.java266 ParcelFileDescriptor.MODE_READ_ONLY); in handleMessage()
/frameworks/base/core/tests/coretests/src/android/app/backup/
DBackupDataTest.java242 ParcelFileDescriptor.MODE_READ_ONLY | in openForReading()
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DPerformUnifiedRestoreTask.java719 ParcelFileDescriptor.MODE_READ_ONLY); in initiateOneRestore()
757 ParcelFileDescriptor.MODE_READ_ONLY); in initiateOneRestore()
/frameworks/base/services/core/java/com/android/server/pm/dex/
DArtManagerService.java278 fd = ParcelFileDescriptor.open(snapshotProfile, ParcelFileDescriptor.MODE_READ_ONLY); in createProfileSnapshot()

12