Home
last modified time | relevance | path

Searched refs:parcelFileDescriptor (Results 1 – 10 of 10) sorted by relevance

/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DArchiveHandle.java86 private ArchiveHandle(@NonNull ParcelFileDescriptor parcelFileDescriptor, in ArchiveHandle() argument
89 mParcelFileDescriptor = parcelFileDescriptor; in ArchiveHandle()
186 SevenZFileHandle(ParcelFileDescriptor parcelFileDescriptor, String mimeType, in SevenZFileHandle() argument
188 super(parcelFileDescriptor, mimeType, commonArchive); in SevenZFileHandle()
215 ZipFileHandle(ParcelFileDescriptor parcelFileDescriptor, String mimeType, in ZipFileHandle() argument
217 super(parcelFileDescriptor, mimeType, commonArchive); in ZipFileHandle()
237 CommonArchiveInputHandle(ParcelFileDescriptor parcelFileDescriptor, in CommonArchiveInputHandle() argument
239 super(parcelFileDescriptor, mimeType, commonArchive); in CommonArchiveInputHandle()
294 public static ArchiveHandle create(@NonNull ParcelFileDescriptor parcelFileDescriptor, in create() argument
296 checkNotNull(parcelFileDescriptor); in create()
[all …]
DReadableArchive.java75 @Nullable ParcelFileDescriptor parcelFileDescriptor, in ReadableArchive() argument
88 if (parcelFileDescriptor == null || parcelFileDescriptor.getFileDescriptor() == null) { in ReadableArchive()
91 mParcelFileDescriptor = parcelFileDescriptor; in ReadableArchive()
93 mArchiveHandle = ArchiveHandle.create(parcelFileDescriptor, archiveMimeType); in ReadableArchive()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/
DArchiveHandleTest.java55 ParcelFileDescriptor parcelFileDescriptor = mArchiveFileTestRule in prepareArchiveHandle() local
58 return ArchiveHandle.create(parcelFileDescriptor, mimeType); in prepareArchiveHandle()
159 ParcelFileDescriptor parcelFileDescriptor = mArchiveFileTestRule in buildArchiveHandle_withWrongMimeType_shouldBeIllegal() local
163 ArchiveHandle.create(parcelFileDescriptor, null); in buildArchiveHandle_withWrongMimeType_shouldBeIllegal()
349 ParcelFileDescriptor parcelFileDescriptor = mArchiveFileTestRule in close_zipFile_shouldNotOpen() local
352 ArchiveHandle archiveHandle = ArchiveHandle.create(parcelFileDescriptor, in close_zipFile_shouldNotOpen()
358 new FileInputStream(parcelFileDescriptor.getFileDescriptor()); in close_zipFile_shouldNotOpen()
364 ParcelFileDescriptor parcelFileDescriptor = mArchiveFileTestRule in getInputStream_zipFile_shouldHaveTheSameContent() local
370 ArchiveHandle archiveHandle = ArchiveHandle.create(parcelFileDescriptor, in getInputStream_zipFile_shouldHaveTheSameContent()
450 ParcelFileDescriptor parcelFileDescriptor = mArchiveFileTestRule in getInputStream_sevenZFile_shouldHaveTheSameContent() local
[all …]
DArchiveFileTestRule.java90 for (ParcelFileDescriptor parcelFileDescriptor : mParcelFileDescriptors) { in finished()
91 IOUtils.closeQuietly(parcelFileDescriptor); in finished()
142 ParcelFileDescriptor parcelFileDescriptor = ParcelFileDescriptor in openAssetFile() local
145 mParcelFileDescriptors.add(parcelFileDescriptor); in openAssetFile()
146 return parcelFileDescriptor; in openAssetFile()
156 ParcelFileDescriptor parcelFileDescriptor = openAssetFile(assetPath, ".text"); in getAssetText() local
159 new FileInputStream(parcelFileDescriptor.getFileDescriptor())) { in getAssetText()
/packages/modules/AppSearch/framework/java/android/app/appsearch/
DParcelableUtil.java64 ParcelFileDescriptor parcelFileDescriptor = writeDataToTempFileAndUnlinkFile(bytes); in writeToParcelForSAndBelow() local
65 parcel.writeFileDescriptor(parcelFileDescriptor.getFileDescriptor()); in writeToParcelForSAndBelow()
137 ParcelFileDescriptor parcelFileDescriptor = in writeDataToTempFileAndUnlinkFile() local
142 return parcelFileDescriptor; in writeDataToTempFileAndUnlinkFile()
/packages/modules/Connectivity/framework/src/android/net/
DQosSocketFilter.java124 final ParcelFileDescriptor parcelFileDescriptor = mQosSocketInfo.getParcelFileDescriptor(); in getLocalAddressFromFileDescriptor() local
125 final FileDescriptor fd = parcelFileDescriptor.getFileDescriptor(); in getLocalAddressFromFileDescriptor()
149 final ParcelFileDescriptor parcelFileDescriptor = mQosSocketInfo.getParcelFileDescriptor(); in getRemoteAddressFromFileDescriptor() local
150 final FileDescriptor fd = parcelFileDescriptor.getFileDescriptor(); in getRemoteAddressFromFileDescriptor()
/packages/modules/AppSearch/framework/java/android/app/appsearch/aidl/
DPutDocumentsFromFileAidlRequest.java92 @Param(id = 3) @NonNull ParcelFileDescriptor parcelFileDescriptor, in PutDocumentsFromFileAidlRequest()
99 mParcelFileDescriptor = Objects.requireNonNull(parcelFileDescriptor); in PutDocumentsFromFileAidlRequest()
DWriteSearchResultsToFileAidlRequest.java88 @Param(id = 3) @NonNull ParcelFileDescriptor parcelFileDescriptor, in WriteSearchResultsToFileAidlRequest()
95 mParcelFileDescriptor = Objects.requireNonNull(parcelFileDescriptor); in WriteSearchResultsToFileAidlRequest()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/training/
DIsolatedTrainingServiceImpl.java242 private String getFileDescriptorForTensorflow(ParcelFileDescriptor parcelFileDescriptor) { in getFileDescriptorForTensorflow() argument
243 return "fd:///" + parcelFileDescriptor.getFd(); in getFileDescriptorForTensorflow()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/training/jni/
DFlRunnerWrapperTest.java297 private String getFileDescriptorForTensorflow(ParcelFileDescriptor parcelFileDescriptor) { in getFileDescriptorForTensorflow() argument
298 return "fd:///" + parcelFileDescriptor.getFd(); in getFileDescriptorForTensorflow()