/cts/tests/tests/os/src/android/os/cts/ |
D | ParcelFileDescriptorTest.java | 74 ParcelFileDescriptor pfd = new ParcelFileDescriptor(tempFile); in testConstructorAndOpen() local 75 AutoCloseInputStream in = new AutoCloseInputStream(pfd); in testConstructorAndOpen() 128 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(socket); in testFromSocket() local 129 AutoCloseInputStream in = new AutoCloseInputStream(pfd); in testFromSocket() 133 pfd.close(); in testFromSocket() 158 ParcelFileDescriptor pfd = makeParcelFileDescriptor(getContext()); in testToString() local 159 assertNotNull(pfd.toString()); in testToString() 169 ParcelFileDescriptor pfd = ParcelFileDescriptor.CREATOR.createFromParcel(pl); in testWriteToParcel() local 170 AutoCloseInputStream in = new AutoCloseInputStream(pfd); in testWriteToParcel() 213 ParcelFileDescriptor pfd = makeParcelFileDescriptor(getContext()); in testGetFileDescriptor() local [all …]
|
D | ParcelFileDescriptor_AutoCloseOutputStreamTest.java | 48 ParcelFileDescriptor pfd = ParcelFileDescriptorTest.makeParcelFileDescriptor(getContext()); in testCloseOrdering() local 50 try (FileOutputStream out = new AutoCloseOutputStream(pfd)) { in testCloseOrdering()
|
D | ParcelFileDescriptorPeer.java | 109 public void set(ParcelFileDescriptor pfd) throws RemoteException { in set() argument 110 mLocal = pfd; in set()
|
D | IParcelFileDescriptorPeer.aidl | 32 void set(in ParcelFileDescriptor pfd); in set() argument
|
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/ |
D | MediaStorageTest.java | 208 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(red, "rw")) { in doMediaNone() argument 210 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "r")) { in doMediaNone() argument 214 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "w")) { in doMediaNone() argument 245 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(red, "rw")) { in doMediaRead() argument 247 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "r")) { in doMediaRead() argument 249 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "w")) { in doMediaRead() argument 280 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(red, "rw")) { in doMediaWrite() argument 282 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "r")) { in doMediaWrite() argument 285 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "w")) { in doMediaWrite() argument 288 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "w")) { in doMediaWrite() argument [all …]
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | TelephonyUtils.java | 74 final ParcelFileDescriptor pfd = in executeShellCommand() local 77 try (InputStream in = new FileInputStream(pfd.getFileDescriptor())) { in executeShellCommand() 89 closeQuietly(pfd); in executeShellCommand()
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | RemoteSocketFactoryClient.java | 87 ParcelFileDescriptor pfd = mService.openSocketFd(host, port, timeoutMs); in openSocketFd() local 88 FileDescriptor fd = Os.dup(pfd.getFileDescriptor()); in openSocketFd() 89 pfd.close(); in openSocketFd()
|
D | DumpOnFailureRule.java | 74 final ParcelFileDescriptor pfd = InstrumentationRegistry.getInstrumentation() in dumpCommandOutput() local 76 try (FileInputStream in = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in dumpCommandOutput()
|
/cts/hostsidetests/dumpsys/apps/ProcStatsTestApp/src/com/android/server/cts/procstats/ |
D | ProcStatsTest.java | 91 static List<String> readAll(ParcelFileDescriptor pfd) { in readAll() argument 96 new FileReader(pfd.getFileDescriptor()))) { in readAll() 105 pfd.close(); in readAll()
|
/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/tests/tests/security/src/android/security/cts/ |
D | BitmapFactorySecurityTests.java | 49 ParcelFileDescriptor pfd = ParcelFileDescriptor.open(file, in getResource() local 51 return pfd.getFileDescriptor(); in getResource()
|
D | AslrTest.java | 50 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in readMappingAddress() local 55 new InputStreamReader(new ParcelFileDescriptor.AutoCloseInputStream(pfd)))) { in readMappingAddress()
|
/cts/tests/backup/src/android/backup/cts/ |
D | BaseBackupCtsTest.java | 104 final ParcelFileDescriptor pfd = in executeInstrumentationShellCommand() local 106 return new ParcelFileDescriptor.AutoCloseInputStream(pfd); in executeInstrumentationShellCommand()
|
/cts/tests/tests/contactsproviderwipe/src/android/provider/cts/contactsproviderwipe/ |
D | ContactsContract_Wipe.java | 102 static List<String> readAll(ParcelFileDescriptor pfd) { in readAll() argument 107 new FileReader(pfd.getFileDescriptor()))) { in readAll() 116 pfd.close(); in readAll()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | MediaStore_Video_MediaTest.java | 236 try (ParcelFileDescriptor pfd = mContentResolver.openFile(publishUri, "r", null); in testLocationRedaction() argument 238 mmr.setDataSource(pfd.getFileDescriptor()); in testLocationRedaction() 252 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(originalUri, "r")) { in testLocationRedaction() argument 280 try (ParcelFileDescriptor pfd = mContentResolver.openFile(publishUri, "r", null); in testLocationRedaction() argument 282 mmr.setDataSource(pfd.getFileDescriptor()); in testLocationRedaction() 296 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(originalUri, "r")) { in testLocationRedaction() argument
|
/cts/hostsidetests/appsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/ |
D | MyProvider.java | 90 final ParcelFileDescriptor pfd = extras.getParcelable("fd"); in call() local 91 TrafficStats.tagFileDescriptor(pfd.getFileDescriptor()); in call()
|
/cts/hostsidetests/backup/OtherSoundsSettingsApp/src/android/cts/backup/othersoundssettingsapp/ |
D | OtherSoundsSettingsTest.java | 62 ParcelFileDescriptor pfd = in setUp() 64 return new ParcelFileDescriptor.AutoCloseInputStream(pfd); in setUp()
|
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/ |
D | Utils.java | 173 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in getProtoDump() local 177 try (FileInputStream is = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in getProtoDump()
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | CaptioningManagerTest.java | 138 ParcelFileDescriptor pfd = mUiAutomation.executeShellCommand(cmd); in execShellCommand() local 139 InputStream is = new FileInputStream(pfd.getFileDescriptor()); in execShellCommand()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | NetworkWatchlistTest.java | 133 private void pipeResourceToFileDescriptor(String res, ParcelFileDescriptor pfd) in pipeResourceToFileDescriptor() argument 136 FileOutputStream fdStream = new ParcelFileDescriptor.AutoCloseOutputStream(pfd); in pipeResourceToFileDescriptor()
|
/cts/hostsidetests/incident/apps/boundwidgetapp/src/android/appwidget/cts/ |
D | AppWidgetTest.java | 122 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in runShellCommand() local 128 new InputStreamReader(new ParcelFileDescriptor.AutoCloseInputStream(pfd)))) { in runShellCommand()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | SystemUtil.java | 89 ParcelFileDescriptor pfd = automation.executeShellCommand(cmd); in runShellCommand() local 92 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in runShellCommand()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | SystemUtil.java | 75 ParcelFileDescriptor pfd = instrumentation.getUiAutomation().executeShellCommand(cmd); in runShellCommand() local 78 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in runShellCommand()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | PhoneAccountTest.java | 313 final ParcelFileDescriptor pfd = in executeShellCommand() local 316 try (InputStream in = new FileInputStream(pfd.getFileDescriptor())) { in executeShellCommand() 328 pfd.close(); in executeShellCommand()
|
/cts/hostsidetests/backup/SyncAdapterSettingsApp/src/android/cts/backup/syncadaptersettingsapp/ |
D | SyncAdapterSettingsTest.java | 70 ParcelFileDescriptor pfd = 72 return new ParcelFileDescriptor.AutoCloseInputStream(pfd);
|