Home
last modified time | relevance | path

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

123

/frameworks/base/services/tests/mockingservicestests/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/packages/SettingsLib/DataStore/tests/src/com/android/settingslib/datastore/
DBackupRestoreStorageTest.kt25 import android.os.ParcelFileDescriptor.MODE_READ_ONLY in <lambda>()
139 stateFile.toParcelFileDescriptor(MODE_READ_ONLY).use { in <lambda>()
149 temporaryFolder.newFile().toParcelFileDescriptor(MODE_READ_ONLY).use { in <lambda>()
160 temporaryFolder.newFile().toParcelFileDescriptor(MODE_READ_ONLY).use { in <lambda>()
170 temporaryFolder.newFile().toParcelFileDescriptor(MODE_READ_ONLY).use { in <lambda>()
206 temporaryFolder.newFile().toParcelFileDescriptor(MODE_READ_ONLY).use { in <lambda>()
217 temporaryFolder.newFile().toParcelFileDescriptor(MODE_READ_ONLY).apply { in <lambda>()
234 stateFile.toParcelFileDescriptor(MODE_READ_ONLY).use { in <lambda>()
244 temporaryFolder.newFile().toParcelFileDescriptor(MODE_READ_ONLY).use { in <lambda>()
275 stateFile.toParcelFileDescriptor(MODE_READ_ONLY).use { in <lambda>()
[all …]
/frameworks/base/ravenwood/runtime-helper-src/framework/com/android/platform/test/ravenwood/nativesubstitution/
DParcelFileDescriptor_host.java21 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
67 } else if ((pfdMode & MODE_READ_ONLY) == MODE_READ_ONLY) { in native_open$ravenwood()
/frameworks/base/services/core/java/com/android/server/security/
DFileIntegrity.java19 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
49 try (ParcelFileDescriptor pfd = ParcelFileDescriptor.open(file, MODE_READ_ONLY)) { in setUpFsVerity() argument
/frameworks/base/core/tests/coretests/src/android/os/
DRedactingFileDescriptorTest.java19 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
73 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_ONLY, in testSingleByte()
89 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_ONLY, in testRanges()
111 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_ONLY, in testEntireFile()
/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;
134 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/tests/AppResourcesLoaders/src/com/android/example/loaders/
DLoadersApplication.java56 return ParcelFileDescriptor.open(apkFile, ParcelFileDescriptor.MODE_READ_ONLY); in copyResource()
/frameworks/base/tests/UpdatableSystemFontTest/src/com/android/updatablesystemfont/
DUpdatableSystemFontTest.java22 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
347 new File(TEST_NOTO_COLOR_EMOJI_VPLUS1_TTF), MODE_READ_ONLY)) { in fdLeakTest_withoutPermission() argument
378 ParcelFileDescriptor.open(new File(fontPath), MODE_READ_ONLY)) { in updateFontFile() argument
406 new File(NOTO_SERIF_REGULAR_TTF), MODE_READ_ONLY); in updateNotoSerifAs() argument
408 new File(NOTO_SERIF_BOLD_TTF), MODE_READ_ONLY)) { in updateNotoSerifAs()
/frameworks/base/core/java/android/os/
DDropBoxManager.java201 mFileDescriptor = ParcelFileDescriptor.open(data, ParcelFileDescriptor.MODE_READ_ONLY); in Entry()
360 ParcelFileDescriptor.MODE_READ_ONLY)) { in addFile() argument
DBugreportManager.java242 new File("/dev/null"), ParcelFileDescriptor.MODE_READ_ONLY); in startBugreport()
/frameworks/base/apct-tests/perftests/core/src/android/mtp_perf/
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/services/backup/java/com/android/server/backup/keyvalue/
DKeyValueBackupTask.java21 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
480 pfd = ParcelFileDescriptor.open(mBlankStateFile, MODE_READ_ONLY | MODE_CREATE); in sendNoDataChangedTo()
918 ParcelFileDescriptor.open(savedStateFileForAgent, MODE_READ_ONLY | MODE_CREATE); in extractAgentData()
1092 ParcelFileDescriptor.open(backupDataFile, MODE_READ_ONLY)) { in transportPerformBackup() argument
1170 ParcelFileDescriptor.open(backupDataFile, MODE_READ_ONLY)) { in checkBackupData() argument
/frameworks/base/core/tests/coretests/src/android/os/storage/
DStorageManagerIntegrationTest.java139 ParcelFileDescriptor.MODE_READ_ONLY, callback, null, factory)) { in testOpenProxyFileDescriptor()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageIconProvider.java116 return ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY); in openFile()
/frameworks/base/core/java/com/android/internal/content/
DFileSystemProvider.java514 } else if (pfdMode == ParcelFileDescriptor.MODE_READ_ONLY) { in openDocument()
534 return ParcelFileDescriptor.open(target, ParcelFileDescriptor.MODE_READ_ONLY); in openFileForRead()
547 return ParcelFileDescriptor.open(target, ParcelFileDescriptor.MODE_READ_ONLY); in openFileForRead()
/frameworks/base/services/core/java/com/android/server/os/
DNativeTombstoneManager.java20 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
572 MODE_READ_ONLY); in getPfd()
/frameworks/base/packages/WallpaperBackup/test/src/com/android/wallpaperbackup/
DWallpaperBackupAgentTest.java21 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
892 ParcelFileDescriptor.open(fakeInfoFile, MODE_READ_ONLY)); in mockWallpaperInfoFileWithContents()
899 ParcelFileDescriptor.open(fakeSystemWallpaperFile, MODE_READ_ONLY)); in mockSystemWallpaperFileWithContents()
906 ParcelFileDescriptor.open(fakeLockWallpaperFile, MODE_READ_ONLY)); in mockLockWallpaperFileWithContents()
/frameworks/base/tests/BlobStoreTestUtils/src/com/android/utils/blob/
DFakeBlobData.java178 return ParcelFileDescriptor.open(mFile, ParcelFileDescriptor.MODE_READ_ONLY); in openForRead()
/frameworks/base/media/java/android/media/
DSoundPool.java200 ParcelFileDescriptor.MODE_READ_ONLY); in load()

123