Home
last modified time | relevance | path

Searched refs:pfd1 (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/os/src/android/os/cts/
DParcelFileDescriptorTest.java562 try (var pfd1 = makeParcelFileDescriptor()) { in testFromFd() argument
563 try (var pfd2 = ParcelFileDescriptor.fromFd(pfd1.getFd())) { in testFromFd()
564 checkSameFd(pfd1, pfd2); in testFromFd()
571 try (var pfd1 = makeParcelFileDescriptor()) { in testDup() argument
572 try (var pfd2 = pfd1.dup()) { in testDup()
573 checkSameFd(pfd1, pfd2); in testDup()
580 try (var pfd1 = makeParcelFileDescriptor()) { in testDupStatic() argument
581 try (var pfd2 = ParcelFileDescriptor.dup(pfd1.getFileDescriptor())) { in testDupStatic()
582 checkSameFd(pfd1, pfd2); in testDupStatic()
587 void checkSameFd(ParcelFileDescriptor pfd1, ParcelFileDescriptor pfd2) throws Exception { in checkSameFd() argument
[all …]
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/
DTranscodeTestUtils.java388 public static void assertFileContent(File file1, File file2, ParcelFileDescriptor pfd1, in assertFileContent() argument
401 size1 = Os.read(pfd1.getFileDescriptor(), bytes1, 0, len); in assertFileContent()
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapRegionDecoderTest.java314 ParcelFileDescriptor pfd1 = obtainParcelDescriptor(filepath); in testDecodeRegionStringAndFileDescriptor() local
315 decoder = BitmapRegionDecoder.newInstance(pfd1); in testDecodeRegionStringAndFileDescriptor()