Home
last modified time | relevance | path

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

12

/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DArchivesProviderTest.java96 ParcelFileDescriptor.MODE_READ_ONLY); in testOpen_Success()
148 ParcelFileDescriptor.MODE_READ_ONLY); in testOpen_Failure()
201 ParcelFileDescriptor.MODE_READ_ONLY); in testOpen_ClosesOnRelease()
244 ParcelFileDescriptor.MODE_READ_ONLY); in testNoNotificationAfterAllReleased()
281 ParcelFileDescriptor.MODE_READ_ONLY); in getDocumentMetadata_byDocumentId_shouldMatchSize()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/
DHealthConnectServiceImplTest.java266 ParcelFileDescriptor.open(testRestoreFile1, ParcelFileDescriptor.MODE_READ_ONLY)); in testStageRemoteData_withValidInput_allFilesStaged()
269 ParcelFileDescriptor.open(testRestoreFile2, ParcelFileDescriptor.MODE_READ_ONLY)); in testStageRemoteData_withValidInput_allFilesStaged()
297 ParcelFileDescriptor.open(testRestoreFile2, ParcelFileDescriptor.MODE_READ_ONLY)); in testStageRemoteData_withNotReadMode_onlyValidFilesStaged()
323 ParcelFileDescriptor.open(testRestoreFile1, ParcelFileDescriptor.MODE_READ_ONLY)); in testStageRemoteData_whenStagingProgress_doesStage()
326 ParcelFileDescriptor.open(testRestoreFile2, ParcelFileDescriptor.MODE_READ_ONLY)); in testStageRemoteData_whenStagingProgress_doesStage()
354 ParcelFileDescriptor.open(testRestoreFile1, ParcelFileDescriptor.MODE_READ_ONLY)); in testStageRemoteData_whenStagingDone_doesNotStage()
357 ParcelFileDescriptor.open(testRestoreFile2, ParcelFileDescriptor.MODE_READ_ONLY)); in testStageRemoteData_whenStagingDone_doesNotStage()
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DReadableArchive.java19 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
187 return accessMode == MODE_READ_ONLY; in supportsAccessMode()
242 snapshotFile, MODE_READ_ONLY); in createForParcelFileDescriptor()
278 return mStorageManager.openProxyFileDescriptor(MODE_READ_ONLY, in openDocument()
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/
DOTAResourcesManager.java18 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
107 ParcelFileDescriptor fd = ParcelFileDescriptor.open(resourcesFile, MODE_READ_ONLY); in refreshOTAResources()
122 ParcelFileDescriptor fd = ParcelFileDescriptor.open(resourcesApk, MODE_READ_ONLY); in refreshOTAResources()
/packages/modules/Virtualization/java/framework/src/android/system/virtualmachine/
DVirtualMachineConfig.java20 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
670 new File(path), MODE_READ_ONLY); in toVsRawConfig()
679 .map((path) -> openOrNull(new File(path), MODE_READ_ONLY)) in toVsRawConfig()
683 .map((path) -> openOrNull(new File(path), MODE_READ_ONLY)) in toVsRawConfig()
687 config.bootloader = openOrNull(new File(U_BOOT_PREBUILT_PATH), MODE_READ_ONLY); in toVsRawConfig()
706 config.disks[i].writable ? MODE_READ_WRITE : MODE_READ_ONLY); in toVsRawConfig()
742 vsConfig.apk = ParcelFileDescriptor.open(new File(apkPath), MODE_READ_ONLY); in toVsConfig()
783 ParcelFileDescriptor.open(mVendorDiskImage, MODE_READ_ONLY); in toVsConfig()
DVirtualMachine.java20 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
1116 extraApkFiles.add(ParcelFileDescriptor.open(extraApk.apk, MODE_READ_ONLY)); in createVirtualMachineConfigForAppFrom()
1237 ParcelFileDescriptor.open(extraApk.apk, MODE_READ_ONLY), in createIdSigsAndUpdateConfig()
1242 appConfig.idsig = ParcelFileDescriptor.open(mIdsigFilePath, MODE_READ_ONLY); in createIdSigsAndUpdateConfig()
1245 extraIdsigs.add(ParcelFileDescriptor.open(extraApk.idsig, MODE_READ_ONLY)); in createIdSigsAndUpdateConfig()
1680 ParcelFileDescriptor.open(mConfigFilePath, MODE_READ_ONLY), in toDescriptor()
1682 ? ParcelFileDescriptor.open(mInstanceIdPath, MODE_READ_ONLY) in toDescriptor()
1684 ParcelFileDescriptor.open(mInstanceFilePath, MODE_READ_ONLY), in toDescriptor()
1686 ? ParcelFileDescriptor.open(mEncryptedStoreFilePath, MODE_READ_ONLY) in toDescriptor()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/
DArchiveFileTestRule.java19 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
143 .open(destinationPath.toFile(), MODE_READ_ONLY); in openAssetFile()
DTestUtils.java76 return ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY); in getSeekableDescriptor()
DReadableArchiveTest.java82 return new ArchiveId(ARCHIVE_URI, ParcelFileDescriptor.MODE_READ_ONLY, path); in createArchiveId()
92 ParcelFileDescriptor.MODE_READ_ONLY, in loadArchive()
/packages/modules/HealthFitness/backuprestore/src/com/android/health/connect/backuprestore/
DHealthConnectBackupAgent.java19 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
101 pfdsByFileName.put(file.getName(), ParcelFileDescriptor.open(file, MODE_READ_ONLY)); in onRestoreFinished()
/packages/apps/Traceur/src/com/android/traceur/
DStorageProvider.java136 if (ParcelFileDescriptor.parseMode(mode) != ParcelFileDescriptor.MODE_READ_ONLY) { in openDocument()
141 ParcelFileDescriptor.MODE_READ_ONLY); in openDocument()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/util/
DIoUtilsTest.java41 IoUtils.createFileDescriptor(modelFile, ParcelFileDescriptor.MODE_READ_ONLY); in testIoApis_success()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthConnectManagerTest.java794 testRestoreFile1, ParcelFileDescriptor.MODE_READ_ONLY)); in testStageRemoteData_withValidInput_noExceptionsReturned()
798 testRestoreFile2, ParcelFileDescriptor.MODE_READ_ONLY)); in testStageRemoteData_withValidInput_noExceptionsReturned()
854 testRestoreFile2, ParcelFileDescriptor.MODE_READ_ONLY)); in testStageRemoteData_whenNotReadMode_errorIoReturned()
921 testRestoreFile1, ParcelFileDescriptor.MODE_READ_ONLY)); in testStageRemoteData_whenStagingStagedData_noExceptionsReturned()
925 testRestoreFile2, ParcelFileDescriptor.MODE_READ_ONLY)); in testStageRemoteData_whenStagingStagedData_noExceptionsReturned()
996 testRestoreFile2, ParcelFileDescriptor.MODE_READ_ONLY)); in testStageRemoteData_withoutPermission_errorSecurityReturned()
1268 testRestoreFile1, ParcelFileDescriptor.MODE_READ_ONLY)); in testGetHealthConnectDataState_afterStagingAndMerge_returnsStateIdle()
1272 testRestoreFile2, ParcelFileDescriptor.MODE_READ_ONLY)); in testGetHealthConnectDataState_afterStagingAndMerge_returnsStateIdle()
1345 testRestoreFile2, ParcelFileDescriptor.MODE_READ_ONLY)); in testGetDataRestoreError_onErrorDuringStaging_returnsErrorFetching()
1453 testRestoreFile1, ParcelFileDescriptor.MODE_READ_ONLY)); in testGetDataRestoreError_onNoErrorDuringRestore_returnsNoError()
[all …]
/packages/modules/AppSearch/framework/java/android/app/appsearch/
DAppSearchMigrationHelper.java20 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
204 ParcelFileDescriptor.open(mMigratedFile, MODE_READ_ONLY)) { in putMigratedDocuments() argument
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/backuprestore/
DBackupRestoreApiTest.java20 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
192 pfdsByFileName.put(file.getName(), ParcelFileDescriptor.open(file, MODE_READ_ONLY)); in restoreBackupData()
/packages/modules/OnDevicePersonalization/pluginlib/src/com/android/ondevicepersonalization/libraries/plugin/internal/
DPluginArchiveManager.java179 file, ParcelFileDescriptor.MODE_READ_ONLY)) in createCloseablePluginCodeListFromFiles()
182 file, ParcelFileDescriptor.MODE_READ_ONLY)) in createCloseablePluginCodeListFromFiles()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/cluster/
DClusterContentProvider.java80 ParcelFileDescriptor.MODE_READ_ONLY); in openFile()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/
DDumpFileProvider.java83 return ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY); in openFile()
/packages/services/Mtp/perf_tests/src/com/android/mtp/
DAppFusePerfTest.java53 ParcelFileDescriptor.MODE_READ_ONLY, new TestCallback()); in testReadWriteFile()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DFileProvider.java115 (TextUtils.equals(fileMode, "r") ? ParcelFileDescriptor.MODE_READ_ONLY : in openFile()
/packages/apps/Gallery/src/com/android/camera/gallery/
DUriImage.java70 ParcelFileDescriptor.MODE_READ_ONLY); in getPFD()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/training/
DIsolatedTrainingServiceImplTest.java295 clientPlanFile, ParcelFileDescriptor.MODE_READ_ONLY)); in buildInputBundle()
310 return ParcelFileDescriptor.open(inputCheckpointFile, ParcelFileDescriptor.MODE_READ_ONLY); in getInputCheckpointFd()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/provider/
DSharedImageProvider.java140 imode |= ParcelFileDescriptor.MODE_READ_ONLY; in openFile()
/packages/modules/AdServices/sdksandbox/tests/cts/endtoendtests/src/com/android/tests/sdksandbox/endtoend/
DSdkSandboxStorageTest.java105 ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY); in testSdkCanReadAppFileDescriptor()
/packages/services/BuiltInPrintService/src/com/android/bips/jni/
DPdfRender.java113 ParcelFileDescriptor.MODE_READ_ONLY); in openDocument()

12