/cts/tests/tests/os/src/android/os/cts/ |
D | ParcelFileDescriptorTest.java | 81 ParcelFileDescriptor pfd = new ParcelFileDescriptor(tempFile); in testConstructorAndOpen() local 82 AutoCloseInputStream in = new AutoCloseInputStream(pfd); in testConstructorAndOpen() 119 try (ParcelFileDescriptor pfd = ParcelFileDescriptor.open(file, in testReadOnly() argument 122 new ParcelFileDescriptor.AutoCloseOutputStream(pfd)) { in testReadOnly() 156 try (ParcelFileDescriptor pfd = ParcelFileDescriptor.open(file, flags); in doMultiWrite() argument 158 new ParcelFileDescriptor.AutoCloseOutputStream(pfd)) { in doMultiWrite() 162 try (ParcelFileDescriptor pfd = ParcelFileDescriptor.open(file, flags); in doMultiWrite() argument 164 new ParcelFileDescriptor.AutoCloseOutputStream(pfd)) { in doMultiWrite() 211 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(socket); in testFromSocket() local 212 AutoCloseInputStream in = new AutoCloseInputStream(pfd); in testFromSocket() [all …]
|
D | ParcelFileDescriptor_AutoCloseOutputStreamTest.java | 59 ParcelFileDescriptor pfd = ParcelFileDescriptorTest.makeParcelFileDescriptor(); in testCloseOrdering() local 61 try (FileOutputStream out = new AutoCloseOutputStream(pfd)) { in testCloseOrdering()
|
/cts/tests/tests/graphics/src/android/graphics/fonts/ |
D | FontFileUpdateRequestTest.java | 42 ParcelFileDescriptor pfd = ParcelFileDescriptor.open(robotoFile, in construct() local 47 FontFileUpdateRequest request = new FontFileUpdateRequest(pfd, signature); in construct() 48 assertThat(request.getParcelFileDescriptor()).isEqualTo(pfd); in construct() 52 assertThrows(NullPointerException.class, () -> new FontFileUpdateRequest(pfd, null)); in construct()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | AImageDecoderTest.java | 191 ParcelFileDescriptor pfd = ParcelFileDescriptor.open(file, in open() local 193 assertNotNull(pfd); in open() 194 return pfd; in open() 204 try (ParcelFileDescriptor pfd = open(record.resId)) { in testCreateFdResources() argument 205 long aimagedecoder = nCreateFromFd(pfd.getFd()); in testCreateFdResources() 219 try (ParcelFileDescriptor pfd = open(record.resId, offset)) { in testCreateFdOffset() argument 220 FileDescriptor fd = pfd.getFileDescriptor(); in testCreateFdOffset() 222 long aimagedecoder = nCreateFromFd(pfd.getFd()); in testCreateFdOffset() 259 try (ParcelFileDescriptor pfd = open(record.resId)) { in testSetFormatResources() argument 260 long aimagedecoder = nCreateFromFd(pfd.getFd()); in testSetFormatResources() [all …]
|
/cts/tests/tests/security/src/android/security/cts/ |
D | CVE_2021_39663.java | 59 ParcelFileDescriptor pfd = context.getContentResolver().openFileDescriptor(uri, "rw"); in testPocCVE_2021_39663() local 60 assumeNotNull(pfd); in testPocCVE_2021_39663() 61 FileDescriptor fd = pfd.getFileDescriptor(); in testPocCVE_2021_39663() 63 pfd.close(); in testPocCVE_2021_39663()
|
D | BitmapFactorySecurityTests.java | 56 ParcelFileDescriptor pfd = ParcelFileDescriptor.open(file, in getResource() local 58 return pfd.getFileDescriptor(); in getResource()
|
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/os/ |
D | SharedMemoryHelperTest.java | 49 ParcelFileDescriptor pfd = SharedMemoryHelper.createParcelFileDescriptor(sm); in testCreateParcelFileDescriptor() local 52 try (AutoCloseInputStream in = new AutoCloseInputStream(pfd)) { in testCreateParcelFileDescriptor() 73 ParcelFileDescriptor pfd = SharedMemoryHelper.createParcelFileDescriptor(sm1); in testSharedMemoryCreation() local 75 p.writeFileDescriptor(pfd.getFileDescriptor()); in testSharedMemoryCreation()
|
D | SharedMemoryTestService.java | 37 public int readBufData(ParcelFileDescriptor pfd) throws RemoteException { in readBufData() argument 43 sharedMemory = SharedMemory.fromFileDescriptor(pfd); in readBufData()
|
D | ISharedMemoryTestService.aidl | 22 int readBufData(in ParcelFileDescriptor pfd); in readBufData() argument
|
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/ |
D | ResolverAccessTestUtils.java | 49 try (ParcelFileDescriptor pfd = resolver.openFileDescriptor(uri, "rw")) { in assertResolver_readWrite() argument 50 assertThat(pfd).isNotNull(); in assertResolver_readWrite() 61 try (ParcelFileDescriptor pfd = resolver.openFileDescriptor(uri, "r")) { in assertResolver_noRead() argument 69 try (ParcelFileDescriptor pfd = resolver.openFileDescriptor(uri, "w")) { in assertResolver_noWrite() argument 77 try (ParcelFileDescriptor pfd = resolver.openFileDescriptor(uri, "r")) { in assertResolver_readOnly() argument 78 assertThat(pfd).isNotNull(); in assertResolver_readOnly()
|
/cts/tests/tests/car/src/android/car/cts/utils/ |
D | ProtoDumpUtils.java | 44 ParcelFileDescriptor pfd = uiAutomation.executeShellCommand( in executeProtoDumpShellCommand() local 46 try (FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in executeProtoDumpShellCommand()
|
/cts/hostsidetests/blobstore/test-apps/BlobStoreHostTestHelper/src/com/android/cts/device/blob/ |
D | DataCleanupTest.java | 112 try (ParcelFileDescriptor pfd = mBlobStoreManager.openBlob(blobHandle)) { in testOpenBlob() argument 113 assertThat(pfd).isNotNull(); in testOpenBlob() 127 try (ParcelFileDescriptor pfd = mBlobStoreManager.openBlob(blobHandle)) { in testRecommitBlob() argument 128 assertThat(pfd).isNotNull(); in testRecommitBlob() 133 Utils.writeToSession(session, pfd); in testRecommitBlob()
|
/cts/hostsidetests/dumpsys/apps/ProcStatsTestApp/src/com/android/server/cts/procstats/ |
D | ProcStatsTest.java | 87 static List<String> readAll(ParcelFileDescriptor pfd) { in readAll() argument 92 new FileReader(pfd.getFileDescriptor()))) { in readAll() 101 pfd.close(); in readAll()
|
/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/ |
D | ShellCommandExecutor.java | 54 final ParcelFileDescriptor pfd = in executeShellCommand() local 57 try (InputStream in = new FileInputStream(pfd.getFileDescriptor())) { in executeShellCommand() 69 closeQuietly(pfd); in executeShellCommand()
|
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/ |
D | MediaStorageTest.java | 195 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(red, "rw")) { in doMediaNone() argument 197 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "r")) { in doMediaNone() argument 201 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "w")) { in doMediaNone() argument 288 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(red, "rw")) { in doReadUriPermissionOnUriWithoutId_sameQueryResult() argument 291 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "r")) { in doReadUriPermissionOnUriWithoutId_sameQueryResult() argument 296 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "w")) { in doReadUriPermissionOnUriWithoutId_sameQueryResult() argument 368 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(red, "r")) { in doOwningOneFileNotGrantPrefixUriPermission() argument 371 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "r")) { in doOwningOneFileNotGrantPrefixUriPermission() argument 386 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(red, "rw")) { in doOwningOneFileNotGrantPrefixUriPermission() argument 389 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "w")) { in doOwningOneFileNotGrantPrefixUriPermission() argument [all …]
|
/cts/tests/ondeviceintelligence/src/android/ondeviceintelligence/cts/ |
D | BundleValidationTest.java | 156 try (ParcelFileDescriptor pfd = ParcelFileDescriptor.open(file, in canSendReadOnlyPfds() argument 160 request.putParcelable("request", pfd); in canSendReadOnlyPfds() 177 try (ParcelFileDescriptor pfd = ParcelFileDescriptor.open(file, in canSendReadOnlyPfds() argument 179 request2.putParcelable("request", pfd); in canSendReadOnlyPfds() 274 try (ParcelFileDescriptor pfd = ParcelFileDescriptor.open(file, in shouldRejectNestedBundlesWithFd() argument 277 bundle.putParcelable("test-pfd", pfd); in shouldRejectNestedBundlesWithFd() 293 try (ParcelFileDescriptor pfd = ParcelFileDescriptor.open(file, in shouldIgnoreCustomParcelableWhenRequestHasFds() argument 296 request.putParcelable("test-pfd", pfd); in shouldIgnoreCustomParcelableWhenRequestHasFds()
|
/cts/tests/tests/telephony2/src/android/telephony2/cts/ |
D | PhoneNumberTest.java | 45 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in setDefaultSmsApp() local 48 InputStream is = new FileInputStream(pfd.getFileDescriptor()); in setDefaultSmsApp()
|
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/util/ |
D | Utils.java | 49 ParcelFileDescriptor pfd = InstrumentationRegistry in executeShellCommand() local 53 InputStream is = new FileInputStream(pfd.getFileDescriptor()); in executeShellCommand()
|
/cts/tests/backup/src/android/backup/cts/ |
D | AppGrammaticalGenderBackupTest.java | 83 final ParcelFileDescriptor pfd = in executeInstrumentationShellCommand() local 85 return new ParcelFileDescriptor.AutoCloseInputStream(pfd); in executeInstrumentationShellCommand()
|
D | BaseBackupCtsTest.java | 104 final ParcelFileDescriptor pfd = in executeInstrumentationShellCommand() local 106 return new ParcelFileDescriptor.AutoCloseInputStream(pfd); in executeInstrumentationShellCommand()
|
/cts/tests/BlobStore/src/com/android/cts/blob/ |
D | BlobStoreManagerTest.java | 604 final ParcelFileDescriptor pfd = session.openWrite( in testSessionCommit() local 606 assertThat(pfd).isNotNull(); in testSessionCommit() 607 blobData.writeToFd(pfd.getFileDescriptor(), 0 /* offset */, 100 /* length */); in testSessionCommit() 613 pfd.getFileDescriptor() /* length */, 0 /* offset */, 100 /* length */)); in testSessionCommit() 671 try (ParcelFileDescriptor pfd = mBlobStoreManager.openBlob(blobData.getBlobHandle())) { in testRecommitBlob() argument 672 assertThat(pfd).isNotNull(); in testRecommitBlob() 673 blobData.verifyBlob(pfd); in testRecommitBlob() 678 try (ParcelFileDescriptor pfd = mBlobStoreManager.openBlob(blobData.getBlobHandle())) { in testRecommitBlob() argument 679 assertThat(pfd).isNotNull(); in testRecommitBlob() 680 blobData.verifyBlob(pfd); in testRecommitBlob() [all …]
|
D | DumpOnFailureRule.java | 66 final ParcelFileDescriptor pfd = InstrumentationRegistry.getInstrumentation() in dumpCommandOutput() local 68 try (FileInputStream in = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in dumpCommandOutput()
|
/cts/tests/tests/os/src/android/os/storage/cts/ |
D | StorageManagerHelper.java | 150 final ParcelFileDescriptor pfd = InstrumentationRegistry.getInstrumentation() in executeShellCommand() local 153 try (InputStream in = new FileInputStream(pfd.getFileDescriptor())) { in executeShellCommand() 165 closeQuietly(pfd); in executeShellCommand()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
D | DeviceUtils.java | 66 final ParcelFileDescriptor pfd = automation.executeShellCommand(command); in executeInstrumentationShellCommand() local 67 return new ParcelFileDescriptor.AutoCloseInputStream(pfd); in executeInstrumentationShellCommand()
|
/cts/tests/app/BroadcastsTest/src/android/app/cts/broadcasts/ |
D | DumpOnFailureRule.java | 69 final ParcelFileDescriptor pfd = InstrumentationRegistry.getInstrumentation() in dumpCommandOutput() local 71 try (FileInputStream in = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in dumpCommandOutput()
|