Searched refs:pfd2 (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/os/src/android/os/cts/ |
D | ParcelFileDescriptorTest.java | 563 try (var pfd2 = ParcelFileDescriptor.fromFd(pfd1.getFd())) { in testFromFd() argument 564 checkSameFd(pfd1, pfd2); in testFromFd() 572 try (var pfd2 = pfd1.dup()) { in testDup() argument 573 checkSameFd(pfd1, pfd2); in testDup() 581 try (var pfd2 = ParcelFileDescriptor.dup(pfd1.getFileDescriptor())) { in testDupStatic() argument 582 checkSameFd(pfd1, pfd2); in testDupStatic() 587 void checkSameFd(ParcelFileDescriptor pfd1, ParcelFileDescriptor pfd2) throws Exception { in checkSameFd() argument 590 seekTo(pfd2, 0); in checkSameFd() 593 assertEquals(0, tell(pfd2)); in checkSameFd() 598 assertEquals(2, tell(pfd2)); in checkSameFd()
|
/cts/tests/ondeviceintelligence/src/android/ondeviceintelligence/cts/ |
D | BundleValidationTest.java | 158 ParcelFileDescriptor pfd2 = ParcelFileDescriptor.open(file2, in canSendReadOnlyPfds() 161 request.putParcelableArray("request2", new ParcelFileDescriptor[]{pfd2}); in canSendReadOnlyPfds()
|
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/ |
D | TranscodeTestUtils.java | 389 ParcelFileDescriptor pfd2, boolean assertSame) throws Exception { in assertFileContent() argument 402 size2 = Os.read(pfd2.getFileDescriptor(), bytes2, 0, len); in assertFileContent()
|