Home
last modified time | relevance | path

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

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
DArchiveHandleTest.java54 ParcelFileDescriptor parcelFileDescriptor = mArchiveFileTestRule in prepareArchiveHandle() local
57 return ArchiveHandle.create(parcelFileDescriptor, mimeType); in prepareArchiveHandle()
163 ParcelFileDescriptor parcelFileDescriptor = mArchiveFileTestRule in buildArchiveHandle_withWrongMimeType_shouldBeIllegal() local
167 ArchiveHandle.create(parcelFileDescriptor, null); in buildArchiveHandle_withWrongMimeType_shouldBeIllegal()
353 ParcelFileDescriptor parcelFileDescriptor = mArchiveFileTestRule in close_zipFile_shouldNotOpen() local
356 ArchiveHandle archiveHandle = ArchiveHandle.create(parcelFileDescriptor, in close_zipFile_shouldNotOpen()
362 new FileInputStream(parcelFileDescriptor.getFileDescriptor()); in close_zipFile_shouldNotOpen()
368 ParcelFileDescriptor parcelFileDescriptor = mArchiveFileTestRule in getInputStream_zipFile_shouldHaveTheSameContent() local
374 ArchiveHandle archiveHandle = ArchiveHandle.create(parcelFileDescriptor, in getInputStream_zipFile_shouldHaveTheSameContent()
454 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/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()