/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
D | ArchivesProviderTest.java | 96 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/ |
D | HealthConnectServiceImplTest.java | 266 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/ |
D | ReadableArchive.java | 19 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/ |
D | OTAResourcesManager.java | 18 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/ |
D | VirtualMachineConfig.java | 20 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()
|
D | VirtualMachine.java | 20 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/ |
D | ArchiveFileTestRule.java | 19 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY; 143 .open(destinationPath.toFile(), MODE_READ_ONLY); in openAssetFile()
|
D | TestUtils.java | 76 return ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY); in getSeekableDescriptor()
|
D | ReadableArchiveTest.java | 82 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/ |
D | HealthConnectBackupAgent.java | 19 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/ |
D | StorageProvider.java | 136 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/ |
D | IoUtilsTest.java | 41 IoUtils.createFileDescriptor(modelFile, ParcelFileDescriptor.MODE_READ_ONLY); in testIoApis_success()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ |
D | HealthConnectManagerTest.java | 794 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/ |
D | AppSearchMigrationHelper.java | 20 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/ |
D | BackupRestoreApiTest.java | 20 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/ |
D | PluginArchiveManager.java | 179 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/ |
D | ClusterContentProvider.java | 80 ParcelFileDescriptor.MODE_READ_ONLY); in openFile()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/ |
D | DumpFileProvider.java | 83 return ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY); in openFile()
|
/packages/services/Mtp/perf_tests/src/com/android/mtp/ |
D | AppFusePerfTest.java | 53 ParcelFileDescriptor.MODE_READ_ONLY, new TestCallback()); in testReadWriteFile()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | FileProvider.java | 115 (TextUtils.equals(fileMode, "r") ? ParcelFileDescriptor.MODE_READ_ONLY : in openFile()
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
D | UriImage.java | 70 ParcelFileDescriptor.MODE_READ_ONLY); in getPFD()
|
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/training/ |
D | IsolatedTrainingServiceImplTest.java | 295 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/ |
D | SharedImageProvider.java | 140 imode |= ParcelFileDescriptor.MODE_READ_ONLY; in openFile()
|
/packages/modules/AdServices/sdksandbox/tests/cts/endtoendtests/src/com/android/tests/sdksandbox/endtoend/ |
D | SdkSandboxStorageTest.java | 105 ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY); in testSdkCanReadAppFileDescriptor()
|
/packages/services/BuiltInPrintService/src/com/android/bips/jni/ |
D | PdfRender.java | 113 ParcelFileDescriptor.MODE_READ_ONLY); in openDocument()
|