Home
last modified time | relevance | path

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

/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()
164 ParcelFileDescriptor parcelFileDescriptor = mArchiveFileTestRule in buildArchiveHandle_withWrongMimeType_shouldBeIllegal() local
168 ArchiveHandle.create(parcelFileDescriptor, null); in buildArchiveHandle_withWrongMimeType_shouldBeIllegal()
354 ParcelFileDescriptor parcelFileDescriptor = mArchiveFileTestRule in close_zipFile_shouldNotOpen() local
357 ArchiveHandle archiveHandle = ArchiveHandle.create(parcelFileDescriptor, in close_zipFile_shouldNotOpen()
363 new FileInputStream(parcelFileDescriptor.getFileDescriptor()); in close_zipFile_shouldNotOpen()
369 ParcelFileDescriptor parcelFileDescriptor = mArchiveFileTestRule in getInputStream_zipFile_shouldHaveTheSameContent() local
375 ArchiveHandle archiveHandle = ArchiveHandle.create(parcelFileDescriptor, in getInputStream_zipFile_shouldHaveTheSameContent()
455 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()
/packages/modules/Connectivity/framework/src/android/net/
DQosSocketFilter.java102 final ParcelFileDescriptor parcelFileDescriptor = mQosSocketInfo.getParcelFileDescriptor(); in getAddressFromFileDescriptor() local
103 if (parcelFileDescriptor == null) return null; in getAddressFromFileDescriptor()
105 final FileDescriptor fd = parcelFileDescriptor.getFileDescriptor(); in getAddressFromFileDescriptor()